@threadlabs/looma 0.25.7 → 0.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (436) hide show
  1. package/components/ui-avatar/ui-avatar.html +4 -4
  2. package/components/ui-avatar-group/ui-avatar-group.html +2 -2
  3. package/components/ui-breadcrumb-item/ui-breadcrumb-item.html +1 -1
  4. package/components/ui-breadcrumbs/ui-breadcrumbs.html +1 -1
  5. package/components/ui-button/ui-button.html +27 -27
  6. package/components/ui-callout/ui-callout.html +5 -5
  7. package/components/ui-card/ui-card.html +3 -3
  8. package/components/ui-checkbox/ui-checkbox.html +8 -8
  9. package/components/ui-combobox/ui-combobox.html +59 -59
  10. package/components/ui-dialog/ui-dialog.html +8 -6
  11. package/components/ui-disclosure/ui-disclosure.html +3 -3
  12. package/components/ui-editable/ui-editable.html +8 -8
  13. package/components/ui-editor-insert-table-grid/ui-editor-insert-table-grid.html +11 -11
  14. package/components/ui-editor-mention-menu/ui-editor-mention-menu.html +10 -10
  15. package/components/ui-editor-mention-menu-item/ui-editor-mention-menu-item.html +2 -2
  16. package/components/ui-editor-slash-menu/ui-editor-slash-menu.html +7 -7
  17. package/components/ui-editor-slash-menu-group/ui-editor-slash-menu-group.html +1 -1
  18. package/components/ui-editor-slash-menu-item/ui-editor-slash-menu-item.html +3 -3
  19. package/components/ui-editor-table-context-menu/ui-editor-table-context-menu.html +16 -16
  20. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +31 -31
  21. package/components/ui-editor-table-toolbar/ui-editor-table-toolbar.html +33 -33
  22. package/components/ui-floating-action-button/ui-floating-action-button.html +1 -1
  23. package/components/ui-grid/ui-grid.html +1 -1
  24. package/components/ui-icon/ui-icon.html +12 -12
  25. package/components/ui-icon-button/ui-icon-button.html +6 -6
  26. package/components/ui-image/ui-image.html +2 -2
  27. package/components/ui-input/ui-input.html +1 -1
  28. package/components/ui-list/ui-list.html +1 -1
  29. package/components/ui-list-item/ui-list-item.html +1 -1
  30. package/components/ui-listbox/ui-listbox.html +24 -24
  31. package/components/ui-menu-group/ui-menu-group.html +2 -2
  32. package/components/ui-menu-item/ui-menu-item.html +9 -9
  33. package/components/ui-meter/ui-meter.html +8 -8
  34. package/components/ui-nav-item/ui-nav-item.html +6 -6
  35. package/components/ui-radio/ui-radio.html +1 -1
  36. package/components/ui-radio-group/ui-radio-group.html +1 -1
  37. package/components/ui-scroll-area/ui-scroll-area.html +12 -0
  38. package/components/ui-search-result-row/ui-search-result-row.html +1 -1
  39. package/components/ui-search-shell/ui-search-shell.html +1 -1
  40. package/components/ui-section/ui-section.html +1 -1
  41. package/components/ui-select/ui-select.html +1 -1
  42. package/components/ui-separator/ui-separator.html +1 -1
  43. package/components/ui-sidebar/ui-sidebar.html +2 -2
  44. package/components/ui-spinner/ui-spinner.html +4 -4
  45. package/components/ui-stack/ui-stack.html +1 -1
  46. package/components/ui-status-message/ui-status-message.html +3 -3
  47. package/components/ui-switch/ui-switch.html +5 -5
  48. package/components/ui-tabs/ui-tabs.html +8 -8
  49. package/components/ui-text/ui-text.html +10 -10
  50. package/components/ui-textarea/ui-textarea.html +8 -8
  51. package/components/ui-toast/ui-toast.html +1 -1
  52. package/components/ui-toast-region/ui-toast-region.html +8 -8
  53. package/components/ui-tooltip/ui-tooltip.html +1 -1
  54. package/components/ui-tree-item/ui-tree-item.html +18 -18
  55. package/dist/index.js +1 -1
  56. package/package.json +3 -3
  57. package/styles/ui-action-bar.css +1 -1
  58. package/styles/ui-affordance-scope.css +1 -1
  59. package/styles/ui-avatar-group.css +1 -1
  60. package/styles/ui-avatar.css +1 -1
  61. package/styles/ui-badge.css +1 -1
  62. package/styles/ui-breadcrumb-item.css +1 -1
  63. package/styles/ui-breadcrumbs.css +1 -1
  64. package/styles/ui-button.css +1 -1
  65. package/styles/ui-callout.css +1 -1
  66. package/styles/ui-card.css +1 -1
  67. package/styles/ui-checkbox.css +1 -1
  68. package/styles/ui-cluster.css +1 -1
  69. package/styles/ui-combobox.css +1 -1
  70. package/styles/ui-container.css +1 -1
  71. package/styles/ui-context-menu.css +1 -1
  72. package/styles/ui-cover.css +1 -1
  73. package/styles/ui-description-item.css +1 -1
  74. package/styles/ui-description-list.css +1 -1
  75. package/styles/ui-dialog.css +7 -5
  76. package/styles/ui-disclosure.css +1 -1
  77. package/styles/ui-editable.css +1 -1
  78. package/styles/ui-editor-insert-table-grid.css +1 -1
  79. package/styles/ui-editor-mention-menu-item.css +1 -1
  80. package/styles/ui-editor-mention-menu.css +1 -1
  81. package/styles/ui-editor-slash-menu-group.css +1 -1
  82. package/styles/ui-editor-slash-menu-item.css +1 -1
  83. package/styles/ui-editor-slash-menu.css +1 -1
  84. package/styles/ui-editor-surface.css +1 -1
  85. package/styles/ui-editor-table-context-menu.css +1 -1
  86. package/styles/ui-editor-table-overlay.css +1 -1
  87. package/styles/ui-editor-table-toolbar.css +1 -1
  88. package/styles/ui-editor-toolbar.css +1 -1
  89. package/styles/ui-floating-action-button.css +1 -1
  90. package/styles/ui-form-field.css +1 -1
  91. package/styles/ui-grid.css +1 -1
  92. package/styles/ui-icon-button.css +1 -1
  93. package/styles/ui-icon.css +1 -1
  94. package/styles/ui-image.css +1 -1
  95. package/styles/ui-input-group.css +1 -1
  96. package/styles/ui-input.css +1 -1
  97. package/styles/ui-list-item.css +1 -1
  98. package/styles/ui-list.css +1 -1
  99. package/styles/ui-listbox.css +1 -1
  100. package/styles/ui-menu-group.css +1 -1
  101. package/styles/ui-menu-item.css +1 -1
  102. package/styles/ui-menu.css +1 -1
  103. package/styles/ui-meter.css +1 -1
  104. package/styles/ui-nav-item.css +1 -1
  105. package/styles/ui-page-header.css +1 -1
  106. package/styles/ui-popover.css +1 -1
  107. package/styles/ui-radio-group.css +1 -1
  108. package/styles/ui-radio.css +1 -1
  109. package/styles/ui-reel.css +1 -1
  110. package/styles/ui-scroll-area.css +12 -1
  111. package/styles/ui-search-result-row.css +1 -1
  112. package/styles/ui-search-shell.css +1 -1
  113. package/styles/ui-section.css +1 -1
  114. package/styles/ui-select.css +1 -1
  115. package/styles/ui-separator.css +1 -1
  116. package/styles/ui-sidebar.css +1 -1
  117. package/styles/ui-spinner.css +1 -1
  118. package/styles/ui-stack.css +1 -1
  119. package/styles/ui-status-message.css +1 -1
  120. package/styles/ui-switch.css +1 -1
  121. package/styles/ui-switcher.css +1 -1
  122. package/styles/ui-table.css +1 -1
  123. package/styles/ui-tabs.css +1 -1
  124. package/styles/ui-text.css +1 -1
  125. package/styles/ui-textarea.css +1 -1
  126. package/styles/ui-toast-region.css +1 -1
  127. package/styles/ui-toast.css +1 -1
  128. package/styles/ui-tooltip.css +1 -1
  129. package/styles/ui-top-bar.css +1 -1
  130. package/styles/ui-tree-item.css +1 -1
  131. package/styles/ui-tree.css +1 -1
  132. package/vanilla/UiActionBar.d.ts +1 -1
  133. package/vanilla/UiActionBar.js +70 -52
  134. package/vanilla/UiAffordanceScope.d.ts +1 -1
  135. package/vanilla/UiAffordanceScope.js +36 -17
  136. package/vanilla/UiAvatar.d.ts +1 -1
  137. package/vanilla/UiAvatar.js +72 -37
  138. package/vanilla/UiAvatarGroup.d.ts +1 -1
  139. package/vanilla/UiAvatarGroup.js +57 -26
  140. package/vanilla/UiBadge.d.ts +1 -1
  141. package/vanilla/UiBadge.js +49 -39
  142. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  143. package/vanilla/UiBreadcrumbItem.js +41 -26
  144. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  145. package/vanilla/UiBreadcrumbs.js +35 -24
  146. package/vanilla/UiButton.d.ts +1 -1
  147. package/vanilla/UiButton.js +444 -156
  148. package/vanilla/UiCallout.d.ts +1 -1
  149. package/vanilla/UiCallout.js +135 -111
  150. package/vanilla/UiCard.d.ts +1 -1
  151. package/vanilla/UiCard.js +147 -47
  152. package/vanilla/UiCheckbox.d.ts +1 -1
  153. package/vanilla/UiCheckbox.js +100 -58
  154. package/vanilla/UiCluster.d.ts +1 -1
  155. package/vanilla/UiCluster.js +35 -29
  156. package/vanilla/UiCombobox.d.ts +1 -1
  157. package/vanilla/UiCombobox.js +879 -283
  158. package/vanilla/UiContainer.d.ts +1 -1
  159. package/vanilla/UiContainer.js +35 -19
  160. package/vanilla/UiContextMenu.d.ts +1 -1
  161. package/vanilla/UiContextMenu.js +34 -23
  162. package/vanilla/UiCover.d.ts +1 -1
  163. package/vanilla/UiCover.js +35 -15
  164. package/vanilla/UiDescriptionItem.d.ts +1 -1
  165. package/vanilla/UiDescriptionItem.js +37 -24
  166. package/vanilla/UiDescriptionList.d.ts +1 -1
  167. package/vanilla/UiDescriptionList.js +35 -21
  168. package/vanilla/UiDialog.d.ts +1 -1
  169. package/vanilla/UiDialog.js +89 -42
  170. package/vanilla/UiDisclosure.d.ts +1 -1
  171. package/vanilla/UiDisclosure.js +113 -72
  172. package/vanilla/UiEditable.d.ts +1 -1
  173. package/vanilla/UiEditable.js +125 -58
  174. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  175. package/vanilla/UiEditorInsertTableGrid.js +85 -30
  176. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  177. package/vanilla/UiEditorMentionMenu.js +193 -75
  178. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  179. package/vanilla/UiEditorMentionMenuItem.js +81 -44
  180. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  181. package/vanilla/UiEditorSlashMenu.js +123 -78
  182. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  183. package/vanilla/UiEditorSlashMenuGroup.js +40 -34
  184. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  185. package/vanilla/UiEditorSlashMenuItem.js +98 -45
  186. package/vanilla/UiEditorSurface.d.ts +1 -1
  187. package/vanilla/UiEditorSurface.js +35 -15
  188. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  189. package/vanilla/UiEditorTableContextMenu.js +143 -60
  190. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  191. package/vanilla/UiEditorTableOverlay.js +212 -109
  192. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  193. package/vanilla/UiEditorTableToolbar.js +330 -113
  194. package/vanilla/UiEditorToolbar.d.ts +1 -1
  195. package/vanilla/UiEditorToolbar.js +37 -20
  196. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  197. package/vanilla/UiFloatingActionButton.js +44 -22
  198. package/vanilla/UiFormField.d.ts +1 -1
  199. package/vanilla/UiFormField.js +89 -65
  200. package/vanilla/UiGrid.d.ts +1 -1
  201. package/vanilla/UiGrid.js +39 -19
  202. package/vanilla/UiIcon.d.ts +1 -1
  203. package/vanilla/UiIcon.js +186 -27
  204. package/vanilla/UiIconButton.d.ts +1 -1
  205. package/vanilla/UiIconButton.js +82 -32
  206. package/vanilla/UiImage.d.ts +1 -1
  207. package/vanilla/UiImage.js +76 -69
  208. package/vanilla/UiInput.d.ts +1 -1
  209. package/vanilla/UiInput.js +51 -27
  210. package/vanilla/UiInputGroup.d.ts +1 -1
  211. package/vanilla/UiInputGroup.js +77 -56
  212. package/vanilla/UiList.d.ts +1 -1
  213. package/vanilla/UiList.js +91 -27
  214. package/vanilla/UiListItem.d.ts +1 -1
  215. package/vanilla/UiListItem.js +81 -74
  216. package/vanilla/UiListbox.d.ts +1 -1
  217. package/vanilla/UiListbox.js +204 -81
  218. package/vanilla/UiMenu.d.ts +1 -1
  219. package/vanilla/UiMenu.js +36 -20
  220. package/vanilla/UiMenuGroup.d.ts +1 -1
  221. package/vanilla/UiMenuGroup.js +60 -24
  222. package/vanilla/UiMenuItem.d.ts +1 -1
  223. package/vanilla/UiMenuItem.js +177 -77
  224. package/vanilla/UiMeter.d.ts +1 -1
  225. package/vanilla/UiMeter.js +77 -14
  226. package/vanilla/UiNavItem.d.ts +1 -1
  227. package/vanilla/UiNavItem.js +199 -123
  228. package/vanilla/UiPageHeader.d.ts +1 -1
  229. package/vanilla/UiPageHeader.js +91 -69
  230. package/vanilla/UiPopover.d.ts +1 -1
  231. package/vanilla/UiPopover.js +36 -20
  232. package/vanilla/UiRadio.d.ts +1 -1
  233. package/vanilla/UiRadio.js +82 -50
  234. package/vanilla/UiRadioGroup.d.ts +1 -1
  235. package/vanilla/UiRadioGroup.js +58 -30
  236. package/vanilla/UiReel.d.ts +1 -1
  237. package/vanilla/UiReel.js +35 -21
  238. package/vanilla/UiScrollArea.d.ts +2 -1
  239. package/vanilla/UiScrollArea.js +37 -20
  240. package/vanilla/UiSearchResultRow.d.ts +1 -1
  241. package/vanilla/UiSearchResultRow.js +98 -74
  242. package/vanilla/UiSearchShell.d.ts +1 -1
  243. package/vanilla/UiSearchShell.js +81 -64
  244. package/vanilla/UiSection.d.ts +1 -1
  245. package/vanilla/UiSection.js +71 -53
  246. package/vanilla/UiSelect.d.ts +1 -1
  247. package/vanilla/UiSelect.js +50 -26
  248. package/vanilla/UiSeparator.d.ts +1 -1
  249. package/vanilla/UiSeparator.js +23 -22
  250. package/vanilla/UiSidebar.d.ts +1 -1
  251. package/vanilla/UiSidebar.js +49 -37
  252. package/vanilla/UiSpinner.d.ts +1 -1
  253. package/vanilla/UiSpinner.js +43 -26
  254. package/vanilla/UiStack.d.ts +1 -1
  255. package/vanilla/UiStack.js +39 -19
  256. package/vanilla/UiStatusMessage.d.ts +1 -1
  257. package/vanilla/UiStatusMessage.js +70 -41
  258. package/vanilla/UiSwitch.d.ts +1 -1
  259. package/vanilla/UiSwitch.js +82 -51
  260. package/vanilla/UiSwitcher.d.ts +1 -1
  261. package/vanilla/UiSwitcher.js +36 -17
  262. package/vanilla/UiTable.d.ts +1 -1
  263. package/vanilla/UiTable.js +35 -17
  264. package/vanilla/UiTabs.d.ts +1 -1
  265. package/vanilla/UiTabs.js +97 -42
  266. package/vanilla/UiText.d.ts +1 -1
  267. package/vanilla/UiText.js +343 -117
  268. package/vanilla/UiTextarea.d.ts +1 -1
  269. package/vanilla/UiTextarea.js +56 -33
  270. package/vanilla/UiToast.d.ts +1 -1
  271. package/vanilla/UiToast.js +61 -40
  272. package/vanilla/UiToastRegion.d.ts +1 -1
  273. package/vanilla/UiToastRegion.js +85 -35
  274. package/vanilla/UiTooltip.d.ts +1 -1
  275. package/vanilla/UiTooltip.js +54 -31
  276. package/vanilla/UiTopBar.d.ts +1 -1
  277. package/vanilla/UiTopBar.js +70 -52
  278. package/vanilla/UiTree.d.ts +1 -1
  279. package/vanilla/UiTree.js +35 -17
  280. package/vanilla/UiTreeItem.d.ts +1 -1
  281. package/vanilla/UiTreeItem.js +219 -181
  282. package/vue/UiActionBar.vue +1 -1
  283. package/vue/UiAffordanceScope.vue +1 -1
  284. package/vue/UiAvatar.vue +7 -7
  285. package/vue/UiAvatarGroup.vue +3 -3
  286. package/vue/UiBadge.vue +1 -1
  287. package/vue/UiBreadcrumbItem.vue +1 -1
  288. package/vue/UiBreadcrumbs.vue +1 -1
  289. package/vue/UiButton.vue +1 -1
  290. package/vue/UiCallout.vue +1 -1
  291. package/vue/UiCard.vue +1 -1
  292. package/vue/UiCheckbox.vue +2 -2
  293. package/vue/UiCluster.vue +1 -1
  294. package/vue/UiCombobox.vue +25 -25
  295. package/vue/UiContainer.vue +1 -1
  296. package/vue/UiContextMenu.vue +1 -1
  297. package/vue/UiCover.vue +1 -1
  298. package/vue/UiDescriptionItem.vue +1 -1
  299. package/vue/UiDescriptionList.vue +1 -1
  300. package/vue/UiDialog.vue +8 -6
  301. package/vue/UiDisclosure.vue +6 -6
  302. package/vue/UiEditable.vue +3 -3
  303. package/vue/UiEditorInsertTableGrid.vue +4 -4
  304. package/vue/UiEditorMentionMenu.vue +2 -2
  305. package/vue/UiEditorMentionMenuItem.vue +1 -1
  306. package/vue/UiEditorSlashMenu.vue +2 -2
  307. package/vue/UiEditorSlashMenuGroup.vue +1 -1
  308. package/vue/UiEditorSlashMenuItem.vue +1 -1
  309. package/vue/UiEditorSurface.vue +1 -1
  310. package/vue/UiEditorTableContextMenu.vue +1 -1
  311. package/vue/UiEditorTableOverlay.vue +11 -11
  312. package/vue/UiEditorTableToolbar.vue +2 -2
  313. package/vue/UiEditorToolbar.vue +1 -1
  314. package/vue/UiFloatingActionButton.vue +1 -1
  315. package/vue/UiFormField.vue +1 -1
  316. package/vue/UiGrid.vue +1 -1
  317. package/vue/UiIcon.vue +1 -1
  318. package/vue/UiIconButton.vue +1 -1
  319. package/vue/UiImage.vue +1 -1
  320. package/vue/UiInput.vue +1 -1
  321. package/vue/UiInputGroup.vue +1 -1
  322. package/vue/UiList.vue +1 -1
  323. package/vue/UiListItem.vue +1 -1
  324. package/vue/UiListbox.vue +4 -4
  325. package/vue/UiMenu.vue +1 -1
  326. package/vue/UiMenuGroup.vue +1 -1
  327. package/vue/UiMenuItem.vue +2 -2
  328. package/vue/UiMeter.vue +1 -1
  329. package/vue/UiNavItem.vue +1 -1
  330. package/vue/UiPageHeader.vue +1 -1
  331. package/vue/UiPopover.vue +1 -1
  332. package/vue/UiRadio.vue +2 -2
  333. package/vue/UiRadioGroup.vue +1 -1
  334. package/vue/UiReel.vue +1 -1
  335. package/vue/UiScrollArea.d.ts +9 -0
  336. package/vue/UiScrollArea.vue +34 -2
  337. package/vue/UiSearchResultRow.vue +1 -1
  338. package/vue/UiSearchShell.vue +1 -1
  339. package/vue/UiSection.vue +1 -1
  340. package/vue/UiSelect.vue +1 -1
  341. package/vue/UiSeparator.vue +1 -1
  342. package/vue/UiSidebar.vue +3 -3
  343. package/vue/UiSpinner.vue +1 -1
  344. package/vue/UiStack.vue +1 -1
  345. package/vue/UiStatusMessage.vue +1 -1
  346. package/vue/UiSwitch.vue +2 -2
  347. package/vue/UiSwitcher.vue +1 -1
  348. package/vue/UiTable.vue +1 -1
  349. package/vue/UiTabs.vue +1 -1
  350. package/vue/UiText.vue +1 -1
  351. package/vue/UiTextarea.vue +1 -1
  352. package/vue/UiToast.vue +1 -1
  353. package/vue/UiToastRegion.vue +1 -1
  354. package/vue/UiTooltip.vue +2 -2
  355. package/vue/UiTopBar.vue +1 -1
  356. package/vue/UiTree.vue +1 -1
  357. package/vue/UiTreeItem.vue +6 -6
  358. package/vue/chunks/UiActionBar.js +1 -1
  359. package/vue/chunks/UiAffordanceScope.js +1 -1
  360. package/vue/chunks/UiAvatar.js +6 -6
  361. package/vue/chunks/UiAvatarGroup.js +3 -3
  362. package/vue/chunks/UiBadge.js +1 -1
  363. package/vue/chunks/UiBreadcrumbItem.js +1 -1
  364. package/vue/chunks/UiBreadcrumbs.js +1 -1
  365. package/vue/chunks/UiButton.js +1 -1
  366. package/vue/chunks/UiCallout.js +1 -1
  367. package/vue/chunks/UiCard.js +1 -1
  368. package/vue/chunks/UiCheckbox.js +2 -2
  369. package/vue/chunks/UiCluster.js +1 -1
  370. package/vue/chunks/UiCombobox.js +22 -22
  371. package/vue/chunks/UiContainer.js +1 -1
  372. package/vue/chunks/UiContextMenu.js +1 -1
  373. package/vue/chunks/UiCover.js +1 -1
  374. package/vue/chunks/UiDescriptionItem.js +1 -1
  375. package/vue/chunks/UiDescriptionList.js +1 -1
  376. package/vue/chunks/UiDialog.js +5 -4
  377. package/vue/chunks/UiDisclosure.js +6 -6
  378. package/vue/chunks/UiEditable.js +3 -3
  379. package/vue/chunks/UiEditorInsertTableGrid.js +4 -4
  380. package/vue/chunks/UiEditorMentionMenu.js +2 -2
  381. package/vue/chunks/UiEditorMentionMenuItem.js +1 -1
  382. package/vue/chunks/UiEditorSlashMenu.js +2 -2
  383. package/vue/chunks/UiEditorSlashMenuGroup.js +1 -1
  384. package/vue/chunks/UiEditorSlashMenuItem.js +1 -1
  385. package/vue/chunks/UiEditorSurface.js +1 -1
  386. package/vue/chunks/UiEditorTableContextMenu.js +1 -1
  387. package/vue/chunks/UiEditorTableOverlay.js +11 -11
  388. package/vue/chunks/UiEditorTableToolbar.js +2 -2
  389. package/vue/chunks/UiEditorToolbar.js +1 -1
  390. package/vue/chunks/UiFloatingActionButton.js +1 -1
  391. package/vue/chunks/UiFormField.js +1 -1
  392. package/vue/chunks/UiGrid.js +1 -1
  393. package/vue/chunks/UiIcon.js +1 -1
  394. package/vue/chunks/UiIconButton.js +1 -1
  395. package/vue/chunks/UiImage.js +1 -1
  396. package/vue/chunks/UiInput.js +1 -1
  397. package/vue/chunks/UiInputGroup.js +1 -1
  398. package/vue/chunks/UiList.js +1 -1
  399. package/vue/chunks/UiListItem.js +1 -1
  400. package/vue/chunks/UiListbox.js +4 -4
  401. package/vue/chunks/UiMenu.js +1 -1
  402. package/vue/chunks/UiMenuGroup.js +1 -1
  403. package/vue/chunks/UiMenuItem.js +2 -2
  404. package/vue/chunks/UiMeter.js +1 -1
  405. package/vue/chunks/UiNavItem.js +1 -1
  406. package/vue/chunks/UiPageHeader.js +1 -1
  407. package/vue/chunks/UiPopover.js +1 -1
  408. package/vue/chunks/UiRadio.js +2 -2
  409. package/vue/chunks/UiRadioGroup.js +1 -1
  410. package/vue/chunks/UiReel.js +1 -1
  411. package/vue/chunks/UiScrollArea.js +28 -5
  412. package/vue/chunks/UiSearchResultRow.js +1 -1
  413. package/vue/chunks/UiSearchShell.js +1 -1
  414. package/vue/chunks/UiSection.js +1 -1
  415. package/vue/chunks/UiSelect.js +1 -1
  416. package/vue/chunks/UiSeparator.js +1 -1
  417. package/vue/chunks/UiSidebar.js +2 -2
  418. package/vue/chunks/UiSpinner.js +1 -1
  419. package/vue/chunks/UiStack.js +1 -1
  420. package/vue/chunks/UiStatusMessage.js +1 -1
  421. package/vue/chunks/UiSwitch.js +2 -2
  422. package/vue/chunks/UiSwitcher.js +1 -1
  423. package/vue/chunks/UiTable.js +1 -1
  424. package/vue/chunks/UiTabs.js +1 -1
  425. package/vue/chunks/UiText.js +1 -1
  426. package/vue/chunks/UiTextarea.js +1 -1
  427. package/vue/chunks/UiToast.js +1 -1
  428. package/vue/chunks/UiToastRegion.js +1 -1
  429. package/vue/chunks/UiTooltip.js +2 -2
  430. package/vue/chunks/UiTopBar.js +1 -1
  431. package/vue/chunks/UiTree.js +1 -1
  432. package/vue/chunks/UiTreeItem.js +5 -5
  433. package/vue/chunks/control.js +41 -13
  434. package/vue/chunks/host.js +19 -18
  435. package/vue/components.css +1405 -1391
  436. package/vue/host.ts +22 -20
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.29 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
2
2
  export interface UiCalloutEventMap {
3
3
  }
4
4
  export interface UiCalloutElement extends HTMLDivElement {
@@ -1,12 +1,20 @@
1
- // Generated by HTML Next 1.0.0-alpha.29 for Vanilla DOM. Do not edit.
2
- import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, buildTemplate, clearRegion, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, project, fillSlot, checkFormat } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-callout.css";
4
4
 
5
- const definition = {...{"contract":{"tag":"ui-callout","props":{"tone":{"type":{"kind":"terminal","name":"keyword"},"values":["info","neutral","note","warning","success","danger"],"required":false,"target":{"attribute":"tone"},"default":"info"}}},"template":{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"role","value":"note"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"icon"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[{"kind":"element","name":"svg","attributes":[{"kind":"literal","name":"viewBox","value":"0 0 24 24"},{"kind":"literal","name":"fill","value":"none"},{"kind":"literal","name":"stroke","value":"currentColor"},{"kind":"literal","name":"stroke-width","value":"2"},{"kind":"literal","name":"stroke-linecap","value":"round"},{"kind":"literal","name":"stroke-linejoin","value":"round"}],"children":[{"kind":"element","name":"circle","attributes":[{"kind":"literal","name":"cx","value":"12"},{"kind":"literal","name":"cy","value":"12"},{"kind":"literal","name":"r","value":"10"}],"children":[]},{"kind":"element","name":"path","attributes":[{"kind":"literal","name":"d","value":"M12 16v-4"}],"children":[]},{"kind":"element","name":"path","attributes":[{"kind":"literal","name":"d","value":"M12 8h.01"}],"children":[]}],"flow":{"kind":"if","test":"tone = 'info'","testPlan":{"source":"tone = 'info'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"tone"},"right":{"kind":"literal","value":"info"}},"dependencies":["tone"]}}},{"kind":"element","name":"svg","attributes":[{"kind":"literal","name":"viewBox","value":"0 0 24 24"},{"kind":"literal","name":"fill","value":"none"},{"kind":"literal","name":"stroke","value":"currentColor"},{"kind":"literal","name":"stroke-width","value":"2"},{"kind":"literal","name":"stroke-linecap","value":"round"},{"kind":"literal","name":"stroke-linejoin","value":"round"}],"children":[{"kind":"element","name":"path","attributes":[{"kind":"literal","name":"d","value":"M13.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.5L13.5 2Z"}],"children":[]},{"kind":"element","name":"path","attributes":[{"kind":"literal","name":"d","value":"M13 2v7h7"}],"children":[]},{"kind":"element","name":"path","attributes":[{"kind":"literal","name":"d","value":"m9.5 17.5 4-4 2 2-4 4H9.5v-2Z"}],"children":[]}],"flow":{"kind":"if","test":"tone = 'neutral' or tone = 'note'","testPlan":{"source":"tone = 'neutral' or tone = 'note'","ast":{"kind":"binary","op":"or","left":{"kind":"binary","op":"=","left":{"kind":"id","name":"tone"},"right":{"kind":"literal","value":"neutral"}},"right":{"kind":"binary","op":"=","left":{"kind":"id","name":"tone"},"right":{"kind":"literal","value":"note"}}},"dependencies":["tone"]}}},{"kind":"element","name":"svg","attributes":[{"kind":"literal","name":"viewBox","value":"0 0 24 24"},{"kind":"literal","name":"fill","value":"none"},{"kind":"literal","name":"stroke","value":"currentColor"},{"kind":"literal","name":"stroke-width","value":"2"},{"kind":"literal","name":"stroke-linecap","value":"round"},{"kind":"literal","name":"stroke-linejoin","value":"round"}],"children":[{"kind":"element","name":"path","attributes":[{"kind":"literal","name":"d","value":"m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"}],"children":[]},{"kind":"element","name":"path","attributes":[{"kind":"literal","name":"d","value":"M12 9v4"}],"children":[]},{"kind":"element","name":"path","attributes":[{"kind":"literal","name":"d","value":"M12 17h.01"}],"children":[]}],"flow":{"kind":"if","test":"tone = 'warning'","testPlan":{"source":"tone = 'warning'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"tone"},"right":{"kind":"literal","value":"warning"}},"dependencies":["tone"]}}},{"kind":"element","name":"svg","attributes":[{"kind":"literal","name":"viewBox","value":"0 0 24 24"},{"kind":"literal","name":"fill","value":"none"},{"kind":"literal","name":"stroke","value":"currentColor"},{"kind":"literal","name":"stroke-width","value":"2"},{"kind":"literal","name":"stroke-linecap","value":"round"},{"kind":"literal","name":"stroke-linejoin","value":"round"}],"children":[{"kind":"element","name":"circle","attributes":[{"kind":"literal","name":"cx","value":"12"},{"kind":"literal","name":"cy","value":"12"},{"kind":"literal","name":"r","value":"10"}],"children":[]},{"kind":"element","name":"path","attributes":[{"kind":"literal","name":"d","value":"m9 12 2 2 4-4"}],"children":[]}],"flow":{"kind":"if","test":"tone = 'success'","testPlan":{"source":"tone = 'success'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"tone"},"right":{"kind":"literal","value":"success"}},"dependencies":["tone"]}}},{"kind":"element","name":"svg","attributes":[{"kind":"literal","name":"viewBox","value":"0 0 24 24"},{"kind":"literal","name":"fill","value":"none"},{"kind":"literal","name":"stroke","value":"currentColor"},{"kind":"literal","name":"stroke-width","value":"2"},{"kind":"literal","name":"stroke-linecap","value":"round"},{"kind":"literal","name":"stroke-linejoin","value":"round"}],"children":[{"kind":"element","name":"circle","attributes":[{"kind":"literal","name":"cx","value":"12"},{"kind":"literal","name":"cy","value":"12"},{"kind":"literal","name":"r","value":"10"}],"children":[]},{"kind":"element","name":"path","attributes":[{"kind":"literal","name":"d","value":"m15 9-6 6"}],"children":[]},{"kind":"element","name":"path","attributes":[{"kind":"literal","name":"d","value":"m9 9 6 6"}],"children":[]}],"flow":{"kind":"if","test":"tone = 'danger'","testPlan":{"source":"tone = 'danger'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"tone"},"right":{"kind":"literal","value":"danger"}},"dependencies":["tone"]}}}]},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"content"}],"children":[{"kind":"slot"}]}]},"declarations":[],"root":{"kind":"native","element":"div","choices":["div"]}},source:{file:import.meta.url},css:""};
5
+ const T0 = ["",[],["span",["class","icon","aria-hidden","true"],1,1,1,1,1],["div",["class","content"],4]];
6
+ const T1 = ["svg",["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["circle",["cx","12","cy","12","r","10"]],["path",["d","M12 16v-4"]],["path",["d","M12 8h.01"]]];
7
+ const T2 = ["svg",["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["path",["d","M13.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.5L13.5 2Z"]],["path",["d","M13 2v7h7"]],["path",["d","m9.5 17.5 4-4 2 2-4 4H9.5v-2Z"]]];
8
+ const T3 = ["svg",["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["path",["d","m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z"]],["path",["d","M12 9v4"]],["path",["d","M12 17h.01"]]];
9
+ const T4 = ["svg",["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["circle",["cx","12","cy","12","r","10"]],["path",["d","m9 12 2 2 4-4"]]];
10
+ const T5 = ["svg",["viewBox","0 0 24 24","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["circle",["cx","12","cy","12","r","10"]],["path",["d","m15 9-6 6"]],["path",["d","m9 9 6 6"]]];
11
+ const T6 = ["",[]];
12
+ let P0, P1, P2, P3, P4, P5, P6;
13
+ const S = { n: [], t: [], f: import.meta.url, g: "ui-callout" };
14
+ const D = { props: { "tone": { "required":false,"values":["info","neutral","note","warning","success","danger"],"default":"info", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] } } };
6
15
 
7
- export function createUiCallout(options = {}) {
16
+ export function createUiCallout(options = {}, html) {
8
17
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
9
- const projected = [];
10
18
  const element = document.createElement("div");
11
19
  for (const [name, value] of Object.entries(attributes)) {
12
20
  if (value === null || value === undefined || value === false) continue;
@@ -14,112 +22,128 @@ export function createUiCallout(options = {}) {
14
22
  }
15
23
  if (!element.hasAttribute("role")) element.setAttribute("role", "note");
16
24
  element.setAttribute("data-component", "ui-callout");
17
- const element0 = document.createElement("span");
18
- element0.setAttribute("class", "icon");
19
- element0.setAttribute("aria-hidden", "true");
20
- const element1 = document.createElementNS("http://www.w3.org/2000/svg", "svg");
21
- element1.setAttribute("viewBox", "0 0 24 24");
22
- element1.setAttribute("fill", "none");
23
- element1.setAttribute("stroke", "currentColor");
24
- element1.setAttribute("stroke-width", "2");
25
- element1.setAttribute("stroke-linecap", "round");
26
- element1.setAttribute("stroke-linejoin", "round");
27
- const element2 = document.createElementNS("http://www.w3.org/2000/svg", "circle");
28
- element2.setAttribute("cx", "12");
29
- element2.setAttribute("cy", "12");
30
- element2.setAttribute("r", "10");
31
- element1.append(element2);
32
- const element3 = document.createElementNS("http://www.w3.org/2000/svg", "path");
33
- element3.setAttribute("d", "M12 16v-4");
34
- element1.append(element3);
35
- const element4 = document.createElementNS("http://www.w3.org/2000/svg", "path");
36
- element4.setAttribute("d", "M12 8h.01");
37
- element1.append(element4);
38
- element0.append(element1);
39
- const element5 = document.createElementNS("http://www.w3.org/2000/svg", "svg");
40
- element5.setAttribute("viewBox", "0 0 24 24");
41
- element5.setAttribute("fill", "none");
42
- element5.setAttribute("stroke", "currentColor");
43
- element5.setAttribute("stroke-width", "2");
44
- element5.setAttribute("stroke-linecap", "round");
45
- element5.setAttribute("stroke-linejoin", "round");
46
- const element6 = document.createElementNS("http://www.w3.org/2000/svg", "path");
47
- element6.setAttribute("d", "M13.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8.5L13.5 2Z");
48
- element5.append(element6);
49
- const element7 = document.createElementNS("http://www.w3.org/2000/svg", "path");
50
- element7.setAttribute("d", "M13 2v7h7");
51
- element5.append(element7);
52
- const element8 = document.createElementNS("http://www.w3.org/2000/svg", "path");
53
- element8.setAttribute("d", "m9.5 17.5 4-4 2 2-4 4H9.5v-2Z");
54
- element5.append(element8);
55
- element0.append(element5);
56
- const element9 = document.createElementNS("http://www.w3.org/2000/svg", "svg");
57
- element9.setAttribute("viewBox", "0 0 24 24");
58
- element9.setAttribute("fill", "none");
59
- element9.setAttribute("stroke", "currentColor");
60
- element9.setAttribute("stroke-width", "2");
61
- element9.setAttribute("stroke-linecap", "round");
62
- element9.setAttribute("stroke-linejoin", "round");
63
- const element10 = document.createElementNS("http://www.w3.org/2000/svg", "path");
64
- element10.setAttribute("d", "m21.73 18-8-14a2 2 0 0 0-3.46 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z");
65
- element9.append(element10);
66
- const element11 = document.createElementNS("http://www.w3.org/2000/svg", "path");
67
- element11.setAttribute("d", "M12 9v4");
68
- element9.append(element11);
69
- const element12 = document.createElementNS("http://www.w3.org/2000/svg", "path");
70
- element12.setAttribute("d", "M12 17h.01");
71
- element9.append(element12);
72
- element0.append(element9);
73
- const element13 = document.createElementNS("http://www.w3.org/2000/svg", "svg");
74
- element13.setAttribute("viewBox", "0 0 24 24");
75
- element13.setAttribute("fill", "none");
76
- element13.setAttribute("stroke", "currentColor");
77
- element13.setAttribute("stroke-width", "2");
78
- element13.setAttribute("stroke-linecap", "round");
79
- element13.setAttribute("stroke-linejoin", "round");
80
- const element14 = document.createElementNS("http://www.w3.org/2000/svg", "circle");
81
- element14.setAttribute("cx", "12");
82
- element14.setAttribute("cy", "12");
83
- element14.setAttribute("r", "10");
84
- element13.append(element14);
85
- const element15 = document.createElementNS("http://www.w3.org/2000/svg", "path");
86
- element15.setAttribute("d", "m9 12 2 2 4-4");
87
- element13.append(element15);
88
- element0.append(element13);
89
- const element16 = document.createElementNS("http://www.w3.org/2000/svg", "svg");
90
- element16.setAttribute("viewBox", "0 0 24 24");
91
- element16.setAttribute("fill", "none");
92
- element16.setAttribute("stroke", "currentColor");
93
- element16.setAttribute("stroke-width", "2");
94
- element16.setAttribute("stroke-linecap", "round");
95
- element16.setAttribute("stroke-linejoin", "round");
96
- const element17 = document.createElementNS("http://www.w3.org/2000/svg", "circle");
97
- element17.setAttribute("cx", "12");
98
- element17.setAttribute("cy", "12");
99
- element17.setAttribute("r", "10");
100
- element16.append(element17);
101
- const element18 = document.createElementNS("http://www.w3.org/2000/svg", "path");
102
- element18.setAttribute("d", "m15 9-6 6");
103
- element16.append(element18);
104
- const element19 = document.createElementNS("http://www.w3.org/2000/svg", "path");
105
- element19.setAttribute("d", "m9 9 6 6");
106
- element16.append(element19);
107
- element0.append(element16);
108
- element.append(element0);
109
- const element20 = document.createElement("div");
110
- element20.setAttribute("class", "content");
111
- if (children.length > 0) {
112
- for (const child of children) {
113
- const node = typeof child === "string" ? document.createTextNode(child) : child;
114
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
115
- projected.push([node, ""]);
116
- element20.append(node);
25
+ element.append((P0 ??= buildTemplate(T0)).cloneNode(true));
26
+ const v = [null];
27
+ const B = acceptProps(element, D, S.n, v, componentProps, [], html);
28
+ const m1 = (d) => {
29
+ const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
30
+ const r = { n };
31
+ p1(r, -1, d);
32
+ return r;
33
+ };
34
+ const p1 = (r, c, d) => {
35
+ };
36
+ const m2 = (d) => {
37
+ const n = (P2 ??= buildTemplate(T2)).cloneNode(true);
38
+ const r = { n };
39
+ p2(r, -1, d);
40
+ return r;
41
+ };
42
+ const p2 = (r, c, d) => {
43
+ };
44
+ const m3 = (d) => {
45
+ const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
46
+ const r = { n };
47
+ p3(r, -1, d);
48
+ return r;
49
+ };
50
+ const p3 = (r, c, d) => {
51
+ };
52
+ const m4 = (d) => {
53
+ const n = (P4 ??= buildTemplate(T4)).cloneNode(true);
54
+ const r = { n };
55
+ p4(r, -1, d);
56
+ return r;
57
+ };
58
+ const p4 = (r, c, d) => {
59
+ };
60
+ const m5 = (d) => {
61
+ const n = (P5 ??= buildTemplate(T5)).cloneNode(true);
62
+ const r = { n };
63
+ p5(r, -1, d);
64
+ return r;
65
+ };
66
+ const p5 = (r, c, d) => {
67
+ };
68
+ const m6 = (d) => {
69
+ const n = (P6 ??= buildTemplate(T6)).cloneNode(true);
70
+ const r = { n };
71
+ p6(r, -1, d);
72
+ return r;
73
+ };
74
+ const p6 = (r, c, d) => {
75
+ };
76
+ const p0 = (r, c, d) => {
77
+ if (c & 1) {
78
+ const x0 = hostState(["tone"], [v[0]]);
79
+ const s0 = x0;
80
+ if (s0 !== r.v0) writeAttribute(r.n, "data-ui-callout-state", (r.v0 = s0) === "" ? null : s0);
117
81
  }
118
- } else {
119
- }
120
- element.append(element20);
121
- manageComponentLifecycle(element, definition, { props: componentProps, projected,
122
- });
82
+ if (c & 1) {
83
+ const t0 = (v[0] === "info");
84
+ if (true) {
85
+ {
86
+ r.b0 = undefined;
87
+ clearRegion(r.a0, r.e0);
88
+ if (t0) { r.b0 = m1(d); r.e0.before(r.b0.n); }
89
+ }
90
+ } else if (r.b0 !== undefined) p1(r.b0, c, d);
91
+ } else if (r.b0 !== undefined) p1(r.b0, c, d);
92
+ if (c & 1) {
93
+ const t1 = ((v[0] === "neutral") || (v[0] === "note"));
94
+ if (true) {
95
+ {
96
+ r.b1 = undefined;
97
+ clearRegion(r.a1, r.e1);
98
+ if (t1) { r.b1 = m2(d); r.e1.before(r.b1.n); }
99
+ }
100
+ } else if (r.b1 !== undefined) p2(r.b1, c, d);
101
+ } else if (r.b1 !== undefined) p2(r.b1, c, d);
102
+ if (c & 1) {
103
+ const t2 = (v[0] === "warning");
104
+ if (true) {
105
+ {
106
+ r.b2 = undefined;
107
+ clearRegion(r.a2, r.e2);
108
+ if (t2) { r.b2 = m3(d); r.e2.before(r.b2.n); }
109
+ }
110
+ } else if (r.b2 !== undefined) p3(r.b2, c, d);
111
+ } else if (r.b2 !== undefined) p3(r.b2, c, d);
112
+ if (c & 1) {
113
+ const t3 = (v[0] === "success");
114
+ if (true) {
115
+ {
116
+ r.b3 = undefined;
117
+ clearRegion(r.a3, r.e3);
118
+ if (t3) { r.b3 = m4(d); r.e3.before(r.b3.n); }
119
+ }
120
+ } else if (r.b3 !== undefined) p4(r.b3, c, d);
121
+ } else if (r.b3 !== undefined) p4(r.b3, c, d);
122
+ if (c & 1) {
123
+ const t4 = (v[0] === "danger");
124
+ if (true) {
125
+ {
126
+ r.b4 = undefined;
127
+ clearRegion(r.a4, r.e4);
128
+ if (t4) { r.b4 = m5(d); r.e4.before(r.b4.n); }
129
+ }
130
+ } else if (r.b4 !== undefined) p5(r.b4, c, d);
131
+ } else if (r.b4 !== undefined) p5(r.b4, c, d);
132
+ if (r.f5 === undefined) { r.f5 = 1; const at = fillSlot(r.a5, r.e5, "", J, false, undefined, d);
133
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b5 = m6(d); at.before(r.b5.n); } }
134
+ else if (r.b5 !== undefined) p6(r.b5, c, d);
135
+ };
136
+ const t0 = element.firstChild;
137
+ const t1 = t0.firstChild;
138
+ const t2 = t1.nextSibling.nextSibling;
139
+ const t3 = t2.nextSibling.nextSibling;
140
+ const t4 = t3.nextSibling.nextSibling;
141
+ const t5 = t4.nextSibling.nextSibling;
142
+ const t6 = t0.nextSibling.firstChild;
143
+ const R = { n: element, v0: undefined, a0: t1, e0: t1.nextSibling, b0: undefined, a1: t2, e1: t2.nextSibling, b1: undefined, a2: t3, e2: t3.nextSibling, b2: undefined, a3: t4, e3: t4.nextSibling, b3: undefined, a4: t5, e4: t5.nextSibling, b4: undefined, a5: t6, e5: t6.nextSibling, b5: undefined, f5: undefined };
144
+ const I = { B };
145
+ const J = project(I, children, slots);
146
+ attachGeneratedController(element, S, v, ((c, d) => p0(R, c, d)), undefined, undefined, I);
147
+ manageProps(I);
123
148
  return element;
124
149
  }
125
-
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.29 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
2
2
  export interface UiCardEventMap {
3
3
  }
4
4
  export interface UiCardElement extends HTMLElement {
package/vanilla/UiCard.js CHANGED
@@ -1,62 +1,48 @@
1
- // Generated by HTML Next 1.0.0-alpha.29 for Vanilla DOM. Do not edit.
2
- import { componentRootIndex, manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, buildTemplate, writeAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, project, fillSlot, armElement, replaceRoot, checkFormat } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-card.css";
4
4
 
5
- const definition = {...{"contract":{"tag":"ui-card","props":{"as":{"type":{"kind":"terminal","name":"keyword"},"values":["div","section","article","aside"],"required":false,"target":{"attribute":"as"},"default":"div"},"padding":{"type":{"kind":"terminal","name":"keyword"},"values":["xs","sm","md","lg"],"required":false,"target":{"attribute":"padding"},"default":"md"},"size":{"type":{"kind":"terminal","name":"keyword"},"values":["content","sm","md","lg"],"required":false,"target":{"attribute":"size"},"default":"content"},"tone":{"type":{"kind":"terminal","name":"keyword"},"values":["neutral","accent","info","success","warning","danger"],"required":false,"target":{"attribute":"tone"},"default":"neutral"},"variant":{"type":{"kind":"terminal","name":"keyword"},"values":["outlined","subtle","elevated"],"required":false,"target":{"attribute":"variant"},"default":"outlined"}}},"template":{"kind":"element","name":"template","attributes":[],"children":[{"kind":"element","name":"section","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'section'","testPlan":{"source":"as = 'section'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"section"}},"dependencies":["as"]}}},{"kind":"element","name":"article","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'article'","testPlan":{"source":"as = 'article'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"article"}},"dependencies":["as"]}}},{"kind":"element","name":"aside","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"when","test":"as = 'aside'","testPlan":{"source":"as = 'aside'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"aside"}},"dependencies":["as"]}}},{"kind":"element","name":"div","attributes":[],"children":[{"kind":"slot"}],"flow":{"kind":"else"}}],"flow":{"kind":"match"}},"declarations":[],"root":{"kind":"native","element":"div","choices":["section","article","aside","div"]}},source:{file:import.meta.url},css:""};
5
+ const T0 = ["",[],4];
6
+ const T1 = ["",[]];
7
+ const T2 = ["",[],4];
8
+ const T3 = ["",[]];
9
+ const T4 = ["",[],4];
10
+ const T5 = ["",[]];
11
+ const T6 = ["",[],4];
12
+ const T7 = ["",[]];
13
+ let P0, P1, P2, P3, P4, P5, P6, P7;
14
+ const S = { n: [], t: [], f: import.meta.url, g: "ui-card" };
15
+ const A = [["section",{},[],"",[],["data-ui-card-state","data-as","data-padding","data-size","data-tone","data-variant"]],["article",{},[],"",[],["data-ui-card-state","data-as","data-padding","data-size","data-tone","data-variant"]],["aside",{},[],"",[],["data-ui-card-state","data-as","data-padding","data-size","data-tone","data-variant"]],["div",{},[],"",[],["data-ui-card-state","data-as","data-padding","data-size","data-tone","data-variant"]]];
16
+ const Q = [[],[],[],[]];
17
+ const D = { props: { "as": { "required":false,"values":["div","section","article","aside"],"default":"div", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "padding": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "size": { "required":false,"values":["content","sm","md","lg"],"default":"content", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "tone": { "required":false,"values":["neutral","accent","info","success","warning","danger"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] }, "variant": { "required":false,"values":["outlined","subtle","elevated"],"default":"outlined", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat),false] } } };
6
18
 
7
- export function createUiCard(options = {}) {
19
+ export function createUiCard(options = {}, html) {
8
20
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
9
- const projected = [];
10
- const root = componentRootIndex(definition, componentProps);
21
+ const v = [null, null, null, null, null];
22
+ acceptProps(undefined, D, S.n, v, componentProps, [], html);
23
+ let a = ((v[0] === "section") ? 0 : (v[0] === "article") ? 1 : (v[0] === "aside") ? 2 : 3);
11
24
  let element;
12
- if (root === 0) {
25
+ if (a === 0) {
13
26
  element = document.createElement("section");
14
27
  for (const [name, value] of Object.entries(attributes)) {
15
28
  if (value === null || value === undefined || value === false) continue;
16
29
  element.setAttribute(name, value === true ? "" : String(value));
17
30
  }
18
31
  element.setAttribute("data-component", "ui-card");
19
- if (children.length > 0) {
20
- for (const child of children) {
21
- const node = typeof child === "string" ? document.createTextNode(child) : child;
22
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
23
- projected.push([node, ""]);
24
- element.append(node);
25
- }
26
- } else {
27
- }
28
- } else if (root === 1) {
32
+ } else if (a === 1) {
29
33
  element = document.createElement("article");
30
34
  for (const [name, value] of Object.entries(attributes)) {
31
35
  if (value === null || value === undefined || value === false) continue;
32
36
  element.setAttribute(name, value === true ? "" : String(value));
33
37
  }
34
38
  element.setAttribute("data-component", "ui-card");
35
- if (children.length > 0) {
36
- for (const child of children) {
37
- const node = typeof child === "string" ? document.createTextNode(child) : child;
38
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
39
- projected.push([node, ""]);
40
- element.append(node);
41
- }
42
- } else {
43
- }
44
- } else if (root === 2) {
39
+ } else if (a === 2) {
45
40
  element = document.createElement("aside");
46
41
  for (const [name, value] of Object.entries(attributes)) {
47
42
  if (value === null || value === undefined || value === false) continue;
48
43
  element.setAttribute(name, value === true ? "" : String(value));
49
44
  }
50
45
  element.setAttribute("data-component", "ui-card");
51
- if (children.length > 0) {
52
- for (const child of children) {
53
- const node = typeof child === "string" ? document.createTextNode(child) : child;
54
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
55
- projected.push([node, ""]);
56
- element.append(node);
57
- }
58
- } else {
59
- }
60
46
  } else {
61
47
  element = document.createElement("div");
62
48
  for (const [name, value] of Object.entries(attributes)) {
@@ -64,18 +50,132 @@ export function createUiCard(options = {}) {
64
50
  element.setAttribute(name, value === true ? "" : String(value));
65
51
  }
66
52
  element.setAttribute("data-component", "ui-card");
67
- if (children.length > 0) {
68
- for (const child of children) {
69
- const node = typeof child === "string" ? document.createTextNode(child) : child;
70
- if (node.nodeType === 1) node.setAttribute("data-slotted", "");
71
- projected.push([node, ""]);
72
- element.append(node);
53
+ }
54
+ const B = acceptProps(element, D, S.n, v, componentProps, Q[a], html);
55
+ const m1 = (d) => {
56
+ const n = (P1 ??= buildTemplate(T1)).cloneNode(true);
57
+ const r = { n };
58
+ p1(r, -1, d);
59
+ return r;
60
+ };
61
+ const p1 = (r, c, d) => {
62
+ };
63
+ const m3 = (d) => {
64
+ const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
65
+ const r = { n };
66
+ p3(r, -1, d);
67
+ return r;
68
+ };
69
+ const p3 = (r, c, d) => {
70
+ };
71
+ const m5 = (d) => {
72
+ const n = (P5 ??= buildTemplate(T5)).cloneNode(true);
73
+ const r = { n };
74
+ p5(r, -1, d);
75
+ return r;
76
+ };
77
+ const p5 = (r, c, d) => {
78
+ };
79
+ const m7 = (d) => {
80
+ const n = (P7 ??= buildTemplate(T7)).cloneNode(true);
81
+ const r = { n };
82
+ p7(r, -1, d);
83
+ return r;
84
+ };
85
+ const p7 = (r, c, d) => {
86
+ };
87
+ const m0 = (n, d) => {
88
+ n.append((P0 ??= buildTemplate(T0)).cloneNode(true));
89
+ const t0 = n.firstChild;
90
+ const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
91
+ p0(r, -1, d);
92
+ return r;
93
+ };
94
+ const p0 = (r, c, d) => {
95
+ if (c & 30) {
96
+ const x0 = hostState(["padding","variant","tone","size"], [v[1], v[4], v[3], v[2]]);
97
+ const s0 = x0;
98
+ if (s0 !== r.v0) writeAttribute(r.n, "data-ui-card-state", (r.v0 = s0) === "" ? null : s0);
99
+ }
100
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
101
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m1(d); at.before(r.b0.n); } }
102
+ else if (r.b0 !== undefined) p1(r.b0, c, d);
103
+ };
104
+ const m2 = (n, d) => {
105
+ n.append((P2 ??= buildTemplate(T2)).cloneNode(true));
106
+ const t0 = n.firstChild;
107
+ const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
108
+ p2(r, -1, d);
109
+ return r;
110
+ };
111
+ const p2 = (r, c, d) => {
112
+ if (c & 30) {
113
+ const x0 = hostState(["padding","variant","tone","size"], [v[1], v[4], v[3], v[2]]);
114
+ const s0 = x0;
115
+ if (s0 !== r.v0) writeAttribute(r.n, "data-ui-card-state", (r.v0 = s0) === "" ? null : s0);
116
+ }
117
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
118
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m3(d); at.before(r.b0.n); } }
119
+ else if (r.b0 !== undefined) p3(r.b0, c, d);
120
+ };
121
+ const m4 = (n, d) => {
122
+ n.append((P4 ??= buildTemplate(T4)).cloneNode(true));
123
+ const t0 = n.firstChild;
124
+ const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
125
+ p4(r, -1, d);
126
+ return r;
127
+ };
128
+ const p4 = (r, c, d) => {
129
+ if (c & 30) {
130
+ const x0 = hostState(["padding","variant","tone","size"], [v[1], v[4], v[3], v[2]]);
131
+ const s0 = x0;
132
+ if (s0 !== r.v0) writeAttribute(r.n, "data-ui-card-state", (r.v0 = s0) === "" ? null : s0);
133
+ }
134
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
135
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m5(d); at.before(r.b0.n); } }
136
+ else if (r.b0 !== undefined) p5(r.b0, c, d);
137
+ };
138
+ const m6 = (n, d) => {
139
+ n.append((P6 ??= buildTemplate(T6)).cloneNode(true));
140
+ const t0 = n.firstChild;
141
+ const r = { n, v0: undefined, a0: t0, e0: t0.nextSibling, b0: undefined, f0: undefined };
142
+ p6(r, -1, d);
143
+ return r;
144
+ };
145
+ const p6 = (r, c, d) => {
146
+ if (c & 30) {
147
+ const x0 = hostState(["padding","variant","tone","size"], [v[1], v[4], v[3], v[2]]);
148
+ const s0 = x0;
149
+ if (s0 !== r.v0) writeAttribute(r.n, "data-ui-card-state", (r.v0 = s0) === "" ? null : s0);
150
+ }
151
+ if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "", J, false, undefined, d);
152
+ if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m7(d); at.before(r.b0.n); } }
153
+ else if (r.b0 !== undefined) p7(r.b0, c, d);
154
+ };
155
+ const M = [m0, m2, m4, m6], N = [p0, p2, p4, p6];
156
+ let R;
157
+ const p = (c, d) => {
158
+ if (R === null) return;
159
+ if (R === undefined) { R = M[a](element, d); return; }
160
+ if (c & 1) {
161
+ const t = ((v[0] === "section") ? 0 : (v[0] === "article") ? 1 : (v[0] === "aside") ? 2 : 3);
162
+ if (t !== a) {
163
+ dispose(R);
164
+ for (const key in I.r) delete I.r[key];
165
+ const previous = I.e, next = armElement(previous, A[a], A[t]);
166
+ I.B.b = Q[t];
167
+ a = t;
168
+ R = null;
169
+ R = M[t](next, d);
170
+ replaceRoot(I, previous, next);
171
+ return;
73
172
  }
74
- } else {
75
173
  }
76
- }
77
- manageComponentLifecycle(element, definition, { props: componentProps, projected,
78
- });
174
+ N[a](R, c, d);
175
+ };
176
+ const I = { B };
177
+ const J = project(I, children, slots);
178
+ attachGeneratedController(element, S, v, p, undefined, undefined, I);
179
+ manageProps(I);
79
180
  return element;
80
181
  }
81
-
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.29 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.35 for Vanilla DOM. Do not edit.
2
2
  export interface UiCheckboxEventMap {
3
3
  change: CustomEvent<{ readonly checked: boolean; readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  }