@caipira/tamandua 0.0.75 → 0.0.77
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/Tab.js +2 -2
- package/dist/Tab.vue_vue_type_script_setup_true_lang-Do4j_sTY.js +45 -0
- package/dist/components.js +1 -1
- package/dist/{plugin-DBDBJ5_6.js → plugin-DqK7lirx.js} +1 -1
- package/dist/{plugins-2BvSkxcD.js → plugins-CjskQ71G.js} +1 -1
- package/dist/plugins.js +1 -1
- package/dist/tamandua.js +1 -1
- package/dist/types/components/Tab/Tab.story.d.ts +16 -0
- package/dist/types/components/Tab/Tab.vue.d.ts +6 -0
- package/dist/types/components/Tab/types.d.ts +2 -0
- package/package.json +1 -1
- package/dist/Tab.vue_vue_type_script_setup_true_lang-OuqLqd04.js +0 -47
package/dist/Tab.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as r } from "./Tab.vue_vue_type_script_setup_true_lang-
|
|
2
|
-
import { p as b } from "./plugin-
|
|
1
|
+
import { _ as r } from "./Tab.vue_vue_type_script_setup_true_lang-Do4j_sTY.js";
|
|
2
|
+
import { p as b } from "./plugin-DqK7lirx.js";
|
|
3
3
|
export {
|
|
4
4
|
r as Tab,
|
|
5
5
|
b as TabPlugin
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { defineComponent as p, ref as b, openBlock as t, createElementBlock as a, Fragment as l, createElementVNode as i, renderList as c, normalizeClass as s, toDisplayString as m, renderSlot as f, createCommentVNode as v } from "vue";
|
|
2
|
+
const _ = {
|
|
3
|
+
class: "flex md:flex-row flex-wrap list-none p-1 bg-[var(--unfocused-bg-color)] rounded-[var(--content-radius)]",
|
|
4
|
+
role: "tablist",
|
|
5
|
+
"aria-orientation": "horizontal",
|
|
6
|
+
"aria-label": "Tabs"
|
|
7
|
+
}, g = ["onClick"], x = /* @__PURE__ */ p({
|
|
8
|
+
name: "TTab",
|
|
9
|
+
__name: "Tab",
|
|
10
|
+
props: {
|
|
11
|
+
tabs: { default: () => [] },
|
|
12
|
+
headingFontSizeClass: { default: "text-base" },
|
|
13
|
+
contentMarginClass: { default: "mt-2" }
|
|
14
|
+
},
|
|
15
|
+
setup(u) {
|
|
16
|
+
const n = u, o = b(0);
|
|
17
|
+
return (d, C) => (t(), a(l, null, [
|
|
18
|
+
i("ul", _, [
|
|
19
|
+
(t(!0), a(l, null, c(n.tabs, (r, e) => (t(), a("li", {
|
|
20
|
+
role: "button",
|
|
21
|
+
class: s(["block py-2 px-4 rounded-[var(--content-radius)] cursor-pointer flex-1 text-center", {
|
|
22
|
+
"bg-caipira-primary": e === o.value,
|
|
23
|
+
[n.headingFontSizeClass]: !0
|
|
24
|
+
}]),
|
|
25
|
+
key: e,
|
|
26
|
+
onClick: (k) => o.value = e
|
|
27
|
+
}, m(r?.title), 11, g))), 128))
|
|
28
|
+
]),
|
|
29
|
+
i("div", {
|
|
30
|
+
class: s([n.contentMarginClass])
|
|
31
|
+
}, [
|
|
32
|
+
(t(!0), a(l, null, c(n.tabs, (r, e) => (t(), a("div", {
|
|
33
|
+
key: e,
|
|
34
|
+
class: s({ hidden: e !== o.value }),
|
|
35
|
+
role: "tabpanel"
|
|
36
|
+
}, [
|
|
37
|
+
r?.slot ? f(d.$slots, r.slot, { key: 0 }) : v("", !0)
|
|
38
|
+
], 2))), 128))
|
|
39
|
+
], 2)
|
|
40
|
+
], 64));
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
export {
|
|
44
|
+
x as _
|
|
45
|
+
};
|
package/dist/components.js
CHANGED
|
@@ -39,7 +39,7 @@ import { P as Cr } from "./ProgressCircle-C5CnEEoe.js";
|
|
|
39
39
|
import { P as br } from "./ProgressLine-BqINh5jh.js";
|
|
40
40
|
import { _ as Gr } from "./SensitiveInfo.vue_vue_type_script_setup_true_lang-D288W5VF.js";
|
|
41
41
|
import { _ as gr } from "./Skeleton.vue_vue_type_script_setup_true_lang-Dsy_4Ftz.js";
|
|
42
|
-
import { _ as vr } from "./Tab.vue_vue_type_script_setup_true_lang-
|
|
42
|
+
import { _ as vr } from "./Tab.vue_vue_type_script_setup_true_lang-Do4j_sTY.js";
|
|
43
43
|
import { T as Fr } from "./Table-vjjmPzlZ.js";
|
|
44
44
|
import { _ as Mr } from "./Tag.vue_vue_type_script_setup_true_lang-DxOWMwW8.js";
|
|
45
45
|
import { _ as Br } from "./Toast.vue_vue_type_script_setup_true_lang-CJK0nZDK.js";
|
|
@@ -55,7 +55,7 @@ import "./ProgressLine-BqINh5jh.js";
|
|
|
55
55
|
import { p as B } from "./plugin-DMGSStZm.js";
|
|
56
56
|
import { p as z } from "./plugin-BWfDY9pB.js";
|
|
57
57
|
import { p as E } from "./plugin-DYHfPgzY.js";
|
|
58
|
-
import { p as O } from "./plugin-
|
|
58
|
+
import { p as O } from "./plugin-DqK7lirx.js";
|
|
59
59
|
import "./Table-vjjmPzlZ.js";
|
|
60
60
|
import { p as q } from "./plugin-6KewRQ9w.js";
|
|
61
61
|
import "./Tag.vue_vue_type_script_setup_true_lang-DxOWMwW8.js";
|
package/dist/plugins.js
CHANGED
|
@@ -55,7 +55,7 @@ import "./ProgressLine-BqINh5jh.js";
|
|
|
55
55
|
import { p as Jr } from "./plugin-DMGSStZm.js";
|
|
56
56
|
import { p as Nr } from "./plugin-BWfDY9pB.js";
|
|
57
57
|
import { p as Qr } from "./plugin-DYHfPgzY.js";
|
|
58
|
-
import { p as Vr } from "./plugin-
|
|
58
|
+
import { p as Vr } from "./plugin-DqK7lirx.js";
|
|
59
59
|
import "./Table-vjjmPzlZ.js";
|
|
60
60
|
import { p as Xr } from "./plugin-6KewRQ9w.js";
|
|
61
61
|
import "./Tag.vue_vue_type_script_setup_true_lang-DxOWMwW8.js";
|
package/dist/tamandua.js
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Tab as TTab } from '../../types/ui.js';
|
|
2
|
+
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
args: {
|
|
6
|
+
headingFontSizeClass: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export default _default;
|
|
10
|
+
export declare const Tab: (args: any) => {
|
|
11
|
+
setup(): {
|
|
12
|
+
args: any;
|
|
13
|
+
tabs: TTab[];
|
|
14
|
+
};
|
|
15
|
+
template: string;
|
|
16
|
+
};
|
|
@@ -3,10 +3,16 @@ import { TabProps } from './types.js';
|
|
|
3
3
|
declare function __VLS_template(): Partial<Record<string, (_: {}) => any>>;
|
|
4
4
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TabProps>, {
|
|
5
5
|
tabs: () => never[];
|
|
6
|
+
headingFontSizeClass: string;
|
|
7
|
+
contentMarginClass: string;
|
|
6
8
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TabProps>, {
|
|
7
9
|
tabs: () => never[];
|
|
10
|
+
headingFontSizeClass: string;
|
|
11
|
+
contentMarginClass: string;
|
|
8
12
|
}>>>, {
|
|
9
13
|
tabs: import("../../index.js").Tab[];
|
|
14
|
+
headingFontSizeClass: string;
|
|
15
|
+
contentMarginClass: string;
|
|
10
16
|
}, {}>;
|
|
11
17
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
12
18
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, ref as b, openBlock as t, createElementBlock as l, Fragment as a, createElementVNode as n, renderList as c, normalizeClass as i, toDisplayString as m, renderSlot as _, createCommentVNode as f } from "vue";
|
|
2
|
-
const k = {
|
|
3
|
-
class: "flex flex-col md:flex-row flex-wrap rounded-xs list-none mb-6 pt-1 bg-[var(--unfocused-bg-color)]",
|
|
4
|
-
role: "tablist"
|
|
5
|
-
}, v = ["onClick"], h = {
|
|
6
|
-
class: "tab-content",
|
|
7
|
-
id: "tabs-tabContent"
|
|
8
|
-
}, x = /* @__PURE__ */ d({
|
|
9
|
-
name: "TTab",
|
|
10
|
-
__name: "Tab",
|
|
11
|
-
props: {
|
|
12
|
-
tabs: { default: () => [] }
|
|
13
|
-
},
|
|
14
|
-
setup(u) {
|
|
15
|
-
const s = u, r = b(0);
|
|
16
|
-
return (p, y) => (t(), l(a, null, [
|
|
17
|
-
n("ul", k, [
|
|
18
|
-
(t(!0), l(a, null, c(s.tabs, (o, e) => (t(), l("li", {
|
|
19
|
-
role: "presentation",
|
|
20
|
-
key: e
|
|
21
|
-
}, [
|
|
22
|
-
n("a", {
|
|
23
|
-
class: i(["block uppercase py-2 px-4", {
|
|
24
|
-
"bg-caipira-primary": e === r.value
|
|
25
|
-
}]),
|
|
26
|
-
href: "#",
|
|
27
|
-
role: "tab",
|
|
28
|
-
"aria-selected": "true",
|
|
29
|
-
onClick: (C) => r.value = e
|
|
30
|
-
}, m(o?.title), 11, v)
|
|
31
|
-
]))), 128))
|
|
32
|
-
]),
|
|
33
|
-
n("div", h, [
|
|
34
|
-
(t(!0), l(a, null, c(s.tabs, (o, e) => (t(), l("div", {
|
|
35
|
-
key: e,
|
|
36
|
-
class: i(["", { hidden: e !== r.value }]),
|
|
37
|
-
role: "tabpanel"
|
|
38
|
-
}, [
|
|
39
|
-
o?.slot ? _(p.$slots, o.slot, { key: 0 }) : f("", !0)
|
|
40
|
-
], 2))), 128))
|
|
41
|
-
])
|
|
42
|
-
], 64));
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
export {
|
|
46
|
-
x as _
|
|
47
|
-
};
|