adverich-kun-ui 0.1.171 → 0.1.172

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 x, watch as C, onMounted as f, onBeforeUnmount as S, onUnmounted as k, createBlock as u, openBlock as o, Teleport as P, createVNode as a, Transition as m, withCtx as n, createElementBlock as V, createCommentVNode as y, mergeProps as B, renderSlot as E } from "vue";
1
+ import { defineComponent as x, watch as C, onMounted as u, onBeforeUnmount as S, onUnmounted as k, createBlock as f, openBlock as l, Teleport as P, createVNode as a, Transition as m, withCtx as n, createElementBlock as V, createCommentVNode as y, mergeProps as B, renderSlot as E } from "vue";
2
2
  import $ from "./KunDialogOverlay.vue.js";
3
3
  import D from "./KunDialogContent.vue.js";
4
4
  const H = "fixed inset-0 z-250 flex", U = /* @__PURE__ */ x({
@@ -31,43 +31,43 @@ const H = "fixed inset-0 z-250 flex", U = /* @__PURE__ */ x({
31
31
  },
32
32
  emits: ["update:modelValue"],
33
33
  setup(e, { emit: g }) {
34
- const t = e, s = g, h = "justify-" + t.xPosition, p = "items-" + t.yPosition, w = t.yPosition === "top" ? "pt-15" : t.yPosition === "bottom" ? "pb-15" : "", b = [H, t.dialogClass, h, p, w], i = () => {
34
+ const t = e, s = g, h = "justify-" + t.xPosition, p = "items-" + t.yPosition, w = t.yPosition === "top" ? "pt-15" : t.yPosition === "bottom" ? "pb-15" : "", v = [H, t.dialogClass, h, p, w], i = () => {
35
35
  t.persistent || s("update:modelValue", !1);
36
- }, v = () => {
36
+ }, b = () => {
37
37
  i();
38
38
  }, r = () => {
39
39
  document.body.style.overflow = "hidden";
40
40
  }, c = () => {
41
41
  document.body.style.overflow = "";
42
42
  };
43
- C(() => t.modelValue, (l) => {
44
- l && !t.fullscreen ? r() : c();
45
- }), f(() => {
43
+ C(() => t.modelValue, (o) => {
44
+ o && !t.fullscreen ? r() : c();
45
+ }), u(() => {
46
46
  t.modelValue && !t.fullscreen && r();
47
47
  }), S(() => {
48
48
  c();
49
49
  });
50
- function d(l) {
51
- l.stopPropagation(), l.key === "Escape" && (t.persistent || s("update:modelValue", !1));
50
+ function d(o) {
51
+ console.log("ev capturado"), o.stopPropagation(), o.key === "Escape" && (console.log("es escape"), t.persistent || (console.log("no esta persistido tiene que cerraarrr"), s("update:modelValue", !1)));
52
52
  }
53
- return f(() => {
53
+ return u(() => {
54
54
  t.modelValue && window.addEventListener("keydown", d);
55
55
  }), k(() => {
56
56
  window.removeEventListener("keydown", d);
57
- }), (l, K) => (o(), u(P, { to: "body" }, [
57
+ }), (o, K) => (l(), f(P, { to: "body" }, [
58
58
  a(m, {
59
59
  name: "fade",
60
60
  appear: ""
61
61
  }, {
62
62
  default: n(() => [
63
- e.modelValue ? (o(), V("div", B({
63
+ e.modelValue ? (l(), V("div", B({
64
64
  key: 0,
65
- class: b
66
- }, l.$attrs), [
67
- e.overlay ? (o(), u($, {
65
+ class: v
66
+ }, o.$attrs), [
67
+ e.overlay ? (l(), f($, {
68
68
  key: 0,
69
69
  persistent: e.persistent,
70
- onClick: v
70
+ onClick: b
71
71
  }, null, 8, ["persistent"])) : y("", !0),
72
72
  a(m, {
73
73
  name: "scale",
@@ -91,7 +91,7 @@ const H = "fixed inset-0 z-250 flex", U = /* @__PURE__ */ x({
91
91
  onClose: i
92
92
  }, {
93
93
  default: n(() => [
94
- E(l.$slots, "default")
94
+ E(o.$slots, "default")
95
95
  ]),
96
96
  _: 3
97
97
  }, 8, ["fullscreen", "scrollable", "width", "max-width", "height", "max-height", "bg-color", "content-class"])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adverich-kun-ui",
3
- "version": "0.1.171",
3
+ "version": "0.1.172",
4
4
  "type": "module",
5
5
  "description": "Una librería de componentes Vue.js con Tailwind CSS",
6
6
  "main": "dist/index.js",