@vaadin/react-components 25.4.0-alpha2 → 25.4.0-alpha3

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 (556) hide show
  1. package/Accordion.d.ts +5 -0
  2. package/Accordion.d.ts.map +1 -1
  3. package/Accordion.js +5 -0
  4. package/Accordion.js.map +2 -2
  5. package/AccordionHeading.d.ts +5 -0
  6. package/AccordionHeading.d.ts.map +1 -1
  7. package/AccordionHeading.js +5 -0
  8. package/AccordionHeading.js.map +2 -2
  9. package/AccordionPanel.d.ts +5 -0
  10. package/AccordionPanel.d.ts.map +1 -1
  11. package/AccordionPanel.js +5 -0
  12. package/AccordionPanel.js.map +2 -2
  13. package/AppLayout.d.ts +5 -0
  14. package/AppLayout.d.ts.map +1 -1
  15. package/AppLayout.js +5 -0
  16. package/AppLayout.js.map +2 -2
  17. package/Avatar.d.ts +5 -0
  18. package/Avatar.d.ts.map +1 -1
  19. package/Avatar.js +5 -0
  20. package/Avatar.js.map +2 -2
  21. package/AvatarGroup.d.ts +5 -0
  22. package/AvatarGroup.d.ts.map +1 -1
  23. package/AvatarGroup.js +5 -0
  24. package/AvatarGroup.js.map +2 -2
  25. package/Badge.d.ts +5 -0
  26. package/Badge.d.ts.map +1 -1
  27. package/Badge.js +5 -0
  28. package/Badge.js.map +2 -2
  29. package/Breadcrumbs.d.ts +5 -0
  30. package/Breadcrumbs.d.ts.map +1 -1
  31. package/Breadcrumbs.js +5 -0
  32. package/Breadcrumbs.js.map +2 -2
  33. package/BreadcrumbsItem.d.ts +5 -0
  34. package/BreadcrumbsItem.d.ts.map +1 -1
  35. package/BreadcrumbsItem.js +6 -1
  36. package/BreadcrumbsItem.js.map +3 -3
  37. package/Button.d.ts +5 -0
  38. package/Button.d.ts.map +1 -1
  39. package/Button.js +5 -0
  40. package/Button.js.map +2 -2
  41. package/Card.d.ts +5 -0
  42. package/Card.d.ts.map +1 -1
  43. package/Card.js +5 -0
  44. package/Card.js.map +2 -2
  45. package/Checkbox.d.ts +5 -0
  46. package/Checkbox.d.ts.map +1 -1
  47. package/Checkbox.js +5 -0
  48. package/Checkbox.js.map +2 -2
  49. package/CheckboxGroup.d.ts +5 -0
  50. package/CheckboxGroup.d.ts.map +1 -1
  51. package/CheckboxGroup.js +5 -0
  52. package/CheckboxGroup.js.map +2 -2
  53. package/ComboBox.d.ts +6 -1
  54. package/ComboBox.d.ts.map +1 -1
  55. package/ComboBox.js +5 -0
  56. package/ComboBox.js.map +2 -2
  57. package/ConfirmDialog.d.ts +6 -1
  58. package/ConfirmDialog.d.ts.map +1 -1
  59. package/ConfirmDialog.js +6 -1
  60. package/ConfirmDialog.js.map +2 -2
  61. package/ContextMenu.d.ts +8 -3
  62. package/ContextMenu.d.ts.map +1 -1
  63. package/ContextMenu.js +5 -0
  64. package/ContextMenu.js.map +2 -2
  65. package/ContextMenuItem.d.ts +5 -0
  66. package/ContextMenuItem.d.ts.map +1 -1
  67. package/ContextMenuItem.js +5 -0
  68. package/ContextMenuItem.js.map +2 -2
  69. package/ContextMenuListBox.d.ts +5 -0
  70. package/ContextMenuListBox.d.ts.map +1 -1
  71. package/ContextMenuListBox.js +5 -0
  72. package/ContextMenuListBox.js.map +2 -2
  73. package/CustomField.d.ts +5 -0
  74. package/CustomField.d.ts.map +1 -1
  75. package/CustomField.js +5 -0
  76. package/CustomField.js.map +2 -2
  77. package/DatePicker.d.ts +5 -0
  78. package/DatePicker.d.ts.map +1 -1
  79. package/DatePicker.js +5 -0
  80. package/DatePicker.js.map +2 -2
  81. package/DateTimePicker.d.ts.map +1 -1
  82. package/DateTimePicker.js +5 -0
  83. package/DateTimePicker.js.map +2 -2
  84. package/Details.d.ts +5 -0
  85. package/Details.d.ts.map +1 -1
  86. package/Details.js +5 -0
  87. package/Details.js.map +2 -2
  88. package/DetailsSummary.d.ts +5 -0
  89. package/DetailsSummary.d.ts.map +1 -1
  90. package/DetailsSummary.js +5 -0
  91. package/DetailsSummary.js.map +2 -2
  92. package/Dialog.d.ts +5 -0
  93. package/Dialog.d.ts.map +1 -1
  94. package/Dialog.js +5 -0
  95. package/Dialog.js.map +2 -2
  96. package/DrawerToggle.d.ts +5 -0
  97. package/DrawerToggle.d.ts.map +1 -1
  98. package/DrawerToggle.js +5 -0
  99. package/DrawerToggle.js.map +2 -2
  100. package/EmailField.d.ts +5 -0
  101. package/EmailField.d.ts.map +1 -1
  102. package/EmailField.js +5 -0
  103. package/EmailField.js.map +2 -2
  104. package/FormItem.d.ts +5 -0
  105. package/FormItem.d.ts.map +1 -1
  106. package/FormItem.js +5 -0
  107. package/FormItem.js.map +2 -2
  108. package/FormLayout.d.ts +5 -0
  109. package/FormLayout.d.ts.map +1 -1
  110. package/FormLayout.js +5 -0
  111. package/FormLayout.js.map +2 -2
  112. package/FormRow.d.ts +5 -0
  113. package/FormRow.d.ts.map +1 -1
  114. package/FormRow.js +5 -0
  115. package/FormRow.js.map +2 -2
  116. package/Grid.d.ts +5 -0
  117. package/Grid.d.ts.map +1 -1
  118. package/Grid.js +6 -1
  119. package/Grid.js.map +3 -3
  120. package/GridColumn.d.ts +5 -0
  121. package/GridColumn.d.ts.map +1 -1
  122. package/GridColumn.js +5 -0
  123. package/GridColumn.js.map +2 -2
  124. package/GridColumnGroup.d.ts +6 -1
  125. package/GridColumnGroup.d.ts.map +1 -1
  126. package/GridColumnGroup.js +6 -1
  127. package/GridColumnGroup.js.map +2 -2
  128. package/GridFilter.d.ts +5 -0
  129. package/GridFilter.d.ts.map +1 -1
  130. package/GridFilter.js +5 -0
  131. package/GridFilter.js.map +2 -2
  132. package/GridFilterColumn.d.ts +6 -1
  133. package/GridFilterColumn.d.ts.map +1 -1
  134. package/GridFilterColumn.js +5 -0
  135. package/GridFilterColumn.js.map +2 -2
  136. package/GridSelectionColumn.d.ts +6 -1
  137. package/GridSelectionColumn.d.ts.map +1 -1
  138. package/GridSelectionColumn.js +5 -0
  139. package/GridSelectionColumn.js.map +2 -2
  140. package/GridSortColumn.d.ts +6 -1
  141. package/GridSortColumn.d.ts.map +1 -1
  142. package/GridSortColumn.js +5 -0
  143. package/GridSortColumn.js.map +2 -2
  144. package/GridSorter.d.ts +5 -0
  145. package/GridSorter.d.ts.map +1 -1
  146. package/GridSorter.js +5 -0
  147. package/GridSorter.js.map +2 -2
  148. package/GridTreeColumn.d.ts +7 -2
  149. package/GridTreeColumn.d.ts.map +1 -1
  150. package/GridTreeColumn.js +6 -1
  151. package/GridTreeColumn.js.map +2 -2
  152. package/GridTreeToggle.d.ts +5 -0
  153. package/GridTreeToggle.d.ts.map +1 -1
  154. package/GridTreeToggle.js +5 -0
  155. package/GridTreeToggle.js.map +2 -2
  156. package/HorizontalLayout.d.ts +5 -0
  157. package/HorizontalLayout.d.ts.map +1 -1
  158. package/HorizontalLayout.js +5 -0
  159. package/HorizontalLayout.js.map +2 -2
  160. package/Icon.d.ts +5 -0
  161. package/Icon.d.ts.map +1 -1
  162. package/Icon.js +5 -0
  163. package/Icon.js.map +2 -2
  164. package/Iconset.d.ts +5 -0
  165. package/Iconset.d.ts.map +1 -1
  166. package/Iconset.js +5 -0
  167. package/Iconset.js.map +2 -2
  168. package/IntegerField.d.ts +5 -0
  169. package/IntegerField.d.ts.map +1 -1
  170. package/IntegerField.js +5 -0
  171. package/IntegerField.js.map +2 -2
  172. package/Item.d.ts +5 -0
  173. package/Item.d.ts.map +1 -1
  174. package/Item.js +5 -0
  175. package/Item.js.map +2 -2
  176. package/ListBox.d.ts +5 -0
  177. package/ListBox.d.ts.map +1 -1
  178. package/ListBox.js +5 -0
  179. package/ListBox.js.map +2 -2
  180. package/LoginForm.d.ts +5 -0
  181. package/LoginForm.d.ts.map +1 -1
  182. package/LoginForm.js +5 -0
  183. package/LoginForm.js.map +2 -2
  184. package/LoginOverlay.d.ts +6 -1
  185. package/LoginOverlay.d.ts.map +1 -1
  186. package/LoginOverlay.js +6 -1
  187. package/LoginOverlay.js.map +2 -2
  188. package/Markdown.d.ts +6 -1
  189. package/Markdown.d.ts.map +1 -1
  190. package/Markdown.js +6 -1
  191. package/Markdown.js.map +2 -2
  192. package/MasterDetailLayout.d.ts +6 -1
  193. package/MasterDetailLayout.d.ts.map +1 -1
  194. package/MasterDetailLayout.js +6 -1
  195. package/MasterDetailLayout.js.map +3 -3
  196. package/MenuBar.d.ts +8 -3
  197. package/MenuBar.d.ts.map +1 -1
  198. package/MenuBar.js +6 -1
  199. package/MenuBar.js.map +2 -2
  200. package/Message.d.ts +5 -0
  201. package/Message.d.ts.map +1 -1
  202. package/Message.js +5 -0
  203. package/Message.js.map +2 -2
  204. package/MessageInput.d.ts +5 -0
  205. package/MessageInput.d.ts.map +1 -1
  206. package/MessageInput.js +5 -0
  207. package/MessageInput.js.map +2 -2
  208. package/MessageList.d.ts +5 -0
  209. package/MessageList.d.ts.map +1 -1
  210. package/MessageList.js +5 -0
  211. package/MessageList.js.map +2 -2
  212. package/MultiSelectComboBox.d.ts +6 -1
  213. package/MultiSelectComboBox.d.ts.map +1 -1
  214. package/MultiSelectComboBox.js +5 -0
  215. package/MultiSelectComboBox.js.map +2 -2
  216. package/Notification.d.ts +5 -0
  217. package/Notification.d.ts.map +1 -1
  218. package/Notification.js +5 -0
  219. package/Notification.js.map +2 -2
  220. package/NumberField.d.ts +5 -0
  221. package/NumberField.d.ts.map +1 -1
  222. package/NumberField.js +5 -0
  223. package/NumberField.js.map +2 -2
  224. package/PasswordField.d.ts +5 -0
  225. package/PasswordField.d.ts.map +1 -1
  226. package/PasswordField.js +5 -0
  227. package/PasswordField.js.map +2 -2
  228. package/Popover.d.ts +5 -0
  229. package/Popover.d.ts.map +1 -1
  230. package/Popover.js +5 -0
  231. package/Popover.js.map +2 -2
  232. package/ProgressBar.d.ts +5 -0
  233. package/ProgressBar.d.ts.map +1 -1
  234. package/ProgressBar.js +5 -0
  235. package/ProgressBar.js.map +2 -2
  236. package/RadioButton.d.ts +5 -0
  237. package/RadioButton.d.ts.map +1 -1
  238. package/RadioButton.js +5 -0
  239. package/RadioButton.js.map +2 -2
  240. package/RadioGroup.d.ts +5 -0
  241. package/RadioGroup.d.ts.map +1 -1
  242. package/RadioGroup.js +5 -0
  243. package/RadioGroup.js.map +2 -2
  244. package/RangeSlider.d.ts +5 -0
  245. package/RangeSlider.d.ts.map +1 -1
  246. package/RangeSlider.js +5 -0
  247. package/RangeSlider.js.map +2 -2
  248. package/Scroller.d.ts +5 -0
  249. package/Scroller.d.ts.map +1 -1
  250. package/Scroller.js +5 -0
  251. package/Scroller.js.map +2 -2
  252. package/Select.d.ts +5 -0
  253. package/Select.d.ts.map +1 -1
  254. package/Select.js +5 -0
  255. package/Select.js.map +2 -2
  256. package/SelectItem.d.ts +5 -0
  257. package/SelectItem.d.ts.map +1 -1
  258. package/SelectItem.js +5 -0
  259. package/SelectItem.js.map +2 -2
  260. package/SelectListBox.d.ts +5 -0
  261. package/SelectListBox.d.ts.map +1 -1
  262. package/SelectListBox.js +5 -0
  263. package/SelectListBox.js.map +2 -2
  264. package/SideNav.d.ts +5 -0
  265. package/SideNav.d.ts.map +1 -1
  266. package/SideNav.js +5 -0
  267. package/SideNav.js.map +2 -2
  268. package/SideNavItem.d.ts +5 -0
  269. package/SideNavItem.d.ts.map +1 -1
  270. package/SideNavItem.js +5 -0
  271. package/SideNavItem.js.map +2 -2
  272. package/Slider.d.ts +5 -0
  273. package/Slider.d.ts.map +1 -1
  274. package/Slider.js +5 -0
  275. package/Slider.js.map +2 -2
  276. package/SplitLayout.d.ts +5 -0
  277. package/SplitLayout.d.ts.map +1 -1
  278. package/SplitLayout.js +5 -0
  279. package/SplitLayout.js.map +2 -2
  280. package/Switch.d.ts +5 -0
  281. package/Switch.d.ts.map +1 -1
  282. package/Switch.js +5 -0
  283. package/Switch.js.map +2 -2
  284. package/Tab.d.ts +5 -0
  285. package/Tab.d.ts.map +1 -1
  286. package/Tab.js +5 -0
  287. package/Tab.js.map +2 -2
  288. package/TabSheet.d.ts +6 -1
  289. package/TabSheet.d.ts.map +1 -1
  290. package/TabSheet.js +6 -1
  291. package/TabSheet.js.map +4 -4
  292. package/Tabs.d.ts +5 -0
  293. package/Tabs.d.ts.map +1 -1
  294. package/Tabs.js +5 -0
  295. package/Tabs.js.map +2 -2
  296. package/TextArea.d.ts +5 -0
  297. package/TextArea.d.ts.map +1 -1
  298. package/TextArea.js +5 -0
  299. package/TextArea.js.map +2 -2
  300. package/TextField.d.ts +5 -0
  301. package/TextField.d.ts.map +1 -1
  302. package/TextField.js +5 -0
  303. package/TextField.js.map +2 -2
  304. package/TimePicker.d.ts.map +1 -1
  305. package/TimePicker.js +5 -0
  306. package/TimePicker.js.map +2 -2
  307. package/Tooltip.d.ts +5 -0
  308. package/Tooltip.d.ts.map +1 -1
  309. package/Tooltip.js +5 -0
  310. package/Tooltip.js.map +2 -2
  311. package/Upload.d.ts +5 -0
  312. package/Upload.d.ts.map +1 -1
  313. package/Upload.js +5 -0
  314. package/Upload.js.map +2 -2
  315. package/UploadButton.d.ts +5 -0
  316. package/UploadButton.d.ts.map +1 -1
  317. package/UploadButton.js +5 -0
  318. package/UploadButton.js.map +2 -2
  319. package/UploadDropZone.d.ts +5 -0
  320. package/UploadDropZone.d.ts.map +1 -1
  321. package/UploadDropZone.js +5 -0
  322. package/UploadDropZone.js.map +2 -2
  323. package/UploadFileList.d.ts +5 -0
  324. package/UploadFileList.d.ts.map +1 -1
  325. package/UploadFileList.js +5 -0
  326. package/UploadFileList.js.map +2 -2
  327. package/VerticalLayout.d.ts +5 -0
  328. package/VerticalLayout.d.ts.map +1 -1
  329. package/VerticalLayout.js +5 -0
  330. package/VerticalLayout.js.map +2 -2
  331. package/VirtualList.d.ts +5 -0
  332. package/VirtualList.d.ts.map +1 -1
  333. package/VirtualList.js +5 -0
  334. package/VirtualList.js.map +2 -2
  335. package/generated/Accordion.d.ts +1 -1
  336. package/generated/Accordion.d.ts.map +1 -1
  337. package/generated/AccordionHeading.d.ts +1 -1
  338. package/generated/AccordionHeading.d.ts.map +1 -1
  339. package/generated/AccordionPanel.d.ts +1 -1
  340. package/generated/AccordionPanel.d.ts.map +1 -1
  341. package/generated/AppLayout.d.ts +1 -1
  342. package/generated/AppLayout.d.ts.map +1 -1
  343. package/generated/Avatar.d.ts +1 -1
  344. package/generated/Avatar.d.ts.map +1 -1
  345. package/generated/AvatarGroup.d.ts +1 -1
  346. package/generated/AvatarGroup.d.ts.map +1 -1
  347. package/generated/Badge.d.ts +1 -1
  348. package/generated/Badge.d.ts.map +1 -1
  349. package/generated/Breadcrumbs.d.ts +1 -1
  350. package/generated/Breadcrumbs.d.ts.map +1 -1
  351. package/generated/BreadcrumbsItem.d.ts +5 -3
  352. package/generated/BreadcrumbsItem.d.ts.map +1 -1
  353. package/generated/Button.d.ts +1 -1
  354. package/generated/Button.d.ts.map +1 -1
  355. package/generated/Card.d.ts +1 -1
  356. package/generated/Card.d.ts.map +1 -1
  357. package/generated/Checkbox.d.ts +1 -1
  358. package/generated/Checkbox.d.ts.map +1 -1
  359. package/generated/CheckboxGroup.d.ts +1 -1
  360. package/generated/CheckboxGroup.d.ts.map +1 -1
  361. package/generated/ComboBox.d.ts +1 -1
  362. package/generated/ComboBox.d.ts.map +1 -1
  363. package/generated/ConfirmDialog.d.ts +1 -1
  364. package/generated/ConfirmDialog.d.ts.map +1 -1
  365. package/generated/ContextMenu.d.ts +1 -1
  366. package/generated/ContextMenu.d.ts.map +1 -1
  367. package/generated/ContextMenuItem.d.ts +1 -1
  368. package/generated/ContextMenuItem.d.ts.map +1 -1
  369. package/generated/ContextMenuListBox.d.ts +1 -1
  370. package/generated/ContextMenuListBox.d.ts.map +1 -1
  371. package/generated/CustomField.d.ts +1 -1
  372. package/generated/CustomField.d.ts.map +1 -1
  373. package/generated/DatePicker.d.ts +1 -1
  374. package/generated/DatePicker.d.ts.map +1 -1
  375. package/generated/DateTimePicker.d.ts +1 -1
  376. package/generated/DateTimePicker.d.ts.map +1 -1
  377. package/generated/Details.d.ts +1 -1
  378. package/generated/Details.d.ts.map +1 -1
  379. package/generated/DetailsSummary.d.ts +1 -1
  380. package/generated/DetailsSummary.d.ts.map +1 -1
  381. package/generated/Dialog.d.ts +1 -1
  382. package/generated/Dialog.d.ts.map +1 -1
  383. package/generated/DrawerToggle.d.ts +1 -1
  384. package/generated/DrawerToggle.d.ts.map +1 -1
  385. package/generated/EmailField.d.ts +1 -1
  386. package/generated/EmailField.d.ts.map +1 -1
  387. package/generated/FormItem.d.ts +1 -1
  388. package/generated/FormItem.d.ts.map +1 -1
  389. package/generated/FormLayout.d.ts +1 -1
  390. package/generated/FormLayout.d.ts.map +1 -1
  391. package/generated/FormRow.d.ts +1 -1
  392. package/generated/FormRow.d.ts.map +1 -1
  393. package/generated/Grid.d.ts +1 -1
  394. package/generated/Grid.d.ts.map +1 -1
  395. package/generated/GridColumn.d.ts +1 -1
  396. package/generated/GridColumn.d.ts.map +1 -1
  397. package/generated/GridColumnGroup.d.ts +1 -1
  398. package/generated/GridColumnGroup.d.ts.map +1 -1
  399. package/generated/GridFilter.d.ts +1 -1
  400. package/generated/GridFilter.d.ts.map +1 -1
  401. package/generated/GridFilterColumn.d.ts +1 -1
  402. package/generated/GridFilterColumn.d.ts.map +1 -1
  403. package/generated/GridSelectionColumn.d.ts +1 -1
  404. package/generated/GridSelectionColumn.d.ts.map +1 -1
  405. package/generated/GridSortColumn.d.ts +1 -1
  406. package/generated/GridSortColumn.d.ts.map +1 -1
  407. package/generated/GridSorter.d.ts +1 -1
  408. package/generated/GridSorter.d.ts.map +1 -1
  409. package/generated/GridTreeColumn.d.ts +1 -1
  410. package/generated/GridTreeColumn.d.ts.map +1 -1
  411. package/generated/GridTreeToggle.d.ts +1 -1
  412. package/generated/GridTreeToggle.d.ts.map +1 -1
  413. package/generated/HorizontalLayout.d.ts +1 -1
  414. package/generated/HorizontalLayout.d.ts.map +1 -1
  415. package/generated/Icon.d.ts +1 -1
  416. package/generated/Icon.d.ts.map +1 -1
  417. package/generated/Iconset.d.ts +1 -1
  418. package/generated/Iconset.d.ts.map +1 -1
  419. package/generated/IntegerField.d.ts +1 -1
  420. package/generated/IntegerField.d.ts.map +1 -1
  421. package/generated/Item.d.ts +1 -1
  422. package/generated/Item.d.ts.map +1 -1
  423. package/generated/ListBox.d.ts +1 -1
  424. package/generated/ListBox.d.ts.map +1 -1
  425. package/generated/LoginForm.d.ts +1 -1
  426. package/generated/LoginForm.d.ts.map +1 -1
  427. package/generated/LoginOverlay.d.ts +1 -1
  428. package/generated/LoginOverlay.d.ts.map +1 -1
  429. package/generated/Markdown.d.ts +1 -1
  430. package/generated/Markdown.d.ts.map +1 -1
  431. package/generated/MasterDetailLayout.d.ts +1 -1
  432. package/generated/MasterDetailLayout.d.ts.map +1 -1
  433. package/generated/MenuBar.d.ts +1 -1
  434. package/generated/MenuBar.d.ts.map +1 -1
  435. package/generated/Message.d.ts +1 -1
  436. package/generated/Message.d.ts.map +1 -1
  437. package/generated/MessageInput.d.ts +1 -1
  438. package/generated/MessageInput.d.ts.map +1 -1
  439. package/generated/MessageList.d.ts +1 -1
  440. package/generated/MessageList.d.ts.map +1 -1
  441. package/generated/MultiSelectComboBox.d.ts +1 -1
  442. package/generated/MultiSelectComboBox.d.ts.map +1 -1
  443. package/generated/Notification.d.ts +1 -1
  444. package/generated/Notification.d.ts.map +1 -1
  445. package/generated/NumberField.d.ts +1 -1
  446. package/generated/NumberField.d.ts.map +1 -1
  447. package/generated/PasswordField.d.ts +1 -1
  448. package/generated/PasswordField.d.ts.map +1 -1
  449. package/generated/Popover.d.ts +1 -1
  450. package/generated/Popover.d.ts.map +1 -1
  451. package/generated/ProgressBar.d.ts +1 -1
  452. package/generated/ProgressBar.d.ts.map +1 -1
  453. package/generated/RadioButton.d.ts +1 -1
  454. package/generated/RadioButton.d.ts.map +1 -1
  455. package/generated/RadioGroup.d.ts +1 -1
  456. package/generated/RadioGroup.d.ts.map +1 -1
  457. package/generated/RangeSlider.d.ts +1 -1
  458. package/generated/RangeSlider.d.ts.map +1 -1
  459. package/generated/Scroller.d.ts +1 -1
  460. package/generated/Scroller.d.ts.map +1 -1
  461. package/generated/Select.d.ts +1 -1
  462. package/generated/Select.d.ts.map +1 -1
  463. package/generated/SelectItem.d.ts +1 -1
  464. package/generated/SelectItem.d.ts.map +1 -1
  465. package/generated/SelectListBox.d.ts +1 -1
  466. package/generated/SelectListBox.d.ts.map +1 -1
  467. package/generated/SideNav.d.ts +1 -1
  468. package/generated/SideNav.d.ts.map +1 -1
  469. package/generated/SideNavItem.d.ts +1 -1
  470. package/generated/SideNavItem.d.ts.map +1 -1
  471. package/generated/Slider.d.ts +1 -1
  472. package/generated/Slider.d.ts.map +1 -1
  473. package/generated/SplitLayout.d.ts +1 -1
  474. package/generated/SplitLayout.d.ts.map +1 -1
  475. package/generated/Switch.d.ts +1 -1
  476. package/generated/Switch.d.ts.map +1 -1
  477. package/generated/Tab.d.ts +1 -1
  478. package/generated/Tab.d.ts.map +1 -1
  479. package/generated/TabSheet.d.ts +1 -1
  480. package/generated/TabSheet.d.ts.map +1 -1
  481. package/generated/Tabs.d.ts +1 -1
  482. package/generated/Tabs.d.ts.map +1 -1
  483. package/generated/TextArea.d.ts +1 -1
  484. package/generated/TextArea.d.ts.map +1 -1
  485. package/generated/TextField.d.ts +1 -1
  486. package/generated/TextField.d.ts.map +1 -1
  487. package/generated/TimePicker.d.ts +1 -1
  488. package/generated/TimePicker.d.ts.map +1 -1
  489. package/generated/Tooltip.d.ts +1 -1
  490. package/generated/Tooltip.d.ts.map +1 -1
  491. package/generated/Upload.d.ts +1 -1
  492. package/generated/Upload.d.ts.map +1 -1
  493. package/generated/UploadButton.d.ts +1 -1
  494. package/generated/UploadButton.d.ts.map +1 -1
  495. package/generated/UploadDropZone.d.ts +1 -1
  496. package/generated/UploadDropZone.d.ts.map +1 -1
  497. package/generated/UploadFileList.d.ts +1 -1
  498. package/generated/UploadFileList.d.ts.map +1 -1
  499. package/generated/VerticalLayout.d.ts +1 -1
  500. package/generated/VerticalLayout.d.ts.map +1 -1
  501. package/generated/VirtualList.d.ts +1 -1
  502. package/generated/VirtualList.d.ts.map +1 -1
  503. package/index.d.ts +28 -28
  504. package/index.js +28 -28
  505. package/package.json +85 -78
  506. package/renderers/combobox.d.ts +5 -0
  507. package/renderers/grid.d.ts +6 -1
  508. package/renderers/multiSelectCombobox.d.ts +5 -0
  509. package/renderers/renderer.d.ts +8 -2
  510. package/renderers/useContextRenderer.d.ts +5 -0
  511. package/renderers/useContextRenderer.d.ts.map +1 -1
  512. package/renderers/useContextRenderer.js +5 -1
  513. package/renderers/useContextRenderer.js.map +2 -2
  514. package/renderers/useModelRenderer.d.ts +5 -0
  515. package/renderers/useModelRenderer.d.ts.map +1 -1
  516. package/renderers/useModelRenderer.js +5 -1
  517. package/renderers/useModelRenderer.js.map +2 -2
  518. package/renderers/useRenderer.d.ts +5 -0
  519. package/renderers/useRenderer.d.ts.map +1 -1
  520. package/renderers/useRenderer.js +5 -1
  521. package/renderers/useRenderer.js.map +2 -2
  522. package/renderers/useSimpleOrChildrenRenderer.d.ts +5 -0
  523. package/renderers/useSimpleOrChildrenRenderer.d.ts.map +1 -1
  524. package/renderers/useSimpleOrChildrenRenderer.js +5 -1
  525. package/renderers/useSimpleOrChildrenRenderer.js.map +2 -2
  526. package/renderers/useSimpleRenderer.d.ts +5 -0
  527. package/renderers/useSimpleRenderer.d.ts.map +1 -1
  528. package/renderers/useSimpleRenderer.js +5 -1
  529. package/renderers/useSimpleRenderer.js.map +2 -2
  530. package/utils/createComponent.d.ts +6 -1
  531. package/utils/createComponent.d.ts.map +1 -1
  532. package/utils/createComponent.js +5 -1
  533. package/utils/createComponent.js.map +2 -2
  534. package/utils/createComponentWithOrderedProps.d.ts +6 -1
  535. package/utils/createComponentWithOrderedProps.d.ts.map +1 -1
  536. package/utils/createComponentWithOrderedProps.js +5 -1
  537. package/utils/createComponentWithOrderedProps.js.map +2 -2
  538. package/utils/flushMicrotask.d.ts.map +1 -1
  539. package/utils/flushMicrotask.js +5 -1
  540. package/utils/flushMicrotask.js.map +2 -2
  541. package/utils/mapItemsWithComponents.d.ts +7 -2
  542. package/utils/mapItemsWithComponents.d.ts.map +1 -1
  543. package/utils/mapItemsWithComponents.js +5 -1
  544. package/utils/mapItemsWithComponents.js.map +2 -2
  545. package/utils/useDeferredColumnWidthRecalculation.d.ts +14 -0
  546. package/utils/useDeferredColumnWidthRecalculation.d.ts.map +1 -0
  547. package/utils/useDeferredColumnWidthRecalculation.js +6 -0
  548. package/utils/useDeferredColumnWidthRecalculation.js.map +7 -0
  549. package/utils/useMergedRefs.d.ts +5 -0
  550. package/utils/useMergedRefs.d.ts.map +1 -1
  551. package/utils/useMergedRefs.js +5 -1
  552. package/utils/useMergedRefs.js.map +2 -2
  553. package/utils/warnings.d.ts +5 -0
  554. package/utils/warnings.d.ts.map +1 -1
  555. package/utils/warnings.js +5 -1
  556. package/utils/warnings.js.map +2 -2
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["src/MasterDetailLayout.tsx", "src/generated/MasterDetailLayout.ts"],
4
- "sourcesContent": ["export * from \"@vaadin/master-detail-layout/vaadin-master-detail-layout.js\";\nimport {\n MasterDetailLayout as _MasterDetailLayout,\n MasterDetailLayoutElement,\n} from './generated/MasterDetailLayout.js';\nimport React, { useEffect, useLayoutEffect, useRef, useState } from 'react';\n\nexport * from './generated/MasterDetailLayout.js';\n\ntype MasterProps = React.PropsWithChildren<{}>;\ntype DetailProps = React.PropsWithChildren<{}>;\ntype DetailPlaceholderProps = React.PropsWithChildren<{}>;\n\ntype MasterDetailLayoutElementWithInternalAPI = MasterDetailLayoutElement & {\n _startTransition: (transitionType: 'add' | 'remove' | 'replace', callback: () => void) => Promise<void>;\n};\n\nfunction Master({ children }: MasterProps) {\n return children;\n}\n\nfunction DetailPlaceholder({ children }: DetailPlaceholderProps) {\n return (\n <div slot=\"detail-placeholder\" style={{ height: '100%' }}>\n {children}\n </div>\n );\n}\n\n/**\n * Compares two sets of React children to detect meaningful changes, ignoring text nodes.\n * Compares by component type and key.\n *\n * @param prevChildren Previous children\n * @param nextChildren Current children\n * @returns True if the non-text children are meaningfully different, false otherwise\n */\nfunction areChildrenDifferent(prevChildren: React.ReactNode, nextChildren: React.ReactNode): boolean {\n // Convert to arrays and filter out text nodes\n const prevArray = React.Children.toArray(prevChildren).filter((child) => React.isValidElement(child));\n const nextArray = React.Children.toArray(nextChildren).filter((child) => React.isValidElement(child));\n\n // If lengths are different, children have changed\n if (prevArray.length !== nextArray.length) {\n return true;\n }\n\n // Compare each element by type and key\n for (let i = 0; i < prevArray.length; i++) {\n const prevChild = prevArray[i] as React.ReactElement;\n const nextChild = nextArray[i] as React.ReactElement;\n\n // Compare by type\n if (prevChild.type !== nextChild.type) {\n return true;\n }\n\n // Compare by key (React.Children.toArray adds keys if missing)\n if (prevChild.key !== nextChild.key) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction Detail({ children }: DetailProps) {\n const currentDetailsRef = useRef<HTMLDivElement>(null);\n const currentDetailsKey = useRef<number>(0);\n const nextDetailsRef = useRef<HTMLDivElement>(null);\n const nextDetailsKey = currentDetailsKey.current + 1;\n const [state, setState] = useState('idle');\n const [currentChildren, setCurrentChildren] = useState(children);\n\n useLayoutEffect(() => {\n const layout = currentDetailsRef.current?.closest(\n 'vaadin-master-detail-layout',\n ) as MasterDetailLayoutElementWithInternalAPI;\n if (!layout) {\n return;\n }\n\n if (state === 'idle') {\n // No transition in progress \u2014 just update slot name\n const hasChildren = currentDetailsRef.current!.childElementCount > 0;\n currentDetailsRef.current!.setAttribute('slot', hasChildren ? 'detail' : 'detail-hidden');\n } else if (state === 'starting') {\n // Transition is starting and old and (invisible) new details are rendered.\n // Determine the transition type based on old and new detail contents.\n const hasCurrentDetails = currentDetailsRef.current!.childElementCount > 0;\n const hasNextDetails = nextDetailsRef.current!.childElementCount > 0;\n const transitionType = hasCurrentDetails && hasNextDetails ? 'replace' : hasCurrentDetails ? 'remove' : 'add';\n\n // _startTransition calls the callback synchronously for add/replace,\n // and asynchronously for remove.\n layout\n ._startTransition(transitionType, async () => {\n if (transitionType === 'replace' && currentDetailsRef.current) {\n // For replace, _startTransition moved the current div to the\n // detail-outgoing slot for the outgoing animation. Clone it so the\n // WC can animate the clone out, then hide the React-managed original\n // so the WC's post-animation cleanup won't remove it from the DOM.\n const clone = currentDetailsRef.current.cloneNode(true) as HTMLElement;\n clone.setAttribute('slot', 'detail-outgoing');\n layout.appendChild(clone);\n currentDetailsRef.current.setAttribute('slot', 'detail-hidden');\n } else if (currentDetailsRef.current) {\n currentDetailsRef.current.setAttribute('slot', 'detail-hidden');\n }\n if (nextDetailsRef.current) {\n nextDetailsRef.current.style.display = '';\n const hasNext = nextDetailsRef.current.childElementCount > 0;\n nextDetailsRef.current.setAttribute('slot', hasNext ? 'detail' : 'detail-hidden');\n }\n\n // Wait for Lit elements to render\n await Promise.resolve();\n\n // Recompute layout state with the new DOM\n layout.recalculateLayout();\n })\n .then(() => {\n // Animation finished \u2014 sync React state to match DOM reality\n setCurrentChildren(children);\n currentDetailsKey.current = nextDetailsKey;\n setState('idle');\n });\n }\n }, [state, currentChildren]);\n\n useEffect(() => {\n if (state !== 'idle') {\n return;\n }\n if (areChildrenDifferent(currentChildren, children)) {\n setState('starting');\n } else {\n setCurrentChildren(children);\n }\n }, [state, children]);\n\n return (\n <>\n <div ref={currentDetailsRef} key={currentDetailsKey.current} style={{ height: '100%' }}>\n {currentChildren}\n </div>\n {state === 'starting' && (\n <div ref={nextDetailsRef} key={nextDetailsKey} style={{ display: 'none', height: '100%' }}>\n {children}\n </div>\n )}\n </>\n );\n}\n\nfunction validateChildren(children: React.ReactNode) {\n React.Children.forEach(children, (child) => {\n // Ignore non-React elements\n // We especially want to ignore text nodes to allow for whitespace resulting from formatting\n if (\n React.isValidElement(child) &&\n child.type !== Master &&\n child.type !== Detail &&\n child.type !== DetailPlaceholder\n ) {\n throw new Error(\n 'Invalid child in MasterDetailLayout. Only <MasterDetailLayout.Master>, <MasterDetailLayout.Detail>, and <MasterDetailLayout.DetailPlaceholder> components are allowed. Check the component docs for proper usage.',\n );\n }\n });\n}\n\nconst MasterDetailLayoutWithValidation: React.FC<React.ComponentProps<typeof _MasterDetailLayout>> = (props) => {\n validateChildren(props.children);\n\n return <_MasterDetailLayout {...props} />;\n};\n\n/**\n * `MasterDetailLayout` is a React component for building UIs with a master\n * (or primary) area and a detail (or secondary) area that is displayed next to, or\n * overlaid on top of, the master area, depending on configuration and viewport size.\n *\n * Content for each area should be wrapped into the respective\n * `MasterDetailLayout.Master`, `MasterDetailLayout.Detail`, and optionally\n * `MasterDetailLayout.DetailPlaceholder` wrapper components.\n * Using any other component as a child will throw an error. To ensure that view\n * transitions are run properly, details content should be rendered conditionally\n * into the `MasterDetailLayout.Detail` component. The `DetailPlaceholder` is shown\n * in the detail area when no detail is selected, and is hidden when the viewport\n * is too narrow (unlike detail, it does not become an overlay).\n *\n * @example\n * ```tsx\n * const selectedProduct = useSignal<Product | null>(null);\n *\n * <MasterDetailLayout>\n * <MasterDetailLayout.Master>\n * <ProductList onSelect={(product) => { selectedProduct.value = product }} />\n * </MasterDetailLayout.Master>\n * <MasterDetailLayout.Detail>\n * { selectedProduct.value && <ProductDetail product={selectedProduct.value} /> }\n * </MasterDetailLayout.Detail>\n * </MasterDetailLayout>\n * ```\n */\nconst MasterDetailLayout = MasterDetailLayoutWithValidation as typeof MasterDetailLayoutWithValidation & {\n Master: React.FC<MasterProps>;\n Detail: React.FC<DetailProps>;\n DetailPlaceholder: React.FC<DetailPlaceholderProps>;\n};\n\nMasterDetailLayout.Master = Master;\nMasterDetailLayout.Detail = Detail;\nMasterDetailLayout.DetailPlaceholder = DetailPlaceholder;\n\nexport { MasterDetailLayout };\n", "import type { EventName } from \"@lit/react\";\nimport { MasterDetailLayout as MasterDetailLayoutElement, type MasterDetailLayoutEventMap as _MasterDetailLayoutEventMap, } from \"@vaadin/master-detail-layout/vaadin-master-detail-layout.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { MasterDetailLayoutElement, };\nexport type MasterDetailLayoutEventMap = Readonly<{\n onBackdropClick: EventName<_MasterDetailLayoutEventMap[\"backdrop-click\"]>;\n onDetailEscapePress: EventName<_MasterDetailLayoutEventMap[\"detail-escape-press\"]>;\n}>;\nconst events = { onBackdropClick: \"backdrop-click\", onDetailEscapePress: \"detail-escape-press\" } as MasterDetailLayoutEventMap;\nexport type MasterDetailLayoutProps = WebComponentProps<MasterDetailLayoutElement, MasterDetailLayoutEventMap>;\nexport const MasterDetailLayout = createComponent({\n elementClass: MasterDetailLayoutElement, events, react: React, tagName: \"vaadin-master-detail-layout\"\n});\n"],
5
- "mappings": "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",
6
- "names": ["MasterDetailLayoutElement", "React", "createComponent", "events", "MasterDetailLayout", "createComponent", "MasterDetailLayoutElement", "React", "React", "useEffect", "useLayoutEffect", "useRef", "useState", "Fragment", "jsx", "jsxs", "Master", "children", "DetailPlaceholder", "areChildrenDifferent", "prevChildren", "nextChildren", "prevArray", "child", "nextArray", "i", "prevChild", "nextChild", "Detail", "currentDetailsRef", "currentDetailsKey", "nextDetailsRef", "nextDetailsKey", "state", "setState", "currentChildren", "setCurrentChildren", "layout", "hasChildren", "hasCurrentDetails", "hasNextDetails", "transitionType", "clone", "hasNext", "validateChildren", "MasterDetailLayoutWithValidation", "props", "MasterDetailLayout"]
4
+ "sourcesContent": ["export * from \"@vaadin/master-detail-layout/vaadin-master-detail-layout.js\";\n/**\n * @license\n * Copyright (c) 2022 - 2026 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport React, { useEffect, useLayoutEffect, useRef, useState } from 'react';\nimport {\n MasterDetailLayout as _MasterDetailLayout,\n type MasterDetailLayoutElement,\n} from './generated/MasterDetailLayout.js';\n\nexport * from './generated/MasterDetailLayout.js';\n\ntype MasterProps = React.PropsWithChildren<{}>;\ntype DetailProps = React.PropsWithChildren<{}>;\ntype DetailPlaceholderProps = React.PropsWithChildren<{}>;\n\ntype MasterDetailLayoutElementWithInternalAPI = MasterDetailLayoutElement & {\n _startTransition(transitionType: 'add' | 'remove' | 'replace', callback: () => void): Promise<void>;\n};\n\nfunction Master({ children }: MasterProps) {\n return children;\n}\n\nfunction DetailPlaceholder({ children }: DetailPlaceholderProps) {\n return (\n <div slot=\"detail-placeholder\" style={{ height: '100%' }}>\n {children}\n </div>\n );\n}\n\n/**\n * Compares two sets of React children to detect meaningful changes, ignoring text nodes.\n * Compares by component type and key.\n *\n * @param prevChildren Previous children\n * @param nextChildren Current children\n * @returns True if the non-text children are meaningfully different, false otherwise\n */\nfunction areChildrenDifferent(prevChildren: React.ReactNode, nextChildren: React.ReactNode): boolean {\n // Convert to arrays and filter out text nodes\n const prevArray = React.Children.toArray(prevChildren).filter((child) => React.isValidElement(child));\n const nextArray = React.Children.toArray(nextChildren).filter((child) => React.isValidElement(child));\n\n // If lengths are different, children have changed\n if (prevArray.length !== nextArray.length) {\n return true;\n }\n\n // Compare each element by type and key\n for (let i = 0; i < prevArray.length; i++) {\n const prevChild = prevArray[i] as React.ReactElement;\n const nextChild = nextArray[i] as React.ReactElement;\n\n // Compare by type\n if (prevChild.type !== nextChild.type) {\n return true;\n }\n\n // Compare by key (React.Children.toArray adds keys if missing)\n if (prevChild.key !== nextChild.key) {\n return true;\n }\n }\n\n return false;\n}\n\nfunction Detail({ children }: DetailProps) {\n const currentDetailsRef = useRef<HTMLDivElement>(null);\n const currentDetailsKey = useRef<number>(0);\n const nextDetailsRef = useRef<HTMLDivElement>(null);\n const nextDetailsKey = currentDetailsKey.current + 1;\n const [state, setState] = useState('idle');\n const [currentChildren, setCurrentChildren] = useState(children);\n // The transition completion handler closes over the children from when the\n // transition started, so read the latest ones through a ref instead.\n const latestChildren = useRef(children);\n latestChildren.current = children;\n\n useLayoutEffect(() => {\n const layout = currentDetailsRef.current?.closest(\n 'vaadin-master-detail-layout',\n ) as MasterDetailLayoutElementWithInternalAPI;\n if (!layout) {\n return;\n }\n\n if (state === 'idle') {\n // No transition in progress \u2014 just update slot name\n const hasChildren = currentDetailsRef.current!.childElementCount > 0;\n currentDetailsRef.current!.setAttribute('slot', hasChildren ? 'detail' : 'detail-hidden');\n } else if (state === 'starting') {\n // Transition is starting and old and (invisible) new details are rendered.\n // Determine the transition type based on old and new detail contents.\n const hasCurrentDetails = currentDetailsRef.current!.childElementCount > 0;\n const hasNextDetails = nextDetailsRef.current!.childElementCount > 0;\n const transitionType = hasCurrentDetails && hasNextDetails ? 'replace' : hasCurrentDetails ? 'remove' : 'add';\n\n // _startTransition calls the callback synchronously for add/replace,\n // and asynchronously for remove.\n let outgoingClone: HTMLElement | undefined;\n layout\n ._startTransition(transitionType, async () => {\n if (transitionType === 'replace' && currentDetailsRef.current) {\n // For replace, _startTransition moved the current div to the\n // detail-outgoing slot for the outgoing animation. Clone it so the\n // WC can animate the clone out, then hide the React-managed original\n // so the WC's post-animation cleanup won't remove it from the DOM.\n const clone = currentDetailsRef.current.cloneNode(true) as HTMLElement;\n outgoingClone = clone;\n clone.setAttribute('slot', 'detail-outgoing');\n layout.appendChild(clone);\n currentDetailsRef.current.setAttribute('slot', 'detail-hidden');\n } else if (currentDetailsRef.current) {\n currentDetailsRef.current.setAttribute('slot', 'detail-hidden');\n }\n if (nextDetailsRef.current) {\n nextDetailsRef.current.style.display = '';\n const hasNext = nextDetailsRef.current.childElementCount > 0;\n nextDetailsRef.current.setAttribute('slot', hasNext ? 'detail' : 'detail-hidden');\n }\n\n // Wait for Lit elements to render\n await Promise.resolve();\n\n // Recompute layout state with the new DOM\n layout.recalculateLayout();\n })\n .then(() => {\n // Animation finished \u2014 remove the clone the WC does not own, then\n // sync React state to match DOM reality\n outgoingClone?.remove();\n setCurrentChildren(latestChildren.current);\n currentDetailsKey.current = nextDetailsKey;\n setState('idle');\n });\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- Runs only when the transition state or the rendered children change\n }, [state, currentChildren]);\n\n useEffect(() => {\n if (state !== 'idle') {\n return;\n }\n if (areChildrenDifferent(currentChildren, children)) {\n setState('starting');\n } else {\n setCurrentChildren(children);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps -- Compares against currentChildren without rerunning when it updates\n }, [state, children]);\n\n return (\n <>\n <div ref={currentDetailsRef} key={currentDetailsKey.current} style={{ height: '100%' }}>\n {currentChildren}\n </div>\n {state === 'starting' && (\n <div ref={nextDetailsRef} key={nextDetailsKey} style={{ display: 'none', height: '100%' }}>\n {children}\n </div>\n )}\n </>\n );\n}\n\nfunction validateChildren(children: React.ReactNode) {\n React.Children.forEach(children, (child) => {\n // Ignore non-React elements\n // We especially want to ignore text nodes to allow for whitespace resulting from formatting\n if (\n React.isValidElement(child) &&\n child.type !== Master &&\n child.type !== Detail &&\n child.type !== DetailPlaceholder\n ) {\n throw new Error(\n 'Invalid child in MasterDetailLayout. Only <MasterDetailLayout.Master>, <MasterDetailLayout.Detail>, and <MasterDetailLayout.DetailPlaceholder> components are allowed. Check the component docs for proper usage.',\n );\n }\n });\n}\n\nconst MasterDetailLayoutWithValidation: React.FC<React.ComponentProps<typeof _MasterDetailLayout>> = (props) => {\n validateChildren(props.children);\n\n return <_MasterDetailLayout {...props} />;\n};\n\n/**\n * `MasterDetailLayout` is a React component for building UIs with a master\n * (or primary) area and a detail (or secondary) area that is displayed next to, or\n * overlaid on top of, the master area, depending on configuration and viewport size.\n *\n * Content for each area should be wrapped into the respective\n * `MasterDetailLayout.Master`, `MasterDetailLayout.Detail`, and optionally\n * `MasterDetailLayout.DetailPlaceholder` wrapper components.\n * Using any other component as a child will throw an error. To ensure that view\n * transitions are run properly, details content should be rendered conditionally\n * into the `MasterDetailLayout.Detail` component. The `DetailPlaceholder` is shown\n * in the detail area when no detail is selected, and is hidden when the viewport\n * is too narrow (unlike detail, it does not become an overlay).\n *\n * @example\n * ```tsx\n * const selectedProduct = useSignal<Product | null>(null);\n *\n * <MasterDetailLayout>\n * <MasterDetailLayout.Master>\n * <ProductList onSelect={(product) => { selectedProduct.value = product }} />\n * </MasterDetailLayout.Master>\n * <MasterDetailLayout.Detail>\n * { selectedProduct.value && <ProductDetail product={selectedProduct.value} /> }\n * </MasterDetailLayout.Detail>\n * </MasterDetailLayout>\n * ```\n */\nconst MasterDetailLayout = MasterDetailLayoutWithValidation as typeof MasterDetailLayoutWithValidation & {\n Master: React.FC<MasterProps>;\n Detail: React.FC<DetailProps>;\n DetailPlaceholder: React.FC<DetailPlaceholderProps>;\n};\n\nMasterDetailLayout.Master = Master;\nMasterDetailLayout.Detail = Detail;\nMasterDetailLayout.DetailPlaceholder = DetailPlaceholder;\n\nexport { MasterDetailLayout };\n", "import type { EventName } from \"@lit/react\";\nimport { MasterDetailLayout as MasterDetailLayoutElement, type MasterDetailLayoutEventMap as _MasterDetailLayoutEventMap, } from \"@vaadin/master-detail-layout/vaadin-master-detail-layout.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { MasterDetailLayoutElement };\nexport type MasterDetailLayoutEventMap = Readonly<{\n onBackdropClick: EventName<_MasterDetailLayoutEventMap[\"backdrop-click\"]>;\n onDetailEscapePress: EventName<_MasterDetailLayoutEventMap[\"detail-escape-press\"]>;\n}>;\nconst events = { onBackdropClick: \"backdrop-click\", onDetailEscapePress: \"detail-escape-press\" } as MasterDetailLayoutEventMap;\nexport type MasterDetailLayoutProps = WebComponentProps<MasterDetailLayoutElement, MasterDetailLayoutEventMap>;\nexport const MasterDetailLayout = createComponent({\n elementClass: MasterDetailLayoutElement,\n events,\n react: React,\n tagName: \"vaadin-master-detail-layout\",\n});\n"],
5
+ "mappings": "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",
6
+ "names": ["React", "useEffect", "useLayoutEffect", "useRef", "useState", "MasterDetailLayoutElement", "React", "createComponent", "events", "MasterDetailLayout", "createComponent", "MasterDetailLayoutElement", "React", "Fragment", "jsx", "jsxs", "Master", "children", "DetailPlaceholder", "areChildrenDifferent", "prevChildren", "nextChildren", "prevArray", "React", "child", "nextArray", "i", "prevChild", "nextChild", "Detail", "currentDetailsRef", "useRef", "currentDetailsKey", "nextDetailsRef", "nextDetailsKey", "state", "setState", "useState", "currentChildren", "setCurrentChildren", "latestChildren", "useLayoutEffect", "layout", "hasChildren", "hasCurrentDetails", "hasNextDetails", "transitionType", "outgoingClone", "clone", "hasNext", "useEffect", "validateChildren", "MasterDetailLayoutWithValidation", "props", "MasterDetailLayout"]
7
7
  }
package/MenuBar.d.ts CHANGED
@@ -1,5 +1,10 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
1
6
  import { type ReactElement, type RefAttributes } from 'react';
2
- import { type MenuBarElement, type MenuBarProps as _MenuBarProps, type MenuBarItem as _MenuBarItem, type SubMenuItem as _SubMenuItem } from './generated/MenuBar.js';
7
+ import { type MenuBarElement, type MenuBarItem as _MenuBarItem, type MenuBarProps as _MenuBarProps, type SubMenuItem as _SubMenuItem } from './generated/MenuBar.js';
3
8
  export * from './generated/MenuBar.js';
4
9
  export type SubMenuItem<TItemData extends object = object> = Omit<_SubMenuItem<TItemData>, 'component' | 'children'> & {
5
10
  component?: ReactElement | string;
@@ -13,8 +18,8 @@ export type MenuBarItemSelectedEvent<TItem extends MenuBarItem = MenuBarItem> =
13
18
  value: MenuBarItem<TItem>;
14
19
  }>;
15
20
  export type MenuBarProps<TItem extends MenuBarItem = MenuBarItem> = Partial<Omit<_MenuBarProps, 'items' | 'onItemSelected'>> & Readonly<{
16
- items?: Array<TItem>;
17
- onItemSelected?: (event: MenuBarItemSelectedEvent<TItem>) => void;
21
+ items?: TItem[];
22
+ onItemSelected?(event: MenuBarItemSelectedEvent<TItem>): void;
18
23
  }>;
19
24
  declare const ForwardedMenuBar: <TItem extends MenuBarItem = MenuBarItem>(props: MenuBarProps<TItem> & RefAttributes<MenuBarElement>) => ReactElement | null;
20
25
  export { ForwardedMenuBar as MenuBar };
package/MenuBar.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"MenuBar.d.ts","sourceRoot":"","sources":["src/MenuBar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7F,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,WAAW,IAAI,YAAY,EAChC,KAAK,WAAW,IAAI,YAAY,EACjC,MAAM,wBAAwB,CAAC;AAGhC,cAAc,wBAAwB,CAAC;AAEvC,MAAM,MAAM,WAAW,CAAC,SAAS,SAAS,MAAM,GAAG,MAAM,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,GAAG;IACrH,SAAS,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IAElC,QAAQ,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,WAAW,CAAC,SAAS,SAAS,MAAM,GAAG,MAAM,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,GAAG;IACrH,SAAS,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IAElC,QAAQ,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,wBAAwB,CAAC,KAAK,SAAS,WAAW,GAAG,WAAW,IAAI,WAAW,CAAC;IAC1F,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;CAC3B,CAAC,CAAC;AAEH,MAAM,MAAM,YAAY,CAAC,KAAK,SAAS,WAAW,GAAG,WAAW,IAAI,OAAO,CACzE,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,gBAAgB,CAAC,CAChD,GACC,QAAQ,CAAC;IACP,KAAK,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAErB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,wBAAwB,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;CACnE,CAAC,CAAC;AA4BL,QAAA,MAAM,gBAAgB,EAA0B,CAAC,KAAK,SAAS,WAAW,GAAG,WAAW,EACtF,KAAK,EAAE,YAAY,CAAC,KAAK,CAAC,GAAG,aAAa,CAAC,cAAc,CAAC,KACvD,YAAY,GAAG,IAAI,CAAC;AAEzB,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"MenuBar.d.ts","sourceRoot":"","sources":["src/MenuBar.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAiC,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7F,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,WAAW,IAAI,YAAY,EAChC,KAAK,YAAY,IAAI,aAAa,EAClC,KAAK,WAAW,IAAI,YAAY,EACjC,MAAM,wBAAwB,CAAC;AAGhC,cAAc,wBAAwB,CAAC;AAEvC,MAAM,MAAM,WAAW,CAAC,SAAS,SAAS,MAAM,GAAG,MAAM,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,GAAG;IACrH,SAAS,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IAElC,QAAQ,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,WAAW,CAAC,SAAS,SAAS,MAAM,GAAG,MAAM,IAAI,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,GAAG;IACrH,SAAS,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IAElC,QAAQ,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,wBAAwB,CAAC,KAAK,SAAS,WAAW,GAAG,WAAW,IAAI,WAAW,CAAC;IAC1F,KAAK,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;CAC3B,CAAC,CAAC;AAEH,MAAM,MAAM,YAAY,CAAC,KAAK,SAAS,WAAW,GAAG,WAAW,IAAI,OAAO,CACzE,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,gBAAgB,CAAC,CAChD,GACC,QAAQ,CAAC;IACP,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC;IAEhB,cAAc,CAAC,CAAC,KAAK,EAAE,wBAAwB,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC;CAC/D,CAAC,CAAC;AA4BL,QAAA,MAAM,gBAAgB,EAA0B,CAAC,KAAK,SAAS,WAAW,GAAG,WAAW,EACtF,KAAK,EAAE,YAAY,CAAC,KAAK,CAAC,GAAG,aAAa,CAAC,cAAc,CAAC,KACvD,YAAY,GAAG,IAAI,CAAC;AAEzB,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,CAAC"}
package/MenuBar.js CHANGED
@@ -1,2 +1,7 @@
1
- export*from"@vaadin/menu-bar/vaadin-menu-bar.js";import{forwardRef as s}from"react";import{MenuBar as u}from"@vaadin/menu-bar/vaadin-menu-bar.js";import*as p from"react";import{createComponent as M}from"./utils/createComponent.js";var I={onItemSelected:"item-selected"},a=M({elementClass:u,events:I,react:p,tagName:"vaadin-menu-bar"});import{getOriginalItem as l,mapItemsWithComponents as c}from"./utils/mapItemsWithComponents.js";import{jsxs as B}from"react/jsx-runtime";function d(e,r){let[m,o]=c(e.items,"vaadin-menu-bar-item"),n=e.onItemSelected;return B(a,{...e,ref:r,items:o,onItemSelected:n?t=>{Object.assign(t.detail,{value:l(t.detail.value)}),n(t)}:void 0,children:[e.children,m]})}var x=s(d);export{x as MenuBar,u as MenuBarElement};
1
+ export*from"@vaadin/menu-bar/vaadin-menu-bar.js";import{forwardRef as s}from"react";import{MenuBar as u}from"@vaadin/menu-bar/vaadin-menu-bar.js";import*as p from"react";import{createComponent as M}from"./utils/createComponent.js";var I={onItemSelected:"item-selected"},a=M({elementClass:u,events:I,react:p,tagName:"vaadin-menu-bar"});import{getOriginalItem as l,mapItemsWithComponents as c}from"./utils/mapItemsWithComponents.js";import{jsxs as B}from"react/jsx-runtime";function d(e,m){let[r,o]=c(e.items,"vaadin-menu-bar-item"),n=e.onItemSelected;return B(a,{...e,ref:m,items:o,onItemSelected:n?t=>{Object.assign(t.detail,{value:l(t.detail.value)}),n(t)}:void 0,children:[e.children,r]})}var x=s(d);export{x as MenuBar,u as MenuBarElement};
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
5
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
+ */
2
7
  //# sourceMappingURL=MenuBar.js.map
package/MenuBar.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["src/MenuBar.tsx", "src/generated/MenuBar.ts"],
4
- "sourcesContent": ["export * from \"@vaadin/menu-bar/vaadin-menu-bar.js\";\nimport { type ForwardedRef, forwardRef, type ReactElement, type RefAttributes } from 'react';\nimport {\n MenuBar as _MenuBar,\n type MenuBarElement,\n type MenuBarProps as _MenuBarProps,\n type MenuBarItem as _MenuBarItem,\n type SubMenuItem as _SubMenuItem,\n} from './generated/MenuBar.js';\nimport { getOriginalItem, mapItemsWithComponents } from './utils/mapItemsWithComponents.js';\n\nexport * from './generated/MenuBar.js';\n\nexport type SubMenuItem<TItemData extends object = object> = Omit<_SubMenuItem<TItemData>, 'component' | 'children'> & {\n component?: ReactElement | string;\n\n children?: Array<SubMenuItem<TItemData>>;\n};\n\nexport type MenuBarItem<TItemData extends object = object> = Omit<_MenuBarItem<TItemData>, 'component' | 'children'> & {\n component?: ReactElement | string;\n\n children?: Array<SubMenuItem<TItemData>>;\n};\n\nexport type MenuBarItemSelectedEvent<TItem extends MenuBarItem = MenuBarItem> = CustomEvent<{\n value: MenuBarItem<TItem>;\n}>;\n\nexport type MenuBarProps<TItem extends MenuBarItem = MenuBarItem> = Partial<\n Omit<_MenuBarProps, 'items' | 'onItemSelected'>\n> &\n Readonly<{\n items?: Array<TItem>;\n\n onItemSelected?: (event: MenuBarItemSelectedEvent<TItem>) => void;\n }>;\n\nfunction MenuBar<TItem extends MenuBarItem = MenuBarItem>(\n props: MenuBarProps<TItem>,\n ref: ForwardedRef<MenuBarElement>,\n): ReactElement | null {\n const [itemPortals, webComponentItems] = mapItemsWithComponents(props.items, 'vaadin-menu-bar-item');\n\n const onItemSelected = props.onItemSelected;\n const mappedOnItemSelected = onItemSelected\n ? (event: CustomEvent<{ value: _MenuBarItem }>) => {\n // Replace the mapped web component item with the original item\n Object.assign(event.detail, {\n value: getOriginalItem(event.detail.value),\n });\n\n onItemSelected(event as MenuBarItemSelectedEvent<TItem>);\n }\n : undefined;\n\n return (\n <_MenuBar {...props} ref={ref} items={webComponentItems} onItemSelected={mappedOnItemSelected}>\n {props.children}\n {itemPortals}\n </_MenuBar>\n );\n}\n\nconst ForwardedMenuBar = forwardRef(MenuBar) as <TItem extends MenuBarItem = MenuBarItem>(\n props: MenuBarProps<TItem> & RefAttributes<MenuBarElement>,\n) => ReactElement | null;\n\nexport { ForwardedMenuBar as MenuBar };\n", "import type { EventName } from \"@lit/react\";\nimport { MenuBar as MenuBarElement, type MenuBarEventMap as _MenuBarEventMap, } from \"@vaadin/menu-bar/vaadin-menu-bar.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { MenuBarElement, };\nexport type MenuBarEventMap = Readonly<{\n onItemSelected: EventName<_MenuBarEventMap[\"item-selected\"]>;\n}>;\nconst events = { onItemSelected: \"item-selected\" } as MenuBarEventMap;\nexport type MenuBarProps = WebComponentProps<MenuBarElement, MenuBarEventMap>;\nexport const MenuBar = createComponent({\n elementClass: MenuBarElement, events, react: React, tagName: \"vaadin-menu-bar\"\n});\n"],
5
- "mappings": "AAAA,WAAc,sCACd,OAA4B,cAAAA,MAAyD,QCArF,OAAS,WAAWC,MAAiE,sCACrF,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAKxD,IAAMC,EAAS,CAAE,eAAgB,eAAgB,EAEpCC,EAAUC,EAAgB,CACnC,aAAcC,EAAgB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,iBACjE,CAAC,EDHD,OAAS,mBAAAC,EAAiB,0BAAAC,MAA8B,oCAgDpD,eAAAC,MAAA,oBAnBJ,SAASC,EACPC,EACAC,EACqB,CACrB,GAAM,CAACC,EAAaC,CAAiB,EAAIN,EAAuBG,EAAM,MAAO,sBAAsB,EAE7FI,EAAiBJ,EAAM,eAY7B,OACEF,EAACC,EAAA,CAAU,GAAGC,EAAO,IAAKC,EAAK,MAAOE,EAAmB,eAZ9BC,EACxBC,GAAgD,CAE/C,OAAO,OAAOA,EAAM,OAAQ,CAC1B,MAAOT,EAAgBS,EAAM,OAAO,KAAK,CAC3C,CAAC,EAEDD,EAAeC,CAAwC,CACzD,EACA,OAIC,UAAAL,EAAM,SACNE,GACH,CAEJ,CAEA,IAAMI,EAAmBC,EAAWR,CAAO",
4
+ "sourcesContent": ["export * from \"@vaadin/menu-bar/vaadin-menu-bar.js\";\n/**\n * @license\n * Copyright (c) 2022 - 2026 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { type ForwardedRef, forwardRef, type ReactElement, type RefAttributes } from 'react';\nimport {\n MenuBar as _MenuBar,\n type MenuBarElement,\n type MenuBarItem as _MenuBarItem,\n type MenuBarProps as _MenuBarProps,\n type SubMenuItem as _SubMenuItem,\n} from './generated/MenuBar.js';\nimport { getOriginalItem, mapItemsWithComponents } from './utils/mapItemsWithComponents.js';\n\nexport * from './generated/MenuBar.js';\n\nexport type SubMenuItem<TItemData extends object = object> = Omit<_SubMenuItem<TItemData>, 'component' | 'children'> & {\n component?: ReactElement | string;\n\n children?: Array<SubMenuItem<TItemData>>;\n};\n\nexport type MenuBarItem<TItemData extends object = object> = Omit<_MenuBarItem<TItemData>, 'component' | 'children'> & {\n component?: ReactElement | string;\n\n children?: Array<SubMenuItem<TItemData>>;\n};\n\nexport type MenuBarItemSelectedEvent<TItem extends MenuBarItem = MenuBarItem> = CustomEvent<{\n value: MenuBarItem<TItem>;\n}>;\n\nexport type MenuBarProps<TItem extends MenuBarItem = MenuBarItem> = Partial<\n Omit<_MenuBarProps, 'items' | 'onItemSelected'>\n> &\n Readonly<{\n items?: TItem[];\n\n onItemSelected?(event: MenuBarItemSelectedEvent<TItem>): void;\n }>;\n\nfunction MenuBar<TItem extends MenuBarItem = MenuBarItem>(\n props: MenuBarProps<TItem>,\n ref: ForwardedRef<MenuBarElement>,\n): ReactElement | null {\n const [itemPortals, webComponentItems] = mapItemsWithComponents(props.items, 'vaadin-menu-bar-item');\n\n const onItemSelected = props.onItemSelected;\n const mappedOnItemSelected = onItemSelected\n ? (event: CustomEvent<{ value: _MenuBarItem }>) => {\n // Replace the mapped web component item with the original item\n Object.assign(event.detail, {\n value: getOriginalItem(event.detail.value),\n });\n\n onItemSelected(event as MenuBarItemSelectedEvent<TItem>);\n }\n : undefined;\n\n return (\n <_MenuBar {...props} ref={ref} items={webComponentItems} onItemSelected={mappedOnItemSelected}>\n {props.children}\n {itemPortals}\n </_MenuBar>\n );\n}\n\nconst ForwardedMenuBar = forwardRef(MenuBar) as <TItem extends MenuBarItem = MenuBarItem>(\n props: MenuBarProps<TItem> & RefAttributes<MenuBarElement>,\n) => ReactElement | null;\n\nexport { ForwardedMenuBar as MenuBar };\n", "import type { EventName } from \"@lit/react\";\nimport { MenuBar as MenuBarElement, type MenuBarEventMap as _MenuBarEventMap, } from \"@vaadin/menu-bar/vaadin-menu-bar.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { MenuBarElement };\nexport type MenuBarEventMap = Readonly<{\n onItemSelected: EventName<_MenuBarEventMap[\"item-selected\"]>;\n}>;\nconst events = { onItemSelected: \"item-selected\" } as MenuBarEventMap;\nexport type MenuBarProps = WebComponentProps<MenuBarElement, MenuBarEventMap>;\nexport const MenuBar = createComponent({\n elementClass: MenuBarElement,\n events,\n react: React,\n tagName: \"vaadin-menu-bar\",\n});\n"],
5
+ "mappings": "AAAA,WAAc,sCAMd,OAA4B,cAAAA,MAAyD,QCLrF,OAAS,WAAWC,MAAiE,sCACrF,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAKxD,IAAMC,EAAS,CAAE,eAAgB,eAAgB,EAEpCC,EAAUC,EAAgB,CACnC,aAAcC,EACd,OAAAH,EACA,MAAOI,EACP,QAAS,iBACb,CAAC,EDDD,OAAS,mBAAAC,EAAiB,0BAAAC,MAA8B,oCAgDpD,eAAAC,MAAA,oBAnBJ,SAASC,EACPC,EACAC,EACqB,CACrB,GAAM,CAACC,EAAaC,CAAiB,EAAIN,EAAuBG,EAAM,MAAO,sBAAsB,EAE7FI,EAAiBJ,EAAM,eAY7B,OACEF,EAACC,EAAA,CAAU,GAAGC,EAAO,IAAKC,EAAK,MAAOE,EAAmB,eAZ9BC,EACxBC,GAAgD,CAE/C,OAAO,OAAOA,EAAM,OAAQ,CAC1B,MAAOT,EAAgBS,EAAM,OAAO,KAAK,CAC3C,CAAC,EAEDD,EAAeC,CAAwC,CACzD,EACA,OAIC,UAAAL,EAAM,SACNE,GACH,CAEJ,CAEA,IAAMI,EAAmBC,EAAWR,CAAO",
6
6
  "names": ["forwardRef", "MenuBarElement", "React", "createComponent", "events", "MenuBar", "createComponent", "MenuBarElement", "React", "getOriginalItem", "mapItemsWithComponents", "jsxs", "MenuBar", "props", "ref", "itemPortals", "webComponentItems", "onItemSelected", "event", "ForwardedMenuBar", "forwardRef"]
7
7
  }
package/Message.d.ts CHANGED
@@ -1,2 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
1
6
  export * from './generated/Message.js';
2
7
  //# sourceMappingURL=Message.d.ts.map
package/Message.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["src/Message.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
1
+ {"version":3,"file":"Message.d.ts","sourceRoot":"","sources":["src/Message.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,wBAAwB,CAAC"}
package/Message.js CHANGED
@@ -1,2 +1,7 @@
1
1
  export*from"@vaadin/message-list/vaadin-message.js";import{Message as e}from"@vaadin/message-list/vaadin-message.js";import*as t from"react";import{createComponent as a}from"./utils/createComponent.js";var s={onAttachmentClick:"attachment-click"},p=a({elementClass:e,events:s,react:t,tagName:"vaadin-message"});export{p as Message,e as MessageElement};
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
5
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
+ */
2
7
  //# sourceMappingURL=Message.js.map
package/Message.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["src/Message.ts", "src/generated/Message.ts"],
4
- "sourcesContent": ["export * from \"@vaadin/message-list/vaadin-message.js\";\nexport * from './generated/Message.js';\n", "import type { EventName } from \"@lit/react\";\nimport { Message as MessageElement, type MessageEventMap as _MessageEventMap, } from \"@vaadin/message-list/vaadin-message.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { MessageElement, };\nexport type MessageEventMap = Readonly<{\n onAttachmentClick: EventName<_MessageEventMap[\"attachment-click\"]>;\n}>;\nconst events = { onAttachmentClick: \"attachment-click\" } as MessageEventMap;\nexport type MessageProps = WebComponentProps<MessageElement, MessageEventMap>;\nexport const Message = createComponent({\n elementClass: MessageElement, events, react: React, tagName: \"vaadin-message\"\n});\n"],
5
- "mappings": "AAAA,WAAc,yCCCd,OAAS,WAAWA,MAAiE,yCACrF,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAKxD,IAAMC,EAAS,CAAE,kBAAmB,kBAAmB,EAE1CC,EAAUC,EAAgB,CACnC,aAAcC,EAAgB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,gBACjE,CAAC",
4
+ "sourcesContent": ["export * from \"@vaadin/message-list/vaadin-message.js\";\n/**\n * @license\n * Copyright (c) 2022 - 2026 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\n\nexport * from './generated/Message.js';\n", "import type { EventName } from \"@lit/react\";\nimport { Message as MessageElement, type MessageEventMap as _MessageEventMap, } from \"@vaadin/message-list/vaadin-message.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { MessageElement };\nexport type MessageEventMap = Readonly<{\n onAttachmentClick: EventName<_MessageEventMap[\"attachment-click\"]>;\n}>;\nconst events = { onAttachmentClick: \"attachment-click\" } as MessageEventMap;\nexport type MessageProps = WebComponentProps<MessageElement, MessageEventMap>;\nexport const Message = createComponent({\n elementClass: MessageElement,\n events,\n react: React,\n tagName: \"vaadin-message\",\n});\n"],
5
+ "mappings": "AAAA,WAAc,yCCCd,OAAS,WAAWA,MAAiE,yCACrF,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAKxD,IAAMC,EAAS,CAAE,kBAAmB,kBAAmB,EAE1CC,EAAUC,EAAgB,CACnC,aAAcC,EACd,OAAAH,EACA,MAAOI,EACP,QAAS,gBACb,CAAC",
6
6
  "names": ["MessageElement", "React", "createComponent", "events", "Message", "createComponent", "MessageElement", "React"]
7
7
  }
package/MessageInput.d.ts CHANGED
@@ -1,2 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
1
6
  export * from './generated/MessageInput.js';
2
7
  //# sourceMappingURL=MessageInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageInput.d.ts","sourceRoot":"","sources":["src/MessageInput.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC"}
1
+ {"version":3,"file":"MessageInput.d.ts","sourceRoot":"","sources":["src/MessageInput.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,6BAA6B,CAAC"}
package/MessageInput.js CHANGED
@@ -1,2 +1,7 @@
1
1
  export*from"@vaadin/message-input/vaadin-message-input.js";import{MessageInput as e}from"@vaadin/message-input/vaadin-message-input.js";import*as t from"react";import{createComponent as p}from"./utils/createComponent.js";var s={onSubmit:"submit"},o=p({elementClass:e,events:s,react:t,tagName:"vaadin-message-input"});export{o as MessageInput,e as MessageInputElement};
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
5
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
+ */
2
7
  //# sourceMappingURL=MessageInput.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["src/MessageInput.ts", "src/generated/MessageInput.ts"],
4
- "sourcesContent": ["export * from \"@vaadin/message-input/vaadin-message-input.js\";\nexport * from './generated/MessageInput.js';\n", "import type { EventName } from \"@lit/react\";\nimport { MessageInput as MessageInputElement, type MessageInputEventMap as _MessageInputEventMap, } from \"@vaadin/message-input/vaadin-message-input.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { MessageInputElement, };\nexport type MessageInputEventMap = Readonly<{\n onSubmit: EventName<_MessageInputEventMap[\"submit\"]>;\n}>;\nconst events = { onSubmit: \"submit\" } as MessageInputEventMap;\nexport type MessageInputProps = WebComponentProps<MessageInputElement, MessageInputEventMap>;\nexport const MessageInput = createComponent({\n elementClass: MessageInputElement, events, react: React, tagName: \"vaadin-message-input\"\n});\n"],
5
- "mappings": "AAAA,WAAc,gDCCd,OAAS,gBAAgBA,MAAgF,gDACzG,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAKxD,IAAMC,EAAS,CAAE,SAAU,QAAS,EAEvBC,EAAeC,EAAgB,CACxC,aAAcC,EAAqB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,sBACtE,CAAC",
4
+ "sourcesContent": ["export * from \"@vaadin/message-input/vaadin-message-input.js\";\n/**\n * @license\n * Copyright (c) 2022 - 2026 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\n\nexport * from './generated/MessageInput.js';\n", "import type { EventName } from \"@lit/react\";\nimport { MessageInput as MessageInputElement, type MessageInputEventMap as _MessageInputEventMap, } from \"@vaadin/message-input/vaadin-message-input.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { MessageInputElement };\nexport type MessageInputEventMap = Readonly<{\n onSubmit: EventName<_MessageInputEventMap[\"submit\"]>;\n}>;\nconst events = { onSubmit: \"submit\" } as MessageInputEventMap;\nexport type MessageInputProps = WebComponentProps<MessageInputElement, MessageInputEventMap>;\nexport const MessageInput = createComponent({\n elementClass: MessageInputElement,\n events,\n react: React,\n tagName: \"vaadin-message-input\",\n});\n"],
5
+ "mappings": "AAAA,WAAc,gDCCd,OAAS,gBAAgBA,MAAgF,gDACzG,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAKxD,IAAMC,EAAS,CAAE,SAAU,QAAS,EAEvBC,EAAeC,EAAgB,CACxC,aAAcC,EACd,OAAAH,EACA,MAAOI,EACP,QAAS,sBACb,CAAC",
6
6
  "names": ["MessageInputElement", "React", "createComponent", "events", "MessageInput", "createComponent", "MessageInputElement", "React"]
7
7
  }
package/MessageList.d.ts CHANGED
@@ -1,2 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
1
6
  export * from './generated/MessageList.js';
2
7
  //# sourceMappingURL=MessageList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["src/MessageList.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"MessageList.d.ts","sourceRoot":"","sources":["src/MessageList.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,4BAA4B,CAAC"}
package/MessageList.js CHANGED
@@ -1,2 +1,7 @@
1
1
  export*from"@vaadin/message-list/vaadin-message-list.js";import{MessageList as e}from"@vaadin/message-list/vaadin-message-list.js";import*as t from"react";import{createComponent as s}from"./utils/createComponent.js";var a={onAttachmentClick:"attachment-click"},p=s({elementClass:e,events:a,react:t,tagName:"vaadin-message-list"});export{p as MessageList,e as MessageListElement};
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
5
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
+ */
2
7
  //# sourceMappingURL=MessageList.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["src/MessageList.ts", "src/generated/MessageList.ts"],
4
- "sourcesContent": ["export * from \"@vaadin/message-list/vaadin-message-list.js\";\nexport * from './generated/MessageList.js';\n", "import type { EventName } from \"@lit/react\";\nimport { MessageList as MessageListElement, type MessageListEventMap as _MessageListEventMap, } from \"@vaadin/message-list/vaadin-message-list.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { MessageListElement, };\nexport type MessageListEventMap = Readonly<{\n onAttachmentClick: EventName<_MessageListEventMap[\"attachment-click\"]>;\n}>;\nconst events = { onAttachmentClick: \"attachment-click\" } as MessageListEventMap;\nexport type MessageListProps = WebComponentProps<MessageListElement, MessageListEventMap>;\nexport const MessageList = createComponent({\n elementClass: MessageListElement, events, react: React, tagName: \"vaadin-message-list\"\n});\n"],
5
- "mappings": "AAAA,WAAc,8CCCd,OAAS,eAAeA,MAA6E,8CACrG,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAKxD,IAAMC,EAAS,CAAE,kBAAmB,kBAAmB,EAE1CC,EAAcC,EAAgB,CACvC,aAAcC,EAAoB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,qBACrE,CAAC",
4
+ "sourcesContent": ["export * from \"@vaadin/message-list/vaadin-message-list.js\";\n/**\n * @license\n * Copyright (c) 2022 - 2026 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\n\nexport * from './generated/MessageList.js';\n", "import type { EventName } from \"@lit/react\";\nimport { MessageList as MessageListElement, type MessageListEventMap as _MessageListEventMap, } from \"@vaadin/message-list/vaadin-message-list.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { MessageListElement };\nexport type MessageListEventMap = Readonly<{\n onAttachmentClick: EventName<_MessageListEventMap[\"attachment-click\"]>;\n}>;\nconst events = { onAttachmentClick: \"attachment-click\" } as MessageListEventMap;\nexport type MessageListProps = WebComponentProps<MessageListElement, MessageListEventMap>;\nexport const MessageList = createComponent({\n elementClass: MessageListElement,\n events,\n react: React,\n tagName: \"vaadin-message-list\",\n});\n"],
5
+ "mappings": "AAAA,WAAc,8CCCd,OAAS,eAAeA,MAA6E,8CACrG,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAKxD,IAAMC,EAAS,CAAE,kBAAmB,kBAAmB,EAE1CC,EAAcC,EAAgB,CACvC,aAAcC,EACd,OAAAH,EACA,MAAOI,EACP,QAAS,qBACb,CAAC",
6
6
  "names": ["MessageListElement", "React", "createComponent", "events", "MessageList", "createComponent", "MessageListElement", "React"]
7
7
  }
@@ -1,5 +1,10 @@
1
- import type { ComboBoxDefaultItem } from '@vaadin/combo-box';
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
2
6
  import { type ComponentType, type ReactElement, type RefAttributes } from 'react';
7
+ import type { ComboBoxDefaultItem } from '@vaadin/combo-box';
3
8
  import { type MultiSelectComboBoxElement, type MultiSelectComboBoxProps as _MultiSelectComboBoxProps } from './generated/MultiSelectComboBox.js';
4
9
  import type { MultiSelectComboBoxReactRendererProps } from './renderers/multiSelectCombobox.js';
5
10
  export * from './generated/MultiSelectComboBox.js';
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSelectComboBox.d.ts","sourceRoot":"","sources":["src/MultiSelectComboBox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,KAAK,aAAa,EAAc,KAAK,YAAY,EAAE,KAAK,aAAa,EAAqB,MAAM,OAAO,CAAC;AACjH,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,IAAI,yBAAyB,EAC3D,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAGhG,cAAc,oCAAoC,CAAC;AAEnD,MAAM,MAAM,wBAAwB,CAAC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,yBAAyB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC,GACvG,QAAQ,CAAC;IACP,QAAQ,CAAC,EAAE,aAAa,CAAC,qCAAqC,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC;CAC/E,CAAC,CAAC;AAgBL,QAAA,MAAM,4BAA4B,EAAsC,CAAC,KAAK,GAAG,mBAAmB,EAClG,KAAK,EAAE,wBAAwB,CAAC,KAAK,CAAC,GAAG,aAAa,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC,KACtF,YAAY,GAAG,IAAI,CAAC;AAEzB,OAAO,EAAE,4BAA4B,IAAI,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"MultiSelectComboBox.d.ts","sourceRoot":"","sources":["src/MultiSelectComboBox.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EAAE,KAAK,aAAa,EAAiC,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AACjH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAEL,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,IAAI,yBAAyB,EAC3D,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,qCAAqC,EAAE,MAAM,oCAAoC,CAAC;AAGhG,cAAc,oCAAoC,CAAC;AAEnD,MAAM,MAAM,wBAAwB,CAAC,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,yBAAyB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC,GACvG,QAAQ,CAAC;IACP,QAAQ,CAAC,EAAE,aAAa,CAAC,qCAAqC,CAAC,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC;CAC/E,CAAC,CAAC;AAgBL,QAAA,MAAM,4BAA4B,EAAsC,CAAC,KAAK,GAAG,mBAAmB,EAClG,KAAK,EAAE,wBAAwB,CAAC,KAAK,CAAC,GAAG,aAAa,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC,KACtF,YAAY,GAAG,IAAI,CAAC;AAEzB,OAAO,EAAE,4BAA4B,IAAI,mBAAmB,EAAE,CAAC"}
@@ -1,2 +1,7 @@
1
1
  export*from"@vaadin/multi-select-combo-box/vaadin-multi-select-combo-box.js";import{forwardRef as i}from"react";import{MultiSelectComboBox as n}from"@vaadin/multi-select-combo-box/vaadin-multi-select-combo-box.js";import*as a from"react";import{createComponent as r}from"./utils/createComponent.js";var c={onChange:"change",onCustomValueSet:"custom-value-set",onFilterChanged:"filter-changed",onInvalidChanged:"invalid-changed",onOpenedChanged:"opened-changed",onSelectedItemsChanged:"selected-items-changed",onValidated:"validated"},t=r({elementClass:n,events:c,react:a,tagName:"vaadin-multi-select-combo-box"});import{useModelRenderer as p}from"./renderers/useModelRenderer.js";import{jsxs as u}from"react/jsx-runtime";function d(e,o){let[l,m]=p(e.renderer);return u(t,{...e,ref:o,renderer:m,children:[e.children,l]})}var B=i(d);export{B as MultiSelectComboBox,n as MultiSelectComboBoxElement};
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
5
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
+ */
2
7
  //# sourceMappingURL=MultiSelectComboBox.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["src/MultiSelectComboBox.tsx", "src/generated/MultiSelectComboBox.ts"],
4
- "sourcesContent": ["export * from \"@vaadin/multi-select-combo-box/vaadin-multi-select-combo-box.js\";\nimport type { ComboBoxDefaultItem } from '@vaadin/combo-box';\nimport { type ComponentType, forwardRef, type ReactElement, type RefAttributes, type ForwardedRef } from 'react';\nimport {\n MultiSelectComboBox as _MultiSelectComboBox,\n type MultiSelectComboBoxElement,\n type MultiSelectComboBoxProps as _MultiSelectComboBoxProps,\n} from './generated/MultiSelectComboBox.js';\nimport type { MultiSelectComboBoxReactRendererProps } from './renderers/multiSelectCombobox.js';\nimport { useModelRenderer } from './renderers/useModelRenderer.js';\n\nexport * from './generated/MultiSelectComboBox.js';\n\nexport type MultiSelectComboBoxProps<TItem> = Partial<Omit<_MultiSelectComboBoxProps<TItem>, 'renderer'>> &\n Readonly<{\n renderer?: ComponentType<MultiSelectComboBoxReactRendererProps<TItem>> | null;\n }>;\n\nfunction MultiSelectComboBox<TItem = ComboBoxDefaultItem>(\n props: MultiSelectComboBoxProps<TItem>,\n ref: ForwardedRef<MultiSelectComboBoxElement<TItem>>,\n): ReactElement | null {\n const [portals, renderer] = useModelRenderer(props.renderer);\n\n return (\n <_MultiSelectComboBox<TItem> {...props} ref={ref} renderer={renderer}>\n {props.children}\n {portals}\n </_MultiSelectComboBox>\n );\n}\n\nconst ForwardedMultiSelectComboBox = forwardRef(MultiSelectComboBox) as <TItem = ComboBoxDefaultItem>(\n props: MultiSelectComboBoxProps<TItem> & RefAttributes<MultiSelectComboBoxElement<TItem>>,\n) => ReactElement | null;\n\nexport { ForwardedMultiSelectComboBox as MultiSelectComboBox };\n", "import type { EventName } from \"@lit/react\";\nimport { MultiSelectComboBox as MultiSelectComboBoxElement, type MultiSelectComboBoxEventMap as _MultiSelectComboBoxEventMap, } from \"@vaadin/multi-select-combo-box/vaadin-multi-select-combo-box.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { MultiSelectComboBoxElement, };\nexport type MultiSelectComboBoxEventMap<T1> = Readonly<{\n onChange: EventName<_MultiSelectComboBoxEventMap<T1>[\"change\"]>;\n onCustomValueSet: EventName<_MultiSelectComboBoxEventMap<T1>[\"custom-value-set\"]>;\n onFilterChanged: EventName<_MultiSelectComboBoxEventMap<T1>[\"filter-changed\"]>;\n onInvalidChanged: EventName<_MultiSelectComboBoxEventMap<T1>[\"invalid-changed\"]>;\n onOpenedChanged: EventName<_MultiSelectComboBoxEventMap<T1>[\"opened-changed\"]>;\n onSelectedItemsChanged: EventName<_MultiSelectComboBoxEventMap<T1>[\"selected-items-changed\"]>;\n onValidated: EventName<_MultiSelectComboBoxEventMap<T1>[\"validated\"]>;\n}>;\nconst events = { onChange: \"change\", onCustomValueSet: \"custom-value-set\", onFilterChanged: \"filter-changed\", onInvalidChanged: \"invalid-changed\", onOpenedChanged: \"opened-changed\", onSelectedItemsChanged: \"selected-items-changed\", onValidated: \"validated\" } as MultiSelectComboBoxEventMap<any>;\nexport type MultiSelectComboBoxProps<T1> = WebComponentProps<MultiSelectComboBoxElement<T1>, MultiSelectComboBoxEventMap<T1>>;\nexport const MultiSelectComboBox = createComponent({\n elementClass: MultiSelectComboBoxElement, events, react: React, tagName: \"vaadin-multi-select-combo-box\"\n}) as <T1>(props: MultiSelectComboBoxProps<T1> & React.RefAttributes<MultiSelectComboBoxElement<T1>>) => React.ReactElement | null;\n"],
5
- "mappings": "AAAA,WAAc,kEAEd,OAA6B,cAAAA,MAA4E,QCDzG,OAAS,uBAAuBC,MAAqG,kEACrI,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAWxD,IAAMC,EAAS,CAAE,SAAU,SAAU,iBAAkB,mBAAoB,gBAAiB,iBAAkB,iBAAkB,kBAAmB,gBAAiB,iBAAkB,uBAAwB,yBAA0B,YAAa,WAAY,EAEpPC,EAAsBC,EAAgB,CAC/C,aAAcC,EAA4B,OAAAH,EAAQ,MAAOI,EAAO,QAAS,+BAC7E,CAAC,EDTD,OAAS,oBAAAC,MAAwB,kCAgB7B,eAAAC,MAAA,oBAPJ,SAASC,EACPC,EACAC,EACqB,CACrB,GAAM,CAACC,EAASC,CAAQ,EAAIN,EAAiBG,EAAM,QAAQ,EAE3D,OACEF,EAACC,EAAA,CAA6B,GAAGC,EAAO,IAAKC,EAAK,SAAUE,EACzD,UAAAH,EAAM,SACNE,GACH,CAEJ,CAEA,IAAME,EAA+BC,EAAWN,CAAmB",
4
+ "sourcesContent": ["export * from \"@vaadin/multi-select-combo-box/vaadin-multi-select-combo-box.js\";\n/**\n * @license\n * Copyright (c) 2022 - 2026 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport { type ComponentType, type ForwardedRef, forwardRef, type ReactElement, type RefAttributes } from 'react';\nimport type { ComboBoxDefaultItem } from '@vaadin/combo-box';\nimport {\n MultiSelectComboBox as _MultiSelectComboBox,\n type MultiSelectComboBoxElement,\n type MultiSelectComboBoxProps as _MultiSelectComboBoxProps,\n} from './generated/MultiSelectComboBox.js';\nimport type { MultiSelectComboBoxReactRendererProps } from './renderers/multiSelectCombobox.js';\nimport { useModelRenderer } from './renderers/useModelRenderer.js';\n\nexport * from './generated/MultiSelectComboBox.js';\n\nexport type MultiSelectComboBoxProps<TItem> = Partial<Omit<_MultiSelectComboBoxProps<TItem>, 'renderer'>> &\n Readonly<{\n renderer?: ComponentType<MultiSelectComboBoxReactRendererProps<TItem>> | null;\n }>;\n\nfunction MultiSelectComboBox<TItem = ComboBoxDefaultItem>(\n props: MultiSelectComboBoxProps<TItem>,\n ref: ForwardedRef<MultiSelectComboBoxElement<TItem>>,\n): ReactElement | null {\n const [portals, renderer] = useModelRenderer(props.renderer);\n\n return (\n <_MultiSelectComboBox<TItem> {...props} ref={ref} renderer={renderer}>\n {props.children}\n {portals}\n </_MultiSelectComboBox>\n );\n}\n\nconst ForwardedMultiSelectComboBox = forwardRef(MultiSelectComboBox) as <TItem = ComboBoxDefaultItem>(\n props: MultiSelectComboBoxProps<TItem> & RefAttributes<MultiSelectComboBoxElement<TItem>>,\n) => ReactElement | null;\n\nexport { ForwardedMultiSelectComboBox as MultiSelectComboBox };\n", "import type { EventName } from \"@lit/react\";\nimport { MultiSelectComboBox as MultiSelectComboBoxElement, type MultiSelectComboBoxEventMap as _MultiSelectComboBoxEventMap, } from \"@vaadin/multi-select-combo-box/vaadin-multi-select-combo-box.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { MultiSelectComboBoxElement };\nexport type MultiSelectComboBoxEventMap<T1> = Readonly<{\n onChange: EventName<_MultiSelectComboBoxEventMap<T1>[\"change\"]>;\n onCustomValueSet: EventName<_MultiSelectComboBoxEventMap<T1>[\"custom-value-set\"]>;\n onFilterChanged: EventName<_MultiSelectComboBoxEventMap<T1>[\"filter-changed\"]>;\n onInvalidChanged: EventName<_MultiSelectComboBoxEventMap<T1>[\"invalid-changed\"]>;\n onOpenedChanged: EventName<_MultiSelectComboBoxEventMap<T1>[\"opened-changed\"]>;\n onSelectedItemsChanged: EventName<_MultiSelectComboBoxEventMap<T1>[\"selected-items-changed\"]>;\n onValidated: EventName<_MultiSelectComboBoxEventMap<T1>[\"validated\"]>;\n}>;\nconst events = { onChange: \"change\", onCustomValueSet: \"custom-value-set\", onFilterChanged: \"filter-changed\", onInvalidChanged: \"invalid-changed\", onOpenedChanged: \"opened-changed\", onSelectedItemsChanged: \"selected-items-changed\", onValidated: \"validated\" } as MultiSelectComboBoxEventMap<any>;\nexport type MultiSelectComboBoxProps<T1> = WebComponentProps<MultiSelectComboBoxElement<T1>, MultiSelectComboBoxEventMap<T1>>;\nexport const MultiSelectComboBox = createComponent({\n elementClass: MultiSelectComboBoxElement,\n events,\n react: React,\n tagName: \"vaadin-multi-select-combo-box\",\n}) as <T1>(props: MultiSelectComboBoxProps<T1> & React.RefAttributes<MultiSelectComboBoxElement<T1>>) => React.ReactElement | null;\n"],
5
+ "mappings": "AAAA,WAAc,kEAMd,OAAgD,cAAAA,MAAyD,QCLzG,OAAS,uBAAuBC,MAAqG,kEACrI,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAWxD,IAAMC,EAAS,CAAE,SAAU,SAAU,iBAAkB,mBAAoB,gBAAiB,iBAAkB,iBAAkB,kBAAmB,gBAAiB,iBAAkB,uBAAwB,yBAA0B,YAAa,WAAY,EAEpPC,EAAsBC,EAAgB,CAC/C,aAAcC,EACd,OAAAH,EACA,MAAOI,EACP,QAAS,+BACb,CAAC,EDPD,OAAS,oBAAAC,MAAwB,kCAgB7B,eAAAC,MAAA,oBAPJ,SAASC,EACPC,EACAC,EACqB,CACrB,GAAM,CAACC,EAASC,CAAQ,EAAIN,EAAiBG,EAAM,QAAQ,EAE3D,OACEF,EAACC,EAAA,CAA6B,GAAGC,EAAO,IAAKC,EAAK,SAAUE,EACzD,UAAAH,EAAM,SACNE,GACH,CAEJ,CAEA,IAAME,EAA+BC,EAAWN,CAAmB",
6
6
  "names": ["forwardRef", "MultiSelectComboBoxElement", "React", "createComponent", "events", "MultiSelectComboBox", "createComponent", "MultiSelectComboBoxElement", "React", "useModelRenderer", "jsxs", "MultiSelectComboBox", "props", "ref", "portals", "renderer", "ForwardedMultiSelectComboBox", "forwardRef"]
7
7
  }
package/Notification.d.ts CHANGED
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
1
6
  import { type ComponentType, type ForwardRefExoticComponent, type HTMLAttributes, type ReactNode, type RefAttributes } from 'react';
2
7
  import { NotificationElement, type NotificationProps as _NotificationProps, type ShowOptions } from './generated/Notification.js';
3
8
  import type { ReactSimpleRendererProps } from './renderers/useSimpleRenderer.js';
@@ -1 +1 @@
1
- {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["src/Notification.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAGlB,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EAEnB,KAAK,SAAS,EACd,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AACf,OAAO,EAEL,mBAAmB,EACnB,KAAK,iBAAiB,IAAI,kBAAkB,EAC5C,KAAK,WAAW,EACjB,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAEjF,cAAc,6BAA6B,CAAC;AAE5C,MAAM,MAAM,8BAA8B,GAAG,wBAAwB,CAAC,mBAAmB,CAAC,CAAC;AAE3F,KAAK,iCAAiC,GAAG,IAAI,CAC3C,cAAc,CAAC,mBAAmB,CAAC,EACnC,IAAI,GAAG,WAAW,GAAG,yBAAyB,GAAG,MAAM,CACxD,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACrC,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,iCAAiC,CAAC,CAC5F,GACC,QAAQ,CAAC;IACP,QAAQ,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC,8BAA8B,CAAC,CAAC;IACrE,QAAQ,CAAC,EAAE,aAAa,CAAC,8BAA8B,CAAC,CAAC;CAC1D,CAAC,CAAC;AAeL,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,CAAC,iBAAiB,GAAG,aAAa,CAAC,mBAAmB,CAAC,CAAC,GAAG;IACrH,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,mBAAmB,CAAC;CACpE,CAAC;AAEF,QAAA,MAAM,qBAAqB,EAA+B,oBAAoB,CAAC;AAG/E,OAAO,EAAE,qBAAqB,IAAI,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"Notification.d.ts","sourceRoot":"","sources":["src/Notification.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACL,KAAK,aAAa,EAGlB,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EAEnB,KAAK,SAAS,EACd,KAAK,aAAa,EACnB,MAAM,OAAO,CAAC;AACf,OAAO,EAEL,mBAAmB,EACnB,KAAK,iBAAiB,IAAI,kBAAkB,EAC5C,KAAK,WAAW,EACjB,MAAM,6BAA6B,CAAC;AAErC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAEjF,cAAc,6BAA6B,CAAC;AAE5C,MAAM,MAAM,8BAA8B,GAAG,wBAAwB,CAAC,mBAAmB,CAAC,CAAC;AAE3F,KAAK,iCAAiC,GAAG,IAAI,CAC3C,cAAc,CAAC,mBAAmB,CAAC,EACnC,IAAI,GAAG,WAAW,GAAG,yBAAyB,GAAG,MAAM,CACxD,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,OAAO,CACrC,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,iCAAiC,CAAC,CAC5F,GACC,QAAQ,CAAC;IACP,QAAQ,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC,8BAA8B,CAAC,CAAC;IACrE,QAAQ,CAAC,EAAE,aAAa,CAAC,8BAA8B,CAAC,CAAC;CAC1D,CAAC,CAAC;AAeL,MAAM,MAAM,oBAAoB,GAAG,yBAAyB,CAAC,iBAAiB,GAAG,aAAa,CAAC,mBAAmB,CAAC,CAAC,GAAG;IACrH,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,mBAAmB,CAAC;CACpE,CAAC;AAEF,QAAA,MAAM,qBAAqB,EAA+B,oBAAoB,CAAC;AAG/E,OAAO,EAAE,qBAAqB,IAAI,YAAY,EAAE,CAAC"}
package/Notification.js CHANGED
@@ -1,2 +1,7 @@
1
1
  export*from"@vaadin/notification/vaadin-notification.js";import{forwardRef as s}from"react";import{Notification as t}from"@vaadin/notification/vaadin-notification.js";import*as p from"react";import{createComponent as c}from"./utils/createComponent.js";var f={onClosed:"closed",onOpenedChanged:"opened-changed"},o=c({elementClass:t,events:f,react:p,tagName:"vaadin-notification"});import{useSimpleOrChildrenRenderer as m}from"./renderers/useSimpleOrChildrenRenderer.js";import{jsx as l}from"react/jsx-runtime";function d({children:i,...e},n){let[r,a]=m(e.renderer,i);return l(o,{...e,ref:n,renderer:a,children:r})}var N=s(d);N.show=t.show;export{N as Notification,t as NotificationElement};
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
5
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
+ */
2
7
  //# sourceMappingURL=Notification.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["src/Notification.tsx", "src/generated/Notification.ts"],
4
- "sourcesContent": ["export * from \"@vaadin/notification/vaadin-notification.js\";\nimport {\n type ComponentType,\n type ForwardedRef,\n forwardRef,\n type ForwardRefExoticComponent,\n type HTMLAttributes,\n type ReactElement,\n type ReactNode,\n type RefAttributes,\n} from 'react';\nimport {\n Notification as _Notification,\n NotificationElement,\n type NotificationProps as _NotificationProps,\n type ShowOptions,\n} from './generated/Notification.js';\nimport { useSimpleOrChildrenRenderer } from './renderers/useSimpleOrChildrenRenderer.js';\nimport type { ReactSimpleRendererProps } from './renderers/useSimpleRenderer.js';\n\nexport * from './generated/Notification.js';\n\nexport type NotificationReactRendererProps = ReactSimpleRendererProps<NotificationElement>;\n\ntype OmittedNotificationHTMLAttributes = Omit<\n HTMLAttributes<NotificationElement>,\n 'id' | 'className' | 'dangerouslySetInnerHTML' | 'slot'\n>;\n\nexport type NotificationProps = Partial<\n Omit<_NotificationProps, 'children' | 'renderer' | keyof OmittedNotificationHTMLAttributes>\n> &\n Readonly<{\n children?: ReactNode | ComponentType<NotificationReactRendererProps>;\n renderer?: ComponentType<NotificationReactRendererProps>;\n }>;\n\nfunction Notification(\n { children, ...props }: NotificationProps,\n ref: ForwardedRef<NotificationElement>,\n): ReactElement | null {\n const [portals, renderer] = useSimpleOrChildrenRenderer(props.renderer, children);\n\n return (\n <_Notification {...props} ref={ref} renderer={renderer}>\n {portals}\n </_Notification>\n );\n}\n\nexport type NotificationFunction = ForwardRefExoticComponent<NotificationProps & RefAttributes<NotificationElement>> & {\n show(contents: string, options?: ShowOptions): NotificationElement;\n};\n\nconst ForwardedNotification = forwardRef(Notification) as NotificationFunction;\nForwardedNotification.show = NotificationElement.show;\n\nexport { ForwardedNotification as Notification };\n", "import type { EventName } from \"@lit/react\";\nimport { Notification as NotificationElement, type NotificationEventMap as _NotificationEventMap, } from \"@vaadin/notification/vaadin-notification.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { NotificationElement, };\nexport type NotificationEventMap = Readonly<{\n onClosed: EventName<_NotificationEventMap[\"closed\"]>;\n onOpenedChanged: EventName<_NotificationEventMap[\"opened-changed\"]>;\n}>;\nconst events = { onClosed: \"closed\", onOpenedChanged: \"opened-changed\" } as NotificationEventMap;\nexport type NotificationProps = WebComponentProps<NotificationElement, NotificationEventMap>;\nexport const Notification = createComponent({\n elementClass: NotificationElement, events, react: React, tagName: \"vaadin-notification\"\n});\n"],
5
- "mappings": "AAAA,WAAc,8CACd,OAGE,cAAAA,MAMK,QCTP,OAAS,gBAAgBC,MAAgF,8CACzG,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAMxD,IAAMC,EAAS,CAAE,SAAU,SAAU,gBAAiB,gBAAiB,EAE1DC,EAAeC,EAAgB,CACxC,aAAcC,EAAqB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,qBACtE,CAAC,EDID,OAAS,+BAAAC,MAAmC,6CA2BxC,cAAAC,MAAA,oBAPJ,SAASC,EACP,CAAE,SAAAC,EAAU,GAAGC,CAAM,EACrBC,EACqB,CACrB,GAAM,CAACC,EAASC,CAAQ,EAAIP,EAA4BI,EAAM,SAAUD,CAAQ,EAEhF,OACEF,EAACC,EAAA,CAAe,GAAGE,EAAO,IAAKC,EAAK,SAAUE,EAC3C,SAAAD,EACH,CAEJ,CAMA,IAAME,EAAwBC,EAAWP,CAAY,EACrDM,EAAsB,KAAOE,EAAoB",
4
+ "sourcesContent": ["export * from \"@vaadin/notification/vaadin-notification.js\";\n/**\n * @license\n * Copyright (c) 2022 - 2026 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport {\n type ComponentType,\n type ForwardedRef,\n forwardRef,\n type ForwardRefExoticComponent,\n type HTMLAttributes,\n type ReactElement,\n type ReactNode,\n type RefAttributes,\n} from 'react';\nimport {\n Notification as _Notification,\n NotificationElement,\n type NotificationProps as _NotificationProps,\n type ShowOptions,\n} from './generated/Notification.js';\nimport { useSimpleOrChildrenRenderer } from './renderers/useSimpleOrChildrenRenderer.js';\nimport type { ReactSimpleRendererProps } from './renderers/useSimpleRenderer.js';\n\nexport * from './generated/Notification.js';\n\nexport type NotificationReactRendererProps = ReactSimpleRendererProps<NotificationElement>;\n\ntype OmittedNotificationHTMLAttributes = Omit<\n HTMLAttributes<NotificationElement>,\n 'id' | 'className' | 'dangerouslySetInnerHTML' | 'slot'\n>;\n\nexport type NotificationProps = Partial<\n Omit<_NotificationProps, 'children' | 'renderer' | keyof OmittedNotificationHTMLAttributes>\n> &\n Readonly<{\n children?: ReactNode | ComponentType<NotificationReactRendererProps>;\n renderer?: ComponentType<NotificationReactRendererProps>;\n }>;\n\nfunction Notification(\n { children, ...props }: NotificationProps,\n ref: ForwardedRef<NotificationElement>,\n): ReactElement | null {\n const [portals, renderer] = useSimpleOrChildrenRenderer(props.renderer, children);\n\n return (\n <_Notification {...props} ref={ref} renderer={renderer}>\n {portals}\n </_Notification>\n );\n}\n\nexport type NotificationFunction = ForwardRefExoticComponent<NotificationProps & RefAttributes<NotificationElement>> & {\n show(contents: string, options?: ShowOptions): NotificationElement;\n};\n\nconst ForwardedNotification = forwardRef(Notification) as NotificationFunction;\nForwardedNotification.show = NotificationElement.show;\n\nexport { ForwardedNotification as Notification };\n", "import type { EventName } from \"@lit/react\";\nimport { Notification as NotificationElement, type NotificationEventMap as _NotificationEventMap, } from \"@vaadin/notification/vaadin-notification.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { NotificationElement };\nexport type NotificationEventMap = Readonly<{\n onClosed: EventName<_NotificationEventMap[\"closed\"]>;\n onOpenedChanged: EventName<_NotificationEventMap[\"opened-changed\"]>;\n}>;\nconst events = { onClosed: \"closed\", onOpenedChanged: \"opened-changed\" } as NotificationEventMap;\nexport type NotificationProps = WebComponentProps<NotificationElement, NotificationEventMap>;\nexport const Notification = createComponent({\n elementClass: NotificationElement,\n events,\n react: React,\n tagName: \"vaadin-notification\",\n});\n"],
5
+ "mappings": "AAAA,WAAc,8CAMd,OAGE,cAAAA,MAMK,QCdP,OAAS,gBAAgBC,MAAgF,8CACzG,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAMxD,IAAMC,EAAS,CAAE,SAAU,SAAU,gBAAiB,gBAAiB,EAE1DC,EAAeC,EAAgB,CACxC,aAAcC,EACd,OAAAH,EACA,MAAOI,EACP,QAAS,qBACb,CAAC,EDMD,OAAS,+BAAAC,MAAmC,6CA2BxC,cAAAC,MAAA,oBAPJ,SAASC,EACP,CAAE,SAAAC,EAAU,GAAGC,CAAM,EACrBC,EACqB,CACrB,GAAM,CAACC,EAASC,CAAQ,EAAIP,EAA4BI,EAAM,SAAUD,CAAQ,EAEhF,OACEF,EAACC,EAAA,CAAe,GAAGE,EAAO,IAAKC,EAAK,SAAUE,EAC3C,SAAAD,EACH,CAEJ,CAMA,IAAME,EAAwBC,EAAWP,CAAY,EACrDM,EAAsB,KAAOE,EAAoB",
6
6
  "names": ["forwardRef", "NotificationElement", "React", "createComponent", "events", "Notification", "createComponent", "NotificationElement", "React", "useSimpleOrChildrenRenderer", "jsx", "Notification", "children", "props", "ref", "portals", "renderer", "ForwardedNotification", "forwardRef", "NotificationElement"]
7
7
  }
package/NumberField.d.ts CHANGED
@@ -1,2 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
1
6
  export * from './generated/NumberField.js';
2
7
  //# sourceMappingURL=NumberField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["src/NumberField.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"NumberField.d.ts","sourceRoot":"","sources":["src/NumberField.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,4BAA4B,CAAC"}
package/NumberField.js CHANGED
@@ -1,2 +1,7 @@
1
1
  export*from"@vaadin/number-field/vaadin-number-field.js";import{NumberField as e}from"@vaadin/number-field/vaadin-number-field.js";import*as n from"react";import{createComponent as a}from"./utils/createComponent.js";var t={onChange:"change",onInput:"input",onInvalidChanged:"invalid-changed",onUnparsableChange:"unparsable-change",onValidated:"validated",onValueChanged:"value-changed"},o=a({elementClass:e,events:t,react:n,tagName:"vaadin-number-field"});export{o as NumberField,e as NumberFieldElement};
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
5
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
+ */
2
7
  //# sourceMappingURL=NumberField.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["src/NumberField.ts", "src/generated/NumberField.ts"],
4
- "sourcesContent": ["export * from \"@vaadin/number-field/vaadin-number-field.js\";\nexport * from './generated/NumberField.js';\n", "import type { EventName } from \"@lit/react\";\nimport { NumberField as NumberFieldElement, type NumberFieldEventMap as _NumberFieldEventMap, } from \"@vaadin/number-field/vaadin-number-field.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { NumberFieldElement, };\nexport type NumberFieldEventMap = Readonly<{\n onChange: EventName<_NumberFieldEventMap[\"change\"]>;\n onInput: EventName<_NumberFieldEventMap[\"input\"]>;\n onInvalidChanged: EventName<_NumberFieldEventMap[\"invalid-changed\"]>;\n onUnparsableChange: EventName<_NumberFieldEventMap[\"unparsable-change\"]>;\n onValidated: EventName<_NumberFieldEventMap[\"validated\"]>;\n onValueChanged: EventName<_NumberFieldEventMap[\"value-changed\"]>;\n}>;\nconst events = { onChange: \"change\", onInput: \"input\", onInvalidChanged: \"invalid-changed\", onUnparsableChange: \"unparsable-change\", onValidated: \"validated\", onValueChanged: \"value-changed\" } as NumberFieldEventMap;\nexport type NumberFieldProps = WebComponentProps<NumberFieldElement, NumberFieldEventMap>;\nexport const NumberField = createComponent({\n elementClass: NumberFieldElement, events, react: React, tagName: \"vaadin-number-field\"\n});\n"],
5
- "mappings": "AAAA,WAAc,8CCCd,OAAS,eAAeA,MAA6E,8CACrG,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAUxD,IAAMC,EAAS,CAAE,SAAU,SAAU,QAAS,QAAS,iBAAkB,kBAAmB,mBAAoB,oBAAqB,YAAa,YAAa,eAAgB,eAAgB,EAElLC,EAAcC,EAAgB,CACvC,aAAcC,EAAoB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,qBACrE,CAAC",
4
+ "sourcesContent": ["export * from \"@vaadin/number-field/vaadin-number-field.js\";\n/**\n * @license\n * Copyright (c) 2022 - 2026 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\n\nexport * from './generated/NumberField.js';\n", "import type { EventName } from \"@lit/react\";\nimport { NumberField as NumberFieldElement, type NumberFieldEventMap as _NumberFieldEventMap, } from \"@vaadin/number-field/vaadin-number-field.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { NumberFieldElement };\nexport type NumberFieldEventMap = Readonly<{\n onChange: EventName<_NumberFieldEventMap[\"change\"]>;\n onInput: EventName<_NumberFieldEventMap[\"input\"]>;\n onInvalidChanged: EventName<_NumberFieldEventMap[\"invalid-changed\"]>;\n onUnparsableChange: EventName<_NumberFieldEventMap[\"unparsable-change\"]>;\n onValidated: EventName<_NumberFieldEventMap[\"validated\"]>;\n onValueChanged: EventName<_NumberFieldEventMap[\"value-changed\"]>;\n}>;\nconst events = { onChange: \"change\", onInput: \"input\", onInvalidChanged: \"invalid-changed\", onUnparsableChange: \"unparsable-change\", onValidated: \"validated\", onValueChanged: \"value-changed\" } as NumberFieldEventMap;\nexport type NumberFieldProps = WebComponentProps<NumberFieldElement, NumberFieldEventMap>;\nexport const NumberField = createComponent({\n elementClass: NumberFieldElement,\n events,\n react: React,\n tagName: \"vaadin-number-field\",\n});\n"],
5
+ "mappings": "AAAA,WAAc,8CCCd,OAAS,eAAeA,MAA6E,8CACrG,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAUxD,IAAMC,EAAS,CAAE,SAAU,SAAU,QAAS,QAAS,iBAAkB,kBAAmB,mBAAoB,oBAAqB,YAAa,YAAa,eAAgB,eAAgB,EAElLC,EAAcC,EAAgB,CACvC,aAAcC,EACd,OAAAH,EACA,MAAOI,EACP,QAAS,qBACb,CAAC",
6
6
  "names": ["NumberFieldElement", "React", "createComponent", "events", "NumberField", "createComponent", "NumberFieldElement", "React"]
7
7
  }
@@ -1,2 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
1
6
  export * from './generated/PasswordField.js';
2
7
  //# sourceMappingURL=PasswordField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordField.d.ts","sourceRoot":"","sources":["src/PasswordField.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"PasswordField.d.ts","sourceRoot":"","sources":["src/PasswordField.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,8BAA8B,CAAC"}
package/PasswordField.js CHANGED
@@ -1,2 +1,7 @@
1
1
  export*from"@vaadin/password-field/vaadin-password-field.js";import{PasswordField as e}from"@vaadin/password-field/vaadin-password-field.js";import*as a from"react";import{createComponent as n}from"./utils/createComponent.js";var d={onChange:"change",onInput:"input",onInvalidChanged:"invalid-changed",onValidated:"validated",onValueChanged:"value-changed"},s=n({elementClass:e,events:d,react:a,tagName:"vaadin-password-field"});export{s as PasswordField,e as PasswordFieldElement};
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
5
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
+ */
2
7
  //# sourceMappingURL=PasswordField.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["src/PasswordField.ts", "src/generated/PasswordField.ts"],
4
- "sourcesContent": ["export * from \"@vaadin/password-field/vaadin-password-field.js\";\nexport * from './generated/PasswordField.js';\n", "import type { EventName } from \"@lit/react\";\nimport { PasswordField as PasswordFieldElement, type PasswordFieldEventMap as _PasswordFieldEventMap, } from \"@vaadin/password-field/vaadin-password-field.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { PasswordFieldElement, };\nexport type PasswordFieldEventMap = Readonly<{\n onChange: EventName<_PasswordFieldEventMap[\"change\"]>;\n onInput: EventName<_PasswordFieldEventMap[\"input\"]>;\n onInvalidChanged: EventName<_PasswordFieldEventMap[\"invalid-changed\"]>;\n onValidated: EventName<_PasswordFieldEventMap[\"validated\"]>;\n onValueChanged: EventName<_PasswordFieldEventMap[\"value-changed\"]>;\n}>;\nconst events = { onChange: \"change\", onInput: \"input\", onInvalidChanged: \"invalid-changed\", onValidated: \"validated\", onValueChanged: \"value-changed\" } as PasswordFieldEventMap;\nexport type PasswordFieldProps = WebComponentProps<PasswordFieldElement, PasswordFieldEventMap>;\nexport const PasswordField = createComponent({\n elementClass: PasswordFieldElement, events, react: React, tagName: \"vaadin-password-field\"\n});\n"],
5
- "mappings": "AAAA,WAAc,kDCCd,OAAS,iBAAiBA,MAAmF,kDAC7G,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BASxD,IAAMC,EAAS,CAAE,SAAU,SAAU,QAAS,QAAS,iBAAkB,kBAAmB,YAAa,YAAa,eAAgB,eAAgB,EAEzIC,EAAgBC,EAAgB,CACzC,aAAcC,EAAsB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,uBACvE,CAAC",
4
+ "sourcesContent": ["export * from \"@vaadin/password-field/vaadin-password-field.js\";\n/**\n * @license\n * Copyright (c) 2022 - 2026 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\n\nexport * from './generated/PasswordField.js';\n", "import type { EventName } from \"@lit/react\";\nimport { PasswordField as PasswordFieldElement, type PasswordFieldEventMap as _PasswordFieldEventMap, } from \"@vaadin/password-field/vaadin-password-field.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { PasswordFieldElement };\nexport type PasswordFieldEventMap = Readonly<{\n onChange: EventName<_PasswordFieldEventMap[\"change\"]>;\n onInput: EventName<_PasswordFieldEventMap[\"input\"]>;\n onInvalidChanged: EventName<_PasswordFieldEventMap[\"invalid-changed\"]>;\n onValidated: EventName<_PasswordFieldEventMap[\"validated\"]>;\n onValueChanged: EventName<_PasswordFieldEventMap[\"value-changed\"]>;\n}>;\nconst events = { onChange: \"change\", onInput: \"input\", onInvalidChanged: \"invalid-changed\", onValidated: \"validated\", onValueChanged: \"value-changed\" } as PasswordFieldEventMap;\nexport type PasswordFieldProps = WebComponentProps<PasswordFieldElement, PasswordFieldEventMap>;\nexport const PasswordField = createComponent({\n elementClass: PasswordFieldElement,\n events,\n react: React,\n tagName: \"vaadin-password-field\",\n});\n"],
5
+ "mappings": "AAAA,WAAc,kDCCd,OAAS,iBAAiBA,MAAmF,kDAC7G,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BASxD,IAAMC,EAAS,CAAE,SAAU,SAAU,QAAS,QAAS,iBAAkB,kBAAmB,YAAa,YAAa,eAAgB,eAAgB,EAEzIC,EAAgBC,EAAgB,CACzC,aAAcC,EACd,OAAAH,EACA,MAAOI,EACP,QAAS,uBACb,CAAC",
6
6
  "names": ["PasswordFieldElement", "React", "createComponent", "events", "PasswordField", "createComponent", "PasswordFieldElement", "React"]
7
7
  }
package/Popover.d.ts CHANGED
@@ -1,3 +1,8 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
1
6
  import { type ComponentType, type HTMLAttributes, type ReactNode } from 'react';
2
7
  import { type PopoverElement, type PopoverProps as _PopoverProps } from './generated/Popover.js';
3
8
  import type { ReactSimpleRendererProps } from './renderers/useSimpleRenderer.js';
package/Popover.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["src/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,cAAc,EAGnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAuB,KAAK,cAAc,EAAE,KAAK,YAAY,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEtH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAGjF,cAAc,wBAAwB,CAAC;AAEvC,MAAM,MAAM,yBAAyB,GAAG,wBAAwB,CAAC,cAAc,CAAC,CAAC;AAEjF,KAAK,4BAA4B,GAAG,IAAI,CACtC,cAAc,CAAC,cAAc,CAAC,EAC9B,IAAI,GAAG,WAAW,GAAG,yBAAyB,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,iBAAiB,CACpG,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,4BAA4B,CAAC,CAAC,GACnH,QAAQ,CAAC;IACP,QAAQ,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAChE;;OAEG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC,yBAAyB,CAAC,GAAG,IAAI,CAAC;CAC5D,CAAC,CAAC;AAqBL,QAAA,MAAM,gBAAgB;;;;eA1BP,SAAS,GAAG,aAAa,CAAC,yBAAyB,CAAC;IAC/D;;OAEG;eACQ,aAAa,CAAC,yBAAyB,CAAC,GAAG,IAAI;mDAsBlB,CAAC;AAE7C,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,CAAC"}
1
+ {"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["src/Popover.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACL,KAAK,aAAa,EAGlB,KAAK,cAAc,EAEnB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAAuB,KAAK,cAAc,EAAE,KAAK,YAAY,IAAI,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEtH,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAGjF,cAAc,wBAAwB,CAAC;AAEvC,MAAM,MAAM,yBAAyB,GAAG,wBAAwB,CAAC,cAAc,CAAC,CAAC;AAEjF,KAAK,4BAA4B,GAAG,IAAI,CACtC,cAAc,CAAC,cAAc,CAAC,EAC9B,IAAI,GAAG,WAAW,GAAG,yBAAyB,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,iBAAiB,CACpG,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,UAAU,GAAG,UAAU,GAAG,MAAM,4BAA4B,CAAC,CAAC,GACnH,QAAQ,CAAC;IACP,QAAQ,CAAC,EAAE,SAAS,GAAG,aAAa,CAAC,yBAAyB,CAAC,CAAC;IAChE;;OAEG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC,yBAAyB,CAAC,GAAG,IAAI,CAAC;CAC5D,CAAC,CAAC;AAqBL,QAAA,MAAM,gBAAgB;;;;eA1BP,SAAS,GAAG,aAAa,CAAC,yBAAyB,CAAC;IAC/D;;OAEG;eACQ,aAAa,CAAC,yBAAyB,CAAC,GAAG,IAAI;mDAsBlB,CAAC;AAE7C,OAAO,EAAE,gBAAgB,IAAI,OAAO,EAAE,CAAC"}
package/Popover.js CHANGED
@@ -1,2 +1,7 @@
1
1
  export*from"@vaadin/popover/vaadin-popover.js";import{forwardRef as v}from"react";import{Popover as d}from"@vaadin/popover/vaadin-popover.js";import*as s from"react";import{createComponent as P}from"./utils/createComponent.js";var m={onClosed:"closed",onOpenedChanged:"opened-changed"},r=P({elementClass:d,events:m,react:s,tagName:"vaadin-popover"});import{useSimpleOrChildrenRenderer as i}from"./renderers/useSimpleOrChildrenRenderer.js";import{issueWarning as t}from"./utils/warnings.js";import{jsx as c}from"react/jsx-runtime";function l({children:o,...e},p){e.renderer&&t("<Popover>: Using the renderer prop is deprecated. Pass children directly to the component instead."),typeof o=="function"&&t("<Popover>: Passing a component type as children is deprecated. Pass children directly to the component instead.");let[n,a]=i(e.renderer,o);return c(r,{...e,ref:p,renderer:a,children:n})}var M=v(l);export{M as Popover,d as PopoverElement};
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
5
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
+ */
2
7
  //# sourceMappingURL=Popover.js.map
package/Popover.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["src/Popover.tsx", "src/generated/Popover.ts"],
4
- "sourcesContent": ["export * from \"@vaadin/popover/vaadin-popover.js\";\nimport {\n type ComponentType,\n type ForwardedRef,\n type HTMLAttributes,\n forwardRef,\n type ReactElement,\n type ReactNode,\n} from 'react';\nimport { Popover as _Popover, type PopoverElement, type PopoverProps as _PopoverProps } from './generated/Popover.js';\nimport { useSimpleOrChildrenRenderer } from './renderers/useSimpleOrChildrenRenderer.js';\nimport type { ReactSimpleRendererProps } from './renderers/useSimpleRenderer.js';\nimport { issueWarning } from './utils/warnings.js';\n\nexport * from './generated/Popover.js';\n\nexport type PopoverReactRendererProps = ReactSimpleRendererProps<PopoverElement>;\n\ntype OmittedPopoverHTMLAttributes = Omit<\n HTMLAttributes<PopoverElement>,\n 'id' | 'className' | 'dangerouslySetInnerHTML' | 'slot' | 'role' | 'aria-label' | 'aria-labelledby'\n>;\n\nexport type PopoverProps = Partial<Omit<_PopoverProps, 'children' | 'renderer' | keyof OmittedPopoverHTMLAttributes>> &\n Readonly<{\n children?: ReactNode | ComponentType<PopoverReactRendererProps>;\n /**\n * @deprecated Pass children directly to the popover instead\n */\n renderer?: ComponentType<PopoverReactRendererProps> | null;\n }>;\n\nfunction Popover({ children, ...props }: PopoverProps, ref: ForwardedRef<PopoverElement>): ReactElement | null {\n if (props.renderer) {\n issueWarning('<Popover>: Using the renderer prop is deprecated. Pass children directly to the component instead.');\n }\n if (typeof children === 'function') {\n issueWarning(\n '<Popover>: Passing a component type as children is deprecated. Pass children directly to the component instead.',\n );\n }\n\n const [portals, renderer] = useSimpleOrChildrenRenderer(props.renderer, children);\n\n return (\n <_Popover {...props} ref={ref} renderer={renderer}>\n {portals}\n </_Popover>\n );\n}\n\nconst ForwardedPopover = forwardRef(Popover);\n\nexport { ForwardedPopover as Popover };\n", "import type { EventName } from \"@lit/react\";\nimport { Popover as PopoverElement, type PopoverEventMap as _PopoverEventMap, } from \"@vaadin/popover/vaadin-popover.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { PopoverElement, };\nexport type PopoverEventMap = Readonly<{\n onClosed: EventName<_PopoverEventMap[\"closed\"]>;\n onOpenedChanged: EventName<_PopoverEventMap[\"opened-changed\"]>;\n}>;\nconst events = { onClosed: \"closed\", onOpenedChanged: \"opened-changed\" } as PopoverEventMap;\nexport type PopoverProps = WebComponentProps<PopoverElement, PopoverEventMap>;\nexport const Popover = createComponent({\n elementClass: PopoverElement, events, react: React, tagName: \"vaadin-popover\"\n});\n"],
5
- "mappings": "AAAA,WAAc,oCACd,OAIE,cAAAA,MAGK,QCPP,OAAS,WAAWC,MAAiE,oCACrF,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAMxD,IAAMC,EAAS,CAAE,SAAU,SAAU,gBAAiB,gBAAiB,EAE1DC,EAAUC,EAAgB,CACnC,aAAcC,EAAgB,OAAAH,EAAQ,MAAOI,EAAO,QAAS,gBACjE,CAAC,EDHD,OAAS,+BAAAC,MAAmC,6CAE5C,OAAS,gBAAAC,MAAoB,sBAiCzB,cAAAC,MAAA,oBAbJ,SAASC,EAAQ,CAAE,SAAAC,EAAU,GAAGC,CAAM,EAAiBC,EAAwD,CACzGD,EAAM,UACRJ,EAAa,oGAAoG,EAE/G,OAAOG,GAAa,YACtBH,EACE,iHACF,EAGF,GAAM,CAACM,EAASC,CAAQ,EAAIR,EAA4BK,EAAM,SAAUD,CAAQ,EAEhF,OACEF,EAACC,EAAA,CAAU,GAAGE,EAAO,IAAKC,EAAK,SAAUE,EACtC,SAAAD,EACH,CAEJ,CAEA,IAAME,EAAmBC,EAAWP,CAAO",
4
+ "sourcesContent": ["export * from \"@vaadin/popover/vaadin-popover.js\";\n/**\n * @license\n * Copyright (c) 2022 - 2026 Vaadin Ltd.\n * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/\n */\nimport {\n type ComponentType,\n type ForwardedRef,\n forwardRef,\n type HTMLAttributes,\n type ReactElement,\n type ReactNode,\n} from 'react';\nimport { Popover as _Popover, type PopoverElement, type PopoverProps as _PopoverProps } from './generated/Popover.js';\nimport { useSimpleOrChildrenRenderer } from './renderers/useSimpleOrChildrenRenderer.js';\nimport type { ReactSimpleRendererProps } from './renderers/useSimpleRenderer.js';\nimport { issueWarning } from './utils/warnings.js';\n\nexport * from './generated/Popover.js';\n\nexport type PopoverReactRendererProps = ReactSimpleRendererProps<PopoverElement>;\n\ntype OmittedPopoverHTMLAttributes = Omit<\n HTMLAttributes<PopoverElement>,\n 'id' | 'className' | 'dangerouslySetInnerHTML' | 'slot' | 'role' | 'aria-label' | 'aria-labelledby'\n>;\n\nexport type PopoverProps = Partial<Omit<_PopoverProps, 'children' | 'renderer' | keyof OmittedPopoverHTMLAttributes>> &\n Readonly<{\n children?: ReactNode | ComponentType<PopoverReactRendererProps>;\n /**\n * @deprecated Pass children directly to the popover instead\n */\n renderer?: ComponentType<PopoverReactRendererProps> | null;\n }>;\n\nfunction Popover({ children, ...props }: PopoverProps, ref: ForwardedRef<PopoverElement>): ReactElement | null {\n if (props.renderer) {\n issueWarning('<Popover>: Using the renderer prop is deprecated. Pass children directly to the component instead.');\n }\n if (typeof children === 'function') {\n issueWarning(\n '<Popover>: Passing a component type as children is deprecated. Pass children directly to the component instead.',\n );\n }\n\n const [portals, renderer] = useSimpleOrChildrenRenderer(props.renderer, children);\n\n return (\n <_Popover {...props} ref={ref} renderer={renderer}>\n {portals}\n </_Popover>\n );\n}\n\nconst ForwardedPopover = forwardRef(Popover);\n\nexport { ForwardedPopover as Popover };\n", "import type { EventName } from \"@lit/react\";\nimport { Popover as PopoverElement, type PopoverEventMap as _PopoverEventMap, } from \"@vaadin/popover/vaadin-popover.js\";\nimport * as React from \"react\";\nimport { createComponent, type WebComponentProps } from \"../utils/createComponent.js\";\nexport { PopoverElement };\nexport type PopoverEventMap = Readonly<{\n onClosed: EventName<_PopoverEventMap[\"closed\"]>;\n onOpenedChanged: EventName<_PopoverEventMap[\"opened-changed\"]>;\n}>;\nconst events = { onClosed: \"closed\", onOpenedChanged: \"opened-changed\" } as PopoverEventMap;\nexport type PopoverProps = WebComponentProps<PopoverElement, PopoverEventMap>;\nexport const Popover = createComponent({\n elementClass: PopoverElement,\n events,\n react: React,\n tagName: \"vaadin-popover\",\n});\n"],
5
+ "mappings": "AAAA,WAAc,oCAMd,OAGE,cAAAA,MAIK,QCZP,OAAS,WAAWC,MAAiE,oCACrF,UAAYC,MAAW,QACvB,OAAS,mBAAAC,MAA+C,6BAMxD,IAAMC,EAAS,CAAE,SAAU,SAAU,gBAAiB,gBAAiB,EAE1DC,EAAUC,EAAgB,CACnC,aAAcC,EACd,OAAAH,EACA,MAAOI,EACP,QAAS,gBACb,CAAC,EDDD,OAAS,+BAAAC,MAAmC,6CAE5C,OAAS,gBAAAC,MAAoB,sBAiCzB,cAAAC,MAAA,oBAbJ,SAASC,EAAQ,CAAE,SAAAC,EAAU,GAAGC,CAAM,EAAiBC,EAAwD,CACzGD,EAAM,UACRJ,EAAa,oGAAoG,EAE/G,OAAOG,GAAa,YACtBH,EACE,iHACF,EAGF,GAAM,CAACM,EAASC,CAAQ,EAAIR,EAA4BK,EAAM,SAAUD,CAAQ,EAEhF,OACEF,EAACC,EAAA,CAAU,GAAGE,EAAO,IAAKC,EAAK,SAAUE,EACtC,SAAAD,EACH,CAEJ,CAEA,IAAME,EAAmBC,EAAWP,CAAO",
6
6
  "names": ["forwardRef", "PopoverElement", "React", "createComponent", "events", "Popover", "createComponent", "PopoverElement", "React", "useSimpleOrChildrenRenderer", "issueWarning", "jsx", "Popover", "children", "props", "ref", "portals", "renderer", "ForwardedPopover", "forwardRef"]
7
7
  }
package/ProgressBar.d.ts CHANGED
@@ -1,2 +1,7 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */
1
6
  export * from './generated/ProgressBar.js';
2
7
  //# sourceMappingURL=ProgressBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["src/ProgressBar.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC"}
1
+ {"version":3,"file":"ProgressBar.d.ts","sourceRoot":"","sources":["src/ProgressBar.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,4BAA4B,CAAC"}
package/ProgressBar.js CHANGED
@@ -1,2 +1,7 @@
1
1
  export*from"@vaadin/progress-bar/vaadin-progress-bar.js";import{ProgressBar as r}from"@vaadin/progress-bar/vaadin-progress-bar.js";import*as e from"react";import{createComponent as o}from"./utils/createComponent.js";var t={},p=o({elementClass:r,events:t,react:e,tagName:"vaadin-progress-bar"});export{p as ProgressBar,r as ProgressBarElement};
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2022 - 2026 Vaadin Ltd.
5
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
+ */
2
7
  //# sourceMappingURL=ProgressBar.js.map