@maltjoy/core-vue 3.5.1 → 3.5.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 +10 -6
- package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +1 -1
- package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +1 -1
- package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +1 -1
- package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +10 -6
- package/dist/components/JoyIcon/JoyIcon.types.d.ts +6 -0
- package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +32 -0
- package/dist/components/JoyInput/VJoyInput.vue.d.ts +7 -3
- package/dist/components/JoyLink/VJoyLink.vue.d.ts +6 -2
- package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +1 -1
- package/dist/components/JoySelect/VJoySelect.vue.d.ts +1 -1
- package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +1 -1
- package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +1 -1
- package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/helpers/index.d.ts +2 -1
- package/dist/joy-vue.js +638 -615
- package/dist/joy-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/tests/composables/test-components/CheckboxFormProps.vue.d.ts +1 -1
- package/dist/tests/composables/test-components/GenericFormProps.vue.d.ts +1 -1
- package/dist/tests/composables/test-components/GenericFormPropsWithLabel.vue.d.ts +1 -1
- package/dist/types/index.d.ts +5 -0
- package/joy-components.d.ts +1 -0
- package/package.json +3 -3
|
@@ -10,7 +10,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
10
10
|
default: boolean;
|
|
11
11
|
};
|
|
12
12
|
/** Name of the icon, placed before the text */
|
|
13
|
-
icon:
|
|
13
|
+
icon: {
|
|
14
|
+
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
15
|
+
};
|
|
14
16
|
/** Left to the text or right */
|
|
15
17
|
iconPosition: {
|
|
16
18
|
type: PropType<"left" | "right">;
|
|
@@ -29,7 +31,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
29
31
|
};
|
|
30
32
|
/** Button or Link color variant */
|
|
31
33
|
variant: {
|
|
32
|
-
type: PropType<"main" | "ghost" | "
|
|
34
|
+
type: PropType<"main" | "ghost" | "primary" | "secondary" | "white" | "admin">;
|
|
33
35
|
default: string;
|
|
34
36
|
validator(variant: ButtonVariants): boolean;
|
|
35
37
|
};
|
|
@@ -49,7 +51,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
49
51
|
default: boolean;
|
|
50
52
|
};
|
|
51
53
|
/** Name of the icon, placed before the text */
|
|
52
|
-
icon:
|
|
54
|
+
icon: {
|
|
55
|
+
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
56
|
+
};
|
|
53
57
|
/** Left to the text or right */
|
|
54
58
|
iconPosition: {
|
|
55
59
|
type: PropType<"left" | "right">;
|
|
@@ -68,7 +72,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
68
72
|
};
|
|
69
73
|
/** Button or Link color variant */
|
|
70
74
|
variant: {
|
|
71
|
-
type: PropType<"main" | "ghost" | "
|
|
75
|
+
type: PropType<"main" | "ghost" | "primary" | "secondary" | "white" | "admin">;
|
|
72
76
|
default: string;
|
|
73
77
|
validator(variant: ButtonVariants): boolean;
|
|
74
78
|
};
|
|
@@ -80,10 +84,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
80
84
|
};
|
|
81
85
|
}>>, {
|
|
82
86
|
circle: boolean;
|
|
83
|
-
variant: "main" | "ghost" | "
|
|
87
|
+
variant: "main" | "ghost" | "primary" | "secondary" | "white" | "admin";
|
|
88
|
+
size: ButtonSizes;
|
|
84
89
|
iconPosition: "left" | "right";
|
|
85
90
|
loading: boolean;
|
|
86
|
-
size: ButtonSizes;
|
|
87
91
|
}>, {
|
|
88
92
|
default: (_: {}) => any;
|
|
89
93
|
}>;
|
|
@@ -99,10 +99,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
99
99
|
}, {
|
|
100
100
|
value: string;
|
|
101
101
|
checked: boolean;
|
|
102
|
+
required: boolean;
|
|
102
103
|
disabled: boolean;
|
|
103
104
|
indeterminate: boolean;
|
|
104
105
|
displayFocus: boolean;
|
|
105
|
-
required: boolean;
|
|
106
106
|
}>, {
|
|
107
107
|
default: (_: {}) => any;
|
|
108
108
|
'checkbox-content': (_: {}) => any;
|
|
@@ -192,8 +192,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
192
192
|
}>> & {
|
|
193
193
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
194
194
|
}, {
|
|
195
|
-
disabled: boolean;
|
|
196
195
|
required: boolean;
|
|
196
|
+
disabled: boolean;
|
|
197
197
|
modelValue: number;
|
|
198
198
|
min: number;
|
|
199
199
|
step: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LEVELS } from '@/types';
|
|
2
2
|
export type HighlightLevels = (typeof LEVELS)[number];
|
|
3
|
-
export declare const HIGHLIGHT_LEVELS: ("info" | "error" | "
|
|
3
|
+
export declare const HIGHLIGHT_LEVELS: ("info" | "error" | "warning" | "neutral" | "success")[];
|
|
@@ -9,14 +9,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
9
9
|
type: BooleanConstructor;
|
|
10
10
|
default: boolean;
|
|
11
11
|
};
|
|
12
|
-
icon:
|
|
12
|
+
icon: {
|
|
13
|
+
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
14
|
+
};
|
|
13
15
|
level: {
|
|
14
|
-
type: PropType<"info" | "error" | "
|
|
16
|
+
type: PropType<"info" | "error" | "warning" | "neutral" | "success">;
|
|
15
17
|
default: string;
|
|
16
18
|
validator(level: HighlightLevels): boolean;
|
|
17
19
|
};
|
|
18
20
|
}, {
|
|
19
|
-
getRelevantIcon: import("vue").ComputedRef<
|
|
21
|
+
getRelevantIcon: import("vue").ComputedRef<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
20
22
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
23
|
accent: {
|
|
22
24
|
type: BooleanConstructor;
|
|
@@ -26,16 +28,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
26
28
|
type: BooleanConstructor;
|
|
27
29
|
default: boolean;
|
|
28
30
|
};
|
|
29
|
-
icon:
|
|
31
|
+
icon: {
|
|
32
|
+
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
33
|
+
};
|
|
30
34
|
level: {
|
|
31
|
-
type: PropType<"info" | "error" | "
|
|
35
|
+
type: PropType<"info" | "error" | "warning" | "neutral" | "success">;
|
|
32
36
|
default: string;
|
|
33
37
|
validator(level: HighlightLevels): boolean;
|
|
34
38
|
};
|
|
35
39
|
}>>, {
|
|
36
40
|
accent: boolean;
|
|
37
41
|
displayIcon: boolean;
|
|
38
|
-
level: "info" | "error" | "
|
|
42
|
+
level: "info" | "error" | "warning" | "neutral" | "success";
|
|
39
43
|
}>, {
|
|
40
44
|
'highlight-title': (_: {}) => any;
|
|
41
45
|
default: (_: {}) => any;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JoyIconsId } from '@maltjoy/icons/dist/joy-icons';
|
|
2
|
+
export declare const JOY_ICONS_COLORS: readonly [...("info" | "error" | "warning" | "neutral" | "success")[], "primary", "secondary", "tertiary", "quaternary", "brand-primary", "brand-secondary", "white"];
|
|
3
|
+
export type JoyIconsColors = (typeof JOY_ICONS_COLORS)[number];
|
|
4
|
+
export declare const JOY_ICONS_SIZES: readonly ["xlarge", "large", "medium", "small", "xsmall", "xxsmall"];
|
|
5
|
+
export type JoyIconSizes = (typeof JOY_ICONS_SIZES)[number];
|
|
6
|
+
export type JoyIconsNames = JoyIconsId;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
name: {
|
|
4
|
+
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
color: {
|
|
8
|
+
type: PropType<"primary" | "secondary" | "tertiary" | "quaternary" | "info" | "error" | "white" | "warning" | "neutral" | "success" | "brand-primary" | "brand-secondary">;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
size: {
|
|
12
|
+
type: PropType<"small" | "xsmall" | "xxsmall" | "medium" | "large" | "xlarge">;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
|
+
name: {
|
|
17
|
+
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
color: {
|
|
21
|
+
type: PropType<"primary" | "secondary" | "tertiary" | "quaternary" | "info" | "error" | "white" | "warning" | "neutral" | "success" | "brand-primary" | "brand-secondary">;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
size: {
|
|
25
|
+
type: PropType<"small" | "xsmall" | "xxsmall" | "medium" | "large" | "xlarge">;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
}>>, {
|
|
29
|
+
color: "primary" | "secondary" | "tertiary" | "quaternary" | "info" | "error" | "white" | "warning" | "neutral" | "success" | "brand-primary" | "brand-secondary";
|
|
30
|
+
size: "small" | "xsmall" | "xxsmall" | "medium" | "large" | "xlarge";
|
|
31
|
+
}>;
|
|
32
|
+
export default _default;
|
|
@@ -43,7 +43,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
43
43
|
default: boolean;
|
|
44
44
|
};
|
|
45
45
|
/** Add a JoyIcon / joy-icon with given name on left-side. */
|
|
46
|
-
icon:
|
|
46
|
+
icon: {
|
|
47
|
+
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
48
|
+
};
|
|
47
49
|
size: {
|
|
48
50
|
type: PropType<InputSizes>;
|
|
49
51
|
default: string;
|
|
@@ -97,7 +99,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
97
99
|
default: boolean;
|
|
98
100
|
};
|
|
99
101
|
/** Add a JoyIcon / joy-icon with given name on left-side. */
|
|
100
|
-
icon:
|
|
102
|
+
icon: {
|
|
103
|
+
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
104
|
+
};
|
|
101
105
|
size: {
|
|
102
106
|
type: PropType<InputSizes>;
|
|
103
107
|
default: string;
|
|
@@ -110,8 +114,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
110
114
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
111
115
|
}, {
|
|
112
116
|
size: InputSizes;
|
|
113
|
-
disabled: boolean;
|
|
114
117
|
required: boolean;
|
|
118
|
+
disabled: boolean;
|
|
115
119
|
invalid: boolean;
|
|
116
120
|
labelSize: "small" | "medium" | "large";
|
|
117
121
|
requiredMark: boolean;
|
|
@@ -10,7 +10,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
10
10
|
default: string;
|
|
11
11
|
validator(color: LinkColors): boolean;
|
|
12
12
|
};
|
|
13
|
-
icon:
|
|
13
|
+
icon: {
|
|
14
|
+
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
15
|
+
};
|
|
14
16
|
text: StringConstructor;
|
|
15
17
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
18
|
href: {
|
|
@@ -22,7 +24,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
22
24
|
default: string;
|
|
23
25
|
validator(color: LinkColors): boolean;
|
|
24
26
|
};
|
|
25
|
-
icon:
|
|
27
|
+
icon: {
|
|
28
|
+
type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
|
|
29
|
+
};
|
|
26
30
|
text: StringConstructor;
|
|
27
31
|
}>>, {
|
|
28
32
|
color: "teal" | "white";
|
|
@@ -67,8 +67,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
67
67
|
}>> & {
|
|
68
68
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
69
69
|
}, {
|
|
70
|
-
disabled: boolean;
|
|
71
70
|
required: boolean;
|
|
71
|
+
disabled: boolean;
|
|
72
72
|
invalid: boolean;
|
|
73
73
|
theme: "default" | "outline";
|
|
74
74
|
}>, {
|
|
@@ -70,8 +70,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
70
70
|
}>> & {
|
|
71
71
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
72
72
|
}, {
|
|
73
|
-
disabled: boolean;
|
|
74
73
|
required: boolean;
|
|
74
|
+
disabled: boolean;
|
|
75
75
|
modelValue: string;
|
|
76
76
|
invalid: boolean;
|
|
77
77
|
labelSize: "small" | "medium" | "large";
|
|
@@ -68,8 +68,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
68
68
|
"onUpdate:checked"?: ((value: string | boolean) => any) | undefined;
|
|
69
69
|
}, {
|
|
70
70
|
checked: boolean;
|
|
71
|
-
disabled: boolean;
|
|
72
71
|
required: boolean;
|
|
72
|
+
disabled: boolean;
|
|
73
73
|
multiple: boolean;
|
|
74
74
|
invalid: boolean;
|
|
75
75
|
}>, {
|
|
@@ -96,8 +96,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
96
96
|
}>> & {
|
|
97
97
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
98
98
|
}, {
|
|
99
|
-
disabled: boolean;
|
|
100
99
|
required: boolean;
|
|
100
|
+
disabled: boolean;
|
|
101
101
|
modelValue: string;
|
|
102
102
|
invalid: boolean;
|
|
103
103
|
labelSize: "small" | "medium" | "large";
|
|
@@ -58,8 +58,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
58
58
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
59
59
|
}, {
|
|
60
60
|
value: string;
|
|
61
|
-
disabled: boolean;
|
|
62
61
|
required: boolean;
|
|
62
|
+
disabled: boolean;
|
|
63
63
|
modelValue: boolean;
|
|
64
64
|
invalid: boolean;
|
|
65
65
|
}>, {
|
|
@@ -6,6 +6,7 @@ import VJoyDropdown from '@/components/JoyDropdown/VJoyDropdown.vue';
|
|
|
6
6
|
import VJoyDropdownList from '@/components/JoyDropdownList/VJoyDropdownList.vue';
|
|
7
7
|
import VJoyFormError from '@/components/JoyFormError/VJoyFormError.vue';
|
|
8
8
|
import VJoyHighlight from '@/components/JoyHighlight/VJoyHighlight.vue';
|
|
9
|
+
import VJoyIcon from '@/components/JoyIcon/VJoyIcon.vue';
|
|
9
10
|
import VJoyInput from '@/components/JoyInput/VJoyInput.vue';
|
|
10
11
|
import VJoyLabel from '@/components/JoyLabel/VJoyLabel.vue';
|
|
11
12
|
import VJoyLink from '@/components/JoyLink/VJoyLink.vue';
|
|
@@ -22,4 +23,4 @@ import VJoyWrapper from '@/components/JoyWrapper/VJoyWrapper.vue';
|
|
|
22
23
|
import VJoyTemplate from '@/components/JoyTemplate/VJoyTemplate.vue';
|
|
23
24
|
import VJoyTextarea from '@/components/JoyTextarea/VJoyTextarea.vue';
|
|
24
25
|
import VJoyToggle from '@/components/JoyToggle/VJoyToggle.vue';
|
|
25
|
-
export { VJoyBadge, VJoyButton, VJoyCheckbox, VJoyCounter, VJoyDropdown, VJoyDropdownList, VJoyFormError, VJoyHighlight, VJoyInput, VJoyLabel, VJoyLink, VJoyMultiCheckbox, VJoyPanel, VJoyPanelSection, VJoyRadio, VJoyRadioGroup, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySpinner, VJoyTemplate, VJoyTextarea, VJoyToggle, VJoyWrapper, };
|
|
26
|
+
export { VJoyBadge, VJoyButton, VJoyCheckbox, VJoyCounter, VJoyDropdown, VJoyDropdownList, VJoyFormError, VJoyHighlight, VJoyIcon, VJoyInput, VJoyLabel, VJoyLink, VJoyMultiCheckbox, VJoyPanel, VJoyPanelSection, VJoyRadio, VJoyRadioGroup, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySpinner, VJoyTemplate, VJoyTextarea, VJoyToggle, VJoyWrapper, };
|
package/dist/helpers/index.d.ts
CHANGED