@lovince/ui-vue 0.0.0-stage → 0.1.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/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 +37 -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,293 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { Orientation } from '@lovince/ui-headless';
|
|
3
|
+
/**
|
|
4
|
+
* A row of slides shown one view at a time — the WAI-ARIA carousel. It
|
|
5
|
+
* scrolls natively with scroll snapping; the buttons and dots move it for
|
|
6
|
+
* everyone else. It never moves on its own.
|
|
7
|
+
*/
|
|
8
|
+
export declare const CarouselRoot: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
9
|
+
/** The first slide in view. */
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
orientation: {
|
|
15
|
+
type: PropType<Orientation>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
/** Next on the last slide goes back to the first. */
|
|
19
|
+
loop: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
/** Names the carousel: “Borrower documents”. */
|
|
24
|
+
label: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: undefined;
|
|
27
|
+
};
|
|
28
|
+
roleDescription: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
as: {
|
|
33
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
34
|
+
readonly default: "div";
|
|
35
|
+
};
|
|
36
|
+
asChild: {
|
|
37
|
+
readonly type: BooleanConstructor;
|
|
38
|
+
readonly default: false;
|
|
39
|
+
};
|
|
40
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
41
|
+
[key: string]: any;
|
|
42
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
43
|
+
'update:modelValue': (index: number) => boolean;
|
|
44
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
45
|
+
/** The first slide in view. */
|
|
46
|
+
modelValue: {
|
|
47
|
+
type: NumberConstructor;
|
|
48
|
+
default: undefined;
|
|
49
|
+
};
|
|
50
|
+
orientation: {
|
|
51
|
+
type: PropType<Orientation>;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
/** Next on the last slide goes back to the first. */
|
|
55
|
+
loop: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
/** Names the carousel: “Borrower documents”. */
|
|
60
|
+
label: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: undefined;
|
|
63
|
+
};
|
|
64
|
+
roleDescription: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
as: {
|
|
69
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
70
|
+
readonly default: "div";
|
|
71
|
+
};
|
|
72
|
+
asChild: {
|
|
73
|
+
readonly type: BooleanConstructor;
|
|
74
|
+
readonly default: false;
|
|
75
|
+
};
|
|
76
|
+
}>> & Readonly<{
|
|
77
|
+
"onUpdate:modelValue"?: ((index: number) => any) | undefined;
|
|
78
|
+
}>, {
|
|
79
|
+
as: string | import('vue').Component;
|
|
80
|
+
asChild: boolean;
|
|
81
|
+
label: string;
|
|
82
|
+
orientation: Orientation;
|
|
83
|
+
loop: boolean;
|
|
84
|
+
modelValue: number;
|
|
85
|
+
roleDescription: string;
|
|
86
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
87
|
+
export declare const CarouselViewport: 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 CarouselSlide: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
112
|
+
getLabel: {
|
|
113
|
+
type: PropType<(position: number, total: number) => string>;
|
|
114
|
+
default: undefined;
|
|
115
|
+
};
|
|
116
|
+
roleDescription: {
|
|
117
|
+
type: StringConstructor;
|
|
118
|
+
default: string;
|
|
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
|
+
}>, () => 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
|
+
getLabel: {
|
|
132
|
+
type: PropType<(position: number, total: number) => string>;
|
|
133
|
+
default: undefined;
|
|
134
|
+
};
|
|
135
|
+
roleDescription: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
default: string;
|
|
138
|
+
};
|
|
139
|
+
as: {
|
|
140
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
141
|
+
readonly default: "div";
|
|
142
|
+
};
|
|
143
|
+
asChild: {
|
|
144
|
+
readonly type: BooleanConstructor;
|
|
145
|
+
readonly default: false;
|
|
146
|
+
};
|
|
147
|
+
}>> & Readonly<{}>, {
|
|
148
|
+
as: string | import('vue').Component;
|
|
149
|
+
asChild: boolean;
|
|
150
|
+
roleDescription: string;
|
|
151
|
+
getLabel: (position: number, total: number) => string;
|
|
152
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
153
|
+
export declare const CarouselPrevious: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
154
|
+
label: {
|
|
155
|
+
type: StringConstructor;
|
|
156
|
+
default: string;
|
|
157
|
+
};
|
|
158
|
+
as: {
|
|
159
|
+
readonly default: "button";
|
|
160
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
161
|
+
};
|
|
162
|
+
asChild: {
|
|
163
|
+
readonly type: BooleanConstructor;
|
|
164
|
+
readonly default: false;
|
|
165
|
+
};
|
|
166
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
167
|
+
[key: string]: any;
|
|
168
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
169
|
+
label: {
|
|
170
|
+
type: StringConstructor;
|
|
171
|
+
default: string;
|
|
172
|
+
};
|
|
173
|
+
as: {
|
|
174
|
+
readonly default: "button";
|
|
175
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
176
|
+
};
|
|
177
|
+
asChild: {
|
|
178
|
+
readonly type: BooleanConstructor;
|
|
179
|
+
readonly default: false;
|
|
180
|
+
};
|
|
181
|
+
}>> & Readonly<{}>, {
|
|
182
|
+
as: string | import('vue').Component;
|
|
183
|
+
asChild: boolean;
|
|
184
|
+
label: string;
|
|
185
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
186
|
+
export declare const CarouselNext: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
187
|
+
label: {
|
|
188
|
+
type: StringConstructor;
|
|
189
|
+
default: string;
|
|
190
|
+
};
|
|
191
|
+
as: {
|
|
192
|
+
readonly default: "button";
|
|
193
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
194
|
+
};
|
|
195
|
+
asChild: {
|
|
196
|
+
readonly type: BooleanConstructor;
|
|
197
|
+
readonly default: false;
|
|
198
|
+
};
|
|
199
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
200
|
+
[key: string]: any;
|
|
201
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
202
|
+
label: {
|
|
203
|
+
type: StringConstructor;
|
|
204
|
+
default: string;
|
|
205
|
+
};
|
|
206
|
+
as: {
|
|
207
|
+
readonly default: "button";
|
|
208
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
209
|
+
};
|
|
210
|
+
asChild: {
|
|
211
|
+
readonly type: BooleanConstructor;
|
|
212
|
+
readonly default: false;
|
|
213
|
+
};
|
|
214
|
+
}>> & Readonly<{}>, {
|
|
215
|
+
as: string | import('vue').Component;
|
|
216
|
+
asChild: boolean;
|
|
217
|
+
label: string;
|
|
218
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
219
|
+
/** Holds one indicator per position; its slot gets `count` and `current`. */
|
|
220
|
+
export declare const CarouselIndicators: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
221
|
+
label: {
|
|
222
|
+
type: StringConstructor;
|
|
223
|
+
default: string;
|
|
224
|
+
};
|
|
225
|
+
as: {
|
|
226
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
227
|
+
readonly default: "div";
|
|
228
|
+
};
|
|
229
|
+
asChild: {
|
|
230
|
+
readonly type: BooleanConstructor;
|
|
231
|
+
readonly default: false;
|
|
232
|
+
};
|
|
233
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
234
|
+
[key: string]: any;
|
|
235
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
236
|
+
label: {
|
|
237
|
+
type: StringConstructor;
|
|
238
|
+
default: string;
|
|
239
|
+
};
|
|
240
|
+
as: {
|
|
241
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
242
|
+
readonly default: "div";
|
|
243
|
+
};
|
|
244
|
+
asChild: {
|
|
245
|
+
readonly type: BooleanConstructor;
|
|
246
|
+
readonly default: false;
|
|
247
|
+
};
|
|
248
|
+
}>> & Readonly<{}>, {
|
|
249
|
+
as: string | import('vue').Component;
|
|
250
|
+
asChild: boolean;
|
|
251
|
+
label: string;
|
|
252
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
253
|
+
export declare const CarouselIndicator: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
254
|
+
index: {
|
|
255
|
+
type: NumberConstructor;
|
|
256
|
+
required: true;
|
|
257
|
+
};
|
|
258
|
+
label: {
|
|
259
|
+
type: StringConstructor;
|
|
260
|
+
default: undefined;
|
|
261
|
+
};
|
|
262
|
+
as: {
|
|
263
|
+
readonly default: "button";
|
|
264
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
265
|
+
};
|
|
266
|
+
asChild: {
|
|
267
|
+
readonly type: BooleanConstructor;
|
|
268
|
+
readonly default: false;
|
|
269
|
+
};
|
|
270
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
271
|
+
[key: string]: any;
|
|
272
|
+
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
273
|
+
index: {
|
|
274
|
+
type: NumberConstructor;
|
|
275
|
+
required: true;
|
|
276
|
+
};
|
|
277
|
+
label: {
|
|
278
|
+
type: StringConstructor;
|
|
279
|
+
default: undefined;
|
|
280
|
+
};
|
|
281
|
+
as: {
|
|
282
|
+
readonly default: "button";
|
|
283
|
+
readonly type: PropType<string | import('vue').Component>;
|
|
284
|
+
};
|
|
285
|
+
asChild: {
|
|
286
|
+
readonly type: BooleanConstructor;
|
|
287
|
+
readonly default: false;
|
|
288
|
+
};
|
|
289
|
+
}>> & Readonly<{}>, {
|
|
290
|
+
as: string | import('vue').Component;
|
|
291
|
+
asChild: boolean;
|
|
292
|
+
label: string;
|
|
293
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|