adverich-kun-ui 0.1.259 → 0.1.261

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,7 +1,7 @@
1
- import { defineComponent as C, watch as x, onMounted as u, onBeforeUnmount as S, onUnmounted as k, createBlock as f, openBlock as o, Teleport as B, createVNode as a, Transition as m, withCtx as n, createElementBlock as P, createCommentVNode as y, mergeProps as V, renderSlot as E } from "vue";
1
+ import { defineComponent as C, watch as x, onMounted as u, onBeforeUnmount as S, onUnmounted as k, createBlock as f, openBlock as a, resolveDynamicComponent as B, Teleport as P, withCtx as o, createVNode as n, Transition as m, createElementBlock as V, createCommentVNode as y, mergeProps as D, renderSlot as E } from "vue";
2
2
  import W from "./KunDialogOverlay.vue.js";
3
3
  import $ from "./KunDialogContent.vue.js";
4
- const D = "fixed inset-0 z-250 flex", N = /* @__PURE__ */ C({
4
+ const H = "fixed inset-0 z-250 flex", U = /* @__PURE__ */ C({
5
5
  __name: "KunDialog",
6
6
  props: {
7
7
  modelValue: Boolean,
@@ -33,7 +33,7 @@ const D = "fixed inset-0 z-250 flex", N = /* @__PURE__ */ C({
33
33
  },
34
34
  emits: ["update:modelValue"],
35
35
  setup(e, { emit: h }) {
36
- const t = e, i = h, g = "justify-" + t.xPosition, p = "items-" + t.yPosition, w = t.yPosition === "top" ? "pt-15" : t.yPosition === "bottom" ? "pb-15" : "", v = [D, t.dialogClass, g, p, w], s = () => {
36
+ const t = e, i = h, g = "justify-" + t.xPosition, p = "items-" + t.yPosition, w = t.yPosition === "top" ? "pt-15" : t.yPosition === "bottom" ? "pb-15" : "", v = [H, t.dialogClass, g, p, w], s = () => {
37
37
  t.persistent || i("update:modelValue", !1);
38
38
  }, b = () => {
39
39
  s();
@@ -56,61 +56,63 @@ const D = "fixed inset-0 z-250 flex", N = /* @__PURE__ */ C({
56
56
  window.addEventListener("keydown", c);
57
57
  }), k(() => {
58
58
  window.removeEventListener("keydown", c);
59
- }), (l, T) => (o(), f(B, {
60
- is: e.teleport ? l.Teleport : "div",
59
+ }), (l, K) => (a(), f(B(e.teleport ? P : "div"), {
61
60
  to: e.teleport ? "body" : void 0
62
- }, [
63
- a(m, {
64
- name: "fade",
65
- appear: ""
66
- }, {
67
- default: n(() => [
68
- e.modelValue ? (o(), P("div", V({
69
- key: 0,
70
- class: v
71
- }, l.$attrs), [
72
- e.overlay ? (o(), f(W, {
61
+ }, {
62
+ default: o(() => [
63
+ n(m, {
64
+ name: "fade",
65
+ appear: ""
66
+ }, {
67
+ default: o(() => [
68
+ e.modelValue ? (a(), V("div", D({
73
69
  key: 0,
74
- persistent: e.persistent,
75
- onClick: b
76
- }, null, 8, ["persistent"])) : y("", !0),
77
- a(m, {
78
- name: "scale",
79
- "enter-active-class": "transition transform ease-out duration-300",
80
- "enter-from-class": "opacity-0 scale-95",
81
- "enter-to-class": "opacity-100 scale-100",
82
- "leave-active-class": "transition transform ease-in duration-200",
83
- "leave-from-class": "opacity-100 scale-100",
84
- "leave-to-class": "opacity-0 scale-95"
85
- }, {
86
- default: n(() => [
87
- a($, {
88
- fullscreen: e.fullscreen,
89
- scrollable: e.scrollable,
90
- "min-width": e.minWidth,
91
- width: e.width,
92
- "max-width": e.maxWidth,
93
- height: e.height,
94
- "max-height": e.maxHeigh,
95
- "bg-color": e.bgColor,
96
- "content-class": e.contentClass,
97
- onClose: s
98
- }, {
99
- default: n(() => [
100
- E(l.$slots, "default")
101
- ]),
102
- _: 3
103
- }, 8, ["fullscreen", "scrollable", "min-width", "width", "max-width", "height", "max-height", "bg-color", "content-class"])
104
- ]),
105
- _: 3
106
- })
107
- ], 16)) : y("", !0)
108
- ]),
109
- _: 3
110
- })
111
- ], 8, ["is", "to"]));
70
+ class: v
71
+ }, l.$attrs), [
72
+ e.overlay ? (a(), f(W, {
73
+ key: 0,
74
+ persistent: e.persistent,
75
+ onClick: b
76
+ }, null, 8, ["persistent"])) : y("", !0),
77
+ n(m, {
78
+ name: "scale",
79
+ "enter-active-class": "transition transform ease-out duration-300",
80
+ "enter-from-class": "opacity-0 scale-95",
81
+ "enter-to-class": "opacity-100 scale-100",
82
+ "leave-active-class": "transition transform ease-in duration-200",
83
+ "leave-from-class": "opacity-100 scale-100",
84
+ "leave-to-class": "opacity-0 scale-95"
85
+ }, {
86
+ default: o(() => [
87
+ n($, {
88
+ fullscreen: e.fullscreen,
89
+ scrollable: e.scrollable,
90
+ "min-width": e.minWidth,
91
+ width: e.width,
92
+ "max-width": e.maxWidth,
93
+ height: e.height,
94
+ "max-height": e.maxHeigh,
95
+ "bg-color": e.bgColor,
96
+ "content-class": e.contentClass,
97
+ onClose: s
98
+ }, {
99
+ default: o(() => [
100
+ E(l.$slots, "default")
101
+ ]),
102
+ _: 3
103
+ }, 8, ["fullscreen", "scrollable", "min-width", "width", "max-width", "height", "max-height", "bg-color", "content-class"])
104
+ ]),
105
+ _: 3
106
+ })
107
+ ], 16)) : y("", !0)
108
+ ]),
109
+ _: 3
110
+ })
111
+ ]),
112
+ _: 3
113
+ }, 8, ["to"]));
112
114
  }
113
115
  });
114
116
  export {
115
- N as default
117
+ U as default
116
118
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adverich-kun-ui",
3
- "version": "0.1.259",
3
+ "version": "0.1.261",
4
4
  "type": "module",
5
5
  "description": "Una librería de componentes Vue.js con Tailwind CSS",
6
6
  "main": "dist/index.js",