@wikicasa-dev/components 2.4.1-alpha.0 → 2.4.1-alpha.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,5 +1,5 @@
1
1
  import { Autoplay as t } from "swiper/modules";
2
- import '../assets/swiper-keyboard.css';/* empty css */
2
+ import '../assets/swiper-autoplay.css';/* empty css */
3
3
  export {
4
4
  t as Autoplay
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Controller as e } from "swiper/modules";
2
- import '../assets/swiper-keyboard.css';/* empty css */
2
+ import '../assets/swiper-autoplay.css';/* empty css */
3
3
  export {
4
4
  e as Controller
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Keyboard as m } from "swiper/modules";
2
- import '../assets/swiper-keyboard.css';/* empty css */
2
+ import '../assets/swiper-autoplay.css';/* empty css */
3
3
  export {
4
4
  m as Keyboard
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Thumbs as p } from "swiper/modules";
2
- import '../assets/swiper-keyboard.css';/* empty css */
2
+ import '../assets/swiper-autoplay.css';/* empty css */
3
3
  export {
4
4
  p as Thumbs
5
5
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as T, shallowRef as v, useTemplateRef as h, onUnmounted as $, watch as D, createBlock as H, openBlock as r, Teleport as O, createVNode as y, Transition as F, withCtx as K, withDirectives as N, createElementVNode as l, normalizeClass as i, createElementBlock as C, createCommentVNode as w, renderSlot as d, withModifiers as S, unref as V, vShow as A } from "vue";
2
- import { CloseIcon as P } from "@wikicasa-dev/svg-icons";
3
- const R = ["id", "data-cy"], U = ["innerHTML"], G = /* @__PURE__ */ T({
1
+ import { defineComponent as T, shallowRef as v, useTemplateRef as h, onUnmounted as D, watch as $, createBlock as H, openBlock as r, Teleport as O, createVNode as y, Transition as F, withCtx as K, withDirectives as N, createElementVNode as l, normalizeClass as i, createElementBlock as C, createCommentVNode as w, renderSlot as d, withModifiers as S, unref as U, vShow as V } from "vue";
2
+ import { CloseIcon as A } from "@wikicasa-dev/svg-icons";
3
+ const P = ["id", "data-cy"], R = ["innerHTML"], q = /* @__PURE__ */ T({
4
4
  __name: "BaseModal",
5
5
  props: {
6
6
  id: { default: "base-bt-modal" },
@@ -31,7 +31,7 @@ const R = ["id", "data-cy"], U = ["innerHTML"], G = /* @__PURE__ */ T({
31
31
  }, f = () => {
32
32
  document?.body.removeEventListener("keydown", m);
33
33
  }, p = () => {
34
- g(), document?.body.classList.add(
34
+ console.log("DEBUG:onBeforeEnter called"), g(), document?.body.classList.add(
35
35
  "sm:uikit-pr-15px",
36
36
  "sm:uikit-mr-0",
37
37
  "uikit-overflow-hidden"
@@ -61,13 +61,13 @@ const R = ["id", "data-cy"], U = ["innerHTML"], G = /* @__PURE__ */ T({
61
61
  s();
62
62
  }
63
63
  };
64
- $(() => {
64
+ D(() => {
65
65
  f(), document?.body.classList.remove(
66
66
  "sm:uikit-pr-15px",
67
67
  "sm:uikit-mr-0",
68
68
  "uikit-overflow-hidden"
69
69
  );
70
- }), D(
70
+ }), $(
71
71
  () => t.showModal,
72
72
  async (e) => {
73
73
  o.value = e;
@@ -79,7 +79,7 @@ const R = ["id", "data-cy"], U = ["innerHTML"], G = /* @__PURE__ */ T({
79
79
  };
80
80
  return (e, n) => (r(), H(O, { to: "body" }, [
81
81
  y(F, {
82
- appear: "",
82
+ appear: o.value,
83
83
  name: "modal-transition",
84
84
  duration: { enter: 500, leave: 250 },
85
85
  onBeforeEnter: p,
@@ -130,7 +130,7 @@ const R = ["id", "data-cy"], U = ["innerHTML"], G = /* @__PURE__ */ T({
130
130
  "aria-label": "Close",
131
131
  onClick: n[0] || (n[0] = S((b) => o.value = !1, ["prevent", "stop"]))
132
132
  }, [
133
- y(V(P), {
133
+ y(U(A), {
134
134
  class: i(["bbt-close-icon uikit-box-border", t.closeIcon?.classes]),
135
135
  width: t.closeIcon?.size || 20,
136
136
  height: t.closeIcon?.size || 20
@@ -140,7 +140,7 @@ const R = ["id", "data-cy"], U = ["innerHTML"], G = /* @__PURE__ */ T({
140
140
  l("span", {
141
141
  class: i(["uikit-w-auto uikit-text-18 uikit-font-semibold sm:uikit-text-22", t.titleClasses]),
142
142
  innerHTML: t.headerTitle
143
- }, null, 10, U)
143
+ }, null, 10, R)
144
144
  ])
145
145
  ], 2),
146
146
  l("div", {
@@ -155,16 +155,16 @@ const R = ["id", "data-cy"], U = ["innerHTML"], G = /* @__PURE__ */ T({
155
155
  d(e.$slots, "footer", { closeModal: s })
156
156
  ], 2)) : w("", !0),
157
157
  d(e.$slots, "fixed-bottom")
158
- ], 42, R)
158
+ ], 42, P)
159
159
  ], 34), [
160
- [A, o.value]
160
+ [V, o.value]
161
161
  ])
162
162
  ]),
163
163
  _: 3
164
- })
164
+ }, 8, ["appear"])
165
165
  ]));
166
166
  }
167
167
  });
168
168
  export {
169
- G as default
169
+ q as default
170
170
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.4.1-alpha.0",
3
+ "version": "2.4.1-alpha.1",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",