@voidable/ui 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. package/dist/base.d.ts +5 -0
  2. package/dist/base.d.ts.map +1 -0
  3. package/dist/base.js +9 -0
  4. package/dist/chunks/decorate-DKuCkHK4.js +9 -0
  5. package/dist/components/accordion.d.ts +25 -0
  6. package/dist/components/accordion.d.ts.map +1 -0
  7. package/dist/components/accordion.js +72 -0
  8. package/dist/components/action-input.d.ts +28 -0
  9. package/dist/components/action-input.d.ts.map +1 -0
  10. package/dist/components/action-input.js +117 -0
  11. package/dist/components/alert.d.ts +20 -0
  12. package/dist/components/alert.d.ts.map +1 -0
  13. package/dist/components/alert.js +40 -0
  14. package/dist/components/avatar.d.ts +18 -0
  15. package/dist/components/avatar.d.ts.map +1 -0
  16. package/dist/components/avatar.js +36 -0
  17. package/dist/components/badge.d.ts +14 -0
  18. package/dist/components/badge.d.ts.map +1 -0
  19. package/dist/components/badge.js +24 -0
  20. package/dist/components/banner.d.ts +20 -0
  21. package/dist/components/banner.d.ts.map +1 -0
  22. package/dist/components/banner.js +40 -0
  23. package/dist/components/breadcrumbs.d.ts +16 -0
  24. package/dist/components/breadcrumbs.d.ts.map +1 -0
  25. package/dist/components/breadcrumbs.js +33 -0
  26. package/dist/components/button.d.ts +25 -0
  27. package/dist/components/button.d.ts.map +1 -0
  28. package/dist/components/button.js +56 -0
  29. package/dist/components/calendar.d.ts +75 -0
  30. package/dist/components/calendar.d.ts.map +1 -0
  31. package/dist/components/calendar.js +405 -0
  32. package/dist/components/card.d.ts +18 -0
  33. package/dist/components/card.d.ts.map +1 -0
  34. package/dist/components/card.js +32 -0
  35. package/dist/components/carousel.d.ts +41 -0
  36. package/dist/components/carousel.d.ts.map +1 -0
  37. package/dist/components/carousel.js +142 -0
  38. package/dist/components/checkbox-group.d.ts +20 -0
  39. package/dist/components/checkbox-group.d.ts.map +1 -0
  40. package/dist/components/checkbox-group.js +48 -0
  41. package/dist/components/checkbox.d.ts +25 -0
  42. package/dist/components/checkbox.d.ts.map +1 -0
  43. package/dist/components/checkbox.js +69 -0
  44. package/dist/components/collapsible.d.ts +21 -0
  45. package/dist/components/collapsible.d.ts.map +1 -0
  46. package/dist/components/collapsible.js +60 -0
  47. package/dist/components/color-picker.d.ts +47 -0
  48. package/dist/components/color-picker.d.ts.map +1 -0
  49. package/dist/components/color-picker.js +215 -0
  50. package/dist/components/combobox.d.ts +30 -0
  51. package/dist/components/combobox.d.ts.map +1 -0
  52. package/dist/components/combobox.js +89 -0
  53. package/dist/components/compose-input.d.ts +19 -0
  54. package/dist/components/compose-input.d.ts.map +1 -0
  55. package/dist/components/compose-input.js +71 -0
  56. package/dist/components/dialog.d.ts +26 -0
  57. package/dist/components/dialog.d.ts.map +1 -0
  58. package/dist/components/dialog.js +64 -0
  59. package/dist/components/divider.d.ts +16 -0
  60. package/dist/components/divider.d.ts.map +1 -0
  61. package/dist/components/divider.js +28 -0
  62. package/dist/components/drawer.d.ts +26 -0
  63. package/dist/components/drawer.d.ts.map +1 -0
  64. package/dist/components/drawer.js +62 -0
  65. package/dist/components/dropdown-menu.d.ts +29 -0
  66. package/dist/components/dropdown-menu.d.ts.map +1 -0
  67. package/dist/components/dropdown-menu.js +72 -0
  68. package/dist/components/editable.d.ts +27 -0
  69. package/dist/components/editable.d.ts.map +1 -0
  70. package/dist/components/editable.js +82 -0
  71. package/dist/components/error-fallback.d.ts +18 -0
  72. package/dist/components/error-fallback.d.ts.map +1 -0
  73. package/dist/components/error-fallback.js +35 -0
  74. package/dist/components/field.d.ts +19 -0
  75. package/dist/components/field.d.ts.map +1 -0
  76. package/dist/components/field.js +42 -0
  77. package/dist/components/file-upload.d.ts +26 -0
  78. package/dist/components/file-upload.d.ts.map +1 -0
  79. package/dist/components/file-upload.js +98 -0
  80. package/dist/components/hamburger.d.ts +18 -0
  81. package/dist/components/hamburger.d.ts.map +1 -0
  82. package/dist/components/hamburger.js +45 -0
  83. package/dist/components/hover-card.d.ts +31 -0
  84. package/dist/components/hover-card.d.ts.map +1 -0
  85. package/dist/components/hover-card.js +80 -0
  86. package/dist/components/indicator.d.ts +20 -0
  87. package/dist/components/indicator.d.ts.map +1 -0
  88. package/dist/components/indicator.js +39 -0
  89. package/dist/components/input.d.ts +23 -0
  90. package/dist/components/input.d.ts.map +1 -0
  91. package/dist/components/input.js +73 -0
  92. package/dist/components/list.d.ts +22 -0
  93. package/dist/components/list.d.ts.map +1 -0
  94. package/dist/components/list.js +45 -0
  95. package/dist/components/menu.d.ts +50 -0
  96. package/dist/components/menu.d.ts.map +1 -0
  97. package/dist/components/menu.js +162 -0
  98. package/dist/components/multiselect.d.ts +35 -0
  99. package/dist/components/multiselect.d.ts.map +1 -0
  100. package/dist/components/multiselect.js +117 -0
  101. package/dist/components/nav-bar.d.ts +18 -0
  102. package/dist/components/nav-bar.d.ts.map +1 -0
  103. package/dist/components/nav-bar.js +35 -0
  104. package/dist/components/nav-menu.d.ts +42 -0
  105. package/dist/components/nav-menu.d.ts.map +1 -0
  106. package/dist/components/nav-menu.js +122 -0
  107. package/dist/components/number-input.d.ts +41 -0
  108. package/dist/components/number-input.d.ts.map +1 -0
  109. package/dist/components/number-input.js +143 -0
  110. package/dist/components/pagination.d.ts +17 -0
  111. package/dist/components/pagination.d.ts.map +1 -0
  112. package/dist/components/pagination.js +59 -0
  113. package/dist/components/panel.d.ts +18 -0
  114. package/dist/components/panel.d.ts.map +1 -0
  115. package/dist/components/panel.js +31 -0
  116. package/dist/components/pin-input.d.ts +33 -0
  117. package/dist/components/pin-input.d.ts.map +1 -0
  118. package/dist/components/pin-input.js +132 -0
  119. package/dist/components/popover.d.ts +24 -0
  120. package/dist/components/popover.d.ts.map +1 -0
  121. package/dist/components/popover.js +52 -0
  122. package/dist/components/progress.d.ts +18 -0
  123. package/dist/components/progress.d.ts.map +1 -0
  124. package/dist/components/progress.js +38 -0
  125. package/dist/components/radio-group.d.ts +24 -0
  126. package/dist/components/radio-group.d.ts.map +1 -0
  127. package/dist/components/radio-group.js +56 -0
  128. package/dist/components/radio.d.ts +24 -0
  129. package/dist/components/radio.d.ts.map +1 -0
  130. package/dist/components/radio.js +68 -0
  131. package/dist/components/scroll-area.d.ts +17 -0
  132. package/dist/components/scroll-area.d.ts.map +1 -0
  133. package/dist/components/scroll-area.js +30 -0
  134. package/dist/components/segmented-control.d.ts +27 -0
  135. package/dist/components/segmented-control.d.ts.map +1 -0
  136. package/dist/components/segmented-control.js +70 -0
  137. package/dist/components/select.d.ts +23 -0
  138. package/dist/components/select.d.ts.map +1 -0
  139. package/dist/components/select.js +64 -0
  140. package/dist/components/sidebar.d.ts +18 -0
  141. package/dist/components/sidebar.d.ts.map +1 -0
  142. package/dist/components/sidebar.js +40 -0
  143. package/dist/components/skeleton.d.ts +12 -0
  144. package/dist/components/skeleton.d.ts.map +1 -0
  145. package/dist/components/skeleton.js +18 -0
  146. package/dist/components/slider.d.ts +24 -0
  147. package/dist/components/slider.d.ts.map +1 -0
  148. package/dist/components/slider.js +68 -0
  149. package/dist/components/spinner.d.ts +15 -0
  150. package/dist/components/spinner.d.ts.map +1 -0
  151. package/dist/components/spinner.js +28 -0
  152. package/dist/components/stat.d.ts +18 -0
  153. package/dist/components/stat.d.ts.map +1 -0
  154. package/dist/components/stat.js +41 -0
  155. package/dist/components/status-dot.d.ts +14 -0
  156. package/dist/components/status-dot.d.ts.map +1 -0
  157. package/dist/components/status-dot.js +28 -0
  158. package/dist/components/stepper.d.ts +14 -0
  159. package/dist/components/stepper.d.ts.map +1 -0
  160. package/dist/components/stepper.js +45 -0
  161. package/dist/components/switch.d.ts +20 -0
  162. package/dist/components/switch.d.ts.map +1 -0
  163. package/dist/components/switch.js +45 -0
  164. package/dist/components/table.d.ts +14 -0
  165. package/dist/components/table.d.ts.map +1 -0
  166. package/dist/components/table.js +24 -0
  167. package/dist/components/tabs.d.ts +28 -0
  168. package/dist/components/tabs.d.ts.map +1 -0
  169. package/dist/components/tabs.js +75 -0
  170. package/dist/components/tag.d.ts +20 -0
  171. package/dist/components/tag.d.ts.map +1 -0
  172. package/dist/components/tag.js +41 -0
  173. package/dist/components/tags-input.d.ts +34 -0
  174. package/dist/components/tags-input.d.ts.map +1 -0
  175. package/dist/components/tags-input.js +108 -0
  176. package/dist/components/textarea.d.ts +24 -0
  177. package/dist/components/textarea.d.ts.map +1 -0
  178. package/dist/components/textarea.js +77 -0
  179. package/dist/components/toast.d.ts +36 -0
  180. package/dist/components/toast.d.ts.map +1 -0
  181. package/dist/components/toast.js +55 -0
  182. package/dist/components/toggle-group.d.ts +24 -0
  183. package/dist/components/toggle-group.d.ts.map +1 -0
  184. package/dist/components/toggle-group.js +80 -0
  185. package/dist/components/toggle.d.ts +15 -0
  186. package/dist/components/toggle.d.ts.map +1 -0
  187. package/dist/components/toggle.js +44 -0
  188. package/dist/components/tooltip.d.ts +26 -0
  189. package/dist/components/tooltip.d.ts.map +1 -0
  190. package/dist/components/tooltip.js +45 -0
  191. package/dist/index.d.ts +64 -1157
  192. package/dist/index.d.ts.map +1 -0
  193. package/dist/index.js +64 -4078
  194. package/package.json +20 -1
@@ -0,0 +1,122 @@
1
+ import { VoidElement as e } from "../base.js";
2
+ import { t } from "../chunks/decorate-DKuCkHK4.js";
3
+ import { property as n } from "lit/decorators.js";
4
+ //#region src/components/nav-menu.ts
5
+ var r = class extends e {
6
+ constructor(...e) {
7
+ super(...e), this.orientation = "horizontal", this.width = "", this._handleItemOpen = (e) => {
8
+ let t = e.target, n = this._getItems();
9
+ for (let e of n) e !== t && e.open && (e.open = !1, e.dispatchEvent(new CustomEvent("void-close", {
10
+ bubbles: !0,
11
+ composed: !0
12
+ })));
13
+ }, this._handleKeydown = (e) => {
14
+ let t = this._getItems();
15
+ if (!t.length) return;
16
+ let n = this.orientation === "horizontal", r = n ? "ArrowRight" : "ArrowDown", i = n ? "ArrowLeft" : "ArrowUp";
17
+ if (e.key === r || e.key === i) {
18
+ e.preventDefault();
19
+ let n = t.map((e) => e.querySelector(".void-nav-menu-trigger")).filter(Boolean), i = n.indexOf(document.activeElement);
20
+ e.key === r ? (n[i + 1] ?? n[0])?.focus() : (n[i - 1] ?? n[n.length - 1])?.focus();
21
+ }
22
+ if (e.key === "Enter" || e.key === " ") {
23
+ let t = document.activeElement?.closest?.("void-nav-menu-item");
24
+ t && this.contains(t) && !t.href && (e.preventDefault(), t.open = !t.open, t.open ? t.dispatchEvent(new CustomEvent("void-open", {
25
+ bubbles: !0,
26
+ composed: !0
27
+ })) : t.dispatchEvent(new CustomEvent("void-close", {
28
+ bubbles: !0,
29
+ composed: !0
30
+ })));
31
+ }
32
+ if (e.key === "Escape") for (let e of t) e.open && (e.open = !1, e.dispatchEvent(new CustomEvent("void-close", {
33
+ bubbles: !0,
34
+ composed: !0
35
+ })), e.querySelector(".void-nav-menu-trigger")?.focus());
36
+ };
37
+ }
38
+ connectedCallback() {
39
+ super.connectedCallback(), this.setAttribute("role", "menubar"), this.addEventListener("keydown", this._handleKeydown), this.addEventListener("void-open", this._handleItemOpen);
40
+ }
41
+ disconnectedCallback() {
42
+ super.disconnectedCallback(), this.removeEventListener("keydown", this._handleKeydown), this.removeEventListener("void-open", this._handleItemOpen);
43
+ }
44
+ updated(e) {
45
+ super.updated(e), e.has("width") && (this.width ? this.style.setProperty("--void-nav-menu-width", this.width) : this.style.removeProperty("--void-nav-menu-width"));
46
+ }
47
+ _getItems() {
48
+ return Array.from(this.querySelectorAll(":scope > void-nav-menu-item"));
49
+ }
50
+ };
51
+ t([n({
52
+ type: String,
53
+ reflect: !0
54
+ })], r.prototype, "orientation", void 0), t([n({
55
+ type: String,
56
+ reflect: !0
57
+ })], r.prototype, "width", void 0), customElements.get("void-nav-menu") || customElements.define("void-nav-menu", r);
58
+ var i = class extends e {
59
+ constructor(...e) {
60
+ super(...e), this.open = !1, this.disabled = !1, this.href = "", this.active = !1, this._triggerEl = null, this._contentEl = null, this._contentNodes = [], this._didSetup = !1, this._onMouseEnter = () => {
61
+ this.disabled || !this._contentEl || (clearTimeout(this._closeTimerId), this._openTimerId = setTimeout(() => {
62
+ this._openDropdown();
63
+ }, 150));
64
+ }, this._onMouseLeave = () => {
65
+ this._contentEl && (clearTimeout(this._openTimerId), this._closeTimerId = setTimeout(() => {
66
+ this._closeDropdown();
67
+ }, 300));
68
+ }, this._onContentEnter = () => {
69
+ clearTimeout(this._closeTimerId);
70
+ }, this._onContentLeave = () => {
71
+ this._closeTimerId = setTimeout(() => {
72
+ this._closeDropdown();
73
+ }, 300);
74
+ }, this._onOutsideClick = (e) => {
75
+ this.open && !this.contains(e.target) && this._closeDropdown();
76
+ };
77
+ }
78
+ connectedCallback() {
79
+ super.connectedCallback(), this.setAttribute("role", "none"), this._didSetup || (this._contentNodes = Array.from(this.childNodes)), this.addEventListener("mouseenter", this._onMouseEnter), this.addEventListener("mouseleave", this._onMouseLeave), document.addEventListener("mousedown", this._onOutsideClick);
80
+ }
81
+ disconnectedCallback() {
82
+ super.disconnectedCallback(), clearTimeout(this._openTimerId), clearTimeout(this._closeTimerId), this.removeEventListener("mouseenter", this._onMouseEnter), this.removeEventListener("mouseleave", this._onMouseLeave), document.removeEventListener("mousedown", this._onOutsideClick);
83
+ }
84
+ updated(e) {
85
+ if (super.updated(e), !this._didSetup) {
86
+ this._didSetup = !0, this.href ? (this._triggerEl = document.createElement("a"), this._triggerEl.href = this.href) : (this._triggerEl = document.createElement("button"), this._triggerEl.type = "button"), this._triggerEl.className = "void-nav-menu-trigger", this._triggerEl.setAttribute("role", "menuitem"), this._triggerEl.setAttribute("tabindex", this.disabled ? "-1" : "0");
87
+ let e = [], t = [];
88
+ for (let n of this._contentNodes) n.nodeType === Node.TEXT_NODE && n.textContent?.trim() ? e.push(n) : n.nodeType === Node.ELEMENT_NODE && t.push(n);
89
+ for (let t of e) this._triggerEl.appendChild(t);
90
+ if (this.appendChild(this._triggerEl), t.length > 0) {
91
+ this._triggerEl.setAttribute("aria-haspopup", "true"), this._triggerEl.setAttribute("aria-expanded", String(this.open)), this._contentEl = document.createElement("div"), this._contentEl.className = "void-nav-menu-content", this._contentEl.setAttribute("role", "menu");
92
+ for (let e of t) this._contentEl.appendChild(e);
93
+ this._contentEl.addEventListener("mouseenter", this._onContentEnter), this._contentEl.addEventListener("mouseleave", this._onContentLeave), this.appendChild(this._contentEl);
94
+ }
95
+ }
96
+ e.has("open") && this._triggerEl && this._triggerEl.setAttribute("aria-expanded", String(this.open)), e.has("disabled") && this._triggerEl && (this._triggerEl.setAttribute("tabindex", this.disabled ? "-1" : "0"), this._triggerEl.setAttribute("aria-disabled", String(this.disabled)), this._triggerEl instanceof HTMLButtonElement && (this._triggerEl.disabled = this.disabled)), e.has("href") && this._triggerEl instanceof HTMLAnchorElement && (this._triggerEl.href = this.href);
97
+ }
98
+ _openDropdown() {
99
+ this.open || (this.open = !0, this.dispatchEvent(new CustomEvent("void-open", {
100
+ bubbles: !0,
101
+ composed: !0
102
+ })));
103
+ }
104
+ _closeDropdown() {
105
+ this.open && (this.open = !1, this.dispatchEvent(new CustomEvent("void-close", {
106
+ bubbles: !0,
107
+ composed: !0
108
+ })));
109
+ }
110
+ };
111
+ t([n({
112
+ type: Boolean,
113
+ reflect: !0
114
+ })], i.prototype, "open", void 0), t([n({
115
+ type: Boolean,
116
+ reflect: !0
117
+ })], i.prototype, "disabled", void 0), t([n({ type: String })], i.prototype, "href", void 0), t([n({
118
+ type: Boolean,
119
+ reflect: !0
120
+ })], i.prototype, "active", void 0), customElements.get("void-nav-menu-item") || customElements.define("void-nav-menu-item", i);
121
+ //#endregion
122
+ export { r as VoidNavMenu, i as VoidNavMenuItem };
@@ -0,0 +1,41 @@
1
+ import { VoidElement } from '../base.js';
2
+ /** Precise numeric entry for quantity selectors, price fields, and settings with increment/decrement controls. */
3
+ export declare class VoidNumberInput extends VoidElement {
4
+ value: number;
5
+ min: number;
6
+ max: number;
7
+ step: number;
8
+ precision: number;
9
+ disabled: boolean;
10
+ readonly: boolean;
11
+ size: 'sm' | 'md' | 'lg';
12
+ color: 'default' | 'error' | 'warning' | 'success' | 'info' | 'notice';
13
+ placeholder: string;
14
+ controls: 'sides' | 'right' | 'none';
15
+ label: string;
16
+ private _pressTimer;
17
+ private _repeatTimer;
18
+ private _repeatInterval;
19
+ private _repeatCount;
20
+ private _input;
21
+ connectedCallback(): void;
22
+ updated(changed: Map<string, unknown>): void;
23
+ disconnectedCallback(): void;
24
+ private _clamp;
25
+ private _format;
26
+ private _commit;
27
+ private _increment;
28
+ private _decrement;
29
+ private _startRepeat;
30
+ private _stopRepeat;
31
+ private _onKeydown;
32
+ private _onBlur;
33
+ private _onInputChange;
34
+ render(): import('lit').TemplateResult<1>;
35
+ }
36
+ declare global {
37
+ interface HTMLElementTagNameMap {
38
+ 'void-number-input': VoidNumberInput;
39
+ }
40
+ }
41
+ //# sourceMappingURL=number-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"number-input.d.ts","sourceRoot":"","sources":["../../src/components/number-input.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,kHAAkH;AAClH,qBAAa,eAAgB,SAAQ,WAAW;IACH,KAAK,EAAE,MAAM,CAAK;IACjC,GAAG,EAAE,MAAM,CAA4B;IACvC,GAAG,EAAE,MAAM,CAA4B;IACvC,IAAI,EAAE,MAAM,CAAK;IACjB,SAAS,EAAE,MAAM,CAAM;IACP,QAAQ,EAAE,OAAO,CAAS;IAC1B,QAAQ,EAAE,OAAO,CAAS;IAC3B,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAQ;IAChC,KAAK,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAa;IAClG,WAAW,EAAE,MAAM,CAAM;IACV,QAAQ,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,CAAW;IAC9D,KAAK,EAAE,MAAM,CAAM;IAE/C,OAAO,CAAC,WAAW,CAA8C;IACjE,OAAO,CAAC,YAAY,CAA+C;IACnE,OAAO,CAAC,eAAe,CAAe;IACtC,OAAO,CAAC,YAAY,CAAa;IAEE,OAAO,CAAC,MAAM,CAAoB;IAErE,iBAAiB,IAAI,IAAI;IAezB,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAe5C,oBAAoB,IAAI,IAAI;IAK5B,OAAO,CAAC,MAAM;IAId,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,OAAO;IAef,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,UAAU;IAKlB,OAAO,CAAC,YAAY;IAuBpB,OAAO,CAAC,WAAW;IAYnB,OAAO,CAAC,UAAU;IAWlB,OAAO,CAAC,OAAO;IAUf,OAAO,CAAC,cAAc;IAItB,MAAM;CAuDP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,eAAe,CAAC;KACtC;CACF"}
@@ -0,0 +1,143 @@
1
+ import { VoidElement as e } from "../base.js";
2
+ import { t } from "../chunks/decorate-DKuCkHK4.js";
3
+ import { html as n } from "lit";
4
+ import { property as r, query as i } from "lit/decorators.js";
5
+ //#region src/components/number-input.ts
6
+ var a = class extends e {
7
+ constructor(...e) {
8
+ super(...e), this.value = 0, this.min = -Infinity, this.max = Infinity, this.step = 1, this.precision = -1, this.disabled = !1, this.readonly = !1, this.size = "md", this.color = "default", this.placeholder = "", this.controls = "sides", this.label = "", this._pressTimer = null, this._repeatTimer = null, this._repeatInterval = 300, this._repeatCount = 0;
9
+ }
10
+ connectedCallback() {
11
+ super.connectedCallback(), this.setAttribute("role", "spinbutton"), this.label && this.setAttribute("aria-label", this.label), isFinite(this.min) && this.setAttribute("aria-valuemin", String(this.min)), isFinite(this.max) && this.setAttribute("aria-valuemax", String(this.max)), this.setAttribute("aria-valuenow", String(this.value));
12
+ }
13
+ updated(e) {
14
+ e.has("value") && this.setAttribute("aria-valuenow", String(this.value)), e.has("min") && isFinite(this.min) && this.setAttribute("aria-valuemin", String(this.min)), e.has("max") && isFinite(this.max) && this.setAttribute("aria-valuemax", String(this.max)), e.has("label") && this.setAttribute("aria-label", this.label);
15
+ }
16
+ disconnectedCallback() {
17
+ super.disconnectedCallback(), this._stopRepeat();
18
+ }
19
+ _clamp(e) {
20
+ return Math.min(Math.max(e, this.min), this.max);
21
+ }
22
+ _format(e) {
23
+ return this.precision >= 0 ? e.toFixed(this.precision) : String(e);
24
+ }
25
+ _commit(e) {
26
+ let t = this._clamp(e);
27
+ if (t === this.value) return;
28
+ let n = this.value;
29
+ this.value = t, this._input && (this._input.value = this._format(t)), this.dispatchEvent(new CustomEvent("void-change", {
30
+ bubbles: !0,
31
+ composed: !0,
32
+ detail: {
33
+ value: t,
34
+ previous: n
35
+ }
36
+ }));
37
+ }
38
+ _increment() {
39
+ this.disabled || this.readonly || this._commit(this.value + this.step);
40
+ }
41
+ _decrement() {
42
+ this.disabled || this.readonly || this._commit(this.value - this.step);
43
+ }
44
+ _startRepeat(e) {
45
+ e(), this._pressTimer = setTimeout(() => {
46
+ this._repeatInterval = 300, this._repeatCount = 0, this._repeatTimer = setInterval(() => {
47
+ if (e(), this._repeatCount++, this._repeatCount % 5 == 0 && this._repeatInterval > 50) {
48
+ let t = Math.max(50, Math.floor(this._repeatInterval / 2));
49
+ t !== this._repeatInterval && (this._repeatInterval = t, clearInterval(this._repeatTimer), this._repeatTimer = setInterval(() => {
50
+ e(), this._repeatCount++;
51
+ }, this._repeatInterval));
52
+ }
53
+ }, this._repeatInterval);
54
+ }, 400);
55
+ }
56
+ _stopRepeat() {
57
+ this._pressTimer !== null && (clearTimeout(this._pressTimer), this._pressTimer = null), this._repeatTimer !== null && (clearInterval(this._repeatTimer), this._repeatTimer = null), this._repeatCount = 0;
58
+ }
59
+ _onKeydown(e) {
60
+ this.disabled || this.readonly || (e.key === "ArrowUp" ? (e.preventDefault(), this._increment()) : e.key === "ArrowDown" && (e.preventDefault(), this._decrement()));
61
+ }
62
+ _onBlur() {
63
+ if (!this._input || this.readonly) return;
64
+ let e = parseFloat(this._input.value);
65
+ isNaN(e) ? this._input.value = this._format(this.value) : this._commit(e);
66
+ }
67
+ _onInputChange() {}
68
+ render() {
69
+ let e = n`
70
+ <button
71
+ class="void-number-input-btn void-number-input-btn-dec"
72
+ type="button"
73
+ ?disabled=${this.disabled || this.readonly || this.value <= this.min}
74
+ aria-label="Decrement"
75
+ @pointerdown=${(e) => {
76
+ e.preventDefault(), this._startRepeat(() => this._decrement());
77
+ }}
78
+ @pointerup=${() => this._stopRepeat()}
79
+ @pointerleave=${() => this._stopRepeat()}
80
+ >
81
+ <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em">
82
+ <line x1="3" y1="8" x2="13" y2="8"/>
83
+ </svg>
84
+ </button>
85
+ `, t = n`
86
+ <button
87
+ class="void-number-input-btn void-number-input-btn-inc"
88
+ type="button"
89
+ ?disabled=${this.disabled || this.readonly || this.value >= this.max}
90
+ aria-label="Increment"
91
+ @pointerdown=${(e) => {
92
+ e.preventDefault(), this._startRepeat(() => this._increment());
93
+ }}
94
+ @pointerup=${() => this._stopRepeat()}
95
+ @pointerleave=${() => this._stopRepeat()}
96
+ >
97
+ <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="var(--void-icon-stroke-width)" stroke-linecap="round" stroke-linejoin="round" width="1em" height="1em">
98
+ <line x1="8" y1="3" x2="8" y2="13"/>
99
+ <line x1="3" y1="8" x2="13" y2="8"/>
100
+ </svg>
101
+ </button>
102
+ `;
103
+ return n`
104
+ ${this.controls !== "none" && this.controls !== "right" ? e : ""}
105
+ <input
106
+ class="void-number-input-field"
107
+ type="text"
108
+ inputmode="numeric"
109
+ .value=${this._format(this.value)}
110
+ placeholder=${this.placeholder}
111
+ ?disabled=${this.disabled}
112
+ ?readonly=${this.readonly}
113
+ aria-label=${this.label || "Number input"}
114
+ @keydown=${this._onKeydown}
115
+ @blur=${this._onBlur}
116
+ @change=${this._onInputChange}
117
+ />
118
+ ${this.controls === "right" ? n`<div class="void-number-input-btn-group">${t}${e}</div>` : ""}
119
+ ${this.controls === "sides" ? t : ""}
120
+ `;
121
+ }
122
+ };
123
+ t([r({
124
+ type: Number,
125
+ reflect: !0
126
+ })], a.prototype, "value", void 0), t([r({ type: Number })], a.prototype, "min", void 0), t([r({ type: Number })], a.prototype, "max", void 0), t([r({ type: Number })], a.prototype, "step", void 0), t([r({ type: Number })], a.prototype, "precision", void 0), t([r({
127
+ type: Boolean,
128
+ reflect: !0
129
+ })], a.prototype, "disabled", void 0), t([r({
130
+ type: Boolean,
131
+ reflect: !0
132
+ })], a.prototype, "readonly", void 0), t([r({
133
+ type: String,
134
+ reflect: !0
135
+ })], a.prototype, "size", void 0), t([r({
136
+ type: String,
137
+ reflect: !0
138
+ })], a.prototype, "color", void 0), t([r({ type: String })], a.prototype, "placeholder", void 0), t([r({
139
+ type: String,
140
+ reflect: !0
141
+ })], a.prototype, "controls", void 0), t([r({ type: String })], a.prototype, "label", void 0), t([i(".void-number-input-field")], a.prototype, "_input", void 0), customElements.get("void-number-input") || customElements.define("void-number-input", a);
142
+ //#endregion
143
+ export { a as VoidNumberInput };
@@ -0,0 +1,17 @@
1
+ import { VoidElement } from '../base.js';
2
+ /** Page navigation for data tables, search result lists, and content archives. */
3
+ export declare class VoidPagination extends VoidElement {
4
+ total: number;
5
+ value: number;
6
+ siblings: number;
7
+ size: 'sm' | 'md' | 'lg';
8
+ private _pages;
9
+ private _go;
10
+ render(): import('lit').TemplateResult<1>;
11
+ }
12
+ declare global {
13
+ interface HTMLElementTagNameMap {
14
+ 'void-pagination': VoidPagination;
15
+ }
16
+ }
17
+ //# sourceMappingURL=pagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.d.ts","sourceRoot":"","sources":["../../src/components/pagination.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,kFAAkF;AAClF,qBAAa,cAAe,SAAQ,WAAW;IACjB,KAAK,SAAK;IACK,KAAK,SAAK;IACzB,QAAQ,SAAK;IACE,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAQ;IAE3E,OAAO,CAAC,MAAM;IA4Bd,OAAO,CAAC,GAAG;IAUX,MAAM;CAmCP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,cAAc,CAAC;KACnC;CACF"}
@@ -0,0 +1,59 @@
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";
5
+ //#region src/components/pagination.ts
6
+ var a = class extends e {
7
+ constructor(...e) {
8
+ super(...e), this.total = 1, this.value = 1, this.siblings = 1, this.size = "md";
9
+ }
10
+ _pages() {
11
+ let { total: e, value: t, siblings: n } = this, r = [], i = Math.max(2, t - n), a = Math.min(e - 1, t + n);
12
+ r.push(1), i > 2 && r.push("ellipsis");
13
+ for (let e = i; e <= a; e++) r.push(e);
14
+ return a < e - 1 && r.push("ellipsis"), e > 1 && r.push(e), r;
15
+ }
16
+ _go(e) {
17
+ e < 1 || e > this.total || e === this.value || (this.value = e, this.dispatchEvent(new CustomEvent("void-change", {
18
+ bubbles: !0,
19
+ composed: !0,
20
+ detail: { value: e }
21
+ })));
22
+ }
23
+ render() {
24
+ let e = this._pages(), t = 0;
25
+ return n`
26
+ <nav role="navigation" aria-label="Pagination">
27
+ <button
28
+ class="void-pagination-btn"
29
+ ?disabled=${this.value <= 1}
30
+ @click=${() => this._go(this.value - 1)}
31
+ aria-label="Previous page"
32
+ >«</button>
33
+ ${e.map((e) => e === "ellipsis" ? (t++, n`<span class="void-pagination-ellipsis" aria-hidden="true" data-key=${t}>…</span>`) : n`
34
+ <button
35
+ class="void-pagination-btn"
36
+ ?disabled=${e === this.value}
37
+ aria-current=${e === this.value ? "page" : r}
38
+ @click=${() => this._go(e)}
39
+ >${e}</button>
40
+ `)}
41
+ <button
42
+ class="void-pagination-btn"
43
+ ?disabled=${this.value >= this.total}
44
+ @click=${() => this._go(this.value + 1)}
45
+ aria-label="Next page"
46
+ >»</button>
47
+ </nav>
48
+ `;
49
+ }
50
+ };
51
+ t([i({ type: Number })], a.prototype, "total", void 0), t([i({
52
+ type: Number,
53
+ reflect: !0
54
+ })], a.prototype, "value", void 0), t([i({ type: Number })], a.prototype, "siblings", void 0), t([i({
55
+ type: String,
56
+ reflect: !0
57
+ })], a.prototype, "size", void 0), customElements.get("void-pagination") || customElements.define("void-pagination", a);
58
+ //#endregion
59
+ export { a as VoidPagination };
@@ -0,0 +1,18 @@
1
+ import { nothing } from 'lit';
2
+ import { VoidElement } from '../base.js';
3
+ /** Bordered or elevated content region for grouping related settings, dashboard sections, and detail blocks. */
4
+ export declare class VoidPanel extends VoidElement {
5
+ label: string;
6
+ variant: 'default' | 'bordered' | 'elevated';
7
+ private _userContent;
8
+ private _didSetup;
9
+ connectedCallback(): void;
10
+ protected updated(changed: Map<string, unknown>): void;
11
+ render(): typeof nothing | import('lit').TemplateResult<1>;
12
+ }
13
+ declare global {
14
+ interface HTMLElementTagNameMap {
15
+ 'void-panel': VoidPanel;
16
+ }
17
+ }
18
+ //# sourceMappingURL=panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"panel.d.ts","sourceRoot":"","sources":["../../src/components/panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,MAAM,KAAK,CAAC;AAEpC,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,gHAAgH;AAChH,qBAAa,SAAU,SAAQ,WAAW;IACG,KAAK,SAAM;IACX,OAAO,EAAE,SAAS,GAAG,UAAU,GAAG,UAAU,CAAa;IAEpG,OAAO,CAAC,YAAY,CAAc;IAClC,OAAO,CAAC,SAAS,CAAS;IAE1B,iBAAiB,IAAI,IAAI;cAWN,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAiB/D,MAAM;CAKP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,YAAY,EAAE,SAAS,CAAC;KACzB;CACF"}
@@ -0,0 +1,31 @@
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";
5
+ //#region src/components/panel.ts
6
+ var a = class extends e {
7
+ constructor(...e) {
8
+ super(...e), this.label = "", this.variant = "default", this._userContent = [], this._didSetup = !1;
9
+ }
10
+ connectedCallback() {
11
+ super.connectedCallback(), this.setAttribute("role", "region"), this.label && this.setAttribute("aria-label", this.label), this._didSetup || (this._userContent = Array.from(this.childNodes));
12
+ }
13
+ updated(e) {
14
+ if (super.updated(e), e.has("label") && (this.label ? this.setAttribute("aria-label", this.label) : this.removeAttribute("aria-label")), !this._didSetup) {
15
+ this._didSetup = !0;
16
+ for (let e of this._userContent) this.appendChild(e);
17
+ }
18
+ }
19
+ render() {
20
+ return this.label ? n`<div class="void-panel-label">${this.label}</div>` : r;
21
+ }
22
+ };
23
+ t([i({
24
+ type: String,
25
+ reflect: !0
26
+ })], a.prototype, "label", void 0), t([i({
27
+ type: String,
28
+ reflect: !0
29
+ })], a.prototype, "variant", void 0), customElements.get("void-panel") || customElements.define("void-panel", a);
30
+ //#endregion
31
+ export { a as VoidPanel };
@@ -0,0 +1,33 @@
1
+ import { VoidElement } from '../base.js';
2
+ /** Single-character input cells for OTP verification codes, PIN entry, and multi-digit confirmation fields. */
3
+ export declare class VoidPinInput extends VoidElement {
4
+ length: number;
5
+ groups: string;
6
+ value: string;
7
+ disabled: boolean;
8
+ mask: boolean;
9
+ type: 'numeric' | 'alphanumeric';
10
+ size: 'sm' | 'md' | 'lg';
11
+ color: 'default' | 'error' | 'warning' | 'success' | 'info' | 'notice';
12
+ placeholder: string;
13
+ private get _effectiveLength();
14
+ private get _parsedGroups();
15
+ private _separatorIndices;
16
+ connectedCallback(): void;
17
+ private _getCells;
18
+ private _focusCell;
19
+ private _collectValue;
20
+ private _syncValue;
21
+ private _isValidChar;
22
+ private _onInput;
23
+ private _onKeydown;
24
+ private _onPaste;
25
+ private _onFocus;
26
+ render(): import('lit').TemplateResult<1>;
27
+ }
28
+ declare global {
29
+ interface HTMLElementTagNameMap {
30
+ 'void-pin-input': VoidPinInput;
31
+ }
32
+ }
33
+ //# sourceMappingURL=pin-input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pin-input.d.ts","sourceRoot":"","sources":["../../src/components/pin-input.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,+GAA+G;AAC/G,qBAAa,YAAa,SAAQ,WAAW;IACf,MAAM,EAAE,MAAM,CAAK;IACJ,MAAM,EAAE,MAAM,CAAM;IACnC,KAAK,EAAE,MAAM,CAAM;IACH,QAAQ,EAAE,OAAO,CAAS;IAC1B,IAAI,EAAE,OAAO,CAAS;IACvB,IAAI,EAAE,SAAS,GAAG,cAAc,CAAa;IAC7C,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAQ;IAChC,KAAK,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAa;IAClG,WAAW,EAAE,MAAM,CAAM;IAErD,OAAO,KAAK,gBAAgB,GAG3B;IAED,OAAO,KAAK,aAAa,GAGxB;IAED,OAAO,CAAC,iBAAiB;IAYzB,iBAAiB,IAAI,IAAI;IAMzB,OAAO,CAAC,SAAS;IAIjB,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,UAAU;IAmBlB,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,QAAQ;IAahB,OAAO,CAAC,UAAU;IA2BlB,OAAO,CAAC,QAAQ;IAoBhB,OAAO,CAAC,QAAQ;IAKhB,MAAM;CA4BP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,gBAAgB,EAAE,YAAY,CAAC;KAChC;CACF"}
@@ -0,0 +1,132 @@
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";
5
+ //#region src/components/pin-input.ts
6
+ var a = class extends e {
7
+ constructor(...e) {
8
+ super(...e), this.length = 6, this.groups = "", this.value = "", this.disabled = !1, this.mask = !1, this.type = "numeric", this.size = "md", this.color = "default", this.placeholder = "";
9
+ }
10
+ get _effectiveLength() {
11
+ let e = this._parsedGroups;
12
+ return e.length > 0 ? e.reduce((e, t) => e + t, 0) : this.length;
13
+ }
14
+ get _parsedGroups() {
15
+ return this.groups ? this.groups.split(",").map((e) => parseInt(e.trim(), 10)).filter((e) => e > 0) : [];
16
+ }
17
+ _separatorIndices() {
18
+ let e = this._parsedGroups;
19
+ if (e.length < 2) return /* @__PURE__ */ new Set();
20
+ let t = /* @__PURE__ */ new Set(), n = 0;
21
+ for (let r = 0; r < e.length - 1; r++) n += e[r], t.add(n);
22
+ return t;
23
+ }
24
+ connectedCallback() {
25
+ super.connectedCallback(), this.setAttribute("role", "group"), this.setAttribute("aria-label", "PIN input");
26
+ }
27
+ _getCells() {
28
+ return Array.from(this.querySelectorAll(".void-pin-cell"));
29
+ }
30
+ _focusCell(e) {
31
+ let t = this._getCells();
32
+ e >= 0 && e < t.length && (t[e].focus(), t[e].select());
33
+ }
34
+ _collectValue() {
35
+ return this._getCells().map((e) => e.value).join("");
36
+ }
37
+ _syncValue() {
38
+ let e = this.value;
39
+ this.value = this._collectValue(), this.value !== e && (this.dispatchEvent(new CustomEvent("void-change", {
40
+ bubbles: !0,
41
+ composed: !0,
42
+ detail: { value: this.value }
43
+ })), this.value.length === this._effectiveLength && this.dispatchEvent(new CustomEvent("void-complete", {
44
+ bubbles: !0,
45
+ composed: !0,
46
+ detail: { value: this.value }
47
+ })));
48
+ }
49
+ _isValidChar(e) {
50
+ return this.type === "numeric" ? /^[0-9]$/.test(e) : /^[a-zA-Z0-9]$/.test(e);
51
+ }
52
+ _onInput(e, t) {
53
+ let n = e.target, r = n.value;
54
+ if (r && !this._isValidChar(r)) {
55
+ n.value = "";
56
+ return;
57
+ }
58
+ this._syncValue(), r && t < this._effectiveLength - 1 && this._focusCell(t + 1);
59
+ }
60
+ _onKeydown(e, t) {
61
+ let n = e.target;
62
+ if (e.key === "Backspace") {
63
+ if (n.value) n.value = "", this._syncValue();
64
+ else if (t > 0) {
65
+ this._focusCell(t - 1);
66
+ let e = this._getCells()[t - 1];
67
+ e.value = "", this._syncValue();
68
+ }
69
+ e.preventDefault();
70
+ } else e.key === "ArrowLeft" ? (e.preventDefault(), this._focusCell(t - 1)) : e.key === "ArrowRight" ? (e.preventDefault(), this._focusCell(t + 1)) : e.key === "Delete" && (n.value = "", this._syncValue(), e.preventDefault());
71
+ }
72
+ _onPaste(e) {
73
+ e.preventDefault();
74
+ let t = e.clipboardData?.getData("text") ?? "", n = this._getCells(), r = e.target, i = n.indexOf(r), a = 0;
75
+ for (let e = 0; e < t.length && i + a < n.length; e++) {
76
+ let r = t[e];
77
+ this._isValidChar(r) && (n[i + a].value = r, a++);
78
+ }
79
+ this._syncValue();
80
+ let o = Math.min(i + a, this._effectiveLength - 1);
81
+ this._focusCell(o);
82
+ }
83
+ _onFocus(e) {
84
+ e.target.select();
85
+ }
86
+ render() {
87
+ let e = [], t = this._separatorIndices();
88
+ for (let i = 0; i < this._effectiveLength; i++) {
89
+ t.has(i) && e.push(n`<span class="void-pin-separator" aria-hidden="true">–</span>`);
90
+ let a = this.value[i] ?? "";
91
+ e.push(n`
92
+ <input
93
+ class="void-pin-cell"
94
+ type=${this.mask ? "password" : "text"}
95
+ inputmode=${this.type === "numeric" ? "numeric" : "text"}
96
+ maxlength="1"
97
+ .value=${a}
98
+ placeholder=${this.placeholder || r}
99
+ ?disabled=${this.disabled}
100
+ autocomplete="one-time-code"
101
+ aria-label=${`Digit ${i + 1} of ${this._effectiveLength}`}
102
+ @input=${(e) => this._onInput(e, i)}
103
+ @keydown=${(e) => this._onKeydown(e, i)}
104
+ @paste=${this._onPaste}
105
+ @focus=${this._onFocus}
106
+ />
107
+ `);
108
+ }
109
+ return n`<div class="void-pin-input">${e}</div>`;
110
+ }
111
+ };
112
+ t([i({ type: Number })], a.prototype, "length", void 0), t([i({
113
+ type: String,
114
+ reflect: !0
115
+ })], a.prototype, "groups", void 0), t([i({ type: String })], a.prototype, "value", void 0), t([i({
116
+ type: Boolean,
117
+ reflect: !0
118
+ })], a.prototype, "disabled", void 0), t([i({
119
+ type: Boolean,
120
+ reflect: !0
121
+ })], a.prototype, "mask", void 0), t([i({
122
+ type: String,
123
+ reflect: !0
124
+ })], a.prototype, "type", void 0), t([i({
125
+ type: String,
126
+ reflect: !0
127
+ })], a.prototype, "size", void 0), t([i({
128
+ type: String,
129
+ reflect: !0
130
+ })], a.prototype, "color", void 0), t([i({ type: String })], a.prototype, "placeholder", void 0), customElements.get("void-pin-input") || customElements.define("void-pin-input", a);
131
+ //#endregion
132
+ export { a as VoidPinInput };
@@ -0,0 +1,24 @@
1
+ import { VoidElement } from '../base.js';
2
+ /** Anchored overlay for contextual detail and mini-forms that need more room than a tooltip. */
3
+ export declare class VoidPopover extends VoidElement {
4
+ open: boolean;
5
+ position: 'top' | 'bottom' | 'left' | 'right';
6
+ trigger: 'click' | 'manual';
7
+ private _triggerEl;
8
+ private _contentNodes;
9
+ private _didSetup;
10
+ connectedCallback(): void;
11
+ disconnectedCallback(): void;
12
+ protected updated(changed: Map<string, unknown>): void;
13
+ private _handleTriggerClick;
14
+ private _handleOutsideClick;
15
+ private _handleKeydown;
16
+ private _close;
17
+ private _dispatchClose;
18
+ }
19
+ declare global {
20
+ interface HTMLElementTagNameMap {
21
+ 'void-popover': VoidPopover;
22
+ }
23
+ }
24
+ //# sourceMappingURL=popover.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/components/popover.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,gGAAgG;AAChG,qBAAa,WAAY,SAAQ,WAAW;IACE,IAAI,UAAS;IACd,QAAQ,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAY;IACzD,OAAO,EAAE,OAAO,GAAG,QAAQ,CAAW;IAEjF,OAAO,CAAC,UAAU,CAAwB;IAC1C,OAAO,CAAC,aAAa,CAAc;IACnC,OAAO,CAAC,SAAS,CAAS;IAE1B,iBAAiB,IAAI,IAAI;IAUzB,oBAAoB,IAAI,IAAI;cAMT,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IA0B/D,OAAO,CAAC,mBAAmB,CAKzB;IAEF,OAAO,CAAC,mBAAmB,CAIzB;IAEF,OAAO,CAAC,cAAc,CAIpB;IAEF,OAAO,CAAC,MAAM;IAKd,OAAO,CAAC,cAAc;CAIvB;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,cAAc,EAAE,WAAW,CAAC;KAC7B;CACF"}