@threadlabs/looma 0.13.1 → 0.13.3

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 (343) hide show
  1. package/components/ui-affordance-scope/ui-affordance-scope.html +9 -0
  2. package/components/ui-button/ui-button.html +18 -14
  3. package/components/ui-card/ui-card.html +8 -1
  4. package/components/ui-combobox/ui-combobox.html +1 -1
  5. package/components/ui-editor-table-overlay/ui-editor-table-overlay.html +2 -2
  6. package/components/ui-icon-button/ui-icon-button.html +1 -1
  7. package/components/ui-nav-item/ui-nav-item.html +28 -18
  8. package/components/ui-sidebar/ui-sidebar.html +1 -1
  9. package/components/ui-text/ui-text.html +11 -1
  10. package/dist/index.js +1 -1
  11. package/package.json +2 -2
  12. package/styles/ui-action-bar.css +1 -1
  13. package/styles/ui-affordance-scope.css +10 -2
  14. package/styles/ui-avatar-group.css +1 -1
  15. package/styles/ui-avatar.css +1 -1
  16. package/styles/ui-badge.css +1 -1
  17. package/styles/ui-breadcrumb-item.css +1 -1
  18. package/styles/ui-breadcrumbs.css +1 -1
  19. package/styles/ui-button.css +1 -1
  20. package/styles/ui-callout.css +1 -1
  21. package/styles/ui-card.css +1 -1
  22. package/styles/ui-checkbox.css +1 -1
  23. package/styles/ui-cluster.css +1 -1
  24. package/styles/ui-combobox.css +1 -1
  25. package/styles/ui-container.css +1 -1
  26. package/styles/ui-context-menu.css +1 -1
  27. package/styles/ui-cover.css +1 -1
  28. package/styles/ui-description-item.css +1 -1
  29. package/styles/ui-description-list.css +1 -1
  30. package/styles/ui-dialog.css +1 -1
  31. package/styles/ui-disclosure.css +1 -1
  32. package/styles/ui-editable.css +1 -1
  33. package/styles/ui-editor-insert-table-grid.css +1 -1
  34. package/styles/ui-editor-mention-menu.css +1 -1
  35. package/styles/ui-editor-slash-menu.css +1 -1
  36. package/styles/ui-editor-table-context-menu.css +1 -1
  37. package/styles/ui-editor-table-overlay.css +3 -3
  38. package/styles/ui-editor-table-toolbar.css +1 -1
  39. package/styles/ui-editor-toolbar.css +1 -1
  40. package/styles/ui-floating-action-button.css +1 -1
  41. package/styles/ui-form-field.css +1 -1
  42. package/styles/ui-grid.css +1 -1
  43. package/styles/ui-icon-button.css +2 -2
  44. package/styles/ui-icon.css +1 -1
  45. package/styles/ui-input-group.css +1 -1
  46. package/styles/ui-input.css +1 -1
  47. package/styles/ui-list-item.css +1 -1
  48. package/styles/ui-list.css +1 -1
  49. package/styles/ui-menu-item.css +1 -1
  50. package/styles/ui-menu.css +1 -1
  51. package/styles/ui-nav-item.css +1 -1
  52. package/styles/ui-page-header.css +1 -1
  53. package/styles/ui-popover.css +1 -1
  54. package/styles/ui-radio-group.css +1 -1
  55. package/styles/ui-radio.css +1 -1
  56. package/styles/ui-reel.css +1 -1
  57. package/styles/ui-scroll-area.css +1 -1
  58. package/styles/ui-search-result-row.css +1 -1
  59. package/styles/ui-search-shell.css +1 -1
  60. package/styles/ui-section.css +1 -1
  61. package/styles/ui-select.css +1 -1
  62. package/styles/ui-separator.css +1 -1
  63. package/styles/ui-sidebar.css +2 -2
  64. package/styles/ui-spinner.css +1 -1
  65. package/styles/ui-stack.css +1 -1
  66. package/styles/ui-status-message.css +1 -1
  67. package/styles/ui-switch.css +1 -1
  68. package/styles/ui-switcher.css +1 -1
  69. package/styles/ui-tabs.css +1 -1
  70. package/styles/ui-text.css +1 -1
  71. package/styles/ui-textarea.css +1 -1
  72. package/styles/ui-toast-region.css +1 -1
  73. package/styles/ui-tooltip.css +1 -1
  74. package/styles/ui-top-bar.css +1 -1
  75. package/styles/ui-tree-item.css +1 -1
  76. package/styles/ui-tree.css +1 -1
  77. package/vanilla/UiActionBar.d.ts +1 -1
  78. package/vanilla/UiActionBar.js +2 -2
  79. package/vanilla/UiAffordanceScope.d.ts +2 -1
  80. package/vanilla/UiAffordanceScope.js +3 -3
  81. package/vanilla/UiAvatar.d.ts +1 -1
  82. package/vanilla/UiAvatar.js +2 -2
  83. package/vanilla/UiAvatarGroup.d.ts +1 -1
  84. package/vanilla/UiAvatarGroup.js +2 -2
  85. package/vanilla/UiBadge.d.ts +1 -1
  86. package/vanilla/UiBadge.js +2 -2
  87. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  88. package/vanilla/UiBreadcrumbItem.js +2 -2
  89. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  90. package/vanilla/UiBreadcrumbs.js +2 -2
  91. package/vanilla/UiButton.d.ts +3 -3
  92. package/vanilla/UiButton.js +46 -21
  93. package/vanilla/UiCallout.d.ts +1 -1
  94. package/vanilla/UiCallout.js +2 -2
  95. package/vanilla/UiCard.d.ts +3 -3
  96. package/vanilla/UiCard.js +67 -22
  97. package/vanilla/UiCheckbox.d.ts +1 -1
  98. package/vanilla/UiCheckbox.js +2 -2
  99. package/vanilla/UiCluster.d.ts +1 -1
  100. package/vanilla/UiCluster.js +2 -2
  101. package/vanilla/UiCombobox.d.ts +1 -1
  102. package/vanilla/UiCombobox.js +3 -3
  103. package/vanilla/UiContainer.d.ts +1 -1
  104. package/vanilla/UiContainer.js +2 -2
  105. package/vanilla/UiContextMenu.d.ts +1 -1
  106. package/vanilla/UiContextMenu.js +2 -2
  107. package/vanilla/UiCover.d.ts +1 -1
  108. package/vanilla/UiCover.js +2 -2
  109. package/vanilla/UiDescriptionItem.d.ts +1 -1
  110. package/vanilla/UiDescriptionItem.js +2 -2
  111. package/vanilla/UiDescriptionList.d.ts +1 -1
  112. package/vanilla/UiDescriptionList.js +2 -2
  113. package/vanilla/UiDialog.d.ts +1 -1
  114. package/vanilla/UiDialog.js +2 -2
  115. package/vanilla/UiDisclosure.d.ts +1 -1
  116. package/vanilla/UiDisclosure.js +2 -2
  117. package/vanilla/UiEditable.d.ts +1 -1
  118. package/vanilla/UiEditable.js +2 -2
  119. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  120. package/vanilla/UiEditorInsertTableGrid.js +2 -2
  121. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  122. package/vanilla/UiEditorMentionMenu.js +2 -2
  123. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  124. package/vanilla/UiEditorSlashMenu.js +2 -2
  125. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  126. package/vanilla/UiEditorTableContextMenu.js +2 -2
  127. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  128. package/vanilla/UiEditorTableOverlay.js +2 -2
  129. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  130. package/vanilla/UiEditorTableToolbar.js +2 -2
  131. package/vanilla/UiEditorToolbar.d.ts +1 -1
  132. package/vanilla/UiEditorToolbar.js +2 -2
  133. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  134. package/vanilla/UiFloatingActionButton.js +2 -2
  135. package/vanilla/UiFormField.d.ts +1 -1
  136. package/vanilla/UiFormField.js +2 -2
  137. package/vanilla/UiGrid.d.ts +1 -1
  138. package/vanilla/UiGrid.js +2 -2
  139. package/vanilla/UiIcon.d.ts +1 -1
  140. package/vanilla/UiIcon.js +2 -2
  141. package/vanilla/UiIconButton.d.ts +1 -1
  142. package/vanilla/UiIconButton.js +2 -2
  143. package/vanilla/UiInput.d.ts +1 -1
  144. package/vanilla/UiInput.js +2 -2
  145. package/vanilla/UiInputGroup.d.ts +1 -1
  146. package/vanilla/UiInputGroup.js +2 -2
  147. package/vanilla/UiList.d.ts +1 -1
  148. package/vanilla/UiList.js +2 -2
  149. package/vanilla/UiListItem.d.ts +1 -1
  150. package/vanilla/UiListItem.js +2 -2
  151. package/vanilla/UiMenu.d.ts +1 -1
  152. package/vanilla/UiMenu.js +2 -2
  153. package/vanilla/UiMenuItem.d.ts +1 -1
  154. package/vanilla/UiMenuItem.js +2 -2
  155. package/vanilla/UiNavItem.d.ts +3 -3
  156. package/vanilla/UiNavItem.js +106 -54
  157. package/vanilla/UiPageHeader.d.ts +1 -1
  158. package/vanilla/UiPageHeader.js +2 -2
  159. package/vanilla/UiPopover.d.ts +1 -1
  160. package/vanilla/UiPopover.js +2 -2
  161. package/vanilla/UiRadio.d.ts +1 -1
  162. package/vanilla/UiRadio.js +2 -2
  163. package/vanilla/UiRadioGroup.d.ts +1 -1
  164. package/vanilla/UiRadioGroup.js +2 -2
  165. package/vanilla/UiReel.d.ts +1 -1
  166. package/vanilla/UiReel.js +2 -2
  167. package/vanilla/UiScrollArea.d.ts +1 -1
  168. package/vanilla/UiScrollArea.js +2 -2
  169. package/vanilla/UiSearchResultRow.d.ts +1 -1
  170. package/vanilla/UiSearchResultRow.js +2 -2
  171. package/vanilla/UiSearchShell.d.ts +1 -1
  172. package/vanilla/UiSearchShell.js +2 -2
  173. package/vanilla/UiSection.d.ts +1 -1
  174. package/vanilla/UiSection.js +2 -2
  175. package/vanilla/UiSelect.d.ts +1 -1
  176. package/vanilla/UiSelect.js +2 -2
  177. package/vanilla/UiSeparator.d.ts +1 -1
  178. package/vanilla/UiSeparator.js +2 -2
  179. package/vanilla/UiSidebar.d.ts +1 -1
  180. package/vanilla/UiSidebar.js +2 -2
  181. package/vanilla/UiSpinner.d.ts +1 -1
  182. package/vanilla/UiSpinner.js +2 -2
  183. package/vanilla/UiStack.d.ts +1 -1
  184. package/vanilla/UiStack.js +2 -2
  185. package/vanilla/UiStatusMessage.d.ts +1 -1
  186. package/vanilla/UiStatusMessage.js +2 -2
  187. package/vanilla/UiSwitch.d.ts +1 -1
  188. package/vanilla/UiSwitch.js +2 -2
  189. package/vanilla/UiSwitcher.d.ts +1 -1
  190. package/vanilla/UiSwitcher.js +2 -2
  191. package/vanilla/UiTabs.d.ts +1 -1
  192. package/vanilla/UiTabs.js +2 -2
  193. package/vanilla/UiText.d.ts +3 -3
  194. package/vanilla/UiText.js +97 -28
  195. package/vanilla/UiTextarea.d.ts +1 -1
  196. package/vanilla/UiTextarea.js +2 -2
  197. package/vanilla/UiToastRegion.d.ts +1 -1
  198. package/vanilla/UiToastRegion.js +2 -2
  199. package/vanilla/UiTooltip.d.ts +1 -1
  200. package/vanilla/UiTooltip.js +2 -2
  201. package/vanilla/UiTopBar.d.ts +1 -1
  202. package/vanilla/UiTopBar.js +2 -2
  203. package/vanilla/UiTree.d.ts +1 -1
  204. package/vanilla/UiTree.js +2 -2
  205. package/vanilla/UiTreeItem.d.ts +1 -1
  206. package/vanilla/UiTreeItem.js +2 -2
  207. package/vue/UiActionBar.vue +1 -1
  208. package/vue/UiAffordanceScope.d.ts +2 -0
  209. package/vue/UiAffordanceScope.vue +10 -1
  210. package/vue/UiAvatar.vue +1 -1
  211. package/vue/UiAvatarGroup.vue +1 -1
  212. package/vue/UiBadge.vue +1 -1
  213. package/vue/UiBreadcrumbItem.vue +1 -1
  214. package/vue/UiBreadcrumbs.vue +1 -1
  215. package/vue/UiButton.d.ts +6 -4
  216. package/vue/UiButton.vue +14 -8
  217. package/vue/UiCallout.vue +1 -1
  218. package/vue/UiCard.d.ts +8 -2
  219. package/vue/UiCard.vue +27 -4
  220. package/vue/UiCheckbox.vue +1 -1
  221. package/vue/UiCluster.vue +1 -1
  222. package/vue/UiCombobox.vue +2 -2
  223. package/vue/UiContainer.vue +1 -1
  224. package/vue/UiContextMenu.vue +1 -1
  225. package/vue/UiCover.vue +1 -1
  226. package/vue/UiDescriptionItem.vue +1 -1
  227. package/vue/UiDescriptionList.vue +1 -1
  228. package/vue/UiDialog.vue +1 -1
  229. package/vue/UiDisclosure.vue +1 -1
  230. package/vue/UiEditable.vue +1 -1
  231. package/vue/UiEditorInsertTableGrid.vue +1 -1
  232. package/vue/UiEditorMentionMenu.vue +1 -1
  233. package/vue/UiEditorSlashMenu.vue +1 -1
  234. package/vue/UiEditorTableContextMenu.vue +1 -1
  235. package/vue/UiEditorTableOverlay.vue +3 -3
  236. package/vue/UiEditorTableToolbar.vue +1 -1
  237. package/vue/UiEditorToolbar.vue +1 -1
  238. package/vue/UiFloatingActionButton.vue +1 -1
  239. package/vue/UiFormField.vue +1 -1
  240. package/vue/UiGrid.vue +1 -1
  241. package/vue/UiIcon.vue +1 -1
  242. package/vue/UiIconButton.vue +2 -2
  243. package/vue/UiInput.vue +1 -1
  244. package/vue/UiInputGroup.vue +1 -1
  245. package/vue/UiList.vue +1 -1
  246. package/vue/UiListItem.vue +1 -1
  247. package/vue/UiMenu.vue +1 -1
  248. package/vue/UiMenuItem.vue +1 -1
  249. package/vue/UiNavItem.d.ts +10 -4
  250. package/vue/UiNavItem.vue +22 -5
  251. package/vue/UiPageHeader.vue +1 -1
  252. package/vue/UiPopover.vue +1 -1
  253. package/vue/UiRadio.vue +1 -1
  254. package/vue/UiRadioGroup.vue +1 -1
  255. package/vue/UiReel.vue +1 -1
  256. package/vue/UiScrollArea.vue +1 -1
  257. package/vue/UiSearchResultRow.vue +1 -1
  258. package/vue/UiSearchShell.vue +1 -1
  259. package/vue/UiSection.vue +1 -1
  260. package/vue/UiSelect.vue +1 -1
  261. package/vue/UiSeparator.vue +1 -1
  262. package/vue/UiSidebar.vue +2 -2
  263. package/vue/UiSpinner.vue +1 -1
  264. package/vue/UiStack.vue +1 -1
  265. package/vue/UiStatusMessage.vue +1 -1
  266. package/vue/UiSwitch.vue +1 -1
  267. package/vue/UiSwitcher.vue +1 -1
  268. package/vue/UiTabs.vue +1 -1
  269. package/vue/UiText.d.ts +14 -4
  270. package/vue/UiText.vue +37 -6
  271. package/vue/UiTextarea.vue +1 -1
  272. package/vue/UiToastRegion.vue +1 -1
  273. package/vue/UiTooltip.vue +1 -1
  274. package/vue/UiTopBar.vue +1 -1
  275. package/vue/UiTree.vue +1 -1
  276. package/vue/UiTreeItem.vue +1 -1
  277. package/vue/chunks/UiActionBar.js +1 -1
  278. package/vue/chunks/UiAffordanceScope.js +6 -3
  279. package/vue/chunks/UiAvatar.js +1 -1
  280. package/vue/chunks/UiAvatarGroup.js +1 -1
  281. package/vue/chunks/UiBadge.js +1 -1
  282. package/vue/chunks/UiBreadcrumbItem.js +1 -1
  283. package/vue/chunks/UiBreadcrumbs.js +1 -1
  284. package/vue/chunks/UiButton.js +28 -24
  285. package/vue/chunks/UiCallout.js +1 -1
  286. package/vue/chunks/UiCard.js +20 -6
  287. package/vue/chunks/UiCheckbox.js +1 -1
  288. package/vue/chunks/UiCluster.js +1 -1
  289. package/vue/chunks/UiCombobox.js +2 -2
  290. package/vue/chunks/UiContainer.js +1 -1
  291. package/vue/chunks/UiContextMenu.js +1 -1
  292. package/vue/chunks/UiCover.js +1 -1
  293. package/vue/chunks/UiDescriptionItem.js +1 -1
  294. package/vue/chunks/UiDescriptionList.js +1 -1
  295. package/vue/chunks/UiDialog.js +1 -1
  296. package/vue/chunks/UiDisclosure.js +1 -1
  297. package/vue/chunks/UiEditable.js +1 -1
  298. package/vue/chunks/UiEditorInsertTableGrid.js +1 -1
  299. package/vue/chunks/UiEditorMentionMenu.js +1 -1
  300. package/vue/chunks/UiEditorSlashMenu.js +1 -1
  301. package/vue/chunks/UiEditorTableContextMenu.js +1 -1
  302. package/vue/chunks/UiEditorTableOverlay.js +1 -1
  303. package/vue/chunks/UiEditorTableToolbar.js +1 -1
  304. package/vue/chunks/UiEditorToolbar.js +1 -1
  305. package/vue/chunks/UiFloatingActionButton.js +1 -1
  306. package/vue/chunks/UiFormField.js +1 -1
  307. package/vue/chunks/UiGrid.js +1 -1
  308. package/vue/chunks/UiIcon.js +1 -1
  309. package/vue/chunks/UiIconButton.js +1 -1
  310. package/vue/chunks/UiInput.js +1 -1
  311. package/vue/chunks/UiInputGroup.js +1 -1
  312. package/vue/chunks/UiList.js +1 -1
  313. package/vue/chunks/UiListItem.js +1 -1
  314. package/vue/chunks/UiMenu.js +1 -1
  315. package/vue/chunks/UiMenuItem.js +1 -1
  316. package/vue/chunks/UiNavItem.js +58 -28
  317. package/vue/chunks/UiPageHeader.js +1 -1
  318. package/vue/chunks/UiPopover.js +1 -1
  319. package/vue/chunks/UiRadio.js +1 -1
  320. package/vue/chunks/UiRadioGroup.js +1 -1
  321. package/vue/chunks/UiReel.js +1 -1
  322. package/vue/chunks/UiScrollArea.js +1 -1
  323. package/vue/chunks/UiSearchResultRow.js +1 -1
  324. package/vue/chunks/UiSearchShell.js +1 -1
  325. package/vue/chunks/UiSection.js +1 -1
  326. package/vue/chunks/UiSelect.js +1 -1
  327. package/vue/chunks/UiSeparator.js +1 -1
  328. package/vue/chunks/UiSidebar.js +1 -1
  329. package/vue/chunks/UiSpinner.js +1 -1
  330. package/vue/chunks/UiStack.js +1 -1
  331. package/vue/chunks/UiStatusMessage.js +1 -1
  332. package/vue/chunks/UiSwitch.js +1 -1
  333. package/vue/chunks/UiSwitcher.js +1 -1
  334. package/vue/chunks/UiTabs.js +1 -1
  335. package/vue/chunks/UiText.js +29 -7
  336. package/vue/chunks/UiTextarea.js +1 -1
  337. package/vue/chunks/UiToastRegion.js +1 -1
  338. package/vue/chunks/UiTooltip.js +1 -1
  339. package/vue/chunks/UiTopBar.js +1 -1
  340. package/vue/chunks/UiTree.js +1 -1
  341. package/vue/chunks/UiTreeItem.js +1 -1
  342. package/vue/components.css +918 -912
  343. package/vue/host.ts +1 -1
@@ -1,9 +1,9 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  import { manageGeneratedProps } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-list-item.css";
4
4
 
5
5
  export function createUiListItem(options = {}) {
6
- const { attributes = {}, children = [], slots = {}, as, ...componentProps } = options;
6
+ const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
7
7
  const projected = [];
8
8
  const prop0 = componentProps["current"] === undefined ? false : componentProps["current"];
9
9
  const prop1 = componentProps["variant"] === undefined ? "row" : componentProps["variant"];
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  export interface UiMenuEventMap {
3
3
  select: CustomEvent<{ readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  open: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
package/vanilla/UiMenu.js CHANGED
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
3
3
  import * as controller from "../components/ui-menu/ui-menu.js";
4
4
  import "../styles/ui-menu.css";
@@ -6,7 +6,7 @@ import "../styles/ui-menu.css";
6
6
  const definition = {...{"contract":{"tag":"ui-menu","props":{"density":{"type":{"enum":["comfortable","compact"]},"required":false,"target":{"attribute":"density"},"default":"comfortable"},"for":{"type":"string","required":false,"target":{"attribute":"for"},"default":""},"open":{"type":"boolean","required":false,"target":{"attribute":"open"},"default":false},"placement":{"type":"string","required":false,"target":{"attribute":"placement"},"default":"bottom-start"}}},"template":{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"role","value":"menu"},{"kind":"literal","name":"aria-orientation","value":"vertical"}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"surface"}],"children":[{"kind":"slot"}]}]},"declarations":[{"kind":"state","name":"internalOpen","expression":{"source":"false","ast":{"kind":"literal","value":false},"dependencies":[]}},{"kind":"event","name":"select","type":"object({ value: string, trigger: keyboard | pointer | programmatic })","bubbles":true,"composed":true,"cancelable":false},{"kind":"event","name":"open","type":"object({ open: boolean, reason: action | programmatic, trigger: keyboard | pointer | programmatic })","bubbles":true,"composed":true,"cancelable":false},{"kind":"event","name":"close","type":"object({ open: boolean, reason: action | programmatic | light-dismiss | escape, trigger: keyboard | pointer | programmatic })","bubbles":true,"composed":true,"cancelable":false}],"root":{"kind":"native","element":"div","choices":["div"]}},source:{file:import.meta.url},css:""};
7
7
 
8
8
  export function createUiMenu(options = {}) {
9
- const { attributes = {}, children = [], slots = {}, as, ...componentProps } = options;
9
+ const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
10
10
  const projected = [];
11
11
  const element = document.createElement("div");
12
12
  for (const [name, value] of Object.entries(attributes)) {
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  export interface UiMenuItemEventMap {
3
3
  }
4
4
  export interface UiMenuItemElement extends HTMLDivElement {
@@ -1,9 +1,9 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  import { manageGeneratedProps } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-menu-item.css";
4
4
 
5
5
  export function createUiMenuItem(options = {}) {
6
- const { attributes = {}, children = [], slots = {}, as, ...componentProps } = options;
6
+ const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
7
7
  const projected = [];
8
8
  const prop0 = componentProps["disabled"] === undefined ? false : componentProps["disabled"];
9
9
  const prop1 = componentProps["value"] === undefined ? "" : componentProps["value"];
@@ -1,11 +1,12 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  export interface UiNavItemEventMap {
3
3
  }
4
- export interface UiNavItemElement extends HTMLButtonElement {
4
+ export interface UiNavItemElement extends HTMLElement {
5
5
  addEventListener<K extends keyof UiNavItemEventMap>(type: K, listener: (this: UiNavItemElement, event: UiNavItemEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
6
6
  removeEventListener<K extends keyof UiNavItemEventMap>(type: K, listener: (this: UiNavItemElement, event: UiNavItemEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
7
7
  }
8
8
  export interface UiNavItemProps {
9
+ as?: "button" | "a" | null;
9
10
  current?: boolean | "page" | "step" | "location" | null;
10
11
  href?: string | null;
11
12
  rel?: string | null;
@@ -13,6 +14,5 @@ export interface UiNavItemProps {
13
14
  attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
14
15
  children?: readonly (string | Node)[];
15
16
  slots?: Readonly<Record<string, readonly (string | Node)[]>>;
16
- as?: "button" | "a";
17
17
  }
18
18
  export declare function createUiNavItem(props?: UiNavItemProps): UiNavItemElement;
@@ -1,67 +1,119 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
2
- import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
+ import { componentRootIndex, manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
3
3
  import "../styles/ui-nav-item.css";
4
4
 
5
- const definition = {...{"contract":{"tag":"ui-nav-item","props":{"current":{"type":{"kind":"union","members":[{"kind":"terminal","name":"boolean"},{"kind":"keyword","value":"page"},{"kind":"keyword","value":"step"},{"kind":"keyword","value":"location"}]},"required":false,"target":{"attribute":"current"},"default":false},"href":{"type":"string","required":false,"target":{"attribute":"href"}},"rel":{"type":"string","required":false,"target":{"attribute":"rel"}},"target":{"type":"string","required":false,"target":{"attribute":"target"}}}},"template":{"kind":"element","name":"button","attributes":[{"kind":"attribute","name":"type","expression":"{ true: 'button', false: null }[format('%s', not href)]","expressionPlan":{"source":"{ true: 'button', false: null }[format('%s', not href)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"button"}},{"key":"false","value":{"kind":"literal","value":null}}]},"index":{"kind":"call","fn":"format","args":[{"kind":"literal","value":"%s"},{"kind":"unary","op":"not","operand":{"kind":"id","name":"href"}}]}},"dependencies":["href"]}},{"kind":"attribute","name":"href","expression":"href","expressionPlan":{"source":"href","ast":{"kind":"id","name":"href"},"dependencies":["href"]}},{"kind":"attribute","name":"target","expression":"target","expressionPlan":{"source":"target","ast":{"kind":"id","name":"target"},"dependencies":["target"]}},{"kind":"attribute","name":"rel","expression":"rel","expressionPlan":{"source":"rel","ast":{"kind":"id","name":"rel"},"dependencies":["rel"]}},{"kind":"attribute","name":"aria-current","expression":"{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]","expressionPlan":{"source":"{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"page"}},{"key":"false","value":{"kind":"literal","value":null}},{"key":"page","value":{"kind":"literal","value":"page"}},{"key":"step","value":{"kind":"literal","value":"step"}},{"key":"location","value":{"kind":"literal","value":"location"}}]},"index":{"kind":"call","fn":"format","args":[{"kind":"literal","value":"%s"},{"kind":"id","name":"current"}]}},"dependencies":["current"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"indicator"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"leading"}],"children":[{"kind":"slot","fallback":[],"name":"leading"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"content"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"label"}],"children":[{"kind":"slot"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"description"}],"children":[{"kind":"slot","fallback":[],"name":"description"}]}]}]},"declarations":[],"root":{"kind":"native","element":"button","choices":["button","a"]}},source:{file:import.meta.url},css:""};
5
+ const definition = {...{"contract":{"tag":"ui-nav-item","props":{"as":{"type":{"enum":["button","a"]},"required":false,"target":{"attribute":"as"},"default":"button"},"current":{"type":{"kind":"union","members":[{"kind":"terminal","name":"boolean"},{"kind":"keyword","value":"page"},{"kind":"keyword","value":"step"},{"kind":"keyword","value":"location"}]},"required":false,"target":{"attribute":"current"},"default":false},"href":{"type":"string","required":false,"target":{"attribute":"href"}},"rel":{"type":"string","required":false,"target":{"attribute":"rel"}},"target":{"type":"string","required":false,"target":{"attribute":"target"}}}},"template":{"kind":"element","name":"template","attributes":[],"children":[{"kind":"element","name":"a","attributes":[{"kind":"attribute","name":"href","expression":"href","expressionPlan":{"source":"href","ast":{"kind":"id","name":"href"},"dependencies":["href"]}},{"kind":"attribute","name":"target","expression":"target","expressionPlan":{"source":"target","ast":{"kind":"id","name":"target"},"dependencies":["target"]}},{"kind":"attribute","name":"rel","expression":"rel","expressionPlan":{"source":"rel","ast":{"kind":"id","name":"rel"},"dependencies":["rel"]}},{"kind":"attribute","name":"aria-current","expression":"{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]","expressionPlan":{"source":"{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"page"}},{"key":"false","value":{"kind":"literal","value":null}},{"key":"page","value":{"kind":"literal","value":"page"}},{"key":"step","value":{"kind":"literal","value":"step"}},{"key":"location","value":{"kind":"literal","value":"location"}}]},"index":{"kind":"call","fn":"format","args":[{"kind":"literal","value":"%s"},{"kind":"id","name":"current"}]}},"dependencies":["current"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"indicator"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"leading"}],"children":[{"kind":"slot","fallback":[],"name":"leading"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"content"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"label"}],"children":[{"kind":"slot"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"description"}],"children":[{"kind":"slot","fallback":[],"name":"description"}]}]}],"flow":{"kind":"when","test":"as = 'a'","testPlan":{"source":"as = 'a'","ast":{"kind":"binary","op":"=","left":{"kind":"id","name":"as"},"right":{"kind":"literal","value":"a"}},"dependencies":["as"]}}},{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"attribute","name":"aria-current","expression":"{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]","expressionPlan":{"source":"{ true: 'page', false: null, page: 'page', step: 'step', location: 'location' }[format('%s', current)]","ast":{"kind":"index","object":{"kind":"object","pairs":[{"key":"true","value":{"kind":"literal","value":"page"}},{"key":"false","value":{"kind":"literal","value":null}},{"key":"page","value":{"kind":"literal","value":"page"}},{"key":"step","value":{"kind":"literal","value":"step"}},{"key":"location","value":{"kind":"literal","value":"location"}}]},"index":{"kind":"call","fn":"format","args":[{"kind":"literal","value":"%s"},{"kind":"id","name":"current"}]}},"dependencies":["current"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"indicator"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"leading"}],"children":[{"kind":"slot","fallback":[],"name":"leading"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"content"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"label"}],"children":[{"kind":"slot"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"description"}],"children":[{"kind":"slot","fallback":[],"name":"description"}]}]}],"flow":{"kind":"else"}}],"flow":{"kind":"match"}},"declarations":[],"root":{"kind":"native","element":"button","choices":["a","button"]}},source:{file:import.meta.url},css:""};
6
6
 
7
7
  export function createUiNavItem(options = {}) {
8
- const { attributes = {}, children = [], slots = {}, as, ...componentProps } = options;
8
+ const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
9
9
  const projected = [];
10
- const element = document.createElement(as ?? "button");
11
- for (const [name, value] of Object.entries(attributes)) {
12
- if (value === null || value === undefined || value === false) continue;
13
- element.setAttribute(name, value === true ? "" : String(value));
14
- }
15
- const value0 = componentProps["href"] === undefined ? undefined : componentProps["href"];
16
- if (value0 === null || value0 === undefined) element.removeAttribute("href");
17
- else element.setAttribute("href", String(value0));
18
- const value1 = componentProps["target"] === undefined ? undefined : componentProps["target"];
19
- if (value1 === null || value1 === undefined) element.removeAttribute("target");
20
- else element.setAttribute("target", String(value1));
21
- const value2 = componentProps["rel"] === undefined ? undefined : componentProps["rel"];
22
- if (value2 === null || value2 === undefined) element.removeAttribute("rel");
23
- else element.setAttribute("rel", String(value2));
24
- element.setAttribute("data-component", "ui-nav-item");
25
- const element0 = document.createElement("span");
26
- element0.setAttribute("class", "indicator");
27
- element0.setAttribute("aria-hidden", "true");
28
- element.append(element0);
29
- const element1 = document.createElement("span");
30
- element1.setAttribute("class", "leading");
31
- if (slots["leading"] ?? [].length > 0) {
32
- for (const child of slots["leading"] ?? []) {
33
- const node = typeof child === "string" ? document.createTextNode(child) : child;
34
- projected.push([node, "leading"]);
35
- element1.append(node);
10
+ const root = componentRootIndex(definition, componentProps);
11
+ let element;
12
+ if (root === 0) {
13
+ element = document.createElement("a");
14
+ for (const [name, value] of Object.entries(attributes)) {
15
+ if (value === null || value === undefined || value === false) continue;
16
+ element.setAttribute(name, value === true ? "" : String(value));
36
17
  }
37
- } else {
38
- }
39
- element.append(element1);
40
- const element2 = document.createElement("span");
41
- element2.setAttribute("class", "content");
42
- const element3 = document.createElement("span");
43
- element3.setAttribute("class", "label");
44
- if (children.length > 0) {
45
- for (const child of children) {
46
- const node = typeof child === "string" ? document.createTextNode(child) : child;
47
- projected.push([node, ""]);
48
- element3.append(node);
18
+ const value0 = componentProps["href"] === undefined ? undefined : componentProps["href"];
19
+ if (value0 === null || value0 === undefined) element.removeAttribute("href");
20
+ else element.setAttribute("href", String(value0));
21
+ const value1 = componentProps["target"] === undefined ? undefined : componentProps["target"];
22
+ if (value1 === null || value1 === undefined) element.removeAttribute("target");
23
+ else element.setAttribute("target", String(value1));
24
+ const value2 = componentProps["rel"] === undefined ? undefined : componentProps["rel"];
25
+ if (value2 === null || value2 === undefined) element.removeAttribute("rel");
26
+ else element.setAttribute("rel", String(value2));
27
+ element.setAttribute("data-component", "ui-nav-item");
28
+ const element0 = document.createElement("span");
29
+ element0.setAttribute("class", "indicator");
30
+ element0.setAttribute("aria-hidden", "true");
31
+ element.append(element0);
32
+ const element1 = document.createElement("span");
33
+ element1.setAttribute("class", "leading");
34
+ if (slots["leading"] ?? [].length > 0) {
35
+ for (const child of slots["leading"] ?? []) {
36
+ const node = typeof child === "string" ? document.createTextNode(child) : child;
37
+ projected.push([node, "leading"]);
38
+ element1.append(node);
39
+ }
40
+ } else {
49
41
  }
50
- } else {
51
- }
52
- element2.append(element3);
53
- const element4 = document.createElement("span");
54
- element4.setAttribute("class", "description");
55
- if (slots["description"] ?? [].length > 0) {
56
- for (const child of slots["description"] ?? []) {
57
- const node = typeof child === "string" ? document.createTextNode(child) : child;
58
- projected.push([node, "description"]);
59
- element4.append(node);
42
+ element.append(element1);
43
+ const element2 = document.createElement("span");
44
+ element2.setAttribute("class", "content");
45
+ const element3 = document.createElement("span");
46
+ element3.setAttribute("class", "label");
47
+ if (children.length > 0) {
48
+ for (const child of children) {
49
+ const node = typeof child === "string" ? document.createTextNode(child) : child;
50
+ projected.push([node, ""]);
51
+ element3.append(node);
52
+ }
53
+ } else {
60
54
  }
55
+ element2.append(element3);
56
+ const element4 = document.createElement("span");
57
+ element4.setAttribute("class", "description");
58
+ if (slots["description"] ?? [].length > 0) {
59
+ for (const child of slots["description"] ?? []) {
60
+ const node = typeof child === "string" ? document.createTextNode(child) : child;
61
+ projected.push([node, "description"]);
62
+ element4.append(node);
63
+ }
64
+ } else {
65
+ }
66
+ element2.append(element4);
67
+ element.append(element2);
61
68
  } else {
69
+ element = document.createElement("button");
70
+ for (const [name, value] of Object.entries(attributes)) {
71
+ if (value === null || value === undefined || value === false) continue;
72
+ element.setAttribute(name, value === true ? "" : String(value));
73
+ }
74
+ if (!element.hasAttribute("type")) element.setAttribute("type", "button");
75
+ element.setAttribute("data-component", "ui-nav-item");
76
+ const element5 = document.createElement("span");
77
+ element5.setAttribute("class", "indicator");
78
+ element5.setAttribute("aria-hidden", "true");
79
+ element.append(element5);
80
+ const element6 = document.createElement("span");
81
+ element6.setAttribute("class", "leading");
82
+ if (slots["leading"] ?? [].length > 0) {
83
+ for (const child of slots["leading"] ?? []) {
84
+ const node = typeof child === "string" ? document.createTextNode(child) : child;
85
+ projected.push([node, "leading"]);
86
+ element6.append(node);
87
+ }
88
+ } else {
89
+ }
90
+ element.append(element6);
91
+ const element7 = document.createElement("span");
92
+ element7.setAttribute("class", "content");
93
+ const element8 = document.createElement("span");
94
+ element8.setAttribute("class", "label");
95
+ if (children.length > 0) {
96
+ for (const child of children) {
97
+ const node = typeof child === "string" ? document.createTextNode(child) : child;
98
+ projected.push([node, ""]);
99
+ element8.append(node);
100
+ }
101
+ } else {
102
+ }
103
+ element7.append(element8);
104
+ const element9 = document.createElement("span");
105
+ element9.setAttribute("class", "description");
106
+ if (slots["description"] ?? [].length > 0) {
107
+ for (const child of slots["description"] ?? []) {
108
+ const node = typeof child === "string" ? document.createTextNode(child) : child;
109
+ projected.push([node, "description"]);
110
+ element9.append(node);
111
+ }
112
+ } else {
113
+ }
114
+ element7.append(element9);
115
+ element.append(element7);
62
116
  }
63
- element2.append(element4);
64
- element.append(element2);
65
117
  manageComponentLifecycle(element, definition, { props: componentProps, projected,
66
118
  });
67
119
  return element;
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  export interface UiPageHeaderEventMap {
3
3
  }
4
4
  export interface UiPageHeaderElement extends HTMLElement {
@@ -1,9 +1,9 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  import { manageGeneratedProps } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-page-header.css";
4
4
 
5
5
  export function createUiPageHeader(options = {}) {
6
- const { attributes = {}, children = [], slots = {}, as, ...componentProps } = options;
6
+ const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
7
7
  const projected = [];
8
8
  const prop0 = componentProps["align"] === undefined ? "start" : componentProps["align"];
9
9
  const element = document.createElement("header");
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  export interface UiPopoverEventMap {
3
3
  open: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic" | "light-dismiss" | "escape"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  close: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic" | "light-dismiss" | "escape"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
3
3
  import * as controller from "../components/ui-popover/ui-popover.js";
4
4
  import "../styles/ui-popover.css";
@@ -6,7 +6,7 @@ import "../styles/ui-popover.css";
6
6
  const definition = {...{"contract":{"tag":"ui-popover","props":{"for":{"type":"string","required":false,"target":{"attribute":"for"},"default":""},"open":{"type":"boolean","required":false,"target":{"attribute":"open"},"default":false},"placement":{"type":"string","required":false,"target":{"attribute":"placement"},"default":"bottom-start"}}},"template":{"kind":"element","name":"span","attributes":[],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"surface"}],"children":[{"kind":"slot"}]}]},"declarations":[{"kind":"state","name":"internalOpen","expression":{"source":"false","ast":{"kind":"literal","value":false},"dependencies":[]}},{"kind":"event","name":"open","type":"object({ open: boolean, reason: action | programmatic | light-dismiss | escape, trigger: keyboard | pointer | programmatic })","bubbles":true,"composed":true,"cancelable":false},{"kind":"event","name":"close","type":"object({ open: boolean, reason: action | programmatic | light-dismiss | escape, trigger: keyboard | pointer | programmatic })","bubbles":true,"composed":true,"cancelable":false}],"root":{"kind":"native","element":"span","choices":["span"]}},source:{file:import.meta.url},css:""};
7
7
 
8
8
  export function createUiPopover(options = {}) {
9
- const { attributes = {}, children = [], slots = {}, as, ...componentProps } = options;
9
+ const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
10
10
  const projected = [];
11
11
  const element = document.createElement("span");
12
12
  for (const [name, value] of Object.entries(attributes)) {
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  export interface UiRadioEventMap {
3
3
  change: CustomEvent<{ readonly checked: boolean; readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  }
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
3
3
  import * as controller from "../components/ui-radio/ui-radio.js";
4
4
  import "../styles/ui-radio.css";
@@ -6,7 +6,7 @@ import "../styles/ui-radio.css";
6
6
  const definition = {...{"contract":{"tag":"ui-radio","props":{"checked":{"type":"boolean","required":false,"target":{"attribute":"checked"},"default":false},"disabled":{"type":"boolean","required":false,"target":{"attribute":"disabled"},"default":false},"name":{"type":"string","required":false,"target":{"attribute":"name"},"default":""},"required":{"type":"boolean","required":false,"target":{"attribute":"required"},"default":false},"value":{"type":"string","required":false,"target":{"attribute":"value"},"default":"on"}}},"template":{"kind":"element","name":"label","attributes":[],"children":[{"kind":"element","name":"input","attributes":[{"kind":"literal","name":"type","value":"radio"},{"kind":"property","key":"checked","name":"checked","expression":"internalChecked","expressionPlan":{"source":"internalChecked","ast":{"kind":"id","name":"internalChecked"},"dependencies":["internalChecked"]}},{"kind":"attribute","name":"disabled","expression":"disabled","expressionPlan":{"source":"disabled","ast":{"kind":"id","name":"disabled"},"dependencies":["disabled"]}},{"kind":"attribute","name":"required","expression":"required","expressionPlan":{"source":"required","ast":{"kind":"id","name":"required"},"dependencies":["required"]}},{"kind":"attribute","name":"value","expression":"value","expressionPlan":{"source":"value","ast":{"kind":"id","name":"value"},"dependencies":["value"]}},{"kind":"attribute","name":"name","expression":"name","expressionPlan":{"source":"name","ast":{"kind":"id","name":"name"},"dependencies":["name"]}}],"children":[],"ref":"input"},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"text"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"label"}],"children":[{"kind":"slot"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"description"},{"kind":"literal","name":"aria-hidden","value":"true"}],"children":[{"kind":"slot","fallback":[],"name":"description"}],"ref":"description"}]}]},"declarations":[{"kind":"state","name":"internalChecked","expression":{"source":"false","ast":{"kind":"literal","value":false},"dependencies":[]}},{"kind":"event","name":"change","type":"object({ checked: boolean, value: string, trigger: keyboard | pointer | programmatic })","bubbles":true,"composed":true,"cancelable":false}],"root":{"kind":"native","element":"label","choices":["label"]}},source:{file:import.meta.url},css:""};
7
7
 
8
8
  export function createUiRadio(options = {}) {
9
- const { attributes = {}, children = [], slots = {}, as, ...componentProps } = options;
9
+ const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
10
10
  const projected = [];
11
11
  const element = document.createElement("label");
12
12
  for (const [name, value] of Object.entries(attributes)) {
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  export interface UiRadioGroupEventMap {
3
3
  select: CustomEvent<{ readonly value: string; readonly previousValue: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  change: CustomEvent<{ readonly checked: boolean; readonly value: string; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
3
3
  import * as controller from "../components/ui-radio-group/ui-radio-group.js";
4
4
  import "../styles/ui-radio-group.css";
@@ -6,7 +6,7 @@ import "../styles/ui-radio-group.css";
6
6
  const definition = {...{"contract":{"tag":"ui-radio-group","props":{"disabled":{"type":"boolean","required":false,"target":{"attribute":"disabled"},"default":false},"label":{"type":"string","required":false,"target":{"attribute":"label"},"default":"Options"},"name":{"type":"string","required":false,"target":{"attribute":"name"},"default":""},"orientation":{"type":{"enum":["horizontal","vertical"]},"required":false,"target":{"attribute":"orientation"},"default":"horizontal"},"required":{"type":"boolean","required":false,"target":{"attribute":"aria-required"},"default":false},"value":{"type":"string","required":false,"target":{"attribute":"value"},"default":""}}},"template":{"kind":"element","name":"fieldset","attributes":[{"kind":"literal","name":"role","value":"radiogroup"},{"kind":"attribute","name":"aria-required","expression":"required","expressionPlan":{"source":"required","ast":{"kind":"id","name":"required"},"dependencies":["required"]}},{"kind":"attribute","name":"disabled","expression":"disabled","expressionPlan":{"source":"disabled","ast":{"kind":"id","name":"disabled"},"dependencies":["disabled"]}}],"children":[{"kind":"element","name":"legend","attributes":[],"children":[{"kind":"element","name":"template","attributes":[{"kind":"directive","name":"value","expression":"label","expressionPlan":{"source":"label","ast":{"kind":"id","name":"label"},"dependencies":["label"]}}],"children":[]}]},{"kind":"slot"}]},"declarations":[{"kind":"state","name":"internalValue","expression":{"source":"''","ast":{"kind":"literal","value":""},"dependencies":[]}},{"kind":"event","name":"select","type":"object({ value: string, previousValue: string, trigger: keyboard | pointer | programmatic })","bubbles":true,"composed":true,"cancelable":false},{"kind":"event","name":"change","type":"object({ checked: boolean, value: string, trigger: keyboard | pointer | programmatic })","bubbles":true,"composed":true,"cancelable":false}],"root":{"kind":"native","element":"fieldset","choices":["fieldset"]}},source:{file:import.meta.url},css:""};
7
7
 
8
8
  export function createUiRadioGroup(options = {}) {
9
- const { attributes = {}, children = [], slots = {}, as, ...componentProps } = options;
9
+ const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
10
10
  const projected = [];
11
11
  const element = document.createElement("fieldset");
12
12
  for (const [name, value] of Object.entries(attributes)) {
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  export interface UiReelEventMap {
3
3
  }
4
4
  export interface UiReelElement extends HTMLDivElement {
package/vanilla/UiReel.js CHANGED
@@ -1,9 +1,9 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  import { manageGeneratedProps } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-reel.css";
4
4
 
5
5
  export function createUiReel(options = {}) {
6
- const { attributes = {}, children = [], slots = {}, as, ...componentProps } = options;
6
+ const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
7
7
  const projected = [];
8
8
  const prop0 = componentProps["gap"] === undefined ? undefined : componentProps["gap"];
9
9
  const prop1 = componentProps["itemWidth"] === undefined ? undefined : componentProps["itemWidth"];
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  export interface UiScrollAreaEventMap {
3
3
  }
4
4
  export interface UiScrollAreaElement extends HTMLDivElement {
@@ -1,9 +1,9 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  import { manageGeneratedProps } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-scroll-area.css";
4
4
 
5
5
  export function createUiScrollArea(options = {}) {
6
- const { attributes = {}, children = [], slots = {}, as, ...componentProps } = options;
6
+ const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
7
7
  const projected = [];
8
8
  const prop0 = componentProps["orientation"] === undefined ? "vertical" : componentProps["orientation"];
9
9
  const element = document.createElement("div");
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  export interface UiSearchResultRowEventMap {
3
3
  }
4
4
  export interface UiSearchResultRowElement extends HTMLButtonElement {
@@ -1,11 +1,11 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
3
3
  import "../styles/ui-search-result-row.css";
4
4
 
5
5
  const definition = {...{"contract":{"tag":"ui-search-result-row","props":{"disabled":{"type":"boolean","required":false,"target":{"attribute":"disabled"},"default":false},"selected":{"type":"boolean","required":false,"target":{"attribute":"aria-current"},"default":false}}},"template":{"kind":"element","name":"button","attributes":[{"kind":"literal","name":"type","value":"button"},{"kind":"attribute","name":"disabled","expression":"disabled","expressionPlan":{"source":"disabled","ast":{"kind":"id","name":"disabled"},"dependencies":["disabled"]}},{"kind":"attribute","name":"aria-current","expression":"selected","expressionPlan":{"source":"selected","ast":{"kind":"id","name":"selected"},"dependencies":["selected"]}}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"leading"}],"children":[{"kind":"slot","fallback":[],"name":"leading"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"content"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"title"}],"children":[{"kind":"slot","fallback":[],"name":"title"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"meta"}],"children":[{"kind":"slot","fallback":[],"name":"meta"}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"excerpt"}],"children":[{"kind":"slot","fallback":[],"name":"excerpt"}]}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"trailing"}],"children":[{"kind":"slot","fallback":[],"name":"trailing"}]}]},"declarations":[],"root":{"kind":"native","element":"button","choices":["button"]}},source:{file:import.meta.url},css:""};
6
6
 
7
7
  export function createUiSearchResultRow(options = {}) {
8
- const { attributes = {}, children = [], slots = {}, as, ...componentProps } = options;
8
+ const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
9
9
  const projected = [];
10
10
  const element = document.createElement("button");
11
11
  for (const [name, value] of Object.entries(attributes)) {
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  export interface UiSearchShellEventMap {
3
3
  close: CustomEvent<{ readonly open: boolean; readonly reason: "action" | "programmatic" | "light-dismiss" | "escape"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  }
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
3
3
  import * as controller from "../components/ui-search-shell/ui-search-shell.js";
4
4
  import "../styles/ui-search-shell.css";
@@ -6,7 +6,7 @@ import "../styles/ui-search-shell.css";
6
6
  const definition = {...{"contract":{"tag":"ui-search-shell","props":{"dismissible":{"type":"boolean","required":false,"target":{"attribute":"dismissible"},"default":false},"label":{"type":"string","required":false,"target":{"attribute":"aria-label"},"default":"Search"},"modal":{"type":"boolean","required":false,"target":{"attribute":"modal"},"default":false},"open":{"type":"boolean","required":false,"target":{"attribute":"open"},"default":false}}},"template":{"kind":"element","name":"div","attributes":[],"children":[{"kind":"element","name":"dialog","attributes":[{"kind":"attribute","name":"aria-label","expression":"label","expressionPlan":{"source":"label","ast":{"kind":"id","name":"label"},"dependencies":["label"]}}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"panel"}],"children":[{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"search"}],"children":[{"kind":"slot","fallback":[],"name":"search"}]},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"status"}],"children":[{"kind":"slot","fallback":[],"name":"status"}]},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"body"}],"children":[{"kind":"slot","fallback":[],"name":"body"}]},{"kind":"element","name":"div","attributes":[{"kind":"literal","name":"class","value":"footer"}],"children":[{"kind":"slot","fallback":[],"name":"footer"}]}]}],"ref":"dialog"}]},"declarations":[{"kind":"state","name":"internalOpen","expression":{"source":"false","ast":{"kind":"literal","value":false},"dependencies":[]}},{"kind":"event","name":"close","type":"object({ open: boolean, reason: action | programmatic | light-dismiss | escape, trigger: keyboard | pointer | programmatic })","bubbles":true,"composed":true,"cancelable":false}],"root":{"kind":"native","element":"div","choices":["div"]}},source:{file:import.meta.url},css:""};
7
7
 
8
8
  export function createUiSearchShell(options = {}) {
9
- const { attributes = {}, children = [], slots = {}, as, ...componentProps } = options;
9
+ const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
10
10
  const projected = [];
11
11
  const element = document.createElement("div");
12
12
  for (const [name, value] of Object.entries(attributes)) {
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  export interface UiSectionEventMap {
3
3
  }
4
4
  export interface UiSectionElement extends HTMLElement {
@@ -1,11 +1,11 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
3
3
  import "../styles/ui-section.css";
4
4
 
5
5
  const definition = {...{"contract":{"tag":"ui-section","props":{"heading":{"type":"string","required":false,"target":{"attribute":"heading"},"default":""},"tone":{"type":{"enum":["neutral","danger"]},"required":false,"target":{"attribute":"tone"},"default":"neutral"},"variant":{"type":{"enum":["plain","card","divided"]},"required":false,"target":{"attribute":"variant"},"default":"plain"}}},"template":{"kind":"element","name":"section","attributes":[],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"head"}],"children":[{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"copy"}],"children":[{"kind":"element","name":"h2","attributes":[{"kind":"literal","name":"class","value":"heading"},{"kind":"attribute","name":"hidden","expression":"not heading","expressionPlan":{"source":"not heading","ast":{"kind":"unary","op":"not","operand":{"kind":"id","name":"heading"}},"dependencies":["heading"]}}],"children":[{"kind":"element","name":"template","attributes":[{"kind":"directive","name":"value","expression":"heading","expressionPlan":{"source":"heading","ast":{"kind":"id","name":"heading"},"dependencies":["heading"]}}],"children":[]}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"description"}],"children":[{"kind":"slot","fallback":[],"name":"description"}]}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"actions"}],"children":[{"kind":"slot","fallback":[],"name":"actions"}]}]},{"kind":"element","name":"span","attributes":[{"kind":"literal","name":"class","value":"body"}],"children":[{"kind":"slot"}]}]},"declarations":[],"root":{"kind":"native","element":"section","choices":["section"]}},source:{file:import.meta.url},css:""};
6
6
 
7
7
  export function createUiSection(options = {}) {
8
- const { attributes = {}, children = [], slots = {}, as, ...componentProps } = options;
8
+ const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
9
9
  const projected = [];
10
10
  const element = document.createElement("section");
11
11
  for (const [name, value] of Object.entries(attributes)) {
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  export interface UiSelectEventMap {
3
3
  }
4
4
  export interface UiSelectElement extends HTMLSelectElement {
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  import { manageComponentLifecycle } from "@nextwebwg/html-next/runtime";
3
3
  import * as controller from "../components/ui-select/ui-select.js";
4
4
  import "../styles/ui-select.css";
@@ -6,7 +6,7 @@ import "../styles/ui-select.css";
6
6
  const definition = {...{"contract":{"tag":"ui-select","props":{"disabled":{"type":"boolean","required":false,"target":{"attribute":"disabled"},"default":false},"invalid":{"type":"boolean","required":false,"target":{"attribute":"aria-invalid"},"default":false},"required":{"type":"boolean","required":false,"target":{"attribute":"required"},"default":false},"value":{"type":"string","required":false,"target":{"attribute":"value"}}}},"template":{"kind":"element","name":"select","attributes":[{"kind":"attribute","name":"disabled","expression":"disabled","expressionPlan":{"source":"disabled","ast":{"kind":"id","name":"disabled"},"dependencies":["disabled"]}},{"kind":"attribute","name":"required","expression":"required","expressionPlan":{"source":"required","ast":{"kind":"id","name":"required"},"dependencies":["required"]}},{"kind":"attribute","name":"aria-invalid","expression":"invalid","expressionPlan":{"source":"invalid","ast":{"kind":"id","name":"invalid"},"dependencies":["invalid"]}}],"children":[{"kind":"slot"}]},"declarations":[],"root":{"kind":"native","element":"select","choices":["select"]}},source:{file:import.meta.url},css:""};
7
7
 
8
8
  export function createUiSelect(options = {}) {
9
- const { attributes = {}, children = [], slots = {}, as, ...componentProps } = options;
9
+ const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
10
10
  const projected = [];
11
11
  const element = document.createElement("select");
12
12
  for (const [name, value] of Object.entries(attributes)) {
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  export interface UiSeparatorEventMap {
3
3
  }
4
4
  export interface UiSeparatorElement extends HTMLHRElement {
@@ -1,9 +1,9 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  import { manageGeneratedProps } from "@nextwebwg/html-next/generated-runtime";
3
3
  import "../styles/ui-separator.css";
4
4
 
5
5
  export function createUiSeparator(options = {}) {
6
- const { attributes = {}, children = [], slots = {}, as, ...componentProps } = options;
6
+ const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
7
7
  const projected = [];
8
8
  const prop0 = componentProps["orientation"] === undefined ? "horizontal" : componentProps["orientation"];
9
9
  const element = document.createElement("hr");
@@ -1,4 +1,4 @@
1
- // Generated by HTML Next 1.0.0-alpha.5 for Vanilla DOM. Do not edit.
1
+ // Generated by HTML Next 1.0.0-alpha.7 for Vanilla DOM. Do not edit.
2
2
  export interface UiSidebarEventMap {
3
3
  resize: CustomEvent<{ readonly width: number; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;
4
4
  toggle: CustomEvent<{ readonly open: boolean; readonly mode: "docked" | "drawer"; readonly trigger: "keyboard" | "pointer" | "programmatic" }>;