@threadlabs/looma 0.51.0 → 0.51.2
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/ui-button/ui-button.html +167 -12
- package/components/ui-grid/ui-grid.html +9 -3
- package/dist/index.js +1 -1
- package/docs/catalog.json +103 -5
- package/editor/components.css +153 -14
- package/editor/index.js +360 -208
- package/package.json +1 -1
- package/styles/ui-button.css +153 -14
- package/styles/ui-grid.css +7 -1
- package/vanilla/UiButton.d.ts +2 -0
- package/vanilla/UiButton.js +206 -150
package/vanilla/UiButton.js
CHANGED
|
@@ -24,21 +24,21 @@ 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: ["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-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-selected","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","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","data-selected","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","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-selected","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","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","data-selected","type","disabled","aria-disabled","aria-busy"]],["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","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-selected","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","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","data-selected","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","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-selected","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","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","data-selected","type","disabled","aria-disabled","aria-busy"]]];
|
|
27
|
+
const S = { n: ["appearance","colorTone","interactionAppearance"], 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-disabled","data-ui-button-prop-href","data-ui-button-prop-interaction-tone","data-ui-button-prop-interaction-variant","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-selected","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","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","data-interaction-tone","data-interaction-appearance","data-selected","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-interaction-tone","data-ui-button-prop-interaction-variant","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-selected","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","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","data-interaction-tone","data-interaction-appearance","data-selected","type","disabled","aria-disabled","aria-busy"]],["a",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-interaction-tone","data-ui-button-prop-interaction-variant","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-selected","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","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","data-interaction-tone","data-interaction-appearance","data-selected","href","target","rel","aria-disabled","aria-busy","tabindex"]],["button",{},[],"",[],["data-ui-button-state","data-ui-button-prop-align","data-ui-button-prop-disabled","data-ui-button-prop-href","data-ui-button-prop-interaction-tone","data-ui-button-prop-interaction-variant","data-ui-button-prop-loading","data-ui-button-prop-pending","data-ui-button-prop-preset","data-ui-button-prop-rel","data-ui-button-prop-selected","data-ui-button-prop-shape","data-ui-button-prop-size","data-ui-button-prop-square","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","data-interaction-tone","data-interaction-appearance","data-selected","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)] }, "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" }, "selected": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "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)] }, "square": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "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","accent-secondary","accent-tertiary","neutral","danger","success","warning","info"],"default":"neutral", 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)] }, "disabled": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "href": { "required":false, c: checkString, t: "string", j: 0, m: "s" }, "interactionTone": { "required":false,"values":["inherit","accent","accent-secondary","accent-tertiary","neutral","danger","success","warning","info"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "interactionVariant": { "required":false,"values":["inherit","outline","solid","ghost"],"default":"inherit", c: checkFormat("keyword", keywordFormat), t: "keyword", j: 0, m: ["p",formatOf(keywordFormat)] }, "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" }, "selected": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "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)] }, "square": { "required":false,"default":false, c: checkBoolean, t: "boolean", j: 0, m: "b" }, "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","accent-secondary","accent-tertiary","neutral","danger","success","warning","info"],"default":"neutral", 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 = [undefined, undefined, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null];
|
|
35
|
+
const v = [undefined, undefined, undefined, null, null, null, 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 <
|
|
38
|
+
const inputStatus = (j) => { if (j >= 0 && j < 3) { g(j); return CS[j] ?? UNRESOLVED_INPUT; } if (j === 3) return awaitInput(B, "align", true); if (j === 4) return awaitInput(B, "disabled", true); if (j === 5) return awaitInput(B, "href", true); if (j === 6) return awaitInput(B, "interactionTone", true); if (j === 7) return awaitInput(B, "interactionVariant", true); if (j === 8) return awaitInput(B, "loading", true); if (j === 9) return awaitInput(B, "pending", true); if (j === 10) return awaitInput(B, "preset", true); if (j === 11) return awaitInput(B, "rel", true); if (j === 12) return awaitInput(B, "selected", true); if (j === 13) return awaitInput(B, "shape", true); if (j === 14) return awaitInput(B, "size", true); if (j === 15) return awaitInput(B, "square", true); if (j === 16) return awaitInput(B, "stretch", true); if (j === 17) return awaitInput(B, "target", true); if (j === 18) return awaitInput(B, "tone", true); if (j === 19) return awaitInput(B, "type", true); if (j === 20) return awaitInput(B, "variant", true); return v[j] === undefined ? UNRESOLVED_INPUT : READY_INPUT; };
|
|
39
39
|
const X = { e: 0, g: (j) => g(j), w: new Set(), a: CS, i: inputStatus };
|
|
40
40
|
const ke = [];
|
|
41
|
-
const K = [() => readIndex({ "none": inputRead(v[
|
|
41
|
+
const K = [() => readIndex({ "none": inputRead(v[20], inputStatus(20)), "primary": "solid", "standard": "solid", "quiet": "ghost", "destructive": "solid" }, inputRead(v[10], inputStatus(10))), () => readIndex(recordValue(["none","primary","standard","quiet","destructive"], [readIndex({ "true": "danger", "false": inputRead(v[18], inputStatus(18)) }, textCall("concat", [(inputRead(v[20], inputStatus(20)) === "danger")])), "accent", "neutral", "neutral", "danger"]), inputRead(v[10], inputStatus(10))), () => readIndex({ "true": null, "false": readIndex({ "inherit": inputRead(g(0), inputStatus(0)), "outline": "outline", "solid": "solid", "ghost": "ghost" }, inputRead(v[7], inputStatus(7))) }, textCall("concat", [((inputRead(v[6], inputStatus(6)) === "inherit") && (inputRead(v[7], inputStatus(7)) === "inherit"))]))];
|
|
42
42
|
const g = (j) => {
|
|
43
43
|
const i = j - 0;
|
|
44
44
|
if (ke[i] === X.e) return v[j];
|
|
@@ -51,7 +51,7 @@ export function createUiButton(options = {}, html) {
|
|
|
51
51
|
if (!Object.is(previous, next)) { v[j] = next; X.n?.(j, previous, next); }
|
|
52
52
|
return next;
|
|
53
53
|
};
|
|
54
|
-
let a = (((g(0) === "card") && (v[
|
|
54
|
+
let a = (((g(0) === "card") && (v[5] !== null)) ? 0 : (g(0) === "card") ? 1 : (v[5] !== null) ? 2 : 3);
|
|
55
55
|
let element;
|
|
56
56
|
if (a === 0) {
|
|
57
57
|
element = document.createElement("a");
|
|
@@ -227,75 +227,89 @@ export function createUiButton(options = {}, html) {
|
|
|
227
227
|
const t3 = t0.nextSibling.nextSibling;
|
|
228
228
|
const t4 = t3.firstChild;
|
|
229
229
|
const t5 = t3.nextSibling.nextSibling.firstChild;
|
|
230
|
-
const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, v9: undefined, 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, v9: undefined, v10: undefined, v11: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined, f2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
|
|
231
231
|
r.z = [() => dispose(r.b1)];
|
|
232
232
|
p0(r, -1, d);
|
|
233
233
|
return r;
|
|
234
234
|
};
|
|
235
235
|
const p0 = (r, c, d) => {
|
|
236
|
-
if (c &
|
|
236
|
+
if (c & 1074791424) {
|
|
237
237
|
const x0 = g(0);
|
|
238
238
|
const s0 = toAttribute(x0, "data-appearance");
|
|
239
239
|
if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
|
|
240
240
|
}
|
|
241
|
-
if (c &
|
|
241
|
+
if (c & 1075053568) {
|
|
242
242
|
const x1 = g(1);
|
|
243
243
|
if (x1 !== NONCONFORMING) {
|
|
244
244
|
const s1 = toAttribute(x1, "data-tone");
|
|
245
245
|
if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
-
if (c &
|
|
249
|
-
const x2 = v[
|
|
250
|
-
|
|
251
|
-
|
|
248
|
+
if (c & 1073741888) {
|
|
249
|
+
const x2 = readIndex({ "true": null, "false": v[6] }, textCall("concat", [(v[6] === "inherit")]));
|
|
250
|
+
if (x2 !== NONCONFORMING) {
|
|
251
|
+
const s2 = toAttribute(x2, "data-interaction-tone");
|
|
252
|
+
if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
|
|
253
|
+
}
|
|
252
254
|
}
|
|
253
|
-
if (c &
|
|
254
|
-
const x3 =
|
|
255
|
+
if (c & 1074791616) {
|
|
256
|
+
const x3 = g(2);
|
|
255
257
|
if (x3 !== NONCONFORMING) {
|
|
256
|
-
const s3 = toAttribute(x3, "
|
|
257
|
-
if (s3 !== r.v3)
|
|
258
|
+
const s3 = toAttribute(x3, "data-interaction-appearance");
|
|
259
|
+
if (s3 !== r.v3) writeAttribute(r.n, "data-interaction-appearance", r.v3 = s3);
|
|
258
260
|
}
|
|
259
261
|
}
|
|
260
|
-
if (c &
|
|
261
|
-
const x4 = v[
|
|
262
|
-
const s4 = toAttribute(x4, "
|
|
263
|
-
if (s4 !== r.v4) writeAttribute(r.n, "
|
|
264
|
-
}
|
|
265
|
-
if (c &
|
|
266
|
-
const x5 = v[8];
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
if (c & 1073741928) {
|
|
271
|
-
const x6 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[3]) || truthy(v[5])) || truthy(v[6]))]));
|
|
272
|
-
if (x6 !== NONCONFORMING) {
|
|
273
|
-
const s6 = toAttribute(x6, "aria-disabled");
|
|
274
|
-
if (s6 !== r.v6) writeAttribute(r.n, "aria-disabled", r.v6 = s6);
|
|
262
|
+
if (c & 4096) {
|
|
263
|
+
const x4 = v[12];
|
|
264
|
+
const s4 = toAttribute(x4, "data-selected");
|
|
265
|
+
if (s4 !== r.v4) writeAttribute(r.n, "data-selected", r.v4 = s4);
|
|
266
|
+
}
|
|
267
|
+
if (c & 1073742640) {
|
|
268
|
+
const x5 = readIndex({ "true": null, "false": v[5] }, textCall("concat", [((truthy(v[4]) || truthy(v[8])) || truthy(v[9]))]));
|
|
269
|
+
if (x5 !== NONCONFORMING) {
|
|
270
|
+
const s5 = toAttribute(x5, "href");
|
|
271
|
+
if (s5 !== r.v5) writeUrlAttribute(r.n, "href", r.v5 = s5);
|
|
275
272
|
}
|
|
276
273
|
}
|
|
277
|
-
if (c &
|
|
278
|
-
const
|
|
279
|
-
const
|
|
280
|
-
if (
|
|
274
|
+
if (c & 131072) {
|
|
275
|
+
const x6 = v[17];
|
|
276
|
+
const s6 = toAttribute(x6, "target");
|
|
277
|
+
if (s6 !== r.v6) writeAttribute(r.n, "target", r.v6 = s6);
|
|
278
|
+
}
|
|
279
|
+
if (c & 2048) {
|
|
280
|
+
const x7 = v[11];
|
|
281
|
+
const s7 = toAttribute(x7, "rel");
|
|
282
|
+
if (s7 !== r.v7) writeAttribute(r.n, "rel", r.v7 = s7);
|
|
281
283
|
}
|
|
282
|
-
if (c &
|
|
283
|
-
const x8 = readIndex({ "true": "
|
|
284
|
+
if (c & 1073742608) {
|
|
285
|
+
const x8 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[4]) || truthy(v[8])) || truthy(v[9]))]));
|
|
284
286
|
if (x8 !== NONCONFORMING) {
|
|
285
|
-
const s8 = toAttribute(x8, "
|
|
286
|
-
if (s8 !== r.v8) writeAttribute(r.n, "
|
|
287
|
+
const s8 = toAttribute(x8, "aria-disabled");
|
|
288
|
+
if (s8 !== r.v8) writeAttribute(r.n, "aria-disabled", r.v8 = s8);
|
|
287
289
|
}
|
|
288
290
|
}
|
|
289
|
-
if (c &
|
|
290
|
-
const x9 =
|
|
291
|
-
const s9 = x9;
|
|
292
|
-
if (s9 !== r.v9) writeAttribute(r.n, "
|
|
291
|
+
if (c & 768) {
|
|
292
|
+
const x9 = (truthy(v[8]) || truthy(v[9]));
|
|
293
|
+
const s9 = toAttribute(x9, "aria-busy");
|
|
294
|
+
if (s9 !== r.v9) writeAttribute(r.n, "aria-busy", r.v9 = s9);
|
|
295
|
+
}
|
|
296
|
+
if (c & 1073742608) {
|
|
297
|
+
const x10 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[8]) || truthy(v[9])) && !truthy(v[4]))]));
|
|
298
|
+
if (x10 !== NONCONFORMING) {
|
|
299
|
+
const s10 = toAttribute(x10, "tabindex");
|
|
300
|
+
if (s10 !== r.v10) writeAttribute(r.n, "tabindex", r.v10 = s10);
|
|
301
|
+
}
|
|
293
302
|
}
|
|
294
|
-
if (c &
|
|
303
|
+
if (c & 123656) {
|
|
304
|
+
const x11 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[3], v[16], v[14], v[13], v[15], v[8], v[9]]);
|
|
305
|
+
const s11 = x11;
|
|
306
|
+
if (s11 !== r.v11) writeAttribute(r.n, "data-ui-button-state", (r.v11 = s11) === "" ? null : s11);
|
|
307
|
+
}
|
|
308
|
+
if (c & 768 && !((truthy(v[8]) || truthy(v[9]))) !== !r.b0) {
|
|
295
309
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
|
|
296
310
|
else { r.b0 = m1(d); r.e0.before(r.b0.n); }
|
|
297
311
|
} else if (r.b0 !== undefined) p1(r.b0, c, d);
|
|
298
|
-
if (c &
|
|
312
|
+
if (c & 768 && !(!(truthy(v[8]) || truthy(v[9]))) !== !r.b1) {
|
|
299
313
|
if (r.b1) { dispose(r.b1); r.b1 = undefined; clearRegion(r.a2, r.e1); }
|
|
300
314
|
else { r.b1 = m2(d); r.e1.before(r.b1.n); }
|
|
301
315
|
} else if (r.b1 !== undefined) p2(r.b1, c, d);
|
|
@@ -314,61 +328,75 @@ export function createUiButton(options = {}, html) {
|
|
|
314
328
|
const t3 = t0.nextSibling.nextSibling;
|
|
315
329
|
const t4 = t3.firstChild;
|
|
316
330
|
const t5 = t3.nextSibling.nextSibling.firstChild;
|
|
317
|
-
const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: 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 };
|
|
331
|
+
const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, v9: undefined, a1: t1, e0: t1.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, a3: t4, e2: t4.nextSibling, b2: undefined, f2: undefined, a4: t5, e3: t5.nextSibling, b3: undefined, f3: undefined };
|
|
318
332
|
r.z = [() => dispose(r.b1)];
|
|
319
333
|
p6(r, -1, d);
|
|
320
334
|
return r;
|
|
321
335
|
};
|
|
322
336
|
const p6 = (r, c, d) => {
|
|
323
|
-
if (c &
|
|
337
|
+
if (c & 1074791424) {
|
|
324
338
|
const x0 = g(0);
|
|
325
339
|
const s0 = toAttribute(x0, "data-appearance");
|
|
326
340
|
if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
|
|
327
341
|
}
|
|
328
|
-
if (c &
|
|
342
|
+
if (c & 1075053568) {
|
|
329
343
|
const x1 = g(1);
|
|
330
344
|
if (x1 !== NONCONFORMING) {
|
|
331
345
|
const s1 = toAttribute(x1, "data-tone");
|
|
332
346
|
if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
|
|
333
347
|
}
|
|
334
348
|
}
|
|
335
|
-
if (c &
|
|
336
|
-
const x2 = v[
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
const x3 = v[16];
|
|
342
|
-
const s3 = toAttribute(x3, "type");
|
|
343
|
-
if (s3 !== r.v3) writeAttribute(r.n, "type", r.v3 = s3);
|
|
349
|
+
if (c & 1073741888) {
|
|
350
|
+
const x2 = readIndex({ "true": null, "false": v[6] }, textCall("concat", [(v[6] === "inherit")]));
|
|
351
|
+
if (x2 !== NONCONFORMING) {
|
|
352
|
+
const s2 = toAttribute(x2, "data-interaction-tone");
|
|
353
|
+
if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
|
|
354
|
+
}
|
|
344
355
|
}
|
|
345
|
-
if (c &
|
|
346
|
-
const
|
|
347
|
-
|
|
348
|
-
|
|
356
|
+
if (c & 1074791616) {
|
|
357
|
+
const x3 = g(2);
|
|
358
|
+
if (x3 !== NONCONFORMING) {
|
|
359
|
+
const s3 = toAttribute(x3, "data-interaction-appearance");
|
|
360
|
+
if (s3 !== r.v3) writeAttribute(r.n, "data-interaction-appearance", r.v3 = s3);
|
|
361
|
+
}
|
|
349
362
|
}
|
|
350
|
-
if (c &
|
|
351
|
-
const
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
363
|
+
if (c & 4096) {
|
|
364
|
+
const x4 = v[12];
|
|
365
|
+
const s4 = toAttribute(x4, "data-selected");
|
|
366
|
+
if (s4 !== r.v4) writeAttribute(r.n, "data-selected", r.v4 = s4);
|
|
367
|
+
}
|
|
368
|
+
if (c & 1074266112) {
|
|
369
|
+
const x5 = v[19];
|
|
370
|
+
const s5 = toAttribute(x5, "type");
|
|
371
|
+
if (s5 !== r.v5) writeAttribute(r.n, "type", r.v5 = s5);
|
|
372
|
+
}
|
|
373
|
+
if (c & 16) {
|
|
374
|
+
const x6 = v[4];
|
|
375
|
+
const s6 = toAttribute(x6, "disabled");
|
|
376
|
+
if (s6 !== r.v6) writeAttribute(r.n, "disabled", r.v6 = s6);
|
|
377
|
+
}
|
|
378
|
+
if (c & 1073742592) {
|
|
379
|
+
const x7 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[8]) || truthy(v[9]))]));
|
|
380
|
+
if (x7 !== NONCONFORMING) {
|
|
381
|
+
const s7 = toAttribute(x7, "aria-disabled");
|
|
382
|
+
if (s7 !== r.v7) writeAttribute(r.n, "aria-disabled", r.v7 = s7);
|
|
355
383
|
}
|
|
356
384
|
}
|
|
357
|
-
if (c &
|
|
358
|
-
const
|
|
359
|
-
const
|
|
360
|
-
if (
|
|
385
|
+
if (c & 768) {
|
|
386
|
+
const x8 = (truthy(v[8]) || truthy(v[9]));
|
|
387
|
+
const s8 = toAttribute(x8, "aria-busy");
|
|
388
|
+
if (s8 !== r.v8) writeAttribute(r.n, "aria-busy", r.v8 = s8);
|
|
361
389
|
}
|
|
362
|
-
if (c &
|
|
363
|
-
const
|
|
364
|
-
const
|
|
365
|
-
if (
|
|
390
|
+
if (c & 123656) {
|
|
391
|
+
const x9 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[3], v[16], v[14], v[13], v[15], v[8], v[9]]);
|
|
392
|
+
const s9 = x9;
|
|
393
|
+
if (s9 !== r.v9) writeAttribute(r.n, "data-ui-button-state", (r.v9 = s9) === "" ? null : s9);
|
|
366
394
|
}
|
|
367
|
-
if (c &
|
|
395
|
+
if (c & 768 && !((truthy(v[8]) || truthy(v[9]))) !== !r.b0) {
|
|
368
396
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
|
|
369
397
|
else { r.b0 = m7(d); r.e0.before(r.b0.n); }
|
|
370
398
|
} else if (r.b0 !== undefined) p7(r.b0, c, d);
|
|
371
|
-
if (c &
|
|
399
|
+
if (c & 768 && !(!(truthy(v[8]) || truthy(v[9]))) !== !r.b1) {
|
|
372
400
|
if (r.b1) { dispose(r.b1); r.b1 = undefined; clearRegion(r.a2, r.e1); }
|
|
373
401
|
else { r.b1 = m8(d); r.e1.before(r.b1.n); }
|
|
374
402
|
} else if (r.b1 !== undefined) p8(r.b1, c, d);
|
|
@@ -385,70 +413,84 @@ export function createUiButton(options = {}, html) {
|
|
|
385
413
|
const t1 = t0.nextSibling.nextSibling.nextSibling;
|
|
386
414
|
const t2 = t1.firstChild;
|
|
387
415
|
const t3 = t1.nextSibling.nextSibling.firstChild;
|
|
388
|
-
const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, v9: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, f1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, f2: undefined };
|
|
416
|
+
const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, v9: undefined, v10: undefined, v11: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, f1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, f2: undefined };
|
|
389
417
|
p12(r, -1, d);
|
|
390
418
|
return r;
|
|
391
419
|
};
|
|
392
420
|
const p12 = (r, c, d) => {
|
|
393
|
-
if (c &
|
|
421
|
+
if (c & 1074791424) {
|
|
394
422
|
const x0 = g(0);
|
|
395
423
|
const s0 = toAttribute(x0, "data-appearance");
|
|
396
424
|
if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
|
|
397
425
|
}
|
|
398
|
-
if (c &
|
|
426
|
+
if (c & 1075053568) {
|
|
399
427
|
const x1 = g(1);
|
|
400
428
|
if (x1 !== NONCONFORMING) {
|
|
401
429
|
const s1 = toAttribute(x1, "data-tone");
|
|
402
430
|
if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
|
|
403
431
|
}
|
|
404
432
|
}
|
|
405
|
-
if (c &
|
|
406
|
-
const x2 = v[
|
|
407
|
-
|
|
408
|
-
|
|
433
|
+
if (c & 1073741888) {
|
|
434
|
+
const x2 = readIndex({ "true": null, "false": v[6] }, textCall("concat", [(v[6] === "inherit")]));
|
|
435
|
+
if (x2 !== NONCONFORMING) {
|
|
436
|
+
const s2 = toAttribute(x2, "data-interaction-tone");
|
|
437
|
+
if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
|
|
438
|
+
}
|
|
409
439
|
}
|
|
410
|
-
if (c &
|
|
411
|
-
const x3 =
|
|
440
|
+
if (c & 1074791616) {
|
|
441
|
+
const x3 = g(2);
|
|
412
442
|
if (x3 !== NONCONFORMING) {
|
|
413
|
-
const s3 = toAttribute(x3, "
|
|
414
|
-
if (s3 !== r.v3)
|
|
443
|
+
const s3 = toAttribute(x3, "data-interaction-appearance");
|
|
444
|
+
if (s3 !== r.v3) writeAttribute(r.n, "data-interaction-appearance", r.v3 = s3);
|
|
415
445
|
}
|
|
416
446
|
}
|
|
417
|
-
if (c &
|
|
418
|
-
const x4 = v[
|
|
419
|
-
const s4 = toAttribute(x4, "
|
|
420
|
-
if (s4 !== r.v4) writeAttribute(r.n, "
|
|
421
|
-
}
|
|
422
|
-
if (c &
|
|
423
|
-
const x5 = v[8];
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
if (c & 1073741928) {
|
|
428
|
-
const x6 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[3]) || truthy(v[5])) || truthy(v[6]))]));
|
|
429
|
-
if (x6 !== NONCONFORMING) {
|
|
430
|
-
const s6 = toAttribute(x6, "aria-disabled");
|
|
431
|
-
if (s6 !== r.v6) writeAttribute(r.n, "aria-disabled", r.v6 = s6);
|
|
447
|
+
if (c & 4096) {
|
|
448
|
+
const x4 = v[12];
|
|
449
|
+
const s4 = toAttribute(x4, "data-selected");
|
|
450
|
+
if (s4 !== r.v4) writeAttribute(r.n, "data-selected", r.v4 = s4);
|
|
451
|
+
}
|
|
452
|
+
if (c & 1073742640) {
|
|
453
|
+
const x5 = readIndex({ "true": null, "false": v[5] }, textCall("concat", [((truthy(v[4]) || truthy(v[8])) || truthy(v[9]))]));
|
|
454
|
+
if (x5 !== NONCONFORMING) {
|
|
455
|
+
const s5 = toAttribute(x5, "href");
|
|
456
|
+
if (s5 !== r.v5) writeUrlAttribute(r.n, "href", r.v5 = s5);
|
|
432
457
|
}
|
|
433
458
|
}
|
|
434
|
-
if (c &
|
|
435
|
-
const
|
|
436
|
-
const
|
|
437
|
-
if (
|
|
459
|
+
if (c & 131072) {
|
|
460
|
+
const x6 = v[17];
|
|
461
|
+
const s6 = toAttribute(x6, "target");
|
|
462
|
+
if (s6 !== r.v6) writeAttribute(r.n, "target", r.v6 = s6);
|
|
463
|
+
}
|
|
464
|
+
if (c & 2048) {
|
|
465
|
+
const x7 = v[11];
|
|
466
|
+
const s7 = toAttribute(x7, "rel");
|
|
467
|
+
if (s7 !== r.v7) writeAttribute(r.n, "rel", r.v7 = s7);
|
|
438
468
|
}
|
|
439
|
-
if (c &
|
|
440
|
-
const x8 = readIndex({ "true": "
|
|
469
|
+
if (c & 1073742608) {
|
|
470
|
+
const x8 = readIndex({ "true": "true", "false": null }, textCall("concat", [((truthy(v[4]) || truthy(v[8])) || truthy(v[9]))]));
|
|
441
471
|
if (x8 !== NONCONFORMING) {
|
|
442
|
-
const s8 = toAttribute(x8, "
|
|
443
|
-
if (s8 !== r.v8) writeAttribute(r.n, "
|
|
472
|
+
const s8 = toAttribute(x8, "aria-disabled");
|
|
473
|
+
if (s8 !== r.v8) writeAttribute(r.n, "aria-disabled", r.v8 = s8);
|
|
444
474
|
}
|
|
445
475
|
}
|
|
446
|
-
if (c &
|
|
447
|
-
const x9 =
|
|
448
|
-
const s9 = x9;
|
|
449
|
-
if (s9 !== r.v9) writeAttribute(r.n, "
|
|
476
|
+
if (c & 768) {
|
|
477
|
+
const x9 = (truthy(v[8]) || truthy(v[9]));
|
|
478
|
+
const s9 = toAttribute(x9, "aria-busy");
|
|
479
|
+
if (s9 !== r.v9) writeAttribute(r.n, "aria-busy", r.v9 = s9);
|
|
480
|
+
}
|
|
481
|
+
if (c & 1073742608) {
|
|
482
|
+
const x10 = readIndex({ "true": "0", "false": null }, textCall("concat", [((truthy(v[8]) || truthy(v[9])) && !truthy(v[4]))]));
|
|
483
|
+
if (x10 !== NONCONFORMING) {
|
|
484
|
+
const s10 = toAttribute(x10, "tabindex");
|
|
485
|
+
if (s10 !== r.v10) writeAttribute(r.n, "tabindex", r.v10 = s10);
|
|
486
|
+
}
|
|
450
487
|
}
|
|
451
|
-
if (c &
|
|
488
|
+
if (c & 123656) {
|
|
489
|
+
const x11 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[3], v[16], v[14], v[13], v[15], v[8], v[9]]);
|
|
490
|
+
const s11 = x11;
|
|
491
|
+
if (s11 !== r.v11) writeAttribute(r.n, "data-ui-button-state", (r.v11 = s11) === "" ? null : s11);
|
|
492
|
+
}
|
|
493
|
+
if (c & 768 && !((truthy(v[8]) || truthy(v[9]))) !== !r.b0) {
|
|
452
494
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
|
|
453
495
|
else { r.b0 = m13(d); r.e0.before(r.b0.n); }
|
|
454
496
|
} else if (r.b0 !== undefined) p13(r.b0, c, d);
|
|
@@ -465,56 +507,70 @@ export function createUiButton(options = {}, html) {
|
|
|
465
507
|
const t1 = t0.nextSibling.nextSibling.nextSibling;
|
|
466
508
|
const t2 = t1.firstChild;
|
|
467
509
|
const t3 = t1.nextSibling.nextSibling.firstChild;
|
|
468
|
-
const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, f1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, f2: undefined };
|
|
510
|
+
const r = { n, v0: undefined, v1: undefined, v2: undefined, v3: undefined, v4: undefined, v5: undefined, v6: undefined, v7: undefined, v8: undefined, v9: undefined, a1: t0, e0: t0.nextSibling, b0: undefined, a2: t2, e1: t2.nextSibling, b1: undefined, f1: undefined, a3: t3, e2: t3.nextSibling, b2: undefined, f2: undefined };
|
|
469
511
|
p16(r, -1, d);
|
|
470
512
|
return r;
|
|
471
513
|
};
|
|
472
514
|
const p16 = (r, c, d) => {
|
|
473
|
-
if (c &
|
|
515
|
+
if (c & 1074791424) {
|
|
474
516
|
const x0 = g(0);
|
|
475
517
|
const s0 = toAttribute(x0, "data-appearance");
|
|
476
518
|
if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
|
|
477
519
|
}
|
|
478
|
-
if (c &
|
|
520
|
+
if (c & 1075053568) {
|
|
479
521
|
const x1 = g(1);
|
|
480
522
|
if (x1 !== NONCONFORMING) {
|
|
481
523
|
const s1 = toAttribute(x1, "data-tone");
|
|
482
524
|
if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
|
|
483
525
|
}
|
|
484
526
|
}
|
|
485
|
-
if (c &
|
|
486
|
-
const x2 = v[
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
const x3 = v[16];
|
|
492
|
-
const s3 = toAttribute(x3, "type");
|
|
493
|
-
if (s3 !== r.v3) writeAttribute(r.n, "type", r.v3 = s3);
|
|
527
|
+
if (c & 1073741888) {
|
|
528
|
+
const x2 = readIndex({ "true": null, "false": v[6] }, textCall("concat", [(v[6] === "inherit")]));
|
|
529
|
+
if (x2 !== NONCONFORMING) {
|
|
530
|
+
const s2 = toAttribute(x2, "data-interaction-tone");
|
|
531
|
+
if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
|
|
532
|
+
}
|
|
494
533
|
}
|
|
495
|
-
if (c &
|
|
496
|
-
const
|
|
497
|
-
|
|
498
|
-
|
|
534
|
+
if (c & 1074791616) {
|
|
535
|
+
const x3 = g(2);
|
|
536
|
+
if (x3 !== NONCONFORMING) {
|
|
537
|
+
const s3 = toAttribute(x3, "data-interaction-appearance");
|
|
538
|
+
if (s3 !== r.v3) writeAttribute(r.n, "data-interaction-appearance", r.v3 = s3);
|
|
539
|
+
}
|
|
499
540
|
}
|
|
500
|
-
if (c &
|
|
501
|
-
const
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
541
|
+
if (c & 4096) {
|
|
542
|
+
const x4 = v[12];
|
|
543
|
+
const s4 = toAttribute(x4, "data-selected");
|
|
544
|
+
if (s4 !== r.v4) writeAttribute(r.n, "data-selected", r.v4 = s4);
|
|
545
|
+
}
|
|
546
|
+
if (c & 1074266112) {
|
|
547
|
+
const x5 = v[19];
|
|
548
|
+
const s5 = toAttribute(x5, "type");
|
|
549
|
+
if (s5 !== r.v5) writeAttribute(r.n, "type", r.v5 = s5);
|
|
550
|
+
}
|
|
551
|
+
if (c & 16) {
|
|
552
|
+
const x6 = v[4];
|
|
553
|
+
const s6 = toAttribute(x6, "disabled");
|
|
554
|
+
if (s6 !== r.v6) writeAttribute(r.n, "disabled", r.v6 = s6);
|
|
555
|
+
}
|
|
556
|
+
if (c & 1073742592) {
|
|
557
|
+
const x7 = readIndex({ "true": "true", "false": null }, textCall("concat", [(truthy(v[8]) || truthy(v[9]))]));
|
|
558
|
+
if (x7 !== NONCONFORMING) {
|
|
559
|
+
const s7 = toAttribute(x7, "aria-disabled");
|
|
560
|
+
if (s7 !== r.v7) writeAttribute(r.n, "aria-disabled", r.v7 = s7);
|
|
505
561
|
}
|
|
506
562
|
}
|
|
507
|
-
if (c &
|
|
508
|
-
const
|
|
509
|
-
const
|
|
510
|
-
if (
|
|
563
|
+
if (c & 768) {
|
|
564
|
+
const x8 = (truthy(v[8]) || truthy(v[9]));
|
|
565
|
+
const s8 = toAttribute(x8, "aria-busy");
|
|
566
|
+
if (s8 !== r.v8) writeAttribute(r.n, "aria-busy", r.v8 = s8);
|
|
511
567
|
}
|
|
512
|
-
if (c &
|
|
513
|
-
const
|
|
514
|
-
const
|
|
515
|
-
if (
|
|
568
|
+
if (c & 123656) {
|
|
569
|
+
const x9 = hostState(["align","stretch","size","shape","square","loading","pending"], [v[3], v[16], v[14], v[13], v[15], v[8], v[9]]);
|
|
570
|
+
const s9 = x9;
|
|
571
|
+
if (s9 !== r.v9) writeAttribute(r.n, "data-ui-button-state", (r.v9 = s9) === "" ? null : s9);
|
|
516
572
|
}
|
|
517
|
-
if (c &
|
|
573
|
+
if (c & 768 && !((truthy(v[8]) || truthy(v[9]))) !== !r.b0) {
|
|
518
574
|
if (r.b0) { r.b0 = undefined; clearRegion(r.a1, r.e0); }
|
|
519
575
|
else { r.b0 = m17(d); r.e0.before(r.b0.n); }
|
|
520
576
|
} else if (r.b0 !== undefined) p17(r.b0, c, d);
|
|
@@ -530,8 +586,8 @@ export function createUiButton(options = {}, html) {
|
|
|
530
586
|
const p = (c, d) => {
|
|
531
587
|
if (R === null) return;
|
|
532
588
|
if (R === undefined) { R = M[a](element, d); return; }
|
|
533
|
-
if (c &
|
|
534
|
-
const t = (((g(0) === "card") && (v[
|
|
589
|
+
if (c & 1074791456) {
|
|
590
|
+
const t = (((g(0) === "card") && (v[5] !== null)) ? 0 : (g(0) === "card") ? 1 : (v[5] !== null) ? 2 : 3);
|
|
535
591
|
if (t !== a) {
|
|
536
592
|
dispose(R);
|
|
537
593
|
for (const key in I.r) delete I.r[key];
|
|
@@ -552,4 +608,4 @@ export function createUiButton(options = {}, html) {
|
|
|
552
608
|
manageProps(I);
|
|
553
609
|
return element;
|
|
554
610
|
}
|
|
555
|
-
defineComponent("ui-button", createUiButton, ["align","disabled","href","loading","pending","preset","rel","selected","shape","size","square","stretch","target","tone","type","variant"]);
|
|
611
|
+
defineComponent("ui-button", createUiButton, ["align","disabled","href","interactionTone","interactionVariant","loading","pending","preset","rel","selected","shape","size","square","stretch","target","tone","type","variant"]);
|