@vifui/core 0.4.0-alpha.6 → 0.6.0-alpha.8
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/README.md +13 -19
- package/dist/components/accordion/accordion-body.vue.d.ts +2 -1
- package/dist/components/accordion/accordion-body.vue.js +1 -1
- package/dist/components/accordion/accordion-content.vue.d.ts +2 -1
- package/dist/components/accordion/accordion-content.vue.js +1 -1
- package/dist/components/accordion/accordion-header.vue.d.ts +2 -1
- package/dist/components/accordion/accordion-header.vue.js +1 -1
- package/dist/components/accordion/accordion-indicator.vue.d.ts +2 -1
- package/dist/components/accordion/accordion-indicator.vue.js +1 -1
- package/dist/components/accordion/accordion-item.vue.d.ts +2 -1
- package/dist/components/accordion/accordion-item.vue.js +1 -1
- package/dist/components/accordion/accordion-root.vue.d.ts +2 -1
- package/dist/components/accordion/accordion-root.vue.js +1 -1
- package/dist/components/accordion/accordion-trigger.vue.d.ts +2 -1
- package/dist/components/accordion/accordion-trigger.vue.js +1 -1
- package/dist/components/accordion/index.d.ts +15 -15
- package/dist/components/alert/alert-body.vue.d.ts +2 -2
- package/dist/components/alert/alert-body.vue.js +1 -1
- package/dist/components/alert/alert-close.vue.d.ts +2 -1
- package/dist/components/alert/alert-close.vue.js +17 -5
- package/dist/components/alert/alert-content.vue.d.ts +5 -5
- package/dist/components/alert/alert-content.vue.js +2 -5
- package/dist/components/alert/alert-description.vue.d.ts +3 -3
- package/dist/components/alert/alert-description.vue.js +2 -5
- package/dist/components/alert/alert-footer.vue.d.ts +2 -2
- package/dist/components/alert/alert-footer.vue.js +1 -1
- package/dist/components/alert/alert-header.vue.d.ts +3 -3
- package/dist/components/alert/alert-header.vue.js +2 -5
- package/dist/components/alert/alert-icon.vue.d.ts +3 -2
- package/dist/components/alert/alert-icon.vue.js +1 -1
- package/dist/components/alert/alert-root.vue.d.ts +2 -2
- package/dist/components/alert/alert-root.vue.js +6 -2
- package/dist/components/alert/alert-title.vue.d.ts +3 -3
- package/dist/components/alert/alert-title.vue.js +2 -5
- package/dist/components/alert/index.d.ts +19 -19
- package/dist/components/avatar/avatar-fallback.vue.d.ts +2 -2
- package/dist/components/avatar/avatar-fallback.vue.js +1 -1
- package/dist/components/avatar/avatar-group.vue.d.ts +2 -2
- package/dist/components/avatar/avatar-group.vue.js +1 -1
- package/dist/components/avatar/avatar-image.vue.d.ts +2 -2
- package/dist/components/avatar/avatar-image.vue.js +1 -1
- package/dist/components/avatar/avatar-root.vue.d.ts +2 -2
- package/dist/components/avatar/avatar-root.vue.js +1 -1
- package/dist/components/avatar/index.d.ts +9 -9
- package/dist/components/badge/badge.vue.d.ts +2 -1
- package/dist/components/badge/badge.vue.js +1 -1
- package/dist/components/badge/index.d.ts +3 -3
- package/dist/components/breadcrumb/breadcrumb-current-link.vue.d.ts +2 -1
- package/dist/components/breadcrumb/breadcrumb-current-link.vue.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-item.vue.d.ts +2 -1
- package/dist/components/breadcrumb/breadcrumb-item.vue.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-link.vue.d.ts +2 -1
- package/dist/components/breadcrumb/breadcrumb-link.vue.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-list.vue.d.ts +2 -1
- package/dist/components/breadcrumb/breadcrumb-list.vue.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-root.vue.d.ts +2 -1
- package/dist/components/breadcrumb/breadcrumb-root.vue.js +1 -1
- package/dist/components/breadcrumb/breadcrumb-separator.vue.d.ts +2 -1
- package/dist/components/breadcrumb/breadcrumb-separator.vue.js +1 -1
- package/dist/components/breadcrumb/index.d.ts +1 -1
- package/dist/components/button/button.vue.d.ts +3 -2
- package/dist/components/button/button.vue.js +6 -26
- package/dist/components/button/index.d.ts +3 -3
- package/dist/components/card/card-body.vue.d.ts +2 -1
- package/dist/components/card/card-body.vue.js +1 -1
- package/dist/components/card/card-footer.vue.d.ts +2 -1
- package/dist/components/card/card-footer.vue.js +1 -1
- package/dist/components/card/card-header.vue.d.ts +2 -1
- package/dist/components/card/card-header.vue.js +1 -1
- package/dist/components/card/card-media.vue.d.ts +2 -1
- package/dist/components/card/card-media.vue.js +1 -1
- package/dist/components/card/card-root.vue.d.ts +2 -1
- package/dist/components/card/card-root.vue.js +1 -1
- package/dist/components/checkbox/checkbox-group-item.vue.d.ts +2 -1
- package/dist/components/checkbox/checkbox-group-item.vue.js +1 -1
- package/dist/components/checkbox/checkbox-group.vue.d.ts +2 -1
- package/dist/components/checkbox/checkbox-group.vue.js +1 -1
- package/dist/components/checkbox/checkbox-indicator.vue.d.ts +2 -1
- package/dist/components/checkbox/checkbox-indicator.vue.js +1 -1
- package/dist/components/checkbox/checkbox-label.vue.d.ts +2 -1
- package/dist/components/checkbox/checkbox-label.vue.js +1 -1
- package/dist/components/checkbox/checkbox-root.vue.d.ts +2 -1
- package/dist/components/checkbox/checkbox-root.vue.js +1 -1
- package/dist/components/divider/divider.vue.d.ts +2 -1
- package/dist/components/divider/divider.vue.js +1 -1
- package/dist/components/divider/index.d.ts +3 -3
- package/dist/components/index.d.ts +3 -0
- package/dist/components/list/index.d.ts +19 -0
- package/dist/components/list/index.js +10 -0
- package/dist/components/list/list-avatar.vue.d.ts +19 -0
- package/dist/components/list/list-avatar.vue.js +27 -0
- package/dist/components/list/list-avatar.vue2.js +5 -0
- package/dist/components/list/list-content.vue.d.ts +19 -0
- package/dist/components/list/list-content.vue.js +27 -0
- package/dist/components/list/list-content.vue2.js +5 -0
- package/dist/components/list/list-header.vue.d.ts +31 -0
- package/dist/components/list/list-header.vue.js +32 -0
- package/dist/components/list/list-header.vue2.js +5 -0
- package/dist/components/list/list-icon.vue.d.ts +19 -0
- package/dist/components/list/list-icon.vue.js +27 -0
- package/dist/components/list/list-icon.vue2.js +5 -0
- package/dist/components/list/list-item.vue.d.ts +46 -0
- package/dist/components/list/list-item.vue.js +60 -0
- package/dist/components/list/list-item.vue2.js +5 -0
- package/dist/components/list/list-root.vue.d.ts +52 -0
- package/dist/components/list/list-root.vue.js +38 -0
- package/dist/components/list/list-root.vue2.js +5 -0
- package/dist/components/list/list-slot.vue.d.ts +19 -0
- package/dist/components/list/list-slot.vue.js +27 -0
- package/dist/components/list/list-slot.vue2.js +5 -0
- package/dist/components/list/list-subtitle.vue.d.ts +19 -0
- package/dist/components/list/list-subtitle.vue.js +27 -0
- package/dist/components/list/list-subtitle.vue2.js +5 -0
- package/dist/components/list/list-title.vue.d.ts +19 -0
- package/dist/components/list/list-title.vue.js +27 -0
- package/dist/components/list/list-title.vue2.js +5 -0
- package/dist/components/list/list.styles.d.ts +129 -0
- package/dist/components/list/list.styles.js +53 -0
- package/dist/components/spinner/index.d.ts +3 -3
- package/dist/components/spinner/spinner.vue.d.ts +2 -1
- package/dist/components/spinner/spinner.vue.js +1 -1
- package/dist/components/tabs/index.d.ts +11 -0
- package/dist/components/tabs/index.js +6 -0
- package/dist/components/tabs/tabs-content.vue.d.ts +25 -0
- package/dist/components/tabs/tabs-content.vue.js +37 -0
- package/dist/components/tabs/tabs-content.vue2.js +5 -0
- package/dist/components/tabs/tabs-indicator.vue.d.ts +25 -0
- package/dist/components/tabs/tabs-indicator.vue.js +35 -0
- package/dist/components/tabs/tabs-indicator.vue2.js +5 -0
- package/dist/components/tabs/tabs-list.vue.d.ts +26 -0
- package/dist/components/tabs/tabs-list.vue.js +36 -0
- package/dist/components/tabs/tabs-list.vue2.js +5 -0
- package/dist/components/tabs/tabs-root.vue.d.ts +39 -0
- package/dist/components/tabs/tabs-root.vue.js +44 -0
- package/dist/components/tabs/tabs-root.vue2.js +5 -0
- package/dist/components/tabs/tabs-trigger.vue.d.ts +39 -0
- package/dist/components/tabs/tabs-trigger.vue.js +42 -0
- package/dist/components/tabs/tabs-trigger.vue2.js +5 -0
- package/dist/components/tabs/tabs.styles.d.ts +56 -0
- package/dist/components/tabs/tabs.styles.js +13 -0
- package/dist/components/tooltip/index.d.ts +13 -0
- package/dist/components/tooltip/index.js +7 -0
- package/dist/components/tooltip/tooltip-arrow.vue.d.ts +24 -0
- package/dist/components/tooltip/tooltip-arrow.vue.js +37 -0
- package/dist/components/tooltip/tooltip-arrow.vue2.js +5 -0
- package/dist/components/tooltip/tooltip-content.vue.d.ts +34 -0
- package/dist/components/tooltip/tooltip-content.vue.js +51 -0
- package/dist/components/tooltip/tooltip-content.vue2.js +5 -0
- package/dist/components/tooltip/tooltip-portal.vue.d.ts +18 -0
- package/dist/components/tooltip/tooltip-portal.vue.js +33 -0
- package/dist/components/tooltip/tooltip-portal.vue2.js +5 -0
- package/dist/components/tooltip/tooltip-provider.vue.d.ts +23 -0
- package/dist/components/tooltip/tooltip-provider.vue.js +35 -0
- package/dist/components/tooltip/tooltip-provider.vue2.js +5 -0
- package/dist/components/tooltip/tooltip-root.vue.d.ts +30 -0
- package/dist/components/tooltip/tooltip-root.vue.js +38 -0
- package/dist/components/tooltip/tooltip-root.vue2.js +5 -0
- package/dist/components/tooltip/tooltip-trigger.vue.d.ts +24 -0
- package/dist/components/tooltip/tooltip-trigger.vue.js +32 -0
- package/dist/components/tooltip/tooltip-trigger.vue2.js +5 -0
- package/dist/components/tooltip/tooltip.styles.d.ts +62 -0
- package/dist/components/tooltip/tooltip.styles.js +14 -0
- package/dist/index.js +23 -0
- package/package.json +3 -3
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type HTMLAttributes } from "vue";
|
|
2
|
+
export interface ListTitleProps {
|
|
3
|
+
/**
|
|
4
|
+
* Custom class names.
|
|
5
|
+
*/
|
|
6
|
+
class?: HTMLAttributes["class"];
|
|
7
|
+
}
|
|
8
|
+
declare var __VLS_1: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
default?: (props: typeof __VLS_1) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<ListTitleProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ListTitleProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { defineComponent, inject, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from 'vue';
|
|
2
|
+
|
|
3
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
+
__name: "list-title",
|
|
5
|
+
props: {
|
|
6
|
+
class: { type: null, required: false }
|
|
7
|
+
},
|
|
8
|
+
setup(__props) {
|
|
9
|
+
const props = __props;
|
|
10
|
+
const slots = inject("listSlots", null);
|
|
11
|
+
return (_ctx, _cache) => {
|
|
12
|
+
return openBlock(), createElementBlock(
|
|
13
|
+
"div",
|
|
14
|
+
{
|
|
15
|
+
class: normalizeClass([unref(slots)?.title?.(), props.class])
|
|
16
|
+
},
|
|
17
|
+
[
|
|
18
|
+
renderSlot(_ctx.$slots, "default")
|
|
19
|
+
],
|
|
20
|
+
2
|
|
21
|
+
/* CLASS */
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
/**
|
|
3
|
+
* List component variant mapper
|
|
4
|
+
*
|
|
5
|
+
* Maps variant props to @vifui/styles CSS classes
|
|
6
|
+
* Inspired by Vuesax's list architecture
|
|
7
|
+
*/
|
|
8
|
+
export declare const listVariants: import("tailwind-variants").TVReturnType<{
|
|
9
|
+
variant: {
|
|
10
|
+
default: {};
|
|
11
|
+
outline: {
|
|
12
|
+
root: string;
|
|
13
|
+
};
|
|
14
|
+
shadow: {
|
|
15
|
+
root: string;
|
|
16
|
+
};
|
|
17
|
+
flat: {
|
|
18
|
+
root: string;
|
|
19
|
+
};
|
|
20
|
+
divided: {
|
|
21
|
+
root: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
size: {
|
|
25
|
+
sm: {
|
|
26
|
+
root: string;
|
|
27
|
+
};
|
|
28
|
+
md: {};
|
|
29
|
+
lg: {
|
|
30
|
+
root: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
hoverable: {
|
|
34
|
+
true: {
|
|
35
|
+
item: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
root: string;
|
|
40
|
+
header: string;
|
|
41
|
+
item: string;
|
|
42
|
+
icon: string;
|
|
43
|
+
avatar: string;
|
|
44
|
+
content: string;
|
|
45
|
+
title: string;
|
|
46
|
+
subtitle: string;
|
|
47
|
+
slot: string;
|
|
48
|
+
}, undefined, {
|
|
49
|
+
variant: {
|
|
50
|
+
default: {};
|
|
51
|
+
outline: {
|
|
52
|
+
root: string;
|
|
53
|
+
};
|
|
54
|
+
shadow: {
|
|
55
|
+
root: string;
|
|
56
|
+
};
|
|
57
|
+
flat: {
|
|
58
|
+
root: string;
|
|
59
|
+
};
|
|
60
|
+
divided: {
|
|
61
|
+
root: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
size: {
|
|
65
|
+
sm: {
|
|
66
|
+
root: string;
|
|
67
|
+
};
|
|
68
|
+
md: {};
|
|
69
|
+
lg: {
|
|
70
|
+
root: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
hoverable: {
|
|
74
|
+
true: {
|
|
75
|
+
item: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
}, {
|
|
79
|
+
root: string;
|
|
80
|
+
header: string;
|
|
81
|
+
item: string;
|
|
82
|
+
icon: string;
|
|
83
|
+
avatar: string;
|
|
84
|
+
content: string;
|
|
85
|
+
title: string;
|
|
86
|
+
subtitle: string;
|
|
87
|
+
slot: string;
|
|
88
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
89
|
+
variant: {
|
|
90
|
+
default: {};
|
|
91
|
+
outline: {
|
|
92
|
+
root: string;
|
|
93
|
+
};
|
|
94
|
+
shadow: {
|
|
95
|
+
root: string;
|
|
96
|
+
};
|
|
97
|
+
flat: {
|
|
98
|
+
root: string;
|
|
99
|
+
};
|
|
100
|
+
divided: {
|
|
101
|
+
root: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
size: {
|
|
105
|
+
sm: {
|
|
106
|
+
root: string;
|
|
107
|
+
};
|
|
108
|
+
md: {};
|
|
109
|
+
lg: {
|
|
110
|
+
root: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
hoverable: {
|
|
114
|
+
true: {
|
|
115
|
+
item: string;
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
}, {
|
|
119
|
+
root: string;
|
|
120
|
+
header: string;
|
|
121
|
+
item: string;
|
|
122
|
+
icon: string;
|
|
123
|
+
avatar: string;
|
|
124
|
+
content: string;
|
|
125
|
+
title: string;
|
|
126
|
+
subtitle: string;
|
|
127
|
+
slot: string;
|
|
128
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
129
|
+
export type ListVariantProps = VariantProps<typeof listVariants>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const listVariants = tv({
|
|
4
|
+
slots: {
|
|
5
|
+
root: "vif-list",
|
|
6
|
+
header: "vif-list__header",
|
|
7
|
+
item: "vif-list__item",
|
|
8
|
+
icon: "vif-list__icon",
|
|
9
|
+
avatar: "vif-list__avatar",
|
|
10
|
+
content: "vif-list__content",
|
|
11
|
+
title: "vif-list__title",
|
|
12
|
+
subtitle: "vif-list__subtitle",
|
|
13
|
+
slot: "vif-list__slot"
|
|
14
|
+
},
|
|
15
|
+
variants: {
|
|
16
|
+
variant: {
|
|
17
|
+
default: {},
|
|
18
|
+
outline: {
|
|
19
|
+
root: "vif-list--outline"
|
|
20
|
+
},
|
|
21
|
+
shadow: {
|
|
22
|
+
root: "vif-list--shadow"
|
|
23
|
+
},
|
|
24
|
+
flat: {
|
|
25
|
+
root: "vif-list--flat"
|
|
26
|
+
},
|
|
27
|
+
divided: {
|
|
28
|
+
root: "vif-list--divided"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
size: {
|
|
32
|
+
sm: {
|
|
33
|
+
root: "vif-list--sm"
|
|
34
|
+
},
|
|
35
|
+
md: {},
|
|
36
|
+
lg: {
|
|
37
|
+
root: "vif-list--lg"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
hoverable: {
|
|
41
|
+
true: {
|
|
42
|
+
item: "vif-list__item--hoverable"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
defaultVariants: {
|
|
47
|
+
variant: "default",
|
|
48
|
+
size: "md",
|
|
49
|
+
hoverable: false
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
export { listVariants };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as Spinner } from
|
|
2
|
-
export { spinnerVariants, type SpinnerVariantProps } from
|
|
3
|
-
export type { SpinnerProps } from
|
|
1
|
+
export { default as Spinner } from "./spinner.vue";
|
|
2
|
+
export { spinnerVariants, type SpinnerVariantProps } from "./spinner.styles";
|
|
3
|
+
export type { SpinnerProps } from "./spinner.vue";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type HTMLAttributes } from "vue";
|
|
1
2
|
import type { Sizes } from "../types/shared-types";
|
|
2
3
|
export interface SpinnerProps {
|
|
3
4
|
/**
|
|
@@ -16,7 +17,7 @@ export interface SpinnerProps {
|
|
|
16
17
|
/**
|
|
17
18
|
* Custom CSS class
|
|
18
19
|
*/
|
|
19
|
-
class?:
|
|
20
|
+
class?: HTMLAttributes["class"];
|
|
20
21
|
/**
|
|
21
22
|
* Accessible label for screen readers
|
|
22
23
|
*/
|
|
@@ -17,7 +17,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
size: { type: String, required: false, default: "md" },
|
|
18
18
|
color: { type: String, required: false, default: "primary" },
|
|
19
19
|
type: { type: String, required: false, default: "default" },
|
|
20
|
-
class: { type:
|
|
20
|
+
class: { type: null, required: false },
|
|
21
21
|
label: { type: String, required: false, default: "Loading..." }
|
|
22
22
|
},
|
|
23
23
|
setup(__props) {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { default as TabsRoot } from "./tabs-root.vue";
|
|
2
|
+
export { default as TabsList } from "./tabs-list.vue";
|
|
3
|
+
export { default as TabsIndicator } from "./tabs-indicator.vue";
|
|
4
|
+
export { default as TabsTrigger } from "./tabs-trigger.vue";
|
|
5
|
+
export { default as TabsContent } from "./tabs-content.vue";
|
|
6
|
+
export { tabsVariants, type TabsVariantProps } from "./tabs.styles";
|
|
7
|
+
export type { TabsRootProps, TabsRootEmits, TabsRootSlots, } from "./tabs-root.vue";
|
|
8
|
+
export type { TabsListProps, TabsListSlots } from "./tabs-list.vue";
|
|
9
|
+
export type { TabsIndicatorProps, TabsIndicatorSlots, } from "./tabs-indicator.vue";
|
|
10
|
+
export type { TabsTriggerProps, TabsTriggerSlots } from "./tabs-trigger.vue";
|
|
11
|
+
export type { TabsContentProps, TabsContentSlots } from "./tabs-content.vue";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as TabsRoot } from './tabs-root.vue.js';
|
|
2
|
+
export { default as TabsList } from './tabs-list.vue.js';
|
|
3
|
+
export { default as TabsIndicator } from './tabs-indicator.vue.js';
|
|
4
|
+
export { default as TabsTrigger } from './tabs-trigger.vue.js';
|
|
5
|
+
export { default as TabsContent } from './tabs-content.vue.js';
|
|
6
|
+
export { tabsVariants } from './tabs.styles.js';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type TabsContentProps as RekaTabsContentProps } from "reka-ui";
|
|
2
|
+
import { type HTMLAttributes } from "vue";
|
|
3
|
+
/** TabsContent Props */
|
|
4
|
+
export interface TabsContentProps extends RekaTabsContentProps {
|
|
5
|
+
/** Custom class */
|
|
6
|
+
class?: HTMLAttributes["class"];
|
|
7
|
+
}
|
|
8
|
+
/** TabsContent Slots */
|
|
9
|
+
export interface TabsContentSlots {
|
|
10
|
+
default: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare var __VLS_6: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
default?: (props: typeof __VLS_6) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<TabsContentProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TabsContentProps> & Readonly<{}>, {
|
|
17
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { defineComponent, computed, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
|
|
2
|
+
import { useForwardProps, TabsContent } from 'reka-ui';
|
|
3
|
+
import { tabsVariants } from './tabs.styles.js';
|
|
4
|
+
|
|
5
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "tabs-content",
|
|
7
|
+
props: {
|
|
8
|
+
class: { type: null, required: false },
|
|
9
|
+
value: { type: [String, Number], required: true },
|
|
10
|
+
forceMount: { type: Boolean, required: false },
|
|
11
|
+
asChild: { type: Boolean, required: false },
|
|
12
|
+
as: { type: null, required: false, default: "div" }
|
|
13
|
+
},
|
|
14
|
+
setup(__props) {
|
|
15
|
+
const props = __props;
|
|
16
|
+
const contentProps = useForwardProps(() => {
|
|
17
|
+
const { class: className, ...rest } = props;
|
|
18
|
+
return rest;
|
|
19
|
+
});
|
|
20
|
+
const theme = computed(
|
|
21
|
+
() => tabsVariants().content({
|
|
22
|
+
class: props.class
|
|
23
|
+
})
|
|
24
|
+
);
|
|
25
|
+
return (_ctx, _cache) => {
|
|
26
|
+
return openBlock(), createBlock(unref(TabsContent), mergeProps(unref(contentProps), { class: theme.value }), {
|
|
27
|
+
default: withCtx(() => [
|
|
28
|
+
renderSlot(_ctx.$slots, "default")
|
|
29
|
+
]),
|
|
30
|
+
_: 3
|
|
31
|
+
/* FORWARDED */
|
|
32
|
+
}, 16, ["class"]);
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type TabsIndicatorProps as RekaTabsIndicatorProps } from "reka-ui";
|
|
2
|
+
import { type HTMLAttributes } from "vue";
|
|
3
|
+
/** TabsIndicator Props */
|
|
4
|
+
export interface TabsIndicatorProps extends RekaTabsIndicatorProps {
|
|
5
|
+
/** Custom class */
|
|
6
|
+
class?: HTMLAttributes["class"];
|
|
7
|
+
}
|
|
8
|
+
/** TabsIndicator Slots */
|
|
9
|
+
export interface TabsIndicatorSlots {
|
|
10
|
+
default: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare var __VLS_6: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
default?: (props: typeof __VLS_6) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<TabsIndicatorProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TabsIndicatorProps> & Readonly<{}>, {
|
|
17
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
18
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent, computed, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
|
|
2
|
+
import { useForwardProps, TabsIndicator } from 'reka-ui';
|
|
3
|
+
import { tabsVariants } from './tabs.styles.js';
|
|
4
|
+
|
|
5
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "tabs-indicator",
|
|
7
|
+
props: {
|
|
8
|
+
class: { type: null, required: false },
|
|
9
|
+
asChild: { type: Boolean, required: false },
|
|
10
|
+
as: { type: null, required: false, default: "div" }
|
|
11
|
+
},
|
|
12
|
+
setup(__props) {
|
|
13
|
+
const props = __props;
|
|
14
|
+
const indicatorProps = useForwardProps(() => {
|
|
15
|
+
const { class: className, ...rest } = props;
|
|
16
|
+
return rest;
|
|
17
|
+
});
|
|
18
|
+
const theme = computed(
|
|
19
|
+
() => tabsVariants().indicator({
|
|
20
|
+
class: props.class
|
|
21
|
+
})
|
|
22
|
+
);
|
|
23
|
+
return (_ctx, _cache) => {
|
|
24
|
+
return openBlock(), createBlock(unref(TabsIndicator), mergeProps(unref(indicatorProps), { class: theme.value }), {
|
|
25
|
+
default: withCtx(() => [
|
|
26
|
+
renderSlot(_ctx.$slots, "default")
|
|
27
|
+
]),
|
|
28
|
+
_: 3
|
|
29
|
+
/* FORWARDED */
|
|
30
|
+
}, 16, ["class"]);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type TabsListProps as RekaTabsListProps } from "reka-ui";
|
|
2
|
+
import { type HTMLAttributes } from "vue";
|
|
3
|
+
/** TabsList Props */
|
|
4
|
+
export interface TabsListProps extends RekaTabsListProps {
|
|
5
|
+
/** Custom class */
|
|
6
|
+
class?: HTMLAttributes["class"];
|
|
7
|
+
}
|
|
8
|
+
/** TabsList Slots */
|
|
9
|
+
export interface TabsListSlots {
|
|
10
|
+
default: () => void;
|
|
11
|
+
}
|
|
12
|
+
declare var __VLS_6: {};
|
|
13
|
+
type __VLS_Slots = {} & {
|
|
14
|
+
default?: (props: typeof __VLS_6) => any;
|
|
15
|
+
};
|
|
16
|
+
declare const __VLS_component: import("vue").DefineComponent<TabsListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TabsListProps> & Readonly<{}>, {
|
|
17
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
18
|
+
loop: boolean;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
23
|
+
new (): {
|
|
24
|
+
$slots: S;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defineComponent, computed, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
|
|
2
|
+
import { useForwardProps, TabsList } from 'reka-ui';
|
|
3
|
+
import { tabsVariants } from './tabs.styles.js';
|
|
4
|
+
|
|
5
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "tabs-list",
|
|
7
|
+
props: {
|
|
8
|
+
class: { type: null, required: false },
|
|
9
|
+
loop: { type: Boolean, required: false, default: true },
|
|
10
|
+
asChild: { type: Boolean, required: false },
|
|
11
|
+
as: { type: null, required: false, default: "div" }
|
|
12
|
+
},
|
|
13
|
+
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const listProps = useForwardProps(() => {
|
|
16
|
+
const { class: className, ...rest } = props;
|
|
17
|
+
return rest;
|
|
18
|
+
});
|
|
19
|
+
const theme = computed(
|
|
20
|
+
() => tabsVariants().list({
|
|
21
|
+
class: props.class
|
|
22
|
+
})
|
|
23
|
+
);
|
|
24
|
+
return (_ctx, _cache) => {
|
|
25
|
+
return openBlock(), createBlock(unref(TabsList), mergeProps(unref(listProps), { class: theme.value }), {
|
|
26
|
+
default: withCtx(() => [
|
|
27
|
+
renderSlot(_ctx.$slots, "default")
|
|
28
|
+
]),
|
|
29
|
+
_: 3
|
|
30
|
+
/* FORWARDED */
|
|
31
|
+
}, 16, ["class"]);
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type TabsRootProps as RekaTabsRootProps, type TabsRootEmits as RekaTabsRootEmits } from "reka-ui";
|
|
2
|
+
import { type HTMLAttributes } from "vue";
|
|
3
|
+
/** TabsRoot Props */
|
|
4
|
+
export interface TabsRootProps extends RekaTabsRootProps {
|
|
5
|
+
/** Custom class */
|
|
6
|
+
class?: HTMLAttributes["class"];
|
|
7
|
+
}
|
|
8
|
+
/** TabsRoot Emits */
|
|
9
|
+
export interface TabsRootEmits extends RekaTabsRootEmits {
|
|
10
|
+
}
|
|
11
|
+
/** TabsRoot Slots */
|
|
12
|
+
export interface TabsRootSlots {
|
|
13
|
+
default: (props: {
|
|
14
|
+
modelValue?: string | number;
|
|
15
|
+
}) => void;
|
|
16
|
+
}
|
|
17
|
+
declare var __VLS_6: {
|
|
18
|
+
modelValue: string | number | undefined;
|
|
19
|
+
};
|
|
20
|
+
type __VLS_Slots = {} & {
|
|
21
|
+
default?: (props: typeof __VLS_6) => any;
|
|
22
|
+
};
|
|
23
|
+
declare const __VLS_component: import("vue").DefineComponent<TabsRootProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
"update:modelValue": (payload: string | number) => any;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<TabsRootProps> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((payload: string | number) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
29
|
+
orientation: "vertical" | "horizontal";
|
|
30
|
+
unmountOnHide: boolean;
|
|
31
|
+
activationMode: "automatic" | "manual";
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineComponent, computed, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
|
|
2
|
+
import { useForwardPropsEmits, TabsRoot } from 'reka-ui';
|
|
3
|
+
import { tabsVariants } from './tabs.styles.js';
|
|
4
|
+
|
|
5
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "tabs-root",
|
|
7
|
+
props: {
|
|
8
|
+
class: { type: null, required: false },
|
|
9
|
+
defaultValue: { type: null, required: false },
|
|
10
|
+
orientation: { type: String, required: false, default: "horizontal" },
|
|
11
|
+
dir: { type: String, required: false },
|
|
12
|
+
activationMode: { type: String, required: false, default: "automatic" },
|
|
13
|
+
modelValue: { type: null, required: false },
|
|
14
|
+
unmountOnHide: { type: Boolean, required: false, default: true },
|
|
15
|
+
asChild: { type: Boolean, required: false },
|
|
16
|
+
as: { type: null, required: false, default: "div" }
|
|
17
|
+
},
|
|
18
|
+
emits: ["update:modelValue"],
|
|
19
|
+
setup(__props, { emit: __emit }) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const emits = __emit;
|
|
22
|
+
const rootOnlyProps = computed(() => {
|
|
23
|
+
const { class: className, ...rest } = props;
|
|
24
|
+
return rest;
|
|
25
|
+
});
|
|
26
|
+
const rootPropsEmits = useForwardPropsEmits(rootOnlyProps, emits);
|
|
27
|
+
const theme = computed(
|
|
28
|
+
() => tabsVariants().root({
|
|
29
|
+
class: props.class
|
|
30
|
+
})
|
|
31
|
+
);
|
|
32
|
+
return (_ctx, _cache) => {
|
|
33
|
+
return openBlock(), createBlock(unref(TabsRoot), mergeProps(unref(rootPropsEmits), { class: theme.value }), {
|
|
34
|
+
default: withCtx((slotProps) => [
|
|
35
|
+
renderSlot(_ctx.$slots, "default", normalizeProps(guardReactiveProps(slotProps)))
|
|
36
|
+
]),
|
|
37
|
+
_: 3
|
|
38
|
+
/* FORWARDED */
|
|
39
|
+
}, 16, ["class"]);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
export { _sfc_main as default };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { type TabsTriggerProps as RekaTabsTriggerProps } from "reka-ui";
|
|
2
|
+
import { type HTMLAttributes } from "vue";
|
|
3
|
+
import type { Colors } from "../types/shared-types";
|
|
4
|
+
/** TabsTrigger Props */
|
|
5
|
+
export interface TabsTriggerProps extends RekaTabsTriggerProps {
|
|
6
|
+
/** Custom class */
|
|
7
|
+
class?: HTMLAttributes["class"];
|
|
8
|
+
/**
|
|
9
|
+
* The color of the tab sued for trigger ans indicators
|
|
10
|
+
* @defaultValue 'brand'
|
|
11
|
+
*/
|
|
12
|
+
color?: Colors;
|
|
13
|
+
/**
|
|
14
|
+
* The variant of the tab
|
|
15
|
+
* @defaultValue 'link'
|
|
16
|
+
*/
|
|
17
|
+
variant?: "pill" | "link";
|
|
18
|
+
}
|
|
19
|
+
/** TabsTrigger Slots */
|
|
20
|
+
export interface TabsTriggerSlots {
|
|
21
|
+
default: () => void;
|
|
22
|
+
}
|
|
23
|
+
declare var __VLS_6: {};
|
|
24
|
+
type __VLS_Slots = {} & {
|
|
25
|
+
default?: (props: typeof __VLS_6) => any;
|
|
26
|
+
};
|
|
27
|
+
declare const __VLS_component: import("vue").DefineComponent<TabsTriggerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<TabsTriggerProps> & Readonly<{}>, {
|
|
28
|
+
variant: "pill" | "link";
|
|
29
|
+
color: Colors;
|
|
30
|
+
disabled: boolean;
|
|
31
|
+
as: import("reka-ui").AsTag | import("vue").Component;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
36
|
+
new (): {
|
|
37
|
+
$slots: S;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent, computed, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot } from 'vue';
|
|
2
|
+
import { useForwardProps, TabsTrigger } from 'reka-ui';
|
|
3
|
+
import { tabsVariants } from './tabs.styles.js';
|
|
4
|
+
|
|
5
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
|
+
__name: "tabs-trigger",
|
|
7
|
+
props: {
|
|
8
|
+
class: { type: null, required: false },
|
|
9
|
+
color: { type: String, required: false, default: "brand" },
|
|
10
|
+
variant: { type: String, required: false, default: "link" },
|
|
11
|
+
value: { type: [String, Number], required: true },
|
|
12
|
+
disabled: { type: Boolean, required: false, default: false },
|
|
13
|
+
asChild: { type: Boolean, required: false },
|
|
14
|
+
as: { type: null, required: false, default: "button" }
|
|
15
|
+
},
|
|
16
|
+
setup(__props) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const triggerProps = useForwardProps(() => {
|
|
19
|
+
const { class: className, color, variant, ...rest } = props;
|
|
20
|
+
return rest;
|
|
21
|
+
});
|
|
22
|
+
const theme = computed(
|
|
23
|
+
() => tabsVariants().trigger({
|
|
24
|
+
class: props.class
|
|
25
|
+
})
|
|
26
|
+
);
|
|
27
|
+
return (_ctx, _cache) => {
|
|
28
|
+
return openBlock(), createBlock(unref(TabsTrigger), mergeProps({
|
|
29
|
+
"data-color": __props.color,
|
|
30
|
+
"data-variant": __props.variant
|
|
31
|
+
}, unref(triggerProps), { class: theme.value }), {
|
|
32
|
+
default: withCtx(() => [
|
|
33
|
+
renderSlot(_ctx.$slots, "default")
|
|
34
|
+
]),
|
|
35
|
+
_: 3
|
|
36
|
+
/* FORWARDED */
|
|
37
|
+
}, 16, ["data-color", "data-variant", "class"]);
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
export { _sfc_main as default };
|