@threadlabs/looma 0.52.11 → 0.53.0

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 (341) hide show
  1. package/components/shared/overlay.js +7 -0
  2. package/components/ui-editor-toolbar/ui-editor-toolbar.html +2 -2
  3. package/components/ui-meter/ui-meter.html +1 -1
  4. package/dist/index.js +1 -1
  5. package/docs/catalog.json +1 -1
  6. package/editor/components.css +19 -19
  7. package/editor/index.js +1125 -853
  8. package/package.json +3 -3
  9. package/styles/ui-action-bar.css +1 -1
  10. package/styles/ui-affordance-scope.css +1 -1
  11. package/styles/ui-avatar-group.css +1 -1
  12. package/styles/ui-avatar.css +1 -1
  13. package/styles/ui-badge.css +1 -1
  14. package/styles/ui-breadcrumb-item.css +1 -1
  15. package/styles/ui-breadcrumbs.css +1 -1
  16. package/styles/ui-button.css +1 -1
  17. package/styles/ui-calendar.css +1 -1
  18. package/styles/ui-callout.css +1 -1
  19. package/styles/ui-card-group.css +1 -1
  20. package/styles/ui-card.css +1 -1
  21. package/styles/ui-checkbox.css +1 -1
  22. package/styles/ui-cluster.css +1 -1
  23. package/styles/ui-color-picker.css +1 -1
  24. package/styles/ui-column.css +1 -1
  25. package/styles/ui-combobox.css +1 -1
  26. package/styles/ui-compact-content.css +1 -1
  27. package/styles/ui-compact-editor.css +1 -1
  28. package/styles/ui-compact-mark.css +1 -1
  29. package/styles/ui-compact-node.css +1 -1
  30. package/styles/ui-container.css +1 -1
  31. package/styles/ui-context-menu.css +1 -1
  32. package/styles/ui-cover.css +1 -1
  33. package/styles/ui-curve-editor.css +1 -1
  34. package/styles/ui-cycle-button.css +1 -1
  35. package/styles/ui-data-table.css +1 -1
  36. package/styles/ui-date-field.css +1 -1
  37. package/styles/ui-date-picker.css +1 -1
  38. package/styles/ui-date-range-picker.css +1 -1
  39. package/styles/ui-description-item.css +1 -1
  40. package/styles/ui-description-list.css +1 -1
  41. package/styles/ui-dialog.css +1 -1
  42. package/styles/ui-disclosure.css +1 -1
  43. package/styles/ui-editable.css +1 -1
  44. package/styles/ui-editor-block-actions.css +1 -1
  45. package/styles/ui-editor-chip-editor.css +1 -1
  46. package/styles/ui-editor-code-language.css +1 -1
  47. package/styles/ui-editor-footnote-editor.css +1 -1
  48. package/styles/ui-editor-formatting-tools.css +1 -1
  49. package/styles/ui-editor-image-toolbar.css +1 -1
  50. package/styles/ui-editor-insert-table-grid.css +1 -1
  51. package/styles/ui-editor-link-card.css +1 -1
  52. package/styles/ui-editor-link-form.css +1 -1
  53. package/styles/ui-editor-mention-menu-item.css +1 -1
  54. package/styles/ui-editor-mention-menu.css +1 -1
  55. package/styles/ui-editor-slash-menu-group.css +1 -1
  56. package/styles/ui-editor-slash-menu-item.css +1 -1
  57. package/styles/ui-editor-slash-menu.css +1 -1
  58. package/styles/ui-editor-surface.css +1 -1
  59. package/styles/ui-editor-table-context-menu.css +1 -1
  60. package/styles/ui-editor-table-overlay.css +1 -1
  61. package/styles/ui-editor-table-toolbar.css +1 -1
  62. package/styles/ui-editor-toolbar.css +1 -1
  63. package/styles/ui-editor.css +1 -1
  64. package/styles/ui-file-input.css +1 -1
  65. package/styles/ui-floating-action-button.css +1 -1
  66. package/styles/ui-form-field.css +1 -1
  67. package/styles/ui-grid.css +1 -1
  68. package/styles/ui-icon-button.css +1 -1
  69. package/styles/ui-icon.css +1 -1
  70. package/styles/ui-image.css +1 -1
  71. package/styles/ui-input-group.css +1 -1
  72. package/styles/ui-input.css +1 -1
  73. package/styles/ui-light-editor.css +1 -1
  74. package/styles/ui-list-item.css +1 -1
  75. package/styles/ui-list.css +1 -1
  76. package/styles/ui-listbox.css +1 -1
  77. package/styles/ui-menu-group.css +1 -1
  78. package/styles/ui-menu-item.css +1 -1
  79. package/styles/ui-menu.css +1 -1
  80. package/styles/ui-meter.css +1 -1
  81. package/styles/ui-nav-item.css +1 -1
  82. package/styles/ui-notice-stripe.css +1 -1
  83. package/styles/ui-number-input.css +1 -1
  84. package/styles/ui-page-header.css +1 -1
  85. package/styles/ui-pagination.css +1 -1
  86. package/styles/ui-popover.css +1 -1
  87. package/styles/ui-radio-group.css +1 -1
  88. package/styles/ui-radio.css +1 -1
  89. package/styles/ui-reel.css +1 -1
  90. package/styles/ui-scroll-area.css +1 -1
  91. package/styles/ui-search-result-row.css +1 -1
  92. package/styles/ui-search-shell.css +1 -1
  93. package/styles/ui-section.css +1 -1
  94. package/styles/ui-segmented-control.css +1 -1
  95. package/styles/ui-select.css +1 -1
  96. package/styles/ui-separator.css +1 -1
  97. package/styles/ui-sidebar.css +1 -1
  98. package/styles/ui-site-header.css +1 -1
  99. package/styles/ui-skeleton.css +1 -1
  100. package/styles/ui-slider.css +1 -1
  101. package/styles/ui-spinner.css +1 -1
  102. package/styles/ui-stack.css +1 -1
  103. package/styles/ui-status-message.css +1 -1
  104. package/styles/ui-swatch.css +1 -1
  105. package/styles/ui-switch.css +1 -1
  106. package/styles/ui-switcher.css +1 -1
  107. package/styles/ui-table.css +1 -1
  108. package/styles/ui-tabs.css +1 -1
  109. package/styles/ui-text.css +1 -1
  110. package/styles/ui-textarea.css +1 -1
  111. package/styles/ui-time-field.css +1 -1
  112. package/styles/ui-time-picker.css +1 -1
  113. package/styles/ui-toast-region.css +1 -1
  114. package/styles/ui-toast.css +1 -1
  115. package/styles/ui-tooltip.css +1 -1
  116. package/styles/ui-top-bar.css +1 -1
  117. package/styles/ui-tree-item.css +1 -1
  118. package/styles/ui-tree.css +1 -1
  119. package/styles/ui-wizard.css +1 -1
  120. package/vanilla/UiActionBar.d.ts +1 -1
  121. package/vanilla/UiActionBar.js +14 -12
  122. package/vanilla/UiAffordanceScope.d.ts +1 -1
  123. package/vanilla/UiAffordanceScope.js +13 -11
  124. package/vanilla/UiAvatar.d.ts +1 -1
  125. package/vanilla/UiAvatar.js +27 -25
  126. package/vanilla/UiAvatarGroup.d.ts +1 -1
  127. package/vanilla/UiAvatarGroup.js +26 -23
  128. package/vanilla/UiBadge.d.ts +1 -1
  129. package/vanilla/UiBadge.js +14 -12
  130. package/vanilla/UiBreadcrumbItem.d.ts +1 -1
  131. package/vanilla/UiBreadcrumbItem.js +14 -13
  132. package/vanilla/UiBreadcrumbs.d.ts +1 -1
  133. package/vanilla/UiBreadcrumbs.js +10 -10
  134. package/vanilla/UiButton.d.ts +1 -1
  135. package/vanilla/UiButton.js +187 -244
  136. package/vanilla/UiCalendar.d.ts +1 -1
  137. package/vanilla/UiCalendar.js +272 -193
  138. package/vanilla/UiCallout.d.ts +1 -1
  139. package/vanilla/UiCallout.js +32 -27
  140. package/vanilla/UiCard.d.ts +1 -1
  141. package/vanilla/UiCard.js +72 -69
  142. package/vanilla/UiCardGroup.d.ts +1 -1
  143. package/vanilla/UiCardGroup.js +17 -15
  144. package/vanilla/UiCheckbox.d.ts +1 -1
  145. package/vanilla/UiCheckbox.js +32 -30
  146. package/vanilla/UiCluster.d.ts +1 -1
  147. package/vanilla/UiCluster.js +20 -18
  148. package/vanilla/UiColorPicker.d.ts +1 -1
  149. package/vanilla/UiColorPicker.js +22 -20
  150. package/vanilla/UiColumn.d.ts +2 -2
  151. package/vanilla/UiColumn.js +18 -15
  152. package/vanilla/UiCombobox.d.ts +3 -3
  153. package/vanilla/UiCombobox.js +237 -174
  154. package/vanilla/UiCompactContent.d.ts +1 -1
  155. package/vanilla/UiCompactContent.js +13 -8
  156. package/vanilla/UiCompactEditor.d.ts +1 -1
  157. package/vanilla/UiCompactEditor.js +17 -12
  158. package/vanilla/UiCompactMark.d.ts +1 -1
  159. package/vanilla/UiCompactMark.js +47 -45
  160. package/vanilla/UiCompactNode.d.ts +2 -2
  161. package/vanilla/UiCompactNode.js +37 -33
  162. package/vanilla/UiContainer.d.ts +1 -1
  163. package/vanilla/UiContainer.js +13 -11
  164. package/vanilla/UiContextMenu.d.ts +1 -1
  165. package/vanilla/UiContextMenu.js +11 -9
  166. package/vanilla/UiCover.d.ts +1 -1
  167. package/vanilla/UiCover.js +13 -11
  168. package/vanilla/UiCurveEditor.d.ts +1 -1
  169. package/vanilla/UiCurveEditor.js +40 -38
  170. package/vanilla/UiCycleButton.d.ts +2 -2
  171. package/vanilla/UiCycleButton.js +31 -26
  172. package/vanilla/UiDataTable.d.ts +1 -1
  173. package/vanilla/UiDataTable.js +26 -20
  174. package/vanilla/UiDateField.d.ts +1 -1
  175. package/vanilla/UiDateField.js +78 -75
  176. package/vanilla/UiDatePicker.d.ts +1 -1
  177. package/vanilla/UiDatePicker.js +155 -149
  178. package/vanilla/UiDateRangePicker.d.ts +1 -1
  179. package/vanilla/UiDateRangePicker.js +136 -128
  180. package/vanilla/UiDescriptionItem.d.ts +1 -1
  181. package/vanilla/UiDescriptionItem.js +13 -11
  182. package/vanilla/UiDescriptionList.d.ts +1 -1
  183. package/vanilla/UiDescriptionList.js +13 -11
  184. package/vanilla/UiDialog.d.ts +1 -1
  185. package/vanilla/UiDialog.js +14 -14
  186. package/vanilla/UiDisclosure.d.ts +1 -1
  187. package/vanilla/UiDisclosure.js +28 -26
  188. package/vanilla/UiEditable.d.ts +1 -1
  189. package/vanilla/UiEditable.js +29 -27
  190. package/vanilla/UiEditor.d.ts +1 -1
  191. package/vanilla/UiEditor.js +62 -58
  192. package/vanilla/UiEditorBlockActions.d.ts +1 -1
  193. package/vanilla/UiEditorBlockActions.js +14 -12
  194. package/vanilla/UiEditorChipEditor.d.ts +1 -1
  195. package/vanilla/UiEditorChipEditor.js +22 -14
  196. package/vanilla/UiEditorCodeLanguage.d.ts +1 -1
  197. package/vanilla/UiEditorCodeLanguage.js +23 -16
  198. package/vanilla/UiEditorFootnoteEditor.d.ts +1 -1
  199. package/vanilla/UiEditorFootnoteEditor.js +17 -9
  200. package/vanilla/UiEditorFormattingTools.d.ts +1 -1
  201. package/vanilla/UiEditorFormattingTools.js +108 -71
  202. package/vanilla/UiEditorImageToolbar.d.ts +1 -1
  203. package/vanilla/UiEditorImageToolbar.js +68 -66
  204. package/vanilla/UiEditorInsertTableGrid.d.ts +1 -1
  205. package/vanilla/UiEditorInsertTableGrid.js +50 -35
  206. package/vanilla/UiEditorLinkCard.d.ts +1 -1
  207. package/vanilla/UiEditorLinkCard.js +27 -25
  208. package/vanilla/UiEditorLinkForm.d.ts +1 -1
  209. package/vanilla/UiEditorLinkForm.js +79 -57
  210. package/vanilla/UiEditorMentionMenu.d.ts +1 -1
  211. package/vanilla/UiEditorMentionMenu.js +63 -44
  212. package/vanilla/UiEditorMentionMenuItem.d.ts +1 -1
  213. package/vanilla/UiEditorMentionMenuItem.js +22 -16
  214. package/vanilla/UiEditorSlashMenu.d.ts +1 -1
  215. package/vanilla/UiEditorSlashMenu.js +52 -33
  216. package/vanilla/UiEditorSlashMenuGroup.d.ts +1 -1
  217. package/vanilla/UiEditorSlashMenuGroup.js +19 -14
  218. package/vanilla/UiEditorSlashMenuItem.d.ts +1 -1
  219. package/vanilla/UiEditorSlashMenuItem.js +27 -25
  220. package/vanilla/UiEditorSurface.d.ts +1 -1
  221. package/vanilla/UiEditorSurface.js +13 -11
  222. package/vanilla/UiEditorTableContextMenu.d.ts +1 -1
  223. package/vanilla/UiEditorTableContextMenu.js +81 -52
  224. package/vanilla/UiEditorTableOverlay.d.ts +1 -1
  225. package/vanilla/UiEditorTableOverlay.js +107 -68
  226. package/vanilla/UiEditorTableToolbar.d.ts +1 -1
  227. package/vanilla/UiEditorTableToolbar.js +121 -70
  228. package/vanilla/UiEditorToolbar.d.ts +1 -1
  229. package/vanilla/UiEditorToolbar.js +20 -12
  230. package/vanilla/UiFileInput.d.ts +1 -1
  231. package/vanilla/UiFileInput.js +94 -80
  232. package/vanilla/UiFloatingActionButton.d.ts +1 -1
  233. package/vanilla/UiFloatingActionButton.js +21 -20
  234. package/vanilla/UiFormField.d.ts +1 -1
  235. package/vanilla/UiFormField.js +21 -19
  236. package/vanilla/UiGrid.d.ts +1 -1
  237. package/vanilla/UiGrid.js +26 -23
  238. package/vanilla/UiIcon.d.ts +1 -1
  239. package/vanilla/UiIcon.js +20 -15
  240. package/vanilla/UiIconButton.d.ts +1 -1
  241. package/vanilla/UiIconButton.js +35 -43
  242. package/vanilla/UiImage.d.ts +1 -1
  243. package/vanilla/UiImage.js +16 -14
  244. package/vanilla/UiInput.d.ts +1 -1
  245. package/vanilla/UiInput.js +29 -35
  246. package/vanilla/UiInputGroup.d.ts +1 -1
  247. package/vanilla/UiInputGroup.js +16 -14
  248. package/vanilla/UiLightEditor.d.ts +1 -1
  249. package/vanilla/UiLightEditor.js +29 -27
  250. package/vanilla/UiList.d.ts +1 -1
  251. package/vanilla/UiList.js +33 -27
  252. package/vanilla/UiListItem.d.ts +1 -1
  253. package/vanilla/UiListItem.js +12 -12
  254. package/vanilla/UiListbox.d.ts +1 -1
  255. package/vanilla/UiListbox.js +90 -80
  256. package/vanilla/UiMenu.d.ts +1 -1
  257. package/vanilla/UiMenu.js +20 -12
  258. package/vanilla/UiMenuGroup.d.ts +1 -1
  259. package/vanilla/UiMenuGroup.js +14 -11
  260. package/vanilla/UiMenuItem.d.ts +1 -1
  261. package/vanilla/UiMenuItem.js +74 -75
  262. package/vanilla/UiMeter.d.ts +1 -1
  263. package/vanilla/UiMeter.js +67 -62
  264. package/vanilla/UiNavItem.d.ts +1 -1
  265. package/vanilla/UiNavItem.js +63 -65
  266. package/vanilla/UiNoticeStripe.d.ts +1 -1
  267. package/vanilla/UiNoticeStripe.js +16 -16
  268. package/vanilla/UiNumberInput.d.ts +1 -1
  269. package/vanilla/UiNumberInput.js +41 -38
  270. package/vanilla/UiPageHeader.d.ts +1 -1
  271. package/vanilla/UiPageHeader.js +17 -15
  272. package/vanilla/UiPagination.d.ts +1 -1
  273. package/vanilla/UiPagination.js +53 -44
  274. package/vanilla/UiPopover.d.ts +1 -1
  275. package/vanilla/UiPopover.js +13 -11
  276. package/vanilla/UiRadio.d.ts +1 -1
  277. package/vanilla/UiRadio.js +25 -23
  278. package/vanilla/UiRadioGroup.d.ts +1 -1
  279. package/vanilla/UiRadioGroup.js +33 -36
  280. package/vanilla/UiReel.d.ts +1 -1
  281. package/vanilla/UiReel.js +20 -12
  282. package/vanilla/UiScrollArea.d.ts +1 -1
  283. package/vanilla/UiScrollArea.js +13 -11
  284. package/vanilla/UiSearchResultRow.d.ts +1 -1
  285. package/vanilla/UiSearchResultRow.js +21 -20
  286. package/vanilla/UiSearchShell.d.ts +1 -1
  287. package/vanilla/UiSearchShell.js +16 -14
  288. package/vanilla/UiSection.d.ts +1 -1
  289. package/vanilla/UiSection.js +48 -45
  290. package/vanilla/UiSegmentedControl.d.ts +2 -2
  291. package/vanilla/UiSegmentedControl.js +52 -47
  292. package/vanilla/UiSelect.d.ts +1 -1
  293. package/vanilla/UiSelect.js +17 -21
  294. package/vanilla/UiSeparator.d.ts +1 -1
  295. package/vanilla/UiSeparator.js +12 -12
  296. package/vanilla/UiSidebar.d.ts +1 -1
  297. package/vanilla/UiSidebar.js +17 -15
  298. package/vanilla/UiSiteHeader.d.ts +1 -1
  299. package/vanilla/UiSiteHeader.js +25 -23
  300. package/vanilla/UiSkeleton.d.ts +1 -1
  301. package/vanilla/UiSkeleton.js +21 -20
  302. package/vanilla/UiSlider.d.ts +1 -1
  303. package/vanilla/UiSlider.js +50 -47
  304. package/vanilla/UiSpinner.d.ts +1 -1
  305. package/vanilla/UiSpinner.js +34 -27
  306. package/vanilla/UiStack.d.ts +1 -1
  307. package/vanilla/UiStack.js +12 -12
  308. package/vanilla/UiStatusMessage.d.ts +1 -1
  309. package/vanilla/UiStatusMessage.js +22 -21
  310. package/vanilla/UiSwatch.d.ts +1 -1
  311. package/vanilla/UiSwatch.js +20 -17
  312. package/vanilla/UiSwitch.d.ts +1 -1
  313. package/vanilla/UiSwitch.js +25 -23
  314. package/vanilla/UiSwitcher.d.ts +1 -1
  315. package/vanilla/UiSwitcher.js +13 -11
  316. package/vanilla/UiTable.d.ts +1 -1
  317. package/vanilla/UiTable.js +13 -11
  318. package/vanilla/UiTabs.d.ts +1 -1
  319. package/vanilla/UiTabs.js +39 -28
  320. package/vanilla/UiText.d.ts +1 -1
  321. package/vanilla/UiText.js +128 -125
  322. package/vanilla/UiTextarea.d.ts +1 -1
  323. package/vanilla/UiTextarea.js +27 -39
  324. package/vanilla/UiTimeField.d.ts +1 -1
  325. package/vanilla/UiTimeField.js +42 -40
  326. package/vanilla/UiTimePicker.d.ts +1 -1
  327. package/vanilla/UiTimePicker.js +105 -102
  328. package/vanilla/UiToast.d.ts +1 -1
  329. package/vanilla/UiToast.js +14 -14
  330. package/vanilla/UiToastRegion.d.ts +1 -1
  331. package/vanilla/UiToastRegion.js +61 -31
  332. package/vanilla/UiTooltip.d.ts +1 -1
  333. package/vanilla/UiTooltip.js +17 -14
  334. package/vanilla/UiTopBar.d.ts +1 -1
  335. package/vanilla/UiTopBar.js +24 -22
  336. package/vanilla/UiTree.d.ts +1 -1
  337. package/vanilla/UiTree.js +17 -12
  338. package/vanilla/UiTreeItem.d.ts +1 -1
  339. package/vanilla/UiTreeItem.js +73 -79
  340. package/vanilla/UiWizard.d.ts +1 -1
  341. package/vanilla/UiWizard.js +61 -40
@@ -1,5 +1,5 @@
1
- // Generated by HTML Next 1.0.0-alpha.91 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, clearRegion, NONCONFORMING, readIndex, recordValue, textCall, toAttribute, truthy, writeAttribute, writeUrlAttribute, computedCycle, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, project, fillSlot, armElement, replaceRoot, readonlyView, checkBoolean, checkFormat, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
1
+ // Generated by HTML Next 1.0.0-alpha.92 for Vanilla DOM. Do not edit.
2
+ import { attachGeneratedController, equalValue, buildTemplate, clearRegion, NONCONFORMING, readIndex, recordValue, textCall, toAttribute, truthy, writeAttribute, writeUrlAttribute, computedCycle, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, awaitInput, evaluateInput, inputRead, READY_INPUT, UNRESOLVED_INPUT, notifyPropertySet, project, armElement, replaceRoot, readonlyView, checkBoolean, checkFormat, checkString, initializeSlot, sharePlainSlots, forwardAttributes, resetForwardedAttributes, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
3
3
  import * as controller from "../components/ui-button/ui-button.js";
4
4
  import "../styles/ui-button.css";
5
5
 
@@ -31,14 +31,15 @@ const D = { g: "ui-button", props: { "align": { "required":false,"values":["cent
31
31
  const C = (host) => activateModule(controller, host);
32
32
 
33
33
  export function createUiButton(options = {}, html) {
34
- const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
34
+ const { attributes: authoredAttributes = {}, children = [], slots = {}, ...componentProps } = options;
35
+ const attributes = Object.fromEntries([...[], ...Object.entries(authoredAttributes)].filter(([name]) => !["align","disabled","href","interaction-tone","interaction-variant","loading","pending","preset","rel","selected","shape","size","square","stretch","target","tone","type","variant"].includes(name)));
35
36
  const v = [undefined, undefined, undefined, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null];
36
37
  let B = acceptProps(undefined, D, S.n, v, componentProps, [], html);
37
38
  const CS = [];
38
39
  const inputStatus = (j) => { if (j >= 0 && j < 3) { g(j); return CS[j] ?? UNRESOLVED_INPUT; } if (j === 3) return awaitInput(B, "align", true); if (j === 4) return awaitInput(B, "disabled", true); if (j === 5) return awaitInput(B, "href", true); if (j === 6) return awaitInput(B, "interactionTone", true); if (j === 7) return awaitInput(B, "interactionVariant", true); if (j === 8) return awaitInput(B, "loading", true); if (j === 9) return awaitInput(B, "pending", true); if (j === 10) return awaitInput(B, "preset", true); if (j === 11) return awaitInput(B, "rel", true); if (j === 12) return awaitInput(B, "selected", true); if (j === 13) return awaitInput(B, "shape", true); if (j === 14) return awaitInput(B, "size", true); if (j === 15) return awaitInput(B, "square", true); if (j === 16) return awaitInput(B, "stretch", true); if (j === 17) return awaitInput(B, "target", true); if (j === 18) return awaitInput(B, "tone", true); if (j === 19) return awaitInput(B, "type", true); if (j === 20) return awaitInput(B, "variant", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
39
40
  const X = { e: 0, g: (j) => g(j), w: new Set(), a: CS, i: inputStatus };
40
41
  const ke = [];
41
- const K = [() => readIndex({ "none": inputRead(v[20], inputStatus(20)), "primary": "solid", "standard": "solid", "quiet": "ghost", "destructive": "solid" }, inputRead(v[10], inputStatus(10))), () => readIndex(recordValue(["none","primary","standard","quiet","destructive"], [readIndex({ "true": "danger", "false": inputRead(v[18], inputStatus(18)) }, textCall("concat", [(inputRead(v[20], inputStatus(20)) === "danger")])), "accent", "neutral", "neutral", "danger"]), inputRead(v[10], inputStatus(10))), () => readIndex({ "true": null, "false": readIndex({ "inherit": inputRead(g(0), inputStatus(0)), "outline": "outline", "solid": "solid", "ghost": "ghost" }, inputRead(v[7], inputStatus(7))) }, textCall("concat", [((inputRead(v[6], inputStatus(6)) === "inherit") && (inputRead(v[7], inputStatus(7)) === "inherit"))]))];
42
+ const K = [() => readIndex({ "none": inputRead(v[20], inputStatus(20)), "primary": "solid", "standard": "solid", "quiet": "ghost", "destructive": "solid" }, inputRead(v[10], inputStatus(10))), () => readIndex(recordValue(["none","primary","standard","quiet","destructive"], [readIndex({ "true": "danger", "false": inputRead(v[18], inputStatus(18)) }, textCall("concat", [equalValue(inputRead(v[20], inputStatus(20)), "danger")])), "accent", "neutral", "neutral", "danger"]), inputRead(v[10], inputStatus(10))), () => readIndex({ "true": null, "false": readIndex({ "inherit": inputRead(g(0), inputStatus(0)), "outline": "outline", "solid": "solid", "ghost": "ghost" }, inputRead(v[7], inputStatus(7))) }, textCall("concat", [(truthy(equalValue(inputRead(v[6], inputStatus(6)), "inherit")) && truthy(equalValue(inputRead(v[7], inputStatus(7)), "inherit")))]))];
42
43
  const g = (j) => {
43
44
  const i = j - 0;
44
45
  if (ke[i] === X.e) return v[j];
@@ -51,35 +52,19 @@ export function createUiButton(options = {}, html) {
51
52
  if (!Object.is(previous, next)) { v[j] = next; X.n?.(j, previous, next); }
52
53
  return next;
53
54
  };
54
- let a = (((g(0) === "card") && (v[5] !== null)) ? 0 : (g(0) === "card") ? 1 : (v[5] !== null) ? 2 : 3);
55
+ let a = ((truthy(equalValue(g(0), "card")) && truthy(equalValue(v[5], null, true))) ? 0 : truthy(equalValue(g(0), "card")) ? 1 : truthy(equalValue(v[5], null, true)) ? 2 : 3);
55
56
  let element;
56
57
  if (a === 0) {
57
58
  element = document.createElement("a");
58
- for (const [name, value] of Object.entries(attributes)) {
59
- if (value === null || value === undefined || value === false) continue;
60
- element.setAttribute(name, value === true ? "" : String(value));
61
- }
62
59
  element.setAttribute("component", "ui-button");
63
60
  } else if (a === 1) {
64
61
  element = document.createElement("button");
65
- for (const [name, value] of Object.entries(attributes)) {
66
- if (value === null || value === undefined || value === false) continue;
67
- element.setAttribute(name, value === true ? "" : String(value));
68
- }
69
62
  element.setAttribute("component", "ui-button");
70
63
  } else if (a === 2) {
71
64
  element = document.createElement("a");
72
- for (const [name, value] of Object.entries(attributes)) {
73
- if (value === null || value === undefined || value === false) continue;
74
- element.setAttribute(name, value === true ? "" : String(value));
75
- }
76
65
  element.setAttribute("component", "ui-button");
77
66
  } else {
78
67
  element = document.createElement("button");
79
- for (const [name, value] of Object.entries(attributes)) {
80
- if (value === null || value === undefined || value === false) continue;
81
- element.setAttribute(name, value === true ? "" : String(value));
82
- }
83
68
  element.setAttribute("component", "ui-button");
84
69
  }
85
70
  B = acceptProps(element, D, S.n, v, componentProps, Q[a], html);
@@ -99,9 +84,9 @@ export function createUiButton(options = {}, html) {
99
84
  return r;
100
85
  };
101
86
  const p2 = (r, c, d) => {
102
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "icon", J, false, undefined, d);
103
- 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); } }
104
- else if (r.b0 !== undefined) p3(r.b0, c, d);
87
+ if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a0, r.e0, "icon", J, false, undefined, d);
88
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m3(d, undefined, r), p3); else 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); } }
89
+ else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p3(r.b0, c, d);
105
90
  };
106
91
  const m3 = (d) => {
107
92
  const n = (P3 ??= buildTemplate(T3)).cloneNode(true);
@@ -143,9 +128,9 @@ export function createUiButton(options = {}, html) {
143
128
  return r;
144
129
  };
145
130
  const p8 = (r, c, d) => {
146
- if (r.f0 === undefined) { r.f0 = 1; const at = fillSlot(r.a0, r.e0, "icon", J, false, undefined, d);
147
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m9(d); at.before(r.b0.n); } }
148
- else if (r.b0 !== undefined) p9(r.b0, c, d);
131
+ if (r.f0 === undefined) { r.f0 = 1; const at = initializeSlot(r.a0, r.e0, "icon", J, false, undefined, d);
132
+ if (typeof at === "function") r.f0 = at(r, (d, at) => m9(d, undefined, r), p9); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b0 = m9(d); at.before(r.b0.n); } }
133
+ else if (typeof r.f0 === "function") r.f0(c, d); else if (r.b0 !== undefined) p9(r.b0, c, d);
149
134
  };
150
135
  const m9 = (d) => {
151
136
  const n = (P9 ??= buildTemplate(T9)).cloneNode(true);
@@ -227,83 +212,71 @@ export function createUiButton(options = {}, html) {
227
212
  const t3 = t0.nextSibling.nextSibling;
228
213
  const t4 = t3.firstChild;
229
214
  const t5 = t3.nextSibling.nextSibling.firstChild;
230
- const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, v9: undefined, v10: undefined, v11: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined, f2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
215
+ const r = { n, v0: undefined, v1: undefined, v2: undefined, g2: NONCONFORMING, v3: undefined, g3: NONCONFORMING, v4: undefined, g4: NONCONFORMING, v5: undefined, v6: undefined, g6: NONCONFORMING, v7: undefined, v8: undefined, v9: undefined, g9: NONCONFORMING, v10: undefined, v11: undefined, g11: NONCONFORMING, v12: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined, f2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
231
216
  r.z = [() => dispose(r.b1)];
232
217
  p0(r, -1, d);
233
218
  return r;
234
219
  };
235
220
  const p0 = (r, c, d) => {
236
- if (c & 1074791424) {
221
+ if (c & 1075191792) {
222
+ resetForwardedAttributes(r.n, attributes, r.v0);
223
+ r.v0 = forwardAttributes(r.n, attributes);
237
224
  const x0 = g(0);
238
- const s0 = toAttribute(x0, "data-appearance");
239
- if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
240
- }
241
- if (c & 1075053568) {
225
+ const s1 = toAttribute(x0, "data-appearance");
226
+ writeAttribute(r.n, "data-appearance", r.v1 = s1);
242
227
  const x1 = g(1);
243
- if (x1 !== NONCONFORMING) {
244
- const s1 = toAttribute(x1, "data-tone");
245
- if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
228
+ if (x1 !== NONCONFORMING) r.g2 = x1;
229
+ if (r.g2 !== NONCONFORMING) {
230
+ const s2 = toAttribute(r.g2, "data-tone");
231
+ writeAttribute(r.n, "data-tone", r.v2 = s2);
246
232
  }
247
- }
248
- if (c & 1073741888) {
249
- const x2 = readIndex({ "true": null, "false": v[6] }, textCall("concat", [(v[6] === "inherit")]));
250
- if (x2 !== NONCONFORMING) {
251
- const s2 = toAttribute(x2, "data-interaction-tone");
252
- if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
233
+ const x2 = readIndex({ "true": null, "false": v[6] }, textCall("concat", [equalValue(v[6], "inherit")]));
234
+ if (x2 !== NONCONFORMING) r.g3 = x2;
235
+ if (r.g3 !== NONCONFORMING) {
236
+ const s3 = toAttribute(r.g3, "data-interaction-tone");
237
+ writeAttribute(r.n, "data-interaction-tone", r.v3 = s3);
253
238
  }
254
- }
255
- if (c & 1074791616) {
256
239
  const x3 = g(2);
257
- if (x3 !== NONCONFORMING) {
258
- const s3 = toAttribute(x3, "data-interaction-appearance");
259
- if (s3 !== r.v3) writeAttribute(r.n, "data-interaction-appearance", r.v3 = s3);
240
+ if (x3 !== NONCONFORMING) r.g4 = x3;
241
+ if (r.g4 !== NONCONFORMING) {
242
+ const s4 = toAttribute(r.g4, "data-interaction-appearance");
243
+ writeAttribute(r.n, "data-interaction-appearance", r.v4 = s4);
260
244
  }
261
- }
262
- if (c & 4096) {
263
245
  const x4 = v[12];
264
- const s4 = toAttribute(x4, "data-selected");
265
- if (s4 !== r.v4) writeAttribute(r.n, "data-selected", r.v4 = s4);
266
- }
267
- if (c & 1073742640) {
246
+ const s5 = toAttribute(x4, "data-selected");
247
+ writeAttribute(r.n, "data-selected", r.v5 = s5);
268
248
  const x5 = readIndex({ "true": null, "false": v[5] }, textCall("concat", [((truthy(v[4]) || truthy(v[8])) || truthy(v[9]))]));
269
- if (x5 !== NONCONFORMING) {
270
- const s5 = toAttribute(x5, "href");
271
- if (s5 !== r.v5) writeUrlAttribute(r.n, "href", r.v5 = s5);
249
+ if (x5 !== NONCONFORMING) r.g6 = x5;
250
+ if (r.g6 !== NONCONFORMING) {
251
+ const s6 = toAttribute(r.g6, "href");
252
+ writeUrlAttribute(r.n, "href", r.v6 = s6);
272
253
  }
273
- }
274
- if (c & 131072) {
275
254
  const x6 = v[17];
276
- const s6 = toAttribute(x6, "target");
277
- if (s6 !== r.v6) writeAttribute(r.n, "target", r.v6 = s6);
278
- }
279
- if (c & 2048) {
255
+ const s7 = toAttribute(x6, "target");
256
+ writeAttribute(r.n, "target", r.v7 = s7);
280
257
  const x7 = v[11];
281
- const s7 = toAttribute(x7, "rel");
282
- if (s7 !== r.v7) writeAttribute(r.n, "rel", r.v7 = s7);
283
- }
284
- if (c & 1073742608) {
258
+ const s8 = toAttribute(x7, "rel");
259
+ writeAttribute(r.n, "rel", r.v8 = s8);
285
260
  const x8 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[4]) || truthy(v[8])) || truthy(v[9]))]));
286
- if (x8 !== NONCONFORMING) {
287
- const s8 = toAttribute(x8, "aria-disabled");
288
- if (s8 !== r.v8) writeAttribute(r.n, "aria-disabled", r.v8 = s8);
261
+ if (x8 !== NONCONFORMING) r.g9 = x8;
262
+ if (r.g9 !== NONCONFORMING) {
263
+ const s9 = toAttribute(r.g9, "aria-disabled");
264
+ writeAttribute(r.n, "aria-disabled", r.v9 = s9);
289
265
  }
290
- }
291
- if (c & 768) {
292
266
  const x9 = (truthy(v[8]) || truthy(v[9]));
293
- const s9 = toAttribute(x9, "aria-busy");
294
- if (s9 !== r.v9) writeAttribute(r.n, "aria-busy", r.v9 = s9);
295
- }
296
- if (c & 1073742608) {
267
+ const s10 = toAttribute(x9, "aria-busy");
268
+ writeAttribute(r.n, "aria-busy", r.v10 = s10);
297
269
  const x10 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[8]) || truthy(v[9])) && !truthy(v[4]))]));
298
- if (x10 !== NONCONFORMING) {
299
- const s10 = toAttribute(x10, "tabindex");
300
- if (s10 !== r.v10) writeAttribute(r.n, "tabindex", r.v10 = s10);
270
+ if (x10 !== NONCONFORMING) r.g11 = x10;
271
+ if (r.g11 !== NONCONFORMING) {
272
+ const s11 = toAttribute(r.g11, "tabindex");
273
+ writeAttribute(r.n, "tabindex", r.v11 = s11);
301
274
  }
302
275
  }
303
276
  if (c & 123656) {
304
277
  const x11 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[3], v[16], v[14], v[13], v[15], v[8], v[9]]);
305
- const s11 = x11;
306
- if (s11 !== r.v11) writeAttribute(r.n, "data-ui-button-state", (r.v11 = s11) === "" ? null : s11);
278
+ const s12 = x11;
279
+ if (s12 !== r.v12) writeAttribute(r.n, "data-ui-button-state", (r.v12 = s12) === "" ? null : s12);
307
280
  }
308
281
  if (c & 768 && !((truthy(v[8]) || truthy(v[9]))) !== !r.b0) {
309
282
  if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
@@ -313,12 +286,12 @@ export function createUiButton(options = {}, html) {
313
286
  if (r.b1) { dispose(r.b1); r.b1 = undefined; clearRegion(r.a2, r.e1); }
314
287
  else { r.b1 = m2(d); r.e1.before(r.b1.n); }
315
288
  } else if (r.b1 !== undefined) p2(r.b1, c, d);
316
- if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a3, r.e2, "", J, false, undefined, d);
317
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m4(d); at.before(r.b2.n); } }
318
- else if (r.b2 !== undefined) p4(r.b2, c, d);
319
- if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a4, r.e3, "action", J, true, undefined, d);
320
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m5(d); at.before(r.b3.n); } }
321
- else if (r.b3 !== undefined) p5(r.b3, c, d);
289
+ if (r.f2 === undefined) { r.f2 = 1; const at = initializeSlot(r.a3, r.e2, "", J, false, undefined, d);
290
+ if (typeof at === "function") r.f2 = at(r, (d, at) => m4(d, undefined, r), p4); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m4(d); at.before(r.b2.n); } }
291
+ else if (typeof r.f2 === "function") r.f2(c, d); else if (r.b2 !== undefined) p4(r.b2, c, d);
292
+ if (r.f3 === undefined) { r.f3 = 1; const at = initializeSlot(r.a4, r.e3, "action", J, true, undefined, d, r.z ??= []);
293
+ if (typeof at === "function") r.f3 = at(r, (d, at) => m5(d, undefined, r), p5); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m5(d); at.before(r.b3.n); } }
294
+ else if (typeof r.f3 === "function") r.f3(c, d); else if (r.b3 !== undefined) p5(r.b3, c, d);
322
295
  };
323
296
  const m6 = (n, d) => {
324
297
  n.append((P6 ??= buildTemplate(T6)).cloneNode(true));
@@ -328,69 +301,59 @@ export function createUiButton(options = {}, html) {
328
301
  const t3 = t0.nextSibling.nextSibling;
329
302
  const t4 = t3.firstChild;
330
303
  const t5 = t3.nextSibling.nextSibling.firstChild;
331
- const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, v9: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined, f2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
304
+ const r = { n, v0: undefined, v1: undefined, v2: undefined, g2: NONCONFORMING, v3: undefined, g3: NONCONFORMING, v4: undefined, g4: NONCONFORMING, v5: undefined, v6: undefined, v7: undefined, v8: undefined, g8: NONCONFORMING, v9: undefined, v10: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined, f2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
332
305
  r.z = [() => dispose(r.b1)];
333
306
  p6(r, -1, d);
334
307
  return r;
335
308
  };
336
309
  const p6 = (r, c, d) => {
337
- if (c & 1074791424) {
310
+ if (c & 1075582928) {
311
+ resetForwardedAttributes(r.n, attributes, r.v0);
312
+ r.v0 = forwardAttributes(r.n, attributes);
338
313
  const x0 = g(0);
339
- const s0 = toAttribute(x0, "data-appearance");
340
- if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
341
- }
342
- if (c & 1075053568) {
314
+ const s1 = toAttribute(x0, "data-appearance");
315
+ writeAttribute(r.n, "data-appearance", r.v1 = s1);
343
316
  const x1 = g(1);
344
- if (x1 !== NONCONFORMING) {
345
- const s1 = toAttribute(x1, "data-tone");
346
- if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
317
+ if (x1 !== NONCONFORMING) r.g2 = x1;
318
+ if (r.g2 !== NONCONFORMING) {
319
+ const s2 = toAttribute(r.g2, "data-tone");
320
+ writeAttribute(r.n, "data-tone", r.v2 = s2);
347
321
  }
348
- }
349
- if (c & 1073741888) {
350
- const x2 = readIndex({ "true": null, "false": v[6] }, textCall("concat", [(v[6] === "inherit")]));
351
- if (x2 !== NONCONFORMING) {
352
- const s2 = toAttribute(x2, "data-interaction-tone");
353
- if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
322
+ const x2 = readIndex({ "true": null, "false": v[6] }, textCall("concat", [equalValue(v[6], "inherit")]));
323
+ if (x2 !== NONCONFORMING) r.g3 = x2;
324
+ if (r.g3 !== NONCONFORMING) {
325
+ const s3 = toAttribute(r.g3, "data-interaction-tone");
326
+ writeAttribute(r.n, "data-interaction-tone", r.v3 = s3);
354
327
  }
355
- }
356
- if (c & 1074791616) {
357
328
  const x3 = g(2);
358
- if (x3 !== NONCONFORMING) {
359
- const s3 = toAttribute(x3, "data-interaction-appearance");
360
- if (s3 !== r.v3) writeAttribute(r.n, "data-interaction-appearance", r.v3 = s3);
329
+ if (x3 !== NONCONFORMING) r.g4 = x3;
330
+ if (r.g4 !== NONCONFORMING) {
331
+ const s4 = toAttribute(r.g4, "data-interaction-appearance");
332
+ writeAttribute(r.n, "data-interaction-appearance", r.v4 = s4);
361
333
  }
362
- }
363
- if (c & 4096) {
364
334
  const x4 = v[12];
365
- const s4 = toAttribute(x4, "data-selected");
366
- if (s4 !== r.v4) writeAttribute(r.n, "data-selected", r.v4 = s4);
367
- }
368
- if (c & 1074266112) {
335
+ const s5 = toAttribute(x4, "data-selected");
336
+ writeAttribute(r.n, "data-selected", r.v5 = s5);
369
337
  const x5 = v[19];
370
- const s5 = toAttribute(x5, "type");
371
- if (s5 !== r.v5) writeAttribute(r.n, "type", r.v5 = s5);
372
- }
373
- if (c & 16) {
338
+ const s6 = toAttribute(x5, "type");
339
+ writeAttribute(r.n, "type", r.v6 = s6);
374
340
  const x6 = v[4];
375
- const s6 = toAttribute(x6, "disabled");
376
- if (s6 !== r.v6) writeAttribute(r.n, "disabled", r.v6 = s6);
377
- }
378
- if (c & 1073742592) {
341
+ const s7 = toAttribute(x6, "disabled");
342
+ writeAttribute(r.n, "disabled", r.v7 = s7);
379
343
  const x7 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[8]) || truthy(v[9]))]));
380
- if (x7 !== NONCONFORMING) {
381
- const s7 = toAttribute(x7, "aria-disabled");
382
- if (s7 !== r.v7) writeAttribute(r.n, "aria-disabled", r.v7 = s7);
344
+ if (x7 !== NONCONFORMING) r.g8 = x7;
345
+ if (r.g8 !== NONCONFORMING) {
346
+ const s8 = toAttribute(r.g8, "aria-disabled");
347
+ writeAttribute(r.n, "aria-disabled", r.v8 = s8);
383
348
  }
384
- }
385
- if (c & 768) {
386
349
  const x8 = (truthy(v[8]) || truthy(v[9]));
387
- const s8 = toAttribute(x8, "aria-busy");
388
- if (s8 !== r.v8) writeAttribute(r.n, "aria-busy", r.v8 = s8);
350
+ const s9 = toAttribute(x8, "aria-busy");
351
+ writeAttribute(r.n, "aria-busy", r.v9 = s9);
389
352
  }
390
353
  if (c & 123656) {
391
354
  const x9 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[3], v[16], v[14], v[13], v[15], v[8], v[9]]);
392
- const s9 = x9;
393
- if (s9 !== r.v9) writeAttribute(r.n, "data-ui-button-state", (r.v9 = s9) === "" ? null : s9);
355
+ const s10 = x9;
356
+ if (s10 !== r.v10) writeAttribute(r.n, "data-ui-button-state", (r.v10 = s10) === "" ? null : s10);
394
357
  }
395
358
  if (c & 768 && !((truthy(v[8]) || truthy(v[9]))) !== !r.b0) {
396
359
  if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
@@ -400,12 +363,12 @@ export function createUiButton(options = {}, html) {
400
363
  if (r.b1) { dispose(r.b1); r.b1 = undefined; clearRegion(r.a2, r.e1); }
401
364
  else { r.b1 = m8(d); r.e1.before(r.b1.n); }
402
365
  } else if (r.b1 !== undefined) p8(r.b1, c, d);
403
- if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a3, r.e2, "", J, false, undefined, d);
404
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m10(d); at.before(r.b2.n); } }
405
- else if (r.b2 !== undefined) p10(r.b2, c, d);
406
- if (r.f3 === undefined) { r.f3 = 1; const at = fillSlot(r.a4, r.e3, "action", J, true, undefined, d);
407
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m11(d); at.before(r.b3.n); } }
408
- else if (r.b3 !== undefined) p11(r.b3, c, d);
366
+ if (r.f2 === undefined) { r.f2 = 1; const at = initializeSlot(r.a3, r.e2, "", J, false, undefined, d);
367
+ if (typeof at === "function") r.f2 = at(r, (d, at) => m10(d, undefined, r), p10); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m10(d); at.before(r.b2.n); } }
368
+ else if (typeof r.f2 === "function") r.f2(c, d); else if (r.b2 !== undefined) p10(r.b2, c, d);
369
+ if (r.f3 === undefined) { r.f3 = 1; const at = initializeSlot(r.a4, r.e3, "action", J, true, undefined, d, r.z ??= []);
370
+ if (typeof at === "function") r.f3 = at(r, (d, at) => m11(d, undefined, r), p11); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b3 = m11(d); at.before(r.b3.n); } }
371
+ else if (typeof r.f3 === "function") r.f3(c, d); else if (r.b3 !== undefined) p11(r.b3, c, d);
409
372
  };
410
373
  const m12 = (n, d) => {
411
374
  n.append((P12 ??= buildTemplate(T12)).cloneNode(true));
@@ -413,93 +376,81 @@ export function createUiButton(options = {}, html) {
413
376
  const t1 = t0.nextSibling.nextSibling.nextSibling;
414
377
  const t2 = t1.firstChild;
415
378
  const t3 = t1.nextSibling.nextSibling.firstChild;
416
- const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, v9: undefined, v10: undefined, v11: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, f1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, f2: undefined };
379
+ const r = { n, v0: undefined, v1: undefined, v2: undefined, g2: NONCONFORMING, v3: undefined, g3: NONCONFORMING, v4: undefined, g4: NONCONFORMING, v5: undefined, v6: undefined, g6: NONCONFORMING, v7: undefined, v8: undefined, v9: undefined, g9: NONCONFORMING, v10: undefined, v11: undefined, g11: NONCONFORMING, v12: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, f1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, f2: undefined };
417
380
  p12(r, -1, d);
418
381
  return r;
419
382
  };
420
383
  const p12 = (r, c, d) => {
421
- if (c & 1074791424) {
384
+ if (c & 1075191792) {
385
+ resetForwardedAttributes(r.n, attributes, r.v0);
386
+ r.v0 = forwardAttributes(r.n, attributes);
422
387
  const x0 = g(0);
423
- const s0 = toAttribute(x0, "data-appearance");
424
- if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
425
- }
426
- if (c & 1075053568) {
388
+ const s1 = toAttribute(x0, "data-appearance");
389
+ writeAttribute(r.n, "data-appearance", r.v1 = s1);
427
390
  const x1 = g(1);
428
- if (x1 !== NONCONFORMING) {
429
- const s1 = toAttribute(x1, "data-tone");
430
- if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
391
+ if (x1 !== NONCONFORMING) r.g2 = x1;
392
+ if (r.g2 !== NONCONFORMING) {
393
+ const s2 = toAttribute(r.g2, "data-tone");
394
+ writeAttribute(r.n, "data-tone", r.v2 = s2);
431
395
  }
432
- }
433
- if (c & 1073741888) {
434
- const x2 = readIndex({ "true": null, "false": v[6] }, textCall("concat", [(v[6] === "inherit")]));
435
- if (x2 !== NONCONFORMING) {
436
- const s2 = toAttribute(x2, "data-interaction-tone");
437
- if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
396
+ const x2 = readIndex({ "true": null, "false": v[6] }, textCall("concat", [equalValue(v[6], "inherit")]));
397
+ if (x2 !== NONCONFORMING) r.g3 = x2;
398
+ if (r.g3 !== NONCONFORMING) {
399
+ const s3 = toAttribute(r.g3, "data-interaction-tone");
400
+ writeAttribute(r.n, "data-interaction-tone", r.v3 = s3);
438
401
  }
439
- }
440
- if (c & 1074791616) {
441
402
  const x3 = g(2);
442
- if (x3 !== NONCONFORMING) {
443
- const s3 = toAttribute(x3, "data-interaction-appearance");
444
- if (s3 !== r.v3) writeAttribute(r.n, "data-interaction-appearance", r.v3 = s3);
403
+ if (x3 !== NONCONFORMING) r.g4 = x3;
404
+ if (r.g4 !== NONCONFORMING) {
405
+ const s4 = toAttribute(r.g4, "data-interaction-appearance");
406
+ writeAttribute(r.n, "data-interaction-appearance", r.v4 = s4);
445
407
  }
446
- }
447
- if (c & 4096) {
448
408
  const x4 = v[12];
449
- const s4 = toAttribute(x4, "data-selected");
450
- if (s4 !== r.v4) writeAttribute(r.n, "data-selected", r.v4 = s4);
451
- }
452
- if (c & 1073742640) {
409
+ const s5 = toAttribute(x4, "data-selected");
410
+ writeAttribute(r.n, "data-selected", r.v5 = s5);
453
411
  const x5 = readIndex({ "true": null, "false": v[5] }, textCall("concat", [((truthy(v[4]) || truthy(v[8])) || truthy(v[9]))]));
454
- if (x5 !== NONCONFORMING) {
455
- const s5 = toAttribute(x5, "href");
456
- if (s5 !== r.v5) writeUrlAttribute(r.n, "href", r.v5 = s5);
412
+ if (x5 !== NONCONFORMING) r.g6 = x5;
413
+ if (r.g6 !== NONCONFORMING) {
414
+ const s6 = toAttribute(r.g6, "href");
415
+ writeUrlAttribute(r.n, "href", r.v6 = s6);
457
416
  }
458
- }
459
- if (c & 131072) {
460
417
  const x6 = v[17];
461
- const s6 = toAttribute(x6, "target");
462
- if (s6 !== r.v6) writeAttribute(r.n, "target", r.v6 = s6);
463
- }
464
- if (c & 2048) {
418
+ const s7 = toAttribute(x6, "target");
419
+ writeAttribute(r.n, "target", r.v7 = s7);
465
420
  const x7 = v[11];
466
- const s7 = toAttribute(x7, "rel");
467
- if (s7 !== r.v7) writeAttribute(r.n, "rel", r.v7 = s7);
468
- }
469
- if (c & 1073742608) {
421
+ const s8 = toAttribute(x7, "rel");
422
+ writeAttribute(r.n, "rel", r.v8 = s8);
470
423
  const x8 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[4]) || truthy(v[8])) || truthy(v[9]))]));
471
- if (x8 !== NONCONFORMING) {
472
- const s8 = toAttribute(x8, "aria-disabled");
473
- if (s8 !== r.v8) writeAttribute(r.n, "aria-disabled", r.v8 = s8);
424
+ if (x8 !== NONCONFORMING) r.g9 = x8;
425
+ if (r.g9 !== NONCONFORMING) {
426
+ const s9 = toAttribute(r.g9, "aria-disabled");
427
+ writeAttribute(r.n, "aria-disabled", r.v9 = s9);
474
428
  }
475
- }
476
- if (c & 768) {
477
429
  const x9 = (truthy(v[8]) || truthy(v[9]));
478
- const s9 = toAttribute(x9, "aria-busy");
479
- if (s9 !== r.v9) writeAttribute(r.n, "aria-busy", r.v9 = s9);
480
- }
481
- if (c & 1073742608) {
430
+ const s10 = toAttribute(x9, "aria-busy");
431
+ writeAttribute(r.n, "aria-busy", r.v10 = s10);
482
432
  const x10 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[8]) || truthy(v[9])) && !truthy(v[4]))]));
483
- if (x10 !== NONCONFORMING) {
484
- const s10 = toAttribute(x10, "tabindex");
485
- if (s10 !== r.v10) writeAttribute(r.n, "tabindex", r.v10 = s10);
433
+ if (x10 !== NONCONFORMING) r.g11 = x10;
434
+ if (r.g11 !== NONCONFORMING) {
435
+ const s11 = toAttribute(r.g11, "tabindex");
436
+ writeAttribute(r.n, "tabindex", r.v11 = s11);
486
437
  }
487
438
  }
488
439
  if (c & 123656) {
489
440
  const x11 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[3], v[16], v[14], v[13], v[15], v[8], v[9]]);
490
- const s11 = x11;
491
- if (s11 !== r.v11) writeAttribute(r.n, "data-ui-button-state", (r.v11 = s11) === "" ? null : s11);
441
+ const s12 = x11;
442
+ if (s12 !== r.v12) writeAttribute(r.n, "data-ui-button-state", (r.v12 = s12) === "" ? null : s12);
492
443
  }
493
444
  if (c & 768 && !((truthy(v[8]) || truthy(v[9]))) !== !r.b0) {
494
445
  if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
495
446
  else { r.b0 = m13(d); r.e0.before(r.b0.n); }
496
447
  } else if (r.b0 !== undefined) p13(r.b0, c, d);
497
- if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a2, r.e1, "", J, false, undefined, d);
498
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m14(d); at.before(r.b1.n); } }
499
- else if (r.b1 !== undefined) p14(r.b1, c, d);
500
- if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a3, r.e2, "badge", J, false, undefined, d);
501
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m15(d); at.before(r.b2.n); } }
502
- else if (r.b2 !== undefined) p15(r.b2, c, d);
448
+ if (r.f1 === undefined) { r.f1 = 1; const at = initializeSlot(r.a2, r.e1, "", J, false, undefined, d);
449
+ if (typeof at === "function") r.f1 = at(r, (d, at) => m14(d, undefined, r), p14); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m14(d); at.before(r.b1.n); } }
450
+ else if (typeof r.f1 === "function") r.f1(c, d); else if (r.b1 !== undefined) p14(r.b1, c, d);
451
+ if (r.f2 === undefined) { r.f2 = 1; const at = initializeSlot(r.a3, r.e2, "badge", J, false, undefined, d);
452
+ if (typeof at === "function") r.f2 = at(r, (d, at) => m15(d, undefined, r), p15); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m15(d); at.before(r.b2.n); } }
453
+ else if (typeof r.f2 === "function") r.f2(c, d); else if (r.b2 !== undefined) p15(r.b2, c, d);
503
454
  };
504
455
  const m16 = (n, d) => {
505
456
  n.append((P16 ??= buildTemplate(T16)).cloneNode(true));
@@ -507,79 +458,69 @@ export function createUiButton(options = {}, html) {
507
458
  const t1 = t0.nextSibling.nextSibling.nextSibling;
508
459
  const t2 = t1.firstChild;
509
460
  const t3 = t1.nextSibling.nextSibling.firstChild;
510
- const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, v9: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, f1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, f2: undefined };
461
+ const r = { n, v0: undefined, v1: undefined, v2: undefined, g2: NONCONFORMING, v3: undefined, g3: NONCONFORMING, v4: undefined, g4: NONCONFORMING, v5: undefined, v6: undefined, v7: undefined, v8: undefined, g8: NONCONFORMING, v9: undefined, v10: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, f1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, f2: undefined };
511
462
  p16(r, -1, d);
512
463
  return r;
513
464
  };
514
465
  const p16 = (r, c, d) => {
515
- if (c & 1074791424) {
466
+ if (c & 1075582928) {
467
+ resetForwardedAttributes(r.n, attributes, r.v0);
468
+ r.v0 = forwardAttributes(r.n, attributes);
516
469
  const x0 = g(0);
517
- const s0 = toAttribute(x0, "data-appearance");
518
- if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
519
- }
520
- if (c & 1075053568) {
470
+ const s1 = toAttribute(x0, "data-appearance");
471
+ writeAttribute(r.n, "data-appearance", r.v1 = s1);
521
472
  const x1 = g(1);
522
- if (x1 !== NONCONFORMING) {
523
- const s1 = toAttribute(x1, "data-tone");
524
- if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
473
+ if (x1 !== NONCONFORMING) r.g2 = x1;
474
+ if (r.g2 !== NONCONFORMING) {
475
+ const s2 = toAttribute(r.g2, "data-tone");
476
+ writeAttribute(r.n, "data-tone", r.v2 = s2);
525
477
  }
526
- }
527
- if (c & 1073741888) {
528
- const x2 = readIndex({ "true": null, "false": v[6] }, textCall("concat", [(v[6] === "inherit")]));
529
- if (x2 !== NONCONFORMING) {
530
- const s2 = toAttribute(x2, "data-interaction-tone");
531
- if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
478
+ const x2 = readIndex({ "true": null, "false": v[6] }, textCall("concat", [equalValue(v[6], "inherit")]));
479
+ if (x2 !== NONCONFORMING) r.g3 = x2;
480
+ if (r.g3 !== NONCONFORMING) {
481
+ const s3 = toAttribute(r.g3, "data-interaction-tone");
482
+ writeAttribute(r.n, "data-interaction-tone", r.v3 = s3);
532
483
  }
533
- }
534
- if (c & 1074791616) {
535
484
  const x3 = g(2);
536
- if (x3 !== NONCONFORMING) {
537
- const s3 = toAttribute(x3, "data-interaction-appearance");
538
- if (s3 !== r.v3) writeAttribute(r.n, "data-interaction-appearance", r.v3 = s3);
485
+ if (x3 !== NONCONFORMING) r.g4 = x3;
486
+ if (r.g4 !== NONCONFORMING) {
487
+ const s4 = toAttribute(r.g4, "data-interaction-appearance");
488
+ writeAttribute(r.n, "data-interaction-appearance", r.v4 = s4);
539
489
  }
540
- }
541
- if (c & 4096) {
542
490
  const x4 = v[12];
543
- const s4 = toAttribute(x4, "data-selected");
544
- if (s4 !== r.v4) writeAttribute(r.n, "data-selected", r.v4 = s4);
545
- }
546
- if (c & 1074266112) {
491
+ const s5 = toAttribute(x4, "data-selected");
492
+ writeAttribute(r.n, "data-selected", r.v5 = s5);
547
493
  const x5 = v[19];
548
- const s5 = toAttribute(x5, "type");
549
- if (s5 !== r.v5) writeAttribute(r.n, "type", r.v5 = s5);
550
- }
551
- if (c & 16) {
494
+ const s6 = toAttribute(x5, "type");
495
+ writeAttribute(r.n, "type", r.v6 = s6);
552
496
  const x6 = v[4];
553
- const s6 = toAttribute(x6, "disabled");
554
- if (s6 !== r.v6) writeAttribute(r.n, "disabled", r.v6 = s6);
555
- }
556
- if (c & 1073742592) {
497
+ const s7 = toAttribute(x6, "disabled");
498
+ writeAttribute(r.n, "disabled", r.v7 = s7);
557
499
  const x7 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[8]) || truthy(v[9]))]));
558
- if (x7 !== NONCONFORMING) {
559
- const s7 = toAttribute(x7, "aria-disabled");
560
- if (s7 !== r.v7) writeAttribute(r.n, "aria-disabled", r.v7 = s7);
500
+ if (x7 !== NONCONFORMING) r.g8 = x7;
501
+ if (r.g8 !== NONCONFORMING) {
502
+ const s8 = toAttribute(r.g8, "aria-disabled");
503
+ writeAttribute(r.n, "aria-disabled", r.v8 = s8);
561
504
  }
562
- }
563
- if (c & 768) {
564
505
  const x8 = (truthy(v[8]) || truthy(v[9]));
565
- const s8 = toAttribute(x8, "aria-busy");
566
- if (s8 !== r.v8) writeAttribute(r.n, "aria-busy", r.v8 = s8);
506
+ const s9 = toAttribute(x8, "aria-busy");
507
+ writeAttribute(r.n, "aria-busy", r.v9 = s9);
567
508
  }
568
509
  if (c & 123656) {
569
510
  const x9 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[3], v[16], v[14], v[13], v[15], v[8], v[9]]);
570
- const s9 = x9;
571
- if (s9 !== r.v9) writeAttribute(r.n, "data-ui-button-state", (r.v9 = s9) === "" ? null : s9);
511
+ const s10 = x9;
512
+ if (s10 !== r.v10) writeAttribute(r.n, "data-ui-button-state", (r.v10 = s10) === "" ? null : s10);
572
513
  }
573
514
  if (c & 768 && !((truthy(v[8]) || truthy(v[9]))) !== !r.b0) {
574
515
  if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
575
516
  else { r.b0 = m17(d); r.e0.before(r.b0.n); }
576
517
  } else if (r.b0 !== undefined) p17(r.b0, c, d);
577
- if (r.f1 === undefined) { r.f1 = 1; const at = fillSlot(r.a2, r.e1, "", J, false, undefined, d);
578
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m18(d); at.before(r.b1.n); } }
579
- else if (r.b1 !== undefined) p18(r.b1, c, d);
580
- if (r.f2 === undefined) { r.f2 = 1; const at = fillSlot(r.a3, r.e2, "badge", J, false, undefined, d);
581
- if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m19(d); at.before(r.b2.n); } }
582
- else if (r.b2 !== undefined) p19(r.b2, c, d);
518
+ if (r.f1 === undefined) { r.f1 = 1; const at = initializeSlot(r.a2, r.e1, "", J, false, undefined, d);
519
+ if (typeof at === "function") r.f1 = at(r, (d, at) => m18(d, undefined, r), p18); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b1 = m18(d); at.before(r.b1.n); } }
520
+ else if (typeof r.f1 === "function") r.f1(c, d); else if (r.b1 !== undefined) p18(r.b1, c, d);
521
+ if (r.f2 === undefined) { r.f2 = 1; const at = initializeSlot(r.a3, r.e2, "badge", J, false, undefined, d);
522
+ if (typeof at === "function") r.f2 = at(r, (d, at) => m19(d, undefined, r), p19); else if (Array.isArray(at)) (r.z ??= []).push(() => { at[0].l.delete(at[1]); dispose(at[1]); }); else if (at !== undefined) { r.b2 = m19(d); at.before(r.b2.n); } }
523
+ else if (typeof r.f2 === "function") r.f2(c, d); else if (r.b2 !== undefined) p19(r.b2, c, d);
583
524
  };
584
525
  const M = [m0, m6, m12, m16], N = [p0, p6, p12, p16];
585
526
  let R;
@@ -587,7 +528,7 @@ export function createUiButton(options = {}, html) {
587
528
  if (R === null) return;
588
529
  if (R === undefined) { R = M[a](element, d); return; }
589
530
  if (c & 1074791456) {
590
- const t = (((g(0) === "card") && (v[5] !== null)) ? 0 : (g(0) === "card") ? 1 : (v[5] !== null) ? 2 : 3);
531
+ const t = ((truthy(equalValue(g(0), "card")) && truthy(equalValue(v[5], null, true))) ? 0 : truthy(equalValue(g(0), "card")) ? 1 : truthy(equalValue(v[5], null, true)) ? 2 : 3);
591
532
  if (t !== a) {
592
533
  dispose(R);
593
534
  for (const key in I.r) delete I.r[key];
@@ -604,6 +545,8 @@ export function createUiButton(options = {}, html) {
604
545
  };
605
546
  const I = { B };
606
547
  const J = project(I, children, slots);
548
+ sharePlainSlots(I, J, ["icon","","action","badge"]);
549
+ I.F = { values: attributes, draw: () => p(-1) };
607
550
  attachGeneratedController(element, S, v, p, undefined, X, I);
608
551
  manageProps(I);
609
552
  return element;