@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,287 +0,0 @@
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 {};
@@ -1,33 +0,0 @@
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
- };
package/dist/index.d.ts DELETED
@@ -1,56 +0,0 @@
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, };
@@ -1,21 +0,0 @@
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
- };
@@ -1,32 +0,0 @@
1
- export declare function createArray(length: number, startOffset?: number): number[];
2
- export declare function searchString(match: string | string[], input: string): boolean;
3
- export declare function getMaybeRefLength(value: string | number): number;
4
- export declare function isNil(value: any): value is undefined | null;
5
- /**
6
- * Checks wether a color is light or dark, depending on
7
- */
8
- export declare function calculateColorLightness(r: number, g: number, b: number): 'dark' | 'light';
9
- /**
10
- * Convert a CSS rgb string to a tuple of actual r,g,b values
11
- *
12
- * 'rgb(12,16,24)' --> [12, 16, 24]
13
- */
14
- export declare function stringRgbToValues(rgbString: string): [number, number, number];
15
- export declare function randomMinMax(min: number, max: number): number;
16
- export declare function delay(amount: number): Promise<any>;
17
- export declare function setCharAt(str: string, char: string | number, index: number): string;
18
- /**
19
- * Takes in a value and if it is a number, appends "px" to it, otherwise returns
20
- * the original value.
21
- *
22
- */
23
- export declare function formatUnitValue(value: string | number, unit?: string): string;
24
- export declare function clamp(min: number, max: number, value: number): number;
25
- /**
26
- * Checks wether an object is inside of Set, based on comparing values. Not reference
27
- *
28
- * @param set The Set
29
- * @param obj Object which should be in the side
30
- * @returns If object is inside the set
31
- */
32
- export declare function isObjectInSet(set: Set<any>, obj: any): boolean;
@@ -1,20 +0,0 @@
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 {};
@@ -1,3 +0,0 @@
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;
@@ -1,24 +0,0 @@
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
- }