@voidable/ui 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.d.ts +90 -8
  2. package/dist/ui.js +495 -236
  3. package/package.json +1 -1
package/dist/ui.js CHANGED
@@ -18,7 +18,7 @@ function s(e, t, n, r) {
18
18
  //#region src/components/badge.ts
19
19
  var c = class extends o {
20
20
  constructor(...e) {
21
- super(...e), this.color = "default", this.size = "md";
21
+ super(...e), this.color = "default", this.variant = "filled", this.size = "md";
22
22
  }
23
23
  connectedCallback() {
24
24
  super.connectedCallback(), this.setAttribute("role", "status");
@@ -30,6 +30,9 @@ s([r({
30
30
  })], c.prototype, "color", void 0), s([r({
31
31
  type: String,
32
32
  reflect: !0
33
+ })], c.prototype, "variant", void 0), s([r({
34
+ type: String,
35
+ reflect: !0
33
36
  })], c.prototype, "size", void 0), customElements.get("void-badge") || customElements.define("void-badge", c);
34
37
  //#endregion
35
38
  //#region src/components/button.ts
@@ -108,7 +111,7 @@ s([r({
108
111
  })], u.prototype, "orientation", void 0), customElements.get("void-divider") || customElements.define("void-divider", u);
109
112
  //#endregion
110
113
  //#region src/components/spinner.ts
111
- var d = class extends o {
114
+ var ee = class extends o {
112
115
  constructor(...e) {
113
116
  super(...e), this.size = "md", this.label = "Loading";
114
117
  }
@@ -125,13 +128,13 @@ var d = class extends o {
125
128
  s([r({
126
129
  type: String,
127
130
  reflect: !0
128
- })], d.prototype, "size", void 0), s([r({
131
+ })], ee.prototype, "size", void 0), s([r({
129
132
  type: String,
130
133
  reflect: !0
131
- })], d.prototype, "label", void 0), customElements.get("void-spinner") || customElements.define("void-spinner", d);
134
+ })], ee.prototype, "label", void 0), customElements.get("void-spinner") || customElements.define("void-spinner", ee);
132
135
  //#endregion
133
136
  //#region src/components/skeleton.ts
134
- var ee = class extends o {
137
+ var te = class extends o {
135
138
  constructor(...e) {
136
139
  super(...e), this.variant = "text";
137
140
  }
@@ -142,10 +145,10 @@ var ee = class extends o {
142
145
  s([r({
143
146
  type: String,
144
147
  reflect: !0
145
- })], ee.prototype, "variant", void 0), customElements.get("void-skeleton") || customElements.define("void-skeleton", ee);
148
+ })], te.prototype, "variant", void 0), customElements.get("void-skeleton") || customElements.define("void-skeleton", te);
146
149
  //#endregion
147
150
  //#region src/components/status-dot.ts
148
- var te = class extends o {
151
+ var ne = class extends o {
149
152
  constructor(...e) {
150
153
  super(...e), this.status = "offline";
151
154
  }
@@ -166,10 +169,10 @@ var te = class extends o {
166
169
  s([r({
167
170
  type: String,
168
171
  reflect: !0
169
- })], te.prototype, "status", void 0), customElements.get("void-status-dot") || customElements.define("void-status-dot", te);
172
+ })], ne.prototype, "status", void 0), customElements.get("void-status-dot") || customElements.define("void-status-dot", ne);
170
173
  //#endregion
171
174
  //#region src/components/switch.ts
172
- var f = class extends o {
175
+ var d = class extends o {
173
176
  constructor(...e) {
174
177
  super(...e), this.checked = !1, this.disabled = !1, this.color = "default", this.size = "md", this._handleClick = () => {
175
178
  this.disabled || (this.checked = !this.checked, this.dispatchEvent(new CustomEvent("void-change", {
@@ -197,19 +200,19 @@ var f = class extends o {
197
200
  s([r({
198
201
  type: Boolean,
199
202
  reflect: !0
200
- })], f.prototype, "checked", void 0), s([r({
203
+ })], d.prototype, "checked", void 0), s([r({
201
204
  type: Boolean,
202
205
  reflect: !0
203
- })], f.prototype, "disabled", void 0), s([r({
206
+ })], d.prototype, "disabled", void 0), s([r({
204
207
  type: String,
205
208
  reflect: !0
206
- })], f.prototype, "color", void 0), s([r({
209
+ })], d.prototype, "color", void 0), s([r({
207
210
  type: String,
208
211
  reflect: !0
209
- })], f.prototype, "size", void 0), customElements.get("void-switch") || customElements.define("void-switch", f);
212
+ })], d.prototype, "size", void 0), customElements.get("void-switch") || customElements.define("void-switch", d);
210
213
  //#endregion
211
214
  //#region src/components/avatar.ts
212
- var p = class extends o {
215
+ var f = class extends o {
213
216
  constructor(...e) {
214
217
  super(...e), this.src = "", this.alt = "", this.initials = "", this.size = "md", this._onImgError = () => {
215
218
  this.src = "";
@@ -228,19 +231,19 @@ var p = class extends o {
228
231
  s([r({
229
232
  type: String,
230
233
  reflect: !0
231
- })], p.prototype, "src", void 0), s([r({
234
+ })], f.prototype, "src", void 0), s([r({
232
235
  type: String,
233
236
  reflect: !0
234
- })], p.prototype, "alt", void 0), s([r({
237
+ })], f.prototype, "alt", void 0), s([r({
235
238
  type: String,
236
239
  reflect: !0
237
- })], p.prototype, "initials", void 0), s([r({
240
+ })], f.prototype, "initials", void 0), s([r({
238
241
  type: String,
239
242
  reflect: !0
240
- })], p.prototype, "size", void 0), customElements.get("void-avatar") || customElements.define("void-avatar", p);
243
+ })], f.prototype, "size", void 0), customElements.get("void-avatar") || customElements.define("void-avatar", f);
241
244
  //#endregion
242
245
  //#region src/components/alert.ts
243
- var m = class extends o {
246
+ var p = class extends o {
244
247
  constructor(...e) {
245
248
  super(...e), this.color = "default", this.dismissible = !1, this.variant = "subtle", this._userContent = [], this._didSetup = !1;
246
249
  }
@@ -266,16 +269,16 @@ var m = class extends o {
266
269
  s([r({
267
270
  type: String,
268
271
  reflect: !0
269
- })], m.prototype, "color", void 0), s([r({
272
+ })], p.prototype, "color", void 0), s([r({
270
273
  type: Boolean,
271
274
  reflect: !0
272
- })], m.prototype, "dismissible", void 0), s([r({
275
+ })], p.prototype, "dismissible", void 0), s([r({
273
276
  type: String,
274
277
  reflect: !0
275
- })], m.prototype, "variant", void 0), customElements.get("void-alert") || customElements.define("void-alert", m);
278
+ })], p.prototype, "variant", void 0), customElements.get("void-alert") || customElements.define("void-alert", p);
276
279
  //#endregion
277
280
  //#region src/components/tag.ts
278
- var h = class extends o {
281
+ var m = class extends o {
279
282
  constructor(...e) {
280
283
  super(...e), this.color = "default", this.removable = !1, this.size = "md", this._userContent = [], this._didSetup = !1;
281
284
  }
@@ -302,16 +305,16 @@ var h = class extends o {
302
305
  s([r({
303
306
  type: String,
304
307
  reflect: !0
305
- })], h.prototype, "color", void 0), s([r({
308
+ })], m.prototype, "color", void 0), s([r({
306
309
  type: Boolean,
307
310
  reflect: !0
308
- })], h.prototype, "removable", void 0), s([r({
311
+ })], m.prototype, "removable", void 0), s([r({
309
312
  type: String,
310
313
  reflect: !0
311
- })], h.prototype, "size", void 0), customElements.get("void-tag") || customElements.define("void-tag", h);
314
+ })], m.prototype, "size", void 0), customElements.get("void-tag") || customElements.define("void-tag", m);
312
315
  //#endregion
313
316
  //#region src/components/progress.ts
314
- var g = class extends o {
317
+ var h = class extends o {
315
318
  constructor(...e) {
316
319
  super(...e), this.value = 0, this.max = 100, this.color = "default", this.size = "md", this.indeterminate = !1;
317
320
  }
@@ -323,28 +326,28 @@ var g = class extends o {
323
326
  }
324
327
  render() {
325
328
  let e = Math.min(100, Math.max(0, this.value / this.max * 100));
326
- return t`<div class="void-progress-track"><div class="void-progress-fill" style="width: ${this.indeterminate ? "" : e + "%"}"></div></div>`;
329
+ return t`<div class="void-progress-track"><div class="void-progress-fill" style="--void-progress-fill: ${this.indeterminate ? "0%" : e + "%"}"></div></div>`;
327
330
  }
328
331
  };
329
332
  s([r({
330
333
  type: Number,
331
334
  reflect: !0
332
- })], g.prototype, "value", void 0), s([r({
335
+ })], h.prototype, "value", void 0), s([r({
333
336
  type: Number,
334
337
  reflect: !0
335
- })], g.prototype, "max", void 0), s([r({
338
+ })], h.prototype, "max", void 0), s([r({
336
339
  type: String,
337
340
  reflect: !0
338
- })], g.prototype, "color", void 0), s([r({
341
+ })], h.prototype, "color", void 0), s([r({
339
342
  type: String,
340
343
  reflect: !0
341
- })], g.prototype, "size", void 0), s([r({
344
+ })], h.prototype, "size", void 0), s([r({
342
345
  type: Boolean,
343
346
  reflect: !0
344
- })], g.prototype, "indeterminate", void 0), customElements.get("void-progress") || customElements.define("void-progress", g);
347
+ })], h.prototype, "indeterminate", void 0), customElements.get("void-progress") || customElements.define("void-progress", h);
345
348
  //#endregion
346
349
  //#region src/components/panel.ts
347
- var _ = class extends o {
350
+ var g = class extends o {
348
351
  constructor(...e) {
349
352
  super(...e), this.label = "", this.variant = "default", this._userContent = [], this._didSetup = !1;
350
353
  }
@@ -364,13 +367,13 @@ var _ = class extends o {
364
367
  s([r({
365
368
  type: String,
366
369
  reflect: !0
367
- })], _.prototype, "label", void 0), s([r({
370
+ })], g.prototype, "label", void 0), s([r({
368
371
  type: String,
369
372
  reflect: !0
370
- })], _.prototype, "variant", void 0), customElements.get("void-panel") || customElements.define("void-panel", _);
373
+ })], g.prototype, "variant", void 0), customElements.get("void-panel") || customElements.define("void-panel", g);
371
374
  //#endregion
372
375
  //#region src/components/input.ts
373
- var v = class extends o {
376
+ var _ = class extends o {
374
377
  constructor(...e) {
375
378
  super(...e), this.type = "text", this.value = "", this.placeholder = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.name = "", this.size = "md", this.error = "";
376
379
  }
@@ -414,31 +417,31 @@ var v = class extends o {
414
417
  s([r({
415
418
  type: String,
416
419
  reflect: !0
417
- })], v.prototype, "type", void 0), s([r({ type: String })], v.prototype, "value", void 0), s([r({
420
+ })], _.prototype, "type", void 0), s([r({ type: String })], _.prototype, "value", void 0), s([r({
418
421
  type: String,
419
422
  reflect: !0
420
- })], v.prototype, "placeholder", void 0), s([r({
423
+ })], _.prototype, "placeholder", void 0), s([r({
421
424
  type: Boolean,
422
425
  reflect: !0
423
- })], v.prototype, "disabled", void 0), s([r({
426
+ })], _.prototype, "disabled", void 0), s([r({
424
427
  type: Boolean,
425
428
  reflect: !0
426
- })], v.prototype, "readonly", void 0), s([r({
429
+ })], _.prototype, "readonly", void 0), s([r({
427
430
  type: Boolean,
428
431
  reflect: !0
429
- })], v.prototype, "required", void 0), s([r({
432
+ })], _.prototype, "required", void 0), s([r({
430
433
  type: String,
431
434
  reflect: !0
432
- })], v.prototype, "name", void 0), s([r({
435
+ })], _.prototype, "name", void 0), s([r({
433
436
  type: String,
434
437
  reflect: !0
435
- })], v.prototype, "size", void 0), s([r({
438
+ })], _.prototype, "size", void 0), s([r({
436
439
  type: String,
437
440
  reflect: !0
438
- })], v.prototype, "error", void 0), customElements.get("void-input") || customElements.define("void-input", v);
441
+ })], _.prototype, "error", void 0), customElements.get("void-input") || customElements.define("void-input", _);
439
442
  //#endregion
440
443
  //#region src/components/textarea.ts
441
- var y = class extends o {
444
+ var v = class extends o {
442
445
  constructor(...e) {
443
446
  super(...e), this.value = "", this.placeholder = "", this.disabled = !1, this.readonly = !1, this.required = !1, this.name = "", this.rows = 3, this.resize = "vertical", this.size = "md", this.error = "";
444
447
  }
@@ -455,7 +458,7 @@ var y = class extends o {
455
458
  ?required=${this.required}
456
459
  name=${this.name}
457
460
  rows=${this.rows}
458
- style="resize: ${this.resize}"
461
+ style="--void-textarea-resize: ${this.resize}"
459
462
  aria-invalid=${this.error ? "true" : "false"}
460
463
  @input=${this._onInput}
461
464
  @change=${this._onChange}
@@ -480,37 +483,37 @@ var y = class extends o {
480
483
  }));
481
484
  }
482
485
  };
483
- s([r({ type: String })], y.prototype, "value", void 0), s([r({
486
+ s([r({ type: String })], v.prototype, "value", void 0), s([r({
484
487
  type: String,
485
488
  reflect: !0
486
- })], y.prototype, "placeholder", void 0), s([r({
489
+ })], v.prototype, "placeholder", void 0), s([r({
487
490
  type: Boolean,
488
491
  reflect: !0
489
- })], y.prototype, "disabled", void 0), s([r({
492
+ })], v.prototype, "disabled", void 0), s([r({
490
493
  type: Boolean,
491
494
  reflect: !0
492
- })], y.prototype, "readonly", void 0), s([r({
495
+ })], v.prototype, "readonly", void 0), s([r({
493
496
  type: Boolean,
494
497
  reflect: !0
495
- })], y.prototype, "required", void 0), s([r({
498
+ })], v.prototype, "required", void 0), s([r({
496
499
  type: String,
497
500
  reflect: !0
498
- })], y.prototype, "name", void 0), s([r({
501
+ })], v.prototype, "name", void 0), s([r({
499
502
  type: Number,
500
503
  reflect: !0
501
- })], y.prototype, "rows", void 0), s([r({
504
+ })], v.prototype, "rows", void 0), s([r({
502
505
  type: String,
503
506
  reflect: !0
504
- })], y.prototype, "resize", void 0), s([r({
507
+ })], v.prototype, "resize", void 0), s([r({
505
508
  type: String,
506
509
  reflect: !0
507
- })], y.prototype, "size", void 0), s([r({
510
+ })], v.prototype, "size", void 0), s([r({
508
511
  type: String,
509
512
  reflect: !0
510
- })], y.prototype, "error", void 0), customElements.get("void-textarea") || customElements.define("void-textarea", y);
513
+ })], v.prototype, "error", void 0), customElements.get("void-textarea") || customElements.define("void-textarea", v);
511
514
  //#endregion
512
515
  //#region src/components/select.ts
513
- var b = class extends o {
516
+ var y = class extends o {
514
517
  constructor(...e) {
515
518
  super(...e), this.value = "", this.disabled = !1, this.required = !1, this.name = "", this.size = "md", this.error = "", this.placeholder = "", this._options = [], this._didSetup = !1;
516
519
  }
@@ -548,28 +551,28 @@ var b = class extends o {
548
551
  }));
549
552
  }
550
553
  };
551
- s([r({ type: String })], b.prototype, "value", void 0), s([r({
554
+ s([r({ type: String })], y.prototype, "value", void 0), s([r({
552
555
  type: Boolean,
553
556
  reflect: !0
554
- })], b.prototype, "disabled", void 0), s([r({
557
+ })], y.prototype, "disabled", void 0), s([r({
555
558
  type: Boolean,
556
559
  reflect: !0
557
- })], b.prototype, "required", void 0), s([r({
560
+ })], y.prototype, "required", void 0), s([r({
558
561
  type: String,
559
562
  reflect: !0
560
- })], b.prototype, "name", void 0), s([r({
563
+ })], y.prototype, "name", void 0), s([r({
561
564
  type: String,
562
565
  reflect: !0
563
- })], b.prototype, "size", void 0), s([r({
566
+ })], y.prototype, "size", void 0), s([r({
564
567
  type: String,
565
568
  reflect: !0
566
- })], b.prototype, "error", void 0), s([r({
569
+ })], y.prototype, "error", void 0), s([r({
567
570
  type: String,
568
571
  reflect: !0
569
- })], b.prototype, "placeholder", void 0), customElements.get("void-select") || customElements.define("void-select", b);
572
+ })], y.prototype, "placeholder", void 0), customElements.get("void-select") || customElements.define("void-select", y);
570
573
  //#endregion
571
574
  //#region src/components/checkbox.ts
572
- var x = class extends o {
575
+ var b = class extends o {
573
576
  constructor(...e) {
574
577
  super(...e), this.checked = !1, this.disabled = !1, this.indeterminate = !1, this.name = "", this.value = "", this.color = "default", this.size = "md", this._userContent = [], this._didSetup = !1, this._handleClick = (e) => {
575
578
  if (this.disabled) {
@@ -603,8 +606,8 @@ var x = class extends o {
603
606
  return t`
604
607
  <input type="checkbox" .checked=${this.checked} .indeterminate=${this.indeterminate} ?disabled=${this.disabled} name=${this.name} value=${this.value} tabindex="-1" aria-hidden="true" />
605
608
  <span class="void-checkbox-box">
606
- ${this.checked ? t`<svg viewBox="0 0 12 12" fill="none"><path d="M2.5 6l2.5 2.5 4.5-5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>` : ""}
607
- ${this.indeterminate && !this.checked ? t`<svg viewBox="0 0 12 12" fill="none"><path d="M3 6h6" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg>` : ""}
609
+ ${this.checked ? t`<svg viewBox="0 0 12 12" fill="none"><path d="M2.5 6l2.5 2.5 4.5-5" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round"/></svg>` : ""}
610
+ ${this.indeterminate && !this.checked ? t`<svg viewBox="0 0 12 12" fill="none"><path d="M3 6h6" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round"/></svg>` : ""}
608
611
  </span>
609
612
  `;
610
613
  }
@@ -612,28 +615,28 @@ var x = class extends o {
612
615
  s([r({
613
616
  type: Boolean,
614
617
  reflect: !0
615
- })], x.prototype, "checked", void 0), s([r({
618
+ })], b.prototype, "checked", void 0), s([r({
616
619
  type: Boolean,
617
620
  reflect: !0
618
- })], x.prototype, "disabled", void 0), s([r({
621
+ })], b.prototype, "disabled", void 0), s([r({
619
622
  type: Boolean,
620
623
  reflect: !0
621
- })], x.prototype, "indeterminate", void 0), s([r({
624
+ })], b.prototype, "indeterminate", void 0), s([r({
622
625
  type: String,
623
626
  reflect: !0
624
- })], x.prototype, "name", void 0), s([r({
627
+ })], b.prototype, "name", void 0), s([r({
625
628
  type: String,
626
629
  reflect: !0
627
- })], x.prototype, "value", void 0), s([r({
630
+ })], b.prototype, "value", void 0), s([r({
628
631
  type: String,
629
632
  reflect: !0
630
- })], x.prototype, "color", void 0), s([r({
633
+ })], b.prototype, "color", void 0), s([r({
631
634
  type: String,
632
635
  reflect: !0
633
- })], x.prototype, "size", void 0), customElements.get("void-checkbox") || customElements.define("void-checkbox", x);
636
+ })], b.prototype, "size", void 0), customElements.get("void-checkbox") || customElements.define("void-checkbox", b);
634
637
  //#endregion
635
638
  //#region src/components/radio.ts
636
- var S = class extends o {
639
+ var x = class extends o {
637
640
  constructor(...e) {
638
641
  super(...e), this.checked = !1, this.disabled = !1, this.name = "", this.value = "", this.color = "default", this.size = "md", this._userContent = [], this._didSetup = !1, this._handleClick = (e) => {
639
642
  if (this.disabled || this.checked) {
@@ -678,25 +681,25 @@ var S = class extends o {
678
681
  s([r({
679
682
  type: Boolean,
680
683
  reflect: !0
681
- })], S.prototype, "checked", void 0), s([r({
684
+ })], x.prototype, "checked", void 0), s([r({
682
685
  type: Boolean,
683
686
  reflect: !0
684
- })], S.prototype, "disabled", void 0), s([r({
687
+ })], x.prototype, "disabled", void 0), s([r({
685
688
  type: String,
686
689
  reflect: !0
687
- })], S.prototype, "name", void 0), s([r({
690
+ })], x.prototype, "name", void 0), s([r({
688
691
  type: String,
689
692
  reflect: !0
690
- })], S.prototype, "value", void 0), s([r({
693
+ })], x.prototype, "value", void 0), s([r({
691
694
  type: String,
692
695
  reflect: !0
693
- })], S.prototype, "color", void 0), s([r({
696
+ })], x.prototype, "color", void 0), s([r({
694
697
  type: String,
695
698
  reflect: !0
696
- })], S.prototype, "size", void 0), customElements.get("void-radio") || customElements.define("void-radio", S);
699
+ })], x.prototype, "size", void 0), customElements.get("void-radio") || customElements.define("void-radio", x);
697
700
  //#endregion
698
701
  //#region src/components/radio-group.ts
699
- var C = class extends o {
702
+ var S = class extends o {
700
703
  constructor(...e) {
701
704
  super(...e), this.label = "", this.value = "", this.name = "", this.orientation = "vertical", this._userContent = [], this._didSetup = !1, this._handleChildChange = (e) => {
702
705
  let t = e.target;
@@ -741,13 +744,13 @@ var C = class extends o {
741
744
  `;
742
745
  }
743
746
  };
744
- s([r({ type: String })], C.prototype, "label", void 0), s([r({ type: String })], C.prototype, "value", void 0), s([r({ type: String })], C.prototype, "name", void 0), s([r({
747
+ s([r({ type: String })], S.prototype, "label", void 0), s([r({ type: String })], S.prototype, "value", void 0), s([r({ type: String })], S.prototype, "name", void 0), s([r({
745
748
  type: String,
746
749
  reflect: !0
747
- })], C.prototype, "orientation", void 0), customElements.get("void-radio-group") || customElements.define("void-radio-group", C);
750
+ })], S.prototype, "orientation", void 0), customElements.get("void-radio-group") || customElements.define("void-radio-group", S);
748
751
  //#endregion
749
752
  //#region src/components/field.ts
750
- var w = class extends o {
753
+ var C = class extends o {
751
754
  constructor(...e) {
752
755
  super(...e), this.label = "", this.error = "", this.helper = "", this.required = !1, this._userContent = [], this._didSetup = !1;
753
756
  }
@@ -772,34 +775,31 @@ var w = class extends o {
772
775
  s([r({
773
776
  type: String,
774
777
  reflect: !0
775
- })], w.prototype, "label", void 0), s([r({
778
+ })], C.prototype, "label", void 0), s([r({
776
779
  type: String,
777
780
  reflect: !0
778
- })], w.prototype, "error", void 0), s([r({
781
+ })], C.prototype, "error", void 0), s([r({
779
782
  type: String,
780
783
  reflect: !0
781
- })], w.prototype, "helper", void 0), s([r({
784
+ })], C.prototype, "helper", void 0), s([r({
782
785
  type: Boolean,
783
786
  reflect: !0
784
- })], w.prototype, "required", void 0), customElements.get("void-field") || customElements.define("void-field", w);
787
+ })], C.prototype, "required", void 0), customElements.get("void-field") || customElements.define("void-field", C);
785
788
  //#endregion
786
789
  //#region src/components/multiselect.ts
787
- var T = class extends o {
790
+ var w = class extends o {
788
791
  constructor(...e) {
789
792
  super(...e), this.value = "", this.selected = !1;
790
793
  }
791
- render() {
792
- return n;
793
- }
794
794
  };
795
795
  s([r({
796
796
  type: String,
797
797
  reflect: !0
798
- })], T.prototype, "value", void 0), s([r({
798
+ })], w.prototype, "value", void 0), s([r({
799
799
  type: Boolean,
800
800
  reflect: !0
801
- })], T.prototype, "selected", void 0), customElements.get("void-option") || customElements.define("void-option", T);
802
- var E = class extends o {
801
+ })], w.prototype, "selected", void 0), customElements.get("void-option") || customElements.define("void-option", w);
802
+ var T = class extends o {
803
803
  constructor(...e) {
804
804
  super(...e), this.placeholder = "Select...", this.disabled = !1, this.size = "md", this.error = "", this.name = "", this._open = !1, this._options = [], this._didSetup = !1, this._onTriggerClick = (e) => {
805
805
  this.disabled || (e.stopPropagation(), this._open = !this._open, this.requestUpdate());
@@ -859,7 +859,7 @@ var E = class extends o {
859
859
  }}
860
860
  >
861
861
  <span class="void-multiselect-checkbox">
862
- ${e.selected ? t`<svg viewBox="0 0 12 12" fill="none"><path d="M2.5 6l2.5 2.5 4.5-5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>` : n}
862
+ ${e.selected ? t`<svg viewBox="0 0 12 12" fill="none"><path d="M2.5 6l2.5 2.5 4.5-5" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round"/></svg>` : n}
863
863
  </span>
864
864
  <span class="void-multiselect-option-label">${e.textContent?.trim() || e.value}</span>
865
865
  </div>
@@ -884,22 +884,22 @@ var E = class extends o {
884
884
  }));
885
885
  }
886
886
  };
887
- s([r({ type: String })], E.prototype, "placeholder", void 0), s([r({
887
+ s([r({ type: String })], T.prototype, "placeholder", void 0), s([r({
888
888
  type: Boolean,
889
889
  reflect: !0
890
- })], E.prototype, "disabled", void 0), s([r({
890
+ })], T.prototype, "disabled", void 0), s([r({
891
891
  type: String,
892
892
  reflect: !0
893
- })], E.prototype, "size", void 0), s([r({
893
+ })], T.prototype, "size", void 0), s([r({
894
894
  type: String,
895
895
  reflect: !0
896
- })], E.prototype, "error", void 0), s([r({
896
+ })], T.prototype, "error", void 0), s([r({
897
897
  type: String,
898
898
  reflect: !0
899
- })], E.prototype, "name", void 0), customElements.get("void-multiselect") || customElements.define("void-multiselect", E);
899
+ })], T.prototype, "name", void 0), customElements.get("void-multiselect") || customElements.define("void-multiselect", T);
900
900
  //#endregion
901
901
  //#region src/components/dialog.ts
902
- var D = class extends o {
902
+ var E = class extends o {
903
903
  constructor(...e) {
904
904
  super(...e), this.open = !1, this.heading = "", this.size = "md", this.closable = !0, this._userContent = [], this._didSetup = !1, this._handleKeydown = (e) => {
905
905
  e.key === "Escape" && this.closable && this._close();
@@ -950,13 +950,13 @@ var D = class extends o {
950
950
  s([r({
951
951
  type: Boolean,
952
952
  reflect: !0
953
- })], D.prototype, "open", void 0), s([r({ type: String })], D.prototype, "heading", void 0), s([r({
953
+ })], E.prototype, "open", void 0), s([r({ type: String })], E.prototype, "heading", void 0), s([r({
954
954
  type: String,
955
955
  reflect: !0
956
- })], D.prototype, "size", void 0), s([r({ type: Boolean })], D.prototype, "closable", void 0), customElements.get("void-dialog") || customElements.define("void-dialog", D);
956
+ })], E.prototype, "size", void 0), s([r({ type: Boolean })], E.prototype, "closable", void 0), customElements.get("void-dialog") || customElements.define("void-dialog", E);
957
957
  //#endregion
958
958
  //#region src/components/tabs.ts
959
- var O = class extends o {
959
+ var D = class extends o {
960
960
  constructor(...e) {
961
961
  super(...e), this.tab = "", this.label = "", this.active = !1;
962
962
  }
@@ -966,21 +966,18 @@ var O = class extends o {
966
966
  updated(e) {
967
967
  super.updated(e), this.setAttribute("role", "tabpanel"), e.has("tab") && this.tab && (this.id = this.tab);
968
968
  }
969
- render() {
970
- return n;
971
- }
972
969
  };
973
970
  s([r({
974
971
  type: String,
975
972
  reflect: !0
976
- })], O.prototype, "tab", void 0), s([r({
973
+ })], D.prototype, "tab", void 0), s([r({
977
974
  type: String,
978
975
  reflect: !0
979
- })], O.prototype, "label", void 0), s([r({
976
+ })], D.prototype, "label", void 0), s([r({
980
977
  type: Boolean,
981
978
  reflect: !0
982
- })], O.prototype, "active", void 0), customElements.get("void-tab-panel") || customElements.define("void-tab-panel", O);
983
- var k = class extends o {
979
+ })], D.prototype, "active", void 0), customElements.get("void-tab-panel") || customElements.define("void-tab-panel", D);
980
+ var O = class extends o {
984
981
  constructor(...e) {
985
982
  super(...e), this.value = "", this.size = "md", this._panels = [];
986
983
  }
@@ -1009,7 +1006,6 @@ var k = class extends o {
1009
1006
  >${e.label || e.tab}</button>
1010
1007
  `)}
1011
1008
  </div>
1012
- <slot></slot>
1013
1009
  `;
1014
1010
  }
1015
1011
  _onTabClick(e) {
@@ -1024,30 +1020,27 @@ var k = class extends o {
1024
1020
  e.key === "ArrowRight" ? (e.preventDefault(), n[(t + 1) % n.length].focus()) : e.key === "ArrowLeft" && (e.preventDefault(), n[(t - 1 + n.length) % n.length].focus());
1025
1021
  }
1026
1022
  };
1027
- s([r({ type: String })], k.prototype, "value", void 0), s([r({
1023
+ s([r({ type: String })], O.prototype, "value", void 0), s([r({
1028
1024
  type: String,
1029
1025
  reflect: !0
1030
- })], k.prototype, "size", void 0), customElements.get("void-tabs") || customElements.define("void-tabs", k);
1026
+ })], O.prototype, "size", void 0), customElements.get("void-tabs") || customElements.define("void-tabs", O);
1031
1027
  //#endregion
1032
1028
  //#region src/components/accordion.ts
1033
- var A = class extends o {
1029
+ var k = class extends o {
1034
1030
  constructor(...e) {
1035
1031
  super(...e), this.multiple = !1;
1036
1032
  }
1037
- render() {
1038
- return t`<slot></slot>`;
1039
- }
1040
1033
  };
1041
1034
  s([r({
1042
1035
  type: Boolean,
1043
1036
  reflect: !0
1044
- })], A.prototype, "multiple", void 0), customElements.get("void-accordion") || customElements.define("void-accordion", A);
1045
- var j = class extends o {
1037
+ })], k.prototype, "multiple", void 0), customElements.get("void-accordion") || customElements.define("void-accordion", k);
1038
+ var A = class extends o {
1046
1039
  constructor(...e) {
1047
1040
  super(...e), this.heading = "", this.open = !1, this._id = Math.random().toString(36).slice(2), this._userContent = [], this._didSetup = !1, this._handleClick = (e) => {
1048
1041
  e.preventDefault(), this.open = !this.open;
1049
1042
  let t = this.parentElement;
1050
- if (t instanceof A && !t.multiple) {
1043
+ if (t instanceof k && !t.multiple) {
1051
1044
  let e = Array.from(t.querySelectorAll("void-accordion-item"));
1052
1045
  for (let t of e) t !== this && (t.open = !1);
1053
1046
  }
@@ -1082,7 +1075,7 @@ var j = class extends o {
1082
1075
  >
1083
1076
  ${this.heading}
1084
1077
  <svg class="void-accordion-chevron" viewBox="0 0 16 16" fill="none" aria-hidden="true">
1085
- <path d="M6 4l4 4-4 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1078
+ <path d="M6 4l4 4-4 4" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round"/>
1086
1079
  </svg>
1087
1080
  </button>
1088
1081
  <div
@@ -1094,13 +1087,13 @@ var j = class extends o {
1094
1087
  `;
1095
1088
  }
1096
1089
  };
1097
- s([r({ type: String })], j.prototype, "heading", void 0), s([r({
1090
+ s([r({ type: String })], A.prototype, "heading", void 0), s([r({
1098
1091
  type: Boolean,
1099
1092
  reflect: !0
1100
- })], j.prototype, "open", void 0), customElements.get("void-accordion-item") || customElements.define("void-accordion-item", j);
1093
+ })], A.prototype, "open", void 0), customElements.get("void-accordion-item") || customElements.define("void-accordion-item", A);
1101
1094
  //#endregion
1102
1095
  //#region src/components/breadcrumbs.ts
1103
- var M = class extends o {
1096
+ var re = class extends o {
1104
1097
  constructor(...e) {
1105
1098
  super(...e), this.separator = "/", this._items = [], this._didSetup = !1;
1106
1099
  }
@@ -1125,25 +1118,22 @@ var M = class extends o {
1125
1118
  return t`<ol class="void-breadcrumbs-list"></ol>`;
1126
1119
  }
1127
1120
  };
1128
- s([r({ type: String })], M.prototype, "separator", void 0), customElements.get("void-breadcrumbs") || customElements.define("void-breadcrumbs", M);
1121
+ s([r({ type: String })], re.prototype, "separator", void 0), customElements.get("void-breadcrumbs") || customElements.define("void-breadcrumbs", re);
1129
1122
  //#endregion
1130
1123
  //#region src/components/list.ts
1131
- var N = class extends o {
1124
+ var ie = class extends o {
1132
1125
  constructor(...e) {
1133
1126
  super(...e), this.dividers = !1;
1134
1127
  }
1135
1128
  connectedCallback() {
1136
1129
  super.connectedCallback(), this.setAttribute("role", "list");
1137
1130
  }
1138
- render() {
1139
- return n;
1140
- }
1141
1131
  };
1142
1132
  s([r({
1143
1133
  type: Boolean,
1144
1134
  reflect: !0
1145
- })], N.prototype, "dividers", void 0), customElements.get("void-list") || customElements.define("void-list", N);
1146
- var P = class extends o {
1135
+ })], ie.prototype, "dividers", void 0), customElements.get("void-list") || customElements.define("void-list", ie);
1136
+ var j = class extends o {
1147
1137
  constructor(...e) {
1148
1138
  super(...e), this.selected = !1, this.disabled = !1, this.interactive = !1, this._handleClick = () => {
1149
1139
  this.disabled || this.dispatchEvent(new CustomEvent("void-click", {
@@ -1159,23 +1149,20 @@ var P = class extends o {
1159
1149
  updated(e) {
1160
1150
  super.updated(e), e.has("interactive") && (this.interactive ? this.addEventListener("click", this._handleClick) : this.removeEventListener("click", this._handleClick));
1161
1151
  }
1162
- render() {
1163
- return n;
1164
- }
1165
1152
  };
1166
1153
  s([r({
1167
1154
  type: Boolean,
1168
1155
  reflect: !0
1169
- })], P.prototype, "selected", void 0), s([r({
1156
+ })], j.prototype, "selected", void 0), s([r({
1170
1157
  type: Boolean,
1171
1158
  reflect: !0
1172
- })], P.prototype, "disabled", void 0), s([r({
1159
+ })], j.prototype, "disabled", void 0), s([r({
1173
1160
  type: Boolean,
1174
1161
  reflect: !0
1175
- })], P.prototype, "interactive", void 0), customElements.get("void-list-item") || customElements.define("void-list-item", P);
1162
+ })], j.prototype, "interactive", void 0), customElements.get("void-list-item") || customElements.define("void-list-item", j);
1176
1163
  //#endregion
1177
1164
  //#region src/components/toast.ts
1178
- var F = class extends o {
1165
+ var M = class extends o {
1179
1166
  constructor(...e) {
1180
1167
  super(...e), this.color = "default", this.duration = 5e3, this.dismissable = !0, this.heading = "";
1181
1168
  }
@@ -1194,7 +1181,6 @@ var F = class extends o {
1194
1181
  render() {
1195
1182
  return t`
1196
1183
  ${this.heading ? t`<span class='void-toast-heading'>${this.heading}</span>` : n}
1197
- <slot></slot>
1198
1184
  ${this.dismissable ? t`<button class='void-toast-close' aria-label='Close' @click='${this._close}'>&times;</button>` : n}
1199
1185
  `;
1200
1186
  }
@@ -1202,20 +1188,17 @@ var F = class extends o {
1202
1188
  s([r({
1203
1189
  type: String,
1204
1190
  reflect: !0
1205
- })], F.prototype, "color", void 0), s([r({ type: Number })], F.prototype, "duration", void 0), s([r({
1191
+ })], M.prototype, "color", void 0), s([r({ type: Number })], M.prototype, "duration", void 0), s([r({
1206
1192
  type: Boolean,
1207
1193
  reflect: !0
1208
- })], F.prototype, "dismissable", void 0), s([r({ type: String })], F.prototype, "heading", void 0), customElements.get("void-toast") || customElements.define("void-toast", F);
1209
- var I = class extends o {
1194
+ })], M.prototype, "dismissable", void 0), s([r({ type: String })], M.prototype, "heading", void 0), customElements.get("void-toast") || customElements.define("void-toast", M);
1195
+ var ae = class extends o {
1210
1196
  constructor(...e) {
1211
1197
  super(...e), this.position = "bottom-right";
1212
1198
  }
1213
1199
  connectedCallback() {
1214
1200
  super.connectedCallback(), this.setAttribute("role", "region"), this.setAttribute("aria-label", "Notifications"), this.setAttribute("aria-live", "polite");
1215
1201
  }
1216
- render() {
1217
- return n;
1218
- }
1219
1202
  static show(e) {
1220
1203
  let t = document.querySelector("void-toast-container");
1221
1204
  t || (t = document.createElement("void-toast-container"), document.body.appendChild(t));
@@ -1226,10 +1209,10 @@ var I = class extends o {
1226
1209
  s([r({
1227
1210
  type: String,
1228
1211
  reflect: !0
1229
- })], I.prototype, "position", void 0), customElements.get("void-toast-container") || customElements.define("void-toast-container", I);
1212
+ })], ae.prototype, "position", void 0), customElements.get("void-toast-container") || customElements.define("void-toast-container", ae);
1230
1213
  //#endregion
1231
1214
  //#region src/components/stepper.ts
1232
- var L = class extends o {
1215
+ var N = class extends o {
1233
1216
  constructor(...e) {
1234
1217
  super(...e), this.value = 0, this.steps = "";
1235
1218
  }
@@ -1247,11 +1230,11 @@ var L = class extends o {
1247
1230
  <span class="void-stepper-circle"
1248
1231
  >${i === "completed" ? t`<svg
1249
1232
  viewBox="0 0 12 12"
1250
- width="12"
1251
- height="12"
1233
+ width="1em"
1234
+ height="1em"
1252
1235
  fill="none"
1253
1236
  stroke="currentColor"
1254
- stroke-width="2"
1237
+ stroke-width="var(--void-icon-stroke-width)"
1255
1238
  stroke-linecap="round"
1256
1239
  stroke-linejoin="round"
1257
1240
  >
@@ -1266,10 +1249,10 @@ var L = class extends o {
1266
1249
  s([r({
1267
1250
  type: Number,
1268
1251
  reflect: !0
1269
- })], L.prototype, "value", void 0), s([r({ reflect: !0 })], L.prototype, "steps", void 0), customElements.get("void-stepper") || customElements.define("void-stepper", L);
1252
+ })], N.prototype, "value", void 0), s([r({ reflect: !0 })], N.prototype, "steps", void 0), customElements.get("void-stepper") || customElements.define("void-stepper", N);
1270
1253
  //#endregion
1271
1254
  //#region src/components/drawer.ts
1272
- var R = class extends o {
1255
+ var P = class extends o {
1273
1256
  constructor(...e) {
1274
1257
  super(...e), this.open = !1, this.side = "right", this.size = "md", this.heading = "", this.closable = !0, this._userContent = [], this._didSetup = !1, this._handleKeydown = (e) => {
1275
1258
  e.key === "Escape" && this.open && this.closable && this._close();
@@ -1314,19 +1297,19 @@ var R = class extends o {
1314
1297
  s([r({
1315
1298
  type: Boolean,
1316
1299
  reflect: !0
1317
- })], R.prototype, "open", void 0), s([r({
1300
+ })], P.prototype, "open", void 0), s([r({
1318
1301
  type: String,
1319
1302
  reflect: !0
1320
- })], R.prototype, "side", void 0), s([r({
1303
+ })], P.prototype, "side", void 0), s([r({
1321
1304
  type: String,
1322
1305
  reflect: !0
1323
- })], R.prototype, "size", void 0), s([r({ type: String })], R.prototype, "heading", void 0), s([r({
1306
+ })], P.prototype, "size", void 0), s([r({ type: String })], P.prototype, "heading", void 0), s([r({
1324
1307
  type: Boolean,
1325
1308
  reflect: !0
1326
- })], R.prototype, "closable", void 0), customElements.get("void-drawer") || customElements.define("void-drawer", R);
1309
+ })], P.prototype, "closable", void 0), customElements.get("void-drawer") || customElements.define("void-drawer", P);
1327
1310
  //#endregion
1328
1311
  //#region src/components/card.ts
1329
- var z = class extends o {
1312
+ var F = class extends o {
1330
1313
  constructor(...e) {
1331
1314
  super(...e), this.heading = "", this.variant = "default", this.padding = "md", this._userContent = [], this._didSetup = !1;
1332
1315
  }
@@ -1344,16 +1327,16 @@ var z = class extends o {
1344
1327
  return t`${this.heading ? t`<div class="void-card-header"><span class="void-card-heading">${this.heading}</span></div>` : n}<div class="void-card-body"></div>`;
1345
1328
  }
1346
1329
  };
1347
- s([r({ type: String })], z.prototype, "heading", void 0), s([r({
1330
+ s([r({ type: String })], F.prototype, "heading", void 0), s([r({
1348
1331
  type: String,
1349
1332
  reflect: !0
1350
- })], z.prototype, "variant", void 0), s([r({
1333
+ })], F.prototype, "variant", void 0), s([r({
1351
1334
  type: String,
1352
1335
  reflect: !0
1353
- })], z.prototype, "padding", void 0), customElements.get("void-card") || customElements.define("void-card", z);
1336
+ })], F.prototype, "padding", void 0), customElements.get("void-card") || customElements.define("void-card", F);
1354
1337
  //#endregion
1355
1338
  //#region src/components/popover.ts
1356
- var B = class extends o {
1339
+ var I = class extends o {
1357
1340
  constructor(...e) {
1358
1341
  super(...e), this.open = !1, this.position = "bottom", this.trigger = "click", this._triggerEl = null, this._contentNodes = [], this._didSetup = !1, this._handleTriggerClick = () => {
1359
1342
  this.open = !this.open, this.open || this._dispatchClose();
@@ -1364,7 +1347,7 @@ var B = class extends o {
1364
1347
  };
1365
1348
  }
1366
1349
  connectedCallback() {
1367
- super.connectedCallback(), this._didSetup || (this._triggerEl = this.children[0] ?? null, this._contentNodes = Array.from(this.childNodes).slice(+!!this._triggerEl)), document.addEventListener("mousedown", this._handleOutsideClick), document.addEventListener("keydown", this._handleKeydown);
1350
+ super.connectedCallback(), this._didSetup || (this._triggerEl = this.children[0] ?? null, this._contentNodes = Array.from(this.childNodes).filter((e) => e !== this._triggerEl)), document.addEventListener("mousedown", this._handleOutsideClick), document.addEventListener("keydown", this._handleKeydown);
1368
1351
  }
1369
1352
  disconnectedCallback() {
1370
1353
  super.disconnectedCallback(), document.removeEventListener("mousedown", this._handleOutsideClick), document.removeEventListener("keydown", this._handleKeydown);
@@ -1388,23 +1371,20 @@ var B = class extends o {
1388
1371
  composed: !0
1389
1372
  }));
1390
1373
  }
1391
- render() {
1392
- return n;
1393
- }
1394
1374
  };
1395
1375
  s([r({
1396
1376
  type: Boolean,
1397
1377
  reflect: !0
1398
- })], B.prototype, "open", void 0), s([r({
1378
+ })], I.prototype, "open", void 0), s([r({
1399
1379
  type: String,
1400
1380
  reflect: !0
1401
- })], B.prototype, "position", void 0), s([r({
1381
+ })], I.prototype, "position", void 0), s([r({
1402
1382
  type: String,
1403
1383
  reflect: !0
1404
- })], B.prototype, "trigger", void 0), customElements.get("void-popover") || customElements.define("void-popover", B);
1384
+ })], I.prototype, "trigger", void 0), customElements.get("void-popover") || customElements.define("void-popover", I);
1405
1385
  //#endregion
1406
1386
  //#region src/components/tooltip.ts
1407
- var V = class extends o {
1387
+ var L = class extends o {
1408
1388
  constructor(...e) {
1409
1389
  super(...e), this.text = "", this.position = "top", this.delay = 200, this._visible = !1, this._tooltipId = "void-tooltip-" + Math.random().toString(36).slice(2), this._userContent = [], this._didSetup = !1, this._onMouseEnter = () => {
1410
1390
  clearTimeout(this._timerId), this._timerId = setTimeout(() => {
@@ -1419,7 +1399,7 @@ var V = class extends o {
1419
1399
  };
1420
1400
  }
1421
1401
  connectedCallback() {
1422
- this._userContent = Array.from(this.childNodes), super.connectedCallback(), this.style.display = "inline-flex", this.style.position = "relative", this.addEventListener("mouseenter", this._onMouseEnter), this.addEventListener("mouseleave", this._onMouseLeave), this.addEventListener("focusin", this._onFocusIn), this.addEventListener("focusout", this._onFocusOut);
1402
+ this._userContent = Array.from(this.childNodes), super.connectedCallback(), this.addEventListener("mouseenter", this._onMouseEnter), this.addEventListener("mouseleave", this._onMouseLeave), this.addEventListener("focusin", this._onFocusIn), this.addEventListener("focusout", this._onFocusOut);
1423
1403
  }
1424
1404
  disconnectedCallback() {
1425
1405
  super.disconnectedCallback(), clearTimeout(this._timerId), this.removeEventListener("mouseenter", this._onMouseEnter), this.removeEventListener("mouseleave", this._onMouseLeave), this.removeEventListener("focusin", this._onFocusIn), this.removeEventListener("focusout", this._onFocusOut);
@@ -1438,13 +1418,13 @@ var V = class extends o {
1438
1418
  return t`<span id="${this._tooltipId}" class="void-tooltip-bubble" role="tooltip" aria-label=${this.text}>${this.text}</span>`;
1439
1419
  }
1440
1420
  };
1441
- s([r({ type: String })], V.prototype, "text", void 0), s([r({
1421
+ s([r({ type: String })], L.prototype, "text", void 0), s([r({
1442
1422
  type: String,
1443
1423
  reflect: !0
1444
- })], V.prototype, "position", void 0), s([r({ type: Number })], V.prototype, "delay", void 0), s([a()], V.prototype, "_visible", void 0), customElements.get("void-tooltip") || customElements.define("void-tooltip", V);
1424
+ })], L.prototype, "position", void 0), s([r({ type: Number })], L.prototype, "delay", void 0), s([a()], L.prototype, "_visible", void 0), customElements.get("void-tooltip") || customElements.define("void-tooltip", L);
1445
1425
  //#endregion
1446
1426
  //#region src/components/banner.ts
1447
- var H = class extends o {
1427
+ var R = class extends o {
1448
1428
  constructor(...e) {
1449
1429
  super(...e), this.color = "default", this.dismissable = !1, this.variant = "subtle", this._userContent = [], this._didSetup = !1;
1450
1430
  }
@@ -1470,16 +1450,16 @@ var H = class extends o {
1470
1450
  s([r({
1471
1451
  type: String,
1472
1452
  reflect: !0
1473
- })], H.prototype, "color", void 0), s([r({
1453
+ })], R.prototype, "color", void 0), s([r({
1474
1454
  type: Boolean,
1475
1455
  reflect: !0
1476
- })], H.prototype, "dismissable", void 0), s([r({
1456
+ })], R.prototype, "dismissable", void 0), s([r({
1477
1457
  type: String,
1478
1458
  reflect: !0
1479
- })], H.prototype, "variant", void 0), customElements.get("void-banner") || customElements.define("void-banner", H);
1459
+ })], R.prototype, "variant", void 0), customElements.get("void-banner") || customElements.define("void-banner", R);
1480
1460
  //#endregion
1481
1461
  //#region src/components/scroll-area.ts
1482
- var U = class extends o {
1462
+ var z = class extends o {
1483
1463
  constructor(...e) {
1484
1464
  super(...e), this.maxHeight = "", this.direction = "vertical", this._userContent = [], this._didSetup = !1;
1485
1465
  }
@@ -1492,43 +1472,39 @@ var U = class extends o {
1492
1472
  let e = this.querySelector(".void-scroll-area-viewport");
1493
1473
  for (let t of this._userContent) e.appendChild(t);
1494
1474
  }
1495
- let t = this.querySelector(".void-scroll-area-viewport");
1496
- t && (t.style.maxHeight = this.maxHeight || "");
1475
+ this.style.setProperty("--void-scroll-area-max-height", this.maxHeight || "");
1497
1476
  }
1498
1477
  render() {
1499
1478
  return t`<div class="void-scroll-area-viewport"></div>`;
1500
1479
  }
1501
1480
  };
1502
- s([r({ type: String })], U.prototype, "maxHeight", void 0), s([r({
1481
+ s([r({ type: String })], z.prototype, "maxHeight", void 0), s([r({
1503
1482
  type: String,
1504
1483
  reflect: !0
1505
- })], U.prototype, "direction", void 0), customElements.get("void-scroll-area") || customElements.define("void-scroll-area", U);
1484
+ })], z.prototype, "direction", void 0), customElements.get("void-scroll-area") || customElements.define("void-scroll-area", z);
1506
1485
  //#endregion
1507
1486
  //#region src/components/table.ts
1508
- var W = class extends o {
1487
+ var B = class extends o {
1509
1488
  constructor(...e) {
1510
1489
  super(...e), this.striped = !1, this.hoverable = !1, this.compact = !1, this.bordered = !1;
1511
1490
  }
1512
- render() {
1513
- return n;
1514
- }
1515
1491
  };
1516
1492
  s([r({
1517
1493
  type: Boolean,
1518
1494
  reflect: !0
1519
- })], W.prototype, "striped", void 0), s([r({
1495
+ })], B.prototype, "striped", void 0), s([r({
1520
1496
  type: Boolean,
1521
1497
  reflect: !0
1522
- })], W.prototype, "hoverable", void 0), s([r({
1498
+ })], B.prototype, "hoverable", void 0), s([r({
1523
1499
  type: Boolean,
1524
1500
  reflect: !0
1525
- })], W.prototype, "compact", void 0), s([r({
1501
+ })], B.prototype, "compact", void 0), s([r({
1526
1502
  type: Boolean,
1527
1503
  reflect: !0
1528
- })], W.prototype, "bordered", void 0), customElements.get("void-table") || customElements.define("void-table", W);
1504
+ })], B.prototype, "bordered", void 0), customElements.get("void-table") || customElements.define("void-table", B);
1529
1505
  //#endregion
1530
1506
  //#region src/components/pagination.ts
1531
- var G = class extends o {
1507
+ var V = class extends o {
1532
1508
  constructor(...e) {
1533
1509
  super(...e), this.total = 1, this.value = 1, this.siblings = 1, this.size = "md";
1534
1510
  }
@@ -1573,16 +1549,16 @@ var G = class extends o {
1573
1549
  `;
1574
1550
  }
1575
1551
  };
1576
- s([r({ type: Number })], G.prototype, "total", void 0), s([r({
1552
+ s([r({ type: Number })], V.prototype, "total", void 0), s([r({
1577
1553
  type: Number,
1578
1554
  reflect: !0
1579
- })], G.prototype, "value", void 0), s([r({ type: Number })], G.prototype, "siblings", void 0), s([r({
1555
+ })], V.prototype, "value", void 0), s([r({ type: Number })], V.prototype, "siblings", void 0), s([r({
1580
1556
  type: String,
1581
1557
  reflect: !0
1582
- })], G.prototype, "size", void 0), customElements.get("void-pagination") || customElements.define("void-pagination", G);
1558
+ })], V.prototype, "size", void 0), customElements.get("void-pagination") || customElements.define("void-pagination", V);
1583
1559
  //#endregion
1584
1560
  //#region src/components/error-fallback.ts
1585
- var K = class extends o {
1561
+ var H = class extends o {
1586
1562
  constructor(...e) {
1587
1563
  super(...e), this.heading = "Something went wrong", this.message = "", this.retryable = !1, this.retryLabel = "Try again", this.icon = !0;
1588
1564
  }
@@ -1606,13 +1582,13 @@ var K = class extends o {
1606
1582
  `;
1607
1583
  }
1608
1584
  };
1609
- s([r({ type: String })], K.prototype, "heading", void 0), s([r({ type: String })], K.prototype, "message", void 0), s([r({
1585
+ s([r({ type: String })], H.prototype, "heading", void 0), s([r({ type: String })], H.prototype, "message", void 0), s([r({
1610
1586
  type: Boolean,
1611
1587
  reflect: !0
1612
- })], K.prototype, "retryable", void 0), s([r({ type: String })], K.prototype, "retryLabel", void 0), s([r({ type: Boolean })], K.prototype, "icon", void 0), customElements.get("void-error-fallback") || customElements.define("void-error-fallback", K);
1588
+ })], H.prototype, "retryable", void 0), s([r({ type: String })], H.prototype, "retryLabel", void 0), s([r({ type: Boolean })], H.prototype, "icon", void 0), customElements.get("void-error-fallback") || customElements.define("void-error-fallback", H);
1613
1589
  //#endregion
1614
1590
  //#region src/components/checkbox-group.ts
1615
- var q = class extends o {
1591
+ var U = class extends o {
1616
1592
  constructor(...e) {
1617
1593
  super(...e), this.label = "", this.orientation = "vertical", this._userContent = [], this._didSetup = !1, this._handleChildChange = (e) => {
1618
1594
  let t = e.target;
@@ -1649,13 +1625,13 @@ var q = class extends o {
1649
1625
  s([r({
1650
1626
  type: String,
1651
1627
  reflect: !0
1652
- })], q.prototype, "label", void 0), s([r({
1628
+ })], U.prototype, "label", void 0), s([r({
1653
1629
  type: String,
1654
1630
  reflect: !0
1655
- })], q.prototype, "orientation", void 0), customElements.get("void-checkbox-group") || customElements.define("void-checkbox-group", q);
1631
+ })], U.prototype, "orientation", void 0), customElements.get("void-checkbox-group") || customElements.define("void-checkbox-group", U);
1656
1632
  //#endregion
1657
1633
  //#region src/components/combobox.ts
1658
- var J = class extends o {
1634
+ var W = class extends o {
1659
1635
  constructor(...e) {
1660
1636
  super(...e), this.value = "", this.placeholder = "Search...", this.disabled = !1, this.size = "md", this.error = "", this.name = "", this._open = !1, this._query = "", this._options = [], this._onInputFocus = () => {
1661
1637
  this.disabled || (this._open = !0, this._query = "", this.requestUpdate());
@@ -1724,22 +1700,22 @@ var J = class extends o {
1724
1700
  }));
1725
1701
  }
1726
1702
  };
1727
- s([r({ type: String })], J.prototype, "value", void 0), s([r({ type: String })], J.prototype, "placeholder", void 0), s([r({
1703
+ s([r({ type: String })], W.prototype, "value", void 0), s([r({ type: String })], W.prototype, "placeholder", void 0), s([r({
1728
1704
  type: Boolean,
1729
1705
  reflect: !0
1730
- })], J.prototype, "disabled", void 0), s([r({
1706
+ })], W.prototype, "disabled", void 0), s([r({
1731
1707
  type: String,
1732
1708
  reflect: !0
1733
- })], J.prototype, "size", void 0), s([r({
1709
+ })], W.prototype, "size", void 0), s([r({
1734
1710
  type: String,
1735
1711
  reflect: !0
1736
- })], J.prototype, "error", void 0), s([r({
1712
+ })], W.prototype, "error", void 0), s([r({
1737
1713
  type: String,
1738
1714
  reflect: !0
1739
- })], J.prototype, "name", void 0), customElements.get("void-combobox") || customElements.define("void-combobox", J);
1715
+ })], W.prototype, "name", void 0), customElements.get("void-combobox") || customElements.define("void-combobox", W);
1740
1716
  //#endregion
1741
1717
  //#region src/components/slider.ts
1742
- var Y = class extends o {
1718
+ var G = class extends o {
1743
1719
  constructor(...e) {
1744
1720
  super(...e), this.value = 50, this.min = 0, this.max = 100, this.step = 1, this.disabled = !1, this.name = "", this.showValue = !1, this.size = "md";
1745
1721
  }
@@ -1787,22 +1763,22 @@ var Y = class extends o {
1787
1763
  `;
1788
1764
  }
1789
1765
  };
1790
- s([r({ type: Number })], Y.prototype, "value", void 0), s([r({ type: Number })], Y.prototype, "min", void 0), s([r({ type: Number })], Y.prototype, "max", void 0), s([r({ type: Number })], Y.prototype, "step", void 0), s([r({
1766
+ s([r({ type: Number })], G.prototype, "value", void 0), s([r({ type: Number })], G.prototype, "min", void 0), s([r({ type: Number })], G.prototype, "max", void 0), s([r({ type: Number })], G.prototype, "step", void 0), s([r({
1791
1767
  type: Boolean,
1792
1768
  reflect: !0
1793
- })], Y.prototype, "disabled", void 0), s([r({
1769
+ })], G.prototype, "disabled", void 0), s([r({
1794
1770
  type: String,
1795
1771
  reflect: !0
1796
- })], Y.prototype, "name", void 0), s([r({
1772
+ })], G.prototype, "name", void 0), s([r({
1797
1773
  type: Boolean,
1798
1774
  reflect: !0
1799
- })], Y.prototype, "showValue", void 0), s([r({
1775
+ })], G.prototype, "showValue", void 0), s([r({
1800
1776
  type: String,
1801
1777
  reflect: !0
1802
- })], Y.prototype, "size", void 0), customElements.get("void-slider") || customElements.define("void-slider", Y);
1778
+ })], G.prototype, "size", void 0), customElements.get("void-slider") || customElements.define("void-slider", G);
1803
1779
  //#endregion
1804
1780
  //#region src/components/file-upload.ts
1805
- var X = class extends o {
1781
+ var K = class extends o {
1806
1782
  constructor(...e) {
1807
1783
  super(...e), this.accept = "", this.multiple = !1, this.disabled = !1, this.maxSize = 0, this.error = "", this._files = [], this._onDropzoneClick = () => {
1808
1784
  this.disabled || this._input?.click();
@@ -1883,19 +1859,19 @@ var X = class extends o {
1883
1859
  }));
1884
1860
  }
1885
1861
  };
1886
- s([r({ type: String })], X.prototype, "accept", void 0), s([r({
1862
+ s([r({ type: String })], K.prototype, "accept", void 0), s([r({
1887
1863
  type: Boolean,
1888
1864
  reflect: !0
1889
- })], X.prototype, "multiple", void 0), s([r({
1865
+ })], K.prototype, "multiple", void 0), s([r({
1890
1866
  type: Boolean,
1891
1867
  reflect: !0
1892
- })], X.prototype, "disabled", void 0), s([r({ type: Number })], X.prototype, "maxSize", void 0), s([r({
1868
+ })], K.prototype, "disabled", void 0), s([r({ type: Number })], K.prototype, "maxSize", void 0), s([r({
1893
1869
  type: String,
1894
1870
  reflect: !0
1895
- })], X.prototype, "error", void 0), customElements.get("void-file-upload") || customElements.define("void-file-upload", X);
1871
+ })], K.prototype, "error", void 0), customElements.get("void-file-upload") || customElements.define("void-file-upload", K);
1896
1872
  //#endregion
1897
1873
  //#region src/components/nav-bar.ts
1898
- var Z = class extends o {
1874
+ var q = class extends o {
1899
1875
  constructor(...e) {
1900
1876
  super(...e), this.sticky = !1, this.bordered = !0, this.variant = "default", this._userContent = [], this._didSetup = !1;
1901
1877
  }
@@ -1916,16 +1892,16 @@ var Z = class extends o {
1916
1892
  s([r({
1917
1893
  type: Boolean,
1918
1894
  reflect: !0
1919
- })], Z.prototype, "sticky", void 0), s([r({
1895
+ })], q.prototype, "sticky", void 0), s([r({
1920
1896
  type: Boolean,
1921
1897
  reflect: !0
1922
- })], Z.prototype, "bordered", void 0), s([r({
1898
+ })], q.prototype, "bordered", void 0), s([r({
1923
1899
  type: String,
1924
1900
  reflect: !0
1925
- })], Z.prototype, "variant", void 0), customElements.get("void-nav-bar") || customElements.define("void-nav-bar", Z);
1901
+ })], q.prototype, "variant", void 0), customElements.get("void-nav-bar") || customElements.define("void-nav-bar", q);
1926
1902
  //#endregion
1927
1903
  //#region src/components/hamburger.ts
1928
- var Q = class extends o {
1904
+ var oe = class extends o {
1929
1905
  constructor(...e) {
1930
1906
  super(...e), this.active = !1, this.size = "md", this._handleClick = () => {
1931
1907
  this.active = !this.active, this.dispatchEvent(new CustomEvent("void-toggle", {
@@ -1959,13 +1935,13 @@ var Q = class extends o {
1959
1935
  s([r({
1960
1936
  type: Boolean,
1961
1937
  reflect: !0
1962
- })], Q.prototype, "active", void 0), s([r({
1938
+ })], oe.prototype, "active", void 0), s([r({
1963
1939
  type: String,
1964
1940
  reflect: !0
1965
- })], Q.prototype, "size", void 0), customElements.get("void-hamburger") || customElements.define("void-hamburger", Q);
1941
+ })], oe.prototype, "size", void 0), customElements.get("void-hamburger") || customElements.define("void-hamburger", oe);
1966
1942
  //#endregion
1967
1943
  //#region src/components/compose-input.ts
1968
- var $ = class extends o {
1944
+ var J = class extends o {
1969
1945
  constructor(...e) {
1970
1946
  super(...e), this.value = "", this.placeholder = "Type a message...", this.disabled = !1, this.maxlength = 0;
1971
1947
  }
@@ -1990,7 +1966,7 @@ var $ = class extends o {
1990
1966
  aria-label="Send"
1991
1967
  >
1992
1968
  <svg viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
1993
- <path d="M2 8L14 8M14 8L9 3M14 8L9 13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
1969
+ <path d="M2 8L14 8M14 8L9 3M14 8L9 13" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round"/>
1994
1970
  </svg>
1995
1971
  </button>
1996
1972
  </div>
@@ -1998,7 +1974,9 @@ var $ = class extends o {
1998
1974
  }
1999
1975
  _onInput(e) {
2000
1976
  let t = e.target;
2001
- this.value = t.value, t.style.height = "auto", t.style.height = `${t.scrollHeight}px`, this.dispatchEvent(new CustomEvent("void-input", {
1977
+ this.value = t.value, t.style.height = "auto";
1978
+ let n = t.scrollHeight;
1979
+ t.style.height = "", this.style.setProperty("--void-compose-input-height", `${n}px`), this.dispatchEvent(new CustomEvent("void-input", {
2002
1980
  bubbles: !0,
2003
1981
  composed: !0,
2004
1982
  detail: { value: this.value }
@@ -2010,22 +1988,303 @@ var $ = class extends o {
2010
1988
  _onSend() {
2011
1989
  if (this.disabled || !this.value) return;
2012
1990
  let e = this.value;
2013
- this.value = "", this._textarea && (this._textarea.style.height = "auto"), this.dispatchEvent(new CustomEvent("void-submit", {
1991
+ this.value = "", this._textarea && (this._textarea.style.height = "", this.style.removeProperty("--void-compose-input-height")), this.dispatchEvent(new CustomEvent("void-submit", {
2014
1992
  bubbles: !0,
2015
1993
  composed: !0,
2016
1994
  detail: { value: e }
2017
1995
  }));
2018
1996
  }
2019
1997
  };
2020
- s([r({ type: String })], $.prototype, "value", void 0), s([r({
1998
+ s([r({ type: String })], J.prototype, "value", void 0), s([r({
1999
+ type: String,
2000
+ reflect: !0
2001
+ })], J.prototype, "placeholder", void 0), s([r({
2002
+ type: Boolean,
2003
+ reflect: !0
2004
+ })], J.prototype, "disabled", void 0), s([r({
2005
+ type: Number,
2006
+ reflect: !0
2007
+ })], J.prototype, "maxlength", void 0), s([i(".void-compose-input-textarea")], J.prototype, "_textarea", void 0), customElements.get("void-compose-input") || customElements.define("void-compose-input", J);
2008
+ //#endregion
2009
+ //#region src/components/sidebar.ts
2010
+ var Y = class extends o {
2011
+ constructor(...e) {
2012
+ super(...e), this.collapsed = !1, this.width = "var(--void-sidebar-width)", this.collapsedWidth = "var(--void-sidebar-collapsed-width)", this.position = "left";
2013
+ }
2014
+ connectedCallback() {
2015
+ super.connectedCallback(), this.setAttribute("role", "navigation"), this.setAttribute("aria-label", "Sidebar navigation"), this._updateWidth();
2016
+ }
2017
+ disconnectedCallback() {
2018
+ super.disconnectedCallback();
2019
+ }
2020
+ updated(e) {
2021
+ e.has("collapsed") && (this._updateWidth(), this.dispatchEvent(new CustomEvent("void-toggle", {
2022
+ bubbles: !0,
2023
+ composed: !0,
2024
+ detail: { collapsed: this.collapsed }
2025
+ }))), (e.has("width") || e.has("collapsedWidth")) && this._updateWidth();
2026
+ }
2027
+ _updateWidth() {
2028
+ this.style.setProperty("--void-sidebar-width", this.collapsed ? this.collapsedWidth : this.width);
2029
+ }
2030
+ };
2031
+ s([r({
2032
+ type: Boolean,
2033
+ reflect: !0
2034
+ })], Y.prototype, "collapsed", void 0), s([r({
2035
+ type: String,
2036
+ reflect: !0
2037
+ })], Y.prototype, "width", void 0), s([r({
2038
+ type: String,
2039
+ reflect: !0
2040
+ })], Y.prototype, "collapsedWidth", void 0), s([r({
2041
+ type: String,
2042
+ reflect: !0
2043
+ })], Y.prototype, "position", void 0), customElements.get("void-sidebar") || customElements.define("void-sidebar", Y);
2044
+ //#endregion
2045
+ //#region src/components/toggle.ts
2046
+ var X = class extends o {
2047
+ constructor(...e) {
2048
+ super(...e), this.pressed = !1, this.disabled = !1, this.color = "default", this.size = "md", this.variant = "outline", this._handleClick = () => {
2049
+ this.disabled || (this.pressed = !this.pressed, this.dispatchEvent(new CustomEvent("void-change", {
2050
+ bubbles: !0,
2051
+ composed: !0,
2052
+ detail: { pressed: this.pressed }
2053
+ })));
2054
+ }, this._handleKeydown = (e) => {
2055
+ (e.key === " " || e.key === "Enter") && !this.disabled && (e.preventDefault(), this._handleClick());
2056
+ };
2057
+ }
2058
+ connectedCallback() {
2059
+ super.connectedCallback(), this.setAttribute("role", "button"), this.setAttribute("tabindex", this.disabled ? "-1" : "0"), this.setAttribute("aria-pressed", String(this.pressed)), this.addEventListener("click", this._handleClick), this.addEventListener("keydown", this._handleKeydown);
2060
+ }
2061
+ disconnectedCallback() {
2062
+ super.disconnectedCallback(), this.removeEventListener("click", this._handleClick), this.removeEventListener("keydown", this._handleKeydown);
2063
+ }
2064
+ updated(e) {
2065
+ e.has("pressed") && this.setAttribute("aria-pressed", String(this.pressed)), e.has("disabled") && (this.setAttribute("aria-disabled", String(this.disabled)), this.setAttribute("tabindex", this.disabled ? "-1" : "0"));
2066
+ }
2067
+ };
2068
+ s([r({
2069
+ type: Boolean,
2070
+ reflect: !0
2071
+ })], X.prototype, "pressed", void 0), s([r({
2072
+ type: Boolean,
2073
+ reflect: !0
2074
+ })], X.prototype, "disabled", void 0), s([r({
2075
+ type: String,
2076
+ reflect: !0
2077
+ })], X.prototype, "color", void 0), s([r({
2078
+ type: String,
2079
+ reflect: !0
2080
+ })], X.prototype, "size", void 0), s([r({
2081
+ type: String,
2082
+ reflect: !0
2083
+ })], X.prototype, "variant", void 0), customElements.get("void-toggle") || customElements.define("void-toggle", X);
2084
+ //#endregion
2085
+ //#region src/components/segmented-control.ts
2086
+ var se = class extends o {
2087
+ constructor(...e) {
2088
+ super(...e), this.value = "", this.disabled = !1;
2089
+ }
2090
+ connectedCallback() {
2091
+ super.connectedCallback(), this.setAttribute("role", "radio"), this.setAttribute("tabindex", this.disabled ? "-1" : "0");
2092
+ }
2093
+ updated(e) {
2094
+ e.has("disabled") && this.setAttribute("tabindex", this.disabled ? "-1" : "0");
2095
+ }
2096
+ };
2097
+ s([r({
2098
+ type: String,
2099
+ reflect: !0
2100
+ })], se.prototype, "value", void 0), s([r({
2101
+ type: Boolean,
2102
+ reflect: !0
2103
+ })], se.prototype, "disabled", void 0), customElements.get("void-segmented-control-item") || customElements.define("void-segmented-control-item", se);
2104
+ var Z = class extends o {
2105
+ constructor(...e) {
2106
+ super(...e), this.value = "", this.size = "md", this.color = "default", this._handleClick = (e) => {
2107
+ let t = e.target.closest("void-segmented-control-item");
2108
+ !t || t.disabled || (this.value = t.value, this.dispatchEvent(new CustomEvent("void-change", {
2109
+ bubbles: !0,
2110
+ composed: !0,
2111
+ detail: { value: this.value }
2112
+ })));
2113
+ }, this._handleKeydown = (e) => {
2114
+ let t = Array.from(this.querySelectorAll("void-segmented-control-item:not([disabled])")), n = t.findIndex((e) => e.value === this.value);
2115
+ if (e.key === "ArrowRight" || e.key === "ArrowDown") {
2116
+ e.preventDefault();
2117
+ let r = (n + 1) % t.length;
2118
+ t[r].focus(), t[r].click();
2119
+ } else if (e.key === "ArrowLeft" || e.key === "ArrowUp") {
2120
+ e.preventDefault();
2121
+ let r = (n - 1 + t.length) % t.length;
2122
+ t[r].focus(), t[r].click();
2123
+ }
2124
+ };
2125
+ }
2126
+ connectedCallback() {
2127
+ super.connectedCallback(), this.setAttribute("role", "radiogroup"), this.addEventListener("click", this._handleClick), this.addEventListener("keydown", this._handleKeydown), this._syncItems();
2128
+ }
2129
+ disconnectedCallback() {
2130
+ super.disconnectedCallback(), this.removeEventListener("click", this._handleClick), this.removeEventListener("keydown", this._handleKeydown);
2131
+ }
2132
+ updated(e) {
2133
+ e.has("value") && this._syncItems();
2134
+ }
2135
+ _syncItems() {
2136
+ let e = Array.from(this.querySelectorAll("void-segmented-control-item"));
2137
+ for (let t of e) t.setAttribute("aria-checked", String(t.value === this.value));
2138
+ }
2139
+ };
2140
+ s([r({
2141
+ type: String,
2142
+ reflect: !0
2143
+ })], Z.prototype, "value", void 0), s([r({
2144
+ type: String,
2145
+ reflect: !0
2146
+ })], Z.prototype, "size", void 0), s([r({
2147
+ type: String,
2148
+ reflect: !0
2149
+ })], Z.prototype, "color", void 0), customElements.get("void-segmented-control") || customElements.define("void-segmented-control", Z);
2150
+ //#endregion
2151
+ //#region src/components/stat.ts
2152
+ var Q = class extends o {
2153
+ constructor(...e) {
2154
+ super(...e), this.label = "", this.value = "", this.delta = "", this.trend = null, this.color = "default", this.size = "md";
2155
+ }
2156
+ connectedCallback() {
2157
+ super.connectedCallback(), this.setAttribute("role", "figure");
2158
+ }
2159
+ render() {
2160
+ return t`
2161
+ ${this.label ? t`<span class="void-stat-label">${this.label}</span>` : ""}
2162
+ <span class="void-stat-value">${this.value}</span>
2163
+ ${this.delta ? t`<span class="void-stat-delta">${this.delta}</span>` : ""}
2164
+ `;
2165
+ }
2166
+ };
2167
+ s([r({
2021
2168
  type: String,
2022
2169
  reflect: !0
2023
- })], $.prototype, "placeholder", void 0), s([r({
2170
+ })], Q.prototype, "label", void 0), s([r({
2171
+ type: String,
2172
+ reflect: !0
2173
+ })], Q.prototype, "value", void 0), s([r({
2174
+ type: String,
2175
+ reflect: !0
2176
+ })], Q.prototype, "delta", void 0), s([r({
2177
+ type: String,
2178
+ reflect: !0
2179
+ })], Q.prototype, "trend", void 0), s([r({
2180
+ type: String,
2181
+ reflect: !0
2182
+ })], Q.prototype, "color", void 0), s([r({
2183
+ type: String,
2184
+ reflect: !0
2185
+ })], Q.prototype, "size", void 0), customElements.get("void-stat") || customElements.define("void-stat", Q);
2186
+ //#endregion
2187
+ //#region src/components/dropdown-menu.ts
2188
+ var ce = class extends o {
2189
+ constructor(...e) {
2190
+ super(...e), this.open = !1, this.position = "bottom-start", this._triggerEl = null, this._panel = null, this._handleTriggerClick = () => {
2191
+ this.open = !this.open;
2192
+ }, this._handleOutsideClick = (e) => {
2193
+ this.open && !this.contains(e.target) && (this.open = !1);
2194
+ }, this._handleKeydown = (e) => {
2195
+ if (e.key === "Escape" && this.open && (this.open = !1, this._triggerEl?.focus()), this.open && (e.key === "ArrowDown" || e.key === "ArrowUp")) {
2196
+ e.preventDefault();
2197
+ let t = Array.from(this.querySelectorAll("void-dropdown-menu-item:not([disabled])"));
2198
+ if (!t.length) return;
2199
+ let n = t.indexOf(document.activeElement);
2200
+ e.key === "ArrowDown" ? (t[n + 1] ?? t[0]).focus() : (t[n - 1] ?? t[t.length - 1]).focus();
2201
+ }
2202
+ };
2203
+ }
2204
+ connectedCallback() {
2205
+ super.connectedCallback(), this._triggerEl = this.children[0] ?? null, this._panel = document.createElement("div"), this._panel.className = "void-dropdown-menu-panel", this._panel.setAttribute("role", "menu");
2206
+ let e = Array.from(this.childNodes);
2207
+ for (let t of e) t !== this._triggerEl && this._panel.appendChild(t);
2208
+ this.appendChild(this._panel), this._triggerEl?.addEventListener("click", this._handleTriggerClick), document.addEventListener("mousedown", this._handleOutsideClick), document.addEventListener("keydown", this._handleKeydown);
2209
+ }
2210
+ disconnectedCallback() {
2211
+ super.disconnectedCallback(), this._triggerEl?.removeEventListener("click", this._handleTriggerClick), document.removeEventListener("mousedown", this._handleOutsideClick), document.removeEventListener("keydown", this._handleKeydown);
2212
+ }
2213
+ };
2214
+ s([r({
2024
2215
  type: Boolean,
2025
2216
  reflect: !0
2026
- })], $.prototype, "disabled", void 0), s([r({
2217
+ })], ce.prototype, "open", void 0), s([r({
2218
+ type: String,
2219
+ reflect: !0
2220
+ })], ce.prototype, "position", void 0), customElements.get("void-dropdown-menu") || customElements.define("void-dropdown-menu", ce);
2221
+ var le = class extends o {
2222
+ constructor(...e) {
2223
+ super(...e), this.disabled = !1, this.destructive = !1, this._handleClick = (e) => {
2224
+ if (this.disabled) {
2225
+ e.stopImmediatePropagation();
2226
+ return;
2227
+ }
2228
+ this.dispatchEvent(new CustomEvent("void-select", {
2229
+ bubbles: !0,
2230
+ composed: !0,
2231
+ detail: { item: this }
2232
+ }));
2233
+ }, this._handleKeydown = (e) => {
2234
+ (e.key === "Enter" || e.key === " ") && !this.disabled && (e.preventDefault(), this._handleClick(e));
2235
+ };
2236
+ }
2237
+ connectedCallback() {
2238
+ super.connectedCallback(), this.setAttribute("role", "menuitem"), this.setAttribute("tabindex", this.disabled ? "-1" : "0"), this.addEventListener("click", this._handleClick), this.addEventListener("keydown", this._handleKeydown);
2239
+ }
2240
+ disconnectedCallback() {
2241
+ super.disconnectedCallback(), this.removeEventListener("click", this._handleClick), this.removeEventListener("keydown", this._handleKeydown);
2242
+ }
2243
+ updated(e) {
2244
+ e.has("disabled") && (this.setAttribute("tabindex", this.disabled ? "-1" : "0"), this.setAttribute("aria-disabled", String(this.disabled)));
2245
+ }
2246
+ };
2247
+ s([r({
2248
+ type: Boolean,
2249
+ reflect: !0
2250
+ })], le.prototype, "disabled", void 0), s([r({
2251
+ type: Boolean,
2252
+ reflect: !0
2253
+ })], le.prototype, "destructive", void 0), customElements.get("void-dropdown-menu-item") || customElements.define("void-dropdown-menu-item", le);
2254
+ //#endregion
2255
+ //#region src/components/indicator.ts
2256
+ var $ = class extends o {
2257
+ constructor(...e) {
2258
+ super(...e), this.color = "default", this.position = "top-right", this.count = null, this.ping = !1, this.size = "md";
2259
+ }
2260
+ connectedCallback() {
2261
+ super.connectedCallback(), this.setAttribute("role", "status"), this._dot = document.createElement("span"), this._dot.className = "void-indicator-dot", this._updateDot(), this.appendChild(this._dot);
2262
+ }
2263
+ disconnectedCallback() {
2264
+ super.disconnectedCallback(), this._dot?.remove();
2265
+ }
2266
+ updated() {
2267
+ this._updateDot();
2268
+ }
2269
+ _updateDot() {
2270
+ this._dot && (this._dot.textContent = this.count == null ? "" : String(this.count), this.setAttribute("aria-label", this.count == null ? "notification" : `${this.count} notifications`));
2271
+ }
2272
+ };
2273
+ s([r({
2274
+ type: String,
2275
+ reflect: !0
2276
+ })], $.prototype, "color", void 0), s([r({
2277
+ type: String,
2278
+ reflect: !0
2279
+ })], $.prototype, "position", void 0), s([r({
2027
2280
  type: Number,
2028
2281
  reflect: !0
2029
- })], $.prototype, "maxlength", void 0), s([i(".void-compose-input-textarea")], $.prototype, "_textarea", void 0), customElements.get("void-compose-input") || customElements.define("void-compose-input", $);
2282
+ })], $.prototype, "count", void 0), s([r({
2283
+ type: Boolean,
2284
+ reflect: !0
2285
+ })], $.prototype, "ping", void 0), s([r({
2286
+ type: String,
2287
+ reflect: !0
2288
+ })], $.prototype, "size", void 0), customElements.get("void-indicator") || customElements.define("void-indicator", $);
2030
2289
  //#endregion
2031
- export { A as VoidAccordion, j as VoidAccordionItem, m as VoidAlert, p as VoidAvatar, c as VoidBadge, H as VoidBanner, M as VoidBreadcrumbs, l as VoidButton, z as VoidCard, x as VoidCheckbox, q as VoidCheckboxGroup, J as VoidCombobox, $ as VoidComposeInput, D as VoidDialog, u as VoidDivider, R as VoidDrawer, o as VoidElement, K as VoidErrorFallback, w as VoidField, X as VoidFileUpload, Q as VoidHamburger, v as VoidInput, N as VoidList, P as VoidListItem, E as VoidMultiselect, Z as VoidNavBar, T as VoidOption, G as VoidPagination, _ as VoidPanel, B as VoidPopover, g as VoidProgress, S as VoidRadio, C as VoidRadioGroup, U as VoidScrollArea, b as VoidSelect, ee as VoidSkeleton, Y as VoidSlider, d as VoidSpinner, te as VoidStatusDot, L as VoidStepper, f as VoidSwitch, O as VoidTabPanel, W as VoidTable, k as VoidTabs, h as VoidTag, y as VoidTextarea, F as VoidToast, I as VoidToastContainer, V as VoidTooltip };
2290
+ export { k as VoidAccordion, A as VoidAccordionItem, p as VoidAlert, f as VoidAvatar, c as VoidBadge, R as VoidBanner, re as VoidBreadcrumbs, l as VoidButton, F as VoidCard, b as VoidCheckbox, U as VoidCheckboxGroup, W as VoidCombobox, J as VoidComposeInput, E as VoidDialog, u as VoidDivider, P as VoidDrawer, ce as VoidDropdownMenu, le as VoidDropdownMenuItem, o as VoidElement, H as VoidErrorFallback, C as VoidField, K as VoidFileUpload, oe as VoidHamburger, $ as VoidIndicator, _ as VoidInput, ie as VoidList, j as VoidListItem, T as VoidMultiselect, q as VoidNavBar, w as VoidOption, V as VoidPagination, g as VoidPanel, I as VoidPopover, h as VoidProgress, x as VoidRadio, S as VoidRadioGroup, z as VoidScrollArea, Z as VoidSegmentedControl, se as VoidSegmentedControlItem, y as VoidSelect, Y as VoidSidebar, te as VoidSkeleton, G as VoidSlider, ee as VoidSpinner, Q as VoidStat, ne as VoidStatusDot, N as VoidStepper, d as VoidSwitch, D as VoidTabPanel, B as VoidTable, O as VoidTabs, m as VoidTag, v as VoidTextarea, M as VoidToast, ae as VoidToastContainer, X as VoidToggle, L as VoidTooltip };