@wikicasa-dev/components 1.4.0 → 1.4.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.
package/dist/BaseModal.js CHANGED
@@ -5,7 +5,7 @@ import { _ as M } from "./chunks/BaseButton.vue_vue_type_script_setup_true_lang.
5
5
  import { l as v } from "./chunks/CloseIcon.DiRdm5zi.js";
6
6
  import { useBreakpoints as g } from "./useBreakpoints.js";
7
7
  import { _ as x } from "./chunks/_plugin-vue_export-helper.CHgC5LLL.js";
8
- const B = (t, i) => new Promise((s, l) => {
8
+ const $ = (t, i) => new Promise((s, l) => {
9
9
  setTimeout(() => {
10
10
  try {
11
11
  t && t(), s();
@@ -13,14 +13,14 @@ const B = (t, i) => new Promise((s, l) => {
13
13
  l();
14
14
  }
15
15
  }, i);
16
- }), E = [
16
+ }), B = [
17
17
  "modal-sm",
18
18
  "modal-md",
19
19
  "modal-lg",
20
20
  "modal-xl",
21
21
  "modal-xxl",
22
22
  "modal-desktop"
23
- ], $ = b({
23
+ ], E = b({
24
24
  components: { BaseButton: M, CloseIcon: v },
25
25
  props: {
26
26
  id: { type: String, default: "base-bt-modal" },
@@ -87,8 +87,8 @@ const B = (t, i) => new Promise((s, l) => {
87
87
  t?.classList.add("uikit-flex", "colored-backdrop");
88
88
  let s = this.customModalDialogClasses || "";
89
89
  s += ` ${this.size}`;
90
- const l = s.split(" ").find((u) => E.includes(u));
91
- i?.classList.add("show", `base-${l}`), this.autoClose !== void 0 && setTimeout(() => {
90
+ const l = s.split(" ").find((u) => B.includes(u));
91
+ i?.classList.add("show", `base-${l}`), this.$emit("opened"), this.autoClose !== void 0 && setTimeout(() => {
92
92
  this.closeModal();
93
93
  }, this.autoClose);
94
94
  },
@@ -98,7 +98,7 @@ const B = (t, i) => new Promise((s, l) => {
98
98
  },
99
99
  /** Closes the modal with a transition */
100
100
  async closeModal() {
101
- this.backdropEl.classList.remove("colored-backdrop"), this.backdropEl.classList.add("uikit-flex", "uikit-bg-transparent"), this.modalEl.classList.remove("show"), this.modalEl.classList.add("closed", "uikit-overflow-hidden"), document && document.body.classList.remove("no-scrolling"), await B(() => {
101
+ this.backdropEl.classList.remove("colored-backdrop"), this.backdropEl.classList.add("uikit-flex", "uikit-bg-transparent"), this.modalEl.classList.remove("show"), this.modalEl.classList.add("closed", "uikit-overflow-hidden"), document && document.body.classList.remove("no-scrolling"), await $(() => {
102
102
  this.$emit("closed");
103
103
  }, 250);
104
104
  },
@@ -182,7 +182,7 @@ function O(t, i, s, l, u, H) {
182
182
  ], 2)
183
183
  ]);
184
184
  }
185
- const V = /* @__PURE__ */ x($, [["render", O], ["__scopeId", "data-v-68392dc5"]]);
185
+ const V = /* @__PURE__ */ x(E, [["render", O], ["__scopeId", "data-v-3f7206dc"]]);
186
186
  export {
187
187
  V as default
188
188
  };
@@ -1 +1 @@
1
- .custom-modal[data-v-68392dc5]{--modal-max-height: 690px;--modal-width-sm: 496px;--modal-width-md: 592px;--modal-width-lg: 670px;--modal-max-width: var(--modal-width-sm);max-width:var(--modal-max-width)}.base-modal-md[data-v-68392dc5]{--modal-max-width: var(--modal-width-md)}.base-modal-lg[data-v-68392dc5]{--modal-max-width: var(--modal-width-lg)}.base-modal-sm[data-v-68392dc5],.base-modal-md[data-v-68392dc5],.base-modal-lg[data-v-68392dc5]{max-height:var(--modal-max-height)}@media not all and (min-width: 576px){.base-modal-sm[data-v-68392dc5],.base-modal-md[data-v-68392dc5],.base-modal-lg[data-v-68392dc5]{max-height:none;max-width:none}}@media screen and (max-width: 576px){.base-modal-sm[data-v-68392dc5],.base-modal-md[data-v-68392dc5],.base-modal-lg[data-v-68392dc5]{width:100%!important}}.base-modal-xxl[data-v-68392dc5]{max-width:1500px}.base-modal-full[data-v-68392dc5]{width:100%}.default-header[data-v-68392dc5]{justify-content:space-between;padding-top:25px}.colored-backdrop[data-v-68392dc5]{animation:backdrop-opacity-68392dc5 .3s ease-out 0s backwards;background-color:#b4c2f0b3}.custom-modal[data-v-68392dc5]{will-change:transform}@media (min-width: 576px){.custom-modal.show.transition-y[data-v-68392dc5]{animation:slide-down-68392dc5 .5s ease-out 0s backwards}}@media not all and (min-width: 576px){.custom-modal.show .uikit-modal-content.transition-y[data-v-68392dc5]{animation:slide-up-68392dc5 .5s ease-out 0s backwards}}.custom-modal.closed[data-v-68392dc5]{overflow-y:hidden!important}@media (min-width: 576px){.custom-modal.closed.transition-y[data-v-68392dc5]{animation:slide-down-back-68392dc5 .25s both}}@media not all and (min-width: 576px){.custom-modal.closed .uikit-modal-content.transition-y[data-v-68392dc5]{animation:slide-up-back-68392dc5 .25s both}}[data-v-68392dc5] #close-icon-btn{position:absolute;right:15px;top:15px}@media not all and (min-width: 576px){.full-height-mobile[data-v-68392dc5]{height:95%;max-height:none}}@keyframes slide-up-68392dc5{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slide-up-back-68392dc5{0%{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes slide-down-68392dc5{0%{transform:translateY(-110%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes slide-down-back-68392dc5{0%{transform:translateY(0)}to{transform:translateY(-110%)}}@keyframes backdrop-opacity-68392dc5{0%{opacity:0}to{opacity:1}}
1
+ .custom-modal[data-v-3f7206dc]{--modal-max-height: 690px;--modal-width-sm: 496px;--modal-width-md: 592px;--modal-width-lg: 670px;--modal-max-width: var(--modal-width-sm);max-width:var(--modal-max-width)}.base-modal-md[data-v-3f7206dc]{--modal-max-width: var(--modal-width-md)}.base-modal-lg[data-v-3f7206dc]{--modal-max-width: var(--modal-width-lg)}.base-modal-sm[data-v-3f7206dc],.base-modal-md[data-v-3f7206dc],.base-modal-lg[data-v-3f7206dc]{max-height:var(--modal-max-height)}@media not all and (min-width: 576px){.base-modal-sm[data-v-3f7206dc],.base-modal-md[data-v-3f7206dc],.base-modal-lg[data-v-3f7206dc]{max-height:none;max-width:none}}@media screen and (max-width: 576px){.base-modal-sm[data-v-3f7206dc],.base-modal-md[data-v-3f7206dc],.base-modal-lg[data-v-3f7206dc]{width:100%!important}}.base-modal-xxl[data-v-3f7206dc]{max-width:1500px}.base-modal-full[data-v-3f7206dc]{width:100%}.default-header[data-v-3f7206dc]{justify-content:space-between;padding-top:25px}.colored-backdrop[data-v-3f7206dc]{animation:backdrop-opacity-3f7206dc .3s ease-out 0s backwards;background-color:#b4c2f0b3}.custom-modal[data-v-3f7206dc]{will-change:transform}@media (min-width: 576px){.custom-modal.show.transition-y[data-v-3f7206dc]{animation:slide-down-3f7206dc .5s ease-out 0s backwards}}@media not all and (min-width: 576px){.custom-modal.show .uikit-modal-content.transition-y[data-v-3f7206dc]{animation:slide-up-3f7206dc .5s ease-out 0s backwards}}.custom-modal.closed[data-v-3f7206dc]{overflow-y:hidden!important}@media (min-width: 576px){.custom-modal.closed.transition-y[data-v-3f7206dc]{animation:slide-down-back-3f7206dc .25s both}}@media not all and (min-width: 576px){.custom-modal.closed .uikit-modal-content.transition-y[data-v-3f7206dc]{animation:slide-up-back-3f7206dc .25s both}}[data-v-3f7206dc] #close-icon-btn{position:absolute;right:15px;top:15px}@media not all and (min-width: 576px){.full-height-mobile[data-v-3f7206dc]{height:95%;max-height:none}}@keyframes slide-up-3f7206dc{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes slide-up-back-3f7206dc{0%{transform:translateY(0)}to{transform:translateY(100%)}}@keyframes slide-down-3f7206dc{0%{transform:translateY(-110%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes slide-down-back-3f7206dc{0%{transform:translateY(0)}to{transform:translateY(-110%)}}@keyframes backdrop-opacity-3f7206dc{0%{opacity:0}to{opacity:1}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",