@appkit/dek-lib 0.21.0 → 0.23.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.
package/dist/index.es.js CHANGED
@@ -1666,7 +1666,7 @@ const I0 = () => 0, F9 = `
1666
1666
  Q(D), l1(D);
1667
1667
  }, W = () => {
1668
1668
  e2 || X();
1669
- }, G = i2 || (r2 ? `dek-button-${t2}-active` : `dek-button-${t2}`);
1669
+ }, G = i2 ? void 0 : r2 ? `dek-button-${t2}-active` : `dek-button-${t2}`;
1670
1670
  return i2 || (i2 = (J = A1.button[t2]) == null ? void 0 : J.backColor), c2 || (c2 = (r1 = A1.button[t2]) == null ? void 0 : r1.backColorActive), /* @__PURE__ */ z1.jsx(
1671
1671
  f7,
1672
1672
  {
@@ -34451,18 +34451,18 @@ body {
34451
34451
  onClick: o4,
34452
34452
  onPressed: d = I0
34453
34453
  }) => {
34454
- const [g, p4] = useState$1(false), m = (C) => {
34455
- o4 && p4(C), d(C);
34454
+ const [g, p4] = useState$1(false), m = (b) => {
34455
+ o4 && p4(b), d(b);
34456
34456
  }, w2 = () => {
34457
34457
  o4 && o4();
34458
- }, B = h2 !== void 0 ? h2 : t2 === "normal" ? "tile" : "clear";
34458
+ }, B = h2 ? void 0 : `dek-tile-${t2}`, C = h2 !== void 0 ? h2 : t2 === "normal" ? "tile" : "clear";
34459
34459
  return /* @__PURE__ */ z1.jsxs(
34460
34460
  OG1,
34461
34461
  {
34462
34462
  style: l2,
34463
34463
  "aria-label": c2 || "tile",
34464
34464
  $pressed: g,
34465
- $backColor: B,
34465
+ $backColor: C,
34466
34466
  $clickable: !!o4,
34467
34467
  onClick: w2,
34468
34468
  onMouseDown: () => m(true),
@@ -34470,7 +34470,7 @@ body {
34470
34470
  onMouseLeave: () => m(false),
34471
34471
  onTouchStart: () => m(true),
34472
34472
  onTouchEnd: () => m(false),
34473
- className: `dek-tile-${t2}`,
34473
+ className: B,
34474
34474
  children: [
34475
34475
  !!e2 && /* @__PURE__ */ z1.jsx(SG1, { children: e2 }),
34476
34476
  !!r2 && /* @__PURE__ */ z1.jsx(AG1, { children: r2 }),
@@ -42436,7 +42436,7 @@ const pZ1 = ({
42436
42436
  display: false
42437
42437
  }
42438
42438
  }, b = {
42439
- labels: m.data.map((N) => N.toString()),
42439
+ labels: m.data.map((X) => X.toString()),
42440
42440
  datasets: [
42441
42441
  {
42442
42442
  lineTension: 0.3,
@@ -42448,11 +42448,11 @@ const pZ1 = ({
42448
42448
  ...m
42449
42449
  }
42450
42450
  ]
42451
- }, F = i2 !== void 0 ? i2 : t2 === "normal" ? "tile" : "clear";
42451
+ }, F = i2 ? void 0 : `dek-tile-${t2}`, N = i2 !== void 0 ? i2 : t2 === "normal" ? "tile" : "clear";
42452
42452
  return /* @__PURE__ */ z1.jsxs(
42453
42453
  f0,
42454
42454
  {
42455
- backColor: F,
42455
+ backColor: N,
42456
42456
  borderRadius: 8,
42457
42457
  width: c2,
42458
42458
  height: l2,
@@ -42460,7 +42460,7 @@ const pZ1 = ({
42460
42460
  vscroll: "hidden",
42461
42461
  hscroll: "hidden",
42462
42462
  style: { position: "relative" },
42463
- className: `dek-tile-${t2}`,
42463
+ className: F,
42464
42464
  children: [
42465
42465
  /* @__PURE__ */ z1.jsx(
42466
42466
  f0,
@@ -66758,7 +66758,7 @@ async function fetchUserPlugins(email, password) {
66758
66758
  result.integrations.push({
66759
66759
  key: "base",
66760
66760
  pluginName: "base",
66761
- pluginVersion: "0.21.0",
66761
+ pluginVersion: "0.23.0",
66762
66762
  pluginConfig: []
66763
66763
  });
66764
66764
  return result;
@@ -66933,7 +66933,7 @@ const Header = ({ height = 70 }) => {
66933
66933
  };
66934
66934
  const About = () => {
66935
66935
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(f0, { padding: 20, direction: "vert", children: [
66936
- /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.21.0"}` }),
66936
+ /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.23.0"}` }),
66937
66937
  /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { children: "From Appkit" })
66938
66938
  ] });
66939
66939
  };
@@ -102576,7 +102576,7 @@ async function updatePlugins(email, password) {
102576
102576
  {
102577
102577
  key: "base",
102578
102578
  pluginName: "base",
102579
- pluginVersion: "0.21.0",
102579
+ pluginVersion: "0.23.0",
102580
102580
  pluginConfig: []
102581
102581
  }
102582
102582
  ],
package/dist/index.umd.js CHANGED
@@ -1683,7 +1683,7 @@ Check the top-level render call using <` + u1 + ">.");
1683
1683
  Q(D), l1(D);
1684
1684
  }, W = () => {
1685
1685
  e2 || X();
1686
- }, G = i2 || (r2 ? `dek-button-${t2}-active` : `dek-button-${t2}`);
1686
+ }, G = i2 ? void 0 : r2 ? `dek-button-${t2}-active` : `dek-button-${t2}`;
1687
1687
  return i2 || (i2 = (J = A1.button[t2]) == null ? void 0 : J.backColor), c2 || (c2 = (r1 = A1.button[t2]) == null ? void 0 : r1.backColorActive), /* @__PURE__ */ z1.jsx(
1688
1688
  f7,
1689
1689
  {
@@ -34468,18 +34468,18 @@ body {
34468
34468
  onClick: o4,
34469
34469
  onPressed: d = I0
34470
34470
  }) => {
34471
- const [g, p4] = React$3.useState(false), m = (C) => {
34472
- o4 && p4(C), d(C);
34471
+ const [g, p4] = React$3.useState(false), m = (b) => {
34472
+ o4 && p4(b), d(b);
34473
34473
  }, w2 = () => {
34474
34474
  o4 && o4();
34475
- }, B = h2 !== void 0 ? h2 : t2 === "normal" ? "tile" : "clear";
34475
+ }, B = h2 ? void 0 : `dek-tile-${t2}`, C = h2 !== void 0 ? h2 : t2 === "normal" ? "tile" : "clear";
34476
34476
  return /* @__PURE__ */ z1.jsxs(
34477
34477
  OG1,
34478
34478
  {
34479
34479
  style: l2,
34480
34480
  "aria-label": c2 || "tile",
34481
34481
  $pressed: g,
34482
- $backColor: B,
34482
+ $backColor: C,
34483
34483
  $clickable: !!o4,
34484
34484
  onClick: w2,
34485
34485
  onMouseDown: () => m(true),
@@ -34487,7 +34487,7 @@ body {
34487
34487
  onMouseLeave: () => m(false),
34488
34488
  onTouchStart: () => m(true),
34489
34489
  onTouchEnd: () => m(false),
34490
- className: `dek-tile-${t2}`,
34490
+ className: B,
34491
34491
  children: [
34492
34492
  !!e2 && /* @__PURE__ */ z1.jsx(SG1, { children: e2 }),
34493
34493
  !!r2 && /* @__PURE__ */ z1.jsx(AG1, { children: r2 }),
@@ -42453,7 +42453,7 @@ body {
42453
42453
  display: false
42454
42454
  }
42455
42455
  }, b = {
42456
- labels: m.data.map((N) => N.toString()),
42456
+ labels: m.data.map((X) => X.toString()),
42457
42457
  datasets: [
42458
42458
  {
42459
42459
  lineTension: 0.3,
@@ -42465,11 +42465,11 @@ body {
42465
42465
  ...m
42466
42466
  }
42467
42467
  ]
42468
- }, F = i2 !== void 0 ? i2 : t2 === "normal" ? "tile" : "clear";
42468
+ }, F = i2 ? void 0 : `dek-tile-${t2}`, N = i2 !== void 0 ? i2 : t2 === "normal" ? "tile" : "clear";
42469
42469
  return /* @__PURE__ */ z1.jsxs(
42470
42470
  f0,
42471
42471
  {
42472
- backColor: F,
42472
+ backColor: N,
42473
42473
  borderRadius: 8,
42474
42474
  width: c2,
42475
42475
  height: l2,
@@ -42477,7 +42477,7 @@ body {
42477
42477
  vscroll: "hidden",
42478
42478
  hscroll: "hidden",
42479
42479
  style: { position: "relative" },
42480
- className: `dek-tile-${t2}`,
42480
+ className: F,
42481
42481
  children: [
42482
42482
  /* @__PURE__ */ z1.jsx(
42483
42483
  f0,
@@ -66775,7 +66775,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66775
66775
  result.integrations.push({
66776
66776
  key: "base",
66777
66777
  pluginName: "base",
66778
- pluginVersion: "0.21.0",
66778
+ pluginVersion: "0.23.0",
66779
66779
  pluginConfig: []
66780
66780
  });
66781
66781
  return result;
@@ -66950,7 +66950,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
66950
66950
  };
66951
66951
  const About = () => {
66952
66952
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(f0, { padding: 20, direction: "vert", children: [
66953
- /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.21.0"}` }),
66953
+ /* @__PURE__ */ jsxRuntimeExports.jsx(PU1, { children: `Dek ${"0.23.0"}` }),
66954
66954
  /* @__PURE__ */ jsxRuntimeExports.jsx(h4, { children: "From Appkit" })
66955
66955
  ] });
66956
66956
  };
@@ -102593,7 +102593,7 @@ Arguments: ` + Array.prototype.slice.call(n5).join("") + `
102593
102593
  {
102594
102594
  key: "base",
102595
102595
  pluginName: "base",
102596
- pluginVersion: "0.21.0",
102596
+ pluginVersion: "0.23.0",
102597
102597
  pluginConfig: []
102598
102598
  }
102599
102599
  ],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@appkit/dek-lib",
3
3
  "private": false,
4
- "version": "0.21.0",
4
+ "version": "0.23.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite --port 5173 --host",