@threadlabs/looma 0.33.1 → 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.
- package/components/shared/overlay.js +8 -2
- package/components/shared/surface-material.js +21 -0
- package/components/ui-button/ui-button.html +63 -47
- package/components/ui-card/ui-card.html +44 -2
- package/components/ui-curve-editor/curve.js +10 -0
- package/components/ui-curve-editor/ui-curve-editor.html +181 -0
- package/components/ui-curve-editor/ui-curve-editor.js +51 -0
- package/components/ui-dialog/ui-dialog.html +62 -1
- package/components/ui-dialog/ui-dialog.js +9 -1
- package/components/ui-icon-button/ui-icon-button.html +75 -23
- package/components/ui-menu/ui-menu.html +60 -0
- package/components/ui-menu/ui-menu.js +1 -1
- package/components/ui-number-input/arithmetic.js +47 -0
- package/components/ui-number-input/ui-number-input.html +62 -0
- package/components/ui-number-input/ui-number-input.js +44 -0
- package/components/ui-popover/ui-popover.html +64 -1
- package/components/ui-popover/ui-popover.js +1 -1
- package/components/ui-slider/ui-slider.html +84 -0
- package/components/ui-slider/ui-slider.js +29 -0
- package/components/ui-tabs/ui-tabs.html +6 -1
- package/components/ui-text/ui-text.html +31 -6
- package/components/ui-tooltip/ui-tooltip.html +60 -0
- package/components/ui-tooltip/ui-tooltip.js +1 -1
- package/dist/index.js +46 -43
- package/docs/README.md +34 -4
- package/docs/card.html +16 -2
- package/docs/card.js +17 -2
- package/docs/catalog.json +1154 -144
- package/docs/customizer-render.mjs +35 -9
- package/docs/customizer.js +83 -20
- package/docs/documentation.css +9 -1
- package/docs/index.d.ts +4 -2
- package/docs/index.mjs +1 -1
- package/docs/preview.js +2 -0
- package/docs/render.mjs +15 -6
- package/docs/site.mjs +50 -9
- package/docs/theme-session.mjs +51 -0
- package/docs/theme.mjs +134 -15
- package/docs/value-editors.mjs +33 -0
- package/package.json +2 -2
- package/styles/ui-button.css +45 -45
- package/styles/ui-card.css +47 -0
- package/styles/ui-curve-editor.css +109 -0
- package/styles/ui-dialog.css +132 -0
- package/styles/ui-icon-button.css +63 -20
- package/styles/ui-menu.css +72 -0
- package/styles/ui-number-input.css +34 -0
- package/styles/ui-popover.css +74 -0
- package/styles/ui-slider.css +53 -0
- package/styles/ui-tabs.css +6 -1
- package/styles/ui-text.css +23 -1
- package/styles/ui-tooltip.css +72 -0
- package/theme-system.css +26 -10
- package/tokens.css +8 -2
- package/vanilla/UiButton.d.ts +1 -0
- package/vanilla/UiButton.js +195 -130
- package/vanilla/UiCard.d.ts +1 -1
- package/vanilla/UiCard.js +1 -1
- package/vanilla/UiCurveEditor.d.ts +28 -0
- package/vanilla/UiCurveEditor.js +134 -0
- package/vanilla/UiIconButton.d.ts +2 -1
- package/vanilla/UiIconButton.js +58 -31
- package/vanilla/UiNumberInput.d.ts +33 -0
- package/vanilla/UiNumberInput.js +79 -0
- package/vanilla/UiSlider.d.ts +33 -0
- package/vanilla/UiSlider.js +125 -0
- package/vanilla/UiText.d.ts +2 -2
- package/vanilla/UiText.js +45 -11
- package/vanilla/index.js +3 -0
- package/vue/UiButton.d.ts +6 -0
- package/vue/UiButton.vue +155 -56
- package/vue/UiCard.d.ts +2 -2
- package/vue/UiCard.vue +55 -5
- package/vue/UiCurveEditor.d.ts +53 -0
- package/vue/UiCurveEditor.js +2 -0
- package/vue/UiCurveEditor.vue +427 -0
- package/vue/UiDialog.vue +177 -1
- package/vue/UiIconButton.d.ts +8 -2
- package/vue/UiIconButton.vue +164 -34
- package/vue/UiMenu.vue +89 -0
- package/vue/UiNumberInput.d.ts +83 -0
- package/vue/UiNumberInput.js +2 -0
- package/vue/UiNumberInput.vue +370 -0
- package/vue/UiPopover.vue +92 -1
- package/vue/UiSlider.d.ts +83 -0
- package/vue/UiSlider.js +2 -0
- package/vue/UiSlider.vue +412 -0
- package/vue/UiTabs.vue +6 -1
- package/vue/UiText.d.ts +7 -5
- package/vue/UiText.vue +104 -22
- package/vue/UiTooltip.vue +89 -0
- package/vue/chunks/UiActionBar.js +1 -1
- package/vue/chunks/UiAffordanceScope.js +2 -2
- package/vue/chunks/UiAvatar.js +2 -2
- package/vue/chunks/UiAvatarGroup.js +2 -2
- package/vue/chunks/UiBadge.js +2 -2
- package/vue/chunks/UiBreadcrumbItem.js +2 -2
- package/vue/chunks/UiBreadcrumbs.js +2 -2
- package/vue/chunks/UiButton.js +94 -11
- package/vue/chunks/UiCallout.js +2 -2
- package/vue/chunks/UiCard.js +6 -5
- package/vue/chunks/UiCheckbox.js +2 -2
- package/vue/chunks/UiCluster.js +2 -2
- package/vue/chunks/UiColorPicker.js +2 -2
- package/vue/chunks/UiCombobox.js +2 -2
- package/vue/chunks/UiContainer.js +2 -2
- package/vue/chunks/UiContextMenu.js +2 -2
- package/vue/chunks/UiCover.js +2 -2
- package/vue/chunks/UiCurveEditor.js +413 -0
- package/vue/chunks/UiDescriptionItem.js +2 -2
- package/vue/chunks/UiDescriptionList.js +2 -2
- package/vue/chunks/UiDialog.js +4 -4
- package/vue/chunks/UiDisclosure.js +2 -2
- package/vue/chunks/UiEditable.js +2 -2
- package/vue/chunks/UiEditorBlockActions.js +2 -2
- package/vue/chunks/UiEditorChipEditor.js +2 -2
- package/vue/chunks/UiEditorCodeLanguage.js +2 -2
- package/vue/chunks/UiEditorFootnoteEditor.js +2 -2
- package/vue/chunks/UiEditorImageToolbar.js +3 -3
- package/vue/chunks/UiEditorInsertTableGrid.js +2 -2
- package/vue/chunks/UiEditorLinkCard.js +3 -3
- package/vue/chunks/UiEditorLinkForm.js +3 -3
- package/vue/chunks/UiEditorMentionMenu.js +2 -2
- package/vue/chunks/UiEditorMentionMenuItem.js +2 -2
- package/vue/chunks/UiEditorSlashMenu.js +2 -2
- package/vue/chunks/UiEditorSlashMenuGroup.js +2 -2
- package/vue/chunks/UiEditorSlashMenuItem.js +2 -2
- package/vue/chunks/UiEditorSurface.js +2 -2
- package/vue/chunks/UiEditorTableContextMenu.js +2 -2
- package/vue/chunks/UiEditorTableOverlay.js +2 -2
- package/vue/chunks/UiEditorTableToolbar.js +2 -2
- package/vue/chunks/UiEditorToolbar.js +2 -2
- package/vue/chunks/UiFloatingActionButton.js +2 -2
- package/vue/chunks/UiFormField.js +2 -2
- package/vue/chunks/UiGrid.js +2 -2
- package/vue/chunks/UiIcon.js +2 -2
- package/vue/chunks/UiIconButton.js +77 -11
- package/vue/chunks/UiImage.js +2 -2
- package/vue/chunks/UiInput.js +2 -2
- package/vue/chunks/UiInputGroup.js +2 -2
- package/vue/chunks/UiList.js +2 -2
- package/vue/chunks/UiListItem.js +2 -2
- package/vue/chunks/UiListbox.js +2 -2
- package/vue/chunks/UiMenu.js +3 -3
- package/vue/chunks/UiMenuGroup.js +2 -2
- package/vue/chunks/UiMenuItem.js +2 -2
- package/vue/chunks/UiMeter.js +2 -2
- package/vue/chunks/UiNavItem.js +2 -2
- package/vue/chunks/UiNumberInput.js +390 -0
- package/vue/chunks/UiPageHeader.js +2 -2
- package/vue/chunks/UiPopover.js +4 -4
- package/vue/chunks/UiRadio.js +2 -2
- package/vue/chunks/UiRadioGroup.js +2 -2
- package/vue/chunks/UiReel.js +2 -2
- package/vue/chunks/UiScrollArea.js +2 -2
- package/vue/chunks/UiSearchResultRow.js +2 -2
- package/vue/chunks/UiSearchShell.js +2 -2
- package/vue/chunks/UiSection.js +2 -2
- package/vue/chunks/UiSelect.js +2 -2
- package/vue/chunks/UiSeparator.js +2 -2
- package/vue/chunks/UiSidebar.js +2 -2
- package/vue/chunks/UiSlider.js +396 -0
- package/vue/chunks/UiSpinner.js +2 -2
- package/vue/chunks/UiStack.js +2 -2
- package/vue/chunks/UiStatusMessage.js +2 -2
- package/vue/chunks/UiSwatch.js +2 -2
- package/vue/chunks/UiSwitch.js +2 -2
- package/vue/chunks/UiSwitcher.js +2 -2
- package/vue/chunks/UiTable.js +2 -2
- package/vue/chunks/UiTabs.js +3 -3
- package/vue/chunks/UiText.js +53 -12
- package/vue/chunks/UiTextarea.js +2 -2
- package/vue/chunks/UiToast.js +2 -2
- package/vue/chunks/UiToastRegion.js +2 -2
- package/vue/chunks/UiTooltip.js +3 -3
- package/vue/chunks/UiTopBar.js +1 -1
- package/vue/chunks/UiTree.js +2 -2
- package/vue/chunks/UiTreeItem.js +2 -2
- package/vue/chunks/_plugin-vue_export-helper.js +68 -2
- package/vue/chunks/props.js +24 -1
- package/vue/components.css +2215 -1203
- package/vue/editor/index.js +623 -211
- package/vue/index.d.ts +3 -0
- package/vue/index.js +5 -2
package/vanilla/UiButton.js
CHANGED
|
@@ -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
|
-
|
|
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 &
|
|
220
|
-
const x0 =
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
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 &
|
|
227
|
-
const
|
|
228
|
-
|
|
229
|
-
|
|
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 &
|
|
244
|
-
const
|
|
245
|
-
const
|
|
246
|
-
if (
|
|
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 &
|
|
249
|
-
const
|
|
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, "
|
|
252
|
-
if (s5 !== r.v5) writeAttribute(r.n, "
|
|
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 &
|
|
256
|
-
const x6 =
|
|
257
|
-
const s6 = x6;
|
|
258
|
-
if (s6 !== r.v6) writeAttribute(r.n, "
|
|
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 &
|
|
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 &
|
|
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 &
|
|
290
|
-
const x0 =
|
|
291
|
-
const s0 = toAttribute(x0, "
|
|
292
|
-
if (s0 !== r.v0) writeAttribute(r.n, "
|
|
293
|
-
}
|
|
294
|
-
if (c &
|
|
295
|
-
const x1 =
|
|
296
|
-
|
|
297
|
-
|
|
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 &
|
|
307
|
-
const
|
|
308
|
-
const
|
|
309
|
-
if (
|
|
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 &
|
|
312
|
-
const
|
|
313
|
-
const
|
|
314
|
-
if (
|
|
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 &
|
|
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 &
|
|
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 &
|
|
342
|
-
const x0 =
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
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 &
|
|
349
|
-
const
|
|
350
|
-
|
|
351
|
-
|
|
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 &
|
|
366
|
-
const
|
|
367
|
-
const
|
|
368
|
-
if (
|
|
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 &
|
|
371
|
-
const
|
|
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, "
|
|
374
|
-
if (s5 !== r.v5) writeAttribute(r.n, "
|
|
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 &
|
|
378
|
-
const x6 =
|
|
379
|
-
const s6 = x6;
|
|
380
|
-
if (s6 !== r.v6) writeAttribute(r.n, "
|
|
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 &
|
|
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 &
|
|
404
|
-
const x0 =
|
|
405
|
-
const s0 = toAttribute(x0, "
|
|
406
|
-
if (s0 !== r.v0) writeAttribute(r.n, "
|
|
407
|
-
}
|
|
408
|
-
if (c &
|
|
409
|
-
const x1 =
|
|
410
|
-
|
|
411
|
-
|
|
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 &
|
|
421
|
-
const
|
|
422
|
-
const
|
|
423
|
-
if (
|
|
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 &
|
|
426
|
-
const
|
|
427
|
-
const
|
|
428
|
-
if (
|
|
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 &
|
|
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 &
|
|
447
|
-
const t = (((
|
|
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,
|
|
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"]);
|
package/vanilla/UiCard.d.ts
CHANGED
|
@@ -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
|
+
}
|