@wikicasa-dev/components 2.4.2-alpha.8 → 2.4.2-alpha.9

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,8 +1,10 @@
1
1
  const a = (o) => ({
2
2
  loader: () => import("./index.js").then((t) => t.default),
3
- options: {
4
- autoplay: o
5
- }
3
+ ...o ? {
4
+ options: {
5
+ autoplay: o
6
+ }
7
+ } : {}
6
8
  });
7
9
  export {
8
10
  a as AutoplayModule
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-controller.css';/* empty css */
1
+ import '../../assets/swiper-autoplay.css';/* empty css */
2
2
  import { Autoplay as p } from "swiper/modules";
3
3
  export {
4
4
  p as default
@@ -1,9 +1,7 @@
1
- const e = (o) => ({
2
- loader: () => import("./index.js").then((t) => t.default),
3
- options: {
4
- controller: o
5
- }
1
+ const l = (o) => ({
2
+ loader: () => import("./index.js").then((e) => e.default),
3
+ ...o ? { options: { controller: o } } : {}
6
4
  });
7
5
  export {
8
- e as ControllerModule
6
+ l as ControllerModule
9
7
  };
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-controller.css';/* empty css */
1
+ import '../../assets/swiper-autoplay.css';/* empty css */
2
2
  import { Controller as e } from "swiper/modules";
3
3
  export {
4
4
  e as default
@@ -1,9 +1,11 @@
1
- const t = (e) => ({
1
+ const d = (e) => ({
2
2
  loader: () => import("./index.js").then((o) => o.default),
3
- options: {
4
- freeMode: e
5
- }
3
+ ...e ? {
4
+ options: {
5
+ freeMode: e
6
+ }
7
+ } : {}
6
8
  });
7
9
  export {
8
- t as FreemodeModule
10
+ d as FreemodeModule
9
11
  };
@@ -1,9 +1,11 @@
1
- const t = (o) => ({
2
- loader: () => import("./index.js").then((e) => e.default),
3
- options: {
4
- keyboard: o
5
- }
1
+ const d = (e) => ({
2
+ loader: () => import("./index.js").then((o) => o.default),
3
+ ...e ? {
4
+ options: {
5
+ keyboard: e
6
+ }
7
+ } : {}
6
8
  });
7
9
  export {
8
- t as KeyboardModule
10
+ d as KeyboardModule
9
11
  };
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-controller.css';/* empty css */
1
+ import '../../assets/swiper-autoplay.css';/* empty css */
2
2
  import { Keyboard as e } from "swiper/modules";
3
3
  export {
4
4
  e as default
@@ -1,7 +1,7 @@
1
- const n = (e) => ({
1
+ const l = (e) => ({
2
2
  loader: () => import("./index.js").then((t) => t.default),
3
3
  options: {
4
- navigation: typeof e == "boolean" ? {} : {
4
+ navigation: typeof e == "boolean" || !e ? {} : {
5
5
  ...e,
6
6
  ...e?.nextEl ?? {
7
7
  nextEl: ".swiper-button-next"
@@ -13,5 +13,5 @@ const n = (e) => ({
13
13
  }
14
14
  });
15
15
  export {
16
- n as NavigationModule
16
+ l as NavigationModule
17
17
  };
@@ -1,14 +1,14 @@
1
- const n = (a) => ({
2
- loader: () => import("./index.js").then((i) => i.default),
1
+ const n = (i) => ({
2
+ loader: () => import("./index.js").then((a) => a.default),
3
3
  options: {
4
4
  pagination: {
5
5
  el: ".swiper-pagination",
6
- renderFraction: (i, t) => `<div class="uikit-rounded-xs uikit-border-w-black uikit-border uikit-border-solid uikit-px-3 uikit-bg-white uikit-pt-[3px] uikit-pb-[3px]">
7
- <span data-cy="swiper-pagination-current" class="${i}"></span>
6
+ renderFraction: (a, t) => `<div class="uikit-rounded-xs uikit-border-w-black uikit-border uikit-border-solid uikit-px-3 uikit-bg-white uikit-pt-[3px] uikit-pb-[3px]">
7
+ <span data-cy="swiper-pagination-current" class="${a}"></span>
8
8
  /
9
9
  <span data-cy="swiper-pagination-total" class="${t}"></span>
10
10
  </div>`,
11
- ...typeof a == "boolean" ? {} : a
11
+ ...typeof i == "boolean" || !i ? {} : i
12
12
  }
13
13
  }
14
14
  });
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-controller.css';/* empty css */
1
+ import '../../assets/swiper-autoplay.css';/* empty css */
2
2
  import { Thumbs as t } from "swiper/modules";
3
3
  export {
4
4
  t as default
@@ -1,9 +1,11 @@
1
- const e = (o) => ({
2
- loader: () => import("./index.js").then((t) => t.default),
3
- options: {
4
- zoom: o
5
- }
1
+ const t = (o) => ({
2
+ loader: () => import("./index.js").then((e) => e.default),
3
+ ...o ? {
4
+ options: {
5
+ zoom: o
6
+ }
7
+ } : {}
6
8
  });
7
9
  export {
8
- e as ZoomModule
10
+ t as ZoomModule
9
11
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.4.2-alpha.8",
3
+ "version": "2.4.2-alpha.9",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",