@tb-dev/vue-components 0.2.5 → 1.0.0
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/components/__base/accordion/Accordion.vue.d.ts +23 -0
- package/dist/components/__base/accordion/AccordionContent.vue.d.ts +22 -0
- package/dist/components/__base/accordion/AccordionItem.vue.d.ts +22 -0
- package/dist/components/__base/accordion/AccordionTrigger.vue.d.ts +23 -0
- package/dist/components/__base/accordion/index.d.ts +4 -0
- package/dist/components/__base/alert/Alert.vue.d.ts +23 -0
- package/dist/components/__base/alert/AlertDescription.vue.d.ts +21 -0
- package/dist/components/__base/alert/AlertTitle.vue.d.ts +21 -0
- package/dist/components/__base/alert/index.d.ts +8 -0
- package/dist/components/__base/alert-dialog/AlertDialog.vue.d.ts +22 -0
- package/dist/components/__base/alert-dialog/AlertDialogAction.vue.d.ts +22 -0
- package/dist/components/__base/alert-dialog/AlertDialogCancel.vue.d.ts +22 -0
- package/dist/components/__base/alert-dialog/AlertDialogContent.vue.d.ts +52 -0
- package/dist/components/__base/alert-dialog/AlertDialogDescription.vue.d.ts +22 -0
- package/dist/components/__base/alert-dialog/AlertDialogFooter.vue.d.ts +21 -0
- package/dist/components/__base/alert-dialog/AlertDialogHeader.vue.d.ts +21 -0
- package/dist/components/__base/alert-dialog/AlertDialogTitle.vue.d.ts +22 -0
- package/dist/components/__base/alert-dialog/AlertDialogTrigger.vue.d.ts +18 -0
- package/dist/components/__base/alert-dialog/index.d.ts +9 -0
- package/dist/components/__base/avatar/Avatar.vue.d.ts +21 -0
- package/dist/components/__base/avatar/AvatarFallback.vue.d.ts +22 -0
- package/dist/components/__base/avatar/AvatarImage.vue.d.ts +18 -0
- package/dist/components/__base/avatar/index.d.ts +3 -0
- package/dist/components/__base/badge/index.d.ts +1 -1
- package/dist/components/__base/button/index.d.ts +1 -1
- package/dist/components/__base/combobox/Combobox.vue.d.ts +2 -2
- package/dist/components/__base/context-menu/ContextMenuCheckboxItem.vue.d.ts +2 -2
- package/dist/components/__base/context-menu/ContextMenuSubContent.vue.d.ts +2 -2
- package/dist/components/__base/dropdown-menu/DropdownMenuCheckboxItem.vue.d.ts +2 -2
- package/dist/components/__base/dropdown-menu/DropdownMenuSubContent.vue.d.ts +2 -2
- package/dist/components/__base/menubar/MenubarCheckboxItem.vue.d.ts +2 -2
- package/dist/components/__base/menubar/MenubarSubContent.vue.d.ts +2 -2
- package/dist/components/__base/sidebar/Sidebar.vue.d.ts +1 -1
- package/dist/components/__base/sidebar/SidebarMenuButton.vue.d.ts +1 -1
- package/dist/components/__base/sidebar/SidebarMenuButtonChild.vue.d.ts +1 -1
- package/dist/components/__base/toggle/Toggle.vue.d.ts +2 -2
- package/dist/components/accordion/index.d.ts +1 -0
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/alert-dialog/AlertDialog.vue.d.ts +29 -0
- package/dist/components/alert-dialog/index.d.ts +3 -0
- package/dist/components/alert-dialog/types.d.ts +10 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/dialog/Dialog.vue.d.ts +29 -0
- package/dist/components/dialog/index.d.ts +4 -1
- package/dist/components/dialog/types.d.ts +8 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/components/sidebar/Sidebar.vue.d.ts +9 -1
- package/dist/index.css +111 -0
- package/dist/index.js +712 -148
- package/package.json +7 -7
|
@@ -25,9 +25,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
25
25
|
}> | CustomEvent<{
|
|
26
26
|
originalEvent: FocusEvent;
|
|
27
27
|
}>) => any;
|
|
28
|
-
entryFocus: (event: Event) => any;
|
|
29
28
|
openAutoFocus: (event: Event) => any;
|
|
30
29
|
closeAutoFocus: (event: Event) => any;
|
|
30
|
+
entryFocus: (event: Event) => any;
|
|
31
31
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
32
32
|
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
33
33
|
onPointerDownOutside?: ((event: CustomEvent<{
|
|
@@ -41,9 +41,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
41
41
|
}> | CustomEvent<{
|
|
42
42
|
originalEvent: FocusEvent;
|
|
43
43
|
}>) => any) | undefined;
|
|
44
|
-
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
45
44
|
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
46
45
|
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
46
|
+
onEntryFocus?: ((event: Event) => any) | undefined;
|
|
47
47
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
48
48
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
49
49
|
export default _default;
|
|
@@ -11,9 +11,9 @@ declare function __VLS_template(): {
|
|
|
11
11
|
};
|
|
12
12
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
13
|
declare const __VLS_component: import('vue').DefineComponent<SidebarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SidebarProps> & Readonly<{}>, {
|
|
14
|
+
collapsible: "offcanvas" | "icon" | "none";
|
|
14
15
|
variant: "sidebar" | "floating" | "inset";
|
|
15
16
|
side: "left" | "right";
|
|
16
|
-
collapsible: "offcanvas" | "icon" | "none";
|
|
17
17
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
18
18
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
19
19
|
export default _default;
|
|
@@ -14,9 +14,9 @@ declare function __VLS_template(): {
|
|
|
14
14
|
};
|
|
15
15
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
16
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
-
variant: "default" | "outline" | null;
|
|
18
17
|
as: import('reka-ui').AsTag | Component;
|
|
19
18
|
size: "default" | "sm" | "lg" | null;
|
|
19
|
+
variant: "default" | "outline" | null;
|
|
20
20
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
21
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
22
|
export default _default;
|
|
@@ -17,9 +17,9 @@ declare function __VLS_template(): {
|
|
|
17
17
|
};
|
|
18
18
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
19
|
declare const __VLS_component: import('vue').DefineComponent<SidebarMenuButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SidebarMenuButtonProps> & Readonly<{}>, {
|
|
20
|
-
variant: "default" | "outline" | null;
|
|
21
20
|
as: import('reka-ui').AsTag | import('vue').Component;
|
|
22
21
|
size: "default" | "sm" | "lg" | null;
|
|
22
|
+
variant: "default" | "outline" | null;
|
|
23
23
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
25
25
|
export default _default;
|
|
@@ -20,9 +20,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
20
20
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
21
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
|
-
variant: "default" | "outline" | null;
|
|
24
|
-
size: "default" | "sm" | "lg" | null;
|
|
25
23
|
disabled: boolean;
|
|
24
|
+
size: "default" | "sm" | "lg" | null;
|
|
25
|
+
variant: "default" | "outline" | null;
|
|
26
26
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
27
27
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
28
28
|
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from '../__base/accordion';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Alert, AlertDescription, AlertTitle, type AlertVariants } from '../__base/alert';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { AlertDialogProps } from './types';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: Readonly<{
|
|
6
|
+
action?: () => VNode;
|
|
7
|
+
cancel?: () => VNode;
|
|
8
|
+
description?: () => VNode;
|
|
9
|
+
title?: () => VNode;
|
|
10
|
+
trigger: () => VNode;
|
|
11
|
+
}> & {
|
|
12
|
+
action?: () => VNode;
|
|
13
|
+
cancel?: () => VNode;
|
|
14
|
+
description?: () => VNode;
|
|
15
|
+
title?: () => VNode;
|
|
16
|
+
trigger: () => VNode;
|
|
17
|
+
};
|
|
18
|
+
refs: {};
|
|
19
|
+
rootEl: any;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<AlertDialogProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AlertDialogProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
export interface AlertDialogProps {
|
|
3
|
+
actionClass?: HTMLAttributes['class'];
|
|
4
|
+
cancelClass?: HTMLAttributes['class'];
|
|
5
|
+
contentClass?: HTMLAttributes['class'];
|
|
6
|
+
descriptionClass?: HTMLAttributes['class'];
|
|
7
|
+
footerClass?: HTMLAttributes['class'];
|
|
8
|
+
headerClass?: HTMLAttributes['class'];
|
|
9
|
+
titleClass?: HTMLAttributes['class'];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Avatar, AvatarFallback, AvatarImage } from '../__base/avatar';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import { DialogProps } from './types';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: Readonly<{
|
|
6
|
+
default: () => VNode;
|
|
7
|
+
description?: () => VNode;
|
|
8
|
+
footer?: () => VNode;
|
|
9
|
+
title?: () => VNode;
|
|
10
|
+
trigger: () => VNode;
|
|
11
|
+
}> & {
|
|
12
|
+
default: () => VNode;
|
|
13
|
+
description?: () => VNode;
|
|
14
|
+
footer?: () => VNode;
|
|
15
|
+
title?: () => VNode;
|
|
16
|
+
trigger: () => VNode;
|
|
17
|
+
};
|
|
18
|
+
refs: {};
|
|
19
|
+
rootEl: any;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<DialogProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DialogProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as Dialog } from './Dialog.vue';
|
|
2
|
+
export type * from './types';
|
|
3
|
+
export { Dialog };
|
|
4
|
+
export { DialogClose } from '../__base/dialog';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'vue';
|
|
2
|
+
export interface DialogProps {
|
|
3
|
+
contentClass?: HTMLAttributes['class'];
|
|
4
|
+
descriptionClass?: HTMLAttributes['class'];
|
|
5
|
+
footerClass?: HTMLAttributes['class'];
|
|
6
|
+
headerClass?: HTMLAttributes['class'];
|
|
7
|
+
titleClass?: HTMLAttributes['class'];
|
|
8
|
+
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { SidebarProps } from './types';
|
|
2
2
|
import { VNode } from 'vue';
|
|
3
|
+
type __VLS_Props = SidebarProps;
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
'open'?: boolean;
|
|
6
|
+
} & __VLS_Props;
|
|
3
7
|
declare function __VLS_template(): {
|
|
4
8
|
attrs: Partial<{}>;
|
|
5
9
|
slots: Readonly<{
|
|
@@ -19,7 +23,11 @@ declare function __VLS_template(): {
|
|
|
19
23
|
rootEl: any;
|
|
20
24
|
};
|
|
21
25
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
-
declare const __VLS_component: import('vue').DefineComponent<
|
|
26
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
"update:open": (value: boolean) => any;
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
30
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
31
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
24
32
|
export default _default;
|
|
25
33
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
package/dist/index.css
CHANGED
|
@@ -1,4 +1,115 @@
|
|
|
1
1
|
/*! tailwindcss v4.1.8 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties {
|
|
3
|
+
@supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
|
|
4
|
+
*, :before, :after, ::backdrop {
|
|
5
|
+
--tw-animation-delay: 0s;
|
|
6
|
+
--tw-animation-direction: normal;
|
|
7
|
+
--tw-animation-duration: initial;
|
|
8
|
+
--tw-animation-fill-mode: forwards;
|
|
9
|
+
--tw-animation-iteration-count: 1;
|
|
10
|
+
--tw-enter-opacity: 1;
|
|
11
|
+
--tw-enter-rotate: 0;
|
|
12
|
+
--tw-enter-scale: 1;
|
|
13
|
+
--tw-enter-translate-x: 0;
|
|
14
|
+
--tw-enter-translate-y: 0;
|
|
15
|
+
--tw-exit-opacity: 1;
|
|
16
|
+
--tw-exit-rotate: 0;
|
|
17
|
+
--tw-exit-scale: 1;
|
|
18
|
+
--tw-exit-translate-x: 0;
|
|
19
|
+
--tw-exit-translate-y: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@property --tw-animation-delay {
|
|
25
|
+
syntax: "*";
|
|
26
|
+
inherits: false;
|
|
27
|
+
initial-value: 0s;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@property --tw-animation-direction {
|
|
31
|
+
syntax: "*";
|
|
32
|
+
inherits: false;
|
|
33
|
+
initial-value: normal;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@property --tw-animation-duration {
|
|
37
|
+
syntax: "*";
|
|
38
|
+
inherits: false
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@property --tw-animation-fill-mode {
|
|
42
|
+
syntax: "*";
|
|
43
|
+
inherits: false;
|
|
44
|
+
initial-value: forwards;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@property --tw-animation-iteration-count {
|
|
48
|
+
syntax: "*";
|
|
49
|
+
inherits: false;
|
|
50
|
+
initial-value: 1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
@property --tw-enter-opacity {
|
|
54
|
+
syntax: "*";
|
|
55
|
+
inherits: false;
|
|
56
|
+
initial-value: 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
@property --tw-enter-rotate {
|
|
60
|
+
syntax: "*";
|
|
61
|
+
inherits: false;
|
|
62
|
+
initial-value: 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@property --tw-enter-scale {
|
|
66
|
+
syntax: "*";
|
|
67
|
+
inherits: false;
|
|
68
|
+
initial-value: 1;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@property --tw-enter-translate-x {
|
|
72
|
+
syntax: "*";
|
|
73
|
+
inherits: false;
|
|
74
|
+
initial-value: 0;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@property --tw-enter-translate-y {
|
|
78
|
+
syntax: "*";
|
|
79
|
+
inherits: false;
|
|
80
|
+
initial-value: 0;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@property --tw-exit-opacity {
|
|
84
|
+
syntax: "*";
|
|
85
|
+
inherits: false;
|
|
86
|
+
initial-value: 1;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@property --tw-exit-rotate {
|
|
90
|
+
syntax: "*";
|
|
91
|
+
inherits: false;
|
|
92
|
+
initial-value: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@property --tw-exit-scale {
|
|
96
|
+
syntax: "*";
|
|
97
|
+
inherits: false;
|
|
98
|
+
initial-value: 1;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@property --tw-exit-translate-x {
|
|
102
|
+
syntax: "*";
|
|
103
|
+
inherits: false;
|
|
104
|
+
initial-value: 0;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@property --tw-exit-translate-y {
|
|
108
|
+
syntax: "*";
|
|
109
|
+
inherits: false;
|
|
110
|
+
initial-value: 0;
|
|
111
|
+
}
|
|
112
|
+
|
|
2
113
|
:root {
|
|
3
114
|
--background: oklch(100% 0 0);
|
|
4
115
|
--foreground: oklch(14.1% .005 285.823);
|