@lovince/ui-vue 0.0.0-stage → 0.1.1
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/LICENSE +21 -0
- package/README.md +134 -2
- package/dist/components/accordion.d.ts +197 -0
- package/dist/components/avatar.d.ts +90 -0
- package/dist/components/calendar.d.ts +421 -0
- package/dist/components/carousel.d.ts +293 -0
- package/dist/components/combobox.d.ts +431 -0
- package/dist/components/command.d.ts +252 -0
- package/dist/components/dialog.d.ts +242 -0
- package/dist/components/disclosure.d.ts +120 -0
- package/dist/components/emoji-picker.d.ts +359 -0
- package/dist/components/menu.d.ts +493 -0
- package/dist/components/navigation-menu.d.ts +275 -0
- package/dist/components/number-field.d.ts +202 -0
- package/dist/components/pin-input.d.ts +174 -0
- package/dist/components/popover.d.ts +213 -0
- package/dist/components/progress.d.ts +82 -0
- package/dist/components/radio-group.d.ts +167 -0
- package/dist/components/select.d.ts +418 -0
- package/dist/components/slider.d.ts +222 -0
- package/dist/components/sortable.d.ts +140 -0
- package/dist/components/splitter.d.ts +167 -0
- package/dist/components/tabs.d.ts +183 -0
- package/dist/components/toast.d.ts +192 -0
- package/dist/components/toggle-group.d.ts +205 -0
- package/dist/components/toggles.d.ts +232 -0
- package/dist/components/tooltip.d.ts +370 -0
- package/dist/components/tree.d.ts +147 -0
- package/dist/composables/data-table.d.ts +25 -0
- package/dist/composables/observers.d.ts +42 -0
- package/dist/composables/presence.d.ts +7 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.js +4094 -0
- package/dist/shared/context.d.ts +2 -0
- package/dist/shared/dismiss.d.ts +17 -0
- package/dist/shared/element.d.ts +6 -0
- package/dist/shared/floating-props.d.ts +27 -0
- package/dist/shared/list.d.ts +17 -0
- package/dist/shared/machine.d.ts +38 -0
- package/dist/shared/parts.d.ts +8 -0
- package/dist/shared/portal.d.ts +34 -0
- package/dist/shared/primitive.d.ts +57 -0
- package/package.json +68 -4
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Orientation } from '@lovince/ui-headless';
|
|
3
|
+
/**
|
|
4
|
+
* A list people put in order: dragged by a handle, or from the keyboard —
|
|
5
|
+
* Space picks an item up, the arrows move it, Space drops it and Escape puts
|
|
6
|
+
* it back. Every step is announced, so the order is never changed unseen.
|
|
7
|
+
*/
|
|
8
|
+
export declare const SortableRoot: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
9
|
+
as: {
|
|
10
|
+
default: string;
|
|
11
|
+
type: PropType<string | import('vue').Component>;
|
|
12
|
+
};
|
|
13
|
+
/** The values in their order. */
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: PropType<string[]>;
|
|
16
|
+
default: undefined;
|
|
17
|
+
};
|
|
18
|
+
defaultValue: {
|
|
19
|
+
type: PropType<string[]>;
|
|
20
|
+
default: () => never[];
|
|
21
|
+
};
|
|
22
|
+
orientation: {
|
|
23
|
+
type: PropType<Orientation>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
disabled: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
asChild: {
|
|
31
|
+
readonly type: BooleanConstructor;
|
|
32
|
+
readonly default: false;
|
|
33
|
+
};
|
|
34
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}>[], {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
37
|
+
'update:modelValue': (order: string[]) => boolean;
|
|
38
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
39
|
+
as: {
|
|
40
|
+
default: string;
|
|
41
|
+
type: PropType<string | import('vue').Component>;
|
|
42
|
+
};
|
|
43
|
+
/** The values in their order. */
|
|
44
|
+
modelValue: {
|
|
45
|
+
type: PropType<string[]>;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
defaultValue: {
|
|
49
|
+
type: PropType<string[]>;
|
|
50
|
+
default: () => never[];
|
|
51
|
+
};
|
|
52
|
+
orientation: {
|
|
53
|
+
type: PropType<Orientation>;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
disabled: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
asChild: {
|
|
61
|
+
readonly type: BooleanConstructor;
|
|
62
|
+
readonly default: false;
|
|
63
|
+
};
|
|
64
|
+
}>> & Readonly<{
|
|
65
|
+
"onUpdate:modelValue"?: ((order: string[]) => any) | undefined;
|
|
66
|
+
}>, {
|
|
67
|
+
as: string | import('vue').Component;
|
|
68
|
+
asChild: boolean;
|
|
69
|
+
disabled: boolean;
|
|
70
|
+
orientation: Orientation;
|
|
71
|
+
modelValue: string[];
|
|
72
|
+
defaultValue: string[];
|
|
73
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
74
|
+
export declare const SortableItem: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
75
|
+
as: {
|
|
76
|
+
default: string;
|
|
77
|
+
type: PropType<string | import('vue').Component>;
|
|
78
|
+
};
|
|
79
|
+
value: {
|
|
80
|
+
type: StringConstructor;
|
|
81
|
+
required: true;
|
|
82
|
+
};
|
|
83
|
+
/** How the item is named in announcements; defaults to its text. */
|
|
84
|
+
textValue: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
default: undefined;
|
|
87
|
+
};
|
|
88
|
+
asChild: {
|
|
89
|
+
readonly type: BooleanConstructor;
|
|
90
|
+
readonly default: false;
|
|
91
|
+
};
|
|
92
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
93
|
+
[key: string]: any;
|
|
94
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
95
|
+
as: {
|
|
96
|
+
default: string;
|
|
97
|
+
type: PropType<string | import('vue').Component>;
|
|
98
|
+
};
|
|
99
|
+
value: {
|
|
100
|
+
type: StringConstructor;
|
|
101
|
+
required: true;
|
|
102
|
+
};
|
|
103
|
+
/** How the item is named in announcements; defaults to its text. */
|
|
104
|
+
textValue: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
default: undefined;
|
|
107
|
+
};
|
|
108
|
+
asChild: {
|
|
109
|
+
readonly type: BooleanConstructor;
|
|
110
|
+
readonly default: false;
|
|
111
|
+
};
|
|
112
|
+
}>> & Readonly<{}>, {
|
|
113
|
+
as: string | import('vue').Component;
|
|
114
|
+
asChild: boolean;
|
|
115
|
+
textValue: string;
|
|
116
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
117
|
+
export declare const SortableHandle: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
118
|
+
readonly as: {
|
|
119
|
+
readonly default: "button";
|
|
120
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
121
|
+
};
|
|
122
|
+
readonly asChild: {
|
|
123
|
+
readonly type: BooleanConstructor;
|
|
124
|
+
readonly default: false;
|
|
125
|
+
};
|
|
126
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
127
|
+
[key: string]: any;
|
|
128
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
129
|
+
readonly as: {
|
|
130
|
+
readonly default: "button";
|
|
131
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
132
|
+
};
|
|
133
|
+
readonly asChild: {
|
|
134
|
+
readonly type: BooleanConstructor;
|
|
135
|
+
readonly default: false;
|
|
136
|
+
};
|
|
137
|
+
}>> & Readonly<{}>, {
|
|
138
|
+
readonly as: string | import('vue').Component;
|
|
139
|
+
readonly asChild: boolean;
|
|
140
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Direction, Orientation } from '@lovince/ui-headless';
|
|
3
|
+
/**
|
|
4
|
+
* Panels with draggable dividers between them — the WAI-ARIA window splitter.
|
|
5
|
+
* Sizes are percentages of the group, one per panel, and always add up to 100.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SplitterGroup: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
8
|
+
modelValue: {
|
|
9
|
+
type: PropType<number[]>;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
orientation: {
|
|
13
|
+
type: PropType<Orientation>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
dir: {
|
|
17
|
+
type: PropType<Direction>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
disabled: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
/** Percent moved per arrow key press. */
|
|
25
|
+
keyboardStep: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
default: number;
|
|
28
|
+
};
|
|
29
|
+
as: {
|
|
30
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
31
|
+
readonly default: "div";
|
|
32
|
+
};
|
|
33
|
+
asChild: {
|
|
34
|
+
readonly type: BooleanConstructor;
|
|
35
|
+
readonly default: false;
|
|
36
|
+
};
|
|
37
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
40
|
+
'update:modelValue': (sizes: number[]) => boolean;
|
|
41
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
42
|
+
modelValue: {
|
|
43
|
+
type: PropType<number[]>;
|
|
44
|
+
default: undefined;
|
|
45
|
+
};
|
|
46
|
+
orientation: {
|
|
47
|
+
type: PropType<Orientation>;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
dir: {
|
|
51
|
+
type: PropType<Direction>;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
disabled: {
|
|
55
|
+
type: BooleanConstructor;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
58
|
+
/** Percent moved per arrow key press. */
|
|
59
|
+
keyboardStep: {
|
|
60
|
+
type: NumberConstructor;
|
|
61
|
+
default: number;
|
|
62
|
+
};
|
|
63
|
+
as: {
|
|
64
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
65
|
+
readonly default: "div";
|
|
66
|
+
};
|
|
67
|
+
asChild: {
|
|
68
|
+
readonly type: BooleanConstructor;
|
|
69
|
+
readonly default: false;
|
|
70
|
+
};
|
|
71
|
+
}>> & Readonly<{
|
|
72
|
+
"onUpdate:modelValue"?: ((sizes: number[]) => any) | undefined;
|
|
73
|
+
}>, {
|
|
74
|
+
as: string | import('vue').Component;
|
|
75
|
+
asChild: boolean;
|
|
76
|
+
disabled: boolean;
|
|
77
|
+
dir: Direction;
|
|
78
|
+
orientation: Orientation;
|
|
79
|
+
keyboardStep: number;
|
|
80
|
+
modelValue: number[];
|
|
81
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
82
|
+
export declare const SplitterPanel: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
83
|
+
/** Starting size in percent; panels without one share what is left. */
|
|
84
|
+
defaultSize: {
|
|
85
|
+
type: NumberConstructor;
|
|
86
|
+
default: undefined;
|
|
87
|
+
};
|
|
88
|
+
minSize: {
|
|
89
|
+
type: NumberConstructor;
|
|
90
|
+
default: number;
|
|
91
|
+
};
|
|
92
|
+
maxSize: {
|
|
93
|
+
type: NumberConstructor;
|
|
94
|
+
default: number;
|
|
95
|
+
};
|
|
96
|
+
as: {
|
|
97
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
98
|
+
readonly default: "div";
|
|
99
|
+
};
|
|
100
|
+
asChild: {
|
|
101
|
+
readonly type: BooleanConstructor;
|
|
102
|
+
readonly default: false;
|
|
103
|
+
};
|
|
104
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
105
|
+
[key: string]: any;
|
|
106
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
107
|
+
/** Starting size in percent; panels without one share what is left. */
|
|
108
|
+
defaultSize: {
|
|
109
|
+
type: NumberConstructor;
|
|
110
|
+
default: undefined;
|
|
111
|
+
};
|
|
112
|
+
minSize: {
|
|
113
|
+
type: NumberConstructor;
|
|
114
|
+
default: number;
|
|
115
|
+
};
|
|
116
|
+
maxSize: {
|
|
117
|
+
type: NumberConstructor;
|
|
118
|
+
default: number;
|
|
119
|
+
};
|
|
120
|
+
as: {
|
|
121
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
122
|
+
readonly default: "div";
|
|
123
|
+
};
|
|
124
|
+
asChild: {
|
|
125
|
+
readonly type: BooleanConstructor;
|
|
126
|
+
readonly default: false;
|
|
127
|
+
};
|
|
128
|
+
}>> & Readonly<{}>, {
|
|
129
|
+
as: string | import('vue').Component;
|
|
130
|
+
asChild: boolean;
|
|
131
|
+
defaultSize: number;
|
|
132
|
+
minSize: number;
|
|
133
|
+
maxSize: number;
|
|
134
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
135
|
+
export declare const SplitterHandle: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
136
|
+
as: {
|
|
137
|
+
default: string;
|
|
138
|
+
type: PropType<string | import('vue').Component>;
|
|
139
|
+
};
|
|
140
|
+
label: {
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
asChild: {
|
|
145
|
+
readonly type: BooleanConstructor;
|
|
146
|
+
readonly default: false;
|
|
147
|
+
};
|
|
148
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
149
|
+
[key: string]: any;
|
|
150
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
151
|
+
as: {
|
|
152
|
+
default: string;
|
|
153
|
+
type: PropType<string | import('vue').Component>;
|
|
154
|
+
};
|
|
155
|
+
label: {
|
|
156
|
+
type: StringConstructor;
|
|
157
|
+
default: string;
|
|
158
|
+
};
|
|
159
|
+
asChild: {
|
|
160
|
+
readonly type: BooleanConstructor;
|
|
161
|
+
readonly default: false;
|
|
162
|
+
};
|
|
163
|
+
}>> & Readonly<{}>, {
|
|
164
|
+
as: string | import('vue').Component;
|
|
165
|
+
asChild: boolean;
|
|
166
|
+
label: string;
|
|
167
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ActivationMode, Direction, Orientation } from '@lovince/ui-headless';
|
|
3
|
+
export declare const TabsRoot: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
default: undefined;
|
|
7
|
+
};
|
|
8
|
+
defaultValue: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: undefined;
|
|
11
|
+
};
|
|
12
|
+
orientation: {
|
|
13
|
+
type: PropType<Orientation>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
dir: {
|
|
17
|
+
type: PropType<Direction>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
/** Automatic selects on arrow-key focus; manual waits for Enter or Space. */
|
|
21
|
+
activationMode: {
|
|
22
|
+
type: PropType<ActivationMode>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
loop: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
as: {
|
|
30
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
31
|
+
readonly default: "div";
|
|
32
|
+
};
|
|
33
|
+
asChild: {
|
|
34
|
+
readonly type: BooleanConstructor;
|
|
35
|
+
readonly default: false;
|
|
36
|
+
};
|
|
37
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
38
|
+
[key: string]: any;
|
|
39
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
40
|
+
'update:modelValue': (value: string) => boolean;
|
|
41
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
42
|
+
modelValue: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: undefined;
|
|
45
|
+
};
|
|
46
|
+
defaultValue: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: undefined;
|
|
49
|
+
};
|
|
50
|
+
orientation: {
|
|
51
|
+
type: PropType<Orientation>;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
dir: {
|
|
55
|
+
type: PropType<Direction>;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
/** Automatic selects on arrow-key focus; manual waits for Enter or Space. */
|
|
59
|
+
activationMode: {
|
|
60
|
+
type: PropType<ActivationMode>;
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
loop: {
|
|
64
|
+
type: BooleanConstructor;
|
|
65
|
+
default: boolean;
|
|
66
|
+
};
|
|
67
|
+
as: {
|
|
68
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
69
|
+
readonly default: "div";
|
|
70
|
+
};
|
|
71
|
+
asChild: {
|
|
72
|
+
readonly type: BooleanConstructor;
|
|
73
|
+
readonly default: false;
|
|
74
|
+
};
|
|
75
|
+
}>> & Readonly<{
|
|
76
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
77
|
+
}>, {
|
|
78
|
+
as: string | import('vue').Component;
|
|
79
|
+
asChild: boolean;
|
|
80
|
+
dir: Direction;
|
|
81
|
+
orientation: Orientation;
|
|
82
|
+
loop: boolean;
|
|
83
|
+
activationMode: ActivationMode;
|
|
84
|
+
modelValue: string;
|
|
85
|
+
defaultValue: string;
|
|
86
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
87
|
+
export declare const TabsList: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
88
|
+
readonly as: {
|
|
89
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
90
|
+
readonly default: "div";
|
|
91
|
+
};
|
|
92
|
+
readonly asChild: {
|
|
93
|
+
readonly type: BooleanConstructor;
|
|
94
|
+
readonly default: false;
|
|
95
|
+
};
|
|
96
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
97
|
+
[key: string]: any;
|
|
98
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
99
|
+
readonly as: {
|
|
100
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
101
|
+
readonly default: "div";
|
|
102
|
+
};
|
|
103
|
+
readonly asChild: {
|
|
104
|
+
readonly type: BooleanConstructor;
|
|
105
|
+
readonly default: false;
|
|
106
|
+
};
|
|
107
|
+
}>> & Readonly<{}>, {
|
|
108
|
+
readonly as: string | import('vue').Component;
|
|
109
|
+
readonly asChild: boolean;
|
|
110
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
111
|
+
export declare const TabsTrigger: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
112
|
+
value: {
|
|
113
|
+
type: StringConstructor;
|
|
114
|
+
required: true;
|
|
115
|
+
};
|
|
116
|
+
disabled: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
default: boolean;
|
|
119
|
+
};
|
|
120
|
+
as: {
|
|
121
|
+
readonly default: "button";
|
|
122
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
123
|
+
};
|
|
124
|
+
asChild: {
|
|
125
|
+
readonly type: BooleanConstructor;
|
|
126
|
+
readonly default: false;
|
|
127
|
+
};
|
|
128
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
129
|
+
[key: string]: any;
|
|
130
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
131
|
+
value: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
required: true;
|
|
134
|
+
};
|
|
135
|
+
disabled: {
|
|
136
|
+
type: BooleanConstructor;
|
|
137
|
+
default: boolean;
|
|
138
|
+
};
|
|
139
|
+
as: {
|
|
140
|
+
readonly default: "button";
|
|
141
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
142
|
+
};
|
|
143
|
+
asChild: {
|
|
144
|
+
readonly type: BooleanConstructor;
|
|
145
|
+
readonly default: false;
|
|
146
|
+
};
|
|
147
|
+
}>> & Readonly<{}>, {
|
|
148
|
+
as: string | import('vue').Component;
|
|
149
|
+
asChild: boolean;
|
|
150
|
+
disabled: boolean;
|
|
151
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
152
|
+
export declare const TabsContent: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
153
|
+
value: {
|
|
154
|
+
type: StringConstructor;
|
|
155
|
+
required: true;
|
|
156
|
+
};
|
|
157
|
+
as: {
|
|
158
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
159
|
+
readonly default: "div";
|
|
160
|
+
};
|
|
161
|
+
asChild: {
|
|
162
|
+
readonly type: BooleanConstructor;
|
|
163
|
+
readonly default: false;
|
|
164
|
+
};
|
|
165
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
166
|
+
[key: string]: any;
|
|
167
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
168
|
+
value: {
|
|
169
|
+
type: StringConstructor;
|
|
170
|
+
required: true;
|
|
171
|
+
};
|
|
172
|
+
as: {
|
|
173
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
174
|
+
readonly default: "div";
|
|
175
|
+
};
|
|
176
|
+
asChild: {
|
|
177
|
+
readonly type: BooleanConstructor;
|
|
178
|
+
readonly default: false;
|
|
179
|
+
};
|
|
180
|
+
}>> & Readonly<{}>, {
|
|
181
|
+
as: string | import('vue').Component;
|
|
182
|
+
asChild: boolean;
|
|
183
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { PropType, ShallowRef } from 'vue';
|
|
2
|
+
import { Toast } from '@lovince/ui-headless';
|
|
3
|
+
/** One queue per app, so `toast()` works from anywhere — a store, a composable, an event handler. */
|
|
4
|
+
export declare const toastStore: import('@lovince/ui-headless').ToastStore;
|
|
5
|
+
export declare const toast: import('@lovince/ui-headless').ToastApi;
|
|
6
|
+
/** The live list of toasts, for rendering a viewport. */
|
|
7
|
+
export declare const useToasts: () => ShallowRef<readonly Toast[]>;
|
|
8
|
+
/**
|
|
9
|
+
* Where toasts appear. A live region that exists before any toast does. The
|
|
10
|
+
* hotkey moves focus into it; timers pause while it is hovered or focused,
|
|
11
|
+
* or the tab is hidden.
|
|
12
|
+
*/
|
|
13
|
+
export declare const ToastViewport: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
14
|
+
as: {
|
|
15
|
+
default: string;
|
|
16
|
+
type: PropType<string | import('vue').Component>;
|
|
17
|
+
};
|
|
18
|
+
hotkey: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
label: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
asChild: {
|
|
27
|
+
readonly type: BooleanConstructor;
|
|
28
|
+
readonly default: false;
|
|
29
|
+
};
|
|
30
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
33
|
+
as: {
|
|
34
|
+
default: string;
|
|
35
|
+
type: PropType<string | import('vue').Component>;
|
|
36
|
+
};
|
|
37
|
+
hotkey: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
label: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
default: string;
|
|
44
|
+
};
|
|
45
|
+
asChild: {
|
|
46
|
+
readonly type: BooleanConstructor;
|
|
47
|
+
readonly default: false;
|
|
48
|
+
};
|
|
49
|
+
}>> & Readonly<{}>, {
|
|
50
|
+
as: string | import('vue').Component;
|
|
51
|
+
asChild: boolean;
|
|
52
|
+
label: string;
|
|
53
|
+
hotkey: string;
|
|
54
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
55
|
+
export declare const ToastRoot: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
56
|
+
as: {
|
|
57
|
+
default: string;
|
|
58
|
+
type: PropType<string | import('vue').Component>;
|
|
59
|
+
};
|
|
60
|
+
toast: {
|
|
61
|
+
type: PropType<Toast>;
|
|
62
|
+
required: true;
|
|
63
|
+
};
|
|
64
|
+
asChild: {
|
|
65
|
+
readonly type: BooleanConstructor;
|
|
66
|
+
readonly default: false;
|
|
67
|
+
};
|
|
68
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
69
|
+
[key: string]: any;
|
|
70
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
71
|
+
as: {
|
|
72
|
+
default: string;
|
|
73
|
+
type: PropType<string | import('vue').Component>;
|
|
74
|
+
};
|
|
75
|
+
toast: {
|
|
76
|
+
type: PropType<Toast>;
|
|
77
|
+
required: true;
|
|
78
|
+
};
|
|
79
|
+
asChild: {
|
|
80
|
+
readonly type: BooleanConstructor;
|
|
81
|
+
readonly default: false;
|
|
82
|
+
};
|
|
83
|
+
}>> & Readonly<{}>, {
|
|
84
|
+
as: string | import('vue').Component;
|
|
85
|
+
asChild: boolean;
|
|
86
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
87
|
+
export declare const ToastTitle: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
88
|
+
as: {
|
|
89
|
+
default: string;
|
|
90
|
+
type: PropType<string | import('vue').Component>;
|
|
91
|
+
};
|
|
92
|
+
asChild: {
|
|
93
|
+
readonly type: BooleanConstructor;
|
|
94
|
+
readonly default: false;
|
|
95
|
+
};
|
|
96
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
97
|
+
[key: string]: any;
|
|
98
|
+
}> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
99
|
+
as: {
|
|
100
|
+
default: string;
|
|
101
|
+
type: PropType<string | import('vue').Component>;
|
|
102
|
+
};
|
|
103
|
+
asChild: {
|
|
104
|
+
readonly type: BooleanConstructor;
|
|
105
|
+
readonly default: false;
|
|
106
|
+
};
|
|
107
|
+
}>> & Readonly<{}>, {
|
|
108
|
+
as: string | import('vue').Component;
|
|
109
|
+
asChild: boolean;
|
|
110
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
111
|
+
export declare const ToastDescription: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
112
|
+
as: {
|
|
113
|
+
default: string;
|
|
114
|
+
type: PropType<string | import('vue').Component>;
|
|
115
|
+
};
|
|
116
|
+
asChild: {
|
|
117
|
+
readonly type: BooleanConstructor;
|
|
118
|
+
readonly default: false;
|
|
119
|
+
};
|
|
120
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
121
|
+
[key: string]: any;
|
|
122
|
+
}> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
123
|
+
as: {
|
|
124
|
+
default: string;
|
|
125
|
+
type: PropType<string | import('vue').Component>;
|
|
126
|
+
};
|
|
127
|
+
asChild: {
|
|
128
|
+
readonly type: BooleanConstructor;
|
|
129
|
+
readonly default: false;
|
|
130
|
+
};
|
|
131
|
+
}>> & Readonly<{}>, {
|
|
132
|
+
as: string | import('vue').Component;
|
|
133
|
+
asChild: boolean;
|
|
134
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
135
|
+
/** Runs the toast's action, then dismisses it. Renders nothing when the toast has none. */
|
|
136
|
+
export declare const ToastAction: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
137
|
+
readonly as: {
|
|
138
|
+
readonly default: "button";
|
|
139
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
140
|
+
};
|
|
141
|
+
readonly asChild: {
|
|
142
|
+
readonly type: BooleanConstructor;
|
|
143
|
+
readonly default: false;
|
|
144
|
+
};
|
|
145
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
146
|
+
[key: string]: any;
|
|
147
|
+
}> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
148
|
+
readonly as: {
|
|
149
|
+
readonly default: "button";
|
|
150
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
151
|
+
};
|
|
152
|
+
readonly asChild: {
|
|
153
|
+
readonly type: BooleanConstructor;
|
|
154
|
+
readonly default: false;
|
|
155
|
+
};
|
|
156
|
+
}>> & Readonly<{}>, {
|
|
157
|
+
readonly as: string | import('vue').Component;
|
|
158
|
+
readonly asChild: boolean;
|
|
159
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
160
|
+
export declare const ToastClose: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
161
|
+
label: {
|
|
162
|
+
type: StringConstructor;
|
|
163
|
+
default: string;
|
|
164
|
+
};
|
|
165
|
+
as: {
|
|
166
|
+
readonly default: "button";
|
|
167
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
168
|
+
};
|
|
169
|
+
asChild: {
|
|
170
|
+
readonly type: BooleanConstructor;
|
|
171
|
+
readonly default: false;
|
|
172
|
+
};
|
|
173
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
174
|
+
[key: string]: any;
|
|
175
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
176
|
+
label: {
|
|
177
|
+
type: StringConstructor;
|
|
178
|
+
default: string;
|
|
179
|
+
};
|
|
180
|
+
as: {
|
|
181
|
+
readonly default: "button";
|
|
182
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
183
|
+
};
|
|
184
|
+
asChild: {
|
|
185
|
+
readonly type: BooleanConstructor;
|
|
186
|
+
readonly default: false;
|
|
187
|
+
};
|
|
188
|
+
}>> & Readonly<{}>, {
|
|
189
|
+
as: string | import('vue').Component;
|
|
190
|
+
asChild: boolean;
|
|
191
|
+
label: string;
|
|
192
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|