@threadlabs/looma 0.33.0 → 0.34.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 (207) hide show
  1. package/README.md +15 -0
  2. package/bin/looma-docs.mjs +3 -0
  3. package/components/shared/overlay.js +8 -2
  4. package/components/shared/surface-material.js +21 -0
  5. package/components/ui-button/ui-button.html +63 -47
  6. package/components/ui-card/ui-card.html +44 -2
  7. package/components/ui-curve-editor/curve.js +10 -0
  8. package/components/ui-curve-editor/ui-curve-editor.html +181 -0
  9. package/components/ui-curve-editor/ui-curve-editor.js +51 -0
  10. package/components/ui-dialog/ui-dialog.html +62 -1
  11. package/components/ui-dialog/ui-dialog.js +9 -1
  12. package/components/ui-icon-button/ui-icon-button.html +75 -23
  13. package/components/ui-menu/ui-menu.html +60 -0
  14. package/components/ui-menu/ui-menu.js +1 -1
  15. package/components/ui-number-input/arithmetic.js +47 -0
  16. package/components/ui-number-input/ui-number-input.html +62 -0
  17. package/components/ui-number-input/ui-number-input.js +44 -0
  18. package/components/ui-popover/ui-popover.html +64 -1
  19. package/components/ui-popover/ui-popover.js +1 -1
  20. package/components/ui-slider/ui-slider.html +84 -0
  21. package/components/ui-slider/ui-slider.js +29 -0
  22. package/components/ui-tabs/ui-tabs.html +6 -1
  23. package/components/ui-text/ui-text.html +31 -6
  24. package/components/ui-tooltip/ui-tooltip.html +60 -0
  25. package/components/ui-tooltip/ui-tooltip.js +1 -1
  26. package/dist/index.js +46 -43
  27. package/docs/README.md +146 -0
  28. package/docs/card.html +77 -0
  29. package/docs/card.js +47 -0
  30. package/docs/catalog-view.js +18 -0
  31. package/docs/catalog-view.mjs +11 -0
  32. package/docs/catalog.json +23984 -0
  33. package/docs/catalog.mjs +131 -0
  34. package/docs/cli.mjs +26 -0
  35. package/docs/commands.mjs +94 -0
  36. package/docs/customizer-render.mjs +66 -0
  37. package/docs/customizer.js +181 -0
  38. package/docs/documentation.css +16 -0
  39. package/docs/examples/ui-action-bar/examples/01-form-footer.behavior.js +7 -0
  40. package/docs/examples/ui-button/examples/08-loading.behavior.js +21 -0
  41. package/docs/examples/ui-checkbox/examples/02-checked-indeterminate-and-disabled.behavior.js +30 -0
  42. package/docs/examples/ui-combobox/examples/06-selected-values.behavior.js +11 -0
  43. package/docs/examples/ui-search-shell/examples/02-label-dismissible-status-and-footer.behavior.js +34 -0
  44. package/docs/examples/ui-toast/examples/01-authored.behavior.js +15 -0
  45. package/docs/examples/ui-toast/examples/02-danger.behavior.js +2 -0
  46. package/docs/examples/ui-tree/examples/03-max-depth-2-and-hover-expand-delay-300.behavior.js +30 -0
  47. package/docs/examples/ui-tree/examples/06-move-without-dragging.behavior.js +2 -0
  48. package/docs/examples/ui-tree/examples/07-multiple-selection.behavior.js +16 -0
  49. package/docs/examples/ui-tree-item/examples/02-container.behavior.js +1 -0
  50. package/docs/index.d.ts +56 -0
  51. package/docs/index.mjs +4 -0
  52. package/docs/local-server.mjs +68 -0
  53. package/docs/preview.js +22 -0
  54. package/docs/reference.html +1 -0
  55. package/docs/reference.js +36 -0
  56. package/docs/render.mjs +93 -0
  57. package/docs/site.mjs +239 -0
  58. package/docs/store.mjs +92 -0
  59. package/docs/theme-session.mjs +51 -0
  60. package/docs/theme.mjs +219 -0
  61. package/docs/value-editors.mjs +33 -0
  62. package/docs/workspace.mjs +32 -0
  63. package/package.json +28 -4
  64. package/styles/ui-button.css +45 -45
  65. package/styles/ui-card.css +47 -0
  66. package/styles/ui-curve-editor.css +109 -0
  67. package/styles/ui-dialog.css +132 -0
  68. package/styles/ui-icon-button.css +63 -20
  69. package/styles/ui-menu.css +72 -0
  70. package/styles/ui-number-input.css +34 -0
  71. package/styles/ui-popover.css +74 -0
  72. package/styles/ui-slider.css +53 -0
  73. package/styles/ui-tabs.css +6 -1
  74. package/styles/ui-text.css +23 -1
  75. package/styles/ui-tooltip.css +72 -0
  76. package/theme-system.css +26 -10
  77. package/tokens.css +8 -2
  78. package/vanilla/UiButton.d.ts +1 -0
  79. package/vanilla/UiButton.js +195 -130
  80. package/vanilla/UiCard.d.ts +1 -1
  81. package/vanilla/UiCard.js +1 -1
  82. package/vanilla/UiCurveEditor.d.ts +28 -0
  83. package/vanilla/UiCurveEditor.js +134 -0
  84. package/vanilla/UiIconButton.d.ts +2 -1
  85. package/vanilla/UiIconButton.js +58 -31
  86. package/vanilla/UiNumberInput.d.ts +33 -0
  87. package/vanilla/UiNumberInput.js +79 -0
  88. package/vanilla/UiSlider.d.ts +33 -0
  89. package/vanilla/UiSlider.js +125 -0
  90. package/vanilla/UiText.d.ts +2 -2
  91. package/vanilla/UiText.js +45 -11
  92. package/vanilla/index.js +3 -0
  93. package/vue/UiButton.d.ts +6 -0
  94. package/vue/UiButton.vue +155 -56
  95. package/vue/UiCard.d.ts +2 -2
  96. package/vue/UiCard.vue +55 -5
  97. package/vue/UiCurveEditor.d.ts +53 -0
  98. package/vue/UiCurveEditor.js +2 -0
  99. package/vue/UiCurveEditor.vue +427 -0
  100. package/vue/UiDialog.vue +177 -1
  101. package/vue/UiIconButton.d.ts +8 -2
  102. package/vue/UiIconButton.vue +164 -34
  103. package/vue/UiMenu.vue +89 -0
  104. package/vue/UiNumberInput.d.ts +83 -0
  105. package/vue/UiNumberInput.js +2 -0
  106. package/vue/UiNumberInput.vue +370 -0
  107. package/vue/UiPopover.vue +92 -1
  108. package/vue/UiSlider.d.ts +83 -0
  109. package/vue/UiSlider.js +2 -0
  110. package/vue/UiSlider.vue +412 -0
  111. package/vue/UiTabs.vue +6 -1
  112. package/vue/UiText.d.ts +7 -5
  113. package/vue/UiText.vue +104 -22
  114. package/vue/UiTooltip.vue +89 -0
  115. package/vue/chunks/UiActionBar.js +1 -1
  116. package/vue/chunks/UiAffordanceScope.js +2 -2
  117. package/vue/chunks/UiAvatar.js +2 -2
  118. package/vue/chunks/UiAvatarGroup.js +2 -2
  119. package/vue/chunks/UiBadge.js +2 -2
  120. package/vue/chunks/UiBreadcrumbItem.js +2 -2
  121. package/vue/chunks/UiBreadcrumbs.js +2 -2
  122. package/vue/chunks/UiButton.js +94 -11
  123. package/vue/chunks/UiCallout.js +2 -2
  124. package/vue/chunks/UiCard.js +6 -5
  125. package/vue/chunks/UiCheckbox.js +2 -2
  126. package/vue/chunks/UiCluster.js +2 -2
  127. package/vue/chunks/UiColorPicker.js +2 -2
  128. package/vue/chunks/UiCombobox.js +2 -2
  129. package/vue/chunks/UiContainer.js +2 -2
  130. package/vue/chunks/UiContextMenu.js +2 -2
  131. package/vue/chunks/UiCover.js +2 -2
  132. package/vue/chunks/UiCurveEditor.js +413 -0
  133. package/vue/chunks/UiDescriptionItem.js +2 -2
  134. package/vue/chunks/UiDescriptionList.js +2 -2
  135. package/vue/chunks/UiDialog.js +4 -4
  136. package/vue/chunks/UiDisclosure.js +2 -2
  137. package/vue/chunks/UiEditable.js +2 -2
  138. package/vue/chunks/UiEditorBlockActions.js +2 -2
  139. package/vue/chunks/UiEditorChipEditor.js +2 -2
  140. package/vue/chunks/UiEditorCodeLanguage.js +2 -2
  141. package/vue/chunks/UiEditorFootnoteEditor.js +2 -2
  142. package/vue/chunks/UiEditorImageToolbar.js +3 -3
  143. package/vue/chunks/UiEditorInsertTableGrid.js +2 -2
  144. package/vue/chunks/UiEditorLinkCard.js +3 -3
  145. package/vue/chunks/UiEditorLinkForm.js +3 -3
  146. package/vue/chunks/UiEditorMentionMenu.js +2 -2
  147. package/vue/chunks/UiEditorMentionMenuItem.js +2 -2
  148. package/vue/chunks/UiEditorSlashMenu.js +2 -2
  149. package/vue/chunks/UiEditorSlashMenuGroup.js +2 -2
  150. package/vue/chunks/UiEditorSlashMenuItem.js +2 -2
  151. package/vue/chunks/UiEditorSurface.js +2 -2
  152. package/vue/chunks/UiEditorTableContextMenu.js +2 -2
  153. package/vue/chunks/UiEditorTableOverlay.js +2 -2
  154. package/vue/chunks/UiEditorTableToolbar.js +2 -2
  155. package/vue/chunks/UiEditorToolbar.js +2 -2
  156. package/vue/chunks/UiFloatingActionButton.js +2 -2
  157. package/vue/chunks/UiFormField.js +2 -2
  158. package/vue/chunks/UiGrid.js +2 -2
  159. package/vue/chunks/UiIcon.js +2 -2
  160. package/vue/chunks/UiIconButton.js +77 -11
  161. package/vue/chunks/UiImage.js +2 -2
  162. package/vue/chunks/UiInput.js +2 -2
  163. package/vue/chunks/UiInputGroup.js +2 -2
  164. package/vue/chunks/UiList.js +2 -2
  165. package/vue/chunks/UiListItem.js +2 -2
  166. package/vue/chunks/UiListbox.js +2 -2
  167. package/vue/chunks/UiMenu.js +3 -3
  168. package/vue/chunks/UiMenuGroup.js +2 -2
  169. package/vue/chunks/UiMenuItem.js +2 -2
  170. package/vue/chunks/UiMeter.js +2 -2
  171. package/vue/chunks/UiNavItem.js +2 -2
  172. package/vue/chunks/UiNumberInput.js +390 -0
  173. package/vue/chunks/UiPageHeader.js +2 -2
  174. package/vue/chunks/UiPopover.js +4 -4
  175. package/vue/chunks/UiRadio.js +2 -2
  176. package/vue/chunks/UiRadioGroup.js +2 -2
  177. package/vue/chunks/UiReel.js +2 -2
  178. package/vue/chunks/UiScrollArea.js +2 -2
  179. package/vue/chunks/UiSearchResultRow.js +2 -2
  180. package/vue/chunks/UiSearchShell.js +2 -2
  181. package/vue/chunks/UiSection.js +2 -2
  182. package/vue/chunks/UiSelect.js +2 -2
  183. package/vue/chunks/UiSeparator.js +2 -2
  184. package/vue/chunks/UiSidebar.js +2 -2
  185. package/vue/chunks/UiSlider.js +396 -0
  186. package/vue/chunks/UiSpinner.js +2 -2
  187. package/vue/chunks/UiStack.js +2 -2
  188. package/vue/chunks/UiStatusMessage.js +2 -2
  189. package/vue/chunks/UiSwatch.js +2 -2
  190. package/vue/chunks/UiSwitch.js +2 -2
  191. package/vue/chunks/UiSwitcher.js +2 -2
  192. package/vue/chunks/UiTable.js +2 -2
  193. package/vue/chunks/UiTabs.js +3 -3
  194. package/vue/chunks/UiText.js +53 -12
  195. package/vue/chunks/UiTextarea.js +2 -2
  196. package/vue/chunks/UiToast.js +2 -2
  197. package/vue/chunks/UiToastRegion.js +2 -2
  198. package/vue/chunks/UiTooltip.js +3 -3
  199. package/vue/chunks/UiTopBar.js +1 -1
  200. package/vue/chunks/UiTree.js +2 -2
  201. package/vue/chunks/UiTreeItem.js +2 -2
  202. package/vue/chunks/_plugin-vue_export-helper.js +68 -2
  203. package/vue/chunks/props.js +24 -1
  204. package/vue/components.css +2215 -1203
  205. package/vue/editor/index.js +623 -211
  206. package/vue/index.d.ts +3 -0
  207. package/vue/index.js +5 -2
@@ -1,5 +1,5 @@
1
1
  // Generated by HTML Next 1.0.0-alpha.69 for Vanilla DOM. Do not edit.
2
- import { attachGeneratedController, buildTemplate, clearRegion, NONCONFORMING, readIndex, textCall, toAttribute, truthy, writeAttribute, writeUrlAttribute, dispose, formatOf, keywordFormat, hostState, acceptProps, manageProps, generatedInputs, project, fillSlot, armElement, replaceRoot, checkBoolean, checkFormat, checkString, defineComponent, activateModule } from "@nextwebwg/html-next/generated-runtime";
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";
3
3
  import * as controller from "../components/ui-button/ui-button.js";
4
4
  import "../styles/ui-button.css";
5
5
 
@@ -24,17 +24,34 @@ const T17 = ["span",["class","spinner-wrap"],["ui-spinner",["size","sm"]]];
24
24
  const T18 = ["",[]];
25
25
  const T19 = ["",[]];
26
26
  let P0, P1, P2, P3, P4, P5, P6, P7, P8, P9, P10, P11, P12, P13, P14, P15, P16, P17, P18, P19;
27
- const S = { n: [], t: [], f: import.meta.url, g: "ui-button", a: (host, I) => C(host, I), b: generatedInputs };
28
- const A = [["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-as","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-as","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","type","disabled","aria-disabled","aria-busy"]],["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-as","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-as","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","type","disabled","aria-disabled","aria-busy"]]];
27
+ const S = { n: ["appearance","colorTone"], t: ["?","?"], f: import.meta.url, g: "ui-button", k: 0, r: readonlyView, a: (host, I) => C(host, I), b: generatedInputs };
28
+ const A = [["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-as","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-as","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","type","disabled","aria-disabled","aria-busy"]],["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-as","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-as","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-stretch","data-ui-button-prop-target","data-ui-button-prop-tone","data-ui-button-prop-type","data-ui-button-prop-variant","data-appearance","data-tone","type","disabled","aria-disabled","aria-busy"]]];
29
29
  const Q = [[],[],[],[]];
30
- const D = { g: "ui-button", props: { "align": { "required":false,"values":["center","start"],"default":"center", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "as": { "required":false,"values":["button","a"],"default":"button", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "href": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "loading": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "pending": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "rel": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "shape": { "required":false,"values":["rounded","pill"],"default":"rounded", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "stretch": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "target": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "tone": { "required":false,"values":["accent","neutral","danger","success","warning","info"],"default":"accent", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "type": { "required":false,"values":["button","submit","reset"],"default":"button", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["outline","solid","danger","ghost","link","card","field"],"default":"outline", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
30
+ const D = { g: "ui-button", props: { "align": { "required":false,"values":["center","start"],"default":"center", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "as": { "required":false,"values":["button","a"],"default":"button", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "href": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "loading": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "pending": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "preset": { "required":false,"values":["none","primary","standard","quiet","destructive"],"default":"none", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "rel": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "shape": { "required":false,"values":["rounded","pill"],"default":"rounded", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "stretch": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "target": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "tone": { "required":false,"values":["accent","neutral","danger","success","warning","info"],"default":"accent", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "type": { "required":false,"values":["button","submit","reset"],"default":"button", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["outline","solid","danger","ghost","link","card","field"],"default":"outline", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
31
31
  const C = (host) => activateModule(controller, host);
32
32
 
33
33
  export function createUiButton(options = {}, html) {
34
34
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
35
- const v = [null, null, null, null, null, null, null, null, null, null, null, null, null, null];
35
+ const v = [undefined, undefined, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null];
36
36
  let B = acceptProps(undefined, D, S.n, v, componentProps, [], html);
37
- let a = (((v[13] === "card") && (v[1] === "a")) ? 0 : (v[13] === "card") ? 1 : (v[1] === "a") ? 2 : 3);
37
+ const CS = [];
38
+ const inputStatus = (j) => { if (j >= 0 && j < 2) { g(j); return CS[j] ?? UNRESOLVED_INPUT; } if (j === 2) return awaitInput(B, "align", true); if (j === 3) return awaitInput(B, "as", true); if (j === 4) return awaitInput(B, "disabled", true); if (j === 5) return awaitInput(B, "href", true); if (j === 6) return awaitInput(B, "loading", true); if (j === 7) return awaitInput(B, "pending", true); if (j === 8) return awaitInput(B, "preset", true); if (j === 9) return awaitInput(B, "rel", true); if (j === 10) return awaitInput(B, "shape", true); if (j === 11) return awaitInput(B, "size", true); if (j === 12) return awaitInput(B, "stretch", true); if (j === 13) return awaitInput(B, "target", true); if (j === 14) return awaitInput(B, "tone", true); if (j === 15) return awaitInput(B, "type", true); if (j === 16) return awaitInput(B, "variant", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
39
+ const X = { e: 0, g: (j) => g(j), w: new Set(), a: CS, i: inputStatus };
40
+ const ke = [];
41
+ const K = [() => readIndex({ "none": inputRead(v[16], inputStatus(16)), "primary": "solid", "standard": "solid", "quiet": "ghost", "destructive": "solid" }, inputRead(v[8], inputStatus(8))), () => readIndex(recordValue(["none","primary","standard","quiet","destructive"], [readIndex({ "true": "danger", "false": inputRead(v[14], inputStatus(14)) }, textCall("concat", [(inputRead(v[16], inputStatus(16)) === "danger")])), "accent", "neutral", "neutral", "danger"]), inputRead(v[8], inputStatus(8)))];
42
+ const g = (j) => {
43
+ const i = j - 0;
44
+ if (ke[i] === X.e) return v[j];
45
+ if (ke[i] === -1) computedCycle();
46
+ ke[i] = -1;
47
+ let next;
48
+ try { const result = evaluateInput(K[i], CS[j], NONCONFORMING), previousStatus = CS[j]; CS[j] = result.status; notifyPropertySet(CS, j, previousStatus, result.status, undefined); next = !result.status.ready ? null : result.value === NONCONFORMING ? v[j] : result.value; } catch (error) { ke[i] = undefined; throw error; }
49
+ ke[i] = X.e;
50
+ const previous = v[j];
51
+ if (!Object.is(previous, next)) { v[j] = next; X.n?.(j, previous, next); }
52
+ return next;
53
+ };
54
+ let a = (((g(0) === "card") && (v[3] === "a")) ? 0 : (g(0) === "card") ? 1 : (v[3] === "a") ? 2 : 3);
38
55
  let element;
39
56
  if (a === 0) {
40
57
  element = document.createElement("a");
@@ -210,58 +227,70 @@ export function createUiButton(options = {}, html) {
210
227
  const t3 = t0.nextSibling.nextSibling;
211
228
  const t4 = t3.firstChild;
212
229
  const t5 = t3.nextSibling.nextSibling.firstChild;
213
- const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: 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 };
230
+ const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: 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 };
214
231
  r.z = [() => dispose(r.b1)];
215
232
  p0(r, -1, d);
216
233
  return r;
217
234
  };
218
235
  const p0 = (r, c, d) => {
219
- if (c & 1073741884) {
220
- const x0 = readIndex({ "true": null, "false": v[3] }, textCall("concat", [((truthy(v[2]) || truthy(v[4])) || truthy(v[5]))]));
221
- if (x0 !== NONCONFORMING) {
222
- const s0 = toAttribute(x0, "href");
223
- if (s0 !== r.v0) writeUrlAttribute(r.n, "href", r.v0 = s0);
236
+ if (c & 1073807616) {
237
+ 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 & 1073824000) {
242
+ 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);
224
246
  }
225
247
  }
226
- if (c & 1024) {
227
- const x1 = v[10];
228
- const s1 = toAttribute(x1, "target");
229
- if (s1 !== r.v1) writeAttribute(r.n, "target", r.v1 = s1);
230
- }
231
- if (c & 64) {
232
- const x2 = v[6];
233
- const s2 = toAttribute(x2, "rel");
234
- if (s2 !== r.v2) writeAttribute(r.n, "rel", r.v2 = s2);
235
- }
236
- if (c & 1073741876) {
237
- const x3 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[2]) || truthy(v[4])) || truthy(v[5]))]));
238
- if (x3 !== NONCONFORMING) {
239
- const s3 = toAttribute(x3, "aria-disabled");
240
- if (s3 !== r.v3) writeAttribute(r.n, "aria-disabled", r.v3 = s3);
248
+ if (c & 1073742064) {
249
+ const x2 = readIndex({ "true": null, "false": v[5] }, textCall("concat", [((truthy(v[4]) || truthy(v[6])) || truthy(v[7]))]));
250
+ if (x2 !== NONCONFORMING) {
251
+ const s2 = toAttribute(x2, "href");
252
+ if (s2 !== r.v2) writeUrlAttribute(r.n, "href", r.v2 = s2);
241
253
  }
242
254
  }
243
- if (c & 48) {
244
- const x4 = (truthy(v[4]) || truthy(v[5]));
245
- const s4 = toAttribute(x4, "aria-busy");
246
- if (s4 !== r.v4) writeAttribute(r.n, "aria-busy", r.v4 = s4);
255
+ if (c & 8192) {
256
+ const x3 = v[13];
257
+ const s3 = toAttribute(x3, "target");
258
+ if (s3 !== r.v3) writeAttribute(r.n, "target", r.v3 = s3);
247
259
  }
248
- if (c & 1073741876) {
249
- const x5 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[4]) || truthy(v[5])) && !truthy(v[2]))]));
260
+ if (c & 512) {
261
+ const x4 = v[9];
262
+ const s4 = toAttribute(x4, "rel");
263
+ if (s4 !== r.v4) writeAttribute(r.n, "rel", r.v4 = s4);
264
+ }
265
+ if (c & 1073742032) {
266
+ const x5 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[4]) || truthy(v[6])) || truthy(v[7]))]));
250
267
  if (x5 !== NONCONFORMING) {
251
- const s5 = toAttribute(x5, "tabindex");
252
- if (s5 !== r.v5) writeAttribute(r.n, "tabindex", r.v5 = s5);
268
+ const s5 = toAttribute(x5, "aria-disabled");
269
+ if (s5 !== r.v5) writeAttribute(r.n, "aria-disabled", r.v5 = s5);
253
270
  }
254
271
  }
255
- if (c & 11185) {
256
- const x6 = hostState(["align","stretch","size","shape","variant","tone","loading","pending"], [v[0], v[9], v[8], v[7], v[13], v[11], v[4], v[5]]);
257
- const s6 = x6;
258
- if (s6 !== r.v6) writeAttribute(r.n, "data-ui-button-state", (r.v6 = s6) === "" ? null : s6);
272
+ if (c & 192) {
273
+ const x6 = (truthy(v[6]) || truthy(v[7]));
274
+ const s6 = toAttribute(x6, "aria-busy");
275
+ if (s6 !== r.v6) writeAttribute(r.n, "aria-busy", r.v6 = s6);
276
+ }
277
+ if (c & 1073742032) {
278
+ const x7 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[6]) || truthy(v[7])) && !truthy(v[4]))]));
279
+ if (x7 !== NONCONFORMING) {
280
+ const s7 = toAttribute(x7, "tabindex");
281
+ if (s7 !== r.v7) writeAttribute(r.n, "tabindex", r.v7 = s7);
282
+ }
283
+ }
284
+ if (c & 7364) {
285
+ const x8 = hostState(["align","stretch","size","shape","loading","pending"], [v[2], v[12], v[11], v[10], v[6], v[7]]);
286
+ const s8 = x8;
287
+ if (s8 !== r.v8) writeAttribute(r.n, "data-ui-button-state", (r.v8 = s8) === "" ? null : s8);
259
288
  }
260
- if (c & 48 && !((truthy(v[4]) || truthy(v[5]))) !== !r.b0) {
289
+ if (c & 192 && !((truthy(v[6]) || truthy(v[7]))) !== !r.b0) {
261
290
  if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
262
291
  else { r.b0 = m1(d); r.e0.before(r.b0.n); }
263
292
  } else if (r.b0 !== undefined) p1(r.b0, c, d);
264
- if (c & 48 && !(!(truthy(v[4]) || truthy(v[5]))) !== !r.b1) {
293
+ if (c & 192 && !(!(truthy(v[6]) || truthy(v[7]))) !== !r.b1) {
265
294
  if (r.b1) { dispose(r.b1); r.b1 = undefined; clearRegion(r.a2, r.e1); }
266
295
  else { r.b1 = m2(d); r.e1.before(r.b1.n); }
267
296
  } else if (r.b1 !== undefined) p2(r.b1, c, d);
@@ -280,44 +309,56 @@ export function createUiButton(options = {}, html) {
280
309
  const t3 = t0.nextSibling.nextSibling;
281
310
  const t4 = t3.firstChild;
282
311
  const t5 = t3.nextSibling.nextSibling.firstChild;
283
- const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: 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 };
312
+ const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: 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 };
284
313
  r.z = [() => dispose(r.b1)];
285
314
  p6(r, -1, d);
286
315
  return r;
287
316
  };
288
317
  const p6 = (r, c, d) => {
289
- if (c & 1073745920) {
290
- const x0 = v[12];
291
- const s0 = toAttribute(x0, "type");
292
- if (s0 !== r.v0) writeAttribute(r.n, "type", r.v0 = s0);
293
- }
294
- if (c & 4) {
295
- const x1 = v[2];
296
- const s1 = toAttribute(x1, "disabled");
297
- if (s1 !== r.v1) writeAttribute(r.n, "disabled", r.v1 = s1);
298
- }
299
- if (c & 1073741872) {
300
- const x2 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[4]) || truthy(v[5]))]));
301
- if (x2 !== NONCONFORMING) {
302
- const s2 = toAttribute(x2, "aria-disabled");
303
- if (s2 !== r.v2) writeAttribute(r.n, "aria-disabled", r.v2 = s2);
318
+ if (c & 1073807616) {
319
+ const x0 = g(0);
320
+ const s0 = toAttribute(x0, "data-appearance");
321
+ if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
322
+ }
323
+ if (c & 1073824000) {
324
+ const x1 = g(1);
325
+ if (x1 !== NONCONFORMING) {
326
+ const s1 = toAttribute(x1, "data-tone");
327
+ if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
304
328
  }
305
329
  }
306
- if (c & 48) {
307
- const x3 = (truthy(v[4]) || truthy(v[5]));
308
- const s3 = toAttribute(x3, "aria-busy");
309
- if (s3 !== r.v3) writeAttribute(r.n, "aria-busy", r.v3 = s3);
330
+ if (c & 1073774592) {
331
+ const x2 = v[15];
332
+ const s2 = toAttribute(x2, "type");
333
+ if (s2 !== r.v2) writeAttribute(r.n, "type", r.v2 = s2);
310
334
  }
311
- if (c & 11185) {
312
- const x4 = hostState(["align","stretch","size","shape","variant","tone","loading","pending"], [v[0], v[9], v[8], v[7], v[13], v[11], v[4], v[5]]);
313
- const s4 = x4;
314
- if (s4 !== r.v4) writeAttribute(r.n, "data-ui-button-state", (r.v4 = s4) === "" ? null : s4);
335
+ if (c & 16) {
336
+ const x3 = v[4];
337
+ const s3 = toAttribute(x3, "disabled");
338
+ if (s3 !== r.v3) writeAttribute(r.n, "disabled", r.v3 = s3);
339
+ }
340
+ if (c & 1073742016) {
341
+ const x4 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[6]) || truthy(v[7]))]));
342
+ if (x4 !== NONCONFORMING) {
343
+ const s4 = toAttribute(x4, "aria-disabled");
344
+ if (s4 !== r.v4) writeAttribute(r.n, "aria-disabled", r.v4 = s4);
345
+ }
346
+ }
347
+ if (c & 192) {
348
+ const x5 = (truthy(v[6]) || truthy(v[7]));
349
+ const s5 = toAttribute(x5, "aria-busy");
350
+ if (s5 !== r.v5) writeAttribute(r.n, "aria-busy", r.v5 = s5);
351
+ }
352
+ if (c & 7364) {
353
+ const x6 = hostState(["align","stretch","size","shape","loading","pending"], [v[2], v[12], v[11], v[10], v[6], v[7]]);
354
+ const s6 = x6;
355
+ if (s6 !== r.v6) writeAttribute(r.n, "data-ui-button-state", (r.v6 = s6) === "" ? null : s6);
315
356
  }
316
- if (c & 48 && !((truthy(v[4]) || truthy(v[5]))) !== !r.b0) {
357
+ if (c & 192 && !((truthy(v[6]) || truthy(v[7]))) !== !r.b0) {
317
358
  if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
318
359
  else { r.b0 = m7(d); r.e0.before(r.b0.n); }
319
360
  } else if (r.b0 !== undefined) p7(r.b0, c, d);
320
- if (c & 48 && !(!(truthy(v[4]) || truthy(v[5]))) !== !r.b1) {
361
+ if (c & 192 && !(!(truthy(v[6]) || truthy(v[7]))) !== !r.b1) {
321
362
  if (r.b1) { dispose(r.b1); r.b1 = undefined; clearRegion(r.a2, r.e1); }
322
363
  else { r.b1 = m8(d); r.e1.before(r.b1.n); }
323
364
  } else if (r.b1 !== undefined) p8(r.b1, c, d);
@@ -333,53 +374,65 @@ export function createUiButton(options = {}, html) {
333
374
  const t0 = n.firstChild.nextSibling;
334
375
  const t1 = t0.nextSibling.nextSibling.nextSibling;
335
376
  const t2 = t1.nextSibling.nextSibling.nextSibling.firstChild;
336
- const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t1, e1: t1.nextSibling, b1: undefined, f1: undefined, a3: t2, e2: t2.nextSibling, b2: undefined, f2: undefined };
377
+ const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t1, e1: t1.nextSibling, b1: undefined, f1: undefined, a3: t2, e2: t2.nextSibling, b2: undefined, f2: undefined };
337
378
  p12(r, -1, d);
338
379
  return r;
339
380
  };
340
381
  const p12 = (r, c, d) => {
341
- if (c & 1073741884) {
342
- const x0 = readIndex({ "true": null, "false": v[3] }, textCall("concat", [((truthy(v[2]) || truthy(v[4])) || truthy(v[5]))]));
343
- if (x0 !== NONCONFORMING) {
344
- const s0 = toAttribute(x0, "href");
345
- if (s0 !== r.v0) writeUrlAttribute(r.n, "href", r.v0 = s0);
382
+ if (c & 1073807616) {
383
+ const x0 = g(0);
384
+ const s0 = toAttribute(x0, "data-appearance");
385
+ if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
386
+ }
387
+ if (c & 1073824000) {
388
+ const x1 = g(1);
389
+ if (x1 !== NONCONFORMING) {
390
+ const s1 = toAttribute(x1, "data-tone");
391
+ if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
346
392
  }
347
393
  }
348
- if (c & 1024) {
349
- const x1 = v[10];
350
- const s1 = toAttribute(x1, "target");
351
- if (s1 !== r.v1) writeAttribute(r.n, "target", r.v1 = s1);
352
- }
353
- if (c & 64) {
354
- const x2 = v[6];
355
- const s2 = toAttribute(x2, "rel");
356
- if (s2 !== r.v2) writeAttribute(r.n, "rel", r.v2 = s2);
357
- }
358
- if (c & 1073741876) {
359
- const x3 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[2]) || truthy(v[4])) || truthy(v[5]))]));
360
- if (x3 !== NONCONFORMING) {
361
- const s3 = toAttribute(x3, "aria-disabled");
362
- if (s3 !== r.v3) writeAttribute(r.n, "aria-disabled", r.v3 = s3);
394
+ if (c & 1073742064) {
395
+ const x2 = readIndex({ "true": null, "false": v[5] }, textCall("concat", [((truthy(v[4]) || truthy(v[6])) || truthy(v[7]))]));
396
+ if (x2 !== NONCONFORMING) {
397
+ const s2 = toAttribute(x2, "href");
398
+ if (s2 !== r.v2) writeUrlAttribute(r.n, "href", r.v2 = s2);
363
399
  }
364
400
  }
365
- if (c & 48) {
366
- const x4 = (truthy(v[4]) || truthy(v[5]));
367
- const s4 = toAttribute(x4, "aria-busy");
368
- if (s4 !== r.v4) writeAttribute(r.n, "aria-busy", r.v4 = s4);
401
+ if (c & 8192) {
402
+ const x3 = v[13];
403
+ const s3 = toAttribute(x3, "target");
404
+ if (s3 !== r.v3) writeAttribute(r.n, "target", r.v3 = s3);
369
405
  }
370
- if (c & 1073741876) {
371
- const x5 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[4]) || truthy(v[5])) && !truthy(v[2]))]));
406
+ if (c & 512) {
407
+ const x4 = v[9];
408
+ const s4 = toAttribute(x4, "rel");
409
+ if (s4 !== r.v4) writeAttribute(r.n, "rel", r.v4 = s4);
410
+ }
411
+ if (c & 1073742032) {
412
+ const x5 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[4]) || truthy(v[6])) || truthy(v[7]))]));
372
413
  if (x5 !== NONCONFORMING) {
373
- const s5 = toAttribute(x5, "tabindex");
374
- if (s5 !== r.v5) writeAttribute(r.n, "tabindex", r.v5 = s5);
414
+ const s5 = toAttribute(x5, "aria-disabled");
415
+ if (s5 !== r.v5) writeAttribute(r.n, "aria-disabled", r.v5 = s5);
375
416
  }
376
417
  }
377
- if (c & 11185) {
378
- const x6 = hostState(["align","stretch","size","shape","variant","tone","loading","pending"], [v[0], v[9], v[8], v[7], v[13], v[11], v[4], v[5]]);
379
- const s6 = x6;
380
- if (s6 !== r.v6) writeAttribute(r.n, "data-ui-button-state", (r.v6 = s6) === "" ? null : s6);
418
+ if (c & 192) {
419
+ const x6 = (truthy(v[6]) || truthy(v[7]));
420
+ const s6 = toAttribute(x6, "aria-busy");
421
+ if (s6 !== r.v6) writeAttribute(r.n, "aria-busy", r.v6 = s6);
422
+ }
423
+ if (c & 1073742032) {
424
+ const x7 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[6]) || truthy(v[7])) && !truthy(v[4]))]));
425
+ if (x7 !== NONCONFORMING) {
426
+ const s7 = toAttribute(x7, "tabindex");
427
+ if (s7 !== r.v7) writeAttribute(r.n, "tabindex", r.v7 = s7);
428
+ }
429
+ }
430
+ if (c & 7364) {
431
+ const x8 = hostState(["align","stretch","size","shape","loading","pending"], [v[2], v[12], v[11], v[10], v[6], v[7]]);
432
+ const s8 = x8;
433
+ if (s8 !== r.v8) writeAttribute(r.n, "data-ui-button-state", (r.v8 = s8) === "" ? null : s8);
381
434
  }
382
- if (c & 48 && !((truthy(v[4]) || truthy(v[5]))) !== !r.b0) {
435
+ if (c & 192 && !((truthy(v[6]) || truthy(v[7]))) !== !r.b0) {
383
436
  if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
384
437
  else { r.b0 = m13(d); r.e0.before(r.b0.n); }
385
438
  } else if (r.b0 !== undefined) p13(r.b0, c, d);
@@ -395,39 +448,51 @@ export function createUiButton(options = {}, html) {
395
448
  const t0 = n.firstChild.nextSibling;
396
449
  const t1 = t0.nextSibling.nextSibling.nextSibling;
397
450
  const t2 = t1.nextSibling.nextSibling.nextSibling.firstChild;
398
- const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t1, e1: t1.nextSibling, b1: undefined, f1: undefined, a3: t2, e2: t2.nextSibling, b2: undefined, f2: undefined };
451
+ const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t1, e1: t1.nextSibling, b1: undefined, f1: undefined, a3: t2, e2: t2.nextSibling, b2: undefined, f2: undefined };
399
452
  p16(r, -1, d);
400
453
  return r;
401
454
  };
402
455
  const p16 = (r, c, d) => {
403
- if (c & 1073745920) {
404
- const x0 = v[12];
405
- const s0 = toAttribute(x0, "type");
406
- if (s0 !== r.v0) writeAttribute(r.n, "type", r.v0 = s0);
407
- }
408
- if (c & 4) {
409
- const x1 = v[2];
410
- const s1 = toAttribute(x1, "disabled");
411
- if (s1 !== r.v1) writeAttribute(r.n, "disabled", r.v1 = s1);
412
- }
413
- if (c & 1073741872) {
414
- const x2 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[4]) || truthy(v[5]))]));
415
- if (x2 !== NONCONFORMING) {
416
- const s2 = toAttribute(x2, "aria-disabled");
417
- if (s2 !== r.v2) writeAttribute(r.n, "aria-disabled", r.v2 = s2);
456
+ if (c & 1073807616) {
457
+ const x0 = g(0);
458
+ const s0 = toAttribute(x0, "data-appearance");
459
+ if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
460
+ }
461
+ if (c & 1073824000) {
462
+ const x1 = g(1);
463
+ if (x1 !== NONCONFORMING) {
464
+ const s1 = toAttribute(x1, "data-tone");
465
+ if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
418
466
  }
419
467
  }
420
- if (c & 48) {
421
- const x3 = (truthy(v[4]) || truthy(v[5]));
422
- const s3 = toAttribute(x3, "aria-busy");
423
- if (s3 !== r.v3) writeAttribute(r.n, "aria-busy", r.v3 = s3);
468
+ if (c & 1073774592) {
469
+ const x2 = v[15];
470
+ const s2 = toAttribute(x2, "type");
471
+ if (s2 !== r.v2) writeAttribute(r.n, "type", r.v2 = s2);
424
472
  }
425
- if (c & 11185) {
426
- const x4 = hostState(["align","stretch","size","shape","variant","tone","loading","pending"], [v[0], v[9], v[8], v[7], v[13], v[11], v[4], v[5]]);
427
- const s4 = x4;
428
- if (s4 !== r.v4) writeAttribute(r.n, "data-ui-button-state", (r.v4 = s4) === "" ? null : s4);
473
+ if (c & 16) {
474
+ const x3 = v[4];
475
+ const s3 = toAttribute(x3, "disabled");
476
+ if (s3 !== r.v3) writeAttribute(r.n, "disabled", r.v3 = s3);
477
+ }
478
+ if (c & 1073742016) {
479
+ const x4 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[6]) || truthy(v[7]))]));
480
+ if (x4 !== NONCONFORMING) {
481
+ const s4 = toAttribute(x4, "aria-disabled");
482
+ if (s4 !== r.v4) writeAttribute(r.n, "aria-disabled", r.v4 = s4);
483
+ }
484
+ }
485
+ if (c & 192) {
486
+ const x5 = (truthy(v[6]) || truthy(v[7]));
487
+ const s5 = toAttribute(x5, "aria-busy");
488
+ if (s5 !== r.v5) writeAttribute(r.n, "aria-busy", r.v5 = s5);
489
+ }
490
+ if (c & 7364) {
491
+ const x6 = hostState(["align","stretch","size","shape","loading","pending"], [v[2], v[12], v[11], v[10], v[6], v[7]]);
492
+ const s6 = x6;
493
+ if (s6 !== r.v6) writeAttribute(r.n, "data-ui-button-state", (r.v6 = s6) === "" ? null : s6);
429
494
  }
430
- if (c & 48 && !((truthy(v[4]) || truthy(v[5]))) !== !r.b0) {
495
+ if (c & 192 && !((truthy(v[6]) || truthy(v[7]))) !== !r.b0) {
431
496
  if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
432
497
  else { r.b0 = m17(d); r.e0.before(r.b0.n); }
433
498
  } else if (r.b0 !== undefined) p17(r.b0, c, d);
@@ -443,8 +508,8 @@ export function createUiButton(options = {}, html) {
443
508
  const p = (c, d) => {
444
509
  if (R === null) return;
445
510
  if (R === undefined) { R = M[a](element, d); return; }
446
- if (c & 8194) {
447
- const t = (((v[13] === "card") && (v[1] === "a")) ? 0 : (v[13] === "card") ? 1 : (v[1] === "a") ? 2 : 3);
511
+ if (c & 1073807624) {
512
+ const t = (((g(0) === "card") && (v[3] === "a")) ? 0 : (g(0) === "card") ? 1 : (v[3] === "a") ? 2 : 3);
448
513
  if (t !== a) {
449
514
  dispose(R);
450
515
  for (const key in I.r) delete I.r[key];
@@ -461,8 +526,8 @@ export function createUiButton(options = {}, html) {
461
526
  };
462
527
  const I = { B };
463
528
  const J = project(I, children, slots);
464
- attachGeneratedController(element, S, v, p, undefined, undefined, I);
529
+ attachGeneratedController(element, S, v, p, undefined, X, I);
465
530
  manageProps(I);
466
531
  return element;
467
532
  }
468
- defineComponent("ui-button", createUiButton, ["align","as","disabled","href","loading","pending","rel","shape","size","stretch","target","tone","type","variant"]);
533
+ defineComponent("ui-button", createUiButton, ["align","as","disabled","href","loading","pending","preset","rel","shape","size","stretch","target","tone","type","variant"]);
@@ -14,7 +14,7 @@ export interface UiCardProps {
14
14
  padding?: "xs" | "sm" | "md" | "lg" | null;
15
15
  size?: "content" | "sm" | "md" | "lg" | null;
16
16
  tone?: "neutral" | "accent" | "info" | "success" | "warning" | "danger" | null;
17
- variant?: "outlined" | "subtle" | "elevated" | null;
17
+ variant?: "outlined" | "subtle" | "elevated" | "glass" | null;
18
18
  attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
19
19
  children?: readonly (string | Node)[];
20
20
  slots?: Readonly<Record<string, readonly (string | Node)[]>>;
package/vanilla/UiCard.js CHANGED
@@ -14,7 +14,7 @@ let P0, P1, P2, P3, P4, P5, P6, P7;
14
14
  const S = { n: [], t: [], f: import.meta.url, g: "ui-card", b: generatedInputs };
15
15
  const A = [["section",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-variant"]],["article",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-variant"]],["aside",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-variant"]],["div",{},[],"",[],["data-ui-card-state","data-ui-card-prop-as","data-ui-card-prop-padding","data-ui-card-prop-size","data-ui-card-prop-tone","data-ui-card-prop-variant"]]];
16
16
  const Q = [[],[],[],[]];
17
- const D = { g: "ui-card", props: { "as": { "required":false,"values":["div","section","article","aside"],"default":"div", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "padding": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["content","sm","md","lg"],"default":"content", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["neutral","accent","info","success","warning","danger"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["outlined","subtle","elevated"],"default":"outlined", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
17
+ const D = { g: "ui-card", props: { "as": { "required":false,"values":["div","section","article","aside"],"default":"div", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "padding": { "required":false,"values":["xs","sm","md","lg"],"default":"md", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "size": { "required":false,"values":["content","sm","md","lg"],"default":"content", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "tone": { "required":false,"values":["neutral","accent","info","success","warning","danger"],"default":"neutral", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "variant": { "required":false,"values":["outlined","subtle","elevated","glass"],"default":"outlined", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] } } };
18
18
 
19
19
  export function createUiCard(options = {}, html) {
20
20
  const { attributes = {}, children = [], slots = {}, ...componentProps } = options;
@@ -0,0 +1,28 @@
1
+ // Generated by HTML Next 1.0.0-alpha.69 for Vanilla DOM. Do not edit.
2
+ export interface UiCurveEditorEventMap {
3
+ input: CustomEvent<{ readonly value: string }>;
4
+ change: CustomEvent<{ readonly value: string }>;
5
+ }
6
+ export interface UiCurveEditorElement extends HTMLSpanElement {
7
+ addEventListener<K extends keyof UiCurveEditorEventMap>(type: K, listener: (this: UiCurveEditorElement, event: UiCurveEditorEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
8
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiCurveEditorElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | AddEventListenerOptions): void;
9
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
10
+ removeEventListener<K extends keyof UiCurveEditorEventMap>(type: K, listener: (this: UiCurveEditorElement, event: UiCurveEditorEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
11
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: UiCurveEditorElement, event: HTMLElementEventMap[K]) => unknown, options?: boolean | EventListenerOptions): void;
12
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
13
+ }
14
+ export interface UiCurveEditorProps {
15
+ disabled?: boolean | null;
16
+ label?: string | null;
17
+ size?: "sm" | "md" | "lg" | null;
18
+ value?: string | null;
19
+ attributes?: Readonly<Record<string, string | number | boolean | null | undefined>>;
20
+ children?: readonly (string | Node)[];
21
+ slots?: Readonly<Record<string, readonly (string | Node)[]>>;
22
+ }
23
+ export declare function createUiCurveEditor(props?: UiCurveEditorProps): UiCurveEditorElement;
24
+ declare global {
25
+ interface ComponentTagMap {
26
+ "ui-curve-editor": { element: UiCurveEditorElement; props: Omit<UiCurveEditorProps, "attributes" | "children" | "slots"> };
27
+ }
28
+ }