@robuust-digital/vue-components 2.2.0-rc.0 → 2.2.1

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 (53) hide show
  1. package/CHANGELOG.md +8 -2
  2. package/dist/_shared/{ButtonBase.vue_vue_type_script_setup_true_lang-B0YsKehI.js → ButtonBase.vue_vue_type_script_setup_true_lang-DeflHqux.js} +1 -1
  3. package/dist/_shared/{Combobox.vue_vue_type_script_setup_true_lang-D1vKMJok.js → Combobox.vue_vue_type_script_setup_true_lang-CP3x2DUA.js} +3 -3
  4. package/dist/_shared/{Drawer.vue_vue_type_script_setup_true_lang-DT6tBBZ7.js → Drawer.vue_vue_type_script_setup_true_lang-CD5914Fk.js} +5 -6
  5. package/dist/_shared/{Dropdown.vue_vue_type_script_setup_true_lang-D5vTFLkq.js → Dropdown.vue_vue_type_script_setup_true_lang-CmYj-7WQ.js} +1 -1
  6. package/dist/_shared/{Lightswitch.vue_vue_type_script_setup_true_lang-CvN-2WJt.js → Lightswitch.vue_vue_type_script_setup_true_lang-DX23lEFd.js} +8 -9
  7. package/dist/_shared/{Modal.vue_vue_type_script_setup_true_lang-DBEOIZnO.js → Modal.vue_vue_type_script_setup_true_lang-CoHkAJj3.js} +4 -5
  8. package/dist/_shared/{RichTextEditor.vue_vue_type_script_setup_true_lang-Bs4WdJhA.js → RichTextEditor.vue_vue_type_script_setup_true_lang-CIVhqJtE.js} +1 -1
  9. package/dist/_shared/{Tabs.vue_vue_type_script_setup_true_lang-CsGx6wBK.js → Tabs.vue_vue_type_script_setup_true_lang-DnzOq9GZ.js} +5 -2
  10. package/dist/_shared/{Toast.vue_vue_type_script_setup_true_lang-FEeRXoIx.js → Toast.vue_vue_type_script_setup_true_lang-Be3i_0zE.js} +26 -23
  11. package/dist/_shared/{icon-spinner-CmxIOqaK.js → icon-spinner-CP0VP_YM.js} +2 -2
  12. package/dist/combobox/index.js +1 -1
  13. package/dist/combobox.d.ts +132 -4
  14. package/dist/core/index.js +2 -2
  15. package/dist/core.d.ts +670 -27
  16. package/dist/dialogs/index.js +2 -2
  17. package/dist/dialogs.d.ts +226 -5
  18. package/dist/dropdown/index.js +1 -1
  19. package/dist/dropdown.d.ts +145 -4
  20. package/dist/index/index.js +9 -9
  21. package/dist/index.d.ts +1344 -8
  22. package/dist/lightswitch/index.js +1 -1
  23. package/dist/lightswitch.d.ts +39 -4
  24. package/dist/rich-text-editor/index.js +1 -1
  25. package/dist/rich-text-editor.d.ts +89 -4
  26. package/dist/toast/index.js +1 -1
  27. package/dist/toast.d.ts +66 -4
  28. package/dist/tooltip.d.ts +61 -4
  29. package/package.json +25 -28
  30. package/dist/components/Accordion.vue.d.ts +0 -37
  31. package/dist/components/Alert.vue.d.ts +0 -39
  32. package/dist/components/Badge.vue.d.ts +0 -32
  33. package/dist/components/ButtonBase.vue.d.ts +0 -50
  34. package/dist/components/Checkbox.vue.d.ts +0 -39
  35. package/dist/components/Combobox.vue.d.ts +0 -112
  36. package/dist/components/DataTable.vue.d.ts +0 -122
  37. package/dist/components/Drawer.vue.d.ts +0 -103
  38. package/dist/components/Dropdown.vue.d.ts +0 -120
  39. package/dist/components/EmptyState.vue.d.ts +0 -23
  40. package/dist/components/FormInput.vue.d.ts +0 -49
  41. package/dist/components/FormSelect.vue.d.ts +0 -58
  42. package/dist/components/FormTextarea.vue.d.ts +0 -16
  43. package/dist/components/Lightswitch.vue.d.ts +0 -26
  44. package/dist/components/Modal.vue.d.ts +0 -98
  45. package/dist/components/Pagination.vue.d.ts +0 -60
  46. package/dist/components/Radio.vue.d.ts +0 -34
  47. package/dist/components/RichTextEditor.vue.d.ts +0 -71
  48. package/dist/components/Tabs.vue.d.ts +0 -26
  49. package/dist/components/Toast.vue.d.ts +0 -46
  50. package/dist/components/Tooltip.vue.d.ts +0 -45
  51. package/dist/composables/useDialogContext.d.ts +0 -18
  52. package/dist/composables/useForm.d.ts +0 -6
  53. package/dist/types/shared.d.ts +0 -3
@@ -1,4 +1,4 @@
1
- import { _ as s } from "../_shared/Lightswitch.vue_vue_type_script_setup_true_lang-CvN-2WJt.js";
1
+ import { _ as s } from "../_shared/Lightswitch.vue_vue_type_script_setup_true_lang-DX23lEFd.js";
2
2
  export {
3
3
  s as Lightswitch,
4
4
  s as default
@@ -1,4 +1,39 @@
1
- import { default as Lightswitch } from './components/Lightswitch.vue';
2
- export type { LightswitchProps } from './components/Lightswitch.vue';
3
- export { Lightswitch };
4
- export default Lightswitch;
1
+ import { ComponentOptionsMixin } from 'vue';
2
+ import { ComponentProvideOptions } from 'vue';
3
+ import { DefineComponent } from 'vue';
4
+ import { PublicProps } from 'vue';
5
+
6
+ declare const __VLS_component: DefineComponent<LightswitchProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
7
+ "update:modelValue": (value: boolean) => any;
8
+ }, string, PublicProps, Readonly<LightswitchProps> & Readonly<{
9
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
10
+ }>, {
11
+ modelValue: boolean;
12
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
13
+
14
+ declare function __VLS_template(): {
15
+ attrs: Partial<{}>;
16
+ slots: {
17
+ default?(_: {}): any;
18
+ };
19
+ refs: {};
20
+ rootEl: any;
21
+ };
22
+
23
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
+
25
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
30
+
31
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
32
+ export { _default as Lightswitch }
33
+ export default _default;
34
+
35
+ declare interface LightswitchProps {
36
+ modelValue?: boolean;
37
+ }
38
+
39
+ export { }
@@ -1,4 +1,4 @@
1
- import { _ as t } from "../_shared/RichTextEditor.vue_vue_type_script_setup_true_lang-Bs4WdJhA.js";
1
+ import { _ as t } from "../_shared/RichTextEditor.vue_vue_type_script_setup_true_lang-CIVhqJtE.js";
2
2
  export {
3
3
  t as RichTextEditor,
4
4
  t as default
@@ -1,4 +1,89 @@
1
- import { default as RichTextEditor } from './components/RichTextEditor.vue';
2
- export type { RichTextConfig, CustomCommand, RichTextEditorProps } from './components/RichTextEditor.vue';
3
- export { RichTextEditor };
4
- export default RichTextEditor;
1
+ import { ComponentOptionsMixin } from 'vue';
2
+ import { ComponentProvideOptions } from 'vue';
3
+ import { DefineComponent } from 'vue';
4
+ import { Editor } from '@tiptap/vue-3';
5
+ import { Extension } from '@tiptap/core';
6
+ import { FunctionalComponent } from 'vue';
7
+ import { HTMLAttributes } from 'vue';
8
+ import { PublicProps } from 'vue';
9
+ import { VNodeProps } from 'vue';
10
+
11
+ declare const __VLS_component: DefineComponent<RichTextEditorProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
12
+ "update:modelValue": (value: string) => any;
13
+ "tiptap:onCreate": (editor: any) => any;
14
+ }, string, PublicProps, Readonly<RichTextEditorProps> & Readonly<{
15
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
16
+ "onTiptap:onCreate"?: ((editor: any) => any) | undefined;
17
+ }>, {
18
+ modelValue: string;
19
+ rootClass: string;
20
+ disabled: boolean;
21
+ config: RichTextConfig;
22
+ customExtensions: Extension[];
23
+ customCommands: CustomCommand[];
24
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
25
+
26
+ declare function __VLS_template(): {
27
+ attrs: Partial<{}>;
28
+ slots: {
29
+ default?(_: {}): any;
30
+ toolbar?(_: {
31
+ commands: ({
32
+ name: string;
33
+ icon: FunctionalComponent<HTMLAttributes & VNodeProps, {}, any, {}>;
34
+ title: string;
35
+ isVisible: boolean;
36
+ isActive: () => boolean;
37
+ action: () => boolean | undefined;
38
+ disabled?: undefined;
39
+ } | {
40
+ isVisible: boolean | ((editor: Editor) => boolean);
41
+ disabled: boolean;
42
+ isActive: () => boolean;
43
+ action: () => void | undefined;
44
+ name: string;
45
+ icon?: any;
46
+ title: string;
47
+ })[];
48
+ tiptap: Editor;
49
+ }): any;
50
+ };
51
+ refs: {};
52
+ rootEl: any;
53
+ };
54
+
55
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
56
+
57
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
58
+ new (): {
59
+ $slots: S;
60
+ };
61
+ };
62
+
63
+ declare interface CustomCommand {
64
+ name: string;
65
+ icon?: any;
66
+ title: string;
67
+ isVisible?: boolean | ((editor: Editor) => boolean);
68
+ disabled?: boolean | ((editor: Editor) => boolean);
69
+ isActive?: (editor: Editor) => boolean;
70
+ action: (editor: Editor) => void;
71
+ }
72
+
73
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
74
+ export { _default as RichTextEditor }
75
+ export default _default;
76
+
77
+ declare type RichTextConfig = 'default' | 'simple';
78
+
79
+ declare interface RichTextEditorProps {
80
+ id: string;
81
+ modelValue?: string;
82
+ rootClass?: string;
83
+ config?: RichTextConfig;
84
+ customExtensions?: Extension[];
85
+ customCommands?: CustomCommand[];
86
+ disabled?: boolean;
87
+ }
88
+
89
+ export { }
@@ -1,4 +1,4 @@
1
- import { _ as s } from "../_shared/Toast.vue_vue_type_script_setup_true_lang-FEeRXoIx.js";
1
+ import { _ as s } from "../_shared/Toast.vue_vue_type_script_setup_true_lang-Be3i_0zE.js";
2
2
  export {
3
3
  s as Toast,
4
4
  s as default
package/dist/toast.d.ts CHANGED
@@ -1,4 +1,66 @@
1
- import { default as Toast } from './components/Toast.vue';
2
- export type { ToastPosition, ToastType, ToastProps } from './components/Toast.vue';
3
- export { Toast };
4
- export default Toast;
1
+ import { ComponentOptionsMixin } from 'vue';
2
+ import { ComponentProvideOptions } from 'vue';
3
+ import { DefineComponent } from 'vue';
4
+ import { FunctionalComponent } from 'vue';
5
+ import { HTMLAttributes } from 'vue';
6
+ import { PublicProps } from 'vue';
7
+ import { SVGAttributes } from 'vue';
8
+ import { VNodeProps } from 'vue';
9
+
10
+ declare const __VLS_component: DefineComponent<ToastProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
11
+ "toast:close": () => any;
12
+ }, string, PublicProps, Readonly<ToastProps> & Readonly<{
13
+ "onToast:close"?: (() => any) | undefined;
14
+ }>, {
15
+ title: string | null;
16
+ as: string;
17
+ icon: Icon | null;
18
+ type: ToastType | null;
19
+ showClose: boolean;
20
+ show: boolean;
21
+ position: ToastPosition;
22
+ timeout: number | boolean;
23
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
24
+
25
+ declare function __VLS_template(): {
26
+ attrs: Partial<{}>;
27
+ slots: {
28
+ icon?(_: {}): any;
29
+ title?(_: {}): any;
30
+ default?(_: {}): any;
31
+ close?(_: {}): any;
32
+ };
33
+ refs: {};
34
+ rootEl: any;
35
+ };
36
+
37
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
38
+
39
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
44
+
45
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
46
+ export { _default as Toast }
47
+ export default _default;
48
+
49
+ declare type Icon = FunctionalComponent<SVGAttributes & HTMLAttributes & VNodeProps>;
50
+
51
+ declare type ToastPosition = 'top' | 'bottom';
52
+
53
+ declare interface ToastProps {
54
+ show?: boolean;
55
+ as?: string;
56
+ title?: string | undefined | null;
57
+ icon?: Icon | null;
58
+ timeout?: number | boolean;
59
+ position?: ToastPosition;
60
+ type?: ToastType | undefined | null;
61
+ showClose?: boolean;
62
+ }
63
+
64
+ declare type ToastType = 'success' | 'warning' | 'danger' | 'info';
65
+
66
+ export { }
package/dist/tooltip.d.ts CHANGED
@@ -1,4 +1,61 @@
1
- import { default as Tooltip } from './components/Tooltip.vue';
2
- export type { TooltipPlacement, TooltipSize, TooltipProps } from './components/Tooltip.vue';
3
- export { Tooltip };
4
- export default Tooltip;
1
+ import { AlignedPlacement } from '@floating-ui/vue';
2
+ import { ComponentOptionsMixin } from 'vue';
3
+ import { ComponentProvideOptions } from 'vue';
4
+ import { DefineComponent } from 'vue';
5
+ import { PublicProps } from 'vue';
6
+ import { Side } from '@floating-ui/vue';
7
+
8
+ declare const __VLS_component: DefineComponent<TooltipProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<TooltipProps> & Readonly<{}>, {
9
+ blur: boolean;
10
+ size: TooltipSize;
11
+ maxWidth: number | null;
12
+ tooltipClass: string;
13
+ placement: TooltipPlacement;
14
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
15
+ wrapperRef: HTMLDivElement;
16
+ tooltipRef: HTMLDivElement;
17
+ arrowRef: HTMLDivElement;
18
+ }, HTMLDivElement>;
19
+
20
+ declare function __VLS_template(): {
21
+ attrs: Partial<{}>;
22
+ slots: {
23
+ default?(_: {}): any;
24
+ content?(_: {
25
+ content: string;
26
+ }): any;
27
+ };
28
+ refs: {
29
+ wrapperRef: HTMLDivElement;
30
+ tooltipRef: HTMLDivElement;
31
+ arrowRef: HTMLDivElement;
32
+ };
33
+ rootEl: HTMLDivElement;
34
+ };
35
+
36
+ declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
37
+
38
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
39
+ new (): {
40
+ $slots: S;
41
+ };
42
+ };
43
+
44
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
45
+ export { _default as Tooltip }
46
+ export default _default;
47
+
48
+ declare type TooltipPlacement = AlignedPlacement | Side;
49
+
50
+ declare interface TooltipProps {
51
+ content: string;
52
+ blur?: boolean;
53
+ maxWidth?: number | null;
54
+ tooltipClass?: string;
55
+ placement?: TooltipPlacement;
56
+ size?: TooltipSize;
57
+ }
58
+
59
+ declare type TooltipSize = 'sm' | 'base';
60
+
61
+ export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robuust-digital/vue-components",
3
- "version": "2.2.0-rc.0",
3
+ "version": "2.2.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -81,49 +81,46 @@
81
81
  "test:unit": "vitest run",
82
82
  "lint": "eslint .",
83
83
  "lint:style": "stylelint 'src/**/*.{vue,css}'",
84
- "type-check": "npx vue-tsc --noEmit"
84
+ "type-check": "npx vue-tsc --noEmit --project tsconfig.json --project tests/tsconfig.json"
85
85
  },
86
86
  "dependencies": {
87
- "@floating-ui/vue": "^1.1.7",
87
+ "@floating-ui/vue": "^1.1.9",
88
88
  "@headlessui/vue": "^1.7.23",
89
89
  "@heroicons/vue": "^2.2.0",
90
- "@tiptap/starter-kit": "^3.0.1",
91
- "@tiptap/vue-3": "^3.0.1",
92
- "@vueuse/core": "^13.0.0",
93
- "vue": "^3.5.13"
90
+ "@tiptap/starter-kit": "^3.5.0",
91
+ "@tiptap/vue-3": "^3.5.0",
92
+ "@vueuse/core": "^13.9.0",
93
+ "vue": "^3.5.21"
94
94
  },
95
95
  "devDependencies": {
96
- "@rushstack/eslint-patch": "^1.10.5",
97
- "@tailwindcss/postcss": "^4.0.6",
98
- "@tailwindcss/vite": "^4.0.6",
99
- "@types/node": "^24.2.0",
100
- "@typescript-eslint/eslint-plugin": "^8.39.0",
101
- "@typescript-eslint/parser": "^8.39.0",
102
- "@vitejs/plugin-vue": "^6.0.0",
103
- "@vitest/coverage-v8": "^3.0.5",
96
+ "@rushstack/eslint-patch": "^1.12.0",
97
+ "@tailwindcss/postcss": "^4.1.13",
98
+ "@tailwindcss/vite": "^4.1.13",
99
+ "@types/node": "^24.5.2",
100
+ "@typescript-eslint/eslint-plugin": "^8.44.1",
101
+ "@typescript-eslint/parser": "^8.44.1",
102
+ "@vitejs/plugin-vue": "^6.0.1",
103
+ "@vitest/coverage-v8": "^3.2.4",
104
104
  "@vue/eslint-config-airbnb-with-typescript": "^8.0.0",
105
105
  "@vue/test-utils": "^2.4.6",
106
106
  "eslint": "^8.57.1",
107
- "eslint-plugin-vue": "^9.32.0",
108
- "jsdom": "^26.0.0",
109
- "postcss": "^8.5.2",
107
+ "eslint-plugin-vue": "^9.33.0",
108
+ "jsdom": "^27.0.0",
109
+ "postcss": "^8.5.6",
110
110
  "postcss-html": "^1.8.0",
111
111
  "postcss-scss": "^4.0.9",
112
- "stylelint": "^16.14.1",
112
+ "stylelint": "^16.24.0",
113
113
  "stylelint-config-property-sort-order-smacss": "^10.0.0",
114
114
  "stylelint-config-standard": "^39.0.0",
115
- "tailwindcss": "^4.0.6",
115
+ "tailwindcss": "^4.1.13",
116
116
  "typescript": "^5.9.2",
117
- "vite": "^6.1.0",
117
+ "vite": "^6.3.6",
118
118
  "vite-plugin-dts": "^4.5.4",
119
- "vite-plugin-static-copy": "^3.0.0",
120
- "vite-plugin-vue-devtools": "^8.0.0",
119
+ "vite-plugin-static-copy": "^3.1.2",
120
+ "vite-plugin-vue-devtools": "^8.0.2",
121
121
  "vite-svg-loader": "^5.1.0",
122
- "vitepress": "^2.0.0-alpha.2",
123
- "vitest": "^3.0.5"
124
- },
125
- "resolutions": {
126
- "@vueuse/core": "^13.0.0"
122
+ "vitepress": "^2.0.0-alpha.12",
123
+ "vitest": "^3.2.4"
127
124
  },
128
125
  "packageManager": "yarn@4.9.2"
129
126
  }
@@ -1,37 +0,0 @@
1
- export interface AccordionItem {
2
- title: string;
3
- content: string;
4
- [key: string]: unknown;
5
- }
6
- export interface AccordionProps {
7
- items: AccordionItem[];
8
- name?: string;
9
- defaultOpenIndex?: number;
10
- contentClass?: string;
11
- }
12
- declare function __VLS_template(): {
13
- attrs: Partial<{}>;
14
- slots: {
15
- summary?(_: {
16
- item: AccordionItem;
17
- index: number;
18
- }): any;
19
- icon?(_: {
20
- classList: string;
21
- }): any;
22
- content?(_: {
23
- item: AccordionItem;
24
- }): any;
25
- };
26
- refs: {};
27
- rootEl: HTMLDivElement;
28
- };
29
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
30
- declare const __VLS_component: import('../../node_modules/vue').DefineComponent<AccordionProps, {}, {}, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {}, string, import('../../node_modules/vue').PublicProps, Readonly<AccordionProps> & Readonly<{}>, {}, {}, {}, {}, string, import('../../node_modules/vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
31
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
32
- export default _default;
33
- type __VLS_WithTemplateSlots<T, S> = T & {
34
- new (): {
35
- $slots: S;
36
- };
37
- };
@@ -1,39 +0,0 @@
1
- import { Icon } from '../types/shared';
2
- export type AlertType = 'success' | 'warning' | 'danger' | 'info';
3
- export interface AlertProps {
4
- as?: string;
5
- title?: string;
6
- icon?: Icon;
7
- type?: AlertType;
8
- close?: boolean;
9
- }
10
- declare function __VLS_template(): {
11
- attrs: Partial<{}>;
12
- slots: {
13
- icon?(_: {}): any;
14
- title?(_: {}): any;
15
- default?(_: {}): any;
16
- close?(_: {}): any;
17
- };
18
- refs: {};
19
- rootEl: any;
20
- };
21
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
- declare const __VLS_component: import('../../node_modules/vue').DefineComponent<AlertProps, {}, {}, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {} & {
23
- "alert:close": () => any;
24
- }, string, import('../../node_modules/vue').PublicProps, Readonly<AlertProps> & Readonly<{
25
- "onAlert:close"?: (() => any) | undefined;
26
- }>, {
27
- title: string;
28
- close: boolean;
29
- as: string;
30
- icon: Icon;
31
- type: AlertType;
32
- }, {}, {}, {}, string, import('../../node_modules/vue').ComponentProvideOptions, false, {}, any>;
33
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
- export default _default;
35
- type __VLS_WithTemplateSlots<T, S> = T & {
36
- new (): {
37
- $slots: S;
38
- };
39
- };
@@ -1,32 +0,0 @@
1
- export type BadgeColor = 'default' | 'gray' | 'red' | 'yellow' | 'green' | 'blue' | 'violet' | 'purple' | 'pink' | `custom-${string}`;
2
- export type BadgeSize = 'sm' | 'base';
3
- export interface BadgeProps {
4
- as?: string;
5
- label?: string;
6
- size?: BadgeSize;
7
- color?: BadgeColor;
8
- }
9
- declare function __VLS_template(): {
10
- attrs: Partial<{}>;
11
- slots: {
12
- default?(_: {
13
- label: string;
14
- }): any;
15
- };
16
- refs: {};
17
- rootEl: any;
18
- };
19
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
20
- declare const __VLS_component: import('../../node_modules/vue').DefineComponent<BadgeProps, {}, {}, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {}, string, import('../../node_modules/vue').PublicProps, Readonly<BadgeProps> & Readonly<{}>, {
21
- label: string;
22
- as: string;
23
- size: BadgeSize;
24
- color: BadgeColor;
25
- }, {}, {}, {}, string, import('../../node_modules/vue').ComponentProvideOptions, false, {}, any>;
26
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
- export default _default;
28
- type __VLS_WithTemplateSlots<T, S> = T & {
29
- new (): {
30
- $slots: S;
31
- };
32
- };
@@ -1,50 +0,0 @@
1
- import { Icon } from '../types/shared';
2
- export interface ButtonProps {
3
- as?: string;
4
- bindAs?: string;
5
- label?: string;
6
- icon?: Icon;
7
- iconOnly?: boolean;
8
- iconLeft?: boolean;
9
- size?: 'sm' | 'base';
10
- spinning?: boolean;
11
- color?: 'primary' | 'secondary' | 'tertiary' | 'light' | 'dark' | 'green' | 'red' | 'yellow' | 'blue' | 'green-soft' | 'red-soft' | 'yellow-soft' | 'blue-soft' | `custom-${string}` | 'clear';
12
- }
13
- declare function __VLS_template(): {
14
- attrs: Partial<{}>;
15
- slots: {
16
- default?(_: {
17
- label: string;
18
- }): any;
19
- default?(_: {
20
- label: string;
21
- }): any;
22
- icon?(_: {
23
- icon: Icon;
24
- }): any;
25
- spinner?(_: {
26
- spinning: boolean;
27
- }): any;
28
- };
29
- refs: {};
30
- rootEl: any;
31
- };
32
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
33
- declare const __VLS_component: import('../../node_modules/vue').DefineComponent<ButtonProps, {}, {}, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {}, string, import('../../node_modules/vue').PublicProps, Readonly<ButtonProps> & Readonly<{}>, {
34
- label: string;
35
- as: string;
36
- icon: Icon;
37
- size: "sm" | "base";
38
- color: "primary" | "secondary" | "tertiary" | "light" | "dark" | "green" | "red" | "yellow" | "blue" | "green-soft" | "red-soft" | "yellow-soft" | "blue-soft" | `custom-${string}` | "clear";
39
- bindAs: string;
40
- iconOnly: boolean;
41
- iconLeft: boolean;
42
- spinning: boolean;
43
- }, {}, {}, {}, string, import('../../node_modules/vue').ComponentProvideOptions, false, {}, any>;
44
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
45
- export default _default;
46
- type __VLS_WithTemplateSlots<T, S> = T & {
47
- new (): {
48
- $slots: S;
49
- };
50
- };
@@ -1,39 +0,0 @@
1
- export type CheckboxModelValue = number | string | object | Array<unknown> | boolean | null;
2
- export interface CheckboxProps {
3
- modelValue?: CheckboxModelValue;
4
- label?: string;
5
- rootClass?: string;
6
- }
7
- declare function __VLS_template(): {
8
- attrs: Partial<{}>;
9
- slots: {
10
- input?(_: {}): any;
11
- icon?(_: {}): any;
12
- default?(_: {
13
- label: string;
14
- }): any;
15
- };
16
- refs: {
17
- input: HTMLInputElement;
18
- };
19
- rootEl: any;
20
- };
21
- type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
- declare const __VLS_component: import('../../node_modules/vue').DefineComponent<CheckboxProps, {}, {}, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {} & {
23
- "update:modelValue": (value: CheckboxModelValue) => any;
24
- }, string, import('../../node_modules/vue').PublicProps, Readonly<CheckboxProps> & Readonly<{
25
- "onUpdate:modelValue"?: ((value: CheckboxModelValue) => any) | undefined;
26
- }>, {
27
- label: string;
28
- modelValue: CheckboxModelValue;
29
- rootClass: string;
30
- }, {}, {}, {}, string, import('../../node_modules/vue').ComponentProvideOptions, false, {
31
- input: HTMLInputElement;
32
- }, any>;
33
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
34
- export default _default;
35
- type __VLS_WithTemplateSlots<T, S> = T & {
36
- new (): {
37
- $slots: S;
38
- };
39
- };