@dolanske/vui 1.4.0 → 1.4.2

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 (214) hide show
  1. package/dist/components/Accordion/Accordion.vue.d.ts +48 -0
  2. package/dist/components/Accordion/AccordionGroup.vue.d.ts +21 -0
  3. package/dist/components/Alert/Alert.vue.d.ts +36 -0
  4. package/dist/components/Avatar/Avatar.vue.d.ts +25 -0
  5. package/dist/components/Badge/Badge.vue.d.ts +22 -0
  6. package/dist/components/Breadcrumbs/BreadcrumbItem.vue.d.ts +22 -0
  7. package/dist/components/Breadcrumbs/Breadcrumbs.vue.d.ts +18 -0
  8. package/dist/components/Button/Button.vue.d.ts +32 -0
  9. package/dist/components/ButtonGroup/ButtonGroup.vue.d.ts +22 -0
  10. package/dist/components/Calendar/Calendar.vue.d.ts +27 -0
  11. package/dist/components/Card/Card.vue.d.ts +26 -0
  12. package/dist/components/Checkbox/Checkbox.vue.d.ts +33 -0
  13. package/dist/components/CopyClipboard/CopyClipboard.vue.d.ts +46 -0
  14. package/dist/components/Divider/Divider.vue.d.ts +23 -0
  15. package/dist/components/Drawer/Drawer.vue.d.ts +53 -0
  16. package/dist/components/Dropdown/Dropdown.vue.d.ts +177 -0
  17. package/dist/components/Dropdown/DropdownItem.vue.d.ts +23 -0
  18. package/dist/components/Dropdown/DropdownTitle.vue.d.ts +21 -0
  19. package/dist/components/Flex/Flex.vue.d.ts +41 -0
  20. package/dist/components/Grid/Grid.vue.d.ts +35 -0
  21. package/dist/components/Input/Color.vue.d.ts +11 -0
  22. package/dist/components/Input/Counter.vue.d.ts +19 -0
  23. package/dist/components/Input/Dropzone.vue.d.ts +193 -0
  24. package/dist/components/Input/File.vue.d.ts +8 -0
  25. package/dist/components/Input/Input.vue.d.ts +56 -0
  26. package/dist/components/Input/Password.vue.d.ts +6 -0
  27. package/dist/components/Input/Textarea.vue.d.ts +31 -0
  28. package/dist/components/Kbd/Kbd.vue.d.ts +23 -0
  29. package/dist/components/Kbd/KbdGroup.vue.d.ts +19 -0
  30. package/dist/components/Modal/Confirm.vue.d.ts +43 -0
  31. package/dist/components/Modal/Modal.vue.d.ts +58 -0
  32. package/dist/components/OTP/OTP.vue.d.ts +44 -0
  33. package/dist/components/OTP/OTPItem.vue.d.ts +5 -0
  34. package/dist/components/Pagination/Pagination.vue.d.ts +46 -0
  35. package/dist/components/Pagination/pagination.d.ts +12 -0
  36. package/dist/components/Popout/Popout.vue.d.ts +36 -0
  37. package/dist/components/Progress/Progress.vue.d.ts +33 -0
  38. package/dist/components/Radio/Radio.vue.d.ts +29 -0
  39. package/dist/components/Radio/RadioGroup.vue.d.ts +27 -0
  40. package/dist/components/Select/Select.vue.d.ts +35 -0
  41. package/dist/components/Sheet/Sheet.vue.d.ts +47 -0
  42. package/dist/components/Sidebar/Sidebar.vue.d.ts +70 -0
  43. package/dist/components/Skeleton/Skeleton.vue.d.ts +8 -0
  44. package/dist/components/Spinner/Spinner.vue.d.ts +6 -0
  45. package/dist/components/Switch/Switch.vue.d.ts +28 -0
  46. package/dist/components/Table/Cell.vue.d.ts +22 -0
  47. package/dist/components/Table/Head.vue.d.ts +30 -0
  48. package/dist/components/Table/Root.vue.d.ts +41 -0
  49. package/dist/components/Table/SelectAll.vue.d.ts +2 -0
  50. package/dist/components/Table/SelectRow.vue.d.ts +6 -0
  51. package/dist/components/Table/index.d.ts +6 -0
  52. package/dist/components/Table/table.d.ts +68 -0
  53. package/dist/components/Tabs/Tab.vue.d.ts +22 -0
  54. package/dist/components/Tabs/Tabs.vue.d.ts +34 -0
  55. package/dist/components/Toast/Toasts.vue.d.ts +2 -0
  56. package/dist/components/Toast/toast.d.ts +287 -0
  57. package/dist/components/Tooltip/Tooltip.vue.d.ts +33 -0
  58. package/dist/fonts/GeistMono-Regular.ttf +0 -0
  59. package/dist/fonts/GeistMono-SemiBold.ttf +0 -0
  60. package/dist/fonts/Inter_18pt-Black.ttf +0 -0
  61. package/dist/fonts/Inter_18pt-Bold.ttf +0 -0
  62. package/dist/fonts/Inter_18pt-ExtraBold.ttf +0 -0
  63. package/dist/fonts/Inter_18pt-Light.ttf +0 -0
  64. package/dist/fonts/Inter_18pt-Medium.ttf +0 -0
  65. package/dist/fonts/Inter_18pt-Regular.ttf +0 -0
  66. package/dist/fonts/Inter_18pt-SemiBold.ttf +0 -0
  67. package/dist/index.d.ts +56 -0
  68. package/dist/internal/Backdrop/Backdrop.vue.d.ts +21 -0
  69. package/dist/shared/helpers.d.ts +34 -0
  70. package/dist/shared/slots.d.ts +20 -0
  71. package/dist/shared/theme.d.ts +3 -0
  72. package/dist/shared/types.d.ts +24 -0
  73. package/dist/vui.css +1 -0
  74. package/dist/vui.js +16215 -0
  75. package/package.json +1 -2
  76. package/src/App.vue +0 -103
  77. package/src/components/Accordion/Accordion.vue +0 -98
  78. package/src/components/Accordion/AccordionGroup.vue +0 -49
  79. package/src/components/Accordion/accordion.scss +0 -97
  80. package/src/components/Alert/Alert.vue +0 -59
  81. package/src/components/Alert/alert.scss +0 -162
  82. package/src/components/Avatar/Avatar.vue +0 -53
  83. package/src/components/Avatar/avatar.scss +0 -52
  84. package/src/components/Badge/Badge.vue +0 -21
  85. package/src/components/Badge/badge.scss +0 -210
  86. package/src/components/Breadcrumbs/BreadcrumbItem.vue +0 -26
  87. package/src/components/Breadcrumbs/Breadcrumbs.vue +0 -29
  88. package/src/components/Breadcrumbs/breadcrumbs.scss +0 -31
  89. package/src/components/Button/Button.vue +0 -86
  90. package/src/components/Button/button.scss +0 -292
  91. package/src/components/ButtonGroup/ButtonGroup.vue +0 -28
  92. package/src/components/ButtonGroup/button-group.scss +0 -51
  93. package/src/components/Calendar/Calendar.vue +0 -66
  94. package/src/components/Calendar/calendar.scss +0 -88
  95. package/src/components/Card/Card.vue +0 -48
  96. package/src/components/Card/card.scss +0 -55
  97. package/src/components/Checkbox/Checkbox.vue +0 -54
  98. package/src/components/Checkbox/checkbox.scss +0 -80
  99. package/src/components/CopyClipboard/CopyClipboard.vue +0 -98
  100. package/src/components/CopyClipboard/copy-clipboard.scss +0 -25
  101. package/src/components/Divider/Divider.vue +0 -38
  102. package/src/components/Divider/divider.scss +0 -37
  103. package/src/components/Drawer/Drawer.vue +0 -102
  104. package/src/components/Drawer/drawer.scss +0 -37
  105. package/src/components/Dropdown/Dropdown.vue +0 -120
  106. package/src/components/Dropdown/DropdownItem.vue +0 -33
  107. package/src/components/Dropdown/DropdownTitle.vue +0 -14
  108. package/src/components/Dropdown/dropdown-item.scss +0 -84
  109. package/src/components/Dropdown/dropdown.scss +0 -53
  110. package/src/components/Flex/Flex.vue +0 -113
  111. package/src/components/Grid/Grid.vue +0 -87
  112. package/src/components/Input/Color.vue +0 -26
  113. package/src/components/Input/Counter.vue +0 -66
  114. package/src/components/Input/Dropzone.vue +0 -65
  115. package/src/components/Input/File.vue +0 -15
  116. package/src/components/Input/Input.vue +0 -123
  117. package/src/components/Input/Password.vue +0 -35
  118. package/src/components/Input/Textarea.vue +0 -78
  119. package/src/components/Input/input.scss +0 -302
  120. package/src/components/Kbd/Kbd.vue +0 -48
  121. package/src/components/Kbd/KbdGroup.vue +0 -28
  122. package/src/components/Kbd/kbd.scss +0 -19
  123. package/src/components/Modal/Confirm.vue +0 -56
  124. package/src/components/Modal/Modal.vue +0 -103
  125. package/src/components/Modal/modal.scss +0 -54
  126. package/src/components/OTP/OTP.vue +0 -133
  127. package/src/components/OTP/OTPItem.vue +0 -37
  128. package/src/components/OTP/otp.scss +0 -84
  129. package/src/components/Pagination/Pagination.vue +0 -92
  130. package/src/components/Pagination/pagination.ts +0 -78
  131. package/src/components/Popout/Popout.vue +0 -73
  132. package/src/components/Popout/popout.scss +0 -16
  133. package/src/components/Progress/Progress.vue +0 -103
  134. package/src/components/Progress/progress.scss +0 -47
  135. package/src/components/Radio/Radio.vue +0 -38
  136. package/src/components/Radio/RadioGroup.vue +0 -34
  137. package/src/components/Radio/radio.scss +0 -78
  138. package/src/components/Select/Select.vue +0 -212
  139. package/src/components/Select/select.scss +0 -82
  140. package/src/components/Sheet/Sheet.vue +0 -106
  141. package/src/components/Sheet/sheet.scss +0 -71
  142. package/src/components/Sidebar/Sidebar.vue +0 -116
  143. package/src/components/Sidebar/sidebar.scss +0 -124
  144. package/src/components/Skeleton/Skeleton.vue +0 -43
  145. package/src/components/Skeleton/skeleton.scss +0 -14
  146. package/src/components/Spinner/Spinner.vue +0 -42
  147. package/src/components/Spinner/spinner.scss +0 -47
  148. package/src/components/Switch/Switch.vue +0 -31
  149. package/src/components/Switch/switch.scss +0 -93
  150. package/src/components/Table/Cell.vue +0 -23
  151. package/src/components/Table/Head.vue +0 -66
  152. package/src/components/Table/Root.vue +0 -66
  153. package/src/components/Table/SelectAll.vue +0 -23
  154. package/src/components/Table/SelectRow.vue +0 -30
  155. package/src/components/Table/index.ts +0 -7
  156. package/src/components/Table/table.scss +0 -155
  157. package/src/components/Table/table.ts +0 -248
  158. package/src/components/Tabs/Tab.vue +0 -25
  159. package/src/components/Tabs/Tabs.vue +0 -90
  160. package/src/components/Tabs/tabs.scss +0 -87
  161. package/src/components/Toast/Toasts.vue +0 -52
  162. package/src/components/Toast/toast.scss +0 -45
  163. package/src/components/Toast/toast.ts +0 -75
  164. package/src/components/Tooltip/Tooltip.vue +0 -78
  165. package/src/components/Tooltip/tooltip.scss +0 -5
  166. package/src/examples/ExampleAccordions.vue +0 -69
  167. package/src/examples/ExampleAlerts.vue +0 -78
  168. package/src/examples/ExampleAvatars.vue +0 -44
  169. package/src/examples/ExampleBadges.vue +0 -48
  170. package/src/examples/ExampleBreadcrumbs.vue +0 -46
  171. package/src/examples/ExampleButtons.vue +0 -148
  172. package/src/examples/ExampleCalendars.vue +0 -40
  173. package/src/examples/ExampleCards.vue +0 -94
  174. package/src/examples/ExampleCheckboxes.vue +0 -123
  175. package/src/examples/ExampleCopyClipboard.vue +0 -47
  176. package/src/examples/ExampleDividers.vue +0 -39
  177. package/src/examples/ExampleDrawers.vue +0 -67
  178. package/src/examples/ExampleDropdowns.vue +0 -114
  179. package/src/examples/ExampleFlexGrid.vue +0 -124
  180. package/src/examples/ExampleInputs.vue +0 -236
  181. package/src/examples/ExampleKBD.vue +0 -65
  182. package/src/examples/ExampleModals.vue +0 -143
  183. package/src/examples/ExamplePalette.vue +0 -165
  184. package/src/examples/ExamplePopouts.vue +0 -41
  185. package/src/examples/ExampleSheets.vue +0 -77
  186. package/src/examples/ExampleSidebars.vue +0 -276
  187. package/src/examples/ExampleSkeletons.vue +0 -26
  188. package/src/examples/ExampleSpinners.vue +0 -80
  189. package/src/examples/ExampleTables.vue +0 -359
  190. package/src/examples/ExampleTabs.vue +0 -142
  191. package/src/examples/ExampleToasts.vue +0 -96
  192. package/src/examples/ExampleTooltips.vue +0 -70
  193. package/src/examples/shared/ExampleColor.vue +0 -28
  194. package/src/index.ts +0 -116
  195. package/src/internal/Backdrop/Backdrop.vue +0 -22
  196. package/src/internal/Backdrop/backdrop.scss +0 -34
  197. package/src/main.ts +0 -5
  198. package/src/shared/helpers.ts +0 -124
  199. package/src/shared/slots.ts +0 -61
  200. package/src/shared/theme.ts +0 -22
  201. package/src/shared/types.ts +0 -29
  202. package/src/style/animation.scss +0 -50
  203. package/src/style/core.scss +0 -133
  204. package/src/style/fonts.scss +0 -73
  205. package/src/style/layout.scss +0 -179
  206. package/src/style/media-query.scss +0 -29
  207. package/src/style/reset.scss +0 -135
  208. package/src/style/text.scss +0 -137
  209. package/src/style/theme.scss +0 -195
  210. package/src/style/tooltip.scss +0 -146
  211. package/src/style/typography.scss +0 -435
  212. package/src/style/utils.scss +0 -36
  213. package/src/style.scss +0 -1
  214. package/src/vite-env.d.ts +0 -1
@@ -0,0 +1,287 @@
1
+ import { Component } from 'vue';
2
+ interface ToastAction {
3
+ label: string;
4
+ handler: (toastId: number) => void;
5
+ }
6
+ interface ToastOptions {
7
+ persist?: boolean;
8
+ timeout?: number;
9
+ action?: ToastAction;
10
+ description?: string;
11
+ body?: Component;
12
+ bodyProps?: object;
13
+ }
14
+ interface Toast {
15
+ id: number;
16
+ title: string;
17
+ action?: ToastAction;
18
+ createdAt: number;
19
+ expiresAt: number;
20
+ description?: string;
21
+ body?: Component;
22
+ bodyProps?: object;
23
+ }
24
+ export declare const toasts: import('vue').Ref<Map<number, {
25
+ id: number;
26
+ title: string;
27
+ action?: {
28
+ label: string;
29
+ handler: (toastId: number) => void;
30
+ } | undefined;
31
+ createdAt: number;
32
+ expiresAt: number;
33
+ description?: string | undefined;
34
+ body?: import('vue').FunctionalComponent<any, {}, any, {}> | {
35
+ new (...args: any[]): any;
36
+ __isFragment?: never;
37
+ __isTeleport?: never;
38
+ __isSuspense?: never;
39
+ } | {
40
+ [x: string]: any;
41
+ setup?: ((this: void, props: import('@vue/shared').LooseRequired<any>, ctx: {
42
+ attrs: {
43
+ [x: string]: unknown;
44
+ };
45
+ slots: Readonly<{
46
+ [name: string]: import('vue').Slot<any> | undefined;
47
+ }>;
48
+ emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
49
+ expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) => void;
50
+ }) => any) | undefined;
51
+ name?: string | undefined;
52
+ template?: string | object | undefined;
53
+ render?: Function | undefined;
54
+ components?: Record<string, Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>> | undefined;
55
+ directives?: Record<string, import('vue').Directive<any, any, string, string>> | undefined;
56
+ inheritAttrs?: boolean | undefined;
57
+ emits?: any;
58
+ slots?: {} | undefined;
59
+ expose?: string[] | undefined;
60
+ serverPrefetch?: (() => void | Promise<any>) | undefined;
61
+ compilerOptions?: {
62
+ isCustomElement?: ((tag: string) => boolean) | undefined;
63
+ whitespace?: "preserve" | "condense" | undefined;
64
+ comments?: boolean | undefined;
65
+ delimiters?: [string, string] | undefined;
66
+ } | undefined;
67
+ call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
68
+ __isFragment?: never | undefined;
69
+ __isTeleport?: never | undefined;
70
+ __isSuspense?: never | undefined;
71
+ __defaults?: {} | undefined;
72
+ compatConfig?: {
73
+ GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
74
+ GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
75
+ GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
76
+ GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
77
+ GLOBAL_SET?: boolean | "suppress-warning" | undefined;
78
+ GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
79
+ GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
80
+ GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
81
+ CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
82
+ CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
83
+ CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
84
+ CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
85
+ CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
86
+ CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
87
+ CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
88
+ INSTANCE_SET?: boolean | "suppress-warning" | undefined;
89
+ INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
90
+ INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
91
+ INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
92
+ INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
93
+ INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
94
+ INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
95
+ INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
96
+ INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
97
+ OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
98
+ OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
99
+ OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
100
+ OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
101
+ WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
102
+ PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
103
+ V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
104
+ CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
105
+ ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
106
+ ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
107
+ TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
108
+ TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
109
+ COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
110
+ COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
111
+ COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
112
+ RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
113
+ FILTERS?: boolean | "suppress-warning" | undefined;
114
+ PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
115
+ MODE?: 2 | 3 | ((comp: Component | null) => 2 | 3) | undefined;
116
+ } | undefined;
117
+ data?: ((this: any, vm: any) => any) | undefined;
118
+ computed?: import('vue').ComputedOptions | undefined;
119
+ methods?: import('vue').MethodOptions | undefined;
120
+ watch?: {
121
+ [x: string]: (string | import('vue').WatchCallback | ({
122
+ handler: import('vue').WatchCallback | string;
123
+ } & import('vue').WatchOptions<boolean>)) | (string | import('vue').WatchCallback | ({
124
+ handler: import('vue').WatchCallback | string;
125
+ } & import('vue').WatchOptions<boolean>))[];
126
+ } | undefined;
127
+ provide?: import('vue').ComponentProvideOptions | undefined;
128
+ inject?: {} | string[] | undefined;
129
+ filters?: Record<string, Function> | undefined;
130
+ mixins?: any[] | undefined;
131
+ extends?: any;
132
+ beforeCreate?: (() => void) | undefined;
133
+ created?: (() => void) | undefined;
134
+ beforeMount?: (() => void) | undefined;
135
+ mounted?: (() => void) | undefined;
136
+ beforeUpdate?: (() => void) | undefined;
137
+ updated?: (() => void) | undefined;
138
+ activated?: (() => void) | undefined;
139
+ deactivated?: (() => void) | undefined;
140
+ beforeDestroy?: (() => void) | undefined;
141
+ beforeUnmount?: (() => void) | undefined;
142
+ destroyed?: (() => void) | undefined;
143
+ unmounted?: (() => void) | undefined;
144
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | undefined;
145
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | undefined;
146
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | undefined;
147
+ delimiters?: [string, string] | undefined;
148
+ __differentiator?: string | number | symbol | undefined;
149
+ __isBuiltIn?: boolean | undefined;
150
+ __file?: string | undefined;
151
+ __name?: string | undefined;
152
+ } | undefined;
153
+ bodyProps?: object | undefined;
154
+ }> & Omit<Map<number, Toast>, keyof Map<any, any>>, Map<number, Toast> | (Map<number, {
155
+ id: number;
156
+ title: string;
157
+ action?: {
158
+ label: string;
159
+ handler: (toastId: number) => void;
160
+ } | undefined;
161
+ createdAt: number;
162
+ expiresAt: number;
163
+ description?: string | undefined;
164
+ body?: import('vue').FunctionalComponent<any, {}, any, {}> | {
165
+ new (...args: any[]): any;
166
+ __isFragment?: never;
167
+ __isTeleport?: never;
168
+ __isSuspense?: never;
169
+ } | {
170
+ [x: string]: any;
171
+ setup?: ((this: void, props: import('@vue/shared').LooseRequired<any>, ctx: {
172
+ attrs: {
173
+ [x: string]: unknown;
174
+ };
175
+ slots: Readonly<{
176
+ [name: string]: import('vue').Slot<any> | undefined;
177
+ }>;
178
+ emit: ((event: unknown, ...args: any[]) => void) | ((event: string, ...args: any[]) => void);
179
+ expose: <Exposed extends Record<string, any> = Record<string, any>>(exposed?: Exposed) => void;
180
+ }) => any) | undefined;
181
+ name?: string | undefined;
182
+ template?: string | object | undefined;
183
+ render?: Function | undefined;
184
+ components?: Record<string, Component<any, any, any, import('vue').ComputedOptions, import('vue').MethodOptions, {}, any>> | undefined;
185
+ directives?: Record<string, import('vue').Directive<any, any, string, string>> | undefined;
186
+ inheritAttrs?: boolean | undefined;
187
+ emits?: any;
188
+ slots?: {} | undefined;
189
+ expose?: string[] | undefined;
190
+ serverPrefetch?: (() => void | Promise<any>) | undefined;
191
+ compilerOptions?: {
192
+ isCustomElement?: ((tag: string) => boolean) | undefined;
193
+ whitespace?: "preserve" | "condense" | undefined;
194
+ comments?: boolean | undefined;
195
+ delimiters?: [string, string] | undefined;
196
+ } | undefined;
197
+ call?: ((this: unknown, ...args: unknown[]) => never) | undefined;
198
+ __isFragment?: never | undefined;
199
+ __isTeleport?: never | undefined;
200
+ __isSuspense?: never | undefined;
201
+ __defaults?: {} | undefined;
202
+ compatConfig?: {
203
+ GLOBAL_MOUNT?: boolean | "suppress-warning" | undefined;
204
+ GLOBAL_MOUNT_CONTAINER?: boolean | "suppress-warning" | undefined;
205
+ GLOBAL_EXTEND?: boolean | "suppress-warning" | undefined;
206
+ GLOBAL_PROTOTYPE?: boolean | "suppress-warning" | undefined;
207
+ GLOBAL_SET?: boolean | "suppress-warning" | undefined;
208
+ GLOBAL_DELETE?: boolean | "suppress-warning" | undefined;
209
+ GLOBAL_OBSERVABLE?: boolean | "suppress-warning" | undefined;
210
+ GLOBAL_PRIVATE_UTIL?: boolean | "suppress-warning" | undefined;
211
+ CONFIG_SILENT?: boolean | "suppress-warning" | undefined;
212
+ CONFIG_DEVTOOLS?: boolean | "suppress-warning" | undefined;
213
+ CONFIG_KEY_CODES?: boolean | "suppress-warning" | undefined;
214
+ CONFIG_PRODUCTION_TIP?: boolean | "suppress-warning" | undefined;
215
+ CONFIG_IGNORED_ELEMENTS?: boolean | "suppress-warning" | undefined;
216
+ CONFIG_WHITESPACE?: boolean | "suppress-warning" | undefined;
217
+ CONFIG_OPTION_MERGE_STRATS?: boolean | "suppress-warning" | undefined;
218
+ INSTANCE_SET?: boolean | "suppress-warning" | undefined;
219
+ INSTANCE_DELETE?: boolean | "suppress-warning" | undefined;
220
+ INSTANCE_DESTROY?: boolean | "suppress-warning" | undefined;
221
+ INSTANCE_EVENT_EMITTER?: boolean | "suppress-warning" | undefined;
222
+ INSTANCE_EVENT_HOOKS?: boolean | "suppress-warning" | undefined;
223
+ INSTANCE_CHILDREN?: boolean | "suppress-warning" | undefined;
224
+ INSTANCE_LISTENERS?: boolean | "suppress-warning" | undefined;
225
+ INSTANCE_SCOPED_SLOTS?: boolean | "suppress-warning" | undefined;
226
+ INSTANCE_ATTRS_CLASS_STYLE?: boolean | "suppress-warning" | undefined;
227
+ OPTIONS_DATA_FN?: boolean | "suppress-warning" | undefined;
228
+ OPTIONS_DATA_MERGE?: boolean | "suppress-warning" | undefined;
229
+ OPTIONS_BEFORE_DESTROY?: boolean | "suppress-warning" | undefined;
230
+ OPTIONS_DESTROYED?: boolean | "suppress-warning" | undefined;
231
+ WATCH_ARRAY?: boolean | "suppress-warning" | undefined;
232
+ PROPS_DEFAULT_THIS?: boolean | "suppress-warning" | undefined;
233
+ V_ON_KEYCODE_MODIFIER?: boolean | "suppress-warning" | undefined;
234
+ CUSTOM_DIR?: boolean | "suppress-warning" | undefined;
235
+ ATTR_FALSE_VALUE?: boolean | "suppress-warning" | undefined;
236
+ ATTR_ENUMERATED_COERCION?: boolean | "suppress-warning" | undefined;
237
+ TRANSITION_CLASSES?: boolean | "suppress-warning" | undefined;
238
+ TRANSITION_GROUP_ROOT?: boolean | "suppress-warning" | undefined;
239
+ COMPONENT_ASYNC?: boolean | "suppress-warning" | undefined;
240
+ COMPONENT_FUNCTIONAL?: boolean | "suppress-warning" | undefined;
241
+ COMPONENT_V_MODEL?: boolean | "suppress-warning" | undefined;
242
+ RENDER_FUNCTION?: boolean | "suppress-warning" | undefined;
243
+ FILTERS?: boolean | "suppress-warning" | undefined;
244
+ PRIVATE_APIS?: boolean | "suppress-warning" | undefined;
245
+ MODE?: 2 | 3 | ((comp: Component | null) => 2 | 3) | undefined;
246
+ } | undefined;
247
+ data?: ((this: any, vm: any) => any) | undefined;
248
+ computed?: import('vue').ComputedOptions | undefined;
249
+ methods?: import('vue').MethodOptions | undefined;
250
+ watch?: {
251
+ [x: string]: (string | import('vue').WatchCallback | ({
252
+ handler: import('vue').WatchCallback | string;
253
+ } & import('vue').WatchOptions<boolean>)) | (string | import('vue').WatchCallback | ({
254
+ handler: import('vue').WatchCallback | string;
255
+ } & import('vue').WatchOptions<boolean>))[];
256
+ } | undefined;
257
+ provide?: import('vue').ComponentProvideOptions | undefined;
258
+ inject?: {} | string[] | undefined;
259
+ filters?: Record<string, Function> | undefined;
260
+ mixins?: any[] | undefined;
261
+ extends?: any;
262
+ beforeCreate?: (() => void) | undefined;
263
+ created?: (() => void) | undefined;
264
+ beforeMount?: (() => void) | undefined;
265
+ mounted?: (() => void) | undefined;
266
+ beforeUpdate?: (() => void) | undefined;
267
+ updated?: (() => void) | undefined;
268
+ activated?: (() => void) | undefined;
269
+ deactivated?: (() => void) | undefined;
270
+ beforeDestroy?: (() => void) | undefined;
271
+ beforeUnmount?: (() => void) | undefined;
272
+ destroyed?: (() => void) | undefined;
273
+ unmounted?: (() => void) | undefined;
274
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | undefined;
275
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | undefined;
276
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | undefined;
277
+ delimiters?: [string, string] | undefined;
278
+ __differentiator?: string | number | symbol | undefined;
279
+ __isBuiltIn?: boolean | undefined;
280
+ __file?: string | undefined;
281
+ __name?: string | undefined;
282
+ } | undefined;
283
+ bodyProps?: object | undefined;
284
+ }> & Omit<Map<number, Toast>, keyof Map<any, any>>)>;
285
+ export declare function pushToast(title: string, options?: ToastOptions): Toast;
286
+ export declare function removeToast(id: number): void;
287
+ export {};
@@ -0,0 +1,33 @@
1
+ import { Placement } from '../../shared/types';
2
+ interface Props {
3
+ /**
4
+ * Tooltip placement related to the anchor
5
+ */
6
+ placement?: Placement;
7
+ /**
8
+ * Amount of time user should hover the anchor until the tooltip shows up
9
+ */
10
+ delay?: number;
11
+ }
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: {
15
+ default?(_: {}): any;
16
+ tooltip?(_: {}): any;
17
+ };
18
+ refs: {
19
+ popoutAnchor: HTMLDivElement;
20
+ };
21
+ rootEl: any;
22
+ };
23
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
25
+ popoutAnchor: HTMLDivElement;
26
+ }, any>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,56 @@
1
+ import { default as Accordion } from './components/Accordion/Accordion.vue';
2
+ import { default as AccordionGroup } from './components/Accordion/AccordionGroup.vue';
3
+ import { default as Alert } from './components/Alert/Alert.vue';
4
+ import { default as Avatar } from './components/Avatar/Avatar.vue';
5
+ import { default as Badge } from './components/Badge/Badge.vue';
6
+ import { default as BreadcrumbItem } from './components/Breadcrumbs/BreadcrumbItem.vue';
7
+ import { default as Breadcrumbs } from './components/Breadcrumbs/Breadcrumbs.vue';
8
+ import { default as Button } from './components/Button/Button.vue';
9
+ import { default as ButtonGroup } from './components/ButtonGroup/ButtonGroup.vue';
10
+ import { default as Calendar } from './components/Calendar/Calendar.vue';
11
+ import { default as Card } from './components/Card/Card.vue';
12
+ import { default as Checkbox } from './components/Checkbox/Checkbox.vue';
13
+ import { default as CopyClipboard } from './components/CopyClipboard/CopyClipboard.vue';
14
+ import { default as Divider } from './components/Divider/Divider.vue';
15
+ import { default as Drawer } from './components/Drawer/Drawer.vue';
16
+ import { default as Dropdown } from './components/Dropdown/Dropdown.vue';
17
+ import { default as DropdownItem } from './components/Dropdown/DropdownItem.vue';
18
+ import { default as DropdownTitle } from './components/Dropdown/DropdownTitle.vue';
19
+ import { default as Flex } from './components/Flex/Flex.vue';
20
+ import { default as Grid } from './components/Grid/Grid.vue';
21
+ import { default as Color } from './components/Input/Color.vue';
22
+ import { default as Counter } from './components/Input/Counter.vue';
23
+ import { default as Dropzone } from './components/Input/Dropzone.vue';
24
+ import { default as File } from './components/Input/File.vue';
25
+ import { default as Input } from './components/Input/Input.vue';
26
+ import { default as Password } from './components/Input/Password.vue';
27
+ import { default as Textarea } from './components/Input/Textarea.vue';
28
+ import { default as Kbd } from './components/Kbd/Kbd.vue';
29
+ import { default as KbdGroup } from './components/Kbd/KbdGroup.vue';
30
+ import { default as Confirm } from './components/Modal/Confirm.vue';
31
+ import { default as Modal } from './components/Modal/Modal.vue';
32
+ import { default as OTP } from './components/OTP/OTP.vue';
33
+ import { default as OTPItem } from './components/OTP/OTPItem.vue';
34
+ import { paginate } from './components/Pagination/pagination';
35
+ import { default as Pagination } from './components/Pagination/Pagination.vue';
36
+ import { default as Popout } from './components/Popout/Popout.vue';
37
+ import { default as Progress } from './components/Progress/Progress.vue';
38
+ import { default as Radio } from './components/Radio/Radio.vue';
39
+ import { default as RadioGroup } from './components/Radio/RadioGroup.vue';
40
+ import { default as Select } from './components/Select/Select.vue';
41
+ import { default as Sheet } from './components/Sheet/Sheet.vue';
42
+ import { default as Sidebar } from './components/Sidebar/Sidebar.vue';
43
+ import { default as Skeleton } from './components/Skeleton/Skeleton.vue';
44
+ import { default as Spinner } from './components/Spinner/Spinner.vue';
45
+ import { default as Switch } from './components/Switch/Switch.vue';
46
+ import { defineTable } from './components/Table/table';
47
+ import { default as Tab } from './components/Tabs/Tab.vue';
48
+ import { default as Tabs } from './components/Tabs/Tabs.vue';
49
+ import { pushToast, removeToast } from './components/Toast/toast';
50
+ import { default as Toasts } from './components/Toast/Toasts.vue';
51
+ import { default as Tooltip } from './components/Tooltip/Tooltip.vue';
52
+ import { default as Backdrop } from './internal/Backdrop/Backdrop.vue';
53
+ import { searchString } from './shared/helpers';
54
+ import { setColorTheme, theme } from './shared/theme';
55
+ import * as Table from './components/Table';
56
+ export { Accordion, AccordionGroup, Alert, Avatar, Backdrop, Badge, BreadcrumbItem, Breadcrumbs, Button, ButtonGroup, Calendar, Card, Checkbox, Color, Confirm, CopyClipboard, Counter, defineTable, Divider, Drawer, Dropdown, DropdownItem, DropdownTitle, Dropzone, File, Flex, Grid, Input, Kbd, KbdGroup, Modal, OTP, OTPItem, paginate, Pagination, Password, Popout, Progress, pushToast, Radio, RadioGroup, removeToast, searchString, Select, setColorTheme, Sheet, Sidebar, Skeleton, Spinner, Switch, Tab, Table, Tabs, Textarea, theme, Toasts, Tooltip, };
@@ -0,0 +1,21 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
11
+ close: () => any;
12
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
13
+ onClose?: (() => any) | undefined;
14
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
15
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
16
+ export default _default;
17
+ type __VLS_WithTemplateSlots<T, S> = T & {
18
+ new (): {
19
+ $slots: S;
20
+ };
21
+ };
@@ -0,0 +1,34 @@
1
+ import { Placement } from '@floating-ui/vue';
2
+ export declare function createArray(length: number, startOffset?: number): number[];
3
+ export declare function searchString(match: string | string[], input: string): boolean;
4
+ export declare function getMaybeRefLength(value: string | number): number;
5
+ export declare function isNil(value: any): value is undefined | null;
6
+ /**
7
+ * Checks wether a color is light or dark, depending on
8
+ */
9
+ export declare function calculateColorLightness(r: number, g: number, b: number): 'dark' | 'light';
10
+ /**
11
+ * Convert a CSS rgb string to a tuple of actual r,g,b values
12
+ *
13
+ * 'rgb(12,16,24)' --> [12, 16, 24]
14
+ */
15
+ export declare function stringRgbToValues(rgbString: string): [number, number, number];
16
+ export declare function randomMinMax(min: number, max: number): number;
17
+ export declare function delay(amount: number): Promise<any>;
18
+ export declare function setCharAt(str: string, char: string | number, index: number): string;
19
+ /**
20
+ * Takes in a value and if it is a number, appends "px" to it, otherwise returns
21
+ * the original value.
22
+ *
23
+ */
24
+ export declare function formatUnitValue(value: string | number, unit?: string): string;
25
+ export declare function clamp(min: number, max: number, value: number): number;
26
+ /**
27
+ * Checks wether an object is inside of Set, based on comparing values. Not reference
28
+ *
29
+ * @param set The Set
30
+ * @param obj Object which should be in the side
31
+ * @returns If object is inside the set
32
+ */
33
+ export declare function isObjectInSet(set: Set<any>, obj: any): boolean;
34
+ export declare function getPlacementAnimationName(position: Placement): string;
@@ -0,0 +1,20 @@
1
+ import { ShallowRef, VNode } from 'vue';
2
+ type VNodesProps<T extends object> = Array<VNode & {
3
+ props: T;
4
+ }>;
5
+ /**
6
+ * Flattens slot children and keeps them in sync reactively.
7
+ * @param slotFn The slot function (e.g., slots.default)
8
+ * @returns Computed array of flattened VNodes
9
+ */
10
+ export declare function useFlattenedSlot<T extends object>(slotFn?: () => VNode[] | undefined): ShallowRef<VNodesProps<T>>;
11
+ /**
12
+ * Checks whether all of the provided VNodes are of the same type. Throws an
13
+ * error if not. This function should be used in components that only allow a
14
+ * single type of component
15
+ *
16
+ * @param vnodes Array of VNodes to check
17
+ * @param name Expected name of the components
18
+ */
19
+ export declare function enforceSlotType(vnodes: ShallowRef<VNodesProps<any>>, name: string): void;
20
+ export {};
@@ -0,0 +1,3 @@
1
+ export type VuiTheme = 'light' | 'dark' | 'auto';
2
+ export declare const theme: Readonly<import('vue').Ref<import('@vueuse/core').BasicColorSchema, import('@vueuse/core').BasicColorSchema>>;
3
+ export declare function setColorTheme(newTheme: VuiTheme): void;
@@ -0,0 +1,24 @@
1
+ import { ComponentPublicInstance } from 'vue';
2
+ export declare enum Size {
3
+ s = "s",
4
+ m = "m",
5
+ l = "l"
6
+ }
7
+ export type Sizes = 's' | 'm' | 'l';
8
+ export type DeepRequired<T> = {
9
+ [K in keyof T]: DeepRequired<T[K]>;
10
+ } & Required<T>;
11
+ export type VueClass = string | Record<string, boolean> | Array<string | Record<string, string | boolean>>;
12
+ export type PopoutMaybeElement<T> = T | ComponentPublicInstance | null | undefined;
13
+ export type Placement = 'top' | 'right' | 'bottom' | 'left' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-start' | 'bottom-end' | 'left-start' | 'left-end';
14
+ export type Space = 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
15
+ export declare enum SpaceSize {
16
+ xxs = "xxs",
17
+ xs = "xs",
18
+ s = "s",
19
+ m = "m",
20
+ l = "l",
21
+ xl = "xl",
22
+ xxl = "xxl",
23
+ xxxl = "xxxl"
24
+ }