@dolanske/vui 1.2.1 → 1.4.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 (115) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +4 -27
  3. package/package.json +2 -2
  4. package/src/App.vue +8 -0
  5. package/src/components/Accordion/Accordion.vue +10 -3
  6. package/src/components/Accordion/accordion.scss +18 -3
  7. package/src/components/Button/Button.vue +5 -4
  8. package/src/components/Button/button.scss +9 -1
  9. package/src/components/ButtonGroup/button-group.scss +2 -2
  10. package/src/components/Calendar/calendar.scss +5 -0
  11. package/src/components/Card/Card.vue +1 -1
  12. package/src/components/CopyClipboard/CopyClipboard.vue +10 -3
  13. package/src/components/CopyClipboard/copy-clipboard.scss +1 -1
  14. package/src/components/Dropdown/Dropdown.vue +1 -15
  15. package/src/components/Dropdown/dropdown-item.scss +1 -1
  16. package/src/components/Dropdown/dropdown.scss +2 -2
  17. package/src/components/Grid/Grid.vue +3 -0
  18. package/src/components/Input/Counter.vue +1 -1
  19. package/src/components/Input/Password.vue +1 -1
  20. package/src/components/Input/input.scss +3 -3
  21. package/src/components/OTP/otp.scss +3 -3
  22. package/src/components/Pagination/Pagination.vue +25 -10
  23. package/src/components/Popout/Popout.vue +30 -9
  24. package/src/components/Popout/popout.scss +2 -1
  25. package/src/components/Progress/progress.scss +1 -1
  26. package/src/components/Select/Select.vue +2 -0
  27. package/src/components/Select/select.scss +1 -1
  28. package/src/components/Sidebar/sidebar.scss +1 -1
  29. package/src/components/Table/Head.vue +23 -16
  30. package/src/components/Table/table.scss +9 -8
  31. package/src/components/Tabs/Tabs.vue +1 -1
  32. package/src/components/Tabs/tabs.scss +2 -2
  33. package/src/components/Tooltip/Tooltip.vue +9 -17
  34. package/src/components/Tooltip/tooltip.scss +1 -4
  35. package/src/examples/ExampleAccordions.vue +17 -4
  36. package/src/examples/ExampleCopyClipboard.vue +2 -2
  37. package/src/examples/ExamplePalette.vue +6 -0
  38. package/src/examples/ExamplePopouts.vue +1 -1
  39. package/src/examples/ExampleTables.vue +164 -0
  40. package/src/examples/ExampleTabs.vue +3 -2
  41. package/src/internal/Backdrop/backdrop.scss +2 -2
  42. package/src/shared/helpers.ts +7 -0
  43. package/src/style/animation.scss +33 -5
  44. package/src/style/core.scss +24 -10
  45. package/src/style/fonts.scss +73 -0
  46. package/src/style/layout.scss +8 -39
  47. package/src/style/theme.scss +1 -1
  48. package/src/style/tooltip.scss +4 -4
  49. package/src/style/typography.scss +45 -25
  50. package/src/vite-env.d.ts +1 -1
  51. package/dist/components/Accordion/Accordion.vue.d.ts +0 -47
  52. package/dist/components/Accordion/AccordionGroup.vue.d.ts +0 -21
  53. package/dist/components/Alert/Alert.vue.d.ts +0 -36
  54. package/dist/components/Avatar/Avatar.vue.d.ts +0 -25
  55. package/dist/components/Badge/Badge.vue.d.ts +0 -22
  56. package/dist/components/Breadcrumbs/BreadcrumbItem.vue.d.ts +0 -22
  57. package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts +0 -18
  58. package/dist/components/Button/Button.vue.d.ts +0 -32
  59. package/dist/components/ButtonGroup/ButtonGroup.vue.d.ts +0 -22
  60. package/dist/components/Calendar/Calendar.vue.d.ts +0 -27
  61. package/dist/components/Card/Card.vue.d.ts +0 -26
  62. package/dist/components/Checkbox/Checkbox.vue.d.ts +0 -33
  63. package/dist/components/CopyClipboard/CopyClipboard.vue.d.ts +0 -41
  64. package/dist/components/Divider/Divider.vue.d.ts +0 -23
  65. package/dist/components/Drawer/Drawer.vue.d.ts +0 -53
  66. package/dist/components/Dropdown/Dropdown.vue.d.ts +0 -183
  67. package/dist/components/Dropdown/DropdownItem.vue.d.ts +0 -23
  68. package/dist/components/Dropdown/DropdownTitle.vue.d.ts +0 -21
  69. package/dist/components/Flex/Flex.vue.d.ts +0 -41
  70. package/dist/components/Grid/Grid.vue.d.ts +0 -34
  71. package/dist/components/Input/Color.vue.d.ts +0 -11
  72. package/dist/components/Input/Counter.vue.d.ts +0 -19
  73. package/dist/components/Input/Dropzone.vue.d.ts +0 -193
  74. package/dist/components/Input/File.vue.d.ts +0 -8
  75. package/dist/components/Input/Input.vue.d.ts +0 -56
  76. package/dist/components/Input/Password.vue.d.ts +0 -6
  77. package/dist/components/Input/Textarea.vue.d.ts +0 -31
  78. package/dist/components/Kbd/Kbd.vue.d.ts +0 -23
  79. package/dist/components/Kbd/KbdGroup.vue.d.ts +0 -19
  80. package/dist/components/Modal/Confirm.vue.d.ts +0 -43
  81. package/dist/components/Modal/Modal.vue.d.ts +0 -58
  82. package/dist/components/OTP/OTP.vue.d.ts +0 -44
  83. package/dist/components/OTP/OTPItem.vue.d.ts +0 -5
  84. package/dist/components/Pagination/Pagination.vue.d.ts +0 -46
  85. package/dist/components/Pagination/pagination.d.ts +0 -12
  86. package/dist/components/Popout/Popout.vue.d.ts +0 -42
  87. package/dist/components/Progress/Progress.vue.d.ts +0 -33
  88. package/dist/components/Radio/Radio.vue.d.ts +0 -29
  89. package/dist/components/Radio/RadioGroup.vue.d.ts +0 -27
  90. package/dist/components/Select/Select.vue.d.ts +0 -35
  91. package/dist/components/Sheet/Sheet.vue.d.ts +0 -47
  92. package/dist/components/Sidebar/Sidebar.vue.d.ts +0 -70
  93. package/dist/components/Skeleton/Skeleton.vue.d.ts +0 -8
  94. package/dist/components/Spinner/Spinner.vue.d.ts +0 -6
  95. package/dist/components/Switch/Switch.vue.d.ts +0 -28
  96. package/dist/components/Table/Cell.vue.d.ts +0 -22
  97. package/dist/components/Table/Head.vue.d.ts +0 -30
  98. package/dist/components/Table/Root.vue.d.ts +0 -41
  99. package/dist/components/Table/SelectAll.vue.d.ts +0 -2
  100. package/dist/components/Table/SelectRow.vue.d.ts +0 -6
  101. package/dist/components/Table/index.d.ts +0 -6
  102. package/dist/components/Table/table.d.ts +0 -68
  103. package/dist/components/Tabs/Tab.vue.d.ts +0 -22
  104. package/dist/components/Tabs/Tabs.vue.d.ts +0 -34
  105. package/dist/components/Toast/Toasts.vue.d.ts +0 -2
  106. package/dist/components/Toast/toast.d.ts +0 -287
  107. package/dist/components/Tooltip/Tooltip.vue.d.ts +0 -33
  108. package/dist/index.d.ts +0 -56
  109. package/dist/internal/Backdrop/Backdrop.vue.d.ts +0 -21
  110. package/dist/shared/helpers.d.ts +0 -32
  111. package/dist/shared/slots.d.ts +0 -20
  112. package/dist/shared/theme.d.ts +0 -3
  113. package/dist/shared/types.d.ts +0 -24
  114. package/dist/vui.css +0 -1
  115. package/dist/vui.js +0 -16166
@@ -1,193 +0,0 @@
1
- import { InputProps } from './Input.vue';
2
- type Props = Omit<InputProps, 'type' | 'modelValue' | 'focus' | 'limit' | 'placeholder'>;
3
- declare function __VLS_template(): {
4
- attrs: Partial<{}>;
5
- slots: {
6
- default?(_: {
7
- dragging: boolean;
8
- }): any;
9
- };
10
- refs: {
11
- dropzone: ({
12
- $: import('vue').ComponentInternalInstance;
13
- $data: {};
14
- $props: {
15
- readonly modelValue?: string | number | undefined;
16
- readonly type?: import('./Input.vue').InputType | undefined;
17
- readonly label?: string | undefined;
18
- readonly hint?: string | undefined;
19
- readonly limit?: number | string | undefined;
20
- readonly expand?: boolean | undefined;
21
- readonly placeholder?: string | undefined;
22
- readonly required?: boolean | undefined;
23
- readonly readonly?: boolean | undefined;
24
- readonly focus?: boolean | undefined;
25
- readonly errors?: string[] | undefined;
26
- readonly accept?: string | undefined;
27
- readonly multiple?: boolean | undefined;
28
- readonly min?: number | undefined;
29
- readonly max?: number | undefined;
30
- readonly disabled?: boolean | undefined;
31
- readonly "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
32
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
33
- $attrs: {
34
- [x: string]: unknown;
35
- };
36
- $refs: {
37
- [x: string]: unknown;
38
- } & {
39
- input: HTMLInputElement;
40
- };
41
- $slots: Readonly<{
42
- [name: string]: import('vue').Slot<any> | undefined;
43
- }>;
44
- $root: import('vue').ComponentPublicInstance | null;
45
- $parent: import('vue').ComponentPublicInstance | null;
46
- $host: Element | null;
47
- $emit: (event: "update:modelValue", value: string | number) => void;
48
- $el: HTMLDivElement;
49
- $options: import('vue').ComponentOptionsBase<Readonly<{
50
- modelValue?: string | number;
51
- } & InputProps> & Readonly<{
52
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
53
- }>, {
54
- focus: () => void;
55
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
56
- "update:modelValue": (value: string | number) => any;
57
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
58
- beforeCreate?: (() => void) | (() => void)[];
59
- created?: (() => void) | (() => void)[];
60
- beforeMount?: (() => void) | (() => void)[];
61
- mounted?: (() => void) | (() => void)[];
62
- beforeUpdate?: (() => void) | (() => void)[];
63
- updated?: (() => void) | (() => void)[];
64
- activated?: (() => void) | (() => void)[];
65
- deactivated?: (() => void) | (() => void)[];
66
- beforeDestroy?: (() => void) | (() => void)[];
67
- beforeUnmount?: (() => void) | (() => void)[];
68
- destroyed?: (() => void) | (() => void)[];
69
- unmounted?: (() => void) | (() => void)[];
70
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
71
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
72
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
73
- };
74
- $forceUpdate: () => void;
75
- $nextTick: typeof import('vue').nextTick;
76
- $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;
77
- } & Readonly<{}> & Omit<Readonly<{
78
- modelValue?: string | number;
79
- } & InputProps> & Readonly<{
80
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
81
- }>, "focus"> & import('vue').ShallowUnwrapRef<{
82
- focus: () => void;
83
- }> & {} & import('vue').ComponentCustomProperties & {} & {
84
- $slots: {
85
- before?(_: {}): any;
86
- start?(_: {}): any;
87
- __internal_replace_input?(_: {
88
- inputId: string;
89
- }): any;
90
- end?(_: {}): any;
91
- after?(_: {}): any;
92
- };
93
- }) | null;
94
- };
95
- rootEl: HTMLDivElement;
96
- };
97
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
98
- declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
99
- files: (args_0: FileList) => any;
100
- }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
101
- onFiles?: ((args_0: FileList) => any) | undefined;
102
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
103
- dropzone: ({
104
- $: import('vue').ComponentInternalInstance;
105
- $data: {};
106
- $props: {
107
- readonly modelValue?: string | number | undefined;
108
- readonly type?: import('./Input.vue').InputType | undefined;
109
- readonly label?: string | undefined;
110
- readonly hint?: string | undefined;
111
- readonly limit?: number | string | undefined;
112
- readonly expand?: boolean | undefined;
113
- readonly placeholder?: string | undefined;
114
- readonly required?: boolean | undefined;
115
- readonly readonly?: boolean | undefined;
116
- readonly focus?: boolean | undefined;
117
- readonly errors?: string[] | undefined;
118
- readonly accept?: string | undefined;
119
- readonly multiple?: boolean | undefined;
120
- readonly min?: number | undefined;
121
- readonly max?: number | undefined;
122
- readonly disabled?: boolean | undefined;
123
- readonly "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
124
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
125
- $attrs: {
126
- [x: string]: unknown;
127
- };
128
- $refs: {
129
- [x: string]: unknown;
130
- } & {
131
- input: HTMLInputElement;
132
- };
133
- $slots: Readonly<{
134
- [name: string]: import('vue').Slot<any> | undefined;
135
- }>;
136
- $root: import('vue').ComponentPublicInstance | null;
137
- $parent: import('vue').ComponentPublicInstance | null;
138
- $host: Element | null;
139
- $emit: (event: "update:modelValue", value: string | number) => void;
140
- $el: HTMLDivElement;
141
- $options: import('vue').ComponentOptionsBase<Readonly<{
142
- modelValue?: string | number;
143
- } & InputProps> & Readonly<{
144
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
145
- }>, {
146
- focus: () => void;
147
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
148
- "update:modelValue": (value: string | number) => any;
149
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
150
- beforeCreate?: (() => void) | (() => void)[];
151
- created?: (() => void) | (() => void)[];
152
- beforeMount?: (() => void) | (() => void)[];
153
- mounted?: (() => void) | (() => void)[];
154
- beforeUpdate?: (() => void) | (() => void)[];
155
- updated?: (() => void) | (() => void)[];
156
- activated?: (() => void) | (() => void)[];
157
- deactivated?: (() => void) | (() => void)[];
158
- beforeDestroy?: (() => void) | (() => void)[];
159
- beforeUnmount?: (() => void) | (() => void)[];
160
- destroyed?: (() => void) | (() => void)[];
161
- unmounted?: (() => void) | (() => void)[];
162
- renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
163
- renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
164
- errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
165
- };
166
- $forceUpdate: () => void;
167
- $nextTick: typeof import('vue').nextTick;
168
- $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;
169
- } & Readonly<{}> & Omit<Readonly<{
170
- modelValue?: string | number;
171
- } & InputProps> & Readonly<{
172
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
173
- }>, "focus"> & import('vue').ShallowUnwrapRef<{
174
- focus: () => void;
175
- }> & {} & import('vue').ComponentCustomProperties & {} & {
176
- $slots: {
177
- before?(_: {}): any;
178
- start?(_: {}): any;
179
- __internal_replace_input?(_: {
180
- inputId: string;
181
- }): any;
182
- end?(_: {}): any;
183
- after?(_: {}): any;
184
- };
185
- }) | null;
186
- }, HTMLDivElement>;
187
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
188
- export default _default;
189
- type __VLS_WithTemplateSlots<T, S> = T & {
190
- new (): {
191
- $slots: S;
192
- };
193
- };
@@ -1,8 +0,0 @@
1
- import { InputProps } from './Input.vue';
2
- type __VLS_Props = Omit<InputProps, 'type'>;
3
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
4
- files: (args_0: FileList) => any;
5
- }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
6
- onFiles?: ((args_0: FileList) => any) | undefined;
7
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
8
- export default _default;
@@ -1,56 +0,0 @@
1
- export type InputType = 'text' | 'password' | 'color' | 'date' | 'email' | 'number' | 'range' | 'search' | 'tel' | 'time' | 'url' | 'file';
2
- export interface InputProps {
3
- type?: InputType;
4
- label?: string;
5
- hint?: string;
6
- limit?: number | string;
7
- expand?: boolean;
8
- placeholder?: string;
9
- required?: boolean;
10
- modelValue?: string | number;
11
- readonly?: boolean;
12
- focus?: boolean;
13
- errors?: string[];
14
- accept?: string;
15
- multiple?: boolean;
16
- min?: number;
17
- max?: number;
18
- disabled?: boolean;
19
- }
20
- type __VLS_Props = InputProps;
21
- type __VLS_PublicProps = {
22
- modelValue?: string | number;
23
- } & __VLS_Props;
24
- declare function __VLS_template(): {
25
- attrs: Partial<{}>;
26
- slots: {
27
- before?(_: {}): any;
28
- start?(_: {}): any;
29
- __internal_replace_input?(_: {
30
- inputId: string;
31
- }): any;
32
- end?(_: {}): any;
33
- after?(_: {}): any;
34
- };
35
- refs: {
36
- input: HTMLInputElement;
37
- };
38
- rootEl: HTMLDivElement;
39
- };
40
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
41
- declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {
42
- focus: () => void;
43
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
44
- "update:modelValue": (value: string | number) => any;
45
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
46
- "onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
47
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
48
- input: HTMLInputElement;
49
- }, HTMLDivElement>;
50
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
51
- export default _default;
52
- type __VLS_WithTemplateSlots<T, S> = T & {
53
- new (): {
54
- $slots: S;
55
- };
56
- };
@@ -1,6 +0,0 @@
1
- import { InputProps } from './Input.vue';
2
- type Props = Omit<InputProps, 'type'> & {
3
- showPassword?: boolean;
4
- };
5
- declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
6
- export default _default;
@@ -1,31 +0,0 @@
1
- import { InputProps } from './Input.vue';
2
- type Props = Omit<InputProps, 'type'> & {
3
- resize?: boolean | 'vertical' | 'horizontal';
4
- autoResize?: boolean;
5
- };
6
- type __VLS_Props = Props;
7
- type __VLS_PublicProps = {
8
- modelValue?: string;
9
- } & __VLS_Props;
10
- declare function __VLS_template(): {
11
- attrs: Partial<{}>;
12
- slots: {
13
- before?(_: {}): any;
14
- after?(_: {}): any;
15
- };
16
- refs: {};
17
- rootEl: HTMLDivElement;
18
- };
19
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
- declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
- "update:modelValue": (value: string) => any;
22
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
23
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
24
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
25
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
- export default _default;
27
- type __VLS_WithTemplateSlots<T, S> = T & {
28
- new (): {
29
- $slots: S;
30
- };
31
- };
@@ -1,23 +0,0 @@
1
- interface Props {
2
- /**
3
- * Specify the key or the combination of keys connected with "+". Make sure
4
- * there are no white spaces between letters.
5
- *
6
- * keys="Escape" keys="Ctrl+A"
7
- */
8
- keys: string;
9
- /**
10
- * Display custom label instead of the automatically formatted keys.
11
- */
12
- label?: string;
13
- /**
14
- * Show active state when this combination of keys is pressed.
15
- */
16
- highlight?: boolean;
17
- }
18
- declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
- trigger: () => any;
20
- }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
21
- onTrigger?: (() => any) | undefined;
22
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
23
- export default _default;
@@ -1,19 +0,0 @@
1
- declare function __VLS_template(): {
2
- attrs: Partial<{}>;
3
- slots: Readonly<Record<string, any>> & Record<string, any>;
4
- refs: {};
5
- rootEl: any;
6
- };
7
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
8
- declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
- trigger: () => any;
10
- }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
11
- onTrigger?: (() => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
13
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
14
- export default _default;
15
- type __VLS_WithTemplateSlots<T, S> = T & {
16
- new (): {
17
- $slots: S;
18
- };
19
- };
@@ -1,43 +0,0 @@
1
- import { Variants } from '../Button/Button.vue';
2
- import { ModalProps } from './Modal.vue';
3
- type Props = {
4
- title?: string;
5
- content?: string;
6
- confirmText?: string;
7
- confirmVariant?: Variants;
8
- cancelText?: string;
9
- showCancel?: boolean;
10
- } & Partial<ModalProps>;
11
- declare function __VLS_template(): {
12
- attrs: Partial<{}>;
13
- slots: {
14
- default?(_: {}): any;
15
- };
16
- refs: {};
17
- rootEl: any;
18
- };
19
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
- declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
- close: () => any;
22
- confirm: () => any;
23
- cancel: () => any;
24
- }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
25
- onClose?: (() => any) | undefined;
26
- onConfirm?: (() => any) | undefined;
27
- onCancel?: (() => any) | undefined;
28
- }>, {
29
- open: boolean;
30
- size: import('../../shared/types').Sizes | "full" | "screen";
31
- cancelText: string;
32
- canDismiss: boolean;
33
- confirmText: string;
34
- confirmVariant: Variants;
35
- showCancel: boolean;
36
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
37
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
38
- export default _default;
39
- type __VLS_WithTemplateSlots<T, S> = T & {
40
- new (): {
41
- $slots: S;
42
- };
43
- };
@@ -1,58 +0,0 @@
1
- import { Sizes } from '../../shared/types';
2
- import { Props as CardProps } from '../Card/Card.vue';
3
- export interface ModalProps {
4
- /**
5
- * Controls the visibility of the modal
6
- */
7
- open?: boolean;
8
- /**
9
- * Controls the width of the modal
10
- */
11
- size?: Sizes | 'full' | 'screen';
12
- /**
13
- * Modal wraps a floating card. You can optinally pass in any props you'd pass
14
- * into the <Card /> component.
15
- */
16
- card?: CardProps;
17
- /**
18
- * Modal will not overflow the screen, but its card's content will be scrollable instead.
19
- */
20
- scrollable?: boolean;
21
- /**
22
- * Modal appears in the center of the screen
23
- */
24
- centered?: boolean;
25
- /**
26
- * Wether modal can be closed by clicking the X button
27
- */
28
- canDismiss?: boolean;
29
- }
30
- declare function __VLS_template(): {
31
- attrs: Partial<{}>;
32
- slots: {
33
- header?(_: {
34
- close: () => void;
35
- }): any;
36
- default?(_: {
37
- close: () => void;
38
- }): any;
39
- footer?(_: {
40
- close: () => void;
41
- }): any;
42
- };
43
- refs: {};
44
- rootEl: any;
45
- };
46
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
47
- declare const __VLS_component: import('vue').DefineComponent<ModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
48
- close: () => any;
49
- }, string, import('vue').PublicProps, Readonly<ModalProps> & Readonly<{
50
- onClose?: (() => any) | undefined;
51
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
52
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
53
- export default _default;
54
- type __VLS_WithTemplateSlots<T, S> = T & {
55
- new (): {
56
- $slots: S;
57
- };
58
- };
@@ -1,44 +0,0 @@
1
- import { ModelRef, Ref } from 'vue';
2
- export interface OtpContext {
3
- otpValue: ModelRef<string>;
4
- cursorIndex: Ref<number>;
5
- redacted: Ref<boolean>;
6
- register: () => void;
7
- }
8
- interface Props {
9
- mode?: 'num' | 'char' | 'both';
10
- redacted?: boolean;
11
- }
12
- type __VLS_Props = Props;
13
- type __VLS_PublicProps = {
14
- modelValue?: string;
15
- } & __VLS_Props;
16
- declare function __VLS_template(): {
17
- attrs: Partial<{}>;
18
- slots: {
19
- default?(_: {}): any;
20
- };
21
- refs: {
22
- inputRef: HTMLInputElement;
23
- };
24
- rootEl: HTMLDivElement;
25
- };
26
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
27
- declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
- change: (value?: string | undefined) => any;
29
- "update:modelValue": (value: string) => any;
30
- complete: (value: string) => any;
31
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
32
- onChange?: ((value?: string | undefined) => any) | undefined;
33
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
34
- onComplete?: ((value: string) => any) | undefined;
35
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
36
- inputRef: HTMLInputElement;
37
- }, HTMLDivElement>;
38
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
39
- export default _default;
40
- type __VLS_WithTemplateSlots<T, S> = T & {
41
- new (): {
42
- $slots: S;
43
- };
44
- };
@@ -1,5 +0,0 @@
1
- interface Props {
2
- i: number;
3
- }
4
- declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
5
- export default _default;
@@ -1,46 +0,0 @@
1
- import { Variants } from '../Button/Button.vue';
2
- import { Pagination } from './pagination';
3
- interface Props {
4
- numbers?: boolean;
5
- pagination: Pagination;
6
- prevNext?: boolean;
7
- firstLast?: boolean;
8
- variant?: Variants;
9
- }
10
- declare function setNext(): void;
11
- declare function setPrev(): void;
12
- declare function __VLS_template(): {
13
- attrs: Partial<{}>;
14
- slots: {
15
- start?(_: {}): any;
16
- prev?(_: {
17
- disabled: boolean;
18
- setPage: typeof setPrev;
19
- }): any;
20
- next?(_: {
21
- disabled: boolean;
22
- setPage: typeof setNext;
23
- }): any;
24
- end?(_: {}): any;
25
- };
26
- refs: {};
27
- rootEl: HTMLDivElement;
28
- };
29
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
- declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
- change: (page: number) => any;
32
- }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
33
- onChange?: ((page: number) => any) | undefined;
34
- }>, {
35
- variant: Variants;
36
- numbers: boolean;
37
- prevNext: boolean;
38
- firstLast: boolean;
39
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
40
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
41
- export default _default;
42
- type __VLS_WithTemplateSlots<T, S> = T & {
43
- new (): {
44
- $slots: S;
45
- };
46
- };
@@ -1,12 +0,0 @@
1
- export interface Pagination {
2
- totalItems: number;
3
- currentPage: number;
4
- perPage: number;
5
- totalPages: number;
6
- startPage: number;
7
- endPage: number;
8
- startIndex: number;
9
- endIndex: number;
10
- pages: number[];
11
- }
12
- export declare function paginate(totalItems: number, currentPage?: number, perPage?: number, maxPages?: number): Pagination;
@@ -1,42 +0,0 @@
1
- import { Placement, PopoutMaybeElement } from '../../shared/types';
2
- export interface Props {
3
- /**
4
- * Reference to the HTML element the Popout is anchored to
5
- */
6
- anchor: PopoutMaybeElement<HTMLElement>;
7
- /**
8
- * Override the autoPlacement option
9
- */
10
- placement?: Placement;
11
- /**
12
- * Distance between the anchor and the rendered tooltip
13
- */
14
- offset?: number;
15
- }
16
- declare function __VLS_template(): {
17
- attrs: Partial<{}>;
18
- slots: {
19
- default?(_: {}): any;
20
- };
21
- refs: {
22
- popout: HTMLDivElement;
23
- };
24
- rootEl: HTMLDivElement;
25
- };
26
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
27
- declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
28
- clickOutside: () => any;
29
- }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
30
- onClickOutside?: (() => any) | undefined;
31
- }>, {
32
- offset: number;
33
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
34
- popout: HTMLDivElement;
35
- }, HTMLDivElement>;
36
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
37
- export default _default;
38
- type __VLS_WithTemplateSlots<T, S> = T & {
39
- new (): {
40
- $slots: S;
41
- };
42
- };
@@ -1,33 +0,0 @@
1
- interface Props {
2
- /**
3
- * Will randomly increment but never actually reach the end
4
- */
5
- fake?: boolean;
6
- /**
7
- * Indicator color. Use CSS color values or variables
8
- */
9
- color?: string;
10
- /**
11
- * Displays loader at the top of the page. It is only displayed when the
12
- * progress is between 0 and 100 (exclusive).
13
- */
14
- fixed?: boolean;
15
- /**
16
- * Height
17
- */
18
- height?: number | string;
19
- }
20
- type __VLS_Props = Props;
21
- type __VLS_PublicProps = {
22
- modelValue?: number;
23
- } & __VLS_Props;
24
- declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
25
- done: () => any;
26
- "update:modelValue": (value: number) => any;
27
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
28
- onDone?: (() => any) | undefined;
29
- "onUpdate:modelValue"?: ((value: number) => any) | undefined;
30
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
31
- progress: HTMLDivElement;
32
- }, HTMLDivElement>;
33
- export default _default;
@@ -1,29 +0,0 @@
1
- export interface RadioProps {
2
- label?: string;
3
- disabled?: boolean;
4
- value: any;
5
- accent?: boolean;
6
- }
7
- type __VLS_Props = RadioProps;
8
- type __VLS_PublicProps = {
9
- modelValue?: any;
10
- } & __VLS_Props;
11
- declare function __VLS_template(): {
12
- attrs: Partial<{}>;
13
- slots: Readonly<Record<string, any>> & Record<string, any>;
14
- refs: {};
15
- rootEl: HTMLDivElement;
16
- };
17
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
- declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
- "update:modelValue": (value: any) => any;
20
- }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
- "onUpdate:modelValue"?: ((value: any) => any) | undefined;
22
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
23
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
- export default _default;
25
- type __VLS_WithTemplateSlots<T, S> = T & {
26
- new (): {
27
- $slots: S;
28
- };
29
- };