@voidable/ui 0.5.5 → 0.6.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.
@@ -0,0 +1,216 @@
1
+ import { t as e } from "../chunks/decorate-DKuCkHK4.js";
2
+ import { n as t } from "../chunks/scale-BFZNL3Ss.js";
3
+ import { a as n, i as r, n as i, r as a } from "../chunks/shape-DmgCwYvY.js";
4
+ import { LitElement as o, html as s, nothing as c, svg as l } from "lit";
5
+ import { property as u, state as d } from "lit/decorators.js";
6
+ //#region src/components/line-chart.ts
7
+ function f(e) {
8
+ return 1 - (1 - e) ** 3;
9
+ }
10
+ function p(e) {
11
+ return e === 0 ? "0" : Math.abs(e) >= 1e3 ? `${(e / 1e3).toFixed(e >= 1e4 ? 0 : 1)}k` : Number.isInteger(e) ? String(e) : e.toFixed(1);
12
+ }
13
+ function m(e) {
14
+ return Math.abs(e) >= 1e3 ? `${(e / 1e3).toFixed(e >= 1e4 ? 0 : 1)}k` : Math.round(e).toString();
15
+ }
16
+ function h(e) {
17
+ if (e <= 0) return 1;
18
+ let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
19
+ return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
20
+ }
21
+ var g = class extends o {
22
+ constructor(...e) {
23
+ super(...e), this.height = 220, this.showValues = !1, this.variant = "outline", this.interpolation = "linear", this.ariaLabel = "", this._data = { series: [] }, this._phase = "pre", this._display = /* @__PURE__ */ new Map(), this._targets = /* @__PURE__ */ new Map(), this._animFrom = /* @__PURE__ */ new Map(), this._animStart = 0, this._animDuration = 0, this._rafHandle = 0, this._reveal = 0, this._revealFrom = 0, this._hoverIndex = null, this._tick = (e) => {
24
+ let t = e - this._animStart, n = Math.min(t / this._animDuration, 1), r = f(n);
25
+ this._reveal = this._revealFrom + (1 - this._revealFrom) * r;
26
+ for (let [e, t] of this._targets) {
27
+ let n = this._animFrom.get(e) ?? 0;
28
+ this._display.set(e, n + (t - n) * r);
29
+ }
30
+ this.requestUpdate(), n < 1 ? this._rafHandle = requestAnimationFrame(this._tick) : this._phase = "idle";
31
+ }, this._onMouseMove = (e) => {
32
+ let t = this.querySelector("svg");
33
+ if (!t) return;
34
+ let n = Math.max(0, ...this._data.series.map((e) => e.values.length));
35
+ if (n < 2) return;
36
+ let r = t.getBoundingClientRect();
37
+ if (r.width === 0) return;
38
+ let i = (e.clientX - r.left) / r.width * 600;
39
+ if (i < 40 || i > 584) {
40
+ this._hoverIndex !== null && (this._hoverIndex = null);
41
+ return;
42
+ }
43
+ let a = (i - 40) / 544, o = Math.round(a * (n - 1));
44
+ o !== this._hoverIndex && (this._hoverIndex = o);
45
+ }, this._onMouseLeave = () => {
46
+ this._hoverIndex = null;
47
+ };
48
+ }
49
+ createRenderRoot() {
50
+ return this;
51
+ }
52
+ get data() {
53
+ return this._data;
54
+ }
55
+ set data(e) {
56
+ let t = new Map(this._display);
57
+ this._data = e, this._refreshTargets(), this.requestUpdate(), this.updateComplete.then(() => this._startAnimation(t, !1));
58
+ }
59
+ _key(e, t) {
60
+ return `${e}-${t}`;
61
+ }
62
+ _refreshTargets() {
63
+ this._targets.clear(), this._data.series.forEach((e, t) => {
64
+ e.values.forEach((e, n) => this._targets.set(this._key(t, n), e));
65
+ });
66
+ }
67
+ connectedCallback() {
68
+ super.connectedCallback(), this.setAttribute("role", "img"), this._refreshTargets(), requestAnimationFrame(() => {
69
+ this._startAnimation(/* @__PURE__ */ new Map(), !0);
70
+ }), this.addEventListener("mousemove", this._onMouseMove), this.addEventListener("mouseleave", this._onMouseLeave);
71
+ }
72
+ disconnectedCallback() {
73
+ super.disconnectedCallback(), cancelAnimationFrame(this._rafHandle), this.removeEventListener("mousemove", this._onMouseMove), this.removeEventListener("mouseleave", this._onMouseLeave);
74
+ }
75
+ _startAnimation(e, t) {
76
+ cancelAnimationFrame(this._rafHandle);
77
+ let n = getComputedStyle(this), r = n.getPropertyValue("--void-anim-scale").trim(), i = r === "" ? 1 : parseFloat(r), a = parseFloat(n.getPropertyValue("--void-duration-chart-enter")) || 700;
78
+ if (this._animDuration = a * i, this._animStart = performance.now(), t ? (this._display = new Map(this._targets), this._animFrom = new Map(this._targets), this._revealFrom = 0, this._reveal = 0) : (this._animFrom = e, this._revealFrom = 1, this._reveal = 1), this._animDuration <= 0) {
79
+ this._display = new Map(this._targets), this._reveal = 1, this._phase = "idle", this.requestUpdate();
80
+ return;
81
+ }
82
+ this._phase = "animating", this._rafHandle = requestAnimationFrame(this._tick);
83
+ }
84
+ render() {
85
+ let { series: e, labels: o = [] } = this._data;
86
+ if (e.length === 0) return s`<svg viewBox="0 0 600 ${this.height}" aria-label=${this.ariaLabel}></svg>`;
87
+ let u = this.height - 16 - 32, d = Math.max(...e.map((e) => e.values.length)), f = e.flatMap((e) => e.values), g = h(Math.max(...f, 0) * 1.1) || 1, _ = new t([0, Math.max(0, d - 1)], [40, 584]), v = new t([0, g], [16 + u, 16]), y = v.ticks(5), b = 16 + u, x = getComputedStyle(this), S = (parseFloat(x.getPropertyValue("--void-radius-sm")) || 0) > 0 && this.interpolation === "linear", C = S ? n : a, w = S ? r : i, T = e.map((e, t) => {
88
+ let n = [];
89
+ for (let r = 0; r < e.values.length; r++) {
90
+ let e = this._display.get(this._key(t, r)) ?? 0;
91
+ n.push([_.scale(r), v.scale(e)]);
92
+ }
93
+ if (this.interpolation === "step") {
94
+ let e = [];
95
+ for (let t = 0; t < n.length; t++) e.push(n[t]), t < n.length - 1 && e.push([n[t + 1][0], n[t][1]]);
96
+ return e;
97
+ }
98
+ return n;
99
+ });
100
+ return s`
101
+ <svg
102
+ viewBox="0 0 ${600} ${this.height}"
103
+ preserveAspectRatio="none"
104
+ role="img"
105
+ aria-label=${this.ariaLabel || "Line chart"}
106
+ data-phase=${this._phase}
107
+ style="--reveal: ${this._reveal}"
108
+ >
109
+ <g class="void-line-chart-grid">
110
+ ${y.map((e) => {
111
+ let t = v.scale(e);
112
+ return l`<line x1=${40} x2=${584} y1=${t} y2=${t}></line>`;
113
+ })}
114
+ </g>
115
+
116
+ <g class="void-line-chart-y-axis">
117
+ ${y.map((e) => l`<text x=${32} y=${v.scale(e)} dy="0.32em" text-anchor="end">${p(e)}</text>`)}
118
+ </g>
119
+
120
+ ${e.map((e, t) => {
121
+ let n = e.color ?? `var(--void-chart-series-${t % 6 + 1})`, r = T[t];
122
+ return l`
123
+ <g class="void-line-chart-series" style="--series-color: ${n}">
124
+ <path class="void-line-chart-area" d=${w(r, b)}></path>
125
+ <path class="void-line-chart-line" d=${C(r)}></path>
126
+ </g>
127
+ `;
128
+ })}
129
+
130
+ ${this.showValues ? e.map((e, t) => l`
131
+ <g class="void-line-chart-values">
132
+ ${e.values.map((e, n) => {
133
+ let r = this._display.get(this._key(t, n)) ?? 0;
134
+ return l`<text x=${_.scale(n)} y=${v.scale(r) - 8} text-anchor="middle">${m(r)}</text>`;
135
+ })}
136
+ </g>
137
+ `) : c}
138
+
139
+ <g class="void-line-chart-x-axis">
140
+ ${o.slice(0, d).map((e, t) => l`<text x=${_.scale(t)} y=${16 + u + 18} text-anchor="middle">${e}</text>`)}
141
+ </g>
142
+
143
+ ${this._hoverIndex !== null && this._hoverIndex < d ? this._renderHover(e, o, _, v, this._hoverIndex, 16, u, 40, 544) : c}
144
+ </svg>
145
+ `;
146
+ }
147
+ _renderHover(e, t, n, r, i, a, o, s, c) {
148
+ let u = n.scale(i), d = e.map((e, t) => {
149
+ let n = this._display.get(this._key(t, i)) ?? 0, a = e.color ?? `var(--void-chart-series-${t % 6 + 1})`;
150
+ return {
151
+ name: e.name,
152
+ value: n,
153
+ color: a,
154
+ y: r.scale(n)
155
+ };
156
+ }), f = 16 + d.length * 14 + 16, p = u + 12 + 140 > s + c ? u - 12 - 140 : u + 12, h = Math.max(a, Math.min(a + o - f, a + 8)), g = t[i] ?? String(i);
157
+ return l`
158
+ <g class="void-line-chart-hover">
159
+ <line
160
+ class="void-line-chart-hairline"
161
+ x1=${u} x2=${u}
162
+ y1=${a} y2=${a + o}
163
+ ></line>
164
+ ${d.map((e) => l`
165
+ <rect
166
+ class="void-line-chart-marker"
167
+ x=${u - 5} y=${e.y - 5}
168
+ width="10" height="10"
169
+ style="--marker-color: ${e.color}"
170
+ ></rect>
171
+ `)}
172
+ <rect
173
+ class="void-line-chart-tooltip-bg"
174
+ x=${p} y=${h}
175
+ width=${140} height=${f}
176
+ rx="6" ry="6"
177
+ ></rect>
178
+ <text
179
+ class="void-line-chart-tooltip-label"
180
+ x=${p + 8}
181
+ y=${h + 8 + 10}
182
+ >${g}</text>
183
+ ${d.map((e, t) => l`
184
+ <circle
185
+ class="void-line-chart-tooltip-swatch"
186
+ cx=${p + 8 + 5}
187
+ cy=${h + 16 + 8 + t * 14 + 4}
188
+ r="4"
189
+ style="--swatch-color: ${e.color}"
190
+ ></circle>
191
+ <text
192
+ class="void-line-chart-tooltip-name"
193
+ x=${p + 8 + 14}
194
+ y=${h + 16 + 8 + t * 14 + 8}
195
+ >${e.name}</text>
196
+ <text
197
+ class="void-line-chart-tooltip-value"
198
+ x=${p + 140 - 8}
199
+ y=${h + 16 + 8 + t * 14 + 8}
200
+ text-anchor="end"
201
+ >${m(e.value)}</text>
202
+ `)}
203
+ </g>
204
+ `;
205
+ }
206
+ };
207
+ e([u({
208
+ type: Number,
209
+ reflect: !0
210
+ })], g.prototype, "height", void 0), e([u({
211
+ type: Boolean,
212
+ attribute: "show-values",
213
+ reflect: !0
214
+ })], g.prototype, "showValues", void 0), e([u({ reflect: !0 })], g.prototype, "variant", void 0), e([u({ reflect: !0 })], g.prototype, "interpolation", void 0), e([u({ attribute: "aria-label" })], g.prototype, "ariaLabel", void 0), e([d()], g.prototype, "_phase", void 0), e([d()], g.prototype, "_hoverIndex", void 0), customElements.get("void-line-chart") || customElements.define("void-line-chart", g);
215
+ //#endregion
216
+ export { g as VoidLineChart };
@@ -13,6 +13,8 @@ export declare class VoidNumberInput extends VoidElement {
13
13
  placeholder: string;
14
14
  controls: 'sides' | 'right' | 'none';
15
15
  label: string;
16
+ prefix: string;
17
+ unit: string;
16
18
  private _pressTimer;
17
19
  private _repeatTimer;
18
20
  private _repeatInterval;
@@ -1 +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,CA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AAC,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;CAyDP;AAMD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,mBAAmB,EAAE,eAAe,CAAC;KACtC;CACF"}
@@ -1,11 +1,11 @@
1
1
  import { VoidElement as e } from "../base.js";
2
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";
3
+ import { html as n, nothing as r } from "lit";
4
+ import { property as i, query as a } from "lit/decorators.js";
5
5
  //#region src/components/number-input.ts
6
- var a = class extends e {
6
+ var o = class extends e {
7
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;
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.prefix = "", this.unit = "", this._pressTimer = null, this._repeatTimer = null, this._repeatInterval = 300, this._repeatCount = 0;
9
9
  }
10
10
  connectedCallback() {
11
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));
@@ -102,6 +102,7 @@ var a = class extends e {
102
102
  `;
103
103
  return n`
104
104
  ${this.controls !== "none" && this.controls !== "right" ? e : ""}
105
+ ${this.prefix ? n`<span class="void-number-input-prefix">${this.prefix}</span>` : r}
105
106
  <input
106
107
  class="void-number-input-field"
107
108
  type="text"
@@ -115,29 +116,30 @@ var a = class extends e {
115
116
  @blur=${this._onBlur}
116
117
  @change=${this._onInputChange}
117
118
  />
119
+ ${this.unit ? n`<span class="void-number-input-unit">${this.unit}</span>` : r}
118
120
  ${this.controls === "right" ? n`<div class="void-number-input-btn-group">${t}${e}</div>` : ""}
119
121
  ${this.controls === "sides" ? t : ""}
120
122
  `;
121
123
  }
122
124
  };
123
- t([r({
125
+ t([i({
124
126
  type: Number,
125
127
  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({
128
+ })], o.prototype, "value", void 0), t([i({ type: Number })], o.prototype, "min", void 0), t([i({ type: Number })], o.prototype, "max", void 0), t([i({ type: Number })], o.prototype, "step", void 0), t([i({ type: Number })], o.prototype, "precision", void 0), t([i({
127
129
  type: Boolean,
128
130
  reflect: !0
129
- })], a.prototype, "disabled", void 0), t([r({
131
+ })], o.prototype, "disabled", void 0), t([i({
130
132
  type: Boolean,
131
133
  reflect: !0
132
- })], a.prototype, "readonly", void 0), t([r({
134
+ })], o.prototype, "readonly", void 0), t([i({
133
135
  type: String,
134
136
  reflect: !0
135
- })], a.prototype, "size", void 0), t([r({
137
+ })], o.prototype, "size", void 0), t([i({
136
138
  type: String,
137
139
  reflect: !0
138
- })], a.prototype, "color", void 0), t([r({ type: String })], a.prototype, "placeholder", void 0), t([r({
140
+ })], o.prototype, "color", void 0), t([i({ type: String })], o.prototype, "placeholder", void 0), t([i({
139
141
  type: String,
140
142
  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);
143
+ })], o.prototype, "controls", void 0), t([i({ type: String })], o.prototype, "label", void 0), t([i({ type: String })], o.prototype, "prefix", void 0), t([i({ type: String })], o.prototype, "unit", void 0), t([a(".void-number-input-field")], o.prototype, "_input", void 0), customElements.get("void-number-input") || customElements.define("void-number-input", o);
142
144
  //#endregion
143
- export { a as VoidNumberInput };
145
+ export { o as VoidNumberInput };
package/dist/index.d.ts CHANGED
@@ -61,4 +61,12 @@ export { VoidTagsInput } from './components/tags-input.js';
61
61
  export { VoidNavMenu, VoidNavMenuItem } from './components/nav-menu.js';
62
62
  export { VoidColorPicker } from './components/color-picker.js';
63
63
  export { VoidActionInput } from './components/action-input.js';
64
+ export { VoidBarChart } from './components/bar-chart.js';
65
+ export type { BarChartData, BarChartSeries } from './components/bar-chart.js';
66
+ export { VoidLineChart } from './components/line-chart.js';
67
+ export type { LineChartData, LineChartSeries } from './components/line-chart.js';
68
+ export { VoidDonutChart } from './components/donut-chart.js';
69
+ export type { DonutChartData, DonutChartSegment } from './components/donut-chart.js';
70
+ export { VoidGauge } from './components/gauge.js';
71
+ export type { GaugeData, GaugeSegment, GaugeZone } from './components/gauge.js';
64
72
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAA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AO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC9E,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC"}
package/dist/index.js CHANGED
@@ -61,4 +61,8 @@ import { VoidTagsInput as ge } from "./components/tags-input.js";
61
61
  import { VoidNavMenu as _e, VoidNavMenuItem as ve } from "./components/nav-menu.js";
62
62
  import { VoidColorPicker as ye } from "./components/color-picker.js";
63
63
  import { VoidActionInput as be } from "./components/action-input.js";
64
- export { T as VoidAccordion, E as VoidAccordionItem, be as VoidActionInput, l as VoidAlert, c as VoidAvatar, t as VoidBadge, L as VoidBanner, D as VoidBreadcrumbs, n as VoidButton, te as VoidCalendar, P as VoidCard, re as VoidCarousel, ie as VoidCarouselSlide, g as VoidCheckbox, H as VoidCheckboxGroup, fe as VoidCollapsible, ye as VoidColorPicker, U as VoidCombobox, J as VoidComposeInput, ne as VoidDatePicker, S as VoidDialog, r as VoidDivider, N as VoidDrawer, ae as VoidDropdownMenu, oe as VoidDropdownMenuItem, pe as VoidEditable, e as VoidElement, V as VoidErrorFallback, y as VoidField, G as VoidFileUpload, q as VoidHamburger, me as VoidHoverCard, se as VoidIndicator, p as VoidInput, O as VoidList, k as VoidListItem, ce as VoidMenu, le as VoidMenuGroup, ue as VoidMenuItem, b as VoidMultiselect, K as VoidNavBar, _e as VoidNavMenu, ve as VoidNavMenuItem, de as VoidNumberInput, x as VoidOption, B as VoidPagination, f as VoidPanel, he as VoidPinInput, F as VoidPopover, d as VoidProgress, _ as VoidRadio, v as VoidRadioGroup, R as VoidScrollArea, Q as VoidSegmentedControl, $ as VoidSegmentedControlItem, h as VoidSelect, Y as VoidSidebar, a as VoidSkeleton, W as VoidSlider, i as VoidSpinner, ee as VoidStat, o as VoidStatusDot, M as VoidStepper, s as VoidSwitch, C as VoidTabPanel, z as VoidTable, w as VoidTabs, u as VoidTag, ge as VoidTagsInput, m as VoidTextarea, A as VoidToast, j as VoidToastContainer, X as VoidToggle, Z as VoidToggleGroup, I as VoidTooltip };
64
+ import { VoidBarChart as xe } from "./components/bar-chart.js";
65
+ import { VoidLineChart as Se } from "./components/line-chart.js";
66
+ import { VoidDonutChart as Ce } from "./components/donut-chart.js";
67
+ import { VoidGauge as we } from "./components/gauge.js";
68
+ export { T as VoidAccordion, E as VoidAccordionItem, be as VoidActionInput, l as VoidAlert, c as VoidAvatar, t as VoidBadge, L as VoidBanner, xe as VoidBarChart, D as VoidBreadcrumbs, n as VoidButton, te as VoidCalendar, P as VoidCard, re as VoidCarousel, ie as VoidCarouselSlide, g as VoidCheckbox, H as VoidCheckboxGroup, fe as VoidCollapsible, ye as VoidColorPicker, U as VoidCombobox, J as VoidComposeInput, ne as VoidDatePicker, S as VoidDialog, r as VoidDivider, Ce as VoidDonutChart, N as VoidDrawer, ae as VoidDropdownMenu, oe as VoidDropdownMenuItem, pe as VoidEditable, e as VoidElement, V as VoidErrorFallback, y as VoidField, G as VoidFileUpload, we as VoidGauge, q as VoidHamburger, me as VoidHoverCard, se as VoidIndicator, p as VoidInput, Se as VoidLineChart, O as VoidList, k as VoidListItem, ce as VoidMenu, le as VoidMenuGroup, ue as VoidMenuItem, b as VoidMultiselect, K as VoidNavBar, _e as VoidNavMenu, ve as VoidNavMenuItem, de as VoidNumberInput, x as VoidOption, B as VoidPagination, f as VoidPanel, he as VoidPinInput, F as VoidPopover, d as VoidProgress, _ as VoidRadio, v as VoidRadioGroup, R as VoidScrollArea, Q as VoidSegmentedControl, $ as VoidSegmentedControlItem, h as VoidSelect, Y as VoidSidebar, a as VoidSkeleton, W as VoidSlider, i as VoidSpinner, ee as VoidStat, o as VoidStatusDot, M as VoidStepper, s as VoidSwitch, C as VoidTabPanel, z as VoidTable, w as VoidTabs, u as VoidTag, ge as VoidTagsInput, m as VoidTextarea, A as VoidToast, j as VoidToastContainer, X as VoidToggle, Z as VoidToggleGroup, I as VoidTooltip };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@voidable/ui",
3
- "version": "0.5.5",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "exports": {