@wikicasa-dev/components 2.5.6-alpha.12 → 2.5.6-alpha.2

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.
Files changed (45) hide show
  1. package/dist/Swiper/Autoplay/index.js +1 -1
  2. package/dist/Swiper/Controller/index.js +1 -1
  3. package/dist/Swiper/Keyboard/index.js +1 -1
  4. package/dist/Swiper/Thumbs/index.js +1 -1
  5. package/dist/UIKit/BaseCard/BaseCard.js +5 -0
  6. package/dist/UIKit/{Card/CardImagePrimitive.d.ts → BaseCard/BaseCardDescription.d.ts} +1 -1
  7. package/dist/UIKit/BaseCard/BaseCardDescription.js +12 -0
  8. package/dist/UIKit/BaseCard/BaseCardImage.js +4 -0
  9. package/dist/UIKit/BaseCard/BaseCardRoot.js +5 -0
  10. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.d.ts +12 -5
  11. package/dist/UIKit/ShimmerLoader/BaseShimmerLoader.js +3 -3
  12. package/dist/UIKit/ShimmerLoader/ShimmerMultiLine.d.ts +13 -7
  13. package/dist/assets/BaseShimmerLoader.css +1 -1
  14. package/dist/assets/SwiperCarousel.css +1 -1
  15. package/dist/assets/SwiperPaginationPrimitive.css +1 -0
  16. package/dist/components/IntersectionObserver/v2/IntersectionObserverProvider.d.ts +6 -1
  17. package/dist/components/IntersectionObserver/v2/IntersectionObserverTarget.d.ts +3 -10
  18. package/dist/components/IntersectionObserver/v2/types.d.ts +3 -3
  19. package/dist/components/IntersectionObserver/v2/types.js +3 -3
  20. package/dist/components/carousel/Primitive/SwiperPaginationPrimitive.js +1 -1
  21. package/dist/components/carousel/SwiperCarousel.js +1 -1
  22. package/dist/index.d.ts +4 -4
  23. package/dist/index.js +24 -24
  24. package/dist/packages/components/lib/UIKit/BaseCard/BaseCardImage.vue.js +16 -0
  25. package/dist/packages/components/lib/UIKit/{Card/CardRootPrimitive.vue.js → BaseCard/BaseCardRoot.vue.js} +8 -8
  26. package/dist/packages/components/lib/UIKit/ShimmerLoader/BaseShimmerLoader.vue.js +14 -12
  27. package/dist/packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js +6 -8
  28. package/dist/packages/components/lib/components/IntersectionObserver/v2/IntersectionObserverProvider.vue.js +31 -24
  29. package/dist/packages/components/lib/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js +12 -22
  30. package/dist/types/index.d.ts +2 -2
  31. package/package.json +1 -1
  32. package/dist/UIKit/Card/BaseCard.js +0 -5
  33. package/dist/UIKit/Card/CardDescriptionPrimitive.js +0 -12
  34. package/dist/UIKit/Card/CardImagePrimitive.js +0 -4
  35. package/dist/UIKit/Card/CardRootPrimitive.js +0 -5
  36. package/dist/assets/SwiperCarousel2.css +0 -1
  37. package/dist/packages/components/lib/UIKit/Card/CardImagePrimitive.vue.js +0 -16
  38. /package/dist/UIKit/{Card → BaseCard}/BaseCard.d.ts +0 -0
  39. /package/dist/UIKit/{Card/CardDescriptionPrimitive.d.ts → BaseCard/BaseCardImage.d.ts} +0 -0
  40. /package/dist/UIKit/{Card/CardRootPrimitive.d.ts → BaseCard/BaseCardRoot.d.ts} +0 -0
  41. /package/dist/UIKit/{Card → BaseCard}/type.d.ts +0 -0
  42. /package/dist/UIKit/{Card → BaseCard}/type.js +0 -0
  43. /package/dist/assets/{CardRootPrimitive.css → BaseCardRoot.css} +0 -0
  44. /package/dist/assets/{swiper-autoplay.css → swiper-keyboard.css} +0 -0
  45. /package/dist/packages/components/lib/UIKit/{Card → BaseCard}/BaseCard.vue.js +0 -0
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-autoplay.css';/* empty css */
1
+ import '../../assets/swiper-keyboard.css';/* empty css */
2
2
  import { Autoplay as p } from "swiper/modules";
3
3
  export {
4
4
  p as default
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-autoplay.css';/* empty css */
1
+ import '../../assets/swiper-keyboard.css';/* empty css */
2
2
  import { Controller as e } from "swiper/modules";
3
3
  export {
4
4
  e as default
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-autoplay.css';/* empty css */
1
+ import '../../assets/swiper-keyboard.css';/* empty css */
2
2
  import { Keyboard as e } from "swiper/modules";
3
3
  export {
4
4
  e as default
@@ -1,4 +1,4 @@
1
- import '../../assets/swiper-autoplay.css';/* empty css */
1
+ import '../../assets/swiper-keyboard.css';/* empty css */
2
2
  import { Thumbs as t } from "swiper/modules";
3
3
  export {
4
4
  t as default
@@ -0,0 +1,5 @@
1
+ import o from "../../packages/components/lib/UIKit/BaseCard/BaseCard.vue.js";
2
+ import '../../assets/BaseCardRoot.css';/* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -1,7 +1,7 @@
1
1
  declare function __VLS_template(): {
2
2
  attrs: Partial<{}>;
3
3
  slots: {
4
- default?(_: {}): any;
4
+ 'card-description'?(_: {}): any;
5
5
  };
6
6
  refs: {};
7
7
  rootEl: HTMLDivElement;
@@ -0,0 +1,12 @@
1
+ import { createElementBlock as r, openBlock as o, renderSlot as c } from "vue";
2
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
3
+ const s = {}, n = { class: "card-body" };
4
+ function d(e, a) {
5
+ return o(), r("div", n, [
6
+ c(e.$slots, "card-description")
7
+ ]);
8
+ }
9
+ const f = /* @__PURE__ */ t(s, [["render", d]]);
10
+ export {
11
+ f as default
12
+ };
@@ -0,0 +1,4 @@
1
+ import f from "../../packages/components/lib/UIKit/BaseCard/BaseCardImage.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,5 @@
1
+ import o from "../../packages/components/lib/UIKit/BaseCard/BaseCardRoot.vue.js";
2
+ import '../../assets/BaseCardRoot.css';/* empty css */
3
+ export {
4
+ o as default
5
+ };
@@ -1,11 +1,18 @@
1
1
  import { ClassTypeProp } from '../types';
2
- export type BaseShimmerLoaderProps = {
2
+ type __VLS_Props = {
3
3
  shimmerClasses?: ClassTypeProp;
4
- enabled?: boolean;
5
4
  };
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
- }>;
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
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"]>;
9
16
  export default _default;
10
17
  type __VLS_WithTemplateSlots<T, S> = T & {
11
18
  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 r from "../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-cf2534f5"]]);
3
+ import a from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const t = /* @__PURE__ */ a(o, [["__scopeId", "data-v-4aceb4a2"]]);
5
5
  export {
6
- e as default
6
+ t as default
7
7
  };
@@ -1,18 +1,20 @@
1
- import { BaseShimmerLoaderProps } from './BaseShimmerLoader';
2
1
  import { ClassTypeProp } from '../types';
3
2
  type __VLS_Props = {
4
3
  lines?: number;
5
4
  randomLength?: boolean;
6
5
  shimmerClasses?: ClassTypeProp;
7
6
  inheritHeight?: boolean;
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, {
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, {
10
13
  shimmerLines: (({
11
14
  $: import('vue').ComponentInternalInstance;
12
15
  $data: {};
13
16
  $props: {
14
17
  readonly shimmerClasses?: ClassTypeProp;
15
- readonly enabled?: boolean | undefined;
16
18
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
17
19
  $attrs: {
18
20
  [x: string]: unknown;
@@ -27,8 +29,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
27
29
  $parent: import('vue').ComponentPublicInstance | null;
28
30
  $host: Element | null;
29
31
  $emit: (event: string, ...args: any[]) => void;
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> & {
32
+ $el: any;
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> & {
32
36
  beforeCreate?: (() => void) | (() => void)[];
33
37
  created?: (() => void) | (() => void)[];
34
38
  beforeMount?: (() => void) | (() => void)[];
@@ -48,7 +52,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
48
52
  $forceUpdate: () => void;
49
53
  $nextTick: typeof import('vue').nextTick;
50
54
  $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;
51
- } & Readonly<{}> & Omit<Readonly<BaseShimmerLoaderProps> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
55
+ } & Readonly<{}> & Omit<Readonly<{
56
+ shimmerClasses?: ClassTypeProp;
57
+ }> & Readonly<{}>, never> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
52
58
  $slots: {
53
59
  default?(_: {}): any;
54
60
  };
@@ -1 +1 @@
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
+ .shimmer[data-v-4aceb4a2]{animation:shimmer-4aceb4a2 1.4s infinite;will-change:transform;transform:translateZ(0) translate(-100%);background-image:linear-gradient(90deg,#fff0,#fff3 20%,#ffffff80 60%,#fff0)}@keyframes shimmer-4aceb4a2{to{transform:translate(100%)}}
@@ -1 +1 @@
1
- .swiper-pagination-bullet{--swiper-pagination-color: #ccc}.swiper-pagination-bullet-active{--swiper-pagination-color: #fff}
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}
@@ -0,0 +1 @@
1
+ .swiper-pagination-bullet{--swiper-pagination-color: #ccc}.swiper-pagination-bullet-active{--swiper-pagination-color: #fff}
@@ -1,5 +1,5 @@
1
1
  export interface IntersectionObserverProviderProps {
2
- emitOnce?: boolean;
2
+ observeOnce?: boolean;
3
3
  skip?: boolean;
4
4
  threshold?: number;
5
5
  }
@@ -10,6 +10,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<In
10
10
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
11
11
  default?(_: {
12
12
  observer: IntersectionObserver | undefined;
13
+ isVisible: boolean;
14
+ }): any;
15
+ default?(_: {
16
+ observer: IntersectionObserver | undefined;
17
+ isVisible: boolean;
13
18
  }): any;
14
19
  }>;
15
20
  export default _default;
@@ -1,15 +1,8 @@
1
- type __VLS_Props = {
2
- observeOnce?: boolean;
3
- };
4
1
  declare function __VLS_template(): {
5
2
  attrs: Partial<{}>;
6
3
  slots: {
7
- default?(_: {
8
- isVisible: boolean;
9
- }): any;
10
- default?(_: {
11
- isVisible: true;
12
- }): any;
4
+ default?(_: {}): any;
5
+ default?(_: {}): any;
13
6
  };
14
7
  refs: {
15
8
  root: HTMLDivElement;
@@ -17,7 +10,7 @@ declare function __VLS_template(): {
17
10
  rootEl: any;
18
11
  };
19
12
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
- 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, {
13
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
21
14
  root: HTMLDivElement;
22
15
  }, any>;
23
16
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -1,4 +1,4 @@
1
1
  import { InjectionKey, ShallowRef } from 'vue';
2
- export declare const ObserveTargetKey: InjectionKey<(e: Element) => void>;
3
- export declare const UnobserveTargetKey: InjectionKey<(e: Element) => void>;
4
- export declare const VisibleTargetsKey: InjectionKey<ShallowRef<Set<string>>>;
2
+ export declare const ObserverOnceKey: InjectionKey<boolean>;
3
+ export declare const ObserverKey: InjectionKey<ShallowRef<IntersectionObserver | undefined>>;
4
+ export declare const IsVisibleKey: InjectionKey<ShallowRef<boolean>>;
@@ -1,6 +1,6 @@
1
1
  const e = /* @__PURE__ */ Symbol(), o = /* @__PURE__ */ Symbol(), s = /* @__PURE__ */ Symbol();
2
2
  export {
3
- e as ObserveTargetKey,
4
- o as UnobserveTargetKey,
5
- s as VisibleTargetsKey
3
+ s as IsVisibleKey,
4
+ o as ObserverKey,
5
+ e as ObserverOnceKey
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import o from "../../../packages/components/lib/components/carousel/Primitive/SwiperPaginationPrimitive.vue.js";
2
- import '../../../assets/SwiperCarousel.css';/* empty css */
2
+ import '../../../assets/SwiperPaginationPrimitive.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/SwiperCarousel2.css';import '../../assets/SwiperCarousel.css';/* empty css */
2
+ import '../../assets/SwiperCarousel.css';import '../../assets/SwiperPaginationPrimitive.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
@@ -59,8 +59,8 @@ export { default as SwiperPrimitive } from './components/carousel/Primitive/Swip
59
59
  export { default as SwiperPaginationPrimitive } from './components/carousel/Primitive/SwiperPaginationPrimitive';
60
60
  export { default as SwiperNavigationPrimitive } from './components/carousel/Primitive/SwiperNavigationPrimitive';
61
61
  export { default as SwiperSlideImagePrimitive } from './components/carousel/Primitive/SwiperSlideImagePrimitive';
62
- export { default as BaseCard } from './UIKit/Card/BaseCard';
63
- export { default as CardRootPrimitive } from './UIKit/Card/CardRootPrimitive';
64
- export { default as CardDescriptionPrimitive } from './UIKit/Card/CardDescriptionPrimitive';
65
- export { default as CardImagePrimitive } from './UIKit/Card/CardImagePrimitive';
62
+ export { default as BaseCard } from './UIKit/BaseCard/BaseCard';
63
+ export { default as BaseCardRoot } from './UIKit/BaseCard/BaseCardRoot';
64
+ export { default as BaseCardDescription } from './UIKit/BaseCard/BaseCardDescription';
65
+ export { default as BaseCardImage } from './UIKit/BaseCard/BaseCardImage';
66
66
  export { default as BaseBreadcrumb } from './UIKit/BaseBreadcrumb';
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { default as P } from "./packages/components/lib/UIKit/Accordion/BaseAccordion.vue.js";
1
+ import { default as g } 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/CardRootPrimitive.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 */
3
+ import './assets/BaseCardRoot.css';import './assets/SwiperSlideImagePrimitive.css';import './assets/SwiperPaginationPrimitive.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";
@@ -21,7 +21,7 @@ import { default as Z } 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 re } from "./packages/components/lib/UIKit/Tab/v2/BaseTabsIndicator.vue.js";
23
23
  /* empty css */
24
- import { default as oe } from "./packages/components/lib/UIKit/Tab/v2/BaseTabsList.vue.js";
24
+ import { default as te } from "./packages/components/lib/UIKit/Tab/v2/BaseTabsList.vue.js";
25
25
  import { default as fe } from "./packages/components/lib/UIKit/Tab/v2/BaseTabsTrigger.vue.js";
26
26
  import { default as me } from "./packages/components/lib/UIKit/Radio/RadioButton.vue.js";
27
27
  import { default as pe } from "./packages/components/lib/UIKit/Radio/RadioGroup.vue.js";
@@ -29,9 +29,9 @@ import { default as le } from "./packages/components/lib/UIKit/Radio/v2/RadioBut
29
29
  import { default as xe } from "./packages/components/lib/UIKit/Radio/v2/RadioButtonItem.vue.js";
30
30
  /* empty css */
31
31
  import { default as Be } from "./packages/components/lib/UIKit/Radio/v2/RadioGroupItemPrimitive.vue.js";
32
- import { default as ve } from "./packages/components/lib/UIKit/AccessibleSelect.vue.js";
32
+ import { default as be } from "./packages/components/lib/UIKit/AccessibleSelect.vue.js";
33
33
  /* empty css */
34
- import { default as Pe } from "./packages/components/lib/UIKit/BaseAlert.vue.js";
34
+ import { default as ge } from "./packages/components/lib/UIKit/BaseAlert.vue.js";
35
35
  /* empty css */
36
36
  import { default as Se } from "./packages/components/lib/UIKit/BaseAutocomplete.vue.js";
37
37
  /* empty css */
@@ -56,7 +56,7 @@ import { default as Xe } from "./packages/components/lib/UIKit/BaseModal.vue.js"
56
56
  import { default as Ze } from "./UIKit/StaticSpinner.js";
57
57
  import { default as $e } from "./UIKit/ShimmerLoader/BaseShimmerLoader.js";
58
58
  import { default as rr } from "./packages/components/lib/UIKit/ShimmerLoader/ShimmerMultiLine.vue.js";
59
- import { default as or } from "./packages/components/lib/chart/DoughnutChart.vue.js";
59
+ import { default as tr } from "./packages/components/lib/chart/DoughnutChart.vue.js";
60
60
  import { default as fr } from "./packages/components/lib/chart/LineChart.vue.js";
61
61
  import { default as mr } from "./UIKit/Slider/SimpleSlider.js";
62
62
  import { default as pr } from "./packages/components/lib/UIKit/BaseSnackbar.vue.js";
@@ -64,8 +64,8 @@ import { default as pr } from "./packages/components/lib/UIKit/BaseSnackbar.vue.
64
64
  import { default as lr } from "./packages/components/lib/components/IntersectionObserver/IntersectionObservable.vue.js";
65
65
  import { default as xr } from "./packages/components/lib/components/IntersectionObserver/IntersectionObserver.vue.js";
66
66
  import { default as Br } from "./packages/components/lib/components/IntersectionObserver/v2/IntersectionObserverProvider.vue.js";
67
- import { default as vr } from "./packages/components/lib/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js";
68
- import { default as Pr } from "./components/carousel/SwiperCarousel.js";
67
+ import { default as br } from "./packages/components/lib/components/IntersectionObserver/v2/IntersectionObserverTarget.vue.js";
68
+ import { default as gr } from "./components/carousel/SwiperCarousel.js";
69
69
  import { default as Sr } from "./components/carousel/SwiperSlide.js";
70
70
  import { default as Ir } from "./components/carousel/Primitive/SwiperRootPrimitive.js";
71
71
  import { default as hr } from "./packages/components/lib/components/carousel/Primitive/SwiperPrimitive.vue.js";
@@ -74,27 +74,30 @@ import { default as wr } from "./packages/components/lib/components/carousel/Pri
74
74
  import { default as Gr } from "./packages/components/lib/components/carousel/Primitive/SwiperNavigationPrimitive.vue.js";
75
75
  import { default as Lr } from "./packages/components/lib/components/carousel/Primitive/SwiperSlideImagePrimitive.vue.js";
76
76
  /* empty css */
77
- import { default as Or } from "./packages/components/lib/UIKit/Card/BaseCard.vue.js";
78
- /* empty css */
79
- import { default as Mr } from "./packages/components/lib/UIKit/Card/CardRootPrimitive.vue.js";
80
- /* empty css */
81
- import { default as Nr } from "./UIKit/Card/CardDescriptionPrimitive.js";
82
- import { default as Vr } from "./packages/components/lib/UIKit/Card/CardImagePrimitive.vue.js";
77
+ import { default as Or } from "./packages/components/lib/UIKit/BaseCard/BaseCard.vue.js";
78
+ /* empty css */
79
+ import { default as Mr } from "./packages/components/lib/UIKit/BaseCard/BaseCardRoot.vue.js";
80
+ /* empty css */
81
+ import { default as Nr } from "./UIKit/BaseCard/BaseCardDescription.js";
82
+ import { default as Vr } from "./packages/components/lib/UIKit/BaseCard/BaseCardImage.vue.js";
83
83
  import { default as qr } from "./packages/components/lib/UIKit/BaseBreadcrumb.vue.js";
84
84
  export {
85
- ve as AccessibleSelect,
85
+ be as AccessibleSelect,
86
86
  G as AccordionContentPrimitive,
87
87
  h as AccordionHeaderPrimitive,
88
88
  I as AccordionItemPrimitive,
89
89
  w as AccordionTriggerPrimitive,
90
- P as BaseAccordion,
90
+ g as BaseAccordion,
91
91
  S as BaseAccordionItem,
92
- Pe as BaseAlert,
92
+ ge as BaseAlert,
93
93
  Se as BaseAutocomplete,
94
94
  he as BaseBadge,
95
95
  qr as BaseBreadcrumb,
96
96
  we as BaseButton,
97
97
  Or as BaseCard,
98
+ Nr as BaseCardDescription,
99
+ Vr as BaseCardImage,
100
+ Mr as BaseCardRoot,
98
101
  Ge as BaseComplexToggle,
99
102
  Le as BaseDropDown,
100
103
  Oe as BaseFloatingLabel,
@@ -109,26 +112,23 @@ export {
109
112
  Z as BaseTabs,
110
113
  $ as BaseTabsContent,
111
114
  re as BaseTabsIndicator,
112
- oe as BaseTabsList,
115
+ te as BaseTabsList,
113
116
  fe as BaseTabsTrigger,
114
117
  qe as BaseTextarea,
115
118
  ze as BaseToggle,
116
119
  Je as BaseTooltip,
117
120
  Qe as BaseUploadFile,
118
- Nr as CardDescriptionPrimitive,
119
- Vr as CardImagePrimitive,
120
- Mr as CardRootPrimitive,
121
121
  N as CheckboxBtn,
122
122
  q as CheckboxButtonGroup,
123
123
  V as CheckboxGroup,
124
124
  J as CheckboxGroupItemPrimitive,
125
125
  z as CheckboxGroupPrimitive,
126
126
  Ie as ClearableAutocomplete,
127
- or as DoughnutChart,
127
+ tr as DoughnutChart,
128
128
  lr as IntersectionObservable,
129
129
  xr as IntersectionObserver,
130
130
  Br as IntersectionObserverProvider,
131
- vr as IntersectionObserverTarget,
131
+ br as IntersectionObserverTarget,
132
132
  fr as LineChart,
133
133
  M as ProgressIndicatorPrimitive,
134
134
  O as ProgressRootPrimitive,
@@ -141,7 +141,7 @@ export {
141
141
  rr as ShimmerMultiLine,
142
142
  mr as SimpleSlider,
143
143
  Ze as StaticSpinner,
144
- Pr as SwiperCarousel,
144
+ gr as SwiperCarousel,
145
145
  Gr as SwiperNavigationPrimitive,
146
146
  wr as SwiperPaginationPrimitive,
147
147
  hr as SwiperPrimitive,
@@ -0,0 +1,16 @@
1
+ import { defineComponent as r, inject as t, computed as s, createElementBlock as c, openBlock as n, normalizeClass as m, renderSlot as d } from "vue";
2
+ import { CardTypeKey as l } from "../../../../../UIKit/BaseCard/type.js";
3
+ const f = /* @__PURE__ */ r({
4
+ __name: "BaseCardImage",
5
+ setup(p) {
6
+ const e = t(l, void 0), a = s(() => e ? `${e}-img` : "");
7
+ return (o, i) => (n(), c("div", {
8
+ class: m(["card-img", [a.value]])
9
+ }, [
10
+ d(o.$slots, "default")
11
+ ], 2));
12
+ }
13
+ });
14
+ export {
15
+ f as default
16
+ };
@@ -1,22 +1,22 @@
1
- import { defineComponent as n, computed as r, provide as c, createBlock as d, openBlock as m, resolveDynamicComponent as p, normalizeClass as u, withCtx as f, renderSlot as y } from "vue";
2
- import { CardTypeKey as C } from "../../../../../UIKit/Card/type.js";
3
- const w = /* @__PURE__ */ n({
4
- __name: "CardRootPrimitive",
1
+ import { defineComponent as r, computed as c, provide as i, createBlock as d, openBlock as m, resolveDynamicComponent as p, normalizeClass as u, withCtx as f, renderSlot as y } from "vue";
2
+ import { CardTypeKey as C } from "../../../../../UIKit/BaseCard/type.js";
3
+ const w = /* @__PURE__ */ r({
4
+ __name: "BaseCardRoot",
5
5
  props: {
6
6
  type: { default: "" },
7
7
  as: { default: "div" }
8
8
  },
9
9
  emits: ["click"],
10
10
  setup(e, { emit: a }) {
11
- const o = a, s = r(
11
+ const o = a, s = c(
12
12
  () => e.type === "news" ? "news-card" : e.type
13
13
  );
14
- return c(C, e.type), (i, t) => (m(), d(p(e.as), {
14
+ return i(C, e.type), (l, t) => (m(), d(p(e.as), {
15
15
  class: u(["uikit-card", s.value]),
16
- onClick: t[0] || (t[0] = (l) => o("click", l))
16
+ onClick: t[0] || (t[0] = (n) => o("click", n))
17
17
  }, {
18
18
  default: f(() => [
19
- y(i.$slots, "default")
19
+ y(l.$slots, "default")
20
20
  ]),
21
21
  _: 3
22
22
  }, 8, ["class"]));
@@ -1,20 +1,22 @@
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({
1
+ import { defineComponent as l, createElementBlock as s, openBlock as r, normalizeStyle as a, normalizeClass as t, createElementVNode as o, renderSlot as u } from "vue";
2
+ const d = /* @__PURE__ */ l({
3
+ inheritAttrs: !1,
3
4
  __name: "BaseShimmerLoader",
4
5
  props: {
5
- shimmerClasses: { default: "" },
6
- enabled: { type: Boolean, default: !0 }
6
+ shimmerClasses: { default: "" }
7
7
  },
8
- setup(e) {
9
- return (t, u) => (l(), a("div", n, [
8
+ setup(i) {
9
+ return (e, n) => (r(), s("div", {
10
+ class: t(["uikit-relative uikit-overflow-hidden uikit-bg-w-lavender", e.$attrs.class]),
11
+ style: a(e.$attrs.style)
12
+ }, [
10
13
  o("div", {
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
- ]));
14
+ class: t(["shimmer uikit-absolute uikit-bottom-0 uikit-left-0 uikit-right-0 uikit-top-0 uikit-h-full -uikit-translate-x-full", i.shimmerClasses])
15
+ }, null, 2),
16
+ u(e.$slots, "default", {}, void 0, !0)
17
+ ], 6));
16
18
  }
17
19
  });
18
20
  export {
19
- c as default
21
+ d as default
20
22
  };
@@ -1,16 +1,15 @@
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";
1
+ import { defineComponent as i, createElementBlock as n, openBlock as t, Fragment as l, renderList as a, createBlock as m, normalizeStyle as s, normalizeClass as o } from "vue";
2
2
  import u from "../../../../../UIKit/ShimmerLoader/BaseShimmerLoader.js";
3
- const k = /* @__PURE__ */ l({
3
+ const k = /* @__PURE__ */ i({
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 },
10
- enabled: { type: Boolean, default: !0 }
9
+ inheritHeight: { type: Boolean, default: !1 }
11
10
  },
12
11
  setup(e) {
13
- return (d, h) => (t(!0), a(r, null, i(e.lines, (n) => (t(), m(u, {
12
+ return (h, d) => (t(!0), n(l, null, a(e.lines, (r) => (t(), m(u, {
14
13
  ref_for: !0,
15
14
  ref: "shimmerLines",
16
15
  class: o(["shimmer-line", [
@@ -18,12 +17,11 @@ const k = /* @__PURE__ */ l({
18
17
  e.inheritHeight ? "uikit-h-[1em]" : "uikit-h-8",
19
18
  "uikit-mb-2 uikit-rounded-xs"
20
19
  ]]),
21
- enabled: e.enabled,
22
- key: `sml-${n}`,
20
+ key: `sml-${r}`,
23
21
  style: s({
24
22
  marginRight: e.randomLength ? `${Math.round(Math.random() * 5) * 10}%` : 0
25
23
  })
26
- }, null, 8, ["class", "enabled", "style"]))), 128));
24
+ }, null, 8, ["class", "style"]))), 128));
27
25
  }
28
26
  });
29
27
  export {
@@ -1,39 +1,46 @@
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({
1
+ import { defineComponent as d, shallowRef as i, provide as t, onBeforeMount as m, onBeforeUnmount as O, createElementBlock as h, renderSlot as a, openBlock as y, normalizeClass as k } from "vue";
2
+ import { ObserverOnceKey as B, ObserverKey as p, IsVisibleKey as V } from "../../../../../../components/IntersectionObserver/v2/types.js";
3
+ const $ = /* @__PURE__ */ d({
4
4
  __name: "IntersectionObserverProvider",
5
5
  props: {
6
- emitOnce: { type: Boolean, default: !1 },
6
+ observeOnce: { type: Boolean, default: !0 },
7
7
  skip: { type: Boolean, default: !1 },
8
8
  threshold: { default: 0 }
9
9
  },
10
10
  emits: ["intersection"],
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;
11
+ setup(s, { emit: u }) {
12
+ const v = u, o = i(!1), e = i(), c = (r) => {
13
+ s.skip || r.forEach(({ target: n, isIntersecting: l }) => {
14
+ o.value = l, l && (v("intersection"), s.observeOnce && f(n));
18
15
  });
19
- }, v = () => {
20
- t.value?.disconnect();
16
+ }, f = (r) => {
17
+ e.value && e.value.unobserve(r);
18
+ }, b = () => {
19
+ e.value && e.value.disconnect();
21
20
  };
22
- return i(g, r), i(O, (e) => {
23
- t.value?.observe(e);
24
- }), i(y, (e) => {
25
- t.value?.unobserve(e);
26
- }), b(() => {
27
- t.value = new IntersectionObserver(d, {
21
+ return t(B, s.observeOnce), t(p, e), t(V, o), m(() => {
22
+ e.value = new IntersectionObserver(c, {
28
23
  root: null,
29
24
  //if the root is null, then we will check if the target is visible in the doc root!
30
- threshold: n.threshold
25
+ threshold: s.threshold
31
26
  });
32
- }), h(() => {
33
- v();
34
- }), (e, l) => p(e.$slots, "default", { observer: t.value });
27
+ }), O(() => {
28
+ b();
29
+ }), (r, n) => s.observeOnce ? a(r.$slots, "default", {
30
+ key: 1,
31
+ observer: e.value,
32
+ isVisible: o.value
33
+ }) : (y(), h("div", {
34
+ key: 0,
35
+ class: k(r.$attrs["root-classes"])
36
+ }, [
37
+ a(r.$slots, "default", {
38
+ observer: e.value,
39
+ isVisible: o.value
40
+ })
41
+ ], 2));
35
42
  }
36
43
  });
37
44
  export {
38
- T as default
45
+ $ as default
39
46
  };
@@ -1,31 +1,21 @@
1
- import { defineComponent as f, useTemplateRef as b, useId as g, inject as r, computed as m, onMounted as p, watch as T, createElementBlock as y, renderSlot as a, openBlock as B, unref as k } from "vue";
2
- import { VisibleTargetsKey as O, ObserveTargetKey as _, UnobserveTargetKey as h } from "../../../../../../components/IntersectionObserver/v2/types.js";
3
- const E = ["target-id"], D = /* @__PURE__ */ f({
1
+ import { defineComponent as i, useTemplateRef as c, inject as r, onMounted as u, createElementBlock as v, renderSlot as t, unref as n, openBlock as f, normalizeClass as d } from "vue";
2
+ import { ObserverOnceKey as m, ObserverKey as p, IsVisibleKey as b } from "../../../../../../components/IntersectionObserver/v2/types.js";
3
+ const K = /* @__PURE__ */ i({
4
4
  __name: "IntersectionObserverTarget",
5
- props: {
6
- observeOnce: { type: Boolean, default: !0 }
7
- },
8
- setup(s) {
9
- const e = b("root"), n = g(), u = r(O, void 0), l = r(_, void 0), v = r(h, void 0), t = m(
10
- () => u?.value.has(n) || !1
11
- );
12
- return p(() => {
13
- e.value && (console.log("DEBUG:mounted", l), console.log("DEBUG:mounted", e.value), l?.(e.value));
14
- }), T([t, e], ([o, i], [c, d]) => {
15
- s.observeOnce && (console.log("DEBUG:visible", { cur: o, curRoot: i, prev: c, prevRoot: d }), o && e.value && v?.(e.value));
16
- }), (o, i) => !s.observeOnce || !t.value ? (B(), y("div", {
5
+ setup(y) {
6
+ const e = c("root"), l = r(m, void 0), s = r(p, void 0), a = r(b, void 0);
7
+ return u(() => {
8
+ !s?.value || !e.value || s?.value.observe(e.value);
9
+ }), (o, _) => !n(l) || !n(a) ? (f(), v("div", {
17
10
  key: 0,
18
11
  ref_key: "root",
19
12
  ref: e,
20
- "target-id": k(n)
13
+ class: d(o.$attrs["root-classes"])
21
14
  }, [
22
- a(o.$slots, "default", { isVisible: t.value })
23
- ], 8, E)) : a(o.$slots, "default", {
24
- key: 1,
25
- isVisible: t.value
26
- });
15
+ t(o.$slots, "default")
16
+ ], 2)) : t(o.$slots, "default", { key: 1 });
27
17
  }
28
18
  });
29
19
  export {
30
- D as default
20
+ K as default
31
21
  };
@@ -29,5 +29,5 @@ export type { SwiperPaginationPrimitiveProps } from '../components/carousel/Prim
29
29
  export type { SwiperNavigationPrimitiveProps } from '../components/carousel/Primitive/SwiperNavigationPrimitive';
30
30
  export type { SwiperSlideImagePrimitiveProps } from '../components/carousel/Primitive/SwiperSlideImagePrimitive';
31
31
  export type { IntersectionObserverProviderProps } from '../components/IntersectionObserver/v2/IntersectionObserverProvider';
32
- export type { BaseCardRootProps, CardRootTypes, } from '../UIKit/Card/CardRootPrimitive';
33
- export type { CardTypes } from '../UIKit/Card/type';
32
+ export type { BaseCardRootProps, CardRootTypes, } from '../UIKit/BaseCard/BaseCardRoot';
33
+ export type { CardTypes } from '../UIKit/BaseCard/type';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.5.6-alpha.12",
3
+ "version": "2.5.6-alpha.2",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,5 +0,0 @@
1
- import o from "../../packages/components/lib/UIKit/Card/BaseCard.vue.js";
2
- import '../../assets/CardRootPrimitive.css';/* empty css */
3
- export {
4
- o as default
5
- };
@@ -1,12 +0,0 @@
1
- import { createElementBlock as r, openBlock as o, renderSlot as t } from "vue";
2
- import c from "../../_virtual/_plugin-vue_export-helper.js";
3
- const n = {}, s = { class: "card-body" };
4
- function i(e, d) {
5
- return o(), r("div", s, [
6
- t(e.$slots, "default")
7
- ]);
8
- }
9
- const f = /* @__PURE__ */ c(n, [["render", i]]);
10
- export {
11
- f as default
12
- };
@@ -1,4 +0,0 @@
1
- import f from "../../packages/components/lib/UIKit/Card/CardImagePrimitive.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,5 +0,0 @@
1
- import o from "../../packages/components/lib/UIKit/Card/CardRootPrimitive.vue.js";
2
- import '../../assets/CardRootPrimitive.css';/* empty css */
3
- export {
4
- o as default
5
- };
@@ -1 +0,0 @@
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,16 +0,0 @@
1
- import { defineComponent as t, inject as a, computed as c, createElementBlock as m, openBlock as n, normalizeClass as s, renderSlot as i } from "vue";
2
- import { CardTypeKey as d } from "../../../../../UIKit/Card/type.js";
3
- const f = /* @__PURE__ */ t({
4
- __name: "CardImagePrimitive",
5
- setup(l) {
6
- const e = a(d, void 0), r = c(() => e ? `${e}-img` : "");
7
- return (o, p) => (n(), m("div", {
8
- class: s(["card-img", [r.value]])
9
- }, [
10
- i(o.$slots, "default")
11
- ], 2));
12
- }
13
- });
14
- export {
15
- f as default
16
- };
File without changes
File without changes
File without changes