vue-chrts 0.0.87 → 0.0.89

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.
package/dist/index.d.ts CHANGED
@@ -6,5 +6,6 @@ export { AreaStackedChart } from './AreaStacked/index';
6
6
  export { BarChart } from './Bar/index';
7
7
  export { DonutChart } from './Donut/index';
8
8
  export { LineChart } from './Line/index';
9
+ export * from './Line/types';
9
10
  export { Progress, Status, Tooltip };
10
11
  export * from './Button/index';
package/dist/index.js CHANGED
@@ -8380,7 +8380,7 @@ function d_(t, e) {
8380
8380
  const Uc = Array.from({ length: 4 }, (t, e) => {
8381
8381
  const n = -Math.PI / 2 + e * Math.PI / 2;
8382
8382
  return [n, n + Math.PI];
8383
- }), [ey, ny, iy, ry] = Uc, Vc = N`
8383
+ }), [ny, iy, ry, oy] = Uc, Vc = N`
8384
8384
  label: donut-component;
8385
8385
  `, g_ = ce`
8386
8386
  :root {
@@ -8996,7 +8996,7 @@ const b_ = /* @__PURE__ */ nt({
8996
8996
  const C_ = {
8997
8997
  key: 0,
8998
8998
  class: "flex items center justify-end"
8999
- }, oy = /* @__PURE__ */ nt({
8999
+ }, sy = /* @__PURE__ */ nt({
9000
9000
  __name: "AreaChart",
9001
9001
  props: {
9002
9002
  data: {},
@@ -9107,7 +9107,7 @@ const C_ = {
9107
9107
  ]))
9108
9108
  ], 2));
9109
9109
  }
9110
- }), A_ = { class: "flex flex-col space-y-4" }, M_ = { class: "flex items center justify-end" }, sy = /* @__PURE__ */ nt({
9110
+ }), A_ = { class: "flex flex-col space-y-4" }, M_ = { class: "flex items center justify-end" }, ay = /* @__PURE__ */ nt({
9111
9111
  __name: "AreaStackedChart",
9112
9112
  props: {
9113
9113
  data: {},
@@ -9153,7 +9153,7 @@ const C_ = {
9153
9153
  }), $_ = { class: "space-y-2" }, E_ = {
9154
9154
  key: 0,
9155
9155
  class: "flex items center justify-end"
9156
- }, ay = /* @__PURE__ */ nt({
9156
+ }, ly = /* @__PURE__ */ nt({
9157
9157
  __name: "BarChart",
9158
9158
  props: {
9159
9159
  data: {},
@@ -9228,7 +9228,7 @@ const C_ = {
9228
9228
  }), D_ = { class: "flex items-center justify-center" }, O_ = {
9229
9229
  key: 0,
9230
9230
  class: "flex items-center justify-center mt-4"
9231
- }, ly = /* @__PURE__ */ nt({
9231
+ }, cy = /* @__PURE__ */ nt({
9232
9232
  __name: "DonutChart",
9233
9233
  props: {
9234
9234
  type: {},
@@ -9307,7 +9307,9 @@ const C_ = {
9307
9307
  }), 128))
9308
9308
  ]));
9309
9309
  }
9310
- }), z_ = { class: "flex items center justify-end" }, cy = /* @__PURE__ */ nt({
9310
+ });
9311
+ var z_ = /* @__PURE__ */ ((t) => (t.Top = "top", t.Bottom = "bottom", t))(z_ || {});
9312
+ const B_ = { class: "flex items center justify-end" }, uy = /* @__PURE__ */ nt({
9311
9313
  __name: "LineChart",
9312
9314
  props: {
9313
9315
  data: {},
@@ -9376,14 +9378,14 @@ const C_ = {
9376
9378
  ]),
9377
9379
  _: 1
9378
9380
  }, 8, ["data", "height"]),
9379
- Z("div", z_, [
9381
+ Z("div", B_, [
9380
9382
  G(D(Bn), {
9381
9383
  items: Object.values(r.categories)
9382
9384
  }, null, 8, ["items"])
9383
9385
  ])
9384
9386
  ], 2));
9385
9387
  }
9386
- }), B_ = { class: "space-y-2" }, I_ = { class: "space-y-2" }, H_ = { class: "text-gray-500 mb-1" }, W_ = { class: "text-xl dark:text-white font-bold" }, U_ = { class: "flex items-center justify-between text-sm font-medium dark:text-gray-500 mt-2" }, V_ = { class: "dark:bg-white/5 bg-gray-100 rounded-full h-3" }, uy = /* @__PURE__ */ nt({
9388
+ }), I_ = { class: "space-y-2" }, H_ = { class: "space-y-2" }, W_ = { class: "text-gray-500 mb-1" }, U_ = { class: "text-xl dark:text-white font-bold" }, V_ = { class: "flex items-center justify-between text-sm font-medium dark:text-gray-500 mt-2" }, Y_ = { class: "dark:bg-white/5 bg-gray-100 rounded-full h-3" }, hy = /* @__PURE__ */ nt({
9387
9389
  __name: "Progress",
9388
9390
  props: {
9389
9391
  label: {},
@@ -9395,16 +9397,16 @@ const C_ = {
9395
9397
  },
9396
9398
  setup(t) {
9397
9399
  const e = t, n = $t(() => (e.progress / e.total * 100).toFixed(1)), i = $t(() => `${e.progress / e.total * 100}%`);
9398
- return (r, o) => (B(), U("div", B_, [
9399
- Z("div", I_, [
9400
- Z("p", H_, Ut(r.label), 1),
9401
- Z("h2", W_, Ut(r.value), 1)
9400
+ return (r, o) => (B(), U("div", I_, [
9401
+ Z("div", H_, [
9402
+ Z("p", W_, Ut(r.label), 1),
9403
+ Z("h2", U_, Ut(r.value), 1)
9402
9404
  ]),
9403
- Z("div", U_, [
9405
+ Z("div", V_, [
9404
9406
  Z("div", null, Ut(n.value) + "%", 1),
9405
9407
  Z("div", null, Ut(r.progress) + " of " + Ut(r.total) + Ut(r.unit), 1)
9406
9408
  ]),
9407
- Z("div", V_, [
9409
+ Z("div", Y_, [
9408
9410
  Z("div", {
9409
9411
  class: "rounded-full h-full",
9410
9412
  style: Na({ width: i.value, backgroundColor: r.color })
@@ -9412,7 +9414,7 @@ const C_ = {
9412
9414
  ])
9413
9415
  ]));
9414
9416
  }
9415
- }), Y_ = { class: "ring ring-border divide-y divide-border rounded-xl shadow-sm" }, X_ = { class: "flex items-center justify-between p-4" }, G_ = { class: "flex items-center gap-2" }, q_ = { class: "font-medium" }, j_ = { class: "text-sm dark:text-gray-400" }, Z_ = { class: "p-4" }, hy = /* @__PURE__ */ nt({
9417
+ }), X_ = { class: "ring ring-border divide-y divide-border rounded-xl shadow-sm" }, G_ = { class: "flex items-center justify-between p-4" }, q_ = { class: "flex items-center gap-2" }, j_ = { class: "font-medium" }, Z_ = { class: "text-sm dark:text-gray-400" }, Q_ = { class: "p-4" }, fy = /* @__PURE__ */ nt({
9416
9418
  __name: "Status",
9417
9419
  setup(t) {
9418
9420
  const e = dt("example.com"), n = dt("99.9% uptime"), i = dt([
@@ -9467,9 +9469,9 @@ const C_ = {
9467
9469
  { hour: 0, status: "online" },
9468
9470
  { hour: 1, status: "online" }
9469
9471
  ]);
9470
- return (r, o) => (B(), U("div", Y_, [
9471
- Z("div", X_, [
9472
- Z("div", G_, [
9472
+ return (r, o) => (B(), U("div", X_, [
9473
+ Z("div", G_, [
9474
+ Z("div", q_, [
9473
9475
  o[0] || (o[0] = Z("svg", {
9474
9476
  xmlns: "http://www.w3.org/2000/svg",
9475
9477
  fill: "none",
@@ -9484,11 +9486,11 @@ const C_ = {
9484
9486
  d: "M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
9485
9487
  })
9486
9488
  ], -1)),
9487
- Z("span", q_, Ut(e.value), 1)
9489
+ Z("span", j_, Ut(e.value), 1)
9488
9490
  ]),
9489
- Z("span", j_, Ut(n.value), 1)
9491
+ Z("span", Z_, Ut(n.value), 1)
9490
9492
  ]),
9491
- Z("div", Z_, [
9493
+ Z("div", Q_, [
9492
9494
  (B(!0), U(Ne, null, Pi(i.value, (s, a) => (B(), U("div", {
9493
9495
  key: a,
9494
9496
  class: Fi(["w-2.5 h-8 first:rounded-tl first:rounded-bl last:rounded-tr last:rounded-br ml-[3px] inline-block", s.status === "online" ? "bg-primary" : "bg-white"])
@@ -9496,24 +9498,27 @@ const C_ = {
9496
9498
  ])
9497
9499
  ]));
9498
9500
  }
9499
- }), Q_ = (t, e) => {
9501
+ }), J_ = (t, e) => {
9500
9502
  const n = t.__vccOpts || t;
9501
9503
  for (const [i, r] of e)
9502
9504
  n[i] = r;
9503
9505
  return n;
9504
- }, J_ = {};
9505
- function K_(t, e) {
9506
+ }, K_ = {};
9507
+ function ty(t, e) {
9506
9508
  return B(), U("div", null, "This is not a button");
9507
9509
  }
9508
- const fy = /* @__PURE__ */ Q_(J_, [["render", K_]]);
9510
+ const dy = /* @__PURE__ */ J_(K_, [["render", ty]]);
9509
9511
  export {
9510
- oy as AreaChart,
9511
- sy as AreaStackedChart,
9512
- ay as BarChart,
9513
- fy as Button,
9514
- ly as DonutChart,
9515
- cy as LineChart,
9516
- uy as Progress,
9517
- hy as Status,
9512
+ sy as AreaChart,
9513
+ ay as AreaStackedChart,
9514
+ ly as BarChart,
9515
+ dy as Button,
9516
+ X as CurveType,
9517
+ cy as DonutChart,
9518
+ uy as LineChart,
9519
+ z_ as PaginationPosition,
9520
+ A as Position,
9521
+ hy as Progress,
9522
+ fy as Status,
9518
9523
  Ko as Tooltip
9519
9524
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-chrts",
3
- "version": "0.0.87",
3
+ "version": "0.0.89",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "files": [