@wikicasa-dev/components 2.5.6-alpha.8 → 2.6.0
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/UIKit/Card/BaseCard.js +1 -1
- package/dist/UIKit/Card/CardRootPrimitive.js +1 -1
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.d.ts +5 -12
- package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +3 -3
- package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +7 -13
- package/dist/assets/BaseShimmerLoader.css +1 -1
- package/dist/assets/SwiperCarousel.css +1 -1
- package/dist/assets/SwiperCarousel2.css +1 -0
- package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.d.ts +0 -3
- package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.js +1 -1
- package/dist/components/carousel/SwiperCarousel.js +1 -1
- package/dist/index.js +1 -1
- package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +12 -14
- package/dist/packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +8 -6
- package/dist/packages/components/lib/components/IntersectionObserver/v2/IntersectionObserverProvider.vue.js +20 -28
- package/dist/packages/components/lib/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js +15 -15
- package/package.json +1 -1
- package/dist/assets/SwiperPaginationPrimitive.css +0 -1
- /package/dist/assets/{CardRootPrimitive.css → BaseCard.css} +0 -0
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
import { ClassTypeProp } from '../types';
|
|
2
|
-
type
|
|
2
|
+
export type BaseShimmerLoaderProps = {
|
|
3
3
|
shimmerClasses?: ClassTypeProp;
|
|
4
|
+
enabled?: boolean;
|
|
4
5
|
};
|
|
5
|
-
declare
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
default?(_: {}): any;
|
|
9
|
-
};
|
|
10
|
-
refs: {};
|
|
11
|
-
rootEl: any;
|
|
12
|
-
};
|
|
13
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
-
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
6
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<BaseShimmerLoaderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<BaseShimmerLoaderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
7
|
+
default?(_: {}): any;
|
|
8
|
+
}>;
|
|
16
9
|
export default _default;
|
|
17
10
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
11
|
new (): {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "../../packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js";
|
|
2
2
|
import '../../assets/BaseShimmerLoader.css';/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-cf2534f5"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
+
import { BaseShimmerLoaderProps } from './BaseShimmerLoader';
|
|
1
2
|
import { ClassTypeProp } from '../types';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
lines?: number;
|
|
4
5
|
randomLength?: boolean;
|
|
5
6
|
shimmerClasses?: ClassTypeProp;
|
|
6
7
|
inheritHeight?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
-
lines: number;
|
|
10
|
-
randomLength: boolean;
|
|
11
|
-
inheritHeight: boolean;
|
|
12
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
8
|
+
} & Pick<BaseShimmerLoaderProps, "enabled">;
|
|
9
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
13
10
|
shimmerLines: (({
|
|
14
11
|
$: import('vue').ComponentInternalInstance;
|
|
15
12
|
$data: {};
|
|
16
13
|
$props: {
|
|
17
14
|
readonly shimmerClasses?: ClassTypeProp;
|
|
15
|
+
readonly enabled?: boolean | undefined;
|
|
18
16
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
19
17
|
$attrs: {
|
|
20
18
|
[x: string]: unknown;
|
|
@@ -29,10 +27,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
29
27
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
30
28
|
$host: Element | null;
|
|
31
29
|
$emit: (event: string, ...args: any[]) => void;
|
|
32
|
-
$el:
|
|
33
|
-
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
34
|
-
shimmerClasses?: ClassTypeProp;
|
|
35
|
-
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
30
|
+
$el: HTMLDivElement;
|
|
31
|
+
$options: import('vue').ComponentOptionsBase<Readonly<BaseShimmerLoaderProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
36
32
|
beforeCreate?: (() => void) | (() => void)[];
|
|
37
33
|
created?: (() => void) | (() => void)[];
|
|
38
34
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -52,9 +48,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
52
48
|
$forceUpdate: () => void;
|
|
53
49
|
$nextTick: typeof import('vue').nextTick;
|
|
54
50
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
55
|
-
} & Readonly<{}> & Omit<Readonly<{
|
|
56
|
-
shimmerClasses?: ClassTypeProp;
|
|
57
|
-
}> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
51
|
+
} & Readonly<{}> & Omit<Readonly<BaseShimmerLoaderProps> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
58
52
|
$slots: {
|
|
59
53
|
default?(_: {}): any;
|
|
60
54
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.shimmer[data-v-
|
|
1
|
+
.shimmer[data-v-cf2534f5]{background-image:linear-gradient(90deg,#fff0,#fff3 20%,#ffffff80 60%,#fff0)}.shimmer[data-enabled][data-v-cf2534f5]{animation:shimmer-cf2534f5 1.4s infinite;will-change:transform}@keyframes shimmer-cf2534f5{0%{transform:translateZ(0) translate(-100%)}to{transform:translateZ(0) translate(100%)}}
|
|
@@ -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}
|
|
@@ -11,9 +11,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<In
|
|
|
11
11
|
default?(_: {
|
|
12
12
|
observer: IntersectionObserver | undefined;
|
|
13
13
|
}): any;
|
|
14
|
-
default?(_: {
|
|
15
|
-
observer: IntersectionObserver | undefined;
|
|
16
|
-
}): any;
|
|
17
14
|
}>;
|
|
18
15
|
export default _default;
|
|
19
16
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -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
|
};
|
|
@@ -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.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as P } from "./packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js";
|
|
2
2
|
import { default as S } from "./packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js";
|
|
3
|
-
import './assets/
|
|
3
|
+
import './assets/BaseCard.css';import './assets/SwiperSlideImagePrimitive.css';import './assets/SwiperCarousel.css';import './assets/BaseSnackbar.css';import './assets/BaseModal.css';import './assets/BaseDropDown.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 I } from "./packages/components/lib/UIKit/Accordion/AccordionItemPrimitive.vue.js";
|
|
5
5
|
import { default as h } from "./packages/components/lib/UIKit/Accordion/AccordionHeaderPrimitive.vue.js";
|
|
6
6
|
import { default as w } from "./packages/components/lib/UIKit/Accordion/AccordionTriggerPrimitive.vue.js";
|
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
3
|
-
inheritAttrs: !1,
|
|
1
|
+
import { defineComponent as i, createElementBlock as a, openBlock as l, createElementVNode as o, renderSlot as s, normalizeClass as d } from "vue";
|
|
2
|
+
const n = { class: "uikit-relative uikit-overflow-hidden uikit-bg-w-lavender" }, r = ["data-enabled"], c = /* @__PURE__ */ i({
|
|
4
3
|
__name: "BaseShimmerLoader",
|
|
5
4
|
props: {
|
|
6
|
-
shimmerClasses: { default: "" }
|
|
5
|
+
shimmerClasses: { default: "" },
|
|
6
|
+
enabled: { type: Boolean, default: !0 }
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
9
|
-
return (
|
|
10
|
-
class: t(["uikit-relative uikit-overflow-hidden uikit-bg-w-lavender", e.$attrs.class]),
|
|
11
|
-
style: a(e.$attrs.style)
|
|
12
|
-
}, [
|
|
8
|
+
setup(e) {
|
|
9
|
+
return (t, u) => (l(), a("div", n, [
|
|
13
10
|
o("div", {
|
|
14
|
-
class:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
class: d(["shimmer uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-h-full", e.shimmerClasses]),
|
|
12
|
+
"data-enabled": e.enabled || void 0
|
|
13
|
+
}, null, 10, r),
|
|
14
|
+
s(t.$slots, "default", {}, void 0, !0)
|
|
15
|
+
]));
|
|
18
16
|
}
|
|
19
17
|
});
|
|
20
18
|
export {
|
|
21
|
-
|
|
19
|
+
c as default
|
|
22
20
|
};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as l, createElementBlock as a, openBlock as t, Fragment as r, renderList as i, createBlock as m, normalizeStyle as s, normalizeClass as o } from "vue";
|
|
2
2
|
import u from "../../../../../UIKit/ShimmerLoader/BaseShimmerLoader.js";
|
|
3
|
-
const k = /* @__PURE__ */
|
|
3
|
+
const k = /* @__PURE__ */ l({
|
|
4
4
|
__name: "ShimmerMultiLine",
|
|
5
5
|
props: {
|
|
6
6
|
lines: { default: 1 },
|
|
7
7
|
randomLength: { type: Boolean, default: !1 },
|
|
8
8
|
shimmerClasses: {},
|
|
9
|
-
inheritHeight: { type: Boolean, default: !1 }
|
|
9
|
+
inheritHeight: { type: Boolean, default: !1 },
|
|
10
|
+
enabled: { type: Boolean, default: !0 }
|
|
10
11
|
},
|
|
11
12
|
setup(e) {
|
|
12
|
-
return (
|
|
13
|
+
return (d, h) => (t(!0), a(r, null, i(e.lines, (n) => (t(), m(u, {
|
|
13
14
|
ref_for: !0,
|
|
14
15
|
ref: "shimmerLines",
|
|
15
16
|
class: o(["shimmer-line", [
|
|
@@ -17,11 +18,12 @@ const k = /* @__PURE__ */ i({
|
|
|
17
18
|
e.inheritHeight ? "uikit-h-[1em]" : "uikit-h-8",
|
|
18
19
|
"uikit-mb-2 uikit-rounded-xs"
|
|
19
20
|
]]),
|
|
20
|
-
|
|
21
|
+
enabled: e.enabled,
|
|
22
|
+
key: `sml-${n}`,
|
|
21
23
|
style: s({
|
|
22
24
|
marginRight: e.randomLength ? `${Math.round(Math.random() * 5) * 10}%` : 0
|
|
23
25
|
})
|
|
24
|
-
}, null, 8, ["class", "style"]))), 128));
|
|
26
|
+
}, null, 8, ["class", "enabled", "style"]))), 128));
|
|
25
27
|
}
|
|
26
28
|
});
|
|
27
29
|
export {
|
|
@@ -1,47 +1,39 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { VisibleTargetsKey as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as m, shallowRef as a, provide as i, onBeforeMount as b, onBeforeUnmount as h, renderSlot as p } from "vue";
|
|
2
|
+
import { VisibleTargetsKey as g, ObserveTargetKey as O, UnobserveTargetKey as y } from "../../../../../../components/IntersectionObserver/v2/types.js";
|
|
3
|
+
const T = /* @__PURE__ */ m({
|
|
4
4
|
__name: "IntersectionObserverProvider",
|
|
5
5
|
props: {
|
|
6
|
-
emitOnce: { type: Boolean, default: !
|
|
6
|
+
emitOnce: { type: Boolean, default: !1 },
|
|
7
7
|
skip: { type: Boolean, default: !1 },
|
|
8
8
|
threshold: { default: 0 }
|
|
9
9
|
},
|
|
10
10
|
emits: ["intersection"],
|
|
11
|
-
setup(
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const
|
|
15
|
-
if (!
|
|
16
|
-
const
|
|
17
|
-
|
|
11
|
+
setup(n, { emit: c }) {
|
|
12
|
+
const u = c, r = a(/* @__PURE__ */ new Set()), t = a(), d = (e) => {
|
|
13
|
+
n.skip || e.forEach(({ target: l, isIntersecting: f }) => {
|
|
14
|
+
const o = l.getAttribute("target-id");
|
|
15
|
+
if (!o) return;
|
|
16
|
+
const s = new Set(r.value);
|
|
17
|
+
f ? (s.add(o), u("intersection"), n.emitOnce && t.value?.disconnect()) : s.delete(o), r.value = s;
|
|
18
18
|
});
|
|
19
|
-
},
|
|
19
|
+
}, v = () => {
|
|
20
20
|
t.value?.disconnect();
|
|
21
21
|
};
|
|
22
|
-
return
|
|
22
|
+
return i(g, r), i(O, (e) => {
|
|
23
23
|
t.value?.observe(e);
|
|
24
|
-
}),
|
|
24
|
+
}), i(y, (e) => {
|
|
25
25
|
t.value?.unobserve(e);
|
|
26
|
-
}),
|
|
26
|
+
}), b(() => {
|
|
27
27
|
t.value = new IntersectionObserver(d, {
|
|
28
28
|
root: null,
|
|
29
29
|
//if the root is null, then we will check if the target is visible in the doc root!
|
|
30
|
-
threshold:
|
|
30
|
+
threshold: n.threshold
|
|
31
31
|
});
|
|
32
|
-
}),
|
|
33
|
-
|
|
34
|
-
}), (e,
|
|
35
|
-
key: 1,
|
|
36
|
-
observer: t.value
|
|
37
|
-
}) : (y(), g("div", {
|
|
38
|
-
key: 0,
|
|
39
|
-
class: O(e.$attrs["root-classes"])
|
|
40
|
-
}, [
|
|
41
|
-
c(e.$slots, "default", { observer: t.value })
|
|
42
|
-
], 2));
|
|
32
|
+
}), h(() => {
|
|
33
|
+
v();
|
|
34
|
+
}), (e, l) => p(e.$slots, "default", { observer: t.value });
|
|
43
35
|
}
|
|
44
36
|
});
|
|
45
37
|
export {
|
|
46
|
-
|
|
38
|
+
T as default
|
|
47
39
|
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { defineComponent as v, useTemplateRef as
|
|
2
|
-
import { VisibleTargetsKey as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as v, useTemplateRef as d, useId as b, inject as s, computed as m, onMounted as g, watch as p, createElementBlock as T, renderSlot as u, openBlock as y, unref as k } from "vue";
|
|
2
|
+
import { VisibleTargetsKey as O, ObserveTargetKey as _, UnobserveTargetKey as h } from "../../../../../../components/IntersectionObserver/v2/types.js";
|
|
3
|
+
const V = ["target-id"], I = /* @__PURE__ */ v({
|
|
4
4
|
__name: "IntersectionObserverTarget",
|
|
5
5
|
props: {
|
|
6
6
|
observeOnce: { type: Boolean, default: !0 }
|
|
7
7
|
},
|
|
8
|
-
setup(
|
|
9
|
-
const e =
|
|
10
|
-
() =>
|
|
8
|
+
setup(n) {
|
|
9
|
+
const e = d("root"), i = b(), c = s(O, void 0), f = s(_, void 0), a = s(h, void 0), t = m(
|
|
10
|
+
() => c?.value.has(i) || !1
|
|
11
11
|
);
|
|
12
|
-
return
|
|
13
|
-
e.value &&
|
|
14
|
-
}),
|
|
15
|
-
|
|
16
|
-
}), (r,
|
|
12
|
+
return g(() => {
|
|
13
|
+
e.value && f?.(e.value);
|
|
14
|
+
}), p([t, e], ([r, o], [, l]) => {
|
|
15
|
+
n.observeOnce && r && (o && a?.(o), l && a?.(l));
|
|
16
|
+
}), (r, o) => !n.observeOnce || !t.value ? (y(), T("div", {
|
|
17
17
|
key: 0,
|
|
18
18
|
ref_key: "root",
|
|
19
19
|
ref: e,
|
|
20
|
-
"target-id":
|
|
20
|
+
"target-id": k(i)
|
|
21
21
|
}, [
|
|
22
|
-
|
|
23
|
-
], 8,
|
|
22
|
+
u(r.$slots, "default", { isVisible: t.value })
|
|
23
|
+
], 8, V)) : u(r.$slots, "default", {
|
|
24
24
|
key: 1,
|
|
25
25
|
isVisible: t.value
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
export {
|
|
30
|
-
|
|
30
|
+
I as default
|
|
31
31
|
};
|
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
|