@robuust-digital/vue-components 2.7.0 → 2.7.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.
@@ -1,39 +1,3 @@
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
+ import { default as Lightswitch } from './components/Lightswitch.vue';
2
+ export { Lightswitch };
3
+ export default Lightswitch;
@@ -1,4 +1,4 @@
1
- import { _ as t } from "../_shared/RichTextEditor.vue_vue_type_script_setup_true_lang-Miebq2nL.js";
1
+ import { _ as t } from "../_shared/RichTextEditor.vue_vue_type_script_setup_true_lang-t8nRuJ6k.js";
2
2
  export {
3
3
  t as RichTextEditor,
4
4
  t as default
@@ -1,89 +1,3 @@
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
+ import { default as RichTextEditor } from './components/RichTextEditor.vue';
2
+ export { RichTextEditor };
3
+ export default RichTextEditor;
package/dist/toast.d.ts CHANGED
@@ -1,66 +1,3 @@
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 { }
1
+ import { default as Toast } from './components/Toast.vue';
2
+ export { Toast };
3
+ export default Toast;
package/dist/tooltip.d.ts CHANGED
@@ -1,61 +1,3 @@
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 { }
1
+ import { default as Tooltip } from './components/Tooltip.vue';
2
+ export { Tooltip };
3
+ export default Tooltip;
@@ -0,0 +1,2 @@
1
+ import { FunctionalComponent, SVGAttributes, HTMLAttributes, VNodeProps } from 'vue';
2
+ export type Icon = FunctionalComponent<SVGAttributes & HTMLAttributes & VNodeProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robuust-digital/vue-components",
3
- "version": "2.7.0",
3
+ "version": "2.7.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -122,18 +122,15 @@
122
122
  },
123
123
  "devDependencies": {
124
124
  "@modelcontextprotocol/sdk": "^1.27.1",
125
- "@rushstack/eslint-patch": "^1.14.1",
125
+ "@robuust-digital/eslint-config": "^0.5.0",
126
126
  "@tailwindcss/postcss": "^4.1.17",
127
127
  "@tailwindcss/vite": "^4.1.17",
128
128
  "@types/node": "^25.0.2",
129
- "@typescript-eslint/eslint-plugin": "^8.46.3",
130
- "@typescript-eslint/parser": "^8.46.3",
131
129
  "@vitejs/plugin-vue": "^6.0.1",
132
130
  "@vitest/coverage-v8": "^3.2.4",
133
- "@vue/eslint-config-airbnb-with-typescript": "^8.0.0",
134
131
  "@vue/test-utils": "^2.4.6",
135
- "eslint": "^8.57.1",
136
- "eslint-plugin-vue": "^9.33.0",
132
+ "eslint": "^10.0.1",
133
+ "globals": "^17.5.0",
137
134
  "jsdom": "^29.0.2",
138
135
  "postcss": "^8.5.6",
139
136
  "postcss-html": "^1.8.0",
@@ -142,9 +139,9 @@
142
139
  "stylelint-config-property-sort-order-smacss": "^11.1.0",
143
140
  "stylelint-config-standard": "^40.0.0",
144
141
  "tailwindcss": "^4.1.17",
145
- "typescript": "5.9.3",
142
+ "typescript": "6.0.3",
146
143
  "vite": "^7.2.2",
147
- "vite-plugin-dts": "^4.5.4",
144
+ "vite-plugin-dts": "^5.0.1",
148
145
  "vite-plugin-static-copy": "3.4.0",
149
146
  "vite-plugin-vue-devtools": "^8.0.3",
150
147
  "vite-svg-loader": "^5.1.0",