@pantograph/vue 0.35.10 → 0.36.1

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/use/index.js CHANGED
@@ -11995,7 +11995,7 @@ const aA = "ltr", zs = !1, ed = {
11995
11995
  "div",
11996
11996
  {
11997
11997
  ...g,
11998
- class: T("title", l(B), s.class),
11998
+ class: T(l(B), s.class),
11999
11999
  style: {
12000
12000
  ...uo(g.style),
12001
12001
  "--ptc-badge-fg": s.fg,
@@ -12115,12 +12115,7 @@ const aA = "ltr", zs = !1, ed = {
12115
12115
  E(
12116
12116
  "div",
12117
12117
  {
12118
- class: T(
12119
- k(r, "title"),
12120
- "paragraph",
12121
- t.titleCls,
12122
- (le = o.props) == null ? void 0 : le.titleCls
12123
- )
12118
+ class: T(k(r, "title"), t.titleCls, (le = o.props) == null ? void 0 : le.titleCls)
12124
12119
  },
12125
12120
  w ? x : t.title
12126
12121
  )
@@ -12972,7 +12967,7 @@ const Bo = [
12972
12967
  };
12973
12968
  return (A, R) => (O(), M(u(Ne), ne({
12974
12969
  as: u(P),
12975
- class: u(T)("title", u(Lv)(S.value), o.class, u(y).class),
12970
+ class: u(T)(u(Lv)(S.value), o.class, u(y).class),
12976
12971
  ref_key: "buttonRef",
12977
12972
  ref: w
12978
12973
  }, x.value, {
@@ -13280,7 +13275,6 @@ const id = ["sm", "md", "lg"], ud = qa, Gt = Ie("input"), $l = {
13280
13275
  dir: u(s),
13281
13276
  class: H(
13282
13277
  u(T)(
13283
- "title",
13284
13278
  u(r)({
13285
13279
  size: e.size,
13286
13280
  noBg: e.noBg,
@@ -13466,7 +13460,6 @@ const pd = {
13466
13460
  dir: u(f),
13467
13461
  class: H(
13468
13462
  u(T)(
13469
- "title",
13470
13463
  u(s)({
13471
13464
  txs: e.txs,
13472
13465
  underline: e.underline,
@@ -13587,7 +13580,7 @@ const pd = {
13587
13580
  z(p.$slots, "default", {}, () => [
13588
13581
  e.title || c.title ? (O(), Z("div", {
13589
13582
  key: 0,
13590
- class: H(u(T)(u(k)(u(r), "title"), e.titleCls, "paragraph"))
13583
+ class: H(u(T)(u(k)(u(r), "title"), e.titleCls))
13591
13584
  }, [
13592
13585
  z(p.$slots, "title", {}, () => [
13593
13586
  St(it(e.title), 1)
@@ -13595,7 +13588,7 @@ const pd = {
13595
13588
  ], 2)) : de("", !0),
13596
13589
  e.description || c.description ? (O(), Z("div", {
13597
13590
  key: 1,
13598
- class: H(u(T)(u(k)(u(r), "description"), e.descriptionCls, "paragraph"))
13591
+ class: H(u(T)(u(k)(u(r), "description"), e.descriptionCls))
13599
13592
  }, [
13600
13593
  z(p.$slots, "description", {}, () => [
13601
13594
  St(it(e.description), 1)
@@ -14267,11 +14260,7 @@ const Kv = {
14267
14260
  return E(
14268
14261
  xg,
14269
14262
  {
14270
- class: T(
14271
- k(Tt, "description"),
14272
- "paragraph",
14273
- o.descriptionCls
14274
- )
14263
+ class: T(k(Tt, "description"), o.descriptionCls)
14275
14264
  },
14276
14265
  () => oe ? ie : o.description
14277
14266
  );
@@ -14657,7 +14646,7 @@ const Kv = {
14657
14646
  if (n.title || h)
14658
14647
  return E(
14659
14648
  Ag,
14660
- { class: T(k(l, "title"), "paragraph", n.titleCls) },
14649
+ { class: T(k(l, "title"), n.titleCls) },
14661
14650
  () => h ? m : n.title
14662
14651
  );
14663
14652
  }, g = () => E(
@@ -14670,7 +14659,9 @@ const Kv = {
14670
14659
  if (n.description || h)
14671
14660
  return E(
14672
14661
  xg,
14673
- { class: T(k(l, "description"), "paragraph", n.descriptionCls) },
14662
+ {
14663
+ class: T(k(l, "description"), n.descriptionCls)
14664
+ },
14674
14665
  () => h ? m : n.description
14675
14666
  );
14676
14667
  }, y = () => {
@@ -14754,8 +14745,8 @@ const Kv = {
14754
14745
  () => {
14755
14746
  var v, y;
14756
14747
  if ((v = t.theme) != null && v.init || (y = t.theme) != null && y.element) {
14757
- const { init: m, ...h } = t.theme;
14758
- typeof window < "u" && !window.pantographThemeDefined ? (Yb(h), window.pantographThemeDefined = !0) : Xi(h);
14748
+ const m = { ...t.theme };
14749
+ delete m.init, typeof window < "u" && !window.pantographThemeDefined ? (Yb(m), window.pantographThemeDefined = !0) : Xi(m);
14759
14750
  }
14760
14751
  },
14761
14752
  { immediate: !0 }
@@ -15093,7 +15084,7 @@ const [rm, am] = ze("AvatarGroup"), sm = {
15093
15084
  });
15094
15085
  return (m, h) => (O(), M(u(Zw), {
15095
15086
  as: "div",
15096
- class: H(u(T)("title", u(c)(g.value), r.class))
15087
+ class: H(u(T)(u(c)(g.value), r.class))
15097
15088
  }, {
15098
15089
  default: N(() => [
15099
15090
  !n.default && !e.text ? (O(), Z(He, { key: 0 }, [
@@ -15838,7 +15829,6 @@ const Sd = ["sm", "md", "lg"], fm = [...Sd, "none"], gm = {
15838
15829
  tabindex: t.unFocusable ? void 0 : a.tabindex ?? 0,
15839
15830
  "data-hover": t.hover ? "" : void 0,
15840
15831
  class: T(
15841
- "title",
15842
15832
  o({
15843
15833
  size: t.size,
15844
15834
  selected: t.selected,
@@ -16384,7 +16374,7 @@ const Sd = ["sm", "md", "lg"], fm = [...Sd, "none"], gm = {
16384
16374
  return (c, i) => {
16385
16375
  var d, p;
16386
16376
  return O(), Z("li", {
16387
- class: H(u(T)("title", u(r)(t), (d = t.item) == null ? void 0 : d.class)),
16377
+ class: H(u(T)(u(r)(t), (d = t.item) == null ? void 0 : d.class)),
16388
16378
  "aria-hidden": e.truncate ? !0 : void 0
16389
16379
  }, [
16390
16380
  Q(s, {
@@ -16542,7 +16532,7 @@ const Bm = ["vertical", "horizontal"], xm = ["desktop", "tablet"], Am = {
16542
16532
  const m = (h = s.title) == null ? void 0 : h.call(s, {});
16543
16533
  return t.title || !Y(m) ? E(
16544
16534
  "div",
16545
- { class: T(k(n, "title"), "paragraph", t.titleCls) },
16535
+ { class: T(k(n, "title"), t.titleCls) },
16546
16536
  m ?? t.title
16547
16537
  ) : null;
16548
16538
  }, i = () => {
@@ -16550,7 +16540,9 @@ const Bm = ["vertical", "horizontal"], xm = ["desktop", "tablet"], Am = {
16550
16540
  const m = (h = s.description) == null ? void 0 : h.call(s, {});
16551
16541
  return t.description || !Y(m) ? E(
16552
16542
  "div",
16553
- { class: T(k(n, "description"), "paragraph", t.descriptionCls) },
16543
+ {
16544
+ class: T(k(n, "description"), t.descriptionCls)
16545
+ },
16554
16546
  m ?? t.description
16555
16547
  ) : null;
16556
16548
  }, d = () => {
@@ -16732,7 +16724,7 @@ const km = ["2xsm", "xsm"], [Im, Tm] = ze("CheckboxGroup"), Em = {
16732
16724
  emit: l
16733
16725
  }), I = () => p.value = !p.value;
16734
16726
  return (_, A) => (O(), Z("div", ne({
16735
- class: u(T)("title", u(k)(u(n), "root"), e.rootCls)
16727
+ class: u(T)(u(k)(u(n), "root"), e.rootCls)
16736
16728
  }, u(w), { dir: u(a) }), [
16737
16729
  Q(u(pP), ne({
16738
16730
  onKeyup: zn(I, ["enter"])
@@ -16741,7 +16733,6 @@ const km = ["2xsm", "xsm"], [Im, Tm] = ze("CheckboxGroup"), Em = {
16741
16733
  "onUpdate:modelValue": A[0] || (A[0] = (R) => p.value = R),
16742
16734
  id: g.value,
16743
16735
  class: u(T)(
16744
- "title",
16745
16736
  u(m)({ size: b.value, noRing: P.value }),
16746
16737
  o.class
16747
16738
  )
@@ -17072,7 +17063,6 @@ const Fm = {
17072
17063
  style: pt(p.value),
17073
17064
  class: H(
17074
17065
  u(T)(
17075
- "title",
17076
17066
  u(y)({
17077
17067
  size: r.value,
17078
17068
  color: a.value,
@@ -22277,9 +22267,7 @@ const q2 = ["value"], V2 = ["value"], Gi = "#ffffffff", al = /* @__PURE__ */ $({
22277
22267
  }
22278
22268
  ), i = kt(o, "format", r, {
22279
22269
  defaultValue: o.defaultFormat,
22280
- passive: o.format === void 0,
22281
- onChange(D) {
22282
- }
22270
+ passive: o.format === void 0
22283
22271
  }), d = C(
22284
22272
  () => i.value && n.includes(i.value) ? i.value : "hex"
22285
22273
  ), p = (D) => ["hex", "hex8"].includes(D) ? "hex" : D, f = C(() => p(d.value)), g = C(() => o.hideAlpha), v = C(() => c.value ?? o.defaultColor ?? Gi);
@@ -24156,7 +24144,6 @@ function mh({
24156
24144
  "aria-expanded": R["aria-expanded"] ?? u(n),
24157
24145
  "data-state": R["data-state"] ?? (u(n) ? "open" : "closed"),
24158
24146
  class: T(
24159
- "title",
24160
24147
  A({
24161
24148
  size: e.triggerSize ?? i.value,
24162
24149
  status: c.value === "success" && rt(V) ? void 0 : c.value,
@@ -25991,13 +25978,7 @@ const xh = {
25991
25978
  };
25992
25979
  return (i, d) => (O(), Z("div", {
25993
25980
  dir: u(s),
25994
- class: H(
25995
- u(T)(
25996
- "title",
25997
- u(r)({ iconOnly: t.iconOnly }),
25998
- t.class
25999
- )
26000
- )
25981
+ class: H(u(T)(u(r)({ iconOnly: t.iconOnly }), t.class))
26001
25982
  }, [
26002
25983
  e.iconOnly ? (O(), M(c, { key: 1 })) : (O(), M(l, { key: 0 }))
26003
25984
  ], 10, u3));
@@ -26031,7 +26012,7 @@ const Ah = {
26031
26012
  });
26032
26013
  return (l, c) => (O(), Z("div", {
26033
26014
  dir: u(a),
26034
- class: H(u(T)("title", u(o), t.class))
26015
+ class: H(u(T)(u(o), t.class))
26035
26016
  }, [
26036
26017
  Q(s)
26037
26018
  ], 10, c3));
@@ -26116,7 +26097,7 @@ const Ah = {
26116
26097
  if (!(!A && !r.text))
26117
26098
  return E(
26118
26099
  "div",
26119
- { class: T(k(a, "text"), "paragraph", r.textCls) },
26100
+ { class: T(k(a, "text"), r.textCls) },
26120
26101
  A ? _ : r.text
26121
26102
  );
26122
26103
  }, p = () => {
@@ -26193,9 +26174,7 @@ const Ah = {
26193
26174
  "--ptc-tooltip-max-w": u(Ct)(e.maxWidth, !0),
26194
26175
  ...u(uo)(e.containerStyle)
26195
26176
  }),
26196
- class: H(
26197
- u(T)(u(s), "pantograph-tokens pantograph-dark paragraph", e.containerCls)
26198
- ),
26177
+ class: H(u(T)(u(s), "pantograph-tokens pantograph-dark", e.containerCls)),
26199
26178
  ref: (j) => v.value = j
26200
26179
  }, [
26201
26180
  Se("div", {
@@ -26269,7 +26248,6 @@ const Ah = {
26269
26248
  dir: u(l),
26270
26249
  class: H(
26271
26250
  u(T)(
26272
- "title",
26273
26251
  u(r)({ ...t, leadingIcon: !!(e.leadingIcon || n.leadingIcon) }),
26274
26252
  t.labelRootCls
26275
26253
  )
@@ -26701,7 +26679,6 @@ const Rh = ["sm", "md", "lg"], Nh = {
26701
26679
  value: J,
26702
26680
  ...re,
26703
26681
  class: T(
26704
- "title",
26705
26682
  d({
26706
26683
  icon: he,
26707
26684
  text: oe
@@ -26726,7 +26703,7 @@ const Rh = ["sm", "md", "lg"], Nh = {
26726
26703
  var R;
26727
26704
  return [
26728
26705
  Se("div", {
26729
- class: H(u(T)("title", u(c)({
26706
+ class: H(u(T)(u(c)({
26730
26707
  ...n
26731
26708
  /*, style: !style*/
26732
26709
  }), n.class)),
@@ -27082,7 +27059,7 @@ const Fh = {
27082
27059
  modelValue: u(d),
27083
27060
  "onUpdate:modelValue": _[0] || (_[0] = (A) => Jn(d) ? d.value = A : null),
27084
27061
  dir: u(a),
27085
- class: u(T)("title", u(S)({ size: u(i) }), o.class)
27062
+ class: u(T)(u(S)({ size: u(i) }), o.class)
27086
27063
  }), {
27087
27064
  default: N(({ modelValue: A }) => [
27088
27065
  (O(!0), Z(He, null, Je(e.count ?? 4, (R, j) => (O(), M(u(GP), {
@@ -27139,7 +27116,7 @@ const Lh = ["2xsm", "xsm"], $h = {
27139
27116
  })), d = C(() => !!(r.label || n.label)), { dir: p } = _e();
27140
27117
  return (f, g) => (O(), Z("label", ne({
27141
27118
  dir: u(p),
27142
- class: u(T)("title", u(k)(u(o), "root"), e.rootCls)
27119
+ class: u(T)(u(k)(u(o), "root"), e.rootCls)
27143
27120
  }, u(l), { for: s.value }), [
27144
27121
  Q(u(rB), ne({
27145
27122
  class: u(T)(u(o), n.class)
@@ -27478,7 +27455,7 @@ const jh = [3, 5, 7, 10], qh = ["always", "never", "active"], la = {
27478
27455
  remove: IC,
27479
27456
  id: kC
27480
27457
  }), (q, X) => (O(), Z("div", {
27481
- class: H(u(T)("title", u(s)({ fill: n.fill }), n.class))
27458
+ class: H(u(T)(u(s)({ fill: n.fill }), n.class))
27482
27459
  }, [
27483
27460
  Q(u(ur), {
27484
27461
  as: "ul",
@@ -27786,7 +27763,7 @@ const Hh = {
27786
27763
  id: NC
27787
27764
  }), (d, p) => (O(), Z("div", {
27788
27765
  dir: u(i),
27789
- class: H(u(T)("title", u(r)(t), t.class)),
27766
+ class: H(u(T)(u(r)(t), t.class)),
27790
27767
  style: pt({ "--ptc-spinner-min-h": s.value, "--ptc-spinner-min-w": s.value })
27791
27768
  }, [
27792
27769
  e.loading ? (O(), Z(He, { key: 0 }, [
@@ -28110,7 +28087,7 @@ const Xh = ["completed", "current", "upcoming", "error"], C3 = ["number", "icon"
28110
28087
  return E(
28111
28088
  "div",
28112
28089
  {
28113
- class: T(k(Hn, "description"), "paragraph", t.descriptionCls)
28090
+ class: T(k(Hn, "description"), t.descriptionCls)
28114
28091
  },
28115
28092
  i
28116
28093
  );
@@ -28315,11 +28292,10 @@ const tb = ["2xsm", "xsm", "sm"], nb = {
28315
28292
  return S({ add: GC, remove: HC, id: UC }), (P, x) => (O(), Z("div", ne({
28316
28293
  dir: u(b),
28317
28294
  key: v.value,
28318
- class: u(T)("title", u(k)(u(a), "root"), n.rootCls)
28295
+ class: u(T)(u(k)(u(a), "root"), n.rootCls)
28319
28296
  }, u(d)), [
28320
28297
  Q(u(vx), ne({
28321
28298
  class: u(T)(
28322
- "title",
28323
28299
  u(s)({
28324
28300
  size: e.size,
28325
28301
  innerText: !!(l.checkedText || l.uncheckedText),
@@ -28873,7 +28849,7 @@ const rb = {
28873
28849
  loading: F("loading", Gn)
28874
28850
  }
28875
28851
  }), r = Hd(), a = (p) => {
28876
- p.stopPropagation(), p.preventDefault();
28852
+ p.button === 2 && (p.stopPropagation(), p.preventDefault());
28877
28853
  }, s = (p) => {
28878
28854
  c.value && p.key === "Enter" && (p.stopPropagation(), p.preventDefault());
28879
28855
  }, l = () => {
@@ -28955,9 +28931,7 @@ const rb = {
28955
28931
  id: d.value,
28956
28932
  "data-draggable": i.value,
28957
28933
  disabled: c.value,
28958
- class: H(
28959
- u(T)("title", u(o)({ loading: e.loading }), t.class)
28960
- ),
28934
+ class: H(u(T)(u(o)({ loading: e.loading }), t.class)),
28961
28935
  onMousedown: f[0] || (f[0] = at(() => {
28962
28936
  }, ["right", "stop", "prevent"]))
28963
28937
  }, [
@@ -29100,8 +29074,7 @@ const lb = ["sm", "md", "lg"], ib = qa, ub = {
29100
29074
  }),
29101
29075
  o.class
29102
29076
  ),
29103
- e.textareaCls,
29104
- "paragraph"
29077
+ e.textareaCls
29105
29078
  )
29106
29079
  }, g.value, {
29107
29080
  style: {
@@ -29209,7 +29182,7 @@ const cb = ["info", "success", "warning", "error"], Gd = {
29209
29182
  return E(
29210
29183
  "div",
29211
29184
  {
29212
- class: T(k(a, "description"), n.descriptionCls, "paragraph")
29185
+ class: T(k(a, "description"), n.descriptionCls)
29213
29186
  },
29214
29187
  D ? j : n.description
29215
29188
  );
@@ -29219,7 +29192,7 @@ const cb = ["info", "success", "warning", "error"], Gd = {
29219
29192
  if (n.title || D)
29220
29193
  return E(
29221
29194
  "div",
29222
- { class: T(k(a, "title"), n.titleCls, "paragraph") },
29195
+ { class: T(k(a, "title"), n.titleCls) },
29223
29196
  D ? j : n.title
29224
29197
  );
29225
29198
  })(), S = (() => {
@@ -30471,7 +30444,7 @@ const z3 = (e, t, n = 1024 * 1024) => {
30471
30444
  Object.assign(wc, pe(wc, "Upload"));
30472
30445
  Object.assign(Cl, pe(Cl, "UploadList"));
30473
30446
  Object.assign(Sl, pe(Sl, "UploadTrigger"));
30474
- const H3 = "0.35.9", G3 = function(e, t = {}) {
30447
+ const H3 = "0.36.0", G3 = function(e, t = {}) {
30475
30448
  const { cssInJs: n } = t;
30476
30449
  return e.config.globalProperties.$pantographCssInJs = n, import("@pantograph/tokens/style/index.css"), n || import("@pantograph/styles/index.css"), Object.values(SS).forEach((o) => {
30477
30450
  o.install && e.use(o);