@maltjoy/core-vue 3.9.1 → 3.9.2
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/dist/components/JoyButton/VJoyButton.vue.d.ts +3 -3
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +7 -0
- package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +3 -3
- package/dist/components/JoyInput/VJoyInput.vue.d.ts +9 -2
- package/dist/composables/helpers.d.ts +9 -0
- package/dist/composables/index.d.ts +2 -1
- package/dist/helpers/index.d.ts +2 -0
- package/dist/joy-vue.js +902 -854
- package/dist/joy-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/tests/helpers/FocusOnFormElement.vue.d.ts +6 -0
- package/package.json +3 -3
|
@@ -31,7 +31,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
31
31
|
};
|
|
32
32
|
/** Button or Link color variant */
|
|
33
33
|
variant: {
|
|
34
|
-
type: PropType<"main" | "ghost" | "
|
|
34
|
+
type: PropType<"main" | "ghost" | "secondary" | "primary" | "white" | "admin">;
|
|
35
35
|
default: string;
|
|
36
36
|
validator(variant: ButtonVariants): boolean;
|
|
37
37
|
};
|
|
@@ -72,7 +72,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
72
72
|
};
|
|
73
73
|
/** Button or Link color variant */
|
|
74
74
|
variant: {
|
|
75
|
-
type: PropType<"main" | "ghost" | "
|
|
75
|
+
type: PropType<"main" | "ghost" | "secondary" | "primary" | "white" | "admin">;
|
|
76
76
|
default: string;
|
|
77
77
|
validator(variant: ButtonVariants): boolean;
|
|
78
78
|
};
|
|
@@ -84,7 +84,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
84
84
|
};
|
|
85
85
|
}>>, {
|
|
86
86
|
circle: boolean;
|
|
87
|
-
variant: "main" | "ghost" | "
|
|
87
|
+
variant: "main" | "ghost" | "secondary" | "primary" | "white" | "admin";
|
|
88
88
|
size: ButtonSizes;
|
|
89
89
|
iconPosition: "left" | "right";
|
|
90
90
|
loading: boolean;
|
|
@@ -86,6 +86,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
86
86
|
default: string;
|
|
87
87
|
};
|
|
88
88
|
}, {
|
|
89
|
+
coords: {
|
|
90
|
+
position?: string | undefined;
|
|
91
|
+
zIndex?: string | undefined;
|
|
92
|
+
left: string;
|
|
93
|
+
top: string;
|
|
94
|
+
right: string;
|
|
95
|
+
};
|
|
89
96
|
showDropdownList: import("vue").Ref<boolean>;
|
|
90
97
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
91
98
|
"update:modelValue": (value: string | undefined) => void;
|
|
@@ -5,7 +5,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
required: true;
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
|
-
type: PropType<"
|
|
8
|
+
type: PropType<"secondary" | "primary" | "tertiary" | "quaternary" | "info" | "error" | "white" | "warning" | "neutral" | "success" | "brand-primary" | "brand-secondary">;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
11
|
size: {
|
|
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
required: true;
|
|
19
19
|
};
|
|
20
20
|
color: {
|
|
21
|
-
type: PropType<"
|
|
21
|
+
type: PropType<"secondary" | "primary" | "tertiary" | "quaternary" | "info" | "error" | "white" | "warning" | "neutral" | "success" | "brand-primary" | "brand-secondary">;
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
24
|
size: {
|
|
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
28
|
}>>, {
|
|
29
|
-
color: "
|
|
29
|
+
color: "secondary" | "primary" | "tertiary" | "quaternary" | "info" | "error" | "white" | "warning" | "neutral" | "success" | "brand-primary" | "brand-secondary";
|
|
30
30
|
size: "small" | "xsmall" | "xxsmall" | "medium" | "large" | "xlarge";
|
|
31
31
|
}, {}>;
|
|
32
32
|
export default _default;
|
|
@@ -51,7 +51,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
51
51
|
default: string;
|
|
52
52
|
validator(size: InputSizes): boolean;
|
|
53
53
|
};
|
|
54
|
-
type:
|
|
54
|
+
type: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
55
58
|
/** Adds a legend like symbol on the right of the component. Made for number based values */
|
|
56
59
|
unit: StringConstructor;
|
|
57
60
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -105,11 +108,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
105
108
|
default: string;
|
|
106
109
|
validator(size: InputSizes): boolean;
|
|
107
110
|
};
|
|
108
|
-
type:
|
|
111
|
+
type: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
109
115
|
/** Adds a legend like symbol on the right of the component. Made for number based values */
|
|
110
116
|
unit: StringConstructor;
|
|
111
117
|
}>>, {
|
|
112
118
|
disabled: boolean;
|
|
119
|
+
type: string;
|
|
113
120
|
size: InputSizes;
|
|
114
121
|
required: boolean;
|
|
115
122
|
invalid: boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* Check if your current Node is a child of an Overlay component (dialog, drawer...)
|
|
4
|
+
*
|
|
5
|
+
* @param node - Vue ref of the node you want to check.
|
|
6
|
+
*/
|
|
7
|
+
export declare function useCheckIfParentIsOverlay(node: Ref): {
|
|
8
|
+
isInOverlay: Ref<boolean>;
|
|
9
|
+
};
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import { JoyIconsNames } from '@/components/JoyIcon/JoyIcon.types';
|
|
2
|
+
import { Ref } from 'vue';
|
|
2
3
|
import { LEVELS } from '../types';
|
|
3
4
|
export declare function iconLevel(level: (typeof LEVELS)[number]): JoyIconsNames;
|
|
5
|
+
export declare function focusOnFirstFocusableFormField(root: Ref): any;
|