@threadlabs/looma 0.39.6 → 0.40.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.
@@ -3323,8 +3323,11 @@ function connect$11(host) {
3323
3323
  event.preventDefault();
3324
3324
  event.stopImmediatePropagation();
3325
3325
  };
3326
- host.element.addEventListener("click", onClick, true);
3327
- return () => host.element.removeEventListener("click", onClick, true);
3326
+ return host.effect(() => {
3327
+ const element = host.element;
3328
+ element.addEventListener("click", onClick, true);
3329
+ return () => element.removeEventListener("click", onClick, true);
3330
+ });
3328
3331
  }
3329
3332
  //#endregion
3330
3333
  //#region vanilla/UiButton.js
@@ -3504,7 +3507,6 @@ var A$3 = [
3504
3507
  [
3505
3508
  "data-ui-button-state",
3506
3509
  "data-ui-button-prop-align",
3507
- "data-ui-button-prop-as",
3508
3510
  "data-ui-button-prop-disabled",
3509
3511
  "data-ui-button-prop-href",
3510
3512
  "data-ui-button-prop-loading",
@@ -3538,7 +3540,6 @@ var A$3 = [
3538
3540
  [
3539
3541
  "data-ui-button-state",
3540
3542
  "data-ui-button-prop-align",
3541
- "data-ui-button-prop-as",
3542
3543
  "data-ui-button-prop-disabled",
3543
3544
  "data-ui-button-prop-href",
3544
3545
  "data-ui-button-prop-loading",
@@ -3570,7 +3571,6 @@ var A$3 = [
3570
3571
  [
3571
3572
  "data-ui-button-state",
3572
3573
  "data-ui-button-prop-align",
3573
- "data-ui-button-prop-as",
3574
3574
  "data-ui-button-prop-disabled",
3575
3575
  "data-ui-button-prop-href",
3576
3576
  "data-ui-button-prop-loading",
@@ -3604,7 +3604,6 @@ var A$3 = [
3604
3604
  [
3605
3605
  "data-ui-button-state",
3606
3606
  "data-ui-button-prop-align",
3607
- "data-ui-button-prop-as",
3608
3607
  "data-ui-button-prop-disabled",
3609
3608
  "data-ui-button-prop-href",
3610
3609
  "data-ui-button-prop-loading",
@@ -3646,15 +3645,6 @@ var D$18 = {
3646
3645
  j: 0,
3647
3646
  m: ["p", formatOf(keywordFormat)]
3648
3647
  },
3649
- "as": {
3650
- "required": false,
3651
- "values": ["button", "a"],
3652
- "default": "button",
3653
- c: checkFormat("keyword", keywordFormat),
3654
- t: "keyword",
3655
- j: 0,
3656
- m: ["p", formatOf(keywordFormat)]
3657
- },
3658
3648
  "disabled": {
3659
3649
  "required": false,
3660
3650
  "default": false,
@@ -3822,7 +3812,6 @@ function createUiButton(options = {}, html) {
3822
3812
  null,
3823
3813
  null,
3824
3814
  null,
3825
- null,
3826
3815
  null
3827
3816
  ];
3828
3817
  let B = acceptProps(void 0, D$18, S$18.n, v, componentProps, [], html);
@@ -3833,21 +3822,20 @@ function createUiButton(options = {}, html) {
3833
3822
  return CS[j] ?? UNRESOLVED_INPUT;
3834
3823
  }
3835
3824
  if (j === 2) return awaitInput(B, "align", true);
3836
- if (j === 3) return awaitInput(B, "as", true);
3837
- if (j === 4) return awaitInput(B, "disabled", true);
3838
- if (j === 5) return awaitInput(B, "href", true);
3839
- if (j === 6) return awaitInput(B, "loading", true);
3840
- if (j === 7) return awaitInput(B, "pending", true);
3841
- if (j === 8) return awaitInput(B, "preset", true);
3842
- if (j === 9) return awaitInput(B, "rel", true);
3843
- if (j === 10) return awaitInput(B, "shape", true);
3844
- if (j === 11) return awaitInput(B, "size", true);
3845
- if (j === 12) return awaitInput(B, "square", true);
3846
- if (j === 13) return awaitInput(B, "stretch", true);
3847
- if (j === 14) return awaitInput(B, "target", true);
3848
- if (j === 15) return awaitInput(B, "tone", true);
3849
- if (j === 16) return awaitInput(B, "type", true);
3850
- if (j === 17) return awaitInput(B, "variant", true);
3825
+ if (j === 3) return awaitInput(B, "disabled", true);
3826
+ if (j === 4) return awaitInput(B, "href", true);
3827
+ if (j === 5) return awaitInput(B, "loading", true);
3828
+ if (j === 6) return awaitInput(B, "pending", true);
3829
+ if (j === 7) return awaitInput(B, "preset", true);
3830
+ if (j === 8) return awaitInput(B, "rel", true);
3831
+ if (j === 9) return awaitInput(B, "shape", true);
3832
+ if (j === 10) return awaitInput(B, "size", true);
3833
+ if (j === 11) return awaitInput(B, "square", true);
3834
+ if (j === 12) return awaitInput(B, "stretch", true);
3835
+ if (j === 13) return awaitInput(B, "target", true);
3836
+ if (j === 14) return awaitInput(B, "tone", true);
3837
+ if (j === 15) return awaitInput(B, "type", true);
3838
+ if (j === 16) return awaitInput(B, "variant", true);
3851
3839
  return v[j] === void 0 ? UNRESOLVED_INPUT : READY_INPUT;
3852
3840
  };
3853
3841
  const X = {
@@ -3859,12 +3847,12 @@ function createUiButton(options = {}, html) {
3859
3847
  };
3860
3848
  const ke = [];
3861
3849
  const K = [() => readIndex({
3862
- "none": inputRead(v[17], inputStatus(17)),
3850
+ "none": inputRead(v[16], inputStatus(16)),
3863
3851
  "primary": "solid",
3864
3852
  "standard": "solid",
3865
3853
  "quiet": "ghost",
3866
3854
  "destructive": "solid"
3867
- }, inputRead(v[8], inputStatus(8))), () => readIndex(recordValue([
3855
+ }, inputRead(v[7], inputStatus(7))), () => readIndex(recordValue([
3868
3856
  "none",
3869
3857
  "primary",
3870
3858
  "standard",
@@ -3873,13 +3861,13 @@ function createUiButton(options = {}, html) {
3873
3861
  ], [
3874
3862
  readIndex({
3875
3863
  "true": "danger",
3876
- "false": inputRead(v[15], inputStatus(15))
3877
- }, textCall("concat", [inputRead(v[17], inputStatus(17)) === "danger"])),
3864
+ "false": inputRead(v[14], inputStatus(14))
3865
+ }, textCall("concat", [inputRead(v[16], inputStatus(16)) === "danger"])),
3878
3866
  "accent",
3879
3867
  "neutral",
3880
3868
  "neutral",
3881
3869
  "danger"
3882
- ]), inputRead(v[8], inputStatus(8)))];
3870
+ ]), inputRead(v[7], inputStatus(7)))];
3883
3871
  const g = (j) => {
3884
3872
  const i = j - 0;
3885
3873
  if (ke[i] === X.e) return v[j];
@@ -3903,7 +3891,7 @@ function createUiButton(options = {}, html) {
3903
3891
  }
3904
3892
  return next;
3905
3893
  };
3906
- let a = g(0) === "card" && v[3] === "a" ? 0 : g(0) === "card" ? 1 : v[3] === "a" ? 2 : 3;
3894
+ let a = g(0) === "card" && v[4] !== null ? 0 : g(0) === "card" ? 1 : v[4] !== null ? 2 : 3;
3907
3895
  let element;
3908
3896
  if (a === 0) {
3909
3897
  element = document.createElement("a");
@@ -4070,64 +4058,64 @@ function createUiButton(options = {}, html) {
4070
4058
  return r;
4071
4059
  };
4072
4060
  const p0 = (r, c, d) => {
4073
- if (c & 1073873152) {
4061
+ if (c & 1073807488) {
4074
4062
  const x0 = g(0);
4075
4063
  const s0 = toAttribute(x0, "data-appearance");
4076
4064
  if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
4077
4065
  }
4078
- if (c & 1073905920) {
4066
+ if (c & 1073823872) {
4079
4067
  const x1 = g(1);
4080
4068
  if (x1 !== NONCONFORMING) {
4081
4069
  const s1 = toAttribute(x1, "data-tone");
4082
4070
  if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
4083
4071
  }
4084
4072
  }
4085
- if (c & 1073742064) {
4073
+ if (c & 1073741944) {
4086
4074
  const x2 = readIndex({
4087
4075
  "true": null,
4088
- "false": v[5]
4089
- }, textCall("concat", [truthy(v[4]) || truthy(v[6]) || truthy(v[7])]));
4076
+ "false": v[4]
4077
+ }, textCall("concat", [truthy(v[3]) || truthy(v[5]) || truthy(v[6])]));
4090
4078
  if (x2 !== NONCONFORMING) {
4091
4079
  const s2 = toAttribute(x2, "href");
4092
4080
  if (s2 !== r.v2) writeUrlAttribute(r.n, "href", r.v2 = s2);
4093
4081
  }
4094
4082
  }
4095
- if (c & 16384) {
4096
- const x3 = v[14];
4083
+ if (c & 8192) {
4084
+ const x3 = v[13];
4097
4085
  const s3 = toAttribute(x3, "target");
4098
4086
  if (s3 !== r.v3) writeAttribute(r.n, "target", r.v3 = s3);
4099
4087
  }
4100
- if (c & 512) {
4101
- const x4 = v[9];
4088
+ if (c & 256) {
4089
+ const x4 = v[8];
4102
4090
  const s4 = toAttribute(x4, "rel");
4103
4091
  if (s4 !== r.v4) writeAttribute(r.n, "rel", r.v4 = s4);
4104
4092
  }
4105
- if (c & 1073742032) {
4093
+ if (c & 1073741928) {
4106
4094
  const x5 = readIndex({
4107
4095
  "true": "true",
4108
4096
  "false": null
4109
- }, textCall("concat", [truthy(v[4]) || truthy(v[6]) || truthy(v[7])]));
4097
+ }, textCall("concat", [truthy(v[3]) || truthy(v[5]) || truthy(v[6])]));
4110
4098
  if (x5 !== NONCONFORMING) {
4111
4099
  const s5 = toAttribute(x5, "aria-disabled");
4112
4100
  if (s5 !== r.v5) writeAttribute(r.n, "aria-disabled", r.v5 = s5);
4113
4101
  }
4114
4102
  }
4115
- if (c & 192) {
4116
- const x6 = truthy(v[6]) || truthy(v[7]);
4103
+ if (c & 96) {
4104
+ const x6 = truthy(v[5]) || truthy(v[6]);
4117
4105
  const s6 = toAttribute(x6, "aria-busy");
4118
4106
  if (s6 !== r.v6) writeAttribute(r.n, "aria-busy", r.v6 = s6);
4119
4107
  }
4120
- if (c & 1073742032) {
4108
+ if (c & 1073741928) {
4121
4109
  const x7 = readIndex({
4122
4110
  "true": "0",
4123
4111
  "false": null
4124
- }, textCall("concat", [(truthy(v[6]) || truthy(v[7])) && !truthy(v[4])]));
4112
+ }, textCall("concat", [(truthy(v[5]) || truthy(v[6])) && !truthy(v[3])]));
4125
4113
  if (x7 !== NONCONFORMING) {
4126
4114
  const s7 = toAttribute(x7, "tabindex");
4127
4115
  if (s7 !== r.v7) writeAttribute(r.n, "tabindex", r.v7 = s7);
4128
4116
  }
4129
4117
  }
4130
- if (c & 15556) {
4118
+ if (c & 7780) {
4131
4119
  const s8 = hostState([
4132
4120
  "align",
4133
4121
  "stretch",
@@ -4138,16 +4126,16 @@ function createUiButton(options = {}, html) {
4138
4126
  "pending"
4139
4127
  ], [
4140
4128
  v[2],
4141
- v[13],
4142
- v[11],
4143
- v[10],
4144
4129
  v[12],
4145
- v[6],
4146
- v[7]
4130
+ v[10],
4131
+ v[9],
4132
+ v[11],
4133
+ v[5],
4134
+ v[6]
4147
4135
  ]);
4148
4136
  if (s8 !== r.v8) writeAttribute(r.n, "data-ui-button-state", (r.v8 = s8) === "" ? null : s8);
4149
4137
  }
4150
- if (c & 192 && !(truthy(v[6]) || truthy(v[7])) !== !r.b0) {
4138
+ if (c & 96 && !(truthy(v[5]) || truthy(v[6])) !== !r.b0) {
4151
4139
  if (r.b0) {
4152
4140
  r.b0 = void 0;
4153
4141
  clearRegion(r.a1, r.e0);
@@ -4156,7 +4144,7 @@ function createUiButton(options = {}, html) {
4156
4144
  r.e0.before(r.b0.n);
4157
4145
  }
4158
4146
  } else if (r.b0 !== void 0) r.b0;
4159
- if (c & 192 && !!(truthy(v[6]) || truthy(v[7])) !== !r.b1) {
4147
+ if (c & 96 && !!(truthy(v[5]) || truthy(v[6])) !== !r.b1) {
4160
4148
  if (r.b1) {
4161
4149
  dispose(r.b1);
4162
4150
  r.b1 = void 0;
@@ -4228,44 +4216,44 @@ function createUiButton(options = {}, html) {
4228
4216
  return r;
4229
4217
  };
4230
4218
  const p6 = (r, c, d) => {
4231
- if (c & 1073873152) {
4219
+ if (c & 1073807488) {
4232
4220
  const x0 = g(0);
4233
4221
  const s0 = toAttribute(x0, "data-appearance");
4234
4222
  if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
4235
4223
  }
4236
- if (c & 1073905920) {
4224
+ if (c & 1073823872) {
4237
4225
  const x1 = g(1);
4238
4226
  if (x1 !== NONCONFORMING) {
4239
4227
  const s1 = toAttribute(x1, "data-tone");
4240
4228
  if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
4241
4229
  }
4242
4230
  }
4243
- if (c & 1073807360) {
4244
- const x2 = v[16];
4231
+ if (c & 1073774592) {
4232
+ const x2 = v[15];
4245
4233
  const s2 = toAttribute(x2, "type");
4246
4234
  if (s2 !== r.v2) writeAttribute(r.n, "type", r.v2 = s2);
4247
4235
  }
4248
- if (c & 16) {
4249
- const x3 = v[4];
4236
+ if (c & 8) {
4237
+ const x3 = v[3];
4250
4238
  const s3 = toAttribute(x3, "disabled");
4251
4239
  if (s3 !== r.v3) writeAttribute(r.n, "disabled", r.v3 = s3);
4252
4240
  }
4253
- if (c & 1073742016) {
4241
+ if (c & 1073741920) {
4254
4242
  const x4 = readIndex({
4255
4243
  "true": "true",
4256
4244
  "false": null
4257
- }, textCall("concat", [truthy(v[6]) || truthy(v[7])]));
4245
+ }, textCall("concat", [truthy(v[5]) || truthy(v[6])]));
4258
4246
  if (x4 !== NONCONFORMING) {
4259
4247
  const s4 = toAttribute(x4, "aria-disabled");
4260
4248
  if (s4 !== r.v4) writeAttribute(r.n, "aria-disabled", r.v4 = s4);
4261
4249
  }
4262
4250
  }
4263
- if (c & 192) {
4264
- const x5 = truthy(v[6]) || truthy(v[7]);
4251
+ if (c & 96) {
4252
+ const x5 = truthy(v[5]) || truthy(v[6]);
4265
4253
  const s5 = toAttribute(x5, "aria-busy");
4266
4254
  if (s5 !== r.v5) writeAttribute(r.n, "aria-busy", r.v5 = s5);
4267
4255
  }
4268
- if (c & 15556) {
4256
+ if (c & 7780) {
4269
4257
  const s6 = hostState([
4270
4258
  "align",
4271
4259
  "stretch",
@@ -4276,16 +4264,16 @@ function createUiButton(options = {}, html) {
4276
4264
  "pending"
4277
4265
  ], [
4278
4266
  v[2],
4279
- v[13],
4280
- v[11],
4281
- v[10],
4282
4267
  v[12],
4283
- v[6],
4284
- v[7]
4268
+ v[10],
4269
+ v[9],
4270
+ v[11],
4271
+ v[5],
4272
+ v[6]
4285
4273
  ]);
4286
4274
  if (s6 !== r.v6) writeAttribute(r.n, "data-ui-button-state", (r.v6 = s6) === "" ? null : s6);
4287
4275
  }
4288
- if (c & 192 && !(truthy(v[6]) || truthy(v[7])) !== !r.b0) {
4276
+ if (c & 96 && !(truthy(v[5]) || truthy(v[6])) !== !r.b0) {
4289
4277
  if (r.b0) {
4290
4278
  r.b0 = void 0;
4291
4279
  clearRegion(r.a1, r.e0);
@@ -4294,7 +4282,7 @@ function createUiButton(options = {}, html) {
4294
4282
  r.e0.before(r.b0.n);
4295
4283
  }
4296
4284
  } else if (r.b0 !== void 0) r.b0;
4297
- if (c & 192 && !!(truthy(v[6]) || truthy(v[7])) !== !r.b1) {
4285
+ if (c & 96 && !!(truthy(v[5]) || truthy(v[6])) !== !r.b1) {
4298
4286
  if (r.b1) {
4299
4287
  dispose(r.b1);
4300
4288
  r.b1 = void 0;
@@ -4362,64 +4350,64 @@ function createUiButton(options = {}, html) {
4362
4350
  return r;
4363
4351
  };
4364
4352
  const p12 = (r, c, d) => {
4365
- if (c & 1073873152) {
4353
+ if (c & 1073807488) {
4366
4354
  const x0 = g(0);
4367
4355
  const s0 = toAttribute(x0, "data-appearance");
4368
4356
  if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
4369
4357
  }
4370
- if (c & 1073905920) {
4358
+ if (c & 1073823872) {
4371
4359
  const x1 = g(1);
4372
4360
  if (x1 !== NONCONFORMING) {
4373
4361
  const s1 = toAttribute(x1, "data-tone");
4374
4362
  if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
4375
4363
  }
4376
4364
  }
4377
- if (c & 1073742064) {
4365
+ if (c & 1073741944) {
4378
4366
  const x2 = readIndex({
4379
4367
  "true": null,
4380
- "false": v[5]
4381
- }, textCall("concat", [truthy(v[4]) || truthy(v[6]) || truthy(v[7])]));
4368
+ "false": v[4]
4369
+ }, textCall("concat", [truthy(v[3]) || truthy(v[5]) || truthy(v[6])]));
4382
4370
  if (x2 !== NONCONFORMING) {
4383
4371
  const s2 = toAttribute(x2, "href");
4384
4372
  if (s2 !== r.v2) writeUrlAttribute(r.n, "href", r.v2 = s2);
4385
4373
  }
4386
4374
  }
4387
- if (c & 16384) {
4388
- const x3 = v[14];
4375
+ if (c & 8192) {
4376
+ const x3 = v[13];
4389
4377
  const s3 = toAttribute(x3, "target");
4390
4378
  if (s3 !== r.v3) writeAttribute(r.n, "target", r.v3 = s3);
4391
4379
  }
4392
- if (c & 512) {
4393
- const x4 = v[9];
4380
+ if (c & 256) {
4381
+ const x4 = v[8];
4394
4382
  const s4 = toAttribute(x4, "rel");
4395
4383
  if (s4 !== r.v4) writeAttribute(r.n, "rel", r.v4 = s4);
4396
4384
  }
4397
- if (c & 1073742032) {
4385
+ if (c & 1073741928) {
4398
4386
  const x5 = readIndex({
4399
4387
  "true": "true",
4400
4388
  "false": null
4401
- }, textCall("concat", [truthy(v[4]) || truthy(v[6]) || truthy(v[7])]));
4389
+ }, textCall("concat", [truthy(v[3]) || truthy(v[5]) || truthy(v[6])]));
4402
4390
  if (x5 !== NONCONFORMING) {
4403
4391
  const s5 = toAttribute(x5, "aria-disabled");
4404
4392
  if (s5 !== r.v5) writeAttribute(r.n, "aria-disabled", r.v5 = s5);
4405
4393
  }
4406
4394
  }
4407
- if (c & 192) {
4408
- const x6 = truthy(v[6]) || truthy(v[7]);
4395
+ if (c & 96) {
4396
+ const x6 = truthy(v[5]) || truthy(v[6]);
4409
4397
  const s6 = toAttribute(x6, "aria-busy");
4410
4398
  if (s6 !== r.v6) writeAttribute(r.n, "aria-busy", r.v6 = s6);
4411
4399
  }
4412
- if (c & 1073742032) {
4400
+ if (c & 1073741928) {
4413
4401
  const x7 = readIndex({
4414
4402
  "true": "0",
4415
4403
  "false": null
4416
- }, textCall("concat", [(truthy(v[6]) || truthy(v[7])) && !truthy(v[4])]));
4404
+ }, textCall("concat", [(truthy(v[5]) || truthy(v[6])) && !truthy(v[3])]));
4417
4405
  if (x7 !== NONCONFORMING) {
4418
4406
  const s7 = toAttribute(x7, "tabindex");
4419
4407
  if (s7 !== r.v7) writeAttribute(r.n, "tabindex", r.v7 = s7);
4420
4408
  }
4421
4409
  }
4422
- if (c & 15556) {
4410
+ if (c & 7780) {
4423
4411
  const s8 = hostState([
4424
4412
  "align",
4425
4413
  "stretch",
@@ -4430,16 +4418,16 @@ function createUiButton(options = {}, html) {
4430
4418
  "pending"
4431
4419
  ], [
4432
4420
  v[2],
4433
- v[13],
4434
- v[11],
4435
- v[10],
4436
4421
  v[12],
4437
- v[6],
4438
- v[7]
4422
+ v[10],
4423
+ v[9],
4424
+ v[11],
4425
+ v[5],
4426
+ v[6]
4439
4427
  ]);
4440
4428
  if (s8 !== r.v8) writeAttribute(r.n, "data-ui-button-state", (r.v8 = s8) === "" ? null : s8);
4441
4429
  }
4442
- if (c & 192 && !(truthy(v[6]) || truthy(v[7])) !== !r.b0) {
4430
+ if (c & 96 && !(truthy(v[5]) || truthy(v[6])) !== !r.b0) {
4443
4431
  if (r.b0) {
4444
4432
  r.b0 = void 0;
4445
4433
  clearRegion(r.a1, r.e0);
@@ -4504,44 +4492,44 @@ function createUiButton(options = {}, html) {
4504
4492
  return r;
4505
4493
  };
4506
4494
  const p16 = (r, c, d) => {
4507
- if (c & 1073873152) {
4495
+ if (c & 1073807488) {
4508
4496
  const x0 = g(0);
4509
4497
  const s0 = toAttribute(x0, "data-appearance");
4510
4498
  if (s0 !== r.v0) writeAttribute(r.n, "data-appearance", r.v0 = s0);
4511
4499
  }
4512
- if (c & 1073905920) {
4500
+ if (c & 1073823872) {
4513
4501
  const x1 = g(1);
4514
4502
  if (x1 !== NONCONFORMING) {
4515
4503
  const s1 = toAttribute(x1, "data-tone");
4516
4504
  if (s1 !== r.v1) writeAttribute(r.n, "data-tone", r.v1 = s1);
4517
4505
  }
4518
4506
  }
4519
- if (c & 1073807360) {
4520
- const x2 = v[16];
4507
+ if (c & 1073774592) {
4508
+ const x2 = v[15];
4521
4509
  const s2 = toAttribute(x2, "type");
4522
4510
  if (s2 !== r.v2) writeAttribute(r.n, "type", r.v2 = s2);
4523
4511
  }
4524
- if (c & 16) {
4525
- const x3 = v[4];
4512
+ if (c & 8) {
4513
+ const x3 = v[3];
4526
4514
  const s3 = toAttribute(x3, "disabled");
4527
4515
  if (s3 !== r.v3) writeAttribute(r.n, "disabled", r.v3 = s3);
4528
4516
  }
4529
- if (c & 1073742016) {
4517
+ if (c & 1073741920) {
4530
4518
  const x4 = readIndex({
4531
4519
  "true": "true",
4532
4520
  "false": null
4533
- }, textCall("concat", [truthy(v[6]) || truthy(v[7])]));
4521
+ }, textCall("concat", [truthy(v[5]) || truthy(v[6])]));
4534
4522
  if (x4 !== NONCONFORMING) {
4535
4523
  const s4 = toAttribute(x4, "aria-disabled");
4536
4524
  if (s4 !== r.v4) writeAttribute(r.n, "aria-disabled", r.v4 = s4);
4537
4525
  }
4538
4526
  }
4539
- if (c & 192) {
4540
- const x5 = truthy(v[6]) || truthy(v[7]);
4527
+ if (c & 96) {
4528
+ const x5 = truthy(v[5]) || truthy(v[6]);
4541
4529
  const s5 = toAttribute(x5, "aria-busy");
4542
4530
  if (s5 !== r.v5) writeAttribute(r.n, "aria-busy", r.v5 = s5);
4543
4531
  }
4544
- if (c & 15556) {
4532
+ if (c & 7780) {
4545
4533
  const s6 = hostState([
4546
4534
  "align",
4547
4535
  "stretch",
@@ -4552,16 +4540,16 @@ function createUiButton(options = {}, html) {
4552
4540
  "pending"
4553
4541
  ], [
4554
4542
  v[2],
4555
- v[13],
4556
- v[11],
4557
- v[10],
4558
4543
  v[12],
4559
- v[6],
4560
- v[7]
4544
+ v[10],
4545
+ v[9],
4546
+ v[11],
4547
+ v[5],
4548
+ v[6]
4561
4549
  ]);
4562
4550
  if (s6 !== r.v6) writeAttribute(r.n, "data-ui-button-state", (r.v6 = s6) === "" ? null : s6);
4563
4551
  }
4564
- if (c & 192 && !(truthy(v[6]) || truthy(v[7])) !== !r.b0) {
4552
+ if (c & 96 && !(truthy(v[5]) || truthy(v[6])) !== !r.b0) {
4565
4553
  if (r.b0) {
4566
4554
  r.b0 = void 0;
4567
4555
  clearRegion(r.a1, r.e0);
@@ -4613,8 +4601,8 @@ function createUiButton(options = {}, html) {
4613
4601
  R = M[a](element, d);
4614
4602
  return;
4615
4603
  }
4616
- if (c & 1073873160) {
4617
- const t = g(0) === "card" && v[3] === "a" ? 0 : g(0) === "card" ? 1 : v[3] === "a" ? 2 : 3;
4604
+ if (c & 1073807504) {
4605
+ const t = g(0) === "card" && v[4] !== null ? 0 : g(0) === "card" ? 1 : v[4] !== null ? 2 : 3;
4618
4606
  if (t !== a) {
4619
4607
  dispose(R);
4620
4608
  for (const key in I.r) delete I.r[key];
@@ -4637,7 +4625,6 @@ function createUiButton(options = {}, html) {
4637
4625
  }
4638
4626
  defineComponent$1("ui-button", createUiButton, [
4639
4627
  "align",
4640
- "as",
4641
4628
  "disabled",
4642
4629
  "href",
4643
4630
  "loading",
@@ -12223,7 +12210,6 @@ var tableOfContentsNodeView = ({ editor, node, getPos }) => {
12223
12210
  children: items.map(({ entry, children }) => {
12224
12211
  const item = document.createElement("li");
12225
12212
  const link = createUiButton({
12226
- as: "a",
12227
12213
  href: `#${entry.id}`,
12228
12214
  variant: "link",
12229
12215
  tone: "neutral",