@ulu/frontend-vue 0.2.0-beta.13 → 0.2.0-beta.14
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.
|
@@ -5,9 +5,11 @@ type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
|
5
5
|
});
|
|
6
6
|
declare const __VLS_component: import('vue').DefineComponent<{}, {
|
|
7
7
|
vertical: boolean;
|
|
8
|
+
modifiers?: string | unknown[] | undefined;
|
|
8
9
|
defaultIndex?: number | undefined;
|
|
9
10
|
$props: {
|
|
10
11
|
readonly vertical?: boolean | undefined;
|
|
12
|
+
readonly modifiers?: string | unknown[] | undefined;
|
|
11
13
|
readonly defaultIndex?: number | undefined;
|
|
12
14
|
};
|
|
13
15
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UluTabGroup.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/UluTabGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UluTabGroup.vue.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/UluTabGroup.vue"],"names":[],"mappings":"AAoBA;wBAmJqB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;;6BAEtE,CAAC,EAAE,CAAC;;;AAVjC;;;;;;;;;2OAOG"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { createBlock as
|
|
2
|
-
import { TabGroup as
|
|
3
|
-
|
|
1
|
+
import { createBlock as l, openBlock as i, unref as t, withCtx as n, createElementVNode as d, mergeProps as c, renderSlot as u, normalizeProps as f, guardReactiveProps as m } from "vue";
|
|
2
|
+
import { TabGroup as p } from "@headlessui/vue";
|
|
3
|
+
import { useModifiers as v } from "../../composables/useModifiers.js";
|
|
4
|
+
const h = /* @__PURE__ */ Object.assign({
|
|
4
5
|
inheritAttrs: !1
|
|
5
6
|
}, {
|
|
6
7
|
__name: "UluTabGroup",
|
|
@@ -12,26 +13,34 @@ const b = /* @__PURE__ */ Object.assign({
|
|
|
12
13
|
/**
|
|
13
14
|
* Whether or not to use vertical layout
|
|
14
15
|
*/
|
|
15
|
-
vertical: Boolean
|
|
16
|
+
vertical: Boolean,
|
|
17
|
+
/**
|
|
18
|
+
* Class modifiers (ie. 'transparent', 'secondary', etc)
|
|
19
|
+
*/
|
|
20
|
+
modifiers: [String, Array]
|
|
16
21
|
},
|
|
17
22
|
setup(e) {
|
|
18
|
-
|
|
23
|
+
const a = e, { resolvedModifiers: s } = v({ props: a, baseClass: "tabs" });
|
|
24
|
+
return (r, b) => (i(), l(t(p), {
|
|
19
25
|
defaultIndex: e.defaultIndex,
|
|
20
26
|
vertical: e.vertical
|
|
21
27
|
}, {
|
|
22
|
-
default: n((
|
|
23
|
-
|
|
24
|
-
class:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
default: n((o) => [
|
|
29
|
+
d("div", c(r.$attrs, {
|
|
30
|
+
class: ["tabs", [
|
|
31
|
+
t(s),
|
|
32
|
+
{
|
|
33
|
+
"tabs--vertical": e.vertical
|
|
34
|
+
}
|
|
35
|
+
]]
|
|
36
|
+
}), [
|
|
37
|
+
u(r.$slots, "default", f(m(o)))
|
|
38
|
+
], 16)
|
|
30
39
|
]),
|
|
31
40
|
_: 3
|
|
32
41
|
}, 8, ["defaultIndex", "vertical"]));
|
|
33
42
|
}
|
|
34
43
|
});
|
|
35
44
|
export {
|
|
36
|
-
|
|
45
|
+
h as default
|
|
37
46
|
};
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<TabGroup
|
|
2
|
+
<TabGroup
|
|
3
|
+
v-slot="slotProps"
|
|
4
|
+
:defaultIndex="defaultIndex"
|
|
5
|
+
:vertical="vertical"
|
|
6
|
+
>
|
|
3
7
|
<div
|
|
8
|
+
v-bind="$attrs"
|
|
4
9
|
class="tabs"
|
|
5
|
-
:class="
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
:class="[
|
|
11
|
+
resolvedModifiers,
|
|
12
|
+
{
|
|
13
|
+
'tabs--vertical' : vertical
|
|
14
|
+
}
|
|
15
|
+
]"
|
|
8
16
|
>
|
|
9
17
|
<slot v-bind="slotProps"/>
|
|
10
18
|
</div>
|
|
@@ -13,12 +21,13 @@
|
|
|
13
21
|
|
|
14
22
|
<script setup>
|
|
15
23
|
import { TabGroup } from "@headlessui/vue";
|
|
24
|
+
import { useModifiers } from "../../composables/useModifiers.js";
|
|
16
25
|
|
|
17
26
|
defineOptions({
|
|
18
27
|
inheritAttrs: false
|
|
19
28
|
});
|
|
20
29
|
|
|
21
|
-
defineProps({
|
|
30
|
+
const props = defineProps({
|
|
22
31
|
/**
|
|
23
32
|
* Active tab index by default
|
|
24
33
|
*/
|
|
@@ -26,6 +35,12 @@
|
|
|
26
35
|
/**
|
|
27
36
|
* Whether or not to use vertical layout
|
|
28
37
|
*/
|
|
29
|
-
vertical: Boolean
|
|
38
|
+
vertical: Boolean,
|
|
39
|
+
/**
|
|
40
|
+
* Class modifiers (ie. 'transparent', 'secondary', etc)
|
|
41
|
+
*/
|
|
42
|
+
modifiers: [String, Array]
|
|
30
43
|
});
|
|
44
|
+
|
|
45
|
+
const { resolvedModifiers } = useModifiers({ props, baseClass: "tabs" });
|
|
31
46
|
</script>
|