@voidable/ui 0.6.0 → 0.8.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 (252) hide show
  1. package/README.md +168 -9
  2. package/dist/angular/index.d.ts +20 -0
  3. package/dist/angular/index.js +78 -0
  4. package/dist/autoloader-core.d.ts +45 -0
  5. package/dist/autoloader-table.generated.d.ts +5 -0
  6. package/dist/autoloader.d.ts +13 -0
  7. package/dist/autoloader.js +229 -0
  8. package/dist/base.d.ts +173 -2
  9. package/dist/base.js +2 -9
  10. package/dist/chunks/base-CMruMbxC.js +824 -0
  11. package/dist/chunks/{decorate-DKuCkHK4.js → decorate-CaYbmmmm.js} +1 -1
  12. package/dist/chunks/disclosure-Bj_49GcC.js +23 -0
  13. package/dist/chunks/dismiss-Drsy_dE5.js +37 -0
  14. package/dist/chunks/form-control-C0vH6gii.js +300 -0
  15. package/dist/chunks/keyboard-MQpfTX5I.js +46 -0
  16. package/dist/chunks/keyboard-activation-CV0m4hkn.js +29 -0
  17. package/dist/chunks/modal-D_YVy2vg.js +71 -0
  18. package/dist/chunks/overlay-BywGMcDW.js +467 -0
  19. package/dist/chunks/parts-D30c8OoG.js +229 -0
  20. package/dist/chunks/{shape-DmgCwYvY.js → shape-C_LW7EjG.js} +12 -4
  21. package/dist/components/accordion.d.ts +38 -10
  22. package/dist/components/accordion.js +52 -54
  23. package/dist/components/action-input.d.ts +64 -6
  24. package/dist/components/action-input.js +85 -42
  25. package/dist/components/alert.d.ts +24 -10
  26. package/dist/components/alert.js +27 -28
  27. package/dist/components/avatar.d.ts +8 -2
  28. package/dist/components/avatar.js +4 -4
  29. package/dist/components/badge.d.ts +8 -3
  30. package/dist/components/badge.js +3 -3
  31. package/dist/components/banner.d.ts +21 -10
  32. package/dist/components/banner.js +28 -28
  33. package/dist/components/bar-chart.d.ts +30 -6
  34. package/dist/components/bar-chart.js +29 -39
  35. package/dist/components/breadcrumbs.d.ts +19 -6
  36. package/dist/components/breadcrumbs.js +17 -23
  37. package/dist/components/button.d.ts +64 -10
  38. package/dist/components/button.js +71 -27
  39. package/dist/components/calendar.d.ts +65 -10
  40. package/dist/components/calendar.js +158 -107
  41. package/dist/components/card.d.ts +14 -9
  42. package/dist/components/card.js +9 -23
  43. package/dist/components/carousel.d.ts +65 -14
  44. package/dist/components/carousel.js +85 -94
  45. package/dist/components/charts/scale.d.ts +0 -1
  46. package/dist/components/charts/shape.d.ts +0 -1
  47. package/dist/components/checkbox-group.d.ts +38 -5
  48. package/dist/components/checkbox-group.js +61 -20
  49. package/dist/components/checkbox.d.ts +53 -7
  50. package/dist/components/checkbox.js +66 -29
  51. package/dist/components/collapsible.d.ts +29 -9
  52. package/dist/components/collapsible.js +43 -45
  53. package/dist/components/color-picker.d.ts +20 -4
  54. package/dist/components/color-picker.js +36 -30
  55. package/dist/components/combobox.d.ts +84 -10
  56. package/dist/components/combobox.js +142 -45
  57. package/dist/components/compose-input.d.ts +8 -1
  58. package/dist/components/compose-input.js +10 -4
  59. package/dist/components/dialog.d.ts +24 -20
  60. package/dist/components/dialog.js +8 -57
  61. package/dist/components/divider.d.ts +8 -1
  62. package/dist/components/divider.js +4 -4
  63. package/dist/components/donut-chart.d.ts +28 -5
  64. package/dist/components/donut-chart.js +55 -54
  65. package/dist/components/drawer.d.ts +19 -18
  66. package/dist/components/drawer.js +9 -53
  67. package/dist/components/dropdown-menu.d.ts +62 -7
  68. package/dist/components/dropdown-menu.js +125 -34
  69. package/dist/components/editable.d.ts +37 -3
  70. package/dist/components/editable.js +45 -24
  71. package/dist/components/error-fallback.d.ts +36 -5
  72. package/dist/components/error-fallback.js +74 -24
  73. package/dist/components/field.d.ts +38 -4
  74. package/dist/components/field.js +63 -21
  75. package/dist/components/file-upload.d.ts +23 -2
  76. package/dist/components/file-upload.js +48 -25
  77. package/dist/components/gauge.d.ts +48 -9
  78. package/dist/components/gauge.js +57 -55
  79. package/dist/components/hamburger.d.ts +19 -4
  80. package/dist/components/hamburger.js +29 -20
  81. package/dist/components/hover-card.d.ts +40 -14
  82. package/dist/components/hover-card.js +77 -60
  83. package/dist/components/indicator.d.ts +18 -7
  84. package/dist/components/indicator.js +17 -19
  85. package/dist/components/input.d.ts +70 -5
  86. package/dist/components/input.js +84 -21
  87. package/dist/components/line-chart.d.ts +27 -5
  88. package/dist/components/line-chart.js +19 -21
  89. package/dist/components/list.d.ts +10 -1
  90. package/dist/components/list.js +4 -4
  91. package/dist/components/menu.d.ts +67 -21
  92. package/dist/components/menu.js +117 -116
  93. package/dist/components/multiselect.d.ts +108 -13
  94. package/dist/components/multiselect.js +207 -70
  95. package/dist/components/nav-bar.d.ts +12 -7
  96. package/dist/components/nav-bar.js +12 -22
  97. package/dist/components/nav-menu.d.ts +52 -12
  98. package/dist/components/nav-menu.js +69 -71
  99. package/dist/components/number-input.d.ts +76 -8
  100. package/dist/components/number-input.js +117 -51
  101. package/dist/components/pagination.d.ts +19 -1
  102. package/dist/components/pagination.js +69 -8
  103. package/dist/components/panel.d.ts +16 -8
  104. package/dist/components/panel.js +21 -21
  105. package/dist/components/pin-input.d.ts +41 -4
  106. package/dist/components/pin-input.js +45 -27
  107. package/dist/components/popover.d.ts +29 -11
  108. package/dist/components/popover.js +48 -36
  109. package/dist/components/progress.d.ts +7 -3
  110. package/dist/components/progress.js +4 -4
  111. package/dist/components/radio-group.d.ts +30 -5
  112. package/dist/components/radio-group.js +56 -19
  113. package/dist/components/radio.d.ts +47 -7
  114. package/dist/components/radio.js +68 -29
  115. package/dist/components/scroll-area.d.ts +8 -5
  116. package/dist/components/scroll-area.js +19 -20
  117. package/dist/components/segmented-control.d.ts +52 -8
  118. package/dist/components/segmented-control.js +67 -37
  119. package/dist/components/select.d.ts +59 -12
  120. package/dist/components/select.js +97 -47
  121. package/dist/components/sidebar.d.ts +22 -3
  122. package/dist/components/sidebar.js +21 -11
  123. package/dist/components/skeleton.d.ts +5 -2
  124. package/dist/components/skeleton.js +5 -5
  125. package/dist/components/slider.d.ts +27 -5
  126. package/dist/components/slider.js +30 -18
  127. package/dist/components/spinner.d.ts +6 -2
  128. package/dist/components/spinner.js +4 -4
  129. package/dist/components/stat.d.ts +21 -4
  130. package/dist/components/stat.js +8 -4
  131. package/dist/components/status-dot.d.ts +4 -1
  132. package/dist/components/status-dot.js +4 -4
  133. package/dist/components/stepper.d.ts +5 -1
  134. package/dist/components/stepper.js +3 -3
  135. package/dist/components/switch.d.ts +24 -5
  136. package/dist/components/switch.js +38 -20
  137. package/dist/components/table.d.ts +51 -2
  138. package/dist/components/table.js +158 -9
  139. package/dist/components/tabs.d.ts +49 -17
  140. package/dist/components/tabs.js +86 -55
  141. package/dist/components/tag.d.ts +17 -7
  142. package/dist/components/tag.js +19 -21
  143. package/dist/components/tags-input.d.ts +33 -4
  144. package/dist/components/tags-input.js +41 -31
  145. package/dist/components/textarea.d.ts +61 -5
  146. package/dist/components/textarea.js +59 -22
  147. package/dist/components/toast.d.ts +89 -15
  148. package/dist/components/toast.js +106 -31
  149. package/dist/components/toggle-group.d.ts +30 -3
  150. package/dist/components/toggle-group.js +44 -17
  151. package/dist/components/toggle.d.ts +25 -4
  152. package/dist/components/toggle.js +29 -19
  153. package/dist/components/tooltip.d.ts +31 -12
  154. package/dist/components/tooltip.js +63 -29
  155. package/dist/components.json +1518 -0
  156. package/dist/custom-elements.json +31817 -0
  157. package/dist/dev/index.d.ts +40 -0
  158. package/dist/dev/rules.d.ts +46 -0
  159. package/dist/dev/table.generated.d.ts +8 -0
  160. package/dist/dev/types.d.ts +113 -0
  161. package/dist/dev.js +3364 -0
  162. package/dist/disclosure.d.ts +30 -0
  163. package/dist/dismiss.d.ts +20 -0
  164. package/dist/form-control.d.ts +92 -0
  165. package/dist/index.d.ts +5 -4
  166. package/dist/index.js +24 -24
  167. package/dist/keyboard-activation.d.ts +31 -0
  168. package/dist/keyboard.d.ts +32 -0
  169. package/dist/modal.d.ts +44 -0
  170. package/dist/overlay.d.ts +249 -0
  171. package/dist/parts.d.ts +171 -0
  172. package/dist/projection.d.ts +370 -0
  173. package/dist/types/elements.d.ts +648 -0
  174. package/dist/types/react.d.ts +163 -0
  175. package/dist/types/solid.d.ts +164 -0
  176. package/dist/types/solid2.d.ts +161 -0
  177. package/dist/types/svelte.d.ts +154 -0
  178. package/dist/types/vue.d.ts +156 -0
  179. package/dist/vscode.html-custom-data.json +6004 -0
  180. package/dist/web-types.json +8365 -0
  181. package/package.json +113 -25
  182. package/dist/base.d.ts.map +0 -1
  183. package/dist/components/accordion.d.ts.map +0 -1
  184. package/dist/components/action-input.d.ts.map +0 -1
  185. package/dist/components/alert.d.ts.map +0 -1
  186. package/dist/components/avatar.d.ts.map +0 -1
  187. package/dist/components/badge.d.ts.map +0 -1
  188. package/dist/components/banner.d.ts.map +0 -1
  189. package/dist/components/bar-chart.d.ts.map +0 -1
  190. package/dist/components/breadcrumbs.d.ts.map +0 -1
  191. package/dist/components/button.d.ts.map +0 -1
  192. package/dist/components/calendar.d.ts.map +0 -1
  193. package/dist/components/card.d.ts.map +0 -1
  194. package/dist/components/carousel.d.ts.map +0 -1
  195. package/dist/components/charts/scale.d.ts.map +0 -1
  196. package/dist/components/charts/shape.d.ts.map +0 -1
  197. package/dist/components/checkbox-group.d.ts.map +0 -1
  198. package/dist/components/checkbox.d.ts.map +0 -1
  199. package/dist/components/collapsible.d.ts.map +0 -1
  200. package/dist/components/color-picker.d.ts.map +0 -1
  201. package/dist/components/combobox.d.ts.map +0 -1
  202. package/dist/components/compose-input.d.ts.map +0 -1
  203. package/dist/components/dialog.d.ts.map +0 -1
  204. package/dist/components/divider.d.ts.map +0 -1
  205. package/dist/components/donut-chart.d.ts.map +0 -1
  206. package/dist/components/drawer.d.ts.map +0 -1
  207. package/dist/components/dropdown-menu.d.ts.map +0 -1
  208. package/dist/components/editable.d.ts.map +0 -1
  209. package/dist/components/error-fallback.d.ts.map +0 -1
  210. package/dist/components/field.d.ts.map +0 -1
  211. package/dist/components/file-upload.d.ts.map +0 -1
  212. package/dist/components/gauge.d.ts.map +0 -1
  213. package/dist/components/hamburger.d.ts.map +0 -1
  214. package/dist/components/hover-card.d.ts.map +0 -1
  215. package/dist/components/indicator.d.ts.map +0 -1
  216. package/dist/components/input.d.ts.map +0 -1
  217. package/dist/components/line-chart.d.ts.map +0 -1
  218. package/dist/components/list.d.ts.map +0 -1
  219. package/dist/components/menu.d.ts.map +0 -1
  220. package/dist/components/multiselect.d.ts.map +0 -1
  221. package/dist/components/nav-bar.d.ts.map +0 -1
  222. package/dist/components/nav-menu.d.ts.map +0 -1
  223. package/dist/components/number-input.d.ts.map +0 -1
  224. package/dist/components/pagination.d.ts.map +0 -1
  225. package/dist/components/panel.d.ts.map +0 -1
  226. package/dist/components/pin-input.d.ts.map +0 -1
  227. package/dist/components/popover.d.ts.map +0 -1
  228. package/dist/components/progress.d.ts.map +0 -1
  229. package/dist/components/radio-group.d.ts.map +0 -1
  230. package/dist/components/radio.d.ts.map +0 -1
  231. package/dist/components/scroll-area.d.ts.map +0 -1
  232. package/dist/components/segmented-control.d.ts.map +0 -1
  233. package/dist/components/select.d.ts.map +0 -1
  234. package/dist/components/sidebar.d.ts.map +0 -1
  235. package/dist/components/skeleton.d.ts.map +0 -1
  236. package/dist/components/slider.d.ts.map +0 -1
  237. package/dist/components/spinner.d.ts.map +0 -1
  238. package/dist/components/stat.d.ts.map +0 -1
  239. package/dist/components/status-dot.d.ts.map +0 -1
  240. package/dist/components/stepper.d.ts.map +0 -1
  241. package/dist/components/switch.d.ts.map +0 -1
  242. package/dist/components/table.d.ts.map +0 -1
  243. package/dist/components/tabs.d.ts.map +0 -1
  244. package/dist/components/tag.d.ts.map +0 -1
  245. package/dist/components/tags-input.d.ts.map +0 -1
  246. package/dist/components/textarea.d.ts.map +0 -1
  247. package/dist/components/toast.d.ts.map +0 -1
  248. package/dist/components/toggle-group.d.ts.map +0 -1
  249. package/dist/components/toggle.d.ts.map +0 -1
  250. package/dist/components/tooltip.d.ts.map +0 -1
  251. package/dist/index.d.ts.map +0 -1
  252. /package/dist/chunks/{scale-BFZNL3Ss.js → scale-_ccSuoYg.js} +0 -0
@@ -1,9 +1,13 @@
1
- import { VoidElement as e } from "../base.js";
2
- import { t } from "../chunks/decorate-DKuCkHK4.js";
3
- import { html as n, nothing as r } from "lit";
4
- import { property as i } from "lit/decorators.js";
1
+ import { t as e } from "../chunks/base-CMruMbxC.js";
2
+ import { t } from "../chunks/decorate-CaYbmmmm.js";
3
+ import { t as n } from "../chunks/form-control-C0vH6gii.js";
4
+ import { a as r } from "../chunks/keyboard-MQpfTX5I.js";
5
+ import { t as i } from "../chunks/overlay-BywGMcDW.js";
6
+ import { html as a, nothing as o } from "lit";
7
+ import { property as s } from "lit/decorators.js";
8
+ import { live as c } from "lit/directives/live.js";
5
9
  //#region src/components/calendar.ts
6
- function a(e) {
10
+ function l(e) {
7
11
  let t = /^(\d{4})-(\d{2})-(\d{2})$/.exec(e);
8
12
  return t ? [
9
13
  Number(t[1]),
@@ -11,31 +15,31 @@ function a(e) {
11
15
  Number(t[3])
12
16
  ] : null;
13
17
  }
14
- function o(e, t, n) {
18
+ function u(e, t, n) {
15
19
  return `${String(e).padStart(4, "0")}-${String(t + 1).padStart(2, "0")}-${String(n).padStart(2, "0")}`;
16
20
  }
17
- function s() {
21
+ function d() {
18
22
  let e = /* @__PURE__ */ new Date();
19
- return o(e.getFullYear(), e.getMonth(), e.getDate());
23
+ return u(e.getFullYear(), e.getMonth(), e.getDate());
20
24
  }
21
- function c(e, t) {
25
+ function f(e, t) {
22
26
  return new Date(e, t + 1, 0).getDate();
23
27
  }
24
- function l(e, t, n) {
28
+ function p(e, t, n) {
25
29
  return t && e < t ? t : n && e > n ? n : e;
26
30
  }
27
- function u(e, t) {
28
- let n = a(e);
31
+ function m(e, t) {
32
+ let n = l(e);
29
33
  if (!n) return e;
30
- let [r, i, o] = n;
31
- return t.replace("YYYY", String(r).padStart(4, "0")).replace("MM", String(i + 1).padStart(2, "0")).replace("DD", String(o).padStart(2, "0"));
34
+ let [r, i, a] = n;
35
+ return t.replace("YYYY", String(r).padStart(4, "0")).replace("MM", String(i + 1).padStart(2, "0")).replace("DD", String(a).padStart(2, "0"));
32
36
  }
33
- var d = class extends e {
37
+ var h = class extends n(e) {
34
38
  constructor(...e) {
35
39
  super(...e), this.value = "", this.min = "", this.max = "", this.disabled = !1, this.size = "md", this.locale = "en-US", this.firstDay = 0, this._viewYear = 0, this._viewMonth = 0, this._view = "days", this._focusDate = "", this._yearsPageStart = 0, this._didInit = !1, this._prevMonth = () => {
36
- this._viewMonth === 0 ? (this._viewMonth = 11, this._viewYear--) : this._viewMonth--, this.requestUpdate();
40
+ this._viewMonth === 0 ? (this._viewMonth = 11, this._viewYear--) : this._viewMonth--, this._syncFocusToView(), this.requestUpdate();
37
41
  }, this._nextMonth = () => {
38
- this._viewMonth === 11 ? (this._viewMonth = 0, this._viewYear++) : this._viewMonth++, this.requestUpdate();
42
+ this._viewMonth === 11 ? (this._viewMonth = 0, this._viewYear++) : this._viewMonth++, this._syncFocusToView(), this.requestUpdate();
39
43
  }, this._prevYear = () => {
40
44
  this._viewYear--, this.requestUpdate();
41
45
  }, this._nextYear = () => {
@@ -52,63 +56,75 @@ var d = class extends e {
52
56
  if (this.disabled) return;
53
57
  let t = e.target.getAttribute("data-date");
54
58
  if (!t) return;
55
- let n = a(t);
59
+ let n = l(t);
56
60
  if (!n) return;
57
- let [r, i] = n, s = n[2], c = !0;
61
+ let [r, i] = n, a = n[2], o = !0, s = null;
58
62
  switch (e.key) {
59
63
  case "ArrowLeft":
60
- s--;
64
+ a--;
61
65
  break;
62
66
  case "ArrowRight":
63
- s++;
67
+ a++;
64
68
  break;
65
69
  case "ArrowUp":
66
- s -= 7;
70
+ a -= 7;
67
71
  break;
68
72
  case "ArrowDown":
69
- s += 7;
73
+ a += 7;
70
74
  break;
75
+ case "Home":
76
+ a -= (new Date(r, i, a).getDay() - this.firstDay + 7) % 7;
77
+ break;
78
+ case "End":
79
+ a += 6 - (new Date(r, i, a).getDay() - this.firstDay + 7) % 7;
80
+ break;
81
+ case "PageUp":
82
+ case "PageDown": {
83
+ let t = e.key === "PageUp" ? -1 : 1, n = e.shiftKey ? new Date(r + t, i, 1) : new Date(r, i + t, 1);
84
+ a = Math.min(a, f(n.getFullYear(), n.getMonth())), s = n;
85
+ break;
86
+ }
71
87
  case "Enter":
72
88
  case " ":
73
89
  this._selectDate(t), e.preventDefault();
74
90
  return;
75
- default: c = !1;
91
+ default: o = !1;
76
92
  }
77
- if (!c) return;
93
+ if (!o) return;
78
94
  e.preventDefault();
79
- let u = new Date(r, i, s), d = l(o(u.getFullYear(), u.getMonth(), u.getDate()), this.min || void 0, this.max || void 0);
95
+ let c = s ? new Date(s.getFullYear(), s.getMonth(), a) : new Date(r, i, a), d = p(u(c.getFullYear(), c.getMonth(), c.getDate()), this.min || void 0, this.max || void 0);
80
96
  this._focusDate = d;
81
- let f = a(d);
82
- f && (this._viewYear = f[0], this._viewMonth = f[1]), this.requestUpdate(), this.updateComplete.then(() => {
97
+ let m = l(d);
98
+ m && (this._viewYear = m[0], this._viewMonth = m[1]), this.requestUpdate(), this.updateComplete.then(() => {
83
99
  this.querySelector(`[data-date="${d}"]`)?.focus();
84
100
  });
85
101
  };
86
102
  }
87
103
  connectedCallback() {
88
- super.connectedCallback(), this.setAttribute("role", "group"), this.setAttribute("aria-label", "Calendar"), this._didInit || (this._didInit = !0, this._initView());
104
+ super.connectedCallback(), this.setHostAttribute("role", "group"), this.setHostAttribute("aria-label", "Calendar"), this._didInit || (this._didInit = !0, this._initView());
89
105
  }
90
106
  updated(e) {
91
107
  super.updated(e), e.has("value") && this._syncViewToValue();
92
108
  }
93
109
  _initView() {
94
- let e = a(this.value);
110
+ let e = l(this.value);
95
111
  if (e) this._viewYear = e[0], this._viewMonth = e[1], this._focusDate = this.value;
96
112
  else {
97
113
  let e = /* @__PURE__ */ new Date();
98
- this._viewYear = e.getFullYear(), this._viewMonth = e.getMonth(), this._focusDate = s();
114
+ this._viewYear = e.getFullYear(), this._viewMonth = e.getMonth(), this._focusDate = d();
99
115
  }
100
116
  this._yearsPageStart = this._viewYear - this._viewYear % 12;
101
117
  }
102
118
  _syncViewToValue() {
103
- let e = a(this.value);
119
+ let e = l(this.value);
104
120
  e && (this._viewYear = e[0], this._viewMonth = e[1], this._focusDate = this.value, this._yearsPageStart = this._viewYear - this._viewYear % 12, this.requestUpdate());
105
121
  }
106
122
  render() {
107
123
  return this._view === "years" ? this._renderYears() : this._view === "months" ? this._renderMonths() : this._renderDays();
108
124
  }
109
125
  _renderDays() {
110
- let e = this._getDayNames(), t = this._buildDayCells(), r = this._getMonthName(this._viewMonth);
111
- return n`
126
+ let e = this._getDayNames(), t = this._buildDayCells(), n = Array.from({ length: t.length / 7 }, (e, n) => t.slice(n * 7, n * 7 + 7)), r = this._getMonthName(this._viewMonth);
127
+ return a`
112
128
  <div class="void-calendar-header">
113
129
  <button
114
130
  type="button"
@@ -136,45 +152,63 @@ var d = class extends e {
136
152
  <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="9 18 15 12 9 6"></polyline></svg>
137
153
  </button>
138
154
  </div>
139
- <div class="void-calendar-grid" role="grid" @keydown=${this._onDayKeydown}>
140
- <div class="void-calendar-weekdays">
141
- ${e.map((e) => n`<div class="void-calendar-weekday">${e}</div>`)}
155
+ <div class="void-calendar-grid" role="grid" aria-label="${r} ${this._viewYear}" @keydown=${this._onDayKeydown}>
156
+ <div class="void-calendar-weekdays" role="row">
157
+ ${e.map((e) => a`<div class="void-calendar-weekday" role="columnheader" aria-label=${e.long}>${e.short}</div>`)}
142
158
  </div>
143
- <div class="void-calendar-days">
144
- ${t.map((e) => {
145
- let t = e.iso === this.value, r = e.iso === s(), i = e.outside, a = this.disabled || e.disabled;
146
- return n`
147
- <button
148
- type="button"
149
- class="void-calendar-day${t ? " selected" : ""}${r ? " today" : ""}${i ? " outside" : ""}"
150
- ?disabled=${a}
151
- aria-selected=${t ? "true" : "false"}
152
- aria-label=${e.iso}
153
- tabindex=${e.iso === this._focusDate ? "0" : "-1"}
154
- data-date=${e.iso}
155
- @click=${() => this._selectDate(e.iso)}
156
- >${e.day}</button>
157
- `;
159
+ <div class="void-calendar-days" role="rowgroup">
160
+ ${n.map((e) => a`
161
+ <div class="void-calendar-week" role="row">
162
+ ${e.map((e) => {
163
+ let t = e.iso === this.value, n = e.iso === d(), r = this.disabled || e.disabled;
164
+ return a`
165
+ <div class="void-calendar-cell" role="gridcell" aria-selected=${t ? "true" : "false"}>
166
+ <button
167
+ type="button"
168
+ class="void-calendar-day${t ? " selected" : ""}${n ? " today" : ""}${e.outside ? " outside" : ""}"
169
+ ?disabled=${r}
170
+ aria-label=${this._formatFullDate(e.iso)}
171
+ aria-current=${n ? "date" : o}
172
+ tabindex=${e.iso === this._focusDate ? "0" : "-1"}
173
+ data-date=${e.iso}
174
+ @click=${() => this._selectDate(e.iso)}
175
+ >${e.day}</button>
176
+ </div>
177
+ `;
158
178
  })}
179
+ </div>
180
+ `)}
159
181
  </div>
160
182
  </div>
161
183
  `;
162
184
  }
185
+ _formatFullDate(e) {
186
+ let t = l(e);
187
+ if (!t) return e;
188
+ try {
189
+ return new Intl.DateTimeFormat(this.locale, { dateStyle: "full" }).format(new Date(t[0], t[1], t[2]));
190
+ } catch {
191
+ return e;
192
+ }
193
+ }
163
194
  _getDayNames() {
164
- let e = new Intl.DateTimeFormat(this.locale, { weekday: "short" }), t = [];
165
- for (let n = 0; n < 7; n++) {
166
- let r = new Date(2024, 0, 7 + (this.firstDay + n) % 7);
167
- t.push(e.format(r));
195
+ let e = new Intl.DateTimeFormat(this.locale, { weekday: "short" }), t = new Intl.DateTimeFormat(this.locale, { weekday: "long" }), n = [];
196
+ for (let r = 0; r < 7; r++) {
197
+ let i = new Date(2024, 0, 7 + (this.firstDay + r) % 7);
198
+ n.push({
199
+ short: e.format(i),
200
+ long: t.format(i)
201
+ });
168
202
  }
169
- return t;
203
+ return n;
170
204
  }
171
205
  _getMonthName(e) {
172
206
  return new Intl.DateTimeFormat(this.locale, { month: "long" }).format(new Date(2024, e, 1));
173
207
  }
174
208
  _buildDayCells() {
175
- let e = this._viewYear, t = this._viewMonth, n = c(e, t), r = (new Date(e, t, 1).getDay() - this.firstDay + 7) % 7, i = [], a = t === 0 ? 11 : t - 1, s = t === 0 ? e - 1 : e, l = c(s, a);
209
+ let e = this._viewYear, t = this._viewMonth, n = f(e, t), r = (new Date(e, t, 1).getDay() - this.firstDay + 7) % 7, i = [], a = t === 0 ? 11 : t - 1, o = t === 0 ? e - 1 : e, s = f(o, a);
176
210
  for (let e = r - 1; e >= 0; e--) {
177
- let t = l - e, n = o(s, a, t);
211
+ let t = s - e, n = u(o, a, t);
178
212
  i.push({
179
213
  day: t,
180
214
  iso: n,
@@ -183,7 +217,7 @@ var d = class extends e {
183
217
  });
184
218
  }
185
219
  for (let r = 1; r <= n; r++) {
186
- let n = o(e, t, r);
220
+ let n = u(e, t, r);
187
221
  i.push({
188
222
  day: r,
189
223
  iso: n,
@@ -191,9 +225,9 @@ var d = class extends e {
191
225
  disabled: this._isOutOfRange(n)
192
226
  });
193
227
  }
194
- let u = t === 11 ? 0 : t + 1, d = t === 11 ? e + 1 : e, f = 42 - i.length;
195
- for (let e = 1; e <= f; e++) {
196
- let t = o(d, u, e);
228
+ let c = t === 11 ? 0 : t + 1, l = t === 11 ? e + 1 : e, d = 42 - i.length;
229
+ for (let e = 1; e <= d; e++) {
230
+ let t = u(l, c, e);
197
231
  i.push({
198
232
  day: e,
199
233
  iso: t,
@@ -211,7 +245,7 @@ var d = class extends e {
211
245
  index: n,
212
246
  name: e.format(new Date(2024, n, 1))
213
247
  }));
214
- return n`
248
+ return a`
215
249
  <div class="void-calendar-header">
216
250
  <button
217
251
  type="button"
@@ -240,7 +274,7 @@ var d = class extends e {
240
274
  </button>
241
275
  </div>
242
276
  <div class="void-calendar-months">
243
- ${t.map((e) => n`
277
+ ${t.map((e) => a`
244
278
  <button
245
279
  type="button"
246
280
  class="void-calendar-month${e.index === this._viewMonth && this._viewYear === (/* @__PURE__ */ new Date()).getFullYear() ? " current" : ""}"
@@ -252,8 +286,8 @@ var d = class extends e {
252
286
  `;
253
287
  }
254
288
  _renderYears() {
255
- let e = this._yearsPageStart, t = Array.from({ length: 12 }, (t, n) => e + n), r = (/* @__PURE__ */ new Date()).getFullYear();
256
- return n`
289
+ let e = this._yearsPageStart, t = Array.from({ length: 12 }, (t, n) => e + n), n = (/* @__PURE__ */ new Date()).getFullYear();
290
+ return a`
257
291
  <div class="void-calendar-header">
258
292
  <button
259
293
  type="button"
@@ -276,10 +310,10 @@ var d = class extends e {
276
310
  </button>
277
311
  </div>
278
312
  <div class="void-calendar-years">
279
- ${t.map((e) => n`
313
+ ${t.map((e) => a`
280
314
  <button
281
315
  type="button"
282
- class="void-calendar-year${e === r ? " current" : ""}"
316
+ class="void-calendar-year${e === n ? " current" : ""}"
283
317
  ?disabled=${this.disabled}
284
318
  @click=${() => this._pickYear(e)}
285
319
  >${e}</button>
@@ -288,7 +322,15 @@ var d = class extends e {
288
322
  `;
289
323
  }
290
324
  _pickMonth(e) {
291
- this._viewMonth = e, this._view = "days", this.requestUpdate();
325
+ this._viewMonth = e, this._view = "days", this._syncFocusToView(), this.requestUpdate();
326
+ }
327
+ _syncFocusToView() {
328
+ let e = l(this._focusDate) ?? [
329
+ this._viewYear,
330
+ this._viewMonth,
331
+ 1
332
+ ], t = Math.min(e[2], f(this._viewYear, this._viewMonth));
333
+ this._focusDate = p(u(this._viewYear, this._viewMonth, t), this.min || void 0, this.max || void 0);
292
334
  }
293
335
  _pickYear(e) {
294
336
  this._viewYear = e, this._yearsPageStart = e - e % 12, this._view = "months", this.requestUpdate();
@@ -296,7 +338,7 @@ var d = class extends e {
296
338
  _selectDate(e) {
297
339
  if (this.disabled || this._isOutOfRange(e)) return;
298
340
  this.value = e, this._focusDate = e;
299
- let t = a(e);
341
+ let t = l(e);
300
342
  this._viewYear = t[0], this._viewMonth = t[1], this._view = "days", this.requestUpdate(), this.dispatchEvent(new CustomEvent("void-change", {
301
343
  bubbles: !0,
302
344
  composed: !0,
@@ -307,58 +349,67 @@ var d = class extends e {
307
349
  }));
308
350
  }
309
351
  };
310
- t([i({
352
+ t([s({
311
353
  type: String,
312
354
  reflect: !0
313
- })], d.prototype, "value", void 0), t([i({ type: String })], d.prototype, "min", void 0), t([i({ type: String })], d.prototype, "max", void 0), t([i({
355
+ })], h.prototype, "value", void 0), t([s({ type: String })], h.prototype, "min", void 0), t([s({ type: String })], h.prototype, "max", void 0), t([s({
314
356
  type: Boolean,
315
357
  reflect: !0
316
- })], d.prototype, "disabled", void 0), t([i({
358
+ })], h.prototype, "disabled", void 0), t([s({
317
359
  type: String,
318
360
  reflect: !0
319
- })], d.prototype, "size", void 0), t([i({ type: String })], d.prototype, "locale", void 0), t([i({
361
+ })], h.prototype, "size", void 0), t([s({ type: String })], h.prototype, "locale", void 0), t([s({
320
362
  attribute: "first-day",
321
363
  type: Number
322
- })], d.prototype, "firstDay", void 0), customElements.get("void-calendar") || customElements.define("void-calendar", d);
323
- var f = class extends e {
364
+ })], h.prototype, "firstDay", void 0), customElements.get("void-calendar") || customElements.define("void-calendar", h);
365
+ var g = class extends n(e) {
324
366
  constructor(...e) {
325
- super(...e), this.value = "", this.min = "", this.max = "", this.disabled = !1, this.size = "md", this.locale = "en-US", this.firstDay = 0, this.open = !1, this.placeholder = "Select date", this.format = "MM/DD/YYYY", this.color = "default", this._toggle = () => {
326
- this.disabled || (this.open = !this.open, this.requestUpdate());
367
+ super(...e), this.value = "", this.min = "", this.max = "", this.disabled = !1, this.size = "md", this.locale = "en-US", this.firstDay = 0, this.open = !1, this.placeholder = "Select date", this.format = "MM/DD/YYYY", this.color = "default", this._dropdownId = r("void-date-picker-dialog"), this._overlay = new i(this, {
368
+ kind: "dialog",
369
+ surface: () => this.querySelector(":scope > .void-date-picker-dropdown"),
370
+ isOpen: () => this.open,
371
+ setOpen: (e) => {
372
+ this.open = e;
373
+ },
374
+ trigger: () => this.querySelector(":scope > .void-date-picker-anchor > .void-date-picker-input"),
375
+ anchor: () => this.querySelector(":scope > .void-date-picker-anchor"),
376
+ initialFocus: (e) => ((e === "trigger" || e === "keyboard") && this._focusDay(), !1)
377
+ }), this._toggle = () => {
378
+ this.disabled || this._overlay.toggle("trigger");
379
+ }, this._onInputClick = () => {
380
+ this.disabled || this._overlay.toggle("focus");
327
381
  }, this._onCalendarChange = (e) => {
328
- e.stopPropagation(), this.value = e.detail.value, this.open = !1, this.requestUpdate(), this.dispatchEvent(new CustomEvent("void-change", {
382
+ e.stopPropagation(), this.value = e.detail.value, this._overlay.requestClose("select"), this.dispatchEvent(new CustomEvent("void-change", {
329
383
  bubbles: !0,
330
384
  composed: !0,
331
385
  detail: e.detail
332
386
  }));
333
- }, this._onDocumentClick = (e) => {
334
- this.open && !this.contains(e.target) && (this.open = !1, this.requestUpdate());
335
- }, this._onDocumentKeydown = (e) => {
336
- e.key === "Escape" && this.open && (this.open = !1, this.requestUpdate());
337
387
  }, this._onInputKeydown = (e) => {
338
- (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this._toggle()), e.key === "Escape" && this.open && (this.open = !1, this.requestUpdate());
388
+ e.key === "Enter" || e.key === " " ? (e.preventDefault(), this.disabled || this._overlay.toggle("keyboard")) : e.key === "ArrowDown" && !this.disabled && (e.preventDefault(), this.open ? this._focusDay() : this._overlay.requestOpen("keyboard"));
339
389
  };
340
390
  }
341
- connectedCallback() {
342
- super.connectedCallback(), this.setAttribute("role", "combobox"), this.setAttribute("aria-haspopup", "dialog"), document.addEventListener("mousedown", this._onDocumentClick), document.addEventListener("keydown", this._onDocumentKeydown);
343
- }
344
- disconnectedCallback() {
345
- super.disconnectedCallback(), document.removeEventListener("mousedown", this._onDocumentClick), document.removeEventListener("keydown", this._onDocumentKeydown);
391
+ static {
392
+ this.labelTarget = ".void-date-picker-input";
346
393
  }
347
- updated(e) {
348
- super.updated(e), this.setAttribute("aria-expanded", String(this.open));
394
+ async _focusDay() {
395
+ let e = this.querySelector(":scope > .void-date-picker-dropdown > void-calendar");
396
+ e && (await e.updateComplete, this.open && e.querySelector("[tabindex=\"0\"]")?.focus({ preventScroll: !0 }));
349
397
  }
350
398
  render() {
351
- return n`
399
+ return a`
352
400
  <div class="void-date-picker-anchor">
353
401
  <input
354
402
  class="void-date-picker-input"
355
- .value=${this.value ? u(this.value, this.format) : ""}
403
+ .value=${c(this.value ? m(this.value, this.format) : "")}
356
404
  placeholder=${this.placeholder}
357
405
  ?disabled=${this.disabled}
358
406
  readonly
359
- aria-expanded=${String(this.open)}
407
+ role="combobox"
408
+ aria-label=${this.placeholder}
360
409
  aria-haspopup="dialog"
361
- @click=${this._toggle}
410
+ aria-expanded=${String(this.open)}
411
+ aria-controls=${this._dropdownId}
412
+ @click=${this._onInputClick}
362
413
  @keydown=${this._onInputKeydown}
363
414
  />
364
415
  <button
@@ -377,8 +428,8 @@ var f = class extends e {
377
428
  </svg>
378
429
  </button>
379
430
  </div>
380
- ${this.open ? n`
381
- <div class="void-date-picker-dropdown" role="dialog" aria-label="Choose date">
431
+ ${this.open ? a`
432
+ <div class="void-date-picker-dropdown" id=${this._dropdownId} role="dialog" aria-label="Choose date" popover="manual">
382
433
  <void-calendar
383
434
  value=${this.value}
384
435
  min=${this.min}
@@ -390,28 +441,28 @@ var f = class extends e {
390
441
  @void-change=${this._onCalendarChange}
391
442
  ></void-calendar>
392
443
  </div>
393
- ` : r}
444
+ ` : o}
394
445
  `;
395
446
  }
396
447
  };
397
- t([i({
448
+ t([s({
398
449
  type: String,
399
450
  reflect: !0
400
- })], f.prototype, "value", void 0), t([i({ type: String })], f.prototype, "min", void 0), t([i({ type: String })], f.prototype, "max", void 0), t([i({
451
+ })], g.prototype, "value", void 0), t([s({ type: String })], g.prototype, "min", void 0), t([s({ type: String })], g.prototype, "max", void 0), t([s({
401
452
  type: Boolean,
402
453
  reflect: !0
403
- })], f.prototype, "disabled", void 0), t([i({
454
+ })], g.prototype, "disabled", void 0), t([s({
404
455
  type: String,
405
456
  reflect: !0
406
- })], f.prototype, "size", void 0), t([i({ type: String })], f.prototype, "locale", void 0), t([i({
457
+ })], g.prototype, "size", void 0), t([s({ type: String })], g.prototype, "locale", void 0), t([s({
407
458
  attribute: "first-day",
408
459
  type: Number
409
- })], f.prototype, "firstDay", void 0), t([i({
460
+ })], g.prototype, "firstDay", void 0), t([s({
410
461
  type: Boolean,
411
462
  reflect: !0
412
- })], f.prototype, "open", void 0), t([i({ type: String })], f.prototype, "placeholder", void 0), t([i({ type: String })], f.prototype, "format", void 0), t([i({
463
+ })], g.prototype, "open", void 0), t([s({ type: String })], g.prototype, "placeholder", void 0), t([s({ type: String })], g.prototype, "format", void 0), t([s({
413
464
  type: String,
414
465
  reflect: !0
415
- })], f.prototype, "color", void 0), customElements.get("void-date-picker") || customElements.define("void-date-picker", f);
466
+ })], g.prototype, "color", void 0), customElements.get("void-date-picker") || customElements.define("void-date-picker", g);
416
467
  //#endregion
417
- export { d as VoidCalendar, f as VoidDatePicker };
468
+ export { h as VoidCalendar, g as VoidDatePicker };
@@ -1,18 +1,23 @@
1
1
  import { VoidElement } from '../base.js';
2
- /** Content grouping container for dashboard widgets, product listings, and media previews. */
2
+ /**
3
+ * Content grouping container for dashboard widgets, product listings, and media previews.
4
+ *
5
+ * Its regions are parts, in this order: an optional `<void-card-header>` (holding a `<void-card-title>` and an
6
+ * optional `<void-card-description>`), the `<void-card-body>`, and an optional `<void-card-footer>`. The parts are
7
+ * CSS-only and the card renders nothing of its own, so the markup looks the same before and after the script
8
+ * loads and survives any morph or re-render.
9
+ */
3
10
  export declare class VoidCard extends VoidElement {
4
- heading: string;
5
- variant: 'default' | 'elevated' | 'outlined';
11
+ /** Surface style: `default`, `elevated` (lifted, with a shadow) or `bordered` (a visible border). */
12
+ variant: 'default' | 'elevated' | 'bordered';
13
+ /**
14
+ * Space around the card's parts: `none`, `sm`, `md` (default) or `lg`. Use `none` for edge-to-edge
15
+ * content such as a table or an image.
16
+ */
6
17
  padding: 'none' | 'sm' | 'md' | 'lg';
7
- private _userContent;
8
- private _didSetup;
9
- connectedCallback(): void;
10
- protected updated(_changed: Map<string, unknown>): void;
11
- render(): import('lit').TemplateResult<1>;
12
18
  }
13
19
  declare global {
14
20
  interface HTMLElementTagNameMap {
15
21
  'void-card': VoidCard;
16
22
  }
17
23
  }
18
- //# sourceMappingURL=card.d.ts.map
@@ -1,32 +1,18 @@
1
- import { VoidElement as e } from "../base.js";
2
- import { t } from "../chunks/decorate-DKuCkHK4.js";
3
- import { html as n, nothing as r } from "lit";
4
- import { property as i } from "lit/decorators.js";
1
+ import { t as e } from "../chunks/base-CMruMbxC.js";
2
+ import { t } from "../chunks/decorate-CaYbmmmm.js";
3
+ import { property as n } from "lit/decorators.js";
5
4
  //#region src/components/card.ts
6
- var a = class extends e {
5
+ var r = class extends e {
7
6
  constructor(...e) {
8
- super(...e), this.heading = "", this.variant = "default", this.padding = "md", this._userContent = [], this._didSetup = !1;
9
- }
10
- connectedCallback() {
11
- super.connectedCallback(), this._didSetup || (this._userContent = Array.from(this.childNodes));
12
- }
13
- updated(e) {
14
- if (super.updated(e), !this._didSetup) {
15
- this._didSetup = !0;
16
- let e = this.querySelector(".void-card-body");
17
- for (let t of this._userContent) e.appendChild(t);
18
- }
19
- }
20
- render() {
21
- return n`${this.heading ? n`<div class="void-card-header"><span class="void-card-heading">${this.heading}</span></div>` : r}<div class="void-card-body"></div>`;
7
+ super(...e), this.variant = "default", this.padding = "md";
22
8
  }
23
9
  };
24
- t([i({ type: String })], a.prototype, "heading", void 0), t([i({
10
+ t([n({
25
11
  type: String,
26
12
  reflect: !0
27
- })], a.prototype, "variant", void 0), t([i({
13
+ })], r.prototype, "variant", void 0), t([n({
28
14
  type: String,
29
15
  reflect: !0
30
- })], a.prototype, "padding", void 0), customElements.get("void-card") || customElements.define("void-card", a);
16
+ })], r.prototype, "padding", void 0), customElements.get("void-card") || customElements.define("void-card", r);
31
17
  //#endregion
32
- export { a as VoidCard };
18
+ export { r as VoidCard };
@@ -1,41 +1,92 @@
1
1
  import { VoidElement } from '../base.js';
2
- /** Individual slide within a VoidCarousel; wraps any content for display in the carousel sequence. */
3
- export declare class VoidCarouselSlide extends VoidElement {
2
+ import { KeyboardActivation } from '../keyboard-activation.js';
3
+ import { PartsController } from '../parts.js';
4
+ /**
5
+ * Previous-slide control of a `<void-carousel>`: a button the theme draws as an arrow over the slides. Write it
6
+ * as an empty element with an `aria-label` ("Previous slide"); any content you put inside replaces the arrow.
7
+ * It is aria-disabled on the first slide unless the carousel has `loop`.
8
+ */
9
+ export declare class VoidCarouselPrevious extends VoidElement {
10
+ /** Enter and Space fire a real `click`, as on a native button. */
11
+ protected readonly _activation: KeyboardActivation;
4
12
  connectedCallback(): void;
5
13
  }
6
- /** Scrollable content gallery for product photo viewers, onboarding flows, and featured content sliders. */
14
+ /**
15
+ * Next-slide control of a `<void-carousel>`: a button the theme draws as an arrow over the slides. Write it as an
16
+ * empty element with an `aria-label` ("Next slide"); any content you put inside replaces the arrow. It is
17
+ * aria-disabled on the last slide unless the carousel has `loop`.
18
+ */
19
+ export declare class VoidCarouselNext extends VoidElement {
20
+ /** Enter and Space fire a real `click`, as on a native button. */
21
+ protected readonly _activation: KeyboardActivation;
22
+ connectedCallback(): void;
23
+ }
24
+ /**
25
+ * Scrollable content gallery for product photo viewers, onboarding flows, and featured content sliders.
26
+ *
27
+ * Its regions are parts, in this order: the `<void-carousel-content>` holding the `<void-carousel-item>`s (the
28
+ * slides), then the optional controls: `<void-carousel-previous>` and `<void-carousel-next>` (arrows) and
29
+ * `<void-carousel-indicators>` (a row of dots). A control is shown when you write it and absent when you do not.
30
+ * The component moves nothing: the content and the items are CSS-only parts the theme slides with a custom
31
+ * property, and the dots are the only nodes it creates, inside your empty `<void-carousel-indicators>`.
32
+ *
33
+ * @fires {CustomEvent<{ value: number; index: number; previous: number }>} void-change - The shown slide changed;
34
+ * `value` and `index` are both the new slide's index.
35
+ */
7
36
  export declare class VoidCarousel extends VoidElement {
8
- active: number;
37
+ /**
38
+ * Zero-based index of the slide being shown. Set it to jump to a slide; the arrows, indicators and
39
+ * arrow keys update it and fire `void-change`.
40
+ */
41
+ index: number;
42
+ /**
43
+ * Wrap around: Next on the last slide goes to the first, and Previous on the first goes to the last.
44
+ * Without it the arrows stop at the ends.
45
+ */
9
46
  loop: boolean;
47
+ /**
48
+ * Advance to the next slide every `interval` milliseconds. It pauses while the pointer is over the
49
+ * carousel.
50
+ */
10
51
  autoplay: boolean;
52
+ /** Milliseconds between slides when `autoplay` is on. Defaults to 5000. */
11
53
  interval: number;
54
+ /** Size step of the carousel: `sm`, `md` (default) or `lg`. */
12
55
  size: 'sm' | 'md' | 'lg';
13
- controls: boolean;
14
- indicators: boolean;
56
+ /**
57
+ * Direction slides advance: `horizontal` (default, Left and Right arrow keys) or `vertical` (Up and
58
+ * Down).
59
+ */
15
60
  orientation: 'horizontal' | 'vertical';
16
- private _slides;
17
61
  private _autoplayTimer;
18
- private _userContent;
19
- private _didSetup;
62
+ private readonly _labels;
63
+ /** Watches the dots, which the parts controller does not know: a morph that empties the indicators gets them back. */
64
+ private _dots;
65
+ protected readonly _parts: PartsController;
66
+ /** The slides, in document order. */
67
+ private get _slides();
68
+ /** Wires the slides, the arrows and the dots to the current slide. Idempotent. */
69
+ private _wire;
70
+ /** One dot (`<button role="tab">`) per slide inside the author's empty indicators part. */
71
+ private _syncDots;
20
72
  connectedCallback(): void;
21
73
  disconnectedCallback(): void;
22
74
  protected updated(changed: Map<string, unknown>): void;
23
- private _syncSlides;
24
75
  private _goTo;
25
76
  private _prev;
26
77
  private _next;
27
- private _goToSlide;
78
+ /** Clicks on this carousel's arrows and dots (delegated, so replaced controls keep working). */
79
+ private _onClick;
28
80
  private _startAutoplay;
29
81
  private _stopAutoplay;
30
82
  private _onMouseEnter;
31
83
  private _onMouseLeave;
32
84
  private _onKeydown;
33
- render(): import('lit').TemplateResult<1>;
34
85
  }
35
86
  declare global {
36
87
  interface HTMLElementTagNameMap {
37
- 'void-carousel-slide': VoidCarouselSlide;
38
88
  'void-carousel': VoidCarousel;
89
+ 'void-carousel-previous': VoidCarouselPrevious;
90
+ 'void-carousel-next': VoidCarouselNext;
39
91
  }
40
92
  }
41
- //# sourceMappingURL=carousel.d.ts.map