@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.
Files changed (43) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +134 -2
  3. package/dist/components/accordion.d.ts +197 -0
  4. package/dist/components/avatar.d.ts +90 -0
  5. package/dist/components/calendar.d.ts +421 -0
  6. package/dist/components/carousel.d.ts +293 -0
  7. package/dist/components/combobox.d.ts +431 -0
  8. package/dist/components/command.d.ts +252 -0
  9. package/dist/components/dialog.d.ts +242 -0
  10. package/dist/components/disclosure.d.ts +120 -0
  11. package/dist/components/emoji-picker.d.ts +359 -0
  12. package/dist/components/menu.d.ts +493 -0
  13. package/dist/components/navigation-menu.d.ts +275 -0
  14. package/dist/components/number-field.d.ts +202 -0
  15. package/dist/components/pin-input.d.ts +174 -0
  16. package/dist/components/popover.d.ts +213 -0
  17. package/dist/components/progress.d.ts +82 -0
  18. package/dist/components/radio-group.d.ts +167 -0
  19. package/dist/components/select.d.ts +418 -0
  20. package/dist/components/slider.d.ts +222 -0
  21. package/dist/components/sortable.d.ts +140 -0
  22. package/dist/components/splitter.d.ts +167 -0
  23. package/dist/components/tabs.d.ts +183 -0
  24. package/dist/components/toast.d.ts +192 -0
  25. package/dist/components/toggle-group.d.ts +205 -0
  26. package/dist/components/toggles.d.ts +232 -0
  27. package/dist/components/tooltip.d.ts +370 -0
  28. package/dist/components/tree.d.ts +147 -0
  29. package/dist/composables/data-table.d.ts +25 -0
  30. package/dist/composables/observers.d.ts +42 -0
  31. package/dist/composables/presence.d.ts +7 -0
  32. package/dist/index.d.ts +37 -0
  33. package/dist/index.js +4094 -0
  34. package/dist/shared/context.d.ts +2 -0
  35. package/dist/shared/dismiss.d.ts +17 -0
  36. package/dist/shared/element.d.ts +6 -0
  37. package/dist/shared/floating-props.d.ts +27 -0
  38. package/dist/shared/list.d.ts +17 -0
  39. package/dist/shared/machine.d.ts +37 -0
  40. package/dist/shared/parts.d.ts +8 -0
  41. package/dist/shared/portal.d.ts +34 -0
  42. package/dist/shared/primitive.d.ts +57 -0
  43. package/package.json +68 -4
@@ -0,0 +1,421 @@
1
+ import { PropType } from 'vue';
2
+ import { CalendarMode, CalendarMonth, IsoDate, Weekday } from '@lovince/ui-headless';
3
+ export type { CalendarMode, CalendarMonth };
4
+ /**
5
+ * A month grid, or several side by side: one tab stop, arrows by day and week,
6
+ * Page Up/Down by month. Values are `YYYY-MM-DD` strings in single mode
7
+ * (`v-model`) and range mode (`v-model:start` and `v-model:end`).
8
+ */
9
+ export declare const CalendarRoot: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
10
+ mode: {
11
+ type: PropType<CalendarMode>;
12
+ default: string;
13
+ };
14
+ modelValue: {
15
+ type: StringConstructor;
16
+ default: undefined;
17
+ };
18
+ defaultValue: {
19
+ type: StringConstructor;
20
+ default: undefined;
21
+ };
22
+ start: {
23
+ type: StringConstructor;
24
+ default: undefined;
25
+ };
26
+ end: {
27
+ type: StringConstructor;
28
+ default: undefined;
29
+ };
30
+ /** Any date in the first month shown (`v-model:month`). Defaults to the value's month, or today's. */
31
+ month: {
32
+ type: StringConstructor;
33
+ default: undefined;
34
+ };
35
+ numberOfMonths: {
36
+ type: NumberConstructor;
37
+ default: number;
38
+ };
39
+ weekStartsOn: {
40
+ type: PropType<Weekday>;
41
+ default: number;
42
+ };
43
+ locale: {
44
+ type: StringConstructor;
45
+ default: undefined;
46
+ };
47
+ min: {
48
+ type: StringConstructor;
49
+ default: undefined;
50
+ };
51
+ max: {
52
+ type: StringConstructor;
53
+ default: undefined;
54
+ };
55
+ isDateDisabled: {
56
+ type: PropType<(date: IsoDate) => boolean>;
57
+ default: undefined;
58
+ };
59
+ disabled: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ readonly: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ dir: {
68
+ type: PropType<"ltr" | "rtl">;
69
+ default: string;
70
+ };
71
+ as: {
72
+ readonly type: PropType<string | import('vue').Component>;
73
+ readonly default: "div";
74
+ };
75
+ asChild: {
76
+ readonly type: BooleanConstructor;
77
+ readonly default: false;
78
+ };
79
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
80
+ [key: string]: any;
81
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
82
+ 'update:modelValue': (value: IsoDate) => boolean;
83
+ 'update:start': (value: IsoDate | undefined) => boolean;
84
+ 'update:end': (value: IsoDate | undefined) => boolean;
85
+ 'update:month': (value: IsoDate) => boolean;
86
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
87
+ mode: {
88
+ type: PropType<CalendarMode>;
89
+ default: string;
90
+ };
91
+ modelValue: {
92
+ type: StringConstructor;
93
+ default: undefined;
94
+ };
95
+ defaultValue: {
96
+ type: StringConstructor;
97
+ default: undefined;
98
+ };
99
+ start: {
100
+ type: StringConstructor;
101
+ default: undefined;
102
+ };
103
+ end: {
104
+ type: StringConstructor;
105
+ default: undefined;
106
+ };
107
+ /** Any date in the first month shown (`v-model:month`). Defaults to the value's month, or today's. */
108
+ month: {
109
+ type: StringConstructor;
110
+ default: undefined;
111
+ };
112
+ numberOfMonths: {
113
+ type: NumberConstructor;
114
+ default: number;
115
+ };
116
+ weekStartsOn: {
117
+ type: PropType<Weekday>;
118
+ default: number;
119
+ };
120
+ locale: {
121
+ type: StringConstructor;
122
+ default: undefined;
123
+ };
124
+ min: {
125
+ type: StringConstructor;
126
+ default: undefined;
127
+ };
128
+ max: {
129
+ type: StringConstructor;
130
+ default: undefined;
131
+ };
132
+ isDateDisabled: {
133
+ type: PropType<(date: IsoDate) => boolean>;
134
+ default: undefined;
135
+ };
136
+ disabled: {
137
+ type: BooleanConstructor;
138
+ default: boolean;
139
+ };
140
+ readonly: {
141
+ type: BooleanConstructor;
142
+ default: boolean;
143
+ };
144
+ dir: {
145
+ type: PropType<"ltr" | "rtl">;
146
+ default: string;
147
+ };
148
+ as: {
149
+ readonly type: PropType<string | import('vue').Component>;
150
+ readonly default: "div";
151
+ };
152
+ asChild: {
153
+ readonly type: BooleanConstructor;
154
+ readonly default: false;
155
+ };
156
+ }>> & Readonly<{
157
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
158
+ "onUpdate:start"?: ((value: string | undefined) => any) | undefined;
159
+ "onUpdate:end"?: ((value: string | undefined) => any) | undefined;
160
+ "onUpdate:month"?: ((value: string) => any) | undefined;
161
+ }>, {
162
+ mode: CalendarMode;
163
+ as: string | import('vue').Component;
164
+ asChild: boolean;
165
+ disabled: boolean;
166
+ dir: "ltr" | "rtl";
167
+ start: string;
168
+ end: string;
169
+ min: string;
170
+ max: string;
171
+ locale: string;
172
+ month: string;
173
+ numberOfMonths: number;
174
+ weekStartsOn: Weekday;
175
+ readonly: boolean;
176
+ modelValue: string;
177
+ defaultValue: string;
178
+ isDateDisabled: (date: IsoDate) => boolean;
179
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
180
+ /** The month's name. Announced politely, so paging reads out where you landed. */
181
+ export declare const CalendarHeading: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
182
+ month: {
183
+ readonly type: StringConstructor;
184
+ readonly default: undefined;
185
+ };
186
+ as: {
187
+ default: string;
188
+ type: PropType<string | import('vue').Component>;
189
+ };
190
+ asChild: {
191
+ readonly type: BooleanConstructor;
192
+ readonly default: false;
193
+ };
194
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
195
+ [key: string]: any;
196
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
197
+ month: {
198
+ readonly type: StringConstructor;
199
+ readonly default: undefined;
200
+ };
201
+ as: {
202
+ default: string;
203
+ type: PropType<string | import('vue').Component>;
204
+ };
205
+ asChild: {
206
+ readonly type: BooleanConstructor;
207
+ readonly default: false;
208
+ };
209
+ }>> & Readonly<{}>, {
210
+ as: string | import('vue').Component;
211
+ asChild: boolean;
212
+ month: string;
213
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
214
+ export declare const CalendarPrev: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
215
+ label: {
216
+ type: StringConstructor;
217
+ default: string;
218
+ };
219
+ as: {
220
+ readonly default: "button";
221
+ readonly type: PropType<string | import('vue').Component>;
222
+ };
223
+ asChild: {
224
+ readonly type: BooleanConstructor;
225
+ readonly default: false;
226
+ };
227
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
228
+ [key: string]: any;
229
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
230
+ label: {
231
+ type: StringConstructor;
232
+ default: string;
233
+ };
234
+ as: {
235
+ readonly default: "button";
236
+ readonly type: PropType<string | import('vue').Component>;
237
+ };
238
+ asChild: {
239
+ readonly type: BooleanConstructor;
240
+ readonly default: false;
241
+ };
242
+ }>> & Readonly<{}>, {
243
+ as: string | import('vue').Component;
244
+ asChild: boolean;
245
+ label: string;
246
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
247
+ export declare const CalendarNext: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
248
+ label: {
249
+ type: StringConstructor;
250
+ default: string;
251
+ };
252
+ as: {
253
+ readonly default: "button";
254
+ readonly type: PropType<string | import('vue').Component>;
255
+ };
256
+ asChild: {
257
+ readonly type: BooleanConstructor;
258
+ readonly default: false;
259
+ };
260
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
261
+ [key: string]: any;
262
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
263
+ label: {
264
+ type: StringConstructor;
265
+ default: string;
266
+ };
267
+ as: {
268
+ readonly default: "button";
269
+ readonly type: PropType<string | import('vue').Component>;
270
+ };
271
+ asChild: {
272
+ readonly type: BooleanConstructor;
273
+ readonly default: false;
274
+ };
275
+ }>> & Readonly<{}>, {
276
+ as: string | import('vue').Component;
277
+ asChild: boolean;
278
+ label: string;
279
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
280
+ export declare const CalendarGrid: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
281
+ month: {
282
+ readonly type: StringConstructor;
283
+ readonly default: undefined;
284
+ };
285
+ as: {
286
+ default: string;
287
+ type: PropType<string | import('vue').Component>;
288
+ };
289
+ asChild: {
290
+ readonly type: BooleanConstructor;
291
+ readonly default: false;
292
+ };
293
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
294
+ [key: string]: any;
295
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
296
+ month: {
297
+ readonly type: StringConstructor;
298
+ readonly default: undefined;
299
+ };
300
+ as: {
301
+ default: string;
302
+ type: PropType<string | import('vue').Component>;
303
+ };
304
+ asChild: {
305
+ readonly type: BooleanConstructor;
306
+ readonly default: false;
307
+ };
308
+ }>> & Readonly<{}>, {
309
+ as: string | import('vue').Component;
310
+ asChild: boolean;
311
+ month: string;
312
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
313
+ /** The weekday column heading; `abbr` carries the full name for screen readers. */
314
+ export declare const CalendarHeadCell: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
315
+ as: {
316
+ default: string;
317
+ type: PropType<string | import('vue').Component>;
318
+ };
319
+ label: {
320
+ type: StringConstructor;
321
+ default: undefined;
322
+ };
323
+ asChild: {
324
+ readonly type: BooleanConstructor;
325
+ readonly default: false;
326
+ };
327
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
328
+ [key: string]: any;
329
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
330
+ as: {
331
+ default: string;
332
+ type: PropType<string | import('vue').Component>;
333
+ };
334
+ label: {
335
+ type: StringConstructor;
336
+ default: undefined;
337
+ };
338
+ asChild: {
339
+ readonly type: BooleanConstructor;
340
+ readonly default: false;
341
+ };
342
+ }>> & Readonly<{}>, {
343
+ as: string | import('vue').Component;
344
+ asChild: boolean;
345
+ label: string;
346
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
347
+ export declare const CalendarCell: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
348
+ date: {
349
+ readonly type: StringConstructor;
350
+ readonly required: true;
351
+ };
352
+ as: {
353
+ default: string;
354
+ type: PropType<string | import('vue').Component>;
355
+ };
356
+ asChild: {
357
+ readonly type: BooleanConstructor;
358
+ readonly default: false;
359
+ };
360
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
361
+ [key: string]: any;
362
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
363
+ date: {
364
+ readonly type: StringConstructor;
365
+ readonly required: true;
366
+ };
367
+ as: {
368
+ default: string;
369
+ type: PropType<string | import('vue').Component>;
370
+ };
371
+ asChild: {
372
+ readonly type: BooleanConstructor;
373
+ readonly default: false;
374
+ };
375
+ }>> & Readonly<{}>, {
376
+ as: string | import('vue').Component;
377
+ asChild: boolean;
378
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
379
+ export declare const CalendarDay: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
380
+ /** The grid's month, so days of the months either side are marked `data-outside`. */
381
+ month: {
382
+ type: StringConstructor;
383
+ default: undefined;
384
+ };
385
+ date: {
386
+ readonly type: StringConstructor;
387
+ readonly required: true;
388
+ };
389
+ as: {
390
+ readonly default: "button";
391
+ readonly type: PropType<string | import('vue').Component>;
392
+ };
393
+ asChild: {
394
+ readonly type: BooleanConstructor;
395
+ readonly default: false;
396
+ };
397
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
398
+ [key: string]: any;
399
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
400
+ /** The grid's month, so days of the months either side are marked `data-outside`. */
401
+ month: {
402
+ type: StringConstructor;
403
+ default: undefined;
404
+ };
405
+ date: {
406
+ readonly type: StringConstructor;
407
+ readonly required: true;
408
+ };
409
+ as: {
410
+ readonly default: "button";
411
+ readonly type: PropType<string | import('vue').Component>;
412
+ };
413
+ asChild: {
414
+ readonly type: BooleanConstructor;
415
+ readonly default: false;
416
+ };
417
+ }>> & Readonly<{}>, {
418
+ as: string | import('vue').Component;
419
+ asChild: boolean;
420
+ month: string;
421
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;