@appkit/dek-lib 0.17.0 → 0.18.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
@@ -1165,7 +1165,7 @@ const c0 = () => 0, X6 = `
1165
1165
  }
1166
1166
  `, $4 = (t2, r4 = false) => t2 === "center" ? "center" : t2 === "left" ? r4 ? "flex-end" : "flex-start" : t2 === "stretch" ? "stretch" : r4 ? "flex-start" : "flex-end", q4 = (t2, r4 = false) => t2 === "center" ? "center" : t2 === "top" ? r4 ? "flex-end" : "flex-start" : r4 ? "flex-start" : "flex-end", E8 = styled.div`
1167
1167
  background-color: ${(t2) => t2.$active ? t2.$backColorActive : t2.$backColor};
1168
- filter: ${(t2) => t2.$disabled ? `brightness(${b1.button.brightnessDisabled})` : t2.$pressed ? `brightness(${b1.button.brightnessPressed})` : "none"};
1168
+ filter: ${(t2) => t2.$disabled ? `brightness(${I1.button.brightnessDisabled})` : t2.$pressed ? `brightness(${I1.button.brightnessPressed})` : "none"};
1169
1169
  border-radius: ${({ $borderRadius: t2 }) => typeof t2 == "number" ? `${t2}px` : t2};
1170
1170
  width: ${({ $width: t2 }) => typeof t2 == "number" ? `${t2}px` : t2};
1171
1171
  height: ${({ $height: t2 }) => typeof t2 == "number" ? `${t2}px` : t2};
@@ -1216,7 +1216,7 @@ const c0 = () => 0, X6 = `
1216
1216
  }, P = () => {
1217
1217
  r4 || v1();
1218
1218
  };
1219
- return l2 || (l2 = (K = b1.button[t2]) == null ? void 0 : K.backColor), o10 || (o10 = (l1 = b1.button[t2]) == null ? void 0 : l1.backColorActive), /* @__PURE__ */ C1.jsx(
1219
+ return l2 || (l2 = (K = I1.button[t2]) == null ? void 0 : K.backColor), o10 || (o10 = (l1 = I1.button[t2]) == null ? void 0 : l1.backColorActive), /* @__PURE__ */ C1.jsx(
1220
1220
  E8,
1221
1221
  {
1222
1222
  $pressed: r4 ? false : $,
@@ -24045,7 +24045,7 @@ const JD1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
24045
24045
  iconPadding: o10 = 2,
24046
24046
  iconBackColor: g = ""
24047
24047
  }) => {
24048
- const V = r4 ? n4 : h2 || b1.button.normal.color, y2 = g ? l2 - 4 : l2, m = o10, k = g ? 2 : 0;
24048
+ const V = r4 ? n4 : h2 || I1.button.normal.color, y2 = g ? l2 - 4 : l2, m = o10, k = g ? 2 : 0;
24049
24049
  return /* @__PURE__ */ C1.jsxs(
24050
24050
  XD1,
24051
24051
  {
@@ -24068,7 +24068,7 @@ const JD1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
24068
24068
  ]
24069
24069
  }
24070
24070
  );
24071
- }, b1 = {
24071
+ }, I1 = {
24072
24072
  text: {
24073
24073
  size: {
24074
24074
  xxsmall: 10,
@@ -24158,15 +24158,15 @@ const JD1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
24158
24158
  function vt(t2) {
24159
24159
  switch (t2) {
24160
24160
  case "xxsubtle":
24161
- return b1.text.color.xxsubtle;
24161
+ return I1.text.color.xxsubtle;
24162
24162
  case "xsubtle":
24163
- return b1.text.color.xsubtle;
24163
+ return I1.text.color.xsubtle;
24164
24164
  case "subtle":
24165
- return b1.text.color.subtle;
24165
+ return I1.text.color.subtle;
24166
24166
  case "tint":
24167
- return b1.text.color.tint;
24167
+ return I1.text.color.tint;
24168
24168
  case "normal":
24169
- return b1.text.color.normal;
24169
+ return I1.text.color.normal;
24170
24170
  default:
24171
24171
  return t2;
24172
24172
  }
@@ -24174,97 +24174,97 @@ function vt(t2) {
24174
24174
  function Et(t2) {
24175
24175
  switch (t2) {
24176
24176
  case "normal":
24177
- return b1.text.family.normal;
24177
+ return I1.text.family.normal;
24178
24178
  case "condensed":
24179
- return b1.text.family.condensed;
24179
+ return I1.text.family.condensed;
24180
24180
  case "mono":
24181
- return b1.text.family.mono;
24181
+ return I1.text.family.mono;
24182
24182
  case "slab":
24183
- return b1.text.family.slab;
24183
+ return I1.text.family.slab;
24184
24184
  case "flex":
24185
- return b1.text.family.flex;
24185
+ return I1.text.family.flex;
24186
24186
  case "heading":
24187
- return b1.text.family.heading;
24187
+ return I1.text.family.heading;
24188
24188
  default:
24189
24189
  return t2;
24190
24190
  }
24191
24191
  }
24192
24192
  function Y4(t2) {
24193
24193
  if (t2 === void 0)
24194
- return b1.text.size.normal;
24194
+ return I1.text.size.normal;
24195
24195
  if (typeof t2 == "number")
24196
24196
  return t2;
24197
24197
  switch (t2) {
24198
24198
  case "xxsmall":
24199
- return b1.text.size.xxsmall;
24199
+ return I1.text.size.xxsmall;
24200
24200
  case "xsmall":
24201
- return b1.text.size.xsmall;
24201
+ return I1.text.size.xsmall;
24202
24202
  case "small":
24203
- return b1.text.size.small;
24203
+ return I1.text.size.small;
24204
24204
  case "normal":
24205
- return b1.text.size.normal;
24205
+ return I1.text.size.normal;
24206
24206
  case "large":
24207
- return b1.text.size.large;
24207
+ return I1.text.size.large;
24208
24208
  case "xlarge":
24209
- return b1.text.size.xlarge;
24209
+ return I1.text.size.xlarge;
24210
24210
  case "xxlarge":
24211
- return b1.text.size.xxlarge;
24211
+ return I1.text.size.xxlarge;
24212
24212
  case "heading":
24213
- return b1.text.size.heading;
24213
+ return I1.text.size.heading;
24214
24214
  }
24215
24215
  }
24216
24216
  function aa(t2) {
24217
24217
  if (t2 === void 0)
24218
- return b1.text.height.normal;
24218
+ return I1.text.height.normal;
24219
24219
  if (typeof t2 == "number")
24220
24220
  return t2 + 5;
24221
24221
  switch (t2) {
24222
24222
  case "xxsmall":
24223
- return b1.text.height.xxsmall;
24223
+ return I1.text.height.xxsmall;
24224
24224
  case "xsmall":
24225
- return b1.text.height.xsmall;
24225
+ return I1.text.height.xsmall;
24226
24226
  case "small":
24227
- return b1.text.height.small;
24227
+ return I1.text.height.small;
24228
24228
  case "normal":
24229
- return b1.text.height.normal;
24229
+ return I1.text.height.normal;
24230
24230
  case "large":
24231
- return b1.text.height.large;
24231
+ return I1.text.height.large;
24232
24232
  case "xlarge":
24233
- return b1.text.height.xlarge;
24233
+ return I1.text.height.xlarge;
24234
24234
  case "xxlarge":
24235
- return b1.text.height.xxlarge;
24235
+ return I1.text.height.xxlarge;
24236
24236
  case "heading":
24237
- return b1.text.height.heading;
24237
+ return I1.text.height.heading;
24238
24238
  }
24239
24239
  }
24240
24240
  function ot(t2) {
24241
24241
  if (t2 === void 0)
24242
- return b1.text.weight.normal;
24242
+ return I1.text.weight.normal;
24243
24243
  if (typeof t2 == "number")
24244
24244
  return t2;
24245
24245
  switch (t2) {
24246
24246
  case "xxthin":
24247
- return b1.text.weight.xxthin;
24247
+ return I1.text.weight.xxthin;
24248
24248
  case "xthin":
24249
- return b1.text.weight.xthin;
24249
+ return I1.text.weight.xthin;
24250
24250
  case "thin":
24251
- return b1.text.weight.thin;
24251
+ return I1.text.weight.thin;
24252
24252
  case "normal":
24253
- return b1.text.weight.normal;
24253
+ return I1.text.weight.normal;
24254
24254
  case "bold":
24255
- return b1.text.weight.bold;
24255
+ return I1.text.weight.bold;
24256
24256
  case "xbold":
24257
- return b1.text.weight.xbold;
24257
+ return I1.text.weight.xbold;
24258
24258
  case "xxbold":
24259
- return b1.text.weight.xxbold;
24259
+ return I1.text.weight.xxbold;
24260
24260
  case "heavy":
24261
- return b1.text.weight.heavy;
24261
+ return I1.text.weight.heavy;
24262
24262
  case "xheavy":
24263
- return b1.text.weight.xheavy;
24263
+ return I1.text.weight.xheavy;
24264
24264
  case "xxheavy":
24265
- return b1.text.weight.xxheavy;
24265
+ return I1.text.weight.xxheavy;
24266
24266
  case "heading":
24267
- return b1.text.weight.heading;
24267
+ return I1.text.weight.heading;
24268
24268
  }
24269
24269
  }
24270
24270
  const aF1 = styled.div`
@@ -24382,22 +24382,22 @@ const aF1 = styled.div`
24382
24382
  }, i1 = t2.variant === "clear" || t2.variant === "toggle" ? t2.variant : "normal", v1 = {
24383
24383
  ...t2,
24384
24384
  pressed: r4,
24385
- color: T || ((c1 = b1.button[i1]) == null ? void 0 : c1.color),
24386
- colorActive: U || ((o1 = b1.button[i1]) == null ? void 0 : o1.colorActive),
24385
+ color: T || ((c1 = I1.button[i1]) == null ? void 0 : c1.color),
24386
+ colorActive: U || ((o1 = I1.button[i1]) == null ? void 0 : o1.colorActive),
24387
24387
  textStyle: {},
24388
24388
  label: "button-text"
24389
24389
  }, P1 = {
24390
24390
  ...t2,
24391
24391
  pressed: r4,
24392
- iconColor: l2 || T || ((P = b1.button[i1]) == null ? void 0 : P.color),
24393
- iconColorActive: q || U || ((K = b1.button[i1]) == null ? void 0 : K.colorActive),
24392
+ iconColor: l2 || T || ((P = I1.button[i1]) == null ? void 0 : P.color),
24393
+ iconColorActive: q || U || ((K = I1.button[i1]) == null ? void 0 : K.colorActive),
24394
24394
  label: "button-icon"
24395
24395
  }, r1 = {
24396
24396
  ...t2,
24397
24397
  variant: i1,
24398
24398
  paddingVert: k === void 0 && y2 === void 0 && m === void 0 && V === void 0 ? 12 : V,
24399
24399
  // if only backColor is set, use it for backColorActive (except for toggle variants)
24400
- backColorActive: g || (i1 !== "toggle" ? o10 || ((l1 = b1.button[i1]) == null ? void 0 : l1.backColor) : void 0)
24400
+ backColorActive: g || (i1 !== "toggle" ? o10 || ((l1 = I1.button[i1]) == null ? void 0 : l1.backColor) : void 0)
24401
24401
  };
24402
24402
  let $ = null;
24403
24403
  return D ? $ = D : n4 === "none" ? (v1.textStyle.margin = "4px 4px 0 4px", $ = /* @__PURE__ */ C1.jsx(h6, { ...v1 })) : (n4 === "top" ? (r1.direction = "vert", v1.textStyle.margin = "0 4px") : n4 === "right" ? (r1.direction = "horz-reverse", v1.textStyle.margin = "4px 4px 0 4px") : n4 === "bottom" ? (r1.direction = "vert-reverse", v1.textStyle.margin = "0 4px") : n4 === "left" && (r1.direction = "horz", v1.textStyle.margin = "4px 4px 0 4px"), $ = /* @__PURE__ */ C1.jsxs(C1.Fragment, { children: [
@@ -24459,21 +24459,21 @@ const aF1 = styled.div`
24459
24459
  function qt(t2) {
24460
24460
  switch (t2) {
24461
24461
  case "subtle":
24462
- return console.error("subtle view backColor is deprecated"), b1.text.color.subtle;
24462
+ return console.error("subtle view backColor is deprecated"), I1.text.color.subtle;
24463
24463
  case "tile":
24464
- return b1.view.backColor.tile;
24464
+ return I1.view.backColor.tile;
24465
24465
  case "light":
24466
- return b1.view.backColor.light;
24466
+ return I1.view.backColor.light;
24467
24467
  case "lighter":
24468
- return b1.view.backColor.lighter;
24468
+ return I1.view.backColor.lighter;
24469
24469
  case "lightest":
24470
- return b1.view.backColor.lightest;
24470
+ return I1.view.backColor.lightest;
24471
24471
  case "dark":
24472
- return b1.view.backColor.dark;
24472
+ return I1.view.backColor.dark;
24473
24473
  case "darker":
24474
- return b1.view.backColor.darker;
24474
+ return I1.view.backColor.darker;
24475
24475
  case "darkest":
24476
- return b1.view.backColor.darkest;
24476
+ return I1.view.backColor.darkest;
24477
24477
  case "none":
24478
24478
  return "transparent";
24479
24479
  default:
@@ -24491,7 +24491,7 @@ const Yt = (t2) => t2 === "always" ? "scroll" : t2 === "auto" ? "auto" : t2 ===
24491
24491
  }};
24492
24492
  ${({ $fixed: t2 }) => t2 === "none" ? "" : t2 === "top" ? "position: absolute; top: 0; left: 0; right: 0;" : "position: absolute; bottom: 0; left: 0; right: 0;"}
24493
24493
  width: ${({ $width: t2 }) => typeof t2 == "number" ? `${t2}px` : t2};
24494
- color: ${() => b1.text.color.normal};
24494
+ color: ${() => I1.text.color.normal};
24495
24495
  border-radius: ${(t2) => t2.$borderRadius}px;
24496
24496
  overflow-y: ${({ $vscroll: t2 }) => Yt(t2)};
24497
24497
  overflow-x: ${({ $hscroll: t2 }) => Yt(t2)};
@@ -24625,7 +24625,7 @@ const Yt = (t2) => t2 === "always" ? "scroll" : t2 === "auto" ? "auto" : t2 ===
24625
24625
  iconPadding: l2 = 2,
24626
24626
  iconBackColor: o10 = "transparent"
24627
24627
  }) => {
24628
- const g = r4 ? "#888" : h2 === void 0 ? b1.text.color.normal : h2;
24628
+ const g = r4 ? "#888" : h2 === void 0 ? I1.text.color.normal : h2;
24629
24629
  return /* @__PURE__ */ C1.jsxs(
24630
24630
  iF1,
24631
24631
  {
@@ -34537,7 +34537,7 @@ const IG1 = ({
34537
34537
  ) });
34538
34538
  }, cU1 = styled.div`
34539
34539
  position: relative;
34540
- background-color: ${(t2) => t2.$pressed ? b1.view.backColor.lighter : qt(t2.$backColor)};
34540
+ background-color: ${(t2) => t2.$pressed ? I1.view.backColor.lighter : qt(t2.$backColor)};
34541
34541
  border-radius: 10px;
34542
34542
  padding: 16px;
34543
34543
  padding-top: 8px;
@@ -34547,19 +34547,19 @@ const IG1 = ({
34547
34547
 
34548
34548
  ${X6};
34549
34549
  `, lU1 = styled.div`
34550
- font-size: ${() => b1.text.size.xsmall}px;
34551
- color: ${() => b1.text.color.tint};
34550
+ font-size: ${() => I1.text.size.xsmall}px;
34551
+ color: ${() => I1.text.color.tint};
34552
34552
  padding: 0;
34553
34553
  padding-top: 8px;
34554
34554
  margin-left: 4px;
34555
34555
  margin-bottom: -4px;
34556
34556
  text-transform: uppercase;
34557
34557
  `, vU1 = styled.div`
34558
- font-family: ${() => b1.text.family.heading};
34559
- font-size: ${() => b1.text.size.heading}px;
34560
- line-height: ${() => b1.text.height.heading}px;
34561
- font-weight: ${() => b1.text.weight.heading};
34562
- color: ${() => b1.text.color.normal};
34558
+ font-family: ${() => I1.text.family.heading};
34559
+ font-size: ${() => I1.text.size.heading}px;
34560
+ line-height: ${() => I1.text.height.heading}px;
34561
+ font-weight: ${() => I1.text.weight.heading};
34562
+ color: ${() => I1.text.color.normal};
34563
34563
  margin: 4px;
34564
34564
  margin-bottom: 1px;
34565
34565
  `, oU1 = styled.div`
@@ -34568,8 +34568,8 @@ const IG1 = ({
34568
34568
  padding: 6px 6px 6px 4px;
34569
34569
  padding-top: 4px;
34570
34570
  `, dU1 = styled.div`
34571
- font-size: ${() => b1.text.size.normal}px;
34572
- color: ${() => b1.text.color.xsubtle};
34571
+ font-size: ${() => I1.text.size.normal}px;
34572
+ color: ${() => I1.text.color.xsubtle};
34573
34573
  margin-top: -1px;
34574
34574
  padding-left: ${(t2) => t2.$hasIcon ? "6px" : "0px"};
34575
34575
  `, gU1 = styled.div`
@@ -34614,7 +34614,7 @@ const IG1 = ({
34614
34614
  {
34615
34615
  name: n4,
34616
34616
  size: 18,
34617
- color: b1.text.color.xsubtle
34617
+ color: I1.text.color.xsubtle
34618
34618
  }
34619
34619
  ) }),
34620
34620
  /* @__PURE__ */ C1.jsx(dU1, { $hasIcon: !!n4, children: e4 })
@@ -34689,7 +34689,7 @@ function RG1(t2 = 1e3) {
34689
34689
  //! license : MIT
34690
34690
  //! momentjs.com
34691
34691
  var Na;
34692
- function I1() {
34692
+ function b1() {
34693
34693
  return Na.apply(null, arguments);
34694
34694
  }
34695
34695
  function uU1(t2) {
@@ -34783,7 +34783,7 @@ function l5(t2) {
34783
34783
  var r4 = Q0(NaN);
34784
34784
  return t2 != null ? p4(K1(r4), t2) : K1(r4).userInvalidated = true, r4;
34785
34785
  }
34786
- var $6 = I1.momentProperties = [], G5 = false;
34786
+ var $6 = b1.momentProperties = [], G5 = false;
34787
34787
  function T3(t2, r4) {
34788
34788
  var e4, h2, n4, l2 = $6.length;
34789
34789
  if (n0(r4._isAMomentObject) || (t2._isAMomentObject = r4._isAMomentObject), n0(r4._i) || (t2._i = r4._i), n0(r4._f) || (t2._f = r4._f), n0(r4._l) || (t2._l = r4._l), n0(r4._strict) || (t2._strict = r4._strict), n0(r4._tzm) || (t2._tzm = r4._tzm), n0(r4._isUTC) || (t2._isUTC = r4._isUTC), n0(r4._offset) || (t2._offset = r4._offset), n0(r4._pf) || (t2._pf = K1(r4)), n0(r4._locale) || (t2._locale = r4._locale), l2 > 0)
@@ -34792,18 +34792,18 @@ function T3(t2, r4) {
34792
34792
  return t2;
34793
34793
  }
34794
34794
  function xt(t2) {
34795
- T3(this, t2), this._d = new Date(t2._d != null ? t2._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), G5 === false && (G5 = true, I1.updateOffset(this), G5 = false);
34795
+ T3(this, t2), this._d = new Date(t2._d != null ? t2._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), G5 === false && (G5 = true, b1.updateOffset(this), G5 = false);
34796
34796
  }
34797
34797
  function F0(t2) {
34798
34798
  return t2 instanceof xt || t2 != null && t2._isAMomentObject != null;
34799
34799
  }
34800
34800
  function $a(t2) {
34801
- I1.suppressDeprecationWarnings === false && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + t2);
34801
+ b1.suppressDeprecationWarnings === false && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + t2);
34802
34802
  }
34803
34803
  function k0(t2, r4) {
34804
34804
  var e4 = true;
34805
34805
  return p4(function() {
34806
- if (I1.deprecationHandler != null && I1.deprecationHandler(null, t2), e4) {
34806
+ if (b1.deprecationHandler != null && b1.deprecationHandler(null, t2), e4) {
34807
34807
  var h2 = [], n4, l2, o10, g = arguments.length;
34808
34808
  for (l2 = 0; l2 < g; l2++) {
34809
34809
  if (n4 = "", typeof arguments[l2] == "object") {
@@ -34827,10 +34827,10 @@ Arguments: ` + Array.prototype.slice.call(h2).join("") + `
34827
34827
  }
34828
34828
  var q6 = {};
34829
34829
  function qa(t2, r4) {
34830
- I1.deprecationHandler != null && I1.deprecationHandler(t2, r4), q6[t2] || ($a(r4), q6[t2] = true);
34830
+ b1.deprecationHandler != null && b1.deprecationHandler(t2, r4), q6[t2] || ($a(r4), q6[t2] = true);
34831
34831
  }
34832
- I1.suppressDeprecationWarnings = false;
34833
- I1.deprecationHandler = null;
34832
+ b1.suppressDeprecationWarnings = false;
34833
+ b1.deprecationHandler = null;
34834
34834
  function J0(t2) {
34835
34835
  return typeof Function < "u" && t2 instanceof Function || Object.prototype.toString.call(t2) === "[object Function]";
34836
34836
  }
@@ -35005,7 +35005,7 @@ function Z1(t2) {
35005
35005
  }
35006
35006
  function et(t2, r4) {
35007
35007
  return function(e4) {
35008
- return e4 != null ? (Ka(this, t2, e4), I1.updateOffset(this, r4), this) : Qt(this, t2);
35008
+ return e4 != null ? (Ka(this, t2, e4), b1.updateOffset(this, r4), this) : Qt(this, t2);
35009
35009
  };
35010
35010
  }
35011
35011
  function Qt(t2, r4) {
@@ -35165,7 +35165,7 @@ function r8(t2, r4) {
35165
35165
  return e4 = Math.min(t2.date(), z5(t2.year(), r4)), t2._d["set" + (t2._isUTC ? "UTC" : "") + "Month"](r4, e4), t2;
35166
35166
  }
35167
35167
  function e8(t2) {
35168
- return t2 != null ? (r8(this, t2), I1.updateOffset(this, true), this) : Qt(this, "Month");
35168
+ return t2 != null ? (r8(this, t2), b1.updateOffset(this, true), this) : Qt(this, "Month");
35169
35169
  }
35170
35170
  function KU1() {
35171
35171
  return z5(this.year(), this.month());
@@ -35214,10 +35214,10 @@ T1("YYYYY", g5, o5);
35214
35214
  T1("YYYYYY", g5, o5);
35215
35215
  u2(["YYYYY", "YYYYYY"], G2);
35216
35216
  u2("YYYY", function(t2, r4) {
35217
- r4[G2] = t2.length === 2 ? I1.parseTwoDigitYear(t2) : Z1(t2);
35217
+ r4[G2] = t2.length === 2 ? b1.parseTwoDigitYear(t2) : Z1(t2);
35218
35218
  });
35219
35219
  u2("YY", function(t2, r4) {
35220
- r4[G2] = I1.parseTwoDigitYear(t2);
35220
+ r4[G2] = b1.parseTwoDigitYear(t2);
35221
35221
  });
35222
35222
  u2("Y", function(t2, r4) {
35223
35223
  r4[G2] = parseInt(t2, 10);
@@ -35225,7 +35225,7 @@ u2("Y", function(t2, r4) {
35225
35225
  function st(t2) {
35226
35226
  return v5(t2) ? 366 : 365;
35227
35227
  }
35228
- I1.parseTwoDigitYear = function(t2) {
35228
+ b1.parseTwoDigitYear = function(t2) {
35229
35229
  return Z1(t2) + (Z1(t2) > 68 ? 1900 : 2e3);
35230
35230
  };
35231
35231
  var n8 = et("FullYear", true);
@@ -35774,9 +35774,9 @@ function $$1(t2) {
35774
35774
  delete t2._isValid;
35775
35775
  else
35776
35776
  return;
35777
- t2._strict ? t2._isValid = false : I1.createFromInputFallback(t2);
35777
+ t2._strict ? t2._isValid = false : b1.createFromInputFallback(t2);
35778
35778
  }
35779
- I1.createFromInputFallback = k0(
35779
+ b1.createFromInputFallback = k0(
35780
35780
  "value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
35781
35781
  function(t2) {
35782
35782
  t2._d = /* @__PURE__ */ new Date(t2._i + (t2._useUTC ? " UTC" : ""));
@@ -35786,7 +35786,7 @@ function U4(t2, r4, e4) {
35786
35786
  return t2 ?? r4 ?? e4;
35787
35787
  }
35788
35788
  function q$1(t2) {
35789
- var r4 = new Date(I1.now());
35789
+ var r4 = new Date(b1.now());
35790
35790
  return t2._useUTC ? [
35791
35791
  r4.getUTCFullYear(),
35792
35792
  r4.getUTCMonth(),
@@ -35814,16 +35814,16 @@ function Y$1(t2) {
35814
35814
  ft(V2(), 1, 4).year
35815
35815
  ), h2 = U4(r4.W, 1), n4 = U4(r4.E, 1), (n4 < 1 || n4 > 7) && (V = true)) : (l2 = t2._locale._week.dow, o10 = t2._locale._week.doy, y2 = ft(V2(), l2, o10), e4 = U4(r4.gg, t2._a[G2], y2.year), h2 = U4(r4.w, y2.week), r4.d != null ? (n4 = r4.d, (n4 < 0 || n4 > 6) && (V = true)) : r4.e != null ? (n4 = r4.e + l2, (r4.e < 0 || r4.e > 6) && (V = true)) : n4 = l2), h2 < 1 || h2 > g4(e4, l2, o10) ? K1(t2)._overflowWeeks = true : V != null ? K1(t2)._overflowWeekday = true : (g = i8(e4, h2, n4, l2, o10), t2._a[G2] = g.year, t2._dayOfYear = g.dayOfYear);
35816
35816
  }
35817
- I1.ISO_8601 = function() {
35817
+ b1.ISO_8601 = function() {
35818
35818
  };
35819
- I1.RFC_2822 = function() {
35819
+ b1.RFC_2822 = function() {
35820
35820
  };
35821
35821
  function Q3(t2) {
35822
- if (t2._f === I1.ISO_8601) {
35822
+ if (t2._f === b1.ISO_8601) {
35823
35823
  d8(t2);
35824
35824
  return;
35825
35825
  }
35826
- if (t2._f === I1.RFC_2822) {
35826
+ if (t2._f === b1.RFC_2822) {
35827
35827
  g8(t2);
35828
35828
  return;
35829
35829
  }
@@ -35874,9 +35874,9 @@ function s8(t2) {
35874
35874
  }
35875
35875
  function X$1(t2) {
35876
35876
  var r4 = t2._i;
35877
- n0(r4) ? t2._d = new Date(I1.now()) : Lt(r4) ? t2._d = new Date(r4.valueOf()) : typeof r4 == "string" ? $$1(t2) : D0(r4) ? (t2._a = Ua(r4.slice(0), function(e4) {
35877
+ n0(r4) ? t2._d = new Date(b1.now()) : Lt(r4) ? t2._d = new Date(r4.valueOf()) : typeof r4 == "string" ? $$1(t2) : D0(r4) ? (t2._a = Ua(r4.slice(0), function(e4) {
35878
35878
  return parseInt(e4, 10);
35879
- }), K3(t2)) : E4(r4) ? Q$1(t2) : s4(r4) ? t2._d = new Date(r4) : I1.createFromInputFallback(t2);
35879
+ }), K3(t2)) : E4(r4) ? Q$1(t2) : s4(r4) ? t2._d = new Date(r4) : b1.createFromInputFallback(t2);
35880
35880
  }
35881
35881
  function u8(t2, r4, e4, h2, n4) {
35882
35882
  var l2 = {};
@@ -35984,12 +35984,12 @@ function J3(t2, r4) {
35984
35984
  }
35985
35985
  function X3(t2, r4) {
35986
35986
  var e4, h2;
35987
- return r4._isUTC ? (e4 = r4.clone(), h2 = (F0(t2) || Lt(t2) ? t2.valueOf() : V2(t2).valueOf()) - e4.valueOf(), e4._d.setTime(e4._d.valueOf() + h2), I1.updateOffset(e4, false), e4) : V2(t2).local();
35987
+ return r4._isUTC ? (e4 = r4.clone(), h2 = (F0(t2) || Lt(t2) ? t2.valueOf() : V2(t2).valueOf()) - e4.valueOf(), e4._d.setTime(e4._d.valueOf() + h2), b1.updateOffset(e4, false), e4) : V2(t2).local();
35988
35988
  }
35989
35989
  function H3(t2) {
35990
35990
  return -Math.round(t2._d.getTimezoneOffset());
35991
35991
  }
35992
- I1.updateOffset = function() {
35992
+ b1.updateOffset = function() {
35993
35993
  };
35994
35994
  function vq1(t2, r4, e4) {
35995
35995
  var h2 = this._offset || 0, n4;
@@ -36006,7 +36006,7 @@ function vq1(t2, r4, e4) {
36006
36006
  j0(t2 - h2, "m"),
36007
36007
  1,
36008
36008
  false
36009
- ) : this._changeInProgress || (this._changeInProgress = true, I1.updateOffset(this, true), this._changeInProgress = null)), this;
36009
+ ) : this._changeInProgress || (this._changeInProgress = true, b1.updateOffset(this, true), this._changeInProgress = null)), this;
36010
36010
  } else
36011
36011
  return this._isUTC ? h2 : H3(this);
36012
36012
  }
@@ -36102,7 +36102,7 @@ function p8(t2, r4) {
36102
36102
  }
36103
36103
  function H8(t2, r4, e4, h2) {
36104
36104
  var n4 = r4._milliseconds, l2 = p3(r4._days), o10 = p3(r4._months);
36105
- t2.isValid() && (h2 = h2 ?? true, o10 && r8(t2, Qt(t2, "Month") + o10 * e4), l2 && Ka(t2, "Date", Qt(t2, "Date") + l2 * e4), n4 && t2._d.setTime(t2._d.valueOf() + n4 * e4), h2 && I1.updateOffset(t2, l2 || o10));
36105
+ t2.isValid() && (h2 = h2 ?? true, o10 && r8(t2, Qt(t2, "Month") + o10 * e4), l2 && Ka(t2, "Date", Qt(t2, "Date") + l2 * e4), n4 && t2._d.setTime(t2._d.valueOf() + n4 * e4), h2 && b1.updateOffset(t2, l2 || o10));
36106
36106
  }
36107
36107
  var Lq1 = p8(1, "add"), xq1 = p8(-1, "subtract");
36108
36108
  function m8(t2) {
@@ -36167,7 +36167,7 @@ function kq1(t2, r4) {
36167
36167
  }
36168
36168
  function Oq1(t2, r4) {
36169
36169
  arguments.length === 1 && (arguments[0] ? wq1(arguments[0]) ? (t2 = arguments[0], r4 = void 0) : yq1(arguments[0]) && (r4 = arguments[0], t2 = void 0) : (t2 = void 0, r4 = void 0));
36170
- var e4 = t2 || V2(), h2 = X3(e4, this).startOf("day"), n4 = I1.calendarFormat(this, h2) || "sameElse", l2 = r4 && (J0(r4[n4]) ? r4[n4].call(this, e4) : r4[n4]);
36170
+ var e4 = t2 || V2(), h2 = X3(e4, this).startOf("day"), n4 = b1.calendarFormat(this, h2) || "sameElse", l2 = r4 && (J0(r4[n4]) ? r4[n4].call(this, e4) : r4[n4]);
36171
36171
  return this.format(
36172
36172
  l2 || this.localeData().calendar(n4, this, V2(e4))
36173
36173
  );
@@ -36239,8 +36239,8 @@ function $t(t2, r4) {
36239
36239
  var e4 = (r4.year() - t2.year()) * 12 + (r4.month() - t2.month()), h2 = t2.clone().add(e4, "months"), n4, l2;
36240
36240
  return r4 - h2 < 0 ? (n4 = t2.clone().add(e4 - 1, "months"), l2 = (r4 - h2) / (h2 - n4)) : (n4 = t2.clone().add(e4 + 1, "months"), l2 = (r4 - h2) / (n4 - h2)), -(e4 + l2) || 0;
36241
36241
  }
36242
- I1.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
36243
- I1.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
36242
+ b1.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
36243
+ b1.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
36244
36244
  function Tq1() {
36245
36245
  return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
36246
36246
  }
@@ -36263,7 +36263,7 @@ function Dq1() {
36263
36263
  return this.isLocal() || (t2 = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", r4 = "Z"), e4 = "[" + t2 + '("]', h2 = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", n4 = "-MM-DD[T]HH:mm:ss.SSS", l2 = r4 + '[")]', this.format(e4 + h2 + n4 + l2);
36264
36264
  }
36265
36265
  function Fq1(t2) {
36266
- t2 || (t2 = this.isUtc() ? I1.defaultFormatUtc : I1.defaultFormat);
36266
+ t2 || (t2 = this.isUtc() ? b1.defaultFormatUtc : b1.defaultFormat);
36267
36267
  var r4 = Nt(this, t2);
36268
36268
  return this.localeData().postformat(r4);
36269
36269
  }
@@ -36351,7 +36351,7 @@ function qq1(t2) {
36351
36351
  r4 = this._d.valueOf(), r4 -= J4(r4, Zt);
36352
36352
  break;
36353
36353
  }
36354
- return this._d.setTime(r4), I1.updateOffset(this, true), this;
36354
+ return this._d.setTime(r4), b1.updateOffset(this, true), this;
36355
36355
  }
36356
36356
  function Yq1(t2) {
36357
36357
  var r4, e4;
@@ -36402,7 +36402,7 @@ function Yq1(t2) {
36402
36402
  r4 = this._d.valueOf(), r4 += Zt - J4(r4, Zt) - 1;
36403
36403
  break;
36404
36404
  }
36405
- return this._d.setTime(r4), I1.updateOffset(this, true), this;
36405
+ return this._d.setTime(r4), b1.updateOffset(this, true), this;
36406
36406
  }
36407
36407
  function Gq1() {
36408
36408
  return this._d.valueOf() - (this._offset || 0) * 6e4;
@@ -36494,7 +36494,7 @@ function hY1(t2, r4) {
36494
36494
  for (e4 = 0, h2 = l2.length; e4 < h2; ++e4) {
36495
36495
  switch (typeof l2[e4].since) {
36496
36496
  case "string":
36497
- n4 = I1(l2[e4].since).startOf("day"), l2[e4].since = n4.valueOf();
36497
+ n4 = b1(l2[e4].since).startOf("day"), l2[e4].since = n4.valueOf();
36498
36498
  break;
36499
36499
  }
36500
36500
  switch (typeof l2[e4].until) {
@@ -36502,7 +36502,7 @@ function hY1(t2, r4) {
36502
36502
  l2[e4].until = 1 / 0;
36503
36503
  break;
36504
36504
  case "string":
36505
- n4 = I1(l2[e4].until).startOf("day").valueOf(), l2[e4].until = n4.valueOf();
36505
+ n4 = b1(l2[e4].until).startOf("day").valueOf(), l2[e4].until = n4.valueOf();
36506
36506
  break;
36507
36507
  }
36508
36508
  }
@@ -36533,7 +36533,7 @@ function nY1(t2, r4, e4) {
36533
36533
  }
36534
36534
  function iY1(t2, r4) {
36535
36535
  var e4 = t2.since <= t2.until ? 1 : -1;
36536
- return r4 === void 0 ? I1(t2.since).year() : I1(t2.since).year() + (r4 - t2.offset) * e4;
36536
+ return r4 === void 0 ? b1(t2.since).year() : b1(t2.since).year() + (r4 - t2.offset) * e4;
36537
36537
  }
36538
36538
  function cY1() {
36539
36539
  var t2, r4, e4, h2 = this.localeData().eras();
@@ -36560,7 +36560,7 @@ function oY1() {
36560
36560
  var t2, r4, e4, h2, n4 = this.localeData().eras();
36561
36561
  for (t2 = 0, r4 = n4.length; t2 < r4; ++t2)
36562
36562
  if (e4 = n4[t2].since <= n4[t2].until ? 1 : -1, h2 = this.clone().startOf("day").valueOf(), n4[t2].since <= h2 && h2 <= n4[t2].until || n4[t2].until <= h2 && h2 <= n4[t2].since)
36563
- return (this.year() - I1(n4[t2].since).year()) * e4 + n4[t2].offset;
36563
+ return (this.year() - b1(n4[t2].since).year()) * e4 + n4[t2].offset;
36564
36564
  return this.year();
36565
36565
  }
36566
36566
  function dY1(t2) {
@@ -36625,7 +36625,7 @@ Bt(
36625
36625
  }
36626
36626
  );
36627
36627
  Bt(["gg", "GG"], function(t2, r4, e4, h2) {
36628
- r4[h2] = I1.parseTwoDigitYear(t2);
36628
+ r4[h2] = b1.parseTwoDigitYear(t2);
36629
36629
  });
36630
36630
  function fY1(t2) {
36631
36631
  return y8.call(
@@ -36970,11 +36970,11 @@ V4("en", {
36970
36970
  return t2 + e4;
36971
36971
  }
36972
36972
  });
36973
- I1.lang = k0(
36973
+ b1.lang = k0(
36974
36974
  "moment.lang is deprecated. Use moment.locale instead.",
36975
36975
  V4
36976
36976
  );
36977
- I1.langData = k0(
36977
+ b1.langData = k0(
36978
36978
  "moment.langData is deprecated. Use moment.localeData instead.",
36979
36979
  z4
36980
36980
  );
@@ -37155,36 +37155,36 @@ u2("x", function(t2, r4, e4) {
37155
37155
  e4._d = new Date(Z1(t2));
37156
37156
  });
37157
37157
  //! moment.js
37158
- I1.version = "2.29.4";
37158
+ b1.version = "2.29.4";
37159
37159
  uU1(V2);
37160
- I1.fn = m1;
37161
- I1.min = aq1;
37162
- I1.max = rq1;
37163
- I1.now = eq1;
37164
- I1.utc = Q0;
37165
- I1.unix = AY1;
37166
- I1.months = IY1;
37167
- I1.isDate = Lt;
37168
- I1.locale = V4;
37169
- I1.invalid = l5;
37170
- I1.duration = j0;
37171
- I1.isMoment = F0;
37172
- I1.weekdays = PY1;
37173
- I1.parseZone = bY1;
37174
- I1.localeData = z4;
37175
- I1.isDuration = Ut;
37176
- I1.monthsShort = _Y1;
37177
- I1.weekdaysMin = RY1;
37178
- I1.defineLocale = Y3;
37179
- I1.updateLocale = b$1;
37180
- I1.locales = I$1;
37181
- I1.weekdaysShort = WY1;
37182
- I1.normalizeUnits = O0;
37183
- I1.relativeTimeRounding = dG1;
37184
- I1.relativeTimeThreshold = gG1;
37185
- I1.calendarFormat = kq1;
37186
- I1.prototype = m1;
37187
- I1.HTML5_FMT = {
37160
+ b1.fn = m1;
37161
+ b1.min = aq1;
37162
+ b1.max = rq1;
37163
+ b1.now = eq1;
37164
+ b1.utc = Q0;
37165
+ b1.unix = AY1;
37166
+ b1.months = IY1;
37167
+ b1.isDate = Lt;
37168
+ b1.locale = V4;
37169
+ b1.invalid = l5;
37170
+ b1.duration = j0;
37171
+ b1.isMoment = F0;
37172
+ b1.weekdays = PY1;
37173
+ b1.parseZone = bY1;
37174
+ b1.localeData = z4;
37175
+ b1.isDuration = Ut;
37176
+ b1.monthsShort = _Y1;
37177
+ b1.weekdaysMin = RY1;
37178
+ b1.defineLocale = Y3;
37179
+ b1.updateLocale = b$1;
37180
+ b1.locales = I$1;
37181
+ b1.weekdaysShort = WY1;
37182
+ b1.normalizeUnits = O0;
37183
+ b1.relativeTimeRounding = dG1;
37184
+ b1.relativeTimeThreshold = gG1;
37185
+ b1.calendarFormat = kq1;
37186
+ b1.prototype = m1;
37187
+ b1.HTML5_FMT = {
37188
37188
  DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
37189
37189
  // <input type="datetime-local" />
37190
37190
  DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
@@ -37205,7 +37205,10 @@ I1.HTML5_FMT = {
37205
37205
  // <input type="month" />
37206
37206
  };
37207
37207
  function TG1(t2 = "ddd, MMM D h:mma", r4 = /* @__PURE__ */ new Date()) {
37208
- return I1(r4).format(t2);
37208
+ return b1(r4).format(t2);
37209
+ }
37210
+ function EG1(t2 = /* @__PURE__ */ new Date()) {
37211
+ return b1(t2).fromNow();
37209
37212
  }
37210
37213
  const dekUiModule = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
37211
37214
  __proto__: null,
@@ -37236,7 +37239,8 @@ const dekUiModule = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
37236
37239
  TitleBar: PG1,
37237
37240
  View: x0,
37238
37241
  formatDateTime: TG1,
37239
- theme: b1,
37242
+ formatFromNow: EG1,
37243
+ theme: I1,
37240
37244
  useDateTime: RG1,
37241
37245
  useInterval: WG1
37242
37246
  }, Symbol.toStringTag, { value: "Module" }));
@@ -58327,7 +58331,7 @@ async function fetchUserPlugins(email, password) {
58327
58331
  result.integrations.push({
58328
58332
  key: "base",
58329
58333
  pluginName: "base",
58330
- pluginVersion: "0.17.0",
58334
+ pluginVersion: "0.18.0",
58331
58335
  pluginConfig: []
58332
58336
  });
58333
58337
  return result;
@@ -58502,7 +58506,7 @@ const Header = ({ height = 70 }) => {
58502
58506
  };
58503
58507
  const About = () => {
58504
58508
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(x0, { padding: 20, direction: "vert", children: [
58505
- /* @__PURE__ */ jsxRuntimeExports.jsx(hF1, { children: `Dek ${"0.17.0"}` }),
58509
+ /* @__PURE__ */ jsxRuntimeExports.jsx(hF1, { children: `Dek ${"0.18.0"}` }),
58506
58510
  /* @__PURE__ */ jsxRuntimeExports.jsx(X4, { children: "From Appkit" })
58507
58511
  ] });
58508
58512
  };
@@ -58721,7 +58725,7 @@ const Theme = ({ api: api2 }) => {
58721
58725
  width: "100%",
58722
58726
  maxWidth: 400,
58723
58727
  height: 150,
58724
- color: themeState["tile-bg"] || b1.view.backColor.tile,
58728
+ color: themeState["tile-bg"] || I1.view.backColor.tile,
58725
58729
  onChange: (color) => {
58726
58730
  themeState["tile-bg"] = color;
58727
58731
  setThemeState(themeState);
@@ -95225,7 +95229,7 @@ const transitionDelay = 0;
95225
95229
  const BoardProvider = ({ email, password, plugin, pluginConfig }) => {
95226
95230
  const config2 = useUserConfig(email, password, plugin, pluginConfig);
95227
95231
  console.log("### LOADED", config2);
95228
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(ThemeProvider, { theme: b1, children: [
95232
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(ThemeProvider, { theme: I1, children: [
95229
95233
  /* @__PURE__ */ jsxRuntimeExports.jsx(BoardStyles, { transitionDelay }),
95230
95234
  /* @__PURE__ */ jsxRuntimeExports.jsx(Background, {}),
95231
95235
  /* @__PURE__ */ jsxRuntimeExports.jsx(Router, { userConfig: config2, transitionDelay }),