@wikicasa-dev/components 2.5.3-alpha.6 → 2.5.3-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.
- package/dist/Swiper/Autoplay/index.js +1 -1
- package/dist/Swiper/Controller/index.js +1 -1
- package/dist/Swiper/Keyboard/index.js +1 -1
- package/dist/Swiper/Thumbs/index.js +1 -1
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/assets/SwiperCarousel2.css +1 -0
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.js +1 -1
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.d.ts +1 -0
- package/dist/components/carousel/Primitive/SwiperRootPrimitive.js +5 -4
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.d.ts +15 -0
- package/dist/components/carousel/Primitive/SwiperSlideImagePrimitive.js +4 -0
- package/dist/components/carousel/SwiperCarousel.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +43 -41
- package/dist/packages/components/lib/components/carousel/Primitive/SwiperRootPrimitive.vue.js +52 -41
- package/dist/packages/components/lib/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js +39 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/assets/SwiperPaginationPrimitive.css +0 -1
- /package/dist/assets/{swiper-keyboard.css → swiper-autoplay.css} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.swiper-pagination-bullet{--swiper-pagination-color: #ccc}.swiper-pagination-bullet-active{--swiper-pagination-color: #fff}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.no-transition[data-v-f8f3d52a]{transition-duration:0ms!important}.disable-select[data-v-f8f3d52a]{-webkit-user-select:none;-moz-user-select:none;user-select:none}.swiper-button-disabled[data-v-f8f3d52a]{pointer-events:auto!important}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import o from "../../../packages/components/lib/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js";
|
|
2
|
-
import '../../../assets/
|
|
2
|
+
import '../../../assets/SwiperCarousel.css';/* empty css */
|
|
3
3
|
export {
|
|
4
4
|
o as default
|
|
5
5
|
};
|
|
@@ -2,6 +2,7 @@ import { Nullable } from '@wikicasa-dev/types';
|
|
|
2
2
|
import { SwiperModuleDescriptor } from '../../../../lazyModules/Swiper/types';
|
|
3
3
|
import { InjectionKey } from 'vue';
|
|
4
4
|
import { Swiper, SwiperOptions } from 'swiper/types';
|
|
5
|
+
export declare const setLazyImagesLoaderKey: InjectionKey<(v: boolean) => void>;
|
|
5
6
|
export declare const addModuleDescriptorKey: InjectionKey<(m: Nullable<SwiperModuleDescriptor>) => void>;
|
|
6
7
|
export type SwiperRootPrimitiveProps = Omit<SwiperOptions, "pagination" | "navigation">;
|
|
7
8
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { addModuleDescriptorKey as
|
|
1
|
+
import o from "../../../packages/components/lib/components/carousel/Primitive/SwiperRootPrimitive.vue.js";
|
|
2
|
+
import { addModuleDescriptorKey as m, setLazyImagesLoaderKey as d } from "../../../packages/components/lib/components/carousel/Primitive/SwiperRootPrimitive.vue.js";
|
|
3
3
|
import '../../../assets/SwiperRootPrimitive.css';/* empty css */
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
m as addModuleDescriptorKey,
|
|
6
|
+
o as default,
|
|
7
|
+
d as setLazyImagesLoaderKey
|
|
7
8
|
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ClassTypeProp } from '../../../UIKit/types';
|
|
2
|
+
export interface SwiperSlideImagePrimitiveProps {
|
|
3
|
+
src?: string;
|
|
4
|
+
srcset?: string;
|
|
5
|
+
alt?: string;
|
|
6
|
+
width?: number;
|
|
7
|
+
height?: number;
|
|
8
|
+
sizes?: string;
|
|
9
|
+
imgClasses?: ClassTypeProp;
|
|
10
|
+
decoding?: "auto" | "sync" | "async";
|
|
11
|
+
crossorigin?: "anonymous" | "use-credentials";
|
|
12
|
+
lazy?: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: import('vue').DefineComponent<SwiperSlideImagePrimitiveProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SwiperSlideImagePrimitiveProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import o from "../../packages/components/lib/components/carousel/SwiperCarousel.vue.js";
|
|
2
|
-
import '../../assets/
|
|
2
|
+
import '../../assets/SwiperCarousel2.css';import '../../assets/SwiperCarousel.css';/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-f8f3d52a"]]);
|
package/dist/index.d.ts
CHANGED
|
@@ -57,4 +57,5 @@ export { default as SwiperRootPrimitive } from './components/carousel/Primitive/
|
|
|
57
57
|
export { default as SwiperPrimitive } from './components/carousel/Primitive/SwiperPrimitive';
|
|
58
58
|
export { default as SwiperPaginationPrimitive } from './components/carousel/Primitive/SwiperPaginationPrimitive';
|
|
59
59
|
export { default as SwiperNavigationPrimitive } from './components/carousel/Primitive/SwiperNavigationPrimitive';
|
|
60
|
+
export { default as SwiperSlideImagePrimitive } from './components/carousel/Primitive/SwiperSlideImagePrimitive';
|
|
60
61
|
export { default as BaseBreadcrumb } from './UIKit/BaseBreadcrumb';
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { default as
|
|
1
|
+
import { default as S } from "./packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js";
|
|
2
2
|
import { default as g } from "./packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js";
|
|
3
|
-
import './assets/
|
|
3
|
+
import './assets/SwiperCarousel.css';import './assets/SwiperRootPrimitive.css';import './assets/BaseSnackbar.css';import './assets/BaseModal.css';import './assets/BaseDropDown.css';import './assets/BaseCard.css';import './assets/BaseBadge.css';import './assets/ClearableAutocomplete.css';import './assets/BaseAutocomplete.css';import './assets/BaseAlert.css';import './assets/AccessibleSelect.css';import './assets/RadioButtonItem.css';import './assets/BaseTabsIndicator.css';import './assets/BaseTabs.css';import './assets/CheckboxBtn.css';import './assets/BaseAccordionItem.css';/* empty css */
|
|
4
4
|
import { default as C } from "./packages/components/lib/UIKit/Accordion/AccordionItemPrimitive.vue.js";
|
|
5
5
|
import { default as I } from "./packages/components/lib/UIKit/Accordion/AccordionHeaderPrimitive.vue.js";
|
|
6
6
|
import { default as A } from "./packages/components/lib/UIKit/Accordion/AccordionTriggerPrimitive.vue.js";
|
|
@@ -21,17 +21,17 @@ import { default as Y } from "./packages/components/lib/UIKit/Tab/v2/BaseTabs.vu
|
|
|
21
21
|
import { default as _ } from "./packages/components/lib/UIKit/Tab/v2/BaseTabsContent.vue.js";
|
|
22
22
|
import { default as ee } from "./packages/components/lib/UIKit/Tab/v2/BaseTabsIndicator.vue.js";
|
|
23
23
|
/* empty css */
|
|
24
|
-
import { default as
|
|
24
|
+
import { default as oe } from "./packages/components/lib/UIKit/Tab/v2/BaseTabsList.vue.js";
|
|
25
25
|
import { default as ae } from "./packages/components/lib/UIKit/Tab/v2/BaseTabsTrigger.vue.js";
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
26
|
+
import { default as me } from "./packages/components/lib/UIKit/Radio/RadioButton.vue.js";
|
|
27
|
+
import { default as se } from "./packages/components/lib/UIKit/Radio/RadioGroup.vue.js";
|
|
28
28
|
import { default as le } from "./packages/components/lib/UIKit/Radio/v2/RadioButtonGroup.vue.js";
|
|
29
29
|
import { default as ue } from "./packages/components/lib/UIKit/Radio/v2/RadioButtonItem.vue.js";
|
|
30
30
|
/* empty css */
|
|
31
31
|
import { default as ne } from "./packages/components/lib/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js";
|
|
32
32
|
import { default as ce } from "./packages/components/lib/UIKit/AccessibleSelect.vue.js";
|
|
33
33
|
/* empty css */
|
|
34
|
-
import { default as
|
|
34
|
+
import { default as Se } from "./packages/components/lib/UIKit/BaseAlert.vue.js";
|
|
35
35
|
/* empty css */
|
|
36
36
|
import { default as ge } from "./packages/components/lib/UIKit/BaseAutocomplete.vue.js";
|
|
37
37
|
/* empty css */
|
|
@@ -56,36 +56,37 @@ import { default as We } from "./packages/components/lib/UIKit/BaseUploadFile.vu
|
|
|
56
56
|
import { default as Ye } from "./packages/components/lib/UIKit/BaseModal.vue.js";
|
|
57
57
|
/* empty css */
|
|
58
58
|
import { default as _e } from "./UIKit/StaticSpinner.js";
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
59
|
+
import { default as er } from "./UIKit/ShimmerLoader/BaseShimmerLoader.js";
|
|
60
|
+
import { default as or } from "./packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js";
|
|
61
|
+
import { default as ar } from "./packages/components/lib/chart/DoughnutChart.vue.js";
|
|
62
|
+
import { default as mr } from "./packages/components/lib/chart/LineChart.vue.js";
|
|
63
|
+
import { default as sr } from "./UIKit/Slider/SimpleSlider.js";
|
|
64
|
+
import { default as lr } from "./packages/components/lib/UIKit/BaseSnackbar.vue.js";
|
|
65
65
|
/* empty css */
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
66
|
+
import { default as ur } from "./packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js";
|
|
67
|
+
import { default as nr } from "./packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js";
|
|
68
|
+
import { default as cr } from "./components/carousel/SwiperCarousel.js";
|
|
69
|
+
import { default as Sr } from "./components/carousel/SwiperSlide.js";
|
|
70
|
+
import { default as gr } from "./packages/components/lib/components/carousel/Primitive/SwiperRootPrimitive.vue.js";
|
|
71
71
|
/* empty css */
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
72
|
+
import { default as Cr } from "./packages/components/lib/components/carousel/Primitive/SwiperPrimitive.vue.js";
|
|
73
|
+
import { default as Ir } from "./packages/components/lib/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js";
|
|
74
74
|
/* empty css */
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
75
|
+
import { default as Ar } from "./packages/components/lib/components/carousel/Primitive/SwiperNavigationPrimitive.vue.js";
|
|
76
|
+
import { default as Gr } from "./packages/components/lib/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js";
|
|
77
|
+
import { default as kr } from "./packages/components/lib/UIKit/BaseBreadcrumb.vue.js";
|
|
77
78
|
export {
|
|
78
79
|
ce as AccessibleSelect,
|
|
79
80
|
G as AccordionContentPrimitive,
|
|
80
81
|
I as AccordionHeaderPrimitive,
|
|
81
82
|
C as AccordionItemPrimitive,
|
|
82
83
|
A as AccordionTriggerPrimitive,
|
|
83
|
-
|
|
84
|
+
S as BaseAccordion,
|
|
84
85
|
g as BaseAccordionItem,
|
|
85
|
-
|
|
86
|
+
Se as BaseAlert,
|
|
86
87
|
ge as BaseAutocomplete,
|
|
87
88
|
Ie as BaseBadge,
|
|
88
|
-
|
|
89
|
+
kr as BaseBreadcrumb,
|
|
89
90
|
Ae as BaseButton,
|
|
90
91
|
Ge as BaseCard,
|
|
91
92
|
ke as BaseComplexToggle,
|
|
@@ -94,15 +95,15 @@ export {
|
|
|
94
95
|
He as BaseInput,
|
|
95
96
|
Ye as BaseModal,
|
|
96
97
|
Ue as BasePagination,
|
|
97
|
-
|
|
98
|
+
er as BaseShimmerLoader,
|
|
98
99
|
je as BaseSlider,
|
|
99
|
-
|
|
100
|
+
lr as BaseSnackbar,
|
|
100
101
|
W as BaseTab,
|
|
101
102
|
K as BaseTabView,
|
|
102
103
|
Y as BaseTabs,
|
|
103
104
|
_ as BaseTabsContent,
|
|
104
105
|
ee as BaseTabsIndicator,
|
|
105
|
-
|
|
106
|
+
oe as BaseTabsList,
|
|
106
107
|
ae as BaseTabsTrigger,
|
|
107
108
|
ye as BaseTextarea,
|
|
108
109
|
Ee as BaseToggle,
|
|
@@ -114,25 +115,26 @@ export {
|
|
|
114
115
|
E as CheckboxGroupItemPrimitive,
|
|
115
116
|
y as CheckboxGroupPrimitive,
|
|
116
117
|
Ce as ClearableAutocomplete,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
ar as DoughnutChart,
|
|
119
|
+
ur as IntersectionObservable,
|
|
120
|
+
nr as IntersectionObserver,
|
|
121
|
+
mr as LineChart,
|
|
121
122
|
M as ProgressIndicatorPrimitive,
|
|
122
123
|
D as ProgressRootPrimitive,
|
|
123
|
-
|
|
124
|
+
me as RadioButton,
|
|
124
125
|
le as RadioButtonGroup,
|
|
125
126
|
ue as RadioButtonItem,
|
|
126
|
-
|
|
127
|
+
se as RadioGroup,
|
|
127
128
|
ne as RadioGroupItemPrimitive,
|
|
128
129
|
k as SelectItem,
|
|
129
|
-
|
|
130
|
-
|
|
130
|
+
or as ShimmerMultiLine,
|
|
131
|
+
sr as SimpleSlider,
|
|
131
132
|
_e as StaticSpinner,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
133
|
+
cr as SwiperCarousel,
|
|
134
|
+
Ar as SwiperNavigationPrimitive,
|
|
135
|
+
Ir as SwiperPaginationPrimitive,
|
|
136
|
+
Cr as SwiperPrimitive,
|
|
137
|
+
gr as SwiperRootPrimitive,
|
|
138
|
+
Sr as SwiperSlide,
|
|
139
|
+
Gr as SwiperSlideImagePrimitive
|
|
138
140
|
};
|
package/dist/packages/components/lib/components/carousel/Primitive/SwiperRootPrimitive.vue.js
CHANGED
|
@@ -1,66 +1,77 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { createSwiper as
|
|
3
|
-
import { AutoplayModule as
|
|
4
|
-
import { KeyboardModule as
|
|
5
|
-
import { ZoomModule as
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
ref: "root"
|
|
9
|
-
}, R = /* @__PURE__ */ Symbol(), A = /* @__PURE__ */ f({
|
|
1
|
+
import { defineComponent as I, useAttrs as O, shallowRef as m, useTemplateRef as V, onMounted as b, provide as p, createElementBlock as x, openBlock as z, Fragment as A, withDirectives as M, renderSlot as f, createCommentVNode as C, createElementVNode as E, mergeProps as B, unref as D, vShow as K, nextTick as L } from "vue";
|
|
2
|
+
import { createSwiper as N } from "../../../../../../Swiper/factory.js";
|
|
3
|
+
import { AutoplayModule as R } from "../../../../../../Swiper/Autoplay/factory.js";
|
|
4
|
+
import { KeyboardModule as T } from "../../../../../../Swiper/Keyboard/factory.js";
|
|
5
|
+
import { ZoomModule as $ } from "../../../../../../Swiper/Zoom/factory.js";
|
|
6
|
+
const q = /* @__PURE__ */ Symbol(), F = /* @__PURE__ */ Symbol(), Q = /* @__PURE__ */ I({
|
|
7
|
+
inheritAttrs: !1,
|
|
10
8
|
__name: "SwiperRootPrimitive",
|
|
11
9
|
props: {
|
|
12
10
|
swiperOptions: {}
|
|
13
11
|
},
|
|
14
12
|
emits: ["moved", "click", "init"],
|
|
15
|
-
setup(
|
|
16
|
-
const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
13
|
+
setup(r, { expose: v, emit: y }) {
|
|
14
|
+
const n = y, w = O(), i = m(null), d = V("root"), s = m(!1), S = !!r.swiperOptions?.keyboard, h = !!r.swiperOptions?.autoplay, c = [];
|
|
15
|
+
let a = !1;
|
|
16
|
+
const k = (e) => {
|
|
17
|
+
e?.querySelectorAll("img[data-src]").forEach((t) => {
|
|
18
|
+
const o = t;
|
|
19
|
+
o.src = o.dataset.src || "", o.srcset = o.dataset.srcset || "";
|
|
20
|
+
});
|
|
21
|
+
}, u = (e, t) => {
|
|
22
|
+
if (!a) return;
|
|
23
|
+
const o = e.params.lazyPreloadPrevNext ?? 0;
|
|
24
|
+
for (let l = t - o; l <= t + o; l++)
|
|
25
|
+
k(e.slides[l]);
|
|
26
|
+
}, P = async (e) => {
|
|
27
|
+
i.value = await N(
|
|
20
28
|
e,
|
|
21
29
|
{
|
|
22
30
|
on: {
|
|
23
|
-
init: () => {
|
|
24
|
-
|
|
25
|
-
|
|
31
|
+
init: (t) => {
|
|
32
|
+
L(() => {
|
|
33
|
+
s.value = !0, u(t, t.activeIndex), n("init");
|
|
26
34
|
});
|
|
27
35
|
},
|
|
28
|
-
slideChange: (
|
|
29
|
-
|
|
36
|
+
slideChange: (t) => {
|
|
37
|
+
n("moved", { activeIndex: t.activeIndex }), u(t, t.activeIndex);
|
|
30
38
|
}
|
|
31
39
|
},
|
|
32
|
-
...
|
|
40
|
+
...r.swiperOptions
|
|
33
41
|
},
|
|
34
42
|
[
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
...
|
|
43
|
+
$(r.swiperOptions?.zoom),
|
|
44
|
+
S ? T(r.swiperOptions?.keyboard) : void 0,
|
|
45
|
+
h ? R(r.swiperOptions.autoplay) : void 0,
|
|
46
|
+
...c
|
|
39
47
|
].filter(Boolean)
|
|
40
48
|
);
|
|
41
49
|
};
|
|
42
|
-
|
|
43
|
-
|
|
50
|
+
b(() => {
|
|
51
|
+
d.value && setTimeout(() => P(d.value));
|
|
44
52
|
});
|
|
45
|
-
const
|
|
46
|
-
!
|
|
53
|
+
const g = (e) => {
|
|
54
|
+
!i.value || i.value.params.slidesPerView === e || (i.value.params.slidesPerView = e, i.value.update());
|
|
47
55
|
};
|
|
48
|
-
return
|
|
49
|
-
e &&
|
|
50
|
-
}),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
return p(F, (e) => {
|
|
57
|
+
e && c.push(e);
|
|
58
|
+
}), p(q, (e) => {
|
|
59
|
+
e !== a && (a = e);
|
|
60
|
+
}), v({
|
|
61
|
+
swiper: i,
|
|
62
|
+
updateSlidesPerView: g
|
|
63
|
+
}), (e, t) => (z(), x(A, null, [
|
|
64
|
+
M(E("div", B({ ref: "root" }, D(w), { class: "swiper uikit-carousel" }), [
|
|
65
|
+
f(e.$slots, "default")
|
|
66
|
+
], 16), [
|
|
67
|
+
[K, s.value]
|
|
58
68
|
]),
|
|
59
|
-
|
|
69
|
+
s.value ? C("", !0) : f(e.$slots, "placeholder", { key: 0 })
|
|
60
70
|
], 64));
|
|
61
71
|
}
|
|
62
72
|
});
|
|
63
73
|
export {
|
|
64
|
-
|
|
65
|
-
|
|
74
|
+
F as addModuleDescriptorKey,
|
|
75
|
+
Q as default,
|
|
76
|
+
q as setLazyImagesLoaderKey
|
|
66
77
|
};
|
package/dist/packages/components/lib/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { defineComponent as i, createPropsRestProxy as l, shallowRef as r, inject as n, resolveComponent as d, createBlock as m, openBlock as u, withCtx as g, createElementVNode as v, mergeProps as y } from "vue";
|
|
2
|
+
import { setLazyImagesLoaderKey as f } from "./SwiperRootPrimitive.vue.js";
|
|
3
|
+
import '../../../../../../assets/SwiperRootPrimitive.css';/* empty css */
|
|
4
|
+
const S = ["src", "srcset", "data-src", "data-srcset"], x = /* @__PURE__ */ i({
|
|
5
|
+
__name: "SwiperSlideImagePrimitive",
|
|
6
|
+
props: {
|
|
7
|
+
src: {},
|
|
8
|
+
srcset: {},
|
|
9
|
+
alt: {},
|
|
10
|
+
width: {},
|
|
11
|
+
height: {},
|
|
12
|
+
sizes: {},
|
|
13
|
+
imgClasses: {},
|
|
14
|
+
decoding: {},
|
|
15
|
+
crossorigin: {},
|
|
16
|
+
lazy: { type: Boolean }
|
|
17
|
+
},
|
|
18
|
+
setup(e) {
|
|
19
|
+
const s = l(e, ["src", "srcset", "imgClasses"]), t = r(), a = r(), c = n(f, void 0);
|
|
20
|
+
return s.lazy && (t.value = e.src, a.value = e.srcset, c?.(!0)), (h, z) => {
|
|
21
|
+
const o = d("SwiperSlide");
|
|
22
|
+
return u(), m(o, null, {
|
|
23
|
+
default: g(() => [
|
|
24
|
+
v("img", y(s, {
|
|
25
|
+
class: e.imgClasses,
|
|
26
|
+
src: e.lazy ? void 0 : e.src,
|
|
27
|
+
srcset: e.lazy ? void 0 : e.srcset,
|
|
28
|
+
"data-src": t.value,
|
|
29
|
+
"data-srcset": a.value
|
|
30
|
+
}), null, 16, S)
|
|
31
|
+
]),
|
|
32
|
+
_: 1
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
x as default
|
|
39
|
+
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -27,3 +27,4 @@ export type { BaseTabsTriggerProps } from '../UIKit/Tab/v2/BaseTabsTrigger';
|
|
|
27
27
|
export type { SwiperRootPrimitiveProps } from '../components/carousel/Primitive/SwiperRootPrimitive';
|
|
28
28
|
export type { SwiperPaginationPrimitiveProps } from '../components/carousel/Primitive/SwiperPaginationPrimitive';
|
|
29
29
|
export type { SwiperNavigationPrimitiveProps } from '../components/carousel/Primitive/SwiperNavigationPrimitive';
|
|
30
|
+
export type { SwiperSlideImagePrimitiveProps } from '../components/carousel/Primitive/SwiperSlideImagePrimitive';
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.swiper-pagination-bullet{--swiper-pagination-color: #ccc}.swiper-pagination-bullet-active{--swiper-pagination-color: #fff}
|
|
File without changes
|