@midnight-owl/ui 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.
Files changed (69) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +68 -0
  3. package/dist/components/buttons/Button.vue.d.ts +44 -0
  4. package/dist/components/buttons/ButtonGroup.vue.d.ts +19 -0
  5. package/dist/components/data-display/Badge.vue.d.ts +34 -0
  6. package/dist/components/data-display/BubbleChat.vue.d.ts +52 -0
  7. package/dist/components/data-display/Image.vue.d.ts +56 -0
  8. package/dist/components/data-display/Pagination.vue.d.ts +60 -0
  9. package/dist/components/data-display/ProgressBar.vue.d.ts +34 -0
  10. package/dist/components/data-display/SkeletonLoader.vue.d.ts +14 -0
  11. package/dist/components/data-display/Table.vue.d.ts +182 -0
  12. package/dist/components/data-display/calendar/Calendar.vue.d.ts +116 -0
  13. package/dist/components/data-display/calendar/CalendarAgendaView.vue.d.ts +31 -0
  14. package/dist/components/data-display/calendar/CalendarEventDetails.vue.d.ts +23 -0
  15. package/dist/components/data-display/calendar/CalendarEventPill.vue.d.ts +39 -0
  16. package/dist/components/data-display/calendar/CalendarEventPopover.vue.d.ts +68 -0
  17. package/dist/components/data-display/calendar/CalendarMonthView.vue.d.ts +54 -0
  18. package/dist/components/data-display/calendar/CalendarTimeGridView.vue.d.ts +47 -0
  19. package/dist/components/data-display/calendar/CalendarYearView.vue.d.ts +17 -0
  20. package/dist/components/data-display/calendar/layout.d.ts +39 -0
  21. package/dist/components/data-display/calendar/providers/google.d.ts +16 -0
  22. package/dist/components/data-display/calendar/providers/ics.d.ts +23 -0
  23. package/dist/components/data-display/calendar/recurrence.d.ts +12 -0
  24. package/dist/components/data-display/calendar/types.d.ts +154 -0
  25. package/dist/components/data-display/calendar/tz.d.ts +17 -0
  26. package/dist/components/data-display/calendar/useCalendar.d.ts +75 -0
  27. package/dist/components/form-element/Autocomplete.vue.d.ts +78 -0
  28. package/dist/components/form-element/Checkbox.vue.d.ts +47 -0
  29. package/dist/components/form-element/DatePicker.vue.d.ts +75 -0
  30. package/dist/components/form-element/FileUpload.vue.d.ts +125 -0
  31. package/dist/components/form-element/InputGroup.vue.d.ts +26 -0
  32. package/dist/components/form-element/InputMask.vue.d.ts +43 -0
  33. package/dist/components/form-element/InputNumber.vue.d.ts +50 -0
  34. package/dist/components/form-element/InputOtp.vue.d.ts +44 -0
  35. package/dist/components/form-element/InputPassword.vue.d.ts +44 -0
  36. package/dist/components/form-element/InputText.vue.d.ts +42 -0
  37. package/dist/components/form-element/Radio.vue.d.ts +42 -0
  38. package/dist/components/form-element/TextEditor.vue.d.ts +44 -0
  39. package/dist/components/form-element/Textarea.vue.d.ts +46 -0
  40. package/dist/components/form-element/Toggle.vue.d.ts +25 -0
  41. package/dist/components/form-element/select/Select.vue.d.ts +168 -0
  42. package/dist/components/form-element/select/SelectOption.vue.d.ts +23 -0
  43. package/dist/components/form-element/text-editor-toolbar.d.ts +5 -0
  44. package/dist/components/panel/Breadcrumb.vue.d.ts +50 -0
  45. package/dist/components/panel/Card.vue.d.ts +28 -0
  46. package/dist/components/panel/Divider.vue.d.ts +28 -0
  47. package/dist/components/panel/DropDown.vue.d.ts +26 -0
  48. package/dist/components/panel/Modal.vue.d.ts +80 -0
  49. package/dist/components/panel/Popover.vue.d.ts +68 -0
  50. package/dist/components/panel/ScrollPanel.vue.d.ts +26 -0
  51. package/dist/components/panel/Stepper.vue.d.ts +179 -0
  52. package/dist/components/panel/Tabs.vue.d.ts +31 -0
  53. package/dist/components/panel/Toolbar.vue.d.ts +30 -0
  54. package/dist/components/panel/accordion/Accordion.vue.d.ts +31 -0
  55. package/dist/components/panel/accordion/AccordionPanel.vue.d.ts +35 -0
  56. package/dist/components/panel/toast/ToastErrorNode.vue.d.ts +10 -0
  57. package/dist/components/panel/toast/ToastItem.vue.d.ts +14 -0
  58. package/dist/components/panel/toast/ToastProvider.vue.d.ts +3 -0
  59. package/dist/components/panel/toast/errorTree.d.ts +12 -0
  60. package/dist/components/panel/toast/useToast.d.ts +164 -0
  61. package/dist/index.d.ts +60 -0
  62. package/dist/plugins/init-icons.d.ts +1 -0
  63. package/dist/plugins/init-theme.d.ts +4 -0
  64. package/dist/theme/presets.d.ts +75 -0
  65. package/dist/theme/remote.d.ts +2 -0
  66. package/dist/ui.css +3 -0
  67. package/dist/ui.es.js +29640 -0
  68. package/dist/ui.umd.js +234 -0
  69. package/package.json +82 -0
@@ -0,0 +1,75 @@
1
+ import { type MaybeRefOrGetter, type Ref } from 'vue';
2
+ import { type Locale } from 'date-fns';
3
+ import type { BusinessHours, CalendarEvent, CalendarProvider, CalendarView, CalendarWeekRow, DateRange, NormalizedEvent, WeekdayIndex } from './types';
4
+ export interface UseCalendarOptions {
5
+ /** Initial layout. Defaults to `'month'`. */
6
+ view?: CalendarView;
7
+ /** Initial focal date. Defaults to today. */
8
+ date?: Date | string;
9
+ /** Reactive source events. Accepts a ref, a getter, or a plain array. */
10
+ events?: MaybeRefOrGetter<CalendarEvent[]>;
11
+ /** 0 = Sunday (default) … 6 = Saturday. */
12
+ firstDayOfWeek?: WeekdayIndex;
13
+ /** IANA zone (e.g. `'America/New_York'`) for rendering event instants. */
14
+ timeZone?: string;
15
+ /** date-fns locale for day/month names. Defaults to en-US. */
16
+ locale?: Locale;
17
+ /** Optional pluggable source; when set, events are also fetched per range. */
18
+ provider?: CalendarProvider;
19
+ /** First and last hour shown in the week/day time grid. Defaults 0–24. */
20
+ dayStartHour?: number;
21
+ dayEndHour?: number;
22
+ /** Number of forward days the agenda view lists. Defaults to 30. */
23
+ agendaDayCount?: number;
24
+ /** Business-hours highlight; `true` uses Mon–Fri 09:00–17:00. */
25
+ businessHours?: BusinessHours | boolean;
26
+ }
27
+ export interface UseCalendarReturn {
28
+ view: Ref<CalendarView>;
29
+ currentDate: Ref<Date>;
30
+ firstDayOfWeek: Ref<WeekdayIndex>;
31
+ timeZone: Ref<string | undefined>;
32
+ dayStartHour: Ref<number>;
33
+ dayEndHour: Ref<number>;
34
+ agendaDayCount: Ref<number>;
35
+ businessHoursOption: Ref<BusinessHours | boolean | undefined>;
36
+ isLoading: Ref<boolean>;
37
+ error: Ref<Error | null>;
38
+ title: Ref<string>;
39
+ visibleRange: Ref<DateRange>;
40
+ events: Ref<NormalizedEvent[]>;
41
+ weekdayNames: Ref<string[]>;
42
+ monthWeeks: Ref<CalendarWeekRow[]>;
43
+ dayColumns: Ref<Date[]>;
44
+ hours: Ref<number[]>;
45
+ agendaDays: Ref<{
46
+ date: Date;
47
+ key: string;
48
+ events: NormalizedEvent[];
49
+ }[]>;
50
+ yearMonths: Ref<{
51
+ date: Date;
52
+ key: string;
53
+ label: string;
54
+ eventCount: number;
55
+ }[]>;
56
+ businessHours: Ref<BusinessHours | null>;
57
+ isConnected: Ref<boolean>;
58
+ provider: CalendarProvider | undefined;
59
+ next: () => void;
60
+ prev: () => void;
61
+ today: () => void;
62
+ goToDate: (date: Date | string) => void;
63
+ setView: (view: CalendarView) => void;
64
+ getEventsForDay: (date: Date) => NormalizedEvent[];
65
+ getTimedEventsForDay: (date: Date) => NormalizedEvent[];
66
+ getAllDayEventsForDay: (date: Date) => NormalizedEvent[];
67
+ addEvent: (event: CalendarEvent) => Promise<void>;
68
+ updateEvent: (event: CalendarEvent) => Promise<void>;
69
+ removeEvent: (eventId: string) => Promise<void>;
70
+ refresh: () => Promise<void>;
71
+ connect: () => Promise<void>;
72
+ disconnect: () => Promise<void>;
73
+ formatTime: (date: Date) => string;
74
+ }
75
+ export declare function useCalendar(options?: UseCalendarOptions): UseCalendarReturn;
@@ -0,0 +1,78 @@
1
+ interface Props {
2
+ id?: string;
3
+ label?: string;
4
+ labelPosition?: 'top' | 'left';
5
+ placeholder?: string;
6
+ required?: boolean;
7
+ disabled?: boolean;
8
+ loading?: boolean;
9
+ error?: string | boolean | string[];
10
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
11
+ options: any[];
12
+ optionLabel?: string | ((opt: any) => string);
13
+ optionValue?: string | ((opt: any) => any);
14
+ filter?: boolean;
15
+ openOnFocus?: boolean;
16
+ maxHeight?: string | number;
17
+ debounce?: number;
18
+ iconStart?: string;
19
+ iconEnd?: string;
20
+ }
21
+ type __VLS_Props = Props;
22
+ type __VLS_ModelProps = {
23
+ modelValue?: string;
24
+ };
25
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
26
+ declare var __VLS_19: {
27
+ option: any;
28
+ index: number;
29
+ active: boolean;
30
+ }, __VLS_21: {}, __VLS_28: {};
31
+ type __VLS_Slots = {} & {
32
+ option?: (props: typeof __VLS_19) => any;
33
+ } & {
34
+ empty?: (props: typeof __VLS_21) => any;
35
+ } & {
36
+ action?: (props: typeof __VLS_28) => any;
37
+ };
38
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
39
+ "update:modelValue": (value: string) => any;
40
+ } & {
41
+ search: (value: string) => any;
42
+ select: (option: any) => any;
43
+ focus: (event: FocusEvent) => any;
44
+ blur: (event: FocusEvent) => any;
45
+ close: () => any;
46
+ "create-new": (value: string) => any;
47
+ open: () => any;
48
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
49
+ onSearch?: ((value: string) => any) | undefined;
50
+ onSelect?: ((option: any) => any) | undefined;
51
+ onFocus?: ((event: FocusEvent) => any) | undefined;
52
+ onBlur?: ((event: FocusEvent) => any) | undefined;
53
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
54
+ onClose?: (() => any) | undefined;
55
+ "onCreate-new"?: ((value: string) => any) | undefined;
56
+ onOpen?: (() => any) | undefined;
57
+ }>, {
58
+ size: "xs" | "sm" | "md" | "lg" | "xl";
59
+ disabled: boolean;
60
+ loading: boolean;
61
+ filter: boolean;
62
+ labelPosition: "top" | "left";
63
+ required: boolean;
64
+ error: string | boolean | string[];
65
+ optionLabel: string | ((opt: any) => string);
66
+ optionValue: string | ((opt: any) => any);
67
+ openOnFocus: boolean;
68
+ maxHeight: string | number;
69
+ debounce: number;
70
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
71
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
72
+ declare const _default: typeof __VLS_export;
73
+ export default _default;
74
+ type __VLS_WithSlots<T, S> = T & {
75
+ new (): {
76
+ $slots: S;
77
+ };
78
+ };
@@ -0,0 +1,47 @@
1
+ interface Props {
2
+ id?: string;
3
+ value?: any;
4
+ trueValue?: any;
5
+ falseValue?: any;
6
+ label?: string;
7
+ indeterminate?: boolean;
8
+ disabled?: boolean;
9
+ required?: boolean;
10
+ error?: string | boolean | string[];
11
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
12
+ variant?: 'primary' | 'secondary' | 'success' | 'warning' | 'danger' | 'info';
13
+ }
14
+ type __VLS_Props = Props;
15
+ type __VLS_ModelProps = {
16
+ modelValue?: any;
17
+ };
18
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
19
+ declare var __VLS_16: {};
20
+ type __VLS_Slots = {} & {
21
+ default?: (props: typeof __VLS_16) => any;
22
+ };
23
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
+ "update:modelValue": (value: any) => any;
25
+ } & {
26
+ change: (value: any, event: Event) => any;
27
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
+ onChange?: ((value: any, event: Event) => any) | undefined;
29
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
30
+ }>, {
31
+ variant: "primary" | "secondary" | "success" | "warning" | "danger" | "info";
32
+ size: "xs" | "sm" | "md" | "lg" | "xl";
33
+ disabled: boolean;
34
+ required: boolean;
35
+ error: string | boolean | string[];
36
+ trueValue: any;
37
+ falseValue: any;
38
+ indeterminate: boolean;
39
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
40
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
41
+ declare const _default: typeof __VLS_export;
42
+ export default _default;
43
+ type __VLS_WithSlots<T, S> = T & {
44
+ new (): {
45
+ $slots: S;
46
+ };
47
+ };
@@ -0,0 +1,75 @@
1
+ interface Props {
2
+ id?: string;
3
+ label?: string;
4
+ labelPosition?: 'top' | 'left';
5
+ required?: boolean;
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ error?: string | boolean | string[];
9
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
10
+ mode?: 'single' | 'range';
11
+ pickerType?: 'date' | 'month' | 'year';
12
+ inline?: boolean;
13
+ enableTime?: boolean;
14
+ closeOnSelect?: boolean;
15
+ autoApply?: boolean;
16
+ showPresets?: boolean;
17
+ presetRanges?: {
18
+ label: string;
19
+ range: [Date, Date];
20
+ }[];
21
+ displayFormat?: string;
22
+ modelFormat?: 'Date' | 'ISO' | 'timestamp' | string;
23
+ rangeKeys?: {
24
+ start: string;
25
+ end: string;
26
+ };
27
+ minDate?: Date | string | number;
28
+ maxDate?: Date | string | number;
29
+ showClear?: boolean;
30
+ }
31
+ type __VLS_Props = Props;
32
+ type __VLS_ModelProps = {
33
+ modelValue?: any;
34
+ };
35
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
36
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
37
+ "update:modelValue": (value: any) => any;
38
+ } & {
39
+ focus: (event: FocusEvent) => any;
40
+ blur: (event: FocusEvent) => any;
41
+ change: (value: any) => any;
42
+ apply: (value: any) => any;
43
+ cancel: () => any;
44
+ clear: () => any;
45
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
46
+ onFocus?: ((event: FocusEvent) => any) | undefined;
47
+ onBlur?: ((event: FocusEvent) => any) | undefined;
48
+ onChange?: ((value: any) => any) | undefined;
49
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
50
+ onApply?: ((value: any) => any) | undefined;
51
+ onCancel?: (() => any) | undefined;
52
+ onClear?: (() => any) | undefined;
53
+ }>, {
54
+ size: "xs" | "sm" | "md" | "lg" | "xl";
55
+ disabled: boolean;
56
+ mode: "single" | "range";
57
+ inline: boolean;
58
+ labelPosition: "top" | "left";
59
+ required: boolean;
60
+ error: string | boolean | string[];
61
+ closeOnSelect: boolean;
62
+ showClear: boolean;
63
+ pickerType: "date" | "month" | "year";
64
+ enableTime: boolean;
65
+ autoApply: boolean;
66
+ showPresets: boolean;
67
+ displayFormat: string;
68
+ modelFormat: "Date" | "ISO" | "timestamp" | string;
69
+ rangeKeys: {
70
+ start: string;
71
+ end: string;
72
+ };
73
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
74
+ declare const _default: typeof __VLS_export;
75
+ export default _default;
@@ -0,0 +1,125 @@
1
+ export type UploadStatus = 'pending' | 'uploading' | 'success' | 'error';
2
+ export interface UploadFileItem {
3
+ id: string;
4
+ file: File;
5
+ status: UploadStatus;
6
+ progress: number;
7
+ errorText?: string;
8
+ previewUrl?: string;
9
+ isImage: boolean;
10
+ extension: string;
11
+ }
12
+ interface Props {
13
+ id?: string;
14
+ accept?: string;
15
+ multiple?: boolean;
16
+ maxSize?: number;
17
+ maxFiles?: number;
18
+ disabled?: boolean;
19
+ loading?: boolean;
20
+ isShowProgressBar?: boolean;
21
+ error?: string | boolean | string[];
22
+ layout?: 'dropzone' | 'button' | 'compact';
23
+ label?: string;
24
+ hint?: string;
25
+ validator?: (file: File) => string | boolean | Promise<string | boolean>;
26
+ }
27
+ type __VLS_Props = Props;
28
+ type __VLS_ModelProps = {
29
+ modelValue?: File[];
30
+ };
31
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
32
+ declare var __VLS_1: {
33
+ trigger: () => void;
34
+ isDragging: boolean;
35
+ disabled: boolean;
36
+ hasError: boolean;
37
+ }, __VLS_25: {
38
+ files: {
39
+ id: string;
40
+ file: {
41
+ readonly lastModified: number;
42
+ readonly name: string;
43
+ readonly webkitRelativePath: string;
44
+ readonly size: number;
45
+ readonly type: string;
46
+ arrayBuffer: () => Promise<ArrayBuffer>;
47
+ bytes: () => Promise<Uint8Array<ArrayBuffer>>;
48
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
49
+ stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
50
+ text: () => Promise<string>;
51
+ };
52
+ status: UploadStatus;
53
+ progress: number;
54
+ errorText?: string | undefined;
55
+ previewUrl?: string | undefined;
56
+ isImage: boolean;
57
+ extension: string;
58
+ }[];
59
+ remove: (id: string) => void;
60
+ }, __VLS_33: {
61
+ item: {
62
+ id: string;
63
+ file: {
64
+ readonly lastModified: number;
65
+ readonly name: string;
66
+ readonly webkitRelativePath: string;
67
+ readonly size: number;
68
+ readonly type: string;
69
+ arrayBuffer: () => Promise<ArrayBuffer>;
70
+ bytes: () => Promise<Uint8Array<ArrayBuffer>>;
71
+ slice: (start?: number, end?: number, contentType?: string) => Blob;
72
+ stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
73
+ text: () => Promise<string>;
74
+ };
75
+ status: UploadStatus;
76
+ progress: number;
77
+ errorText?: string | undefined;
78
+ previewUrl?: string | undefined;
79
+ isImage: boolean;
80
+ extension: string;
81
+ };
82
+ };
83
+ type __VLS_Slots = {} & {
84
+ trigger?: (props: typeof __VLS_1) => any;
85
+ } & {
86
+ 'file-list'?: (props: typeof __VLS_25) => any;
87
+ } & {
88
+ preview?: (props: typeof __VLS_33) => any;
89
+ };
90
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {
91
+ triggerSelect: () => void;
92
+ updateProgressBar: (id: string, progress: number, status?: UploadStatus) => void;
93
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
94
+ "update:modelValue": (value: File[]) => any;
95
+ } & {
96
+ error: (message: string, file?: File | undefined) => any;
97
+ change: (files: File[]) => any;
98
+ remove: (file: File) => any;
99
+ "exceed-limit": () => any;
100
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
101
+ onError?: ((message: string, file?: File | undefined) => any) | undefined;
102
+ onChange?: ((files: File[]) => any) | undefined;
103
+ "onUpdate:modelValue"?: ((value: File[]) => any) | undefined;
104
+ onRemove?: ((file: File) => any) | undefined;
105
+ "onExceed-limit"?: (() => any) | undefined;
106
+ }>, {
107
+ label: string;
108
+ disabled: boolean;
109
+ loading: boolean;
110
+ error: string | boolean | string[];
111
+ multiple: boolean;
112
+ maxSize: number;
113
+ maxFiles: number;
114
+ isShowProgressBar: boolean;
115
+ layout: "dropzone" | "button" | "compact";
116
+ hint: string;
117
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
118
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
119
+ declare const _default: typeof __VLS_export;
120
+ export default _default;
121
+ type __VLS_WithSlots<T, S> = T & {
122
+ new (): {
123
+ $slots: S;
124
+ };
125
+ };
@@ -0,0 +1,26 @@
1
+ interface Props {
2
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
3
+ disabled?: boolean;
4
+ error?: boolean;
5
+ }
6
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
7
+ type __VLS_Slots = {} & {
8
+ prepend?: (props: typeof __VLS_1) => any;
9
+ } & {
10
+ default?: (props: typeof __VLS_3) => any;
11
+ } & {
12
+ append?: (props: typeof __VLS_5) => any;
13
+ };
14
+ declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
15
+ size: "xs" | "sm" | "md" | "lg" | "xl";
16
+ disabled: boolean;
17
+ error: boolean;
18
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
20
+ declare const _default: typeof __VLS_export;
21
+ export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,43 @@
1
+ interface Props {
2
+ id?: string;
3
+ label?: string;
4
+ labelPosition?: 'top' | 'left';
5
+ required?: boolean;
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ error?: string | boolean | string[];
9
+ iconStart?: string;
10
+ iconEnd?: string;
11
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
12
+ mask: string | string[];
13
+ tokens?: Record<string, any>;
14
+ }
15
+ type __VLS_Props = Props;
16
+ type __VLS_ModelProps = {
17
+ modelValue?: string;
18
+ };
19
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
20
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "update:modelValue": (value: string | undefined) => any;
22
+ } & {
23
+ input: (value: string) => any;
24
+ focus: (event: FocusEvent) => any;
25
+ blur: (event: FocusEvent) => any;
26
+ change: (value: string) => any;
27
+ maska: (event: CustomEvent<any>) => any;
28
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
29
+ onInput?: ((value: string) => any) | undefined;
30
+ onFocus?: ((event: FocusEvent) => any) | undefined;
31
+ onBlur?: ((event: FocusEvent) => any) | undefined;
32
+ onChange?: ((value: string) => any) | undefined;
33
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
34
+ onMaska?: ((event: CustomEvent<any>) => any) | undefined;
35
+ }>, {
36
+ size: "xs" | "sm" | "md" | "lg" | "xl";
37
+ disabled: boolean;
38
+ labelPosition: "top" | "left";
39
+ required: boolean;
40
+ error: string | boolean | string[];
41
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
42
+ declare const _default: typeof __VLS_export;
43
+ export default _default;
@@ -0,0 +1,50 @@
1
+ interface Props {
2
+ id?: string;
3
+ label?: string;
4
+ labelPosition?: 'top' | 'left';
5
+ required?: boolean;
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ error?: string | boolean | string[];
9
+ min?: number;
10
+ max?: number;
11
+ step?: number;
12
+ showButtons?: boolean;
13
+ orientation?: 'vertical' | 'horizontal';
14
+ incrementIcon?: string;
15
+ decrementIcon?: string;
16
+ prefix?: string;
17
+ suffix?: string;
18
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
19
+ keyfilter?: string | RegExp;
20
+ }
21
+ type __VLS_Props = Props;
22
+ type __VLS_ModelProps = {
23
+ modelValue?: number | null;
24
+ };
25
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
26
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
27
+ "update:modelValue": (value: number | null | undefined) => any;
28
+ } & {
29
+ input: (value: number | null | undefined) => any;
30
+ focus: (event: FocusEvent) => any;
31
+ blur: (event: FocusEvent) => any;
32
+ change: (value: number | null | undefined) => any;
33
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
34
+ onInput?: ((value: number | null | undefined) => any) | undefined;
35
+ onFocus?: ((event: FocusEvent) => any) | undefined;
36
+ onBlur?: ((event: FocusEvent) => any) | undefined;
37
+ onChange?: ((value: number | null | undefined) => any) | undefined;
38
+ "onUpdate:modelValue"?: ((value: number | null | undefined) => any) | undefined;
39
+ }>, {
40
+ size: "xs" | "sm" | "md" | "lg" | "xl";
41
+ disabled: boolean;
42
+ orientation: "vertical" | "horizontal";
43
+ labelPosition: "top" | "left";
44
+ required: boolean;
45
+ error: string | boolean | string[];
46
+ step: number;
47
+ showButtons: boolean;
48
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
49
+ declare const _default: typeof __VLS_export;
50
+ export default _default;
@@ -0,0 +1,44 @@
1
+ interface Props {
2
+ id?: string;
3
+ label?: string;
4
+ labelPosition?: 'top' | 'left';
5
+ required?: boolean;
6
+ disabled?: boolean;
7
+ error?: string | boolean | string[];
8
+ length?: number;
9
+ mask?: boolean;
10
+ integerOnly?: boolean;
11
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
12
+ }
13
+ type __VLS_Props = Props;
14
+ type __VLS_ModelProps = {
15
+ modelValue?: string;
16
+ };
17
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
18
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
+ "update:modelValue": (value: string) => any;
20
+ } & {
21
+ input: (value: string) => any;
22
+ focus: (event: FocusEvent) => any;
23
+ blur: (event: FocusEvent) => any;
24
+ change: (value: string) => any;
25
+ complete: (value: string) => any;
26
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
27
+ onInput?: ((value: string) => any) | undefined;
28
+ onFocus?: ((event: FocusEvent) => any) | undefined;
29
+ onBlur?: ((event: FocusEvent) => any) | undefined;
30
+ onChange?: ((value: string) => any) | undefined;
31
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
32
+ onComplete?: ((value: string) => any) | undefined;
33
+ }>, {
34
+ size: "xs" | "sm" | "md" | "lg" | "xl";
35
+ disabled: boolean;
36
+ length: number;
37
+ mask: boolean;
38
+ labelPosition: "top" | "left";
39
+ required: boolean;
40
+ error: string | boolean | string[];
41
+ integerOnly: boolean;
42
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
43
+ declare const _default: typeof __VLS_export;
44
+ export default _default;
@@ -0,0 +1,44 @@
1
+ interface Props {
2
+ id?: string;
3
+ label?: string;
4
+ labelPosition?: 'top' | 'left';
5
+ required?: boolean;
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ error?: string | boolean | string[];
9
+ iconStart?: string;
10
+ toggleable?: boolean;
11
+ iconOn?: string;
12
+ iconOff?: string;
13
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
14
+ }
15
+ type __VLS_Props = Props;
16
+ type __VLS_ModelProps = {
17
+ modelValue?: string;
18
+ };
19
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
20
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "update:modelValue": (value: string | undefined) => any;
22
+ } & {
23
+ input: (value: string) => any;
24
+ focus: (event: FocusEvent) => any;
25
+ blur: (event: FocusEvent) => any;
26
+ change: (value: string) => any;
27
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
+ onInput?: ((value: string) => any) | undefined;
29
+ onFocus?: ((event: FocusEvent) => any) | undefined;
30
+ onBlur?: ((event: FocusEvent) => any) | undefined;
31
+ onChange?: ((value: string) => any) | undefined;
32
+ "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
33
+ }>, {
34
+ size: "xs" | "sm" | "md" | "lg" | "xl";
35
+ disabled: boolean;
36
+ labelPosition: "top" | "left";
37
+ required: boolean;
38
+ error: string | boolean | string[];
39
+ toggleable: boolean;
40
+ iconOn: string;
41
+ iconOff: string;
42
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
43
+ declare const _default: typeof __VLS_export;
44
+ export default _default;
@@ -0,0 +1,42 @@
1
+ interface Props {
2
+ type?: string;
3
+ id?: string;
4
+ label?: string;
5
+ labelPosition?: 'top' | 'left';
6
+ required?: boolean;
7
+ placeholder?: string;
8
+ disabled?: boolean;
9
+ error?: string | boolean | string[];
10
+ iconStart?: string;
11
+ iconEnd?: string;
12
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
13
+ keyfilter?: 'int' | 'num' | 'alpha' | 'alphanum' | RegExp;
14
+ }
15
+ type __VLS_Props = Props;
16
+ type __VLS_ModelProps = {
17
+ modelValue?: string | number;
18
+ };
19
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
20
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
+ "update:modelValue": (value: string | number | undefined) => any;
22
+ } & {
23
+ input: (value: string | number) => any;
24
+ focus: (event: FocusEvent) => any;
25
+ blur: (event: FocusEvent) => any;
26
+ change: (value: string | number) => any;
27
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
+ onInput?: ((value: string | number) => any) | undefined;
29
+ onFocus?: ((event: FocusEvent) => any) | undefined;
30
+ onBlur?: ((event: FocusEvent) => any) | undefined;
31
+ onChange?: ((value: string | number) => any) | undefined;
32
+ "onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
33
+ }>, {
34
+ size: "xs" | "sm" | "md" | "lg" | "xl";
35
+ disabled: boolean;
36
+ type: string;
37
+ labelPosition: "top" | "left";
38
+ required: boolean;
39
+ error: string | boolean | string[];
40
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
41
+ declare const _default: typeof __VLS_export;
42
+ export default _default;