@robuust-digital/vue-components 2.7.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/_shared/ButtonBase-DyeIkb-l.js +76 -0
- package/dist/_shared/ChevronDownIcon-Y_yqpwON.js +39 -0
- package/dist/_shared/FormInput-k0vAk3VU.js +69 -0
- package/dist/_shared/Modal-D0x_VHiB.js +188 -0
- package/dist/_shared/Tooltip-B5w_Ojie.js +85 -0
- package/dist/_shared/XMarkIcon-CBoWSM1l.js +17 -0
- package/dist/_shared/combobox-yh0YQ8_d.js +265 -0
- package/dist/_shared/core-C0o6izrz.js +854 -0
- package/dist/_shared/dialogs-SvdPsILD.js +179 -0
- package/dist/_shared/dropdown-BPUpLokN.js +134 -0
- package/dist/_shared/icon-spinner-D3Dhustt.js +23 -0
- package/dist/_shared/lightswitch-CpyX1iA_.js +38 -0
- package/dist/_shared/rich-text-editor-DkHKNS2n.js +226 -0
- package/dist/_shared/toast-DNxJDQWN.js +84 -0
- package/dist/combobox/index.js +2 -5
- package/dist/combobox.d.ts +3 -132
- package/dist/composables/useDialogContext.d.ts +19 -0
- package/dist/composables/useForm.d.ts +6 -0
- package/dist/core/file-upload.css +28 -1
- package/dist/core/index.js +5 -20
- package/dist/core.d.ts +15 -794
- package/dist/dialogs/index.js +3 -6
- package/dist/dialogs.d.ts +3 -300
- package/dist/dropdown/index.js +2 -5
- package/dist/dropdown.d.ts +3 -149
- package/dist/index/index.js +14 -36
- package/dist/index.d.ts +8 -1546
- package/dist/lightswitch/index.js +2 -5
- package/dist/lightswitch.d.ts +3 -39
- package/dist/rich-text-editor/index.js +2 -5
- package/dist/rich-text-editor.d.ts +3 -89
- package/dist/toast/index.js +2 -5
- package/dist/toast.d.ts +3 -66
- package/dist/tooltip/index.js +5 -5
- package/dist/tooltip.d.ts +3 -61
- package/dist/types/shared.d.ts +2 -0
- package/package.json +33 -36
- package/dist/_shared/ButtonBase.vue_vue_type_script_setup_true_lang-ZYVNEyNx.js +0 -60
- package/dist/_shared/ChevronDownIcon-BYWciGnh.js +0 -41
- package/dist/_shared/Combobox.vue_vue_type_script_setup_true_lang-BwTRzqr6.js +0 -256
- package/dist/_shared/Drawer.vue_vue_type_script_setup_true_lang-DeAu2U_2.js +0 -197
- package/dist/_shared/Dropdown.vue_vue_type_script_setup_true_lang-Cv3HwIyF.js +0 -150
- package/dist/_shared/FormInput.vue_vue_type_script_setup_true_lang-Bg7YPGyY.js +0 -74
- package/dist/_shared/Lightswitch.vue_vue_type_script_setup_true_lang-hiuDVfo5.js +0 -43
- package/dist/_shared/Modal.vue_vue_type_script_setup_true_lang-CdMsCCBi.js +0 -203
- package/dist/_shared/RichTextEditor.vue_vue_type_script_setup_true_lang-Miebq2nL.js +0 -247
- package/dist/_shared/Tabs.vue_vue_type_script_setup_true_lang-BaTWaeN3.js +0 -931
- package/dist/_shared/Toast.vue_vue_type_script_setup_true_lang-DS6keeu7.js +0 -78
- package/dist/_shared/Tooltip.vue_vue_type_script_setup_true_lang-B3MHy48T.js +0 -95
- package/dist/_shared/XMarkIcon-CPr_Rd8y.js +0 -19
- package/dist/_shared/icon-spinner-BYCMrTdL.js +0 -26
package/dist/lightswitch.d.ts
CHANGED
|
@@ -1,39 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
import { default as Lightswitch } from './components/Lightswitch.vue';
|
|
2
|
+
export { Lightswitch };
|
|
3
|
+
export default Lightswitch;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
t as RichTextEditor,
|
|
4
|
-
t as default
|
|
5
|
-
};
|
|
1
|
+
import { n as e, t } from "../_shared/rich-text-editor-DkHKNS2n.js";
|
|
2
|
+
export { e as RichTextEditor, t as default };
|
|
@@ -1,89 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
import { default as RichTextEditor } from './components/RichTextEditor.vue';
|
|
2
|
+
export { RichTextEditor };
|
|
3
|
+
export default RichTextEditor;
|
package/dist/toast/index.js
CHANGED
package/dist/toast.d.ts
CHANGED
|
@@ -1,66 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
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 { }
|
|
1
|
+
import { default as Toast } from './components/Toast.vue';
|
|
2
|
+
export { Toast };
|
|
3
|
+
export default Toast;
|
package/dist/tooltip/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
1
|
+
import { t as e } from "../_shared/Tooltip-B5w_Ojie.js";
|
|
2
|
+
//#region src/tooltip.ts
|
|
3
|
+
var t = e;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { e as Tooltip, t as default };
|
package/dist/tooltip.d.ts
CHANGED
|
@@ -1,61 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
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 { }
|
|
1
|
+
import { default as Tooltip } from './components/Tooltip.vue';
|
|
2
|
+
export { Tooltip };
|
|
3
|
+
export default Tooltip;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@robuust-digital/vue-components",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -87,21 +87,21 @@
|
|
|
87
87
|
"type-check": "npx vue-tsc --noEmit --project tsconfig.json --project tests/tsconfig.json"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@floating-ui/vue": "^
|
|
90
|
+
"@floating-ui/vue": "^2.0.0",
|
|
91
91
|
"@headlessui/vue": "^1.7.23",
|
|
92
92
|
"@heroicons/vue": "^2.2.0",
|
|
93
|
-
"@tiptap/starter-kit": "^3.
|
|
94
|
-
"@tiptap/vue-3": "^3.
|
|
95
|
-
"@vueuse/core": "^14.
|
|
96
|
-
"vue": "^3.5.
|
|
93
|
+
"@tiptap/starter-kit": "^3.27.0",
|
|
94
|
+
"@tiptap/vue-3": "^3.27.0",
|
|
95
|
+
"@vueuse/core": "^14.3.0",
|
|
96
|
+
"vue": "^3.5.38"
|
|
97
97
|
},
|
|
98
98
|
"peerDependencies": {
|
|
99
|
-
"@floating-ui/vue": "^
|
|
99
|
+
"@floating-ui/vue": "^2.0.0",
|
|
100
100
|
"@headlessui/vue": "^1.7.0",
|
|
101
101
|
"@tiptap/starter-kit": "^3.0.0",
|
|
102
102
|
"@tiptap/vue-3": "^3.0.0",
|
|
103
103
|
"@vueuse/core": "^14.0.0",
|
|
104
|
-
"vue": "
|
|
104
|
+
"vue": ">=3.3.0"
|
|
105
105
|
},
|
|
106
106
|
"peerDependenciesMeta": {
|
|
107
107
|
"@floating-ui/vue": {
|
|
@@ -121,36 +121,33 @@
|
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
"devDependencies": {
|
|
124
|
-
"@modelcontextprotocol/sdk": "^1.
|
|
125
|
-
"@
|
|
126
|
-
"@tailwindcss/postcss": "^4.1
|
|
127
|
-
"@tailwindcss/vite": "^4.1
|
|
128
|
-
"@types/node": "^25.
|
|
129
|
-
"@
|
|
130
|
-
"@
|
|
131
|
-
"@
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"jsdom": "^29.0.2",
|
|
138
|
-
"postcss": "^8.5.6",
|
|
139
|
-
"postcss-html": "^1.8.0",
|
|
124
|
+
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
125
|
+
"@robuust-digital/eslint-config": "^0.5.0",
|
|
126
|
+
"@tailwindcss/postcss": "^4.3.1",
|
|
127
|
+
"@tailwindcss/vite": "^4.3.1",
|
|
128
|
+
"@types/node": "^25.9.3",
|
|
129
|
+
"@vitejs/plugin-vue": "^6.0.7",
|
|
130
|
+
"@vitest/coverage-v8": "^4.1.9",
|
|
131
|
+
"@vue/test-utils": "^2.4.11",
|
|
132
|
+
"eslint": "^10.5.0",
|
|
133
|
+
"globals": "^17.6.0",
|
|
134
|
+
"jsdom": "^29.1.1",
|
|
135
|
+
"postcss": "^8.5.15",
|
|
136
|
+
"postcss-html": "^1.8.1",
|
|
140
137
|
"postcss-scss": "^4.0.9",
|
|
141
|
-
"stylelint": "^17.
|
|
142
|
-
"stylelint-config-property-sort-order-smacss": "^11.
|
|
138
|
+
"stylelint": "^17.13.0",
|
|
139
|
+
"stylelint-config-property-sort-order-smacss": "^11.2.0",
|
|
143
140
|
"stylelint-config-standard": "^40.0.0",
|
|
144
|
-
"tailwindcss": "^4.1
|
|
145
|
-
"typescript": "
|
|
146
|
-
"vite": "^
|
|
147
|
-
"vite-plugin-dts": "^
|
|
148
|
-
"vite-plugin-static-copy": "
|
|
149
|
-
"vite-plugin-vue-devtools": "^8.
|
|
150
|
-
"vite-svg-loader": "^5.1.
|
|
151
|
-
"vitepress": "2.0.0-alpha.
|
|
152
|
-
"vitest": "^
|
|
153
|
-
"zod": "^4.3
|
|
141
|
+
"tailwindcss": "^4.3.1",
|
|
142
|
+
"typescript": "6.0.3",
|
|
143
|
+
"vite": "^8.0.16",
|
|
144
|
+
"vite-plugin-dts": "^5.0.2",
|
|
145
|
+
"vite-plugin-static-copy": "4.1.1",
|
|
146
|
+
"vite-plugin-vue-devtools": "^8.1.3",
|
|
147
|
+
"vite-svg-loader": "^5.1.1",
|
|
148
|
+
"vitepress": "2.0.0-alpha.17",
|
|
149
|
+
"vitest": "^4.1.9",
|
|
150
|
+
"zod": "^4.4.3"
|
|
154
151
|
},
|
|
155
152
|
"packageManager": "yarn@4.12.0"
|
|
156
153
|
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { defineComponent as b, watchEffect as r, openBlock as l, createBlock as a, resolveDynamicComponent as c, mergeProps as d, withCtx as f, createElementBlock as y, renderSlot as t, createTextVNode as u, toDisplayString as s, createCommentVNode as i, unref as m } from "vue";
|
|
2
|
-
import { S as v } from "./icon-spinner-BYCMrTdL.js";
|
|
3
|
-
const g = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "rvc-button-label"
|
|
6
|
-
}, k = /* @__PURE__ */ b({
|
|
7
|
-
__name: "ButtonBase",
|
|
8
|
-
props: {
|
|
9
|
-
as: { default: "button" },
|
|
10
|
-
bindAs: { default: void 0 },
|
|
11
|
-
label: { default: "" },
|
|
12
|
-
icon: { type: [Function, Object, null], default: null },
|
|
13
|
-
iconOnly: { type: Boolean, default: !1 },
|
|
14
|
-
iconLeft: { type: Boolean, default: !1 },
|
|
15
|
-
size: { default: "base" },
|
|
16
|
-
spinning: { type: Boolean, default: !1 },
|
|
17
|
-
color: { default: "primary" }
|
|
18
|
-
},
|
|
19
|
-
setup(n) {
|
|
20
|
-
const o = n;
|
|
21
|
-
return r(() => {
|
|
22
|
-
o.iconOnly && !o.icon && console.warn("[ButtonBase] Using iconOnly prop without providing an icon may result in an empty button.");
|
|
23
|
-
}), (e, B) => (l(), a(c(n.as), d(n.bindAs ? { as: n.bindAs } : {}, {
|
|
24
|
-
class: ["rvc-button", `rvc-button-${n.color}`, `rvc-button-${n.size}`, { "rvc-button-reverse": n.iconLeft }, { "rvc-button-icon-only": n.iconOnly }],
|
|
25
|
-
"aria-label": n.iconOnly ? n.label : null,
|
|
26
|
-
"aria-busy": n.spinning
|
|
27
|
-
}), {
|
|
28
|
-
default: f(() => [
|
|
29
|
-
n.iconOnly && n.label ? (l(), y("span", g, [
|
|
30
|
-
t(e.$slots, "default", { label: n.label }, () => [
|
|
31
|
-
u(s(n.label), 1)
|
|
32
|
-
])
|
|
33
|
-
])) : n.label ? t(e.$slots, "default", {
|
|
34
|
-
key: 1,
|
|
35
|
-
label: n.label
|
|
36
|
-
}, () => [
|
|
37
|
-
u(s(n.label), 1)
|
|
38
|
-
]) : i("", !0),
|
|
39
|
-
t(e.$slots, "icon", { icon: n.icon }, () => [
|
|
40
|
-
n.icon && !n.spinning ? (l(), a(c(n.icon), {
|
|
41
|
-
key: 0,
|
|
42
|
-
class: "rvc-button-icon",
|
|
43
|
-
"aria-hidden": !n.iconOnly
|
|
44
|
-
}, null, 8, ["aria-hidden"])) : i("", !0)
|
|
45
|
-
]),
|
|
46
|
-
t(e.$slots, "spinner", { spinning: n.spinning }, () => [
|
|
47
|
-
n.spinning ? (l(), a(m(v), {
|
|
48
|
-
key: 0,
|
|
49
|
-
class: "rvc-button-icon rvc-button-icon-loading",
|
|
50
|
-
"aria-hidden": "true"
|
|
51
|
-
})) : i("", !0)
|
|
52
|
-
])
|
|
53
|
-
]),
|
|
54
|
-
_: 3
|
|
55
|
-
}, 16, ["class", "aria-label", "aria-busy"]));
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
export {
|
|
59
|
-
k as _
|
|
60
|
-
};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { defineComponent as t, openBlock as l, createBlock as r, resolveDynamicComponent as o, normalizeClass as n, withCtx as c, renderSlot as d, createTextVNode as s, toDisplayString as i, createElementBlock as u, createElementVNode as f } from "vue";
|
|
2
|
-
const b = /* @__PURE__ */ t({
|
|
3
|
-
__name: "Badge",
|
|
4
|
-
props: {
|
|
5
|
-
as: { default: "span" },
|
|
6
|
-
label: { default: "" },
|
|
7
|
-
size: { default: "base" },
|
|
8
|
-
color: { default: "default" }
|
|
9
|
-
},
|
|
10
|
-
setup(e) {
|
|
11
|
-
return (a, m) => (l(), r(o(e.as), {
|
|
12
|
-
class: n(["rvc-badge", `rvc-badge-${e.color}`, `rvc-badge-${e.size}`])
|
|
13
|
-
}, {
|
|
14
|
-
default: c(() => [
|
|
15
|
-
d(a.$slots, "default", { label: e.label }, () => [
|
|
16
|
-
s(i(e.label), 1)
|
|
17
|
-
])
|
|
18
|
-
]),
|
|
19
|
-
_: 3
|
|
20
|
-
}, 8, ["class"]));
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
function g(e, a) {
|
|
24
|
-
return l(), u("svg", {
|
|
25
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
26
|
-
viewBox: "0 0 20 20",
|
|
27
|
-
fill: "currentColor",
|
|
28
|
-
"aria-hidden": "true",
|
|
29
|
-
"data-slot": "icon"
|
|
30
|
-
}, [
|
|
31
|
-
f("path", {
|
|
32
|
-
"fill-rule": "evenodd",
|
|
33
|
-
d: "M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",
|
|
34
|
-
"clip-rule": "evenodd"
|
|
35
|
-
})
|
|
36
|
-
]);
|
|
37
|
-
}
|
|
38
|
-
export {
|
|
39
|
-
b as _,
|
|
40
|
-
g as r
|
|
41
|
-
};
|