@wikicasa-dev/components 2.3.1-alpha.15 → 2.3.1-alpha.17
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.js +1 -1
- package/dist/Swiper/controller.js +1 -1
- package/dist/Swiper/keyboard.js +1 -1
- package/dist/Swiper/thumbs.js +1 -1
- package/dist/UIKit/Tab/v2/BaseTabs.d.ts +3 -7
- package/dist/assets/BaseTabsIndicator.css +1 -1
- package/dist/packages/components/lib/UIKit/Tab/v2/BaseTabs.vue.js +16 -42
- package/package.json +1 -1
- /package/dist/assets/{swiper-thumbs.css → swiper-controller.css} +0 -0
package/dist/Swiper/autoplay.js
CHANGED
package/dist/Swiper/keyboard.js
CHANGED
package/dist/Swiper/thumbs.js
CHANGED
|
@@ -4,12 +4,8 @@ export interface BaseTabsProps<T extends string | number> extends Omit<TabsRootP
|
|
|
4
4
|
}
|
|
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
|
-
readonly "onUpdate:modelValue"?: ((
|
|
8
|
-
|
|
9
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:activeIdx"> & ({
|
|
10
|
-
modelValue?: T;
|
|
11
|
-
activeIdx?: number;
|
|
12
|
-
} & BaseTabsProps<T>) & Partial<{}>> & import('vue').PublicProps;
|
|
7
|
+
readonly "onUpdate:modelValue"?: ((payload: T) => any) | undefined;
|
|
8
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & BaseTabsProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
13
9
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
14
10
|
attrs: any;
|
|
15
11
|
slots: {
|
|
@@ -17,7 +13,7 @@ declare const _default: <T extends string | number>(__VLS_props: NonNullable<Awa
|
|
|
17
13
|
modelValue: T;
|
|
18
14
|
}): any;
|
|
19
15
|
};
|
|
20
|
-
emit: (
|
|
16
|
+
emit: (evt: "update:modelValue", payload: T) => void;
|
|
21
17
|
}>) => import('vue').VNode & {
|
|
22
18
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
23
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.uikit-base-tabs-indicator{--bg-color: #2B5DFF;--border-radius-top:
|
|
1
|
+
.uikit-base-tabs-indicator{--bg-color: #2B5DFF;--border-radius-top: 0;--border-radius-bottom: 0}.uikit-base-tabs-indicator .uikit-base-tabs-indicator-element{background-color:var(--bg-color);border-radius:var(--border-radius-top) var(--border-radius-top) var(--border-radius-bottom) var(--border-radius-bottom)}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { TabsRoot as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as s, createPropsRestProxy as l, createBlock as u, openBlock as i, unref as m, mergeProps as p, withCtx as c, renderSlot as f } from "vue";
|
|
2
|
+
import { TabsRoot as y } from "reka-ui";
|
|
3
|
+
const V = /* @__PURE__ */ s({
|
|
4
4
|
__name: "BaseTabs",
|
|
5
|
-
props:
|
|
5
|
+
props: {
|
|
6
6
|
dataCy: {},
|
|
7
7
|
defaultValue: {},
|
|
8
8
|
orientation: {},
|
|
@@ -11,49 +11,23 @@ const b = /* @__PURE__ */ p({
|
|
|
11
11
|
unmountOnHide: { type: Boolean },
|
|
12
12
|
asChild: { type: Boolean },
|
|
13
13
|
as: {}
|
|
14
|
-
},
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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, {
|
|
44
|
-
modelValue: a.value,
|
|
45
|
-
"onUpdate:modelValue": e[0] || (e[0] = (u) => a.value = u),
|
|
46
|
-
"data-cy": l.dataCy
|
|
14
|
+
},
|
|
15
|
+
emits: ["update:modelValue"],
|
|
16
|
+
setup(t, { emit: o }) {
|
|
17
|
+
const n = l(t, ["dataCy"]), d = o;
|
|
18
|
+
return (r, a) => (i(), u(m(y), p(n, {
|
|
19
|
+
"data-cy": t.dataCy,
|
|
20
|
+
"onUpdate:modelValue": a[0] || (a[0] = (e) => d("update:modelValue", e))
|
|
47
21
|
}), {
|
|
48
|
-
default:
|
|
49
|
-
|
|
50
|
-
modelValue:
|
|
22
|
+
default: c(({ modelValue: e }) => [
|
|
23
|
+
f(r.$slots, "default", {
|
|
24
|
+
modelValue: e
|
|
51
25
|
})
|
|
52
26
|
]),
|
|
53
27
|
_: 3
|
|
54
|
-
}, 16, ["
|
|
28
|
+
}, 16, ["data-cy"]));
|
|
55
29
|
}
|
|
56
30
|
});
|
|
57
31
|
export {
|
|
58
|
-
|
|
32
|
+
V as default
|
|
59
33
|
};
|
package/package.json
CHANGED
|
File without changes
|