drizzle-cube 0.1.21 → 0.1.23

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 (28) hide show
  1. package/dist/adapters/{compiler-CPsEzFP2.js → compiler-CSr2Ti96.js} +553 -505
  2. package/dist/adapters/express/index.js +1 -1
  3. package/dist/adapters/fastify/index.js +1 -1
  4. package/dist/adapters/hono/index.js +1 -1
  5. package/dist/adapters/nextjs/index.js +50 -50
  6. package/dist/client/charts.js +1 -1
  7. package/dist/client/chunks/{charts-BadAUMmd.js → charts-8KmxUVvG.js} +2 -2
  8. package/dist/client/chunks/{charts-BadAUMmd.js.map → charts-8KmxUVvG.js.map} +1 -1
  9. package/dist/client/chunks/{icons-B5RVM-7b.js → icons-QczkAx61.js} +46 -41
  10. package/dist/client/chunks/{icons-B5RVM-7b.js.map → icons-QczkAx61.js.map} +1 -1
  11. package/dist/client/chunks/{providers-DI5zeeEU.js → providers-B7MVnAAt.js} +50 -50
  12. package/dist/client/chunks/providers-B7MVnAAt.js.map +1 -0
  13. package/dist/client/components/charts/ActivityGridChart.config.d.ts +5 -0
  14. package/dist/client/components/charts/ActivityGridChart.d.ts +2 -0
  15. package/dist/client/components/charts/index.d.ts +1 -0
  16. package/dist/client/components.js +2875 -2351
  17. package/dist/client/components.js.map +1 -1
  18. package/dist/client/hooks/useCubeMeta.d.ts +1 -0
  19. package/dist/client/hooks.js +62 -60
  20. package/dist/client/hooks.js.map +1 -1
  21. package/dist/client/index.js +2 -2
  22. package/dist/client/providers.js +1 -1
  23. package/dist/client/types.d.ts +6 -2
  24. package/dist/client-bundle-stats.html +1 -1
  25. package/dist/server/index.d.ts +3 -8
  26. package/dist/server/index.js +748 -700
  27. package/package.json +22 -1
  28. package/dist/client/chunks/providers-DI5zeeEU.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import * as s from "react";
2
- import { forwardRef as ae, useState as B, useEffect as G, createElement as W } from "react";
2
+ import { forwardRef as ae, useState as B, useEffect as G, createElement as V } from "react";
3
3
  function ye({
4
4
  title: e,
5
5
  titleId: t,
@@ -120,7 +120,7 @@ function je({
120
120
  }));
121
121
  }
122
122
  const en = /* @__PURE__ */ s.forwardRef(je);
123
- function Ce({
123
+ function Me({
124
124
  title: e,
125
125
  titleId: t,
126
126
  ...n
@@ -143,8 +143,8 @@ function Ce({
143
143
  d: "m19.5 8.25-7.5 7.5-7.5-7.5"
144
144
  }));
145
145
  }
146
- const tn = /* @__PURE__ */ s.forwardRef(Ce);
147
- function Me({
146
+ const tn = /* @__PURE__ */ s.forwardRef(Me);
147
+ function Ce({
148
148
  title: e,
149
149
  titleId: t,
150
150
  ...n
@@ -167,7 +167,7 @@ function Me({
167
167
  d: "m8.25 4.5 7.5 7.5-7.5 7.5"
168
168
  }));
169
169
  }
170
- const nn = /* @__PURE__ */ s.forwardRef(Me);
170
+ const nn = /* @__PURE__ */ s.forwardRef(Ce);
171
171
  function Re({
172
172
  title: e,
173
173
  titleId: t,
@@ -456,7 +456,7 @@ function Ze({
456
456
  }));
457
457
  }
458
458
  const mn = /* @__PURE__ */ s.forwardRef(Ze);
459
- function We({
459
+ function Ve({
460
460
  title: e,
461
461
  titleId: t,
462
462
  ...n
@@ -483,8 +483,8 @@ function We({
483
483
  d: "M6 6h.008v.008H6V6Z"
484
484
  }));
485
485
  }
486
- const gn = /* @__PURE__ */ s.forwardRef(We);
487
- function Ve({
486
+ const gn = /* @__PURE__ */ s.forwardRef(Ve);
487
+ function We({
488
488
  title: e,
489
489
  titleId: t,
490
490
  ...n
@@ -507,7 +507,7 @@ function Ve({
507
507
  d: "m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"
508
508
  }));
509
509
  }
510
- const wn = /* @__PURE__ */ s.forwardRef(Ve);
510
+ const wn = /* @__PURE__ */ s.forwardRef(We);
511
511
  function Ne({
512
512
  title: e,
513
513
  titleId: t,
@@ -653,7 +653,7 @@ const En = /* @__PURE__ */ s.forwardRef(qe), ce = Object.freeze(
653
653
  }), U = Object.freeze({
654
654
  ...ce,
655
655
  ...T
656
- }), V = Object.freeze({
656
+ }), W = Object.freeze({
657
657
  ...U,
658
658
  body: "",
659
659
  hidden: !1
@@ -666,7 +666,7 @@ function Qe(e, t) {
666
666
  }
667
667
  function J(e, t) {
668
668
  const n = Qe(e, t);
669
- for (const r in V)
669
+ for (const r in W)
670
670
  r in T ? r in e && !(r in n) && (n[r] = T[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
671
671
  return n;
672
672
  }
@@ -736,7 +736,7 @@ function ue(e) {
736
736
  typeof i.body != "string" || // Check other props
737
737
  !H(
738
738
  i,
739
- V
739
+ W
740
740
  )
741
741
  )
742
742
  return null;
@@ -750,7 +750,7 @@ function ue(e) {
750
750
  typeof a != "string" || !n[a] && !r[a] || // Check other props
751
751
  !H(
752
752
  i,
753
- V
753
+ W
754
754
  )
755
755
  )
756
756
  return null;
@@ -1026,12 +1026,12 @@ function _(e) {
1026
1026
  dataAfterTimeout: e.dataAfterTimeout !== !1
1027
1027
  };
1028
1028
  }
1029
- const q = /* @__PURE__ */ Object.create(null), M = [
1029
+ const q = /* @__PURE__ */ Object.create(null), C = [
1030
1030
  "https://api.simplesvg.com",
1031
1031
  "https://api.unisvg.com"
1032
1032
  ], A = [];
1033
- for (; M.length > 0; )
1034
- M.length === 1 || Math.random() > 0.5 ? A.push(M.shift()) : A.push(M.pop());
1033
+ for (; C.length > 0; )
1034
+ C.length === 1 || Math.random() > 0.5 ? A.push(C.shift()) : A.push(C.pop());
1035
1035
  q[""] = _({
1036
1036
  resources: ["https://api.iconify.design"].concat(A)
1037
1037
  });
@@ -1232,14 +1232,14 @@ function jt(e, t, n) {
1232
1232
  (a.loaderCallbacks || (a.loaderCallbacks = [])).push(i);
1233
1233
  }), o;
1234
1234
  }
1235
- function Ct(e, t = !0, n = !1) {
1235
+ function Mt(e, t = !0, n = !1) {
1236
1236
  const r = [];
1237
1237
  return e.forEach((o) => {
1238
1238
  const i = typeof o == "string" ? $(o, t, n) : o;
1239
1239
  i && r.push(i);
1240
1240
  }), r;
1241
1241
  }
1242
- var Mt = {
1242
+ var Ct = {
1243
1243
  resources: [],
1244
1244
  index: 0,
1245
1245
  timeout: 2e3,
@@ -1294,7 +1294,7 @@ function Rt(e, t, n, r) {
1294
1294
  w.status === "pending" && (w.status = "aborted");
1295
1295
  }), m = [];
1296
1296
  }
1297
- function y(w, x, C) {
1297
+ function y(w, x, M) {
1298
1298
  const O = x !== "success";
1299
1299
  switch (m = m.filter((L) => L !== w), c) {
1300
1300
  case "pending":
@@ -1307,11 +1307,11 @@ function Rt(e, t, n, r) {
1307
1307
  return;
1308
1308
  }
1309
1309
  if (x === "abort") {
1310
- f = C, E();
1310
+ f = M, E();
1311
1311
  return;
1312
1312
  }
1313
1313
  if (O) {
1314
- f = C, m.length || (a.length ? P() : E());
1314
+ f = M, m.length || (a.length ? P() : E());
1315
1315
  return;
1316
1316
  }
1317
1317
  if (v(), b(), !e.random) {
@@ -1319,7 +1319,7 @@ function Rt(e, t, n, r) {
1319
1319
  L !== -1 && L !== e.index && (e.index = L);
1320
1320
  }
1321
1321
  c = "completed", g.forEach((L) => {
1322
- L(C);
1322
+ L(M);
1323
1323
  });
1324
1324
  }
1325
1325
  function P() {
@@ -1340,8 +1340,8 @@ function Rt(e, t, n, r) {
1340
1340
  const x = {
1341
1341
  status: "pending",
1342
1342
  resource: w,
1343
- callback: (C, O) => {
1344
- y(x, C, O);
1343
+ callback: (M, O) => {
1344
+ y(x, M, O);
1345
1345
  }
1346
1346
  };
1347
1347
  m.push(x), u++, h = setTimeout(P, e.rotate), n(w, t, x.callback);
@@ -1350,7 +1350,7 @@ function Rt(e, t, n, r) {
1350
1350
  }
1351
1351
  function we(e) {
1352
1352
  const t = {
1353
- ...Mt,
1353
+ ...Ct,
1354
1354
  ...e
1355
1355
  };
1356
1356
  let n = [];
@@ -1504,7 +1504,7 @@ function At(e, t) {
1504
1504
  }));
1505
1505
  }
1506
1506
  const Tt = (e, t) => {
1507
- const n = Ct(e, !0, he()), r = xt(n);
1507
+ const n = Mt(e, !0, he()), r = xt(n);
1508
1508
  if (!r.pending.length) {
1509
1509
  let c = !0;
1510
1510
  return t && setTimeout(() => {
@@ -1590,14 +1590,14 @@ function Zt(e, t) {
1590
1590
  n += " " + r + '="' + t[r] + '"';
1591
1591
  return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
1592
1592
  }
1593
- function Wt(e) {
1593
+ function Vt(e) {
1594
1594
  return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1595
1595
  }
1596
- function Vt(e) {
1597
- return "data:image/svg+xml," + Wt(e);
1596
+ function Wt(e) {
1597
+ return "data:image/svg+xml," + Vt(e);
1598
1598
  }
1599
1599
  function Nt(e) {
1600
- return 'url("' + Vt(e) + '")';
1600
+ return 'url("' + Wt(e) + '")';
1601
1601
  }
1602
1602
  let I;
1603
1603
  function Dt() {
@@ -1712,7 +1712,7 @@ const Qt = (e, t, n) => {
1712
1712
  let d = 0, p = t.id;
1713
1713
  return typeof p == "string" && (p = p.replace(/-/g, "_")), c.dangerouslySetInnerHTML = {
1714
1714
  __html: zt(dt(u.body, p ? () => p + "ID" + d++ : "iconifyReact"))
1715
- }, W("svg", c);
1715
+ }, V("svg", c);
1716
1716
  }
1717
1717
  const { body: h, width: m, height: g } = e, v = i === "mask" || (i === "bg" ? !1 : h.indexOf("currentColor") !== -1), k = Zt(h, {
1718
1718
  ...f,
@@ -1727,7 +1727,7 @@ const Qt = (e, t, n) => {
1727
1727
  ..._t,
1728
1728
  ...v ? z : ke,
1729
1729
  ...l
1730
- }, W("span", c);
1730
+ }, V("span", c);
1731
1731
  };
1732
1732
  he(!0);
1733
1733
  ht("", yt);
@@ -1821,7 +1821,7 @@ function be(e) {
1821
1821
  return m ? Qt({
1822
1822
  ...U,
1823
1823
  ...m
1824
- }, e, h) : e.children ? e.children : e.fallback ? e.fallback : W("span", {});
1824
+ }, e, h) : e.children ? e.children : e.fallback ? e.fallback : V("span", {});
1825
1825
  }
1826
1826
  const Ln = ae((e, t) => be({
1827
1827
  ...e,
@@ -1836,11 +1836,11 @@ const jn = {
1836
1836
  width: 24,
1837
1837
  height: 24,
1838
1838
  body: '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 13a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm6-4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1zm6-4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-4a1 1 0 0 1-1-1zM4 20h14"/>'
1839
- }, Cn = {
1839
+ }, Mn = {
1840
1840
  width: 24,
1841
1841
  height: 24,
1842
1842
  body: '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 19h16M4 15l4-6l4 2l4-5l4 4"/>'
1843
- }, Mn = {
1843
+ }, Cn = {
1844
1844
  width: 24,
1845
1845
  height: 24,
1846
1846
  body: '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m4 19l4-6l4 2l4-5l4 4v5H4m0-7l3-4l4 2l5-6l4 4"/>'
@@ -1872,6 +1872,10 @@ const jn = {
1872
1872
  width: 24,
1873
1873
  height: 24,
1874
1874
  body: '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5zm0 5h18M10 3v18"/>'
1875
+ }, $n = {
1876
+ width: 24,
1877
+ height: 24,
1878
+ body: '<g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="M11.795 21H5a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v4m-1 3v4h4"/><path d="M14 18a4 4 0 1 0 8 0a4 4 0 1 0-8 0m1-15v4M7 3v4m-4 4h16"/></g>'
1875
1879
  };
1876
1880
  export {
1877
1881
  Rn as A,
@@ -1883,9 +1887,10 @@ export {
1883
1887
  An as G,
1884
1888
  Tn as H,
1885
1889
  Ln as I,
1886
- gn as J,
1887
- Yt as K,
1888
- hn as L,
1890
+ $n as J,
1891
+ gn as K,
1892
+ Yt as L,
1893
+ hn as M,
1889
1894
  un as a,
1890
1895
  cn as b,
1891
1896
  tn as c,
@@ -1910,7 +1915,7 @@ export {
1910
1915
  an as v,
1911
1916
  Kt as w,
1912
1917
  jn as x,
1913
- Cn as y,
1914
- Mn as z
1918
+ Mn as y,
1919
+ Cn as z
1915
1920
  };
1916
- //# sourceMappingURL=icons-B5RVM-7b.js.map
1921
+ //# sourceMappingURL=icons-QczkAx61.js.map