@threadlabs/looma 0.51.1 → 0.51.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/editor/index.js CHANGED
@@ -2543,8 +2543,16 @@ var P17$1;
2543
2543
  var P18$1;
2544
2544
  var P19$1;
2545
2545
  var S$18 = {
2546
- n: ["appearance", "colorTone"],
2547
- t: ["?", "?"],
2546
+ n: [
2547
+ "appearance",
2548
+ "colorTone",
2549
+ "interactionAppearance"
2550
+ ],
2551
+ t: [
2552
+ "?",
2553
+ "?",
2554
+ "?"
2555
+ ],
2548
2556
  f: import.meta.url,
2549
2557
  g: "ui-button",
2550
2558
  k: 0,
@@ -2564,6 +2572,8 @@ var A$3 = [
2564
2572
  "data-ui-button-prop-align",
2565
2573
  "data-ui-button-prop-disabled",
2566
2574
  "data-ui-button-prop-href",
2575
+ "data-ui-button-prop-interaction-tone",
2576
+ "data-ui-button-prop-interaction-variant",
2567
2577
  "data-ui-button-prop-loading",
2568
2578
  "data-ui-button-prop-pending",
2569
2579
  "data-ui-button-prop-preset",
@@ -2579,6 +2589,8 @@ var A$3 = [
2579
2589
  "data-ui-button-prop-variant",
2580
2590
  "data-appearance",
2581
2591
  "data-tone",
2592
+ "data-interaction-tone",
2593
+ "data-interaction-appearance",
2582
2594
  "data-selected",
2583
2595
  "href",
2584
2596
  "target",
@@ -2599,6 +2611,8 @@ var A$3 = [
2599
2611
  "data-ui-button-prop-align",
2600
2612
  "data-ui-button-prop-disabled",
2601
2613
  "data-ui-button-prop-href",
2614
+ "data-ui-button-prop-interaction-tone",
2615
+ "data-ui-button-prop-interaction-variant",
2602
2616
  "data-ui-button-prop-loading",
2603
2617
  "data-ui-button-prop-pending",
2604
2618
  "data-ui-button-prop-preset",
@@ -2614,6 +2628,8 @@ var A$3 = [
2614
2628
  "data-ui-button-prop-variant",
2615
2629
  "data-appearance",
2616
2630
  "data-tone",
2631
+ "data-interaction-tone",
2632
+ "data-interaction-appearance",
2617
2633
  "data-selected",
2618
2634
  "type",
2619
2635
  "disabled",
@@ -2632,6 +2648,8 @@ var A$3 = [
2632
2648
  "data-ui-button-prop-align",
2633
2649
  "data-ui-button-prop-disabled",
2634
2650
  "data-ui-button-prop-href",
2651
+ "data-ui-button-prop-interaction-tone",
2652
+ "data-ui-button-prop-interaction-variant",
2635
2653
  "data-ui-button-prop-loading",
2636
2654
  "data-ui-button-prop-pending",
2637
2655
  "data-ui-button-prop-preset",
@@ -2647,6 +2665,8 @@ var A$3 = [
2647
2665
  "data-ui-button-prop-variant",
2648
2666
  "data-appearance",
2649
2667
  "data-tone",
2668
+ "data-interaction-tone",
2669
+ "data-interaction-appearance",
2650
2670
  "data-selected",
2651
2671
  "href",
2652
2672
  "target",
@@ -2667,6 +2687,8 @@ var A$3 = [
2667
2687
  "data-ui-button-prop-align",
2668
2688
  "data-ui-button-prop-disabled",
2669
2689
  "data-ui-button-prop-href",
2690
+ "data-ui-button-prop-interaction-tone",
2691
+ "data-ui-button-prop-interaction-variant",
2670
2692
  "data-ui-button-prop-loading",
2671
2693
  "data-ui-button-prop-pending",
2672
2694
  "data-ui-button-prop-preset",
@@ -2682,6 +2704,8 @@ var A$3 = [
2682
2704
  "data-ui-button-prop-variant",
2683
2705
  "data-appearance",
2684
2706
  "data-tone",
2707
+ "data-interaction-tone",
2708
+ "data-interaction-appearance",
2685
2709
  "data-selected",
2686
2710
  "type",
2687
2711
  "disabled",
@@ -2723,6 +2747,39 @@ var D$18 = {
2723
2747
  j: 0,
2724
2748
  m: "s"
2725
2749
  },
2750
+ "interactionTone": {
2751
+ "required": false,
2752
+ "values": [
2753
+ "inherit",
2754
+ "accent",
2755
+ "accent-secondary",
2756
+ "accent-tertiary",
2757
+ "neutral",
2758
+ "danger",
2759
+ "success",
2760
+ "warning",
2761
+ "info"
2762
+ ],
2763
+ "default": "inherit",
2764
+ c: checkFormat("keyword", keywordFormat),
2765
+ t: "keyword",
2766
+ j: 0,
2767
+ m: ["p", formatOf(keywordFormat)]
2768
+ },
2769
+ "interactionVariant": {
2770
+ "required": false,
2771
+ "values": [
2772
+ "inherit",
2773
+ "outline",
2774
+ "solid",
2775
+ "ghost"
2776
+ ],
2777
+ "default": "inherit",
2778
+ c: checkFormat("keyword", keywordFormat),
2779
+ t: "keyword",
2780
+ j: 0,
2781
+ m: ["p", formatOf(keywordFormat)]
2782
+ },
2726
2783
  "loading": {
2727
2784
  "required": false,
2728
2785
  "default": false,
@@ -2871,6 +2928,9 @@ function createUiButton(options = {}, html) {
2871
2928
  const v = [
2872
2929
  void 0,
2873
2930
  void 0,
2931
+ void 0,
2932
+ null,
2933
+ null,
2874
2934
  null,
2875
2935
  null,
2876
2936
  null,
@@ -2891,26 +2951,28 @@ function createUiButton(options = {}, html) {
2891
2951
  let B = acceptProps(void 0, D$18, S$18.n, v, componentProps, [], html);
2892
2952
  const CS = [];
2893
2953
  const inputStatus = (j) => {
2894
- if (j >= 0 && j < 2) {
2954
+ if (j >= 0 && j < 3) {
2895
2955
  g(j);
2896
2956
  return CS[j] ?? UNRESOLVED_INPUT;
2897
2957
  }
2898
- if (j === 2) return awaitInput(B, "align", true);
2899
- if (j === 3) return awaitInput(B, "disabled", true);
2900
- if (j === 4) return awaitInput(B, "href", true);
2901
- if (j === 5) return awaitInput(B, "loading", true);
2902
- if (j === 6) return awaitInput(B, "pending", true);
2903
- if (j === 7) return awaitInput(B, "preset", true);
2904
- if (j === 8) return awaitInput(B, "rel", true);
2905
- if (j === 9) return awaitInput(B, "selected", true);
2906
- if (j === 10) return awaitInput(B, "shape", true);
2907
- if (j === 11) return awaitInput(B, "size", true);
2908
- if (j === 12) return awaitInput(B, "square", true);
2909
- if (j === 13) return awaitInput(B, "stretch", true);
2910
- if (j === 14) return awaitInput(B, "target", true);
2911
- if (j === 15) return awaitInput(B, "tone", true);
2912
- if (j === 16) return awaitInput(B, "type", true);
2913
- if (j === 17) return awaitInput(B, "variant", true);
2958
+ if (j === 3) return awaitInput(B, "align", true);
2959
+ if (j === 4) return awaitInput(B, "disabled", true);
2960
+ if (j === 5) return awaitInput(B, "href", true);
2961
+ if (j === 6) return awaitInput(B, "interactionTone", true);
2962
+ if (j === 7) return awaitInput(B, "interactionVariant", true);
2963
+ if (j === 8) return awaitInput(B, "loading", true);
2964
+ if (j === 9) return awaitInput(B, "pending", true);
2965
+ if (j === 10) return awaitInput(B, "preset", true);
2966
+ if (j === 11) return awaitInput(B, "rel", true);
2967
+ if (j === 12) return awaitInput(B, "selected", true);
2968
+ if (j === 13) return awaitInput(B, "shape", true);
2969
+ if (j === 14) return awaitInput(B, "size", true);
2970
+ if (j === 15) return awaitInput(B, "square", true);
2971
+ if (j === 16) return awaitInput(B, "stretch", true);
2972
+ if (j === 17) return awaitInput(B, "target", true);
2973
+ if (j === 18) return awaitInput(B, "tone", true);
2974
+ if (j === 19) return awaitInput(B, "type", true);
2975
+ if (j === 20) return awaitInput(B, "variant", true);
2914
2976
  return v[j] === void 0 ? UNRESOLVED_INPUT : READY_INPUT;
2915
2977
  };
2916
2978
  const X = {
@@ -2921,28 +2983,40 @@ function createUiButton(options = {}, html) {
2921
2983
  i: inputStatus
2922
2984
  };
2923
2985
  const ke = [];
2924
- const K = [() => readIndex({
2925
- "none": inputRead(v[17], inputStatus(17)),
2926
- "primary": "solid",
2927
- "standard": "solid",
2928
- "quiet": "ghost",
2929
- "destructive": "solid"
2930
- }, inputRead(v[7], inputStatus(7))), () => readIndex(recordValue([
2931
- "none",
2932
- "primary",
2933
- "standard",
2934
- "quiet",
2935
- "destructive"
2936
- ], [
2937
- readIndex({
2938
- "true": "danger",
2939
- "false": inputRead(v[15], inputStatus(15))
2940
- }, textCall("concat", [inputRead(v[17], inputStatus(17)) === "danger"])),
2941
- "accent",
2942
- "neutral",
2943
- "neutral",
2944
- "danger"
2945
- ]), inputRead(v[7], inputStatus(7)))];
2986
+ const K = [
2987
+ () => readIndex({
2988
+ "none": inputRead(v[20], inputStatus(20)),
2989
+ "primary": "solid",
2990
+ "standard": "solid",
2991
+ "quiet": "ghost",
2992
+ "destructive": "solid"
2993
+ }, inputRead(v[10], inputStatus(10))),
2994
+ () => readIndex(recordValue([
2995
+ "none",
2996
+ "primary",
2997
+ "standard",
2998
+ "quiet",
2999
+ "destructive"
3000
+ ], [
3001
+ readIndex({
3002
+ "true": "danger",
3003
+ "false": inputRead(v[18], inputStatus(18))
3004
+ }, textCall("concat", [inputRead(v[20], inputStatus(20)) === "danger"])),
3005
+ "accent",
3006
+ "neutral",
3007
+ "neutral",
3008
+ "danger"
3009
+ ]), inputRead(v[10], inputStatus(10))),
3010
+ () => readIndex({
3011
+ "true": null,
3012
+ "false": readIndex({
3013
+ "inherit": inputRead(g(0), inputStatus(0)),
3014
+ "outline": "outline",
3015
+ "solid": "solid",
3016
+ "ghost": "ghost"
3017
+ }, inputRead(v[7], inputStatus(7)))
3018
+ }, textCall("concat", [inputRead(v[6], inputStatus(6)) === "inherit" && inputRead(v[7], inputStatus(7)) === "inherit"]))
3019
+ ];
2946
3020
  const g = (j) => {
2947
3021
  const i = j - 0;
2948
3022
  if (ke[i] === X.e) return v[j];
@@ -2966,7 +3040,7 @@ function createUiButton(options = {}, html) {
2966
3040
  }
2967
3041
  return next;
2968
3042
  };
2969
- let a = g(0) === "card" && v[4] !== null ? 0 : g(0) === "card" ? 1 : v[4] !== null ? 2 : 3;
3043
+ let a = g(0) === "card" && v[5] !== null ? 0 : g(0) === "card" ? 1 : v[5] !== null ? 2 : 3;
2970
3044
  let element;
2971
3045
  if (a === 0) {
2972
3046
  element = document.createElement("a");
@@ -3114,6 +3188,8 @@ function createUiButton(options = {}, html) {
3114
3188
  v7: void 0,
3115
3189
  v8: void 0,
3116
3190
  v9: void 0,
3191
+ v10: void 0,
3192
+ v11: void 0,
3117
3193
  a1: t1,
3118
3194
  e0: t1.nextSibling,
3119
3195
  b0: void 0,
@@ -3134,70 +3210,87 @@ function createUiButton(options = {}, html) {
3134
3210
  return r;
3135
3211
  };
3136
3212
  const p0 = (r, c, d) => {
3137
- if (c & 1073873024) {
3213
+ if (c & 1074791424) {
3138
3214
  const x0 = g(0);
3139
3215
  const s0 = toAttribute(x0, "data-appearance");
3140
3216
  if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
3141
3217
  }
3142
- if (c & 1073905792) {
3218
+ if (c & 1075053568) {
3143
3219
  const x1 = g(1);
3144
3220
  if (x1 !== NONCONFORMING) {
3145
3221
  const s1 = toAttribute(x1, "data-tone");
3146
3222
  if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
3147
3223
  }
3148
3224
  }
3149
- if (c & 512) {
3150
- const x2 = v[9];
3151
- const s2 = toAttribute(x2, "data-selected");
3152
- if (s2 !== r.v2) writeAttribute(r.n, "data-selected", r.v2 = s2);
3153
- }
3154
- if (c & 1073741944) {
3155
- const x3 = readIndex({
3225
+ if (c & 1073741888) {
3226
+ const x2 = readIndex({
3156
3227
  "true": null,
3157
- "false": v[4]
3158
- }, textCall("concat", [truthy(v[3]) || truthy(v[5]) || truthy(v[6])]));
3228
+ "false": v[6]
3229
+ }, textCall("concat", [v[6] === "inherit"]));
3230
+ if (x2 !== NONCONFORMING) {
3231
+ const s2 = toAttribute(x2, "data-interaction-tone");
3232
+ if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
3233
+ }
3234
+ }
3235
+ if (c & 1074791616) {
3236
+ const x3 = g(2);
3159
3237
  if (x3 !== NONCONFORMING) {
3160
- const s3 = toAttribute(x3, "href");
3161
- if (s3 !== r.v3) writeUrlAttribute(r.n, "href", r.v3 = s3);
3238
+ const s3 = toAttribute(x3, "data-interaction-appearance");
3239
+ if (s3 !== r.v3) writeAttribute(r.n, "data-interaction-appearance", r.v3 = s3);
3162
3240
  }
3163
3241
  }
3164
- if (c & 16384) {
3165
- const x4 = v[14];
3166
- const s4 = toAttribute(x4, "target");
3167
- if (s4 !== r.v4) writeAttribute(r.n, "target", r.v4 = s4);
3242
+ if (c & 4096) {
3243
+ const x4 = v[12];
3244
+ const s4 = toAttribute(x4, "data-selected");
3245
+ if (s4 !== r.v4) writeAttribute(r.n, "data-selected", r.v4 = s4);
3246
+ }
3247
+ if (c & 1073742640) {
3248
+ const x5 = readIndex({
3249
+ "true": null,
3250
+ "false": v[5]
3251
+ }, textCall("concat", [truthy(v[4]) || truthy(v[8]) || truthy(v[9])]));
3252
+ if (x5 !== NONCONFORMING) {
3253
+ const s5 = toAttribute(x5, "href");
3254
+ if (s5 !== r.v5) writeUrlAttribute(r.n, "href", r.v5 = s5);
3255
+ }
3168
3256
  }
3169
- if (c & 256) {
3170
- const x5 = v[8];
3171
- const s5 = toAttribute(x5, "rel");
3172
- if (s5 !== r.v5) writeAttribute(r.n, "rel", r.v5 = s5);
3257
+ if (c & 131072) {
3258
+ const x6 = v[17];
3259
+ const s6 = toAttribute(x6, "target");
3260
+ if (s6 !== r.v6) writeAttribute(r.n, "target", r.v6 = s6);
3173
3261
  }
3174
- if (c & 1073741928) {
3175
- const x6 = readIndex({
3262
+ if (c & 2048) {
3263
+ const x7 = v[11];
3264
+ const s7 = toAttribute(x7, "rel");
3265
+ if (s7 !== r.v7) writeAttribute(r.n, "rel", r.v7 = s7);
3266
+ }
3267
+ if (c & 1073742608) {
3268
+ const x8 = readIndex({
3176
3269
  "true": "true",
3177
3270
  "false": null
3178
- }, textCall("concat", [truthy(v[3]) || truthy(v[5]) || truthy(v[6])]));
3179
- if (x6 !== NONCONFORMING) {
3180
- const s6 = toAttribute(x6, "aria-disabled");
3181
- if (s6 !== r.v6) writeAttribute(r.n, "aria-disabled", r.v6 = s6);
3271
+ }, textCall("concat", [truthy(v[4]) || truthy(v[8]) || truthy(v[9])]));
3272
+ if (x8 !== NONCONFORMING) {
3273
+ const s8 = toAttribute(x8, "aria-disabled");
3274
+ if (s8 !== r.v8) writeAttribute(r.n, "aria-disabled", r.v8 = s8);
3182
3275
  }
3183
3276
  }
3184
- if (c & 96) {
3185
- const x7 = truthy(v[5]) || truthy(v[6]);
3186
- const s7 = toAttribute(x7, "aria-busy");
3187
- if (s7 !== r.v7) writeAttribute(r.n, "aria-busy", r.v7 = s7);
3277
+ if (c & 768) {
3278
+ const x9 = truthy(v[8]) || truthy(v[9]);
3279
+ const s9 = toAttribute(x9, "aria-busy");
3280
+ if (s9 !== r.v9) writeAttribute(r.n, "aria-busy", r.v9 = s9);
3188
3281
  }
3189
- if (c & 1073741928) {
3190
- const x8 = readIndex({
3282
+ if (c & 1073742608) {
3283
+ const x10 = readIndex({
3191
3284
  "true": "0",
3192
3285
  "false": null
3193
- }, textCall("concat", [(truthy(v[5]) || truthy(v[6])) && !truthy(v[3])]));
3194
- if (x8 !== NONCONFORMING) {
3195
- const s8 = toAttribute(x8, "tabindex");
3196
- if (s8 !== r.v8) writeAttribute(r.n, "tabindex", r.v8 = s8);
3286
+ }, textCall("concat", [(truthy(v[8]) || truthy(v[9])) && !truthy(v[4])]));
3287
+ if (x10 !== NONCONFORMING) {
3288
+ const s10 = toAttribute(x10, "tabindex");
3289
+ if (s10 !== r.v10) writeAttribute(r.n, "tabindex", r.v10 = s10);
3197
3290
  }
3198
3291
  }
3199
- if (c & 15460) {
3200
- const s9 = hostState([
3292
+ if (c & 123656) {
3293
+ const s11 = hostState([
3201
3294
  "align",
3202
3295
  "stretch",
3203
3296
  "size",
@@ -3206,17 +3299,17 @@ function createUiButton(options = {}, html) {
3206
3299
  "loading",
3207
3300
  "pending"
3208
3301
  ], [
3209
- v[2],
3302
+ v[3],
3303
+ v[16],
3304
+ v[14],
3210
3305
  v[13],
3211
- v[11],
3212
- v[10],
3213
- v[12],
3214
- v[5],
3215
- v[6]
3306
+ v[15],
3307
+ v[8],
3308
+ v[9]
3216
3309
  ]);
3217
- if (s9 !== r.v9) writeAttribute(r.n, "data-ui-button-state", (r.v9 = s9) === "" ? null : s9);
3310
+ if (s11 !== r.v11) writeAttribute(r.n, "data-ui-button-state", (r.v11 = s11) === "" ? null : s11);
3218
3311
  }
3219
- if (c & 96 && !(truthy(v[5]) || truthy(v[6])) !== !r.b0) {
3312
+ if (c & 768 && !(truthy(v[8]) || truthy(v[9])) !== !r.b0) {
3220
3313
  if (r.b0) {
3221
3314
  r.b0 = void 0;
3222
3315
  clearRegion(r.a1, r.e0);
@@ -3225,7 +3318,7 @@ function createUiButton(options = {}, html) {
3225
3318
  r.e0.before(r.b0.n);
3226
3319
  }
3227
3320
  } else if (r.b0 !== void 0) r.b0;
3228
- if (c & 96 && !!(truthy(v[5]) || truthy(v[6])) !== !r.b1) {
3321
+ if (c & 768 && !!(truthy(v[8]) || truthy(v[9])) !== !r.b1) {
3229
3322
  if (r.b1) {
3230
3323
  dispose(r.b1);
3231
3324
  r.b1 = void 0;
@@ -3278,6 +3371,8 @@ function createUiButton(options = {}, html) {
3278
3371
  v5: void 0,
3279
3372
  v6: void 0,
3280
3373
  v7: void 0,
3374
+ v8: void 0,
3375
+ v9: void 0,
3281
3376
  a1: t1,
3282
3377
  e0: t1.nextSibling,
3283
3378
  b0: void 0,
@@ -3298,50 +3393,67 @@ function createUiButton(options = {}, html) {
3298
3393
  return r;
3299
3394
  };
3300
3395
  const p6 = (r, c, d) => {
3301
- if (c & 1073873024) {
3396
+ if (c & 1074791424) {
3302
3397
  const x0 = g(0);
3303
3398
  const s0 = toAttribute(x0, "data-appearance");
3304
3399
  if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
3305
3400
  }
3306
- if (c & 1073905792) {
3401
+ if (c & 1075053568) {
3307
3402
  const x1 = g(1);
3308
3403
  if (x1 !== NONCONFORMING) {
3309
3404
  const s1 = toAttribute(x1, "data-tone");
3310
3405
  if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
3311
3406
  }
3312
3407
  }
3313
- if (c & 512) {
3314
- const x2 = v[9];
3315
- const s2 = toAttribute(x2, "data-selected");
3316
- if (s2 !== r.v2) writeAttribute(r.n, "data-selected", r.v2 = s2);
3408
+ if (c & 1073741888) {
3409
+ const x2 = readIndex({
3410
+ "true": null,
3411
+ "false": v[6]
3412
+ }, textCall("concat", [v[6] === "inherit"]));
3413
+ if (x2 !== NONCONFORMING) {
3414
+ const s2 = toAttribute(x2, "data-interaction-tone");
3415
+ if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
3416
+ }
3317
3417
  }
3318
- if (c & 1073807360) {
3319
- const x3 = v[16];
3320
- const s3 = toAttribute(x3, "type");
3321
- if (s3 !== r.v3) writeAttribute(r.n, "type", r.v3 = s3);
3418
+ if (c & 1074791616) {
3419
+ const x3 = g(2);
3420
+ if (x3 !== NONCONFORMING) {
3421
+ const s3 = toAttribute(x3, "data-interaction-appearance");
3422
+ if (s3 !== r.v3) writeAttribute(r.n, "data-interaction-appearance", r.v3 = s3);
3423
+ }
3322
3424
  }
3323
- if (c & 8) {
3324
- const x4 = v[3];
3325
- const s4 = toAttribute(x4, "disabled");
3326
- if (s4 !== r.v4) writeAttribute(r.n, "disabled", r.v4 = s4);
3425
+ if (c & 4096) {
3426
+ const x4 = v[12];
3427
+ const s4 = toAttribute(x4, "data-selected");
3428
+ if (s4 !== r.v4) writeAttribute(r.n, "data-selected", r.v4 = s4);
3327
3429
  }
3328
- if (c & 1073741920) {
3329
- const x5 = readIndex({
3430
+ if (c & 1074266112) {
3431
+ const x5 = v[19];
3432
+ const s5 = toAttribute(x5, "type");
3433
+ if (s5 !== r.v5) writeAttribute(r.n, "type", r.v5 = s5);
3434
+ }
3435
+ if (c & 16) {
3436
+ const x6 = v[4];
3437
+ const s6 = toAttribute(x6, "disabled");
3438
+ if (s6 !== r.v6) writeAttribute(r.n, "disabled", r.v6 = s6);
3439
+ }
3440
+ if (c & 1073742592) {
3441
+ const x7 = readIndex({
3330
3442
  "true": "true",
3331
3443
  "false": null
3332
- }, textCall("concat", [truthy(v[5]) || truthy(v[6])]));
3333
- if (x5 !== NONCONFORMING) {
3334
- const s5 = toAttribute(x5, "aria-disabled");
3335
- if (s5 !== r.v5) writeAttribute(r.n, "aria-disabled", r.v5 = s5);
3444
+ }, textCall("concat", [truthy(v[8]) || truthy(v[9])]));
3445
+ if (x7 !== NONCONFORMING) {
3446
+ const s7 = toAttribute(x7, "aria-disabled");
3447
+ if (s7 !== r.v7) writeAttribute(r.n, "aria-disabled", r.v7 = s7);
3336
3448
  }
3337
3449
  }
3338
- if (c & 96) {
3339
- const x6 = truthy(v[5]) || truthy(v[6]);
3340
- const s6 = toAttribute(x6, "aria-busy");
3341
- if (s6 !== r.v6) writeAttribute(r.n, "aria-busy", r.v6 = s6);
3450
+ if (c & 768) {
3451
+ const x8 = truthy(v[8]) || truthy(v[9]);
3452
+ const s8 = toAttribute(x8, "aria-busy");
3453
+ if (s8 !== r.v8) writeAttribute(r.n, "aria-busy", r.v8 = s8);
3342
3454
  }
3343
- if (c & 15460) {
3344
- const s7 = hostState([
3455
+ if (c & 123656) {
3456
+ const s9 = hostState([
3345
3457
  "align",
3346
3458
  "stretch",
3347
3459
  "size",
@@ -3350,17 +3462,17 @@ function createUiButton(options = {}, html) {
3350
3462
  "loading",
3351
3463
  "pending"
3352
3464
  ], [
3353
- v[2],
3465
+ v[3],
3466
+ v[16],
3467
+ v[14],
3354
3468
  v[13],
3355
- v[11],
3356
- v[10],
3357
- v[12],
3358
- v[5],
3359
- v[6]
3469
+ v[15],
3470
+ v[8],
3471
+ v[9]
3360
3472
  ]);
3361
- if (s7 !== r.v7) writeAttribute(r.n, "data-ui-button-state", (r.v7 = s7) === "" ? null : s7);
3473
+ if (s9 !== r.v9) writeAttribute(r.n, "data-ui-button-state", (r.v9 = s9) === "" ? null : s9);
3362
3474
  }
3363
- if (c & 96 && !(truthy(v[5]) || truthy(v[6])) !== !r.b0) {
3475
+ if (c & 768 && !(truthy(v[8]) || truthy(v[9])) !== !r.b0) {
3364
3476
  if (r.b0) {
3365
3477
  r.b0 = void 0;
3366
3478
  clearRegion(r.a1, r.e0);
@@ -3369,7 +3481,7 @@ function createUiButton(options = {}, html) {
3369
3481
  r.e0.before(r.b0.n);
3370
3482
  }
3371
3483
  } else if (r.b0 !== void 0) r.b0;
3372
- if (c & 96 && !!(truthy(v[5]) || truthy(v[6])) !== !r.b1) {
3484
+ if (c & 768 && !!(truthy(v[8]) || truthy(v[9])) !== !r.b1) {
3373
3485
  if (r.b1) {
3374
3486
  dispose(r.b1);
3375
3487
  r.b1 = void 0;
@@ -3422,6 +3534,8 @@ function createUiButton(options = {}, html) {
3422
3534
  v7: void 0,
3423
3535
  v8: void 0,
3424
3536
  v9: void 0,
3537
+ v10: void 0,
3538
+ v11: void 0,
3425
3539
  a1: t0,
3426
3540
  e0: t0.nextSibling,
3427
3541
  b0: void 0,
@@ -3438,70 +3552,87 @@ function createUiButton(options = {}, html) {
3438
3552
  return r;
3439
3553
  };
3440
3554
  const p12 = (r, c, d) => {
3441
- if (c & 1073873024) {
3555
+ if (c & 1074791424) {
3442
3556
  const x0 = g(0);
3443
3557
  const s0 = toAttribute(x0, "data-appearance");
3444
3558
  if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
3445
3559
  }
3446
- if (c & 1073905792) {
3560
+ if (c & 1075053568) {
3447
3561
  const x1 = g(1);
3448
3562
  if (x1 !== NONCONFORMING) {
3449
3563
  const s1 = toAttribute(x1, "data-tone");
3450
3564
  if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
3451
3565
  }
3452
3566
  }
3453
- if (c & 512) {
3454
- const x2 = v[9];
3455
- const s2 = toAttribute(x2, "data-selected");
3456
- if (s2 !== r.v2) writeAttribute(r.n, "data-selected", r.v2 = s2);
3457
- }
3458
- if (c & 1073741944) {
3459
- const x3 = readIndex({
3567
+ if (c & 1073741888) {
3568
+ const x2 = readIndex({
3460
3569
  "true": null,
3461
- "false": v[4]
3462
- }, textCall("concat", [truthy(v[3]) || truthy(v[5]) || truthy(v[6])]));
3570
+ "false": v[6]
3571
+ }, textCall("concat", [v[6] === "inherit"]));
3572
+ if (x2 !== NONCONFORMING) {
3573
+ const s2 = toAttribute(x2, "data-interaction-tone");
3574
+ if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
3575
+ }
3576
+ }
3577
+ if (c & 1074791616) {
3578
+ const x3 = g(2);
3463
3579
  if (x3 !== NONCONFORMING) {
3464
- const s3 = toAttribute(x3, "href");
3465
- if (s3 !== r.v3) writeUrlAttribute(r.n, "href", r.v3 = s3);
3580
+ const s3 = toAttribute(x3, "data-interaction-appearance");
3581
+ if (s3 !== r.v3) writeAttribute(r.n, "data-interaction-appearance", r.v3 = s3);
3466
3582
  }
3467
3583
  }
3468
- if (c & 16384) {
3469
- const x4 = v[14];
3470
- const s4 = toAttribute(x4, "target");
3471
- if (s4 !== r.v4) writeAttribute(r.n, "target", r.v4 = s4);
3584
+ if (c & 4096) {
3585
+ const x4 = v[12];
3586
+ const s4 = toAttribute(x4, "data-selected");
3587
+ if (s4 !== r.v4) writeAttribute(r.n, "data-selected", r.v4 = s4);
3472
3588
  }
3473
- if (c & 256) {
3474
- const x5 = v[8];
3475
- const s5 = toAttribute(x5, "rel");
3476
- if (s5 !== r.v5) writeAttribute(r.n, "rel", r.v5 = s5);
3589
+ if (c & 1073742640) {
3590
+ const x5 = readIndex({
3591
+ "true": null,
3592
+ "false": v[5]
3593
+ }, textCall("concat", [truthy(v[4]) || truthy(v[8]) || truthy(v[9])]));
3594
+ if (x5 !== NONCONFORMING) {
3595
+ const s5 = toAttribute(x5, "href");
3596
+ if (s5 !== r.v5) writeUrlAttribute(r.n, "href", r.v5 = s5);
3597
+ }
3598
+ }
3599
+ if (c & 131072) {
3600
+ const x6 = v[17];
3601
+ const s6 = toAttribute(x6, "target");
3602
+ if (s6 !== r.v6) writeAttribute(r.n, "target", r.v6 = s6);
3477
3603
  }
3478
- if (c & 1073741928) {
3479
- const x6 = readIndex({
3604
+ if (c & 2048) {
3605
+ const x7 = v[11];
3606
+ const s7 = toAttribute(x7, "rel");
3607
+ if (s7 !== r.v7) writeAttribute(r.n, "rel", r.v7 = s7);
3608
+ }
3609
+ if (c & 1073742608) {
3610
+ const x8 = readIndex({
3480
3611
  "true": "true",
3481
3612
  "false": null
3482
- }, textCall("concat", [truthy(v[3]) || truthy(v[5]) || truthy(v[6])]));
3483
- if (x6 !== NONCONFORMING) {
3484
- const s6 = toAttribute(x6, "aria-disabled");
3485
- if (s6 !== r.v6) writeAttribute(r.n, "aria-disabled", r.v6 = s6);
3613
+ }, textCall("concat", [truthy(v[4]) || truthy(v[8]) || truthy(v[9])]));
3614
+ if (x8 !== NONCONFORMING) {
3615
+ const s8 = toAttribute(x8, "aria-disabled");
3616
+ if (s8 !== r.v8) writeAttribute(r.n, "aria-disabled", r.v8 = s8);
3486
3617
  }
3487
3618
  }
3488
- if (c & 96) {
3489
- const x7 = truthy(v[5]) || truthy(v[6]);
3490
- const s7 = toAttribute(x7, "aria-busy");
3491
- if (s7 !== r.v7) writeAttribute(r.n, "aria-busy", r.v7 = s7);
3619
+ if (c & 768) {
3620
+ const x9 = truthy(v[8]) || truthy(v[9]);
3621
+ const s9 = toAttribute(x9, "aria-busy");
3622
+ if (s9 !== r.v9) writeAttribute(r.n, "aria-busy", r.v9 = s9);
3492
3623
  }
3493
- if (c & 1073741928) {
3494
- const x8 = readIndex({
3624
+ if (c & 1073742608) {
3625
+ const x10 = readIndex({
3495
3626
  "true": "0",
3496
3627
  "false": null
3497
- }, textCall("concat", [(truthy(v[5]) || truthy(v[6])) && !truthy(v[3])]));
3498
- if (x8 !== NONCONFORMING) {
3499
- const s8 = toAttribute(x8, "tabindex");
3500
- if (s8 !== r.v8) writeAttribute(r.n, "tabindex", r.v8 = s8);
3628
+ }, textCall("concat", [(truthy(v[8]) || truthy(v[9])) && !truthy(v[4])]));
3629
+ if (x10 !== NONCONFORMING) {
3630
+ const s10 = toAttribute(x10, "tabindex");
3631
+ if (s10 !== r.v10) writeAttribute(r.n, "tabindex", r.v10 = s10);
3501
3632
  }
3502
3633
  }
3503
- if (c & 15460) {
3504
- const s9 = hostState([
3634
+ if (c & 123656) {
3635
+ const s11 = hostState([
3505
3636
  "align",
3506
3637
  "stretch",
3507
3638
  "size",
@@ -3510,17 +3641,17 @@ function createUiButton(options = {}, html) {
3510
3641
  "loading",
3511
3642
  "pending"
3512
3643
  ], [
3513
- v[2],
3644
+ v[3],
3645
+ v[16],
3646
+ v[14],
3514
3647
  v[13],
3515
- v[11],
3516
- v[10],
3517
- v[12],
3518
- v[5],
3519
- v[6]
3648
+ v[15],
3649
+ v[8],
3650
+ v[9]
3520
3651
  ]);
3521
- if (s9 !== r.v9) writeAttribute(r.n, "data-ui-button-state", (r.v9 = s9) === "" ? null : s9);
3652
+ if (s11 !== r.v11) writeAttribute(r.n, "data-ui-button-state", (r.v11 = s11) === "" ? null : s11);
3522
3653
  }
3523
- if (c & 96 && !(truthy(v[5]) || truthy(v[6])) !== !r.b0) {
3654
+ if (c & 768 && !(truthy(v[8]) || truthy(v[9])) !== !r.b0) {
3524
3655
  if (r.b0) {
3525
3656
  r.b0 = void 0;
3526
3657
  clearRegion(r.a1, r.e0);
@@ -3570,6 +3701,8 @@ function createUiButton(options = {}, html) {
3570
3701
  v5: void 0,
3571
3702
  v6: void 0,
3572
3703
  v7: void 0,
3704
+ v8: void 0,
3705
+ v9: void 0,
3573
3706
  a1: t0,
3574
3707
  e0: t0.nextSibling,
3575
3708
  b0: void 0,
@@ -3586,50 +3719,67 @@ function createUiButton(options = {}, html) {
3586
3719
  return r;
3587
3720
  };
3588
3721
  const p16 = (r, c, d) => {
3589
- if (c & 1073873024) {
3722
+ if (c & 1074791424) {
3590
3723
  const x0 = g(0);
3591
3724
  const s0 = toAttribute(x0, "data-appearance");
3592
3725
  if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
3593
3726
  }
3594
- if (c & 1073905792) {
3727
+ if (c & 1075053568) {
3595
3728
  const x1 = g(1);
3596
3729
  if (x1 !== NONCONFORMING) {
3597
3730
  const s1 = toAttribute(x1, "data-tone");
3598
3731
  if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
3599
3732
  }
3600
3733
  }
3601
- if (c & 512) {
3602
- const x2 = v[9];
3603
- const s2 = toAttribute(x2, "data-selected");
3604
- if (s2 !== r.v2) writeAttribute(r.n, "data-selected", r.v2 = s2);
3734
+ if (c & 1073741888) {
3735
+ const x2 = readIndex({
3736
+ "true": null,
3737
+ "false": v[6]
3738
+ }, textCall("concat", [v[6] === "inherit"]));
3739
+ if (x2 !== NONCONFORMING) {
3740
+ const s2 = toAttribute(x2, "data-interaction-tone");
3741
+ if (s2 !== r.v2) writeAttribute(r.n, "data-interaction-tone", r.v2 = s2);
3742
+ }
3605
3743
  }
3606
- if (c & 1073807360) {
3607
- const x3 = v[16];
3608
- const s3 = toAttribute(x3, "type");
3609
- if (s3 !== r.v3) writeAttribute(r.n, "type", r.v3 = s3);
3744
+ if (c & 1074791616) {
3745
+ const x3 = g(2);
3746
+ if (x3 !== NONCONFORMING) {
3747
+ const s3 = toAttribute(x3, "data-interaction-appearance");
3748
+ if (s3 !== r.v3) writeAttribute(r.n, "data-interaction-appearance", r.v3 = s3);
3749
+ }
3610
3750
  }
3611
- if (c & 8) {
3612
- const x4 = v[3];
3613
- const s4 = toAttribute(x4, "disabled");
3614
- if (s4 !== r.v4) writeAttribute(r.n, "disabled", r.v4 = s4);
3751
+ if (c & 4096) {
3752
+ const x4 = v[12];
3753
+ const s4 = toAttribute(x4, "data-selected");
3754
+ if (s4 !== r.v4) writeAttribute(r.n, "data-selected", r.v4 = s4);
3615
3755
  }
3616
- if (c & 1073741920) {
3617
- const x5 = readIndex({
3756
+ if (c & 1074266112) {
3757
+ const x5 = v[19];
3758
+ const s5 = toAttribute(x5, "type");
3759
+ if (s5 !== r.v5) writeAttribute(r.n, "type", r.v5 = s5);
3760
+ }
3761
+ if (c & 16) {
3762
+ const x6 = v[4];
3763
+ const s6 = toAttribute(x6, "disabled");
3764
+ if (s6 !== r.v6) writeAttribute(r.n, "disabled", r.v6 = s6);
3765
+ }
3766
+ if (c & 1073742592) {
3767
+ const x7 = readIndex({
3618
3768
  "true": "true",
3619
3769
  "false": null
3620
- }, textCall("concat", [truthy(v[5]) || truthy(v[6])]));
3621
- if (x5 !== NONCONFORMING) {
3622
- const s5 = toAttribute(x5, "aria-disabled");
3623
- if (s5 !== r.v5) writeAttribute(r.n, "aria-disabled", r.v5 = s5);
3770
+ }, textCall("concat", [truthy(v[8]) || truthy(v[9])]));
3771
+ if (x7 !== NONCONFORMING) {
3772
+ const s7 = toAttribute(x7, "aria-disabled");
3773
+ if (s7 !== r.v7) writeAttribute(r.n, "aria-disabled", r.v7 = s7);
3624
3774
  }
3625
3775
  }
3626
- if (c & 96) {
3627
- const x6 = truthy(v[5]) || truthy(v[6]);
3628
- const s6 = toAttribute(x6, "aria-busy");
3629
- if (s6 !== r.v6) writeAttribute(r.n, "aria-busy", r.v6 = s6);
3776
+ if (c & 768) {
3777
+ const x8 = truthy(v[8]) || truthy(v[9]);
3778
+ const s8 = toAttribute(x8, "aria-busy");
3779
+ if (s8 !== r.v8) writeAttribute(r.n, "aria-busy", r.v8 = s8);
3630
3780
  }
3631
- if (c & 15460) {
3632
- const s7 = hostState([
3781
+ if (c & 123656) {
3782
+ const s9 = hostState([
3633
3783
  "align",
3634
3784
  "stretch",
3635
3785
  "size",
@@ -3638,17 +3788,17 @@ function createUiButton(options = {}, html) {
3638
3788
  "loading",
3639
3789
  "pending"
3640
3790
  ], [
3641
- v[2],
3791
+ v[3],
3792
+ v[16],
3793
+ v[14],
3642
3794
  v[13],
3643
- v[11],
3644
- v[10],
3645
- v[12],
3646
- v[5],
3647
- v[6]
3795
+ v[15],
3796
+ v[8],
3797
+ v[9]
3648
3798
  ]);
3649
- if (s7 !== r.v7) writeAttribute(r.n, "data-ui-button-state", (r.v7 = s7) === "" ? null : s7);
3799
+ if (s9 !== r.v9) writeAttribute(r.n, "data-ui-button-state", (r.v9 = s9) === "" ? null : s9);
3650
3800
  }
3651
- if (c & 96 && !(truthy(v[5]) || truthy(v[6])) !== !r.b0) {
3801
+ if (c & 768 && !(truthy(v[8]) || truthy(v[9])) !== !r.b0) {
3652
3802
  if (r.b0) {
3653
3803
  r.b0 = void 0;
3654
3804
  clearRegion(r.a1, r.e0);
@@ -3700,8 +3850,8 @@ function createUiButton(options = {}, html) {
3700
3850
  R = M[a](element, d);
3701
3851
  return;
3702
3852
  }
3703
- if (c & 1073873040) {
3704
- const t = g(0) === "card" && v[4] !== null ? 0 : g(0) === "card" ? 1 : v[4] !== null ? 2 : 3;
3853
+ if (c & 1074791456) {
3854
+ const t = g(0) === "card" && v[5] !== null ? 0 : g(0) === "card" ? 1 : v[5] !== null ? 2 : 3;
3705
3855
  if (t !== a) {
3706
3856
  dispose(R);
3707
3857
  for (const key in I.r) delete I.r[key];
@@ -3726,6 +3876,8 @@ defineComponent("ui-button", createUiButton, [
3726
3876
  "align",
3727
3877
  "disabled",
3728
3878
  "href",
3879
+ "interactionTone",
3880
+ "interactionVariant",
3729
3881
  "loading",
3730
3882
  "pending",
3731
3883
  "preset",