@3df-spa/ui 1.2.0 → 1.3.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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as y, ref as h, watch as b, onBeforeUnmount as _, provide as L, openBlock as P, createElementBlock as x, renderSlot as O, nextTick as g, inject as C, useAttrs as B, computed as T, createBlock as S, Teleport as A, mergeProps as F, unref as m, createCommentVNode as U, watchEffect as z, withKeys as $, withModifiers as k } from "vue";
1
+ import { defineComponent as y, ref as h, watch as b, onBeforeUnmount as _, provide as L, openBlock as P, createElementBlock as x, renderSlot as O, nextTick as g, inject as C, useAttrs as T, computed as B, createBlock as S, Teleport as A, mergeProps as F, unref as m, createCommentVNode as U, watchEffect as z, withKeys as $, withModifiers as k } from "vue";
2
2
  import { c as H } from "./utils-C9QoOYNG.js";
3
3
  const E = /* @__PURE__ */ Symbol("popover");
4
4
  let I = 0;
@@ -40,7 +40,9 @@ const Z = /* @__PURE__ */ y({
40
40
  n.value && !n.value.contains(d) && l.value && !l.value.contains(d) && a();
41
41
  }
42
42
  return b(i, (u) => {
43
- u ? document.addEventListener("click", f, !0) : document.removeEventListener("click", f, !0);
43
+ u ? setTimeout(() => {
44
+ document.addEventListener("click", f, !0);
45
+ }, 0) : document.removeEventListener("click", f, !0);
44
46
  }), _(() => {
45
47
  document.removeEventListener("click", f, !0);
46
48
  }), L(E, {
@@ -163,7 +165,7 @@ const G = ["aria-labelledby"], ee = /* @__PURE__ */ y({
163
165
  viewportPadding: { default: 8 }
164
166
  },
165
167
  setup(e) {
166
- const t = e, o = C(E), s = B(), i = T(() => {
168
+ const t = e, o = C(E), s = T(), i = B(() => {
167
169
  const { class: v, ...f } = s;
168
170
  return f;
169
171
  }), n = h(!1), l = h(!1);
@@ -209,7 +211,7 @@ const G = ["aria-labelledby"], ee = /* @__PURE__ */ y({
209
211
  class: m(H)(
210
212
  "z-50 w-72 max-w-[calc(100vw-1rem)]",
211
213
  "bg-popover text-popover-foreground",
212
- "border-ui border-border rounded-md p-4 shadow-lg",
214
+ "border border-border rounded-md p-4 shadow-lg",
213
215
  "transition-all duration-150",
214
216
  l.value ? "opacity-100 scale-100 ease-out" : "opacity-0 scale-[0.97] ease-in",
215
217
  m(s).class
package/dist/calendar.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as j, useAttrs as E, computed as w, ref as A, watch as H, openBlock as f, createElementBlock as h, mergeProps as B, unref as p, createElementVNode as a, normalizeClass as U, Fragment as P, renderList as R, createCommentVNode as $, toDisplayString as S, createBlock as _, withCtx as y, createVNode as k } from "vue";
2
2
  import { startOfWeek as T, format as x, addDays as W, addMonths as F, startOfMonth as J, eachDayOfInterval as I, endOfMonth as K, endOfWeek as Q, isToday as X, isSameMonth as Y, isSameDay as V, subMonths as Z } from "date-fns";
3
3
  import { c as C } from "./utils-C9QoOYNG.js";
4
- import { _ as N, a as z, b as L } from "./UiPopoverTrigger.vue_vue_type_script_setup_true_lang-DKJgwMAw.js";
4
+ import { _ as N, a as z, b as L } from "./UiPopoverTrigger.vue_vue_type_script_setup_true_lang-Ci8kd-fi.js";
5
5
  function ee(t, n, e) {
6
6
  if (n) {
7
7
  if (t === "single" && n instanceof Date) return n;