@tb-dev/vue 0.3.15 → 0.3.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/components/__base/sonner/Sonner.vue.d.ts +3 -0
- package/dist/components/__base/sonner/index.d.ts +1 -0
- package/dist/components/checkbox/Checkbox.vue.d.ts +7 -0
- package/dist/components/checkbox/index.d.ts +3 -1
- package/dist/components/checkbox/types.d.ts +8 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/input/Input.vue.d.ts +10 -0
- package/dist/components/input/index.d.ts +3 -1
- package/dist/components/input/types.d.ts +16 -0
- package/dist/components/input-text/InputText.vue.d.ts +12 -5
- package/dist/components/input-text/types.d.ts +7 -7
- package/dist/components/popover/Popover.vue.d.ts +320 -0
- package/dist/components/popover/index.d.ts +3 -1
- package/dist/components/popover/types.d.ts +4 -0
- package/dist/components/select/Select.vue.d.ts +27 -0
- package/dist/components/select/index.d.ts +4 -1
- package/dist/components/select/types.d.ts +10 -0
- package/dist/components/sidebar/Sidebar.vue.d.ts +1 -1
- package/dist/components/sidebar/types.d.ts +6 -0
- package/dist/components/sonner/index.d.ts +3 -0
- package/dist/components/textarea/Textarea.vue.d.ts +5 -1
- package/dist/components/textarea/types.d.ts +13 -9
- package/dist/components/tooltip/Tooltip.vue.d.ts +22 -0
- package/dist/components/tooltip/index.d.ts +2 -1
- package/dist/index.css +1 -1
- package/dist/index.js +659 -376
- package/package.json +3 -2
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ToasterProps } from 'vue-sonner';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<ToasterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ToasterProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Toaster } from './Sonner.vue';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CheckboxProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<CheckboxProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
"update:modelValue": (value: boolean) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<CheckboxProps> & Readonly<{
|
|
5
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
6
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InputProps } from './types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<InputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
"update:modelValue": (value: string | null) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<InputProps> & Readonly<{
|
|
5
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
type: import('vue').InputTypeHTMLAttribute;
|
|
8
|
+
spellcheck: boolean | "true" | "false";
|
|
9
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Option } from '@tb-dev/utils';
|
|
2
|
+
import { InputHTMLAttributes } from 'vue';
|
|
3
|
+
export interface InputProps {
|
|
4
|
+
class?: string;
|
|
5
|
+
disabled?: InputHTMLAttributes['disabled'];
|
|
6
|
+
label?: string;
|
|
7
|
+
labelClass?: string;
|
|
8
|
+
max?: InputHTMLAttributes['maxlength'];
|
|
9
|
+
min?: InputHTMLAttributes['minlength'];
|
|
10
|
+
modelValue: Option<string>;
|
|
11
|
+
onBlur?: () => void;
|
|
12
|
+
placeholder?: InputHTMLAttributes['placeholder'];
|
|
13
|
+
size?: InputHTMLAttributes['size'];
|
|
14
|
+
spellcheck?: InputHTMLAttributes['spellcheck'];
|
|
15
|
+
type?: InputHTMLAttributes['type'];
|
|
16
|
+
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
|
+
import { Option } from '@tb-dev/utils';
|
|
1
2
|
import { InputTextProps } from './types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
type __VLS_Props = InputTextProps;
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
modelValue: Option<string>;
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: Option<string>) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: Option<string>) => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
spellcheck: boolean | "true" | "false";
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
14
|
export default _default;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InputHTMLAttributes } from 'vue';
|
|
2
2
|
export interface InputTextProps {
|
|
3
3
|
class?: string;
|
|
4
|
-
disabled?:
|
|
4
|
+
disabled?: InputHTMLAttributes['disabled'];
|
|
5
5
|
label?: string;
|
|
6
6
|
labelClass?: string;
|
|
7
|
-
max?:
|
|
8
|
-
min?:
|
|
9
|
-
modelValue: Option<string>;
|
|
7
|
+
max?: InputHTMLAttributes['maxlength'];
|
|
8
|
+
min?: InputHTMLAttributes['minlength'];
|
|
10
9
|
onBlur?: () => void;
|
|
11
|
-
placeholder?:
|
|
12
|
-
size?:
|
|
10
|
+
placeholder?: InputHTMLAttributes['placeholder'];
|
|
11
|
+
size?: InputHTMLAttributes['size'];
|
|
12
|
+
spellcheck?: InputHTMLAttributes['spellcheck'];
|
|
13
13
|
}
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
import { PopoverProps } from './types';
|
|
2
|
+
import { VNode } from 'vue';
|
|
3
|
+
type __VLS_Props = PopoverProps;
|
|
4
|
+
declare function open(): void;
|
|
5
|
+
declare function close(): void;
|
|
6
|
+
type __VLS_PublicProps = {
|
|
7
|
+
modelValue: boolean;
|
|
8
|
+
} & __VLS_Props;
|
|
9
|
+
declare function __VLS_template(): {
|
|
10
|
+
attrs: Partial<{}>;
|
|
11
|
+
slots: Readonly<{
|
|
12
|
+
default: () => VNode;
|
|
13
|
+
trigger?: () => VNode;
|
|
14
|
+
}> & {
|
|
15
|
+
default: () => VNode;
|
|
16
|
+
trigger?: () => VNode;
|
|
17
|
+
};
|
|
18
|
+
refs: {
|
|
19
|
+
contentEl: ({
|
|
20
|
+
$: import('vue').ComponentInternalInstance;
|
|
21
|
+
$data: {};
|
|
22
|
+
$props: {
|
|
23
|
+
readonly forceMount?: boolean | undefined;
|
|
24
|
+
readonly side?: ("top" | "right" | "bottom" | "left") | undefined;
|
|
25
|
+
readonly sideOffset?: number | undefined;
|
|
26
|
+
readonly align?: ("end" | "start" | "center") | undefined;
|
|
27
|
+
readonly alignOffset?: number | undefined;
|
|
28
|
+
readonly avoidCollisions?: boolean | undefined;
|
|
29
|
+
readonly collisionBoundary?: (Element | null | Array<Element | null>) | undefined;
|
|
30
|
+
readonly collisionPadding?: (number | Partial<Record<"top" | "right" | "bottom" | "left", number>>) | undefined;
|
|
31
|
+
readonly arrowPadding?: number | undefined;
|
|
32
|
+
readonly sticky?: "partial" | "always" | undefined;
|
|
33
|
+
readonly hideWhenDetached?: boolean | undefined;
|
|
34
|
+
readonly positionStrategy?: "absolute" | "fixed" | undefined;
|
|
35
|
+
readonly updatePositionStrategy?: "optimized" | "always" | undefined;
|
|
36
|
+
readonly disableUpdateOnLayoutShift?: boolean | undefined;
|
|
37
|
+
readonly prioritizePosition?: boolean | undefined;
|
|
38
|
+
readonly reference?: import('reka-ui').ReferenceElement | undefined;
|
|
39
|
+
readonly asChild?: boolean | undefined;
|
|
40
|
+
readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
|
|
41
|
+
readonly disableOutsidePointerEvents?: boolean | undefined;
|
|
42
|
+
readonly class?: import('vue').HTMLAttributes["class"];
|
|
43
|
+
readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
44
|
+
readonly onPointerDownOutside?: ((event: CustomEvent<{
|
|
45
|
+
originalEvent: PointerEvent;
|
|
46
|
+
}>) => any) | undefined;
|
|
47
|
+
readonly onFocusOutside?: ((event: CustomEvent<{
|
|
48
|
+
originalEvent: FocusEvent;
|
|
49
|
+
}>) => any) | undefined;
|
|
50
|
+
readonly onInteractOutside?: ((event: CustomEvent<{
|
|
51
|
+
originalEvent: PointerEvent;
|
|
52
|
+
}> | CustomEvent<{
|
|
53
|
+
originalEvent: FocusEvent;
|
|
54
|
+
}>) => any) | undefined;
|
|
55
|
+
readonly onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
56
|
+
readonly onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
57
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
58
|
+
$attrs: {
|
|
59
|
+
[x: string]: unknown;
|
|
60
|
+
};
|
|
61
|
+
$refs: {
|
|
62
|
+
[x: string]: unknown;
|
|
63
|
+
};
|
|
64
|
+
$slots: Readonly<{
|
|
65
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
66
|
+
}>;
|
|
67
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
68
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
69
|
+
$host: Element | null;
|
|
70
|
+
$emit: ((event: "escapeKeyDown", event: KeyboardEvent) => void) & ((event: "pointerDownOutside", event: CustomEvent<{
|
|
71
|
+
originalEvent: PointerEvent;
|
|
72
|
+
}>) => void) & ((event: "focusOutside", event: CustomEvent<{
|
|
73
|
+
originalEvent: FocusEvent;
|
|
74
|
+
}>) => void) & ((event: "interactOutside", event: CustomEvent<{
|
|
75
|
+
originalEvent: PointerEvent;
|
|
76
|
+
}> | CustomEvent<{
|
|
77
|
+
originalEvent: FocusEvent;
|
|
78
|
+
}>) => void) & ((event: "openAutoFocus", event: Event) => void) & ((event: "closeAutoFocus", event: Event) => void);
|
|
79
|
+
$el: any;
|
|
80
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('reka-ui').PopoverContentProps & {
|
|
81
|
+
class?: import('vue').HTMLAttributes["class"];
|
|
82
|
+
}> & Readonly<{
|
|
83
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
84
|
+
onPointerDownOutside?: ((event: CustomEvent<{
|
|
85
|
+
originalEvent: PointerEvent;
|
|
86
|
+
}>) => any) | undefined;
|
|
87
|
+
onFocusOutside?: ((event: CustomEvent<{
|
|
88
|
+
originalEvent: FocusEvent;
|
|
89
|
+
}>) => any) | undefined;
|
|
90
|
+
onInteractOutside?: ((event: CustomEvent<{
|
|
91
|
+
originalEvent: PointerEvent;
|
|
92
|
+
}> | CustomEvent<{
|
|
93
|
+
originalEvent: FocusEvent;
|
|
94
|
+
}>) => any) | undefined;
|
|
95
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
96
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
97
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
98
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
99
|
+
pointerDownOutside: (event: CustomEvent<{
|
|
100
|
+
originalEvent: PointerEvent;
|
|
101
|
+
}>) => any;
|
|
102
|
+
focusOutside: (event: CustomEvent<{
|
|
103
|
+
originalEvent: FocusEvent;
|
|
104
|
+
}>) => any;
|
|
105
|
+
interactOutside: (event: CustomEvent<{
|
|
106
|
+
originalEvent: PointerEvent;
|
|
107
|
+
}> | CustomEvent<{
|
|
108
|
+
originalEvent: FocusEvent;
|
|
109
|
+
}>) => any;
|
|
110
|
+
openAutoFocus: (event: Event) => any;
|
|
111
|
+
closeAutoFocus: (event: Event) => any;
|
|
112
|
+
}, string, {
|
|
113
|
+
sideOffset: number;
|
|
114
|
+
align: "end" | "start" | "center";
|
|
115
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
116
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
117
|
+
created?: (() => void) | (() => void)[];
|
|
118
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
119
|
+
mounted?: (() => void) | (() => void)[];
|
|
120
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
121
|
+
updated?: (() => void) | (() => void)[];
|
|
122
|
+
activated?: (() => void) | (() => void)[];
|
|
123
|
+
deactivated?: (() => void) | (() => void)[];
|
|
124
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
125
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
126
|
+
destroyed?: (() => void) | (() => void)[];
|
|
127
|
+
unmounted?: (() => void) | (() => void)[];
|
|
128
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
129
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
130
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
131
|
+
};
|
|
132
|
+
$forceUpdate: () => void;
|
|
133
|
+
$nextTick: typeof import('vue').nextTick;
|
|
134
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
135
|
+
} & Readonly<{
|
|
136
|
+
sideOffset: number;
|
|
137
|
+
align: "end" | "start" | "center";
|
|
138
|
+
}> & Omit<Readonly<import('reka-ui').PopoverContentProps & {
|
|
139
|
+
class?: import('vue').HTMLAttributes["class"];
|
|
140
|
+
}> & Readonly<{
|
|
141
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
142
|
+
onPointerDownOutside?: ((event: CustomEvent<{
|
|
143
|
+
originalEvent: PointerEvent;
|
|
144
|
+
}>) => any) | undefined;
|
|
145
|
+
onFocusOutside?: ((event: CustomEvent<{
|
|
146
|
+
originalEvent: FocusEvent;
|
|
147
|
+
}>) => any) | undefined;
|
|
148
|
+
onInteractOutside?: ((event: CustomEvent<{
|
|
149
|
+
originalEvent: PointerEvent;
|
|
150
|
+
}> | CustomEvent<{
|
|
151
|
+
originalEvent: FocusEvent;
|
|
152
|
+
}>) => any) | undefined;
|
|
153
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
154
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
155
|
+
}>, "sideOffset" | "align"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
156
|
+
$slots: {
|
|
157
|
+
default?(_: {}): any;
|
|
158
|
+
};
|
|
159
|
+
}) | null;
|
|
160
|
+
};
|
|
161
|
+
rootEl: any;
|
|
162
|
+
};
|
|
163
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
164
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
165
|
+
close: typeof close;
|
|
166
|
+
open: typeof open;
|
|
167
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
168
|
+
"update:modelValue": (value: boolean) => any;
|
|
169
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
170
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
171
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
172
|
+
contentEl: ({
|
|
173
|
+
$: import('vue').ComponentInternalInstance;
|
|
174
|
+
$data: {};
|
|
175
|
+
$props: {
|
|
176
|
+
readonly forceMount?: boolean | undefined;
|
|
177
|
+
readonly side?: ("top" | "right" | "bottom" | "left") | undefined;
|
|
178
|
+
readonly sideOffset?: number | undefined;
|
|
179
|
+
readonly align?: ("end" | "start" | "center") | undefined;
|
|
180
|
+
readonly alignOffset?: number | undefined;
|
|
181
|
+
readonly avoidCollisions?: boolean | undefined;
|
|
182
|
+
readonly collisionBoundary?: (Element | null | Array<Element | null>) | undefined;
|
|
183
|
+
readonly collisionPadding?: (number | Partial<Record<"top" | "right" | "bottom" | "left", number>>) | undefined;
|
|
184
|
+
readonly arrowPadding?: number | undefined;
|
|
185
|
+
readonly sticky?: "partial" | "always" | undefined;
|
|
186
|
+
readonly hideWhenDetached?: boolean | undefined;
|
|
187
|
+
readonly positionStrategy?: "absolute" | "fixed" | undefined;
|
|
188
|
+
readonly updatePositionStrategy?: "optimized" | "always" | undefined;
|
|
189
|
+
readonly disableUpdateOnLayoutShift?: boolean | undefined;
|
|
190
|
+
readonly prioritizePosition?: boolean | undefined;
|
|
191
|
+
readonly reference?: import('reka-ui').ReferenceElement | undefined;
|
|
192
|
+
readonly asChild?: boolean | undefined;
|
|
193
|
+
readonly as?: (import('reka-ui').AsTag | import('vue').Component) | undefined;
|
|
194
|
+
readonly disableOutsidePointerEvents?: boolean | undefined;
|
|
195
|
+
readonly class?: import('vue').HTMLAttributes["class"];
|
|
196
|
+
readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
197
|
+
readonly onPointerDownOutside?: ((event: CustomEvent<{
|
|
198
|
+
originalEvent: PointerEvent;
|
|
199
|
+
}>) => any) | undefined;
|
|
200
|
+
readonly onFocusOutside?: ((event: CustomEvent<{
|
|
201
|
+
originalEvent: FocusEvent;
|
|
202
|
+
}>) => any) | undefined;
|
|
203
|
+
readonly onInteractOutside?: ((event: CustomEvent<{
|
|
204
|
+
originalEvent: PointerEvent;
|
|
205
|
+
}> | CustomEvent<{
|
|
206
|
+
originalEvent: FocusEvent;
|
|
207
|
+
}>) => any) | undefined;
|
|
208
|
+
readonly onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
209
|
+
readonly onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
210
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
211
|
+
$attrs: {
|
|
212
|
+
[x: string]: unknown;
|
|
213
|
+
};
|
|
214
|
+
$refs: {
|
|
215
|
+
[x: string]: unknown;
|
|
216
|
+
};
|
|
217
|
+
$slots: Readonly<{
|
|
218
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
219
|
+
}>;
|
|
220
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
221
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
222
|
+
$host: Element | null;
|
|
223
|
+
$emit: ((event: "escapeKeyDown", event: KeyboardEvent) => void) & ((event: "pointerDownOutside", event: CustomEvent<{
|
|
224
|
+
originalEvent: PointerEvent;
|
|
225
|
+
}>) => void) & ((event: "focusOutside", event: CustomEvent<{
|
|
226
|
+
originalEvent: FocusEvent;
|
|
227
|
+
}>) => void) & ((event: "interactOutside", event: CustomEvent<{
|
|
228
|
+
originalEvent: PointerEvent;
|
|
229
|
+
}> | CustomEvent<{
|
|
230
|
+
originalEvent: FocusEvent;
|
|
231
|
+
}>) => void) & ((event: "openAutoFocus", event: Event) => void) & ((event: "closeAutoFocus", event: Event) => void);
|
|
232
|
+
$el: any;
|
|
233
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('reka-ui').PopoverContentProps & {
|
|
234
|
+
class?: import('vue').HTMLAttributes["class"];
|
|
235
|
+
}> & Readonly<{
|
|
236
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
237
|
+
onPointerDownOutside?: ((event: CustomEvent<{
|
|
238
|
+
originalEvent: PointerEvent;
|
|
239
|
+
}>) => any) | undefined;
|
|
240
|
+
onFocusOutside?: ((event: CustomEvent<{
|
|
241
|
+
originalEvent: FocusEvent;
|
|
242
|
+
}>) => any) | undefined;
|
|
243
|
+
onInteractOutside?: ((event: CustomEvent<{
|
|
244
|
+
originalEvent: PointerEvent;
|
|
245
|
+
}> | CustomEvent<{
|
|
246
|
+
originalEvent: FocusEvent;
|
|
247
|
+
}>) => any) | undefined;
|
|
248
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
249
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
250
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
251
|
+
escapeKeyDown: (event: KeyboardEvent) => any;
|
|
252
|
+
pointerDownOutside: (event: CustomEvent<{
|
|
253
|
+
originalEvent: PointerEvent;
|
|
254
|
+
}>) => any;
|
|
255
|
+
focusOutside: (event: CustomEvent<{
|
|
256
|
+
originalEvent: FocusEvent;
|
|
257
|
+
}>) => any;
|
|
258
|
+
interactOutside: (event: CustomEvent<{
|
|
259
|
+
originalEvent: PointerEvent;
|
|
260
|
+
}> | CustomEvent<{
|
|
261
|
+
originalEvent: FocusEvent;
|
|
262
|
+
}>) => any;
|
|
263
|
+
openAutoFocus: (event: Event) => any;
|
|
264
|
+
closeAutoFocus: (event: Event) => any;
|
|
265
|
+
}, string, {
|
|
266
|
+
sideOffset: number;
|
|
267
|
+
align: "end" | "start" | "center";
|
|
268
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
269
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
270
|
+
created?: (() => void) | (() => void)[];
|
|
271
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
272
|
+
mounted?: (() => void) | (() => void)[];
|
|
273
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
274
|
+
updated?: (() => void) | (() => void)[];
|
|
275
|
+
activated?: (() => void) | (() => void)[];
|
|
276
|
+
deactivated?: (() => void) | (() => void)[];
|
|
277
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
278
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
279
|
+
destroyed?: (() => void) | (() => void)[];
|
|
280
|
+
unmounted?: (() => void) | (() => void)[];
|
|
281
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
282
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
283
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
284
|
+
};
|
|
285
|
+
$forceUpdate: () => void;
|
|
286
|
+
$nextTick: typeof import('vue').nextTick;
|
|
287
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
288
|
+
} & Readonly<{
|
|
289
|
+
sideOffset: number;
|
|
290
|
+
align: "end" | "start" | "center";
|
|
291
|
+
}> & Omit<Readonly<import('reka-ui').PopoverContentProps & {
|
|
292
|
+
class?: import('vue').HTMLAttributes["class"];
|
|
293
|
+
}> & Readonly<{
|
|
294
|
+
onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
|
|
295
|
+
onPointerDownOutside?: ((event: CustomEvent<{
|
|
296
|
+
originalEvent: PointerEvent;
|
|
297
|
+
}>) => any) | undefined;
|
|
298
|
+
onFocusOutside?: ((event: CustomEvent<{
|
|
299
|
+
originalEvent: FocusEvent;
|
|
300
|
+
}>) => any) | undefined;
|
|
301
|
+
onInteractOutside?: ((event: CustomEvent<{
|
|
302
|
+
originalEvent: PointerEvent;
|
|
303
|
+
}> | CustomEvent<{
|
|
304
|
+
originalEvent: FocusEvent;
|
|
305
|
+
}>) => any) | undefined;
|
|
306
|
+
onOpenAutoFocus?: ((event: Event) => any) | undefined;
|
|
307
|
+
onCloseAutoFocus?: ((event: Event) => any) | undefined;
|
|
308
|
+
}>, "sideOffset" | "align"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
309
|
+
$slots: {
|
|
310
|
+
default?(_: {}): any;
|
|
311
|
+
};
|
|
312
|
+
}) | null;
|
|
313
|
+
}, any>;
|
|
314
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
315
|
+
export default _default;
|
|
316
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
317
|
+
new (): {
|
|
318
|
+
$slots: S;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SelectProps } from './types';
|
|
2
|
+
import { VNode } from 'vue';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: Readonly<{
|
|
6
|
+
action?: () => VNode;
|
|
7
|
+
default?: () => VNode;
|
|
8
|
+
}> & {
|
|
9
|
+
action?: () => VNode;
|
|
10
|
+
default?: () => VNode;
|
|
11
|
+
};
|
|
12
|
+
refs: {};
|
|
13
|
+
rootEl: any;
|
|
14
|
+
};
|
|
15
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
16
|
+
declare const __VLS_component: import('vue').DefineComponent<SelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
"update:modelValue": (value: string | null) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<SelectProps> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -1 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as Select } from './Select.vue';
|
|
2
|
+
export type * from './types';
|
|
3
|
+
export { Select };
|
|
4
|
+
export { SelectGroup, SelectItem, SelectItemText, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, } from '../__base/select';
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import { SidebarProps as Props } from '../__base/sidebar';
|
|
1
2
|
export interface SidebarProps {
|
|
3
|
+
collapsible?: Props['collapsible'];
|
|
2
4
|
defaultOpen?: boolean;
|
|
5
|
+
side?: Props['side'];
|
|
6
|
+
variant?: Props['variant'];
|
|
7
|
+
width?: string | number;
|
|
8
|
+
widthMobile?: string | number;
|
|
3
9
|
}
|
|
@@ -3,5 +3,9 @@ declare const _default: import('vue').DefineComponent<TextareaProps, {}, {}, {},
|
|
|
3
3
|
"update:modelValue": (value: string | null) => any;
|
|
4
4
|
}, string, import('vue').PublicProps, Readonly<TextareaProps> & Readonly<{
|
|
5
5
|
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
6
|
-
}>, {
|
|
6
|
+
}>, {
|
|
7
|
+
spellcheck: boolean | "true" | "false";
|
|
8
|
+
autocomplete: string;
|
|
9
|
+
autocorrect: string;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
11
|
export default _default;
|
|
@@ -1,18 +1,22 @@
|
|
|
1
1
|
import { Option } from '@tb-dev/utils';
|
|
2
|
+
import { TextareaHTMLAttributes } from 'vue';
|
|
2
3
|
export interface TextareaProps {
|
|
3
|
-
autocapitalize?:
|
|
4
|
-
|
|
4
|
+
autocapitalize?: TextareaHTMLAttributes['autocapitalize'];
|
|
5
|
+
autocomplete?: TextareaHTMLAttributes['autocomplete'];
|
|
6
|
+
autocorrect?: TextareaHTMLAttributes['autocorrect'];
|
|
7
|
+
autofocus?: TextareaHTMLAttributes['autofocus'];
|
|
5
8
|
class?: string;
|
|
6
|
-
cols?:
|
|
9
|
+
cols?: TextareaHTMLAttributes['cols'];
|
|
7
10
|
disabled?: boolean;
|
|
8
11
|
label?: string;
|
|
9
12
|
labelClass?: string;
|
|
10
|
-
max?:
|
|
11
|
-
min?:
|
|
13
|
+
max?: TextareaHTMLAttributes['maxlength'];
|
|
14
|
+
min?: TextareaHTMLAttributes['minlength'];
|
|
12
15
|
modelValue: Option<string>;
|
|
13
16
|
onBlur?: () => void;
|
|
14
|
-
placeholder?:
|
|
15
|
-
readonly?:
|
|
16
|
-
required?:
|
|
17
|
-
rows?:
|
|
17
|
+
placeholder?: TextareaHTMLAttributes['placeholder'];
|
|
18
|
+
readonly?: TextareaHTMLAttributes['readonly'];
|
|
19
|
+
required?: TextareaHTMLAttributes['required'];
|
|
20
|
+
rows?: TextareaHTMLAttributes['rows'];
|
|
21
|
+
spellcheck?: TextareaHTMLAttributes['spellcheck'];
|
|
18
22
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<{
|
|
5
|
+
default: () => VNode;
|
|
6
|
+
trigger: () => VNode;
|
|
7
|
+
}> & {
|
|
8
|
+
default: () => VNode;
|
|
9
|
+
trigger: () => VNode;
|
|
10
|
+
};
|
|
11
|
+
refs: {};
|
|
12
|
+
rootEl: any;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
|
+
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { default as Tooltip } from './Tooltip.vue';
|
|
2
|
+
export { Tooltip };
|
package/dist/index.css
CHANGED
|
@@ -24,7 +24,6 @@
|
|
|
24
24
|
--chart-3: oklch(.398 .07 227.392);
|
|
25
25
|
--chart-4: oklch(.828 .189 84.429);
|
|
26
26
|
--chart-5: oklch(.769 .188 70.08);
|
|
27
|
-
--radius: .625rem;
|
|
28
27
|
--sidebar: oklch(.985 0 0);
|
|
29
28
|
--sidebar-foreground: oklch(.141 .005 285.823);
|
|
30
29
|
--sidebar-primary: oklch(.21 .006 285.885);
|
|
@@ -33,6 +32,7 @@
|
|
|
33
32
|
--sidebar-accent-foreground: oklch(.21 .006 285.885);
|
|
34
33
|
--sidebar-border: oklch(.92 .004 286.32);
|
|
35
34
|
--sidebar-ring: oklch(.705 .015 286.067);
|
|
35
|
+
--radius: .625rem;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.dark {
|