@robuust-digital/vue-components 2.6.2 → 2.6.3

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.
@@ -1 +1,39 @@
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
+
1
39
  export { }
@@ -1 +1,89 @@
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
+
1
89
  export { }
package/dist/toast.d.ts CHANGED
@@ -1 +1,66 @@
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
+
1
66
  export { }
package/dist/tooltip.d.ts CHANGED
@@ -1 +1,61 @@
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
+
1
61
  export { }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robuust-digital/vue-components",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -75,6 +75,7 @@
75
75
  "scripts": {
76
76
  "dev": "vite --host",
77
77
  "build": "vite build",
78
+ "verify:dts": "node scripts/verify-dts.mjs",
78
79
  "docs:dev": "vitepress dev docs --host",
79
80
  "docs:build": "vitepress build docs",
80
81
  "docs:preview": "vitepress preview docs",
@@ -141,10 +142,10 @@
141
142
  "stylelint-config-property-sort-order-smacss": "^11.1.0",
142
143
  "stylelint-config-standard": "^40.0.0",
143
144
  "tailwindcss": "^4.1.17",
144
- "typescript": "^6.0.2",
145
+ "typescript": "^5.9.3",
145
146
  "vite": "^7.2.2",
146
147
  "vite-plugin-dts": "^4.5.4",
147
- "vite-plugin-static-copy": "3.1.4",
148
+ "vite-plugin-static-copy": "3.4.0",
148
149
  "vite-plugin-vue-devtools": "^8.0.3",
149
150
  "vite-svg-loader": "^5.1.0",
150
151
  "vitepress": "2.0.0-alpha.16",