vlite3 1.4.22 → 1.4.24

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 (27) hide show
  1. package/components/Cart/Cart.vue.js +53 -49
  2. package/components/Cart/CartCouponInput.vue.d.ts +1 -0
  3. package/components/Cart/CartCouponInput.vue.js +36 -33
  4. package/components/Cart/CartLineItem.vue.d.ts +1 -0
  5. package/components/Cart/CartLineItem.vue.js +121 -113
  6. package/components/Cart/CartSummary.vue.d.ts +1 -0
  7. package/components/Cart/CartSummary.vue.js +59 -51
  8. package/components/Cart/CartVariant1.vue.js +66 -63
  9. package/components/Cart/CartVariant2.vue.js +50 -47
  10. package/components/Cart/CartVariant3.vue.js +61 -58
  11. package/components/Cart/CartVariant4.vue.js +72 -68
  12. package/components/CategoryManager/CategoryManager.vue2.js +3 -3
  13. package/components/ColorPicker/ColorIro.vue3.js +2 -2
  14. package/components/ColorPicker/ColorPicker.vue.js +2 -2
  15. package/components/CommandPalette/CommandPaletteContent.vue2.js +1 -1
  16. package/components/CommandPalette/{CommandPaletteItem.vue.js → CommandPaletteItem.vue2.js} +1 -1
  17. package/components/NavbarCommandPalette.vue.js +1 -1
  18. package/components/Price/Price.vue.js +2 -2
  19. package/components/RichTextEditor/RichTextEditor.vue.js +4 -4
  20. package/components/RichTextEditor/RichTextLinkPopover.vue3.js +2 -2
  21. package/components/RichTextEditor/RichTextToolbar.vue3.js +2 -2
  22. package/components/Screen/ScreenFilter.vue.js +3 -3
  23. package/components/Skeleton/Skeleton.vue.js +53 -53
  24. package/package.json +1 -1
  25. /package/components/ColorPicker/{ColorIro.vue2.js → ColorIro.vue.js} +0 -0
  26. /package/components/RichTextEditor/{RichTextLinkPopover.vue2.js → RichTextLinkPopover.vue.js} +0 -0
  27. /package/components/RichTextEditor/{RichTextToolbar.vue2.js → RichTextToolbar.vue.js} +0 -0
@@ -1,8 +1,8 @@
1
- import { defineComponent as ue, ref as c, shallowRef as de, computed as a, watch as ce, nextTick as ve, onMounted as me, onUnmounted as fe, openBlock as l, createElementBlock as v, normalizeClass as ye, createElementVNode as H, normalizeStyle as k, renderSlot as M, createCommentVNode as m, Fragment as pe, renderList as ge, isMemoSame as he, setBlockTracking as f, createBlock as L, resolveDynamicComponent as N, withCtx as D, createTextVNode as P, toDisplayString as $, unref as z } from "vue";
1
+ import { defineComponent as ue, ref as c, shallowRef as de, computed as a, watch as ce, nextTick as ve, onMounted as fe, onUnmounted as me, openBlock as r, createElementBlock as v, normalizeClass as ye, createElementVNode as H, normalizeStyle as k, renderSlot as A, createCommentVNode as f, Fragment as pe, renderList as ge, isMemoSame as he, setBlockTracking as m, createBlock as L, resolveDynamicComponent as N, withCtx as D, createTextVNode as P, toDisplayString as w, unref as z } from "vue";
2
2
  import { normalizeBone as J } from "./types.js";
3
- import { getRegisteredBones as be, resolveResponsive as ke, getGlobalConfig as $e } from "./shared.js";
4
- import { snapshotBones as we } from "./extract.js";
5
- const Be = ["data-boneyard"], Re = { style: { position: "relative", width: "100%", height: "100%" } }, Ce = "rgba(0, 0, 0, 0.03)", Ee = "rgba(255, 255, 255, 0.05)", Se = 0.4, xe = 1, Me = 1, Ae = 0.1, Q = "0, 0, 0", Z = "255, 255, 255", ee = "0.04", te = "0", He = /* @__PURE__ */ ue({
3
+ import { getRegisteredBones as be, resolveResponsive as ke, getGlobalConfig as we } from "./shared.js";
4
+ import { snapshotBones as $e } from "./extract.js";
5
+ const Be = ["data-boneyard"], Re = { style: { position: "relative", width: "100%", height: "100%" } }, Ce = "rgba(0, 0, 0, 0.03)", Ee = "rgba(255, 255, 255, 0.05)", Se = 0.4, xe = 1, Ae = 1, Me = 0.1, Q = "0, 0, 0", Z = "255, 255, 255", ee = "0.04", te = "0", He = /* @__PURE__ */ ue({
6
6
  __name: "Skeleton",
7
7
  props: {
8
8
  loading: { type: Boolean },
@@ -17,18 +17,18 @@ const Be = ["data-boneyard"], Re = { style: { position: "relative", width: "100%
17
17
  class: {},
18
18
  snapshotConfig: {}
19
19
  },
20
- setup(w) {
21
- const n = w, s = c(null), A = c(null), y = c(0), B = c(0), p = c(!1), u = Math.random().toString(36).slice(2, 8), O = de(null), g = $e(), ne = a(() => n.animate ?? g.animate ?? "pulse"), h = a(() => {
20
+ setup($) {
21
+ const n = $, s = c(null), M = c(null), y = c(0), B = c(0), p = c(!1), u = Math.random().toString(36).slice(2, 8), O = de(null), g = we(), ne = a(() => n.animate ?? g.animate ?? "pulse"), h = a(() => {
22
22
  const e = ne.value;
23
23
  return e === !0 ? "pulse" : e === !1 ? "solid" : e;
24
- }), G = a(
24
+ }), F = a(
25
25
  () => p.value ? n.darkColor ?? g.darkColor ?? Ee : n.color ?? g.color ?? Ce
26
- ), Y = a(
26
+ ), G = a(
27
27
  () => O.value ?? n.initialBones ?? (n.name ? be(n.name) : void 0)
28
- ), F = a(
28
+ ), Y = a(
29
29
  () => typeof window < "u" ? window.innerWidth : y.value
30
- ), r = a(
31
- () => Y.value && (F.value > 0 || y.value > 0) ? ke(Y.value, F.value || y.value) : null
30
+ ), l = a(
31
+ () => G.value && (Y.value > 0 || y.value > 0) ? ke(G.value, Y.value || y.value) : null
32
32
  ), b = a(() => {
33
33
  const e = n.stagger ?? g.stagger;
34
34
  return e === !0 ? 80 : e === !1 || !e ? 0 : e;
@@ -40,24 +40,24 @@ const Be = ["data-boneyard"], Re = { style: { position: "relative", width: "100%
40
40
  ce(
41
41
  () => n.loading,
42
42
  (e, t) => {
43
- t && !e && R.value > 0 && r.value && (C && clearTimeout(C), d.value = !0, C = setTimeout(() => {
43
+ t && !e && R.value > 0 && l.value && (C && clearTimeout(C), d.value = !0, C = setTimeout(() => {
44
44
  d.value = !1, C = null;
45
45
  }, R.value)), e && n.auto && ae();
46
46
  },
47
47
  { immediate: !0 }
48
48
  );
49
- const K = a(() => (n.loading || d.value) && !!r.value), oe = a(
50
- () => n.loading && !r.value && !d.value && !n.auto
51
- ), W = a(
52
- () => B.value > 0 ? B.value : r.value?.height ?? 0
53
- ), q = a(() => r.value?.height ?? 0), U = a(
54
- () => W.value > 0 && q.value > 0 ? W.value / q.value : 1
49
+ const q = a(() => (n.loading || d.value) && !!l.value), oe = a(
50
+ () => n.loading && !l.value && !d.value && !n.auto
51
+ ), K = a(
52
+ () => B.value > 0 ? B.value : l.value?.height ?? 0
53
+ ), W = a(() => l.value?.height ?? 0), U = a(
54
+ () => K.value > 0 && W.value > 0 ? K.value / W.value : 1
55
55
  );
56
56
  function ae() {
57
- ve(() => {
58
- requestAnimationFrame(() => {
59
- A.value && (O.value = we(
60
- A.value,
57
+ typeof window > "u" || typeof window.requestAnimationFrame != "function" || ve(() => {
58
+ window.requestAnimationFrame(() => {
59
+ M.value && (O.value = $e(
60
+ M.value,
61
61
  n.name || "auto-skeleton",
62
62
  n.snapshotConfig
63
63
  ));
@@ -77,7 +77,7 @@ const Be = ["data-boneyard"], Re = { style: { position: "relative", width: "100%
77
77
  e
78
78
  ) ? e : "0px";
79
79
  }
80
- function le(e, t, o) {
80
+ function re(e, t, o) {
81
81
  const i = J(e), V = ie(i.r);
82
82
  return {
83
83
  position: "absolute",
@@ -92,7 +92,7 @@ const Be = ["data-boneyard"], Re = { style: { position: "relative", width: "100%
92
92
  animation: b.value > 0 ? `by-${u} 0.3s ease-out ${o * b.value}ms forwards` : "none"
93
93
  };
94
94
  }
95
- function re(e, t) {
95
+ function le(e, t) {
96
96
  const o = J(e);
97
97
  return {
98
98
  width: "100%",
@@ -123,7 +123,7 @@ const Be = ["data-boneyard"], Re = { style: { position: "relative", width: "100%
123
123
  return {};
124
124
  }
125
125
  let I = null, T = null, E = null, S = null;
126
- return me(() => {
126
+ return fe(() => {
127
127
  if (_(), s.value) {
128
128
  const e = s.value.getBoundingClientRect();
129
129
  y.value = Math.round(e.width), e.height > 0 && (B.value = Math.round(e.height));
@@ -135,78 +135,78 @@ const Be = ["data-boneyard"], Re = { style: { position: "relative", width: "100%
135
135
  const t = e[0]?.contentRect;
136
136
  y.value = Math.round(t?.width ?? 0), t && t.height > 0 && (B.value = Math.round(t.height));
137
137
  }), s.value && I.observe(s.value);
138
- }), fe(() => {
138
+ }), me(() => {
139
139
  S && E && S.removeEventListener("change", E), T?.disconnect(), I?.disconnect();
140
- }), (e, t) => (l(), v("div", {
140
+ }), (e, t) => (r(), v("div", {
141
141
  ref_key: "containerRef",
142
142
  ref: s,
143
143
  class: ye(n.class),
144
144
  style: { position: "relative" },
145
- "data-boneyard": w.name
145
+ "data-boneyard": $.name
146
146
  }, [
147
147
  H("div", {
148
148
  "data-boneyard-content": "true",
149
- style: k({ visibility: K.value && !d.value ? "hidden" : void 0 })
149
+ style: k({ visibility: q.value && !d.value ? "hidden" : void 0 })
150
150
  }, [
151
- oe.value ? M(e.$slots, "fallback", { key: 0 }) : M(e.$slots, "default", { key: 1 })
151
+ oe.value ? A(e.$slots, "fallback", { key: 0 }) : A(e.$slots, "default", { key: 1 })
152
152
  ], 4),
153
- w.loading && w.auto && !O.value ? (l(), v("div", {
153
+ $.loading && $.auto && !O.value ? (r(), v("div", {
154
154
  key: 0,
155
155
  "data-boneyard-fixture": "",
156
156
  ref_key: "fixtureRef",
157
- ref: A,
157
+ ref: M,
158
158
  style: { position: "absolute", inset: "0", "z-index": "-1", opacity: "0.001", "pointer-events": "none" },
159
159
  "aria-hidden": "true"
160
160
  }, [
161
- M(e.$slots, "fixture", {}, () => [
162
- M(e.$slots, "default")
161
+ A(e.$slots, "fixture", {}, () => [
162
+ A(e.$slots, "default")
163
163
  ])
164
- ], 512)) : m("", !0),
165
- K.value && r.value ? (l(), v("div", {
164
+ ], 512)) : f("", !0),
165
+ q.value && l.value ? (r(), v("div", {
166
166
  key: 1,
167
167
  "data-boneyard-overlay": "true",
168
168
  style: k(`position:absolute;inset:0;overflow:hidden;opacity:${d.value ? 0 : 1};${R.value > 0 ? `transition:opacity ${R.value}ms ease-out;` : ""}pointer-events:none;will-change:opacity;contain:strict;`)
169
169
  }, [
170
170
  H("div", Re, [
171
- (l(!0), v(pe, null, ge(r.value.bones, (o, i, V, x) => {
172
- const X = [o, U.value, G.value, h.value, p.value, b.value];
171
+ (r(!0), v(pe, null, ge(l.value.bones, (o, i, V, x) => {
172
+ const X = [o, U.value, F.value, h.value, p.value, b.value];
173
173
  if (x && x.key === `${i}-${o.x ?? o[0]}` && he(x, X)) return x;
174
- const j = (l(), v("div", {
174
+ const j = (r(), v("div", {
175
175
  key: `${i}-${o.x ?? o[0]}`,
176
176
  "data-boneyard-bone": "true",
177
- style: k(le(o, U.value, i))
177
+ style: k(re(o, U.value, i))
178
178
  }, [
179
179
  H("div", {
180
- style: k(re(o, G.value))
180
+ style: k(le(o, F.value))
181
181
  }, [
182
- h.value !== "solid" ? (l(), v("div", {
182
+ h.value !== "solid" ? (r(), v("div", {
183
183
  key: 0,
184
184
  style: k(se(p.value, h.value))
185
- }, null, 4)) : m("", !0)
185
+ }, null, 4)) : f("", !0)
186
186
  ], 4)
187
187
  ], 4));
188
188
  return j.memo = X, j;
189
189
  }, t, 0), 128)),
190
- t[2] || (f(-1, !0), (t[2] = h.value === "pulse" ? (l(), L(N("style"), { key: 0 }, {
190
+ t[2] || (m(-1, !0), (t[2] = h.value === "pulse" ? (r(), L(N("style"), { key: 0 }, {
191
191
  default: D(() => [
192
- P(" @keyframes bp-" + $(z(u)) + " { 0%, 100% { opacity: " + $(Ae) + "; } 50% { opacity: " + $(Me) + "; } } ", 1)
192
+ P(" @keyframes bp-" + w(z(u)) + " { 0%, 100% { opacity: " + w(Me) + "; } 50% { opacity: " + w(Ae) + "; } } ", 1)
193
193
  ]),
194
194
  _: 1
195
- })) : m("", !0)).cacheIndex = 2, f(1), t[2]),
196
- t[3] || (f(-1, !0), (t[3] = h.value === "shimmer" ? (l(), L(N("style"), { key: 1 }, {
195
+ })) : f("", !0)).cacheIndex = 2, m(1), t[2]),
196
+ t[3] || (m(-1, !0), (t[3] = h.value === "shimmer" ? (r(), L(N("style"), { key: 1 }, {
197
197
  default: D(() => [
198
- P(" @keyframes bs-" + $(z(u)) + " { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } ", 1)
198
+ P(" @keyframes bs-" + w(z(u)) + " { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } ", 1)
199
199
  ]),
200
200
  _: 1
201
- })) : m("", !0)).cacheIndex = 3, f(1), t[3]),
202
- t[4] || (f(-1, !0), (t[4] = b.value > 0 ? (l(), L(N("style"), { key: 2 }, {
201
+ })) : f("", !0)).cacheIndex = 3, m(1), t[3]),
202
+ t[4] || (m(-1, !0), (t[4] = b.value > 0 ? (r(), L(N("style"), { key: 2 }, {
203
203
  default: D(() => [
204
- P(" @keyframes by-" + $(z(u)) + " { from { opacity: 0; } to { opacity: 1; } } ", 1)
204
+ P(" @keyframes by-" + w(z(u)) + " { from { opacity: 0; } to { opacity: 1; } } ", 1)
205
205
  ]),
206
206
  _: 1
207
- })) : m("", !0)).cacheIndex = 4, f(1), t[4])
207
+ })) : f("", !0)).cacheIndex = 4, m(1), t[4])
208
208
  ])
209
- ], 4)) : m("", !0)
209
+ ], 4)) : f("", !0)
210
210
  ], 10, Be));
211
211
  }
212
212
  });
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "private": false,
4
4
  "description": "A Vue 3 UI component library built with Tailwind CSS.",
5
5
  "license": "MIT",
6
- "version": "1.4.22",
6
+ "version": "1.4.24",
7
7
  "type": "module",
8
8
  "main": "index.js",
9
9
  "module": "index.js",