@wikicasa-dev/components 2.3.1-alpha.15 → 2.3.1-alpha.16

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,5 +1,5 @@
1
1
  import { Autoplay as t } from "swiper/modules";
2
- import '../assets/swiper-thumbs.css';/* empty css */
2
+ import '../assets/swiper-controller.css';/* empty css */
3
3
  export {
4
4
  t as Autoplay
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Controller as e } from "swiper/modules";
2
- import '../assets/swiper-thumbs.css';/* empty css */
2
+ import '../assets/swiper-controller.css';/* empty css */
3
3
  export {
4
4
  e as Controller
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Keyboard as m } from "swiper/modules";
2
- import '../assets/swiper-thumbs.css';/* empty css */
2
+ import '../assets/swiper-controller.css';/* empty css */
3
3
  export {
4
4
  m as Keyboard
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { Thumbs as p } from "swiper/modules";
2
- import '../assets/swiper-thumbs.css';/* empty css */
2
+ import '../assets/swiper-controller.css';/* empty css */
3
3
  export {
4
4
  p as Thumbs
5
5
  };
@@ -5,10 +5,8 @@ export interface BaseTabsProps<T extends string | number> extends Omit<TabsRootP
5
5
  declare const _default: <T extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
6
6
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
7
7
  readonly "onUpdate:modelValue"?: ((value: T) => any) | undefined;
8
- readonly "onUpdate:activeIdx"?: ((value: number) => any) | undefined;
9
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:activeIdx"> & ({
8
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
10
9
  modelValue?: T;
11
- activeIdx?: number;
12
10
  } & BaseTabsProps<T>) & Partial<{}>> & import('vue').PublicProps;
13
11
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
14
12
  attrs: any;
@@ -17,7 +15,7 @@ declare const _default: <T extends string | number>(__VLS_props: NonNullable<Awa
17
15
  modelValue: T;
18
16
  }): any;
19
17
  };
20
- emit: ((evt: "update:modelValue", value: T) => void) & ((evt: "update:activeIdx", value: number) => void);
18
+ emit: (evt: "update:modelValue", value: T) => void;
21
19
  }>) => import('vue').VNode & {
22
20
  __ctx?: Awaited<typeof __VLS_setup>;
23
21
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as p, mergeModels as x, createPropsRestProxy as y, useModel as i, shallowRef as V, provide as n, watch as s, createBlock as B, openBlock as T, unref as I, mergeProps as C, withCtx as M, renderSlot as h } from "vue";
2
- import { TabsRoot as w } from "reka-ui";
3
- const b = /* @__PURE__ */ p({
1
+ import { defineComponent as n, mergeModels as r, createPropsRestProxy as u, useModel as s, createBlock as m, openBlock as i, unref as p, mergeProps as f, withCtx as c, renderSlot as y } from "vue";
2
+ import { TabsRoot as V } from "reka-ui";
3
+ const M = /* @__PURE__ */ n({
4
4
  __name: "BaseTabs",
5
- props: /* @__PURE__ */ x({
5
+ props: /* @__PURE__ */ r({
6
6
  dataCy: {},
7
7
  defaultValue: {},
8
8
  orientation: {},
@@ -13,41 +13,19 @@ const b = /* @__PURE__ */ p({
13
13
  as: {}
14
14
  }, {
15
15
  modelValue: {},
16
- modelModifiers: {},
17
- activeIdx: { default: -1 },
18
- activeIdxModifiers: {}
16
+ modelModifiers: {}
19
17
  }),
20
- emits: ["update:modelValue", "update:activeIdx"],
21
- setup(l) {
22
- const c = y(l, ["dataCy"]), a = i(l, "modelValue"), o = i(l, "activeIdx"), r = V([]), g = (t) => {
23
- const e = r.value.length;
24
- r.value.push({
25
- idx: e,
26
- value: t
27
- }), d(o.value);
28
- }, v = (t) => {
29
- r.value = r.value.filter(
30
- (e) => e.value !== t
31
- );
32
- }, m = (t) => r.value.find((e) => e.value === t), d = (t) => {
33
- const e = r.value[t];
34
- !e || e.value === a.value || (a.value = e.value);
35
- }, f = (t) => {
36
- const e = m(t);
37
- !e || e.value === a.value || (o.value = e.idx);
38
- };
39
- return n("registerTrigger", g), n("unregisterTrigger", v), s(a, (t) => {
40
- f(t);
41
- }), s(o, (t) => {
42
- d(t);
43
- }), (t, e) => (T(), B(I(w), C(c, {
18
+ emits: ["update:modelValue"],
19
+ setup(e) {
20
+ const l = u(e, ["dataCy"]), a = s(e, "modelValue");
21
+ return (d, t) => (i(), m(p(V), f(l, {
44
22
  modelValue: a.value,
45
- "onUpdate:modelValue": e[0] || (e[0] = (u) => a.value = u),
46
- "data-cy": l.dataCy
23
+ "onUpdate:modelValue": t[0] || (t[0] = (o) => a.value = o),
24
+ "data-cy": e.dataCy
47
25
  }), {
48
- default: M(({ modelValue: u }) => [
49
- h(t.$slots, "default", {
50
- modelValue: u
26
+ default: c(({ modelValue: o }) => [
27
+ y(d.$slots, "default", {
28
+ modelValue: o
51
29
  })
52
30
  ]),
53
31
  _: 3
@@ -55,5 +33,5 @@ const b = /* @__PURE__ */ p({
55
33
  }
56
34
  });
57
35
  export {
58
- b as default
36
+ M as default
59
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wikicasa-dev/components",
3
- "version": "2.3.1-alpha.15",
3
+ "version": "2.3.1-alpha.16",
4
4
  "description": "Wikicasa frontend components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",