@maltjoy/core-vue 3.9.3 → 3.11.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/dist/components/JoyAvailability/JoyAvailability.types.d.ts +2 -0
- package/dist/components/JoyAvailability/VJoyAvailability.vue.d.ts +28 -0
- package/dist/components/JoyAvatar/JoyAvatar.types.d.ts +13 -0
- package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +60 -0
- package/dist/components/JoyAvatarsList/VJoyAvatarsList.vue.d.ts +17 -0
- package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +2 -2
- package/dist/components/JoyButton/VJoyButton.vue.d.ts +4 -4
- package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +3 -3
- package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +12 -12
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +4 -4
- package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +1 -1
- package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +3 -3
- package/dist/components/JoyIcon/JoyIcon.types.d.ts +1 -1
- package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +6 -6
- package/dist/components/JoyInput/VJoyInput.vue.d.ts +17 -4
- package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +3 -3
- package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +4 -4
- package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +1 -1
- package/dist/components/JoySelect/VJoySelect.vue.d.ts +5 -8
- package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +1 -1
- package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +7 -7
- package/dist/components/JoyTag/JoyTag.types.d.ts +13 -0
- package/dist/components/JoyTag/VJoyTag.vue.d.ts +80 -0
- package/dist/components/JoyTagsList/JoyTagsList.types.d.ts +5 -0
- package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +44 -0
- package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +18 -5
- package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +2 -2
- package/dist/components/JoyWrapper/JoyWrapper.types.d.ts +2 -0
- package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +31 -9
- package/dist/components/components.types.d.ts +4 -0
- package/dist/components/index.d.ts +6 -1
- package/dist/composables/props.d.ts +1 -1
- package/dist/joy-vue.js +1227 -907
- package/dist/joy-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/tests/composables/test-components/CheckboxFormProps.vue.d.ts +2 -2
- package/dist/tests/composables/test-components/GenericFormProps.vue.d.ts +1 -1
- package/dist/tests/composables/test-components/GenericFormPropsWithLabel.vue.d.ts +4 -4
- package/dist/types/index.d.ts +2 -0
- package/joy-components.d.ts +5 -0
- package/package.json +5 -4
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
/** Don't fill it and you'll only have the colored dot */
|
|
4
|
+
label: StringConstructor;
|
|
5
|
+
status: {
|
|
6
|
+
type: PropType<"AVAILABLE" | "AVAILABLE_AND_VERIFIED" | "NOT_AVAILABLE_WITH_DATE" | "AVAILABLE_SOON" | "NOT_AVAILABLE">;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Partial availabilty. Not 5 days/week cases
|
|
11
|
+
*/
|
|
12
|
+
isPartial: BooleanConstructor;
|
|
13
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
+
/** Don't fill it and you'll only have the colored dot */
|
|
15
|
+
label: StringConstructor;
|
|
16
|
+
status: {
|
|
17
|
+
type: PropType<"AVAILABLE" | "AVAILABLE_AND_VERIFIED" | "NOT_AVAILABLE_WITH_DATE" | "AVAILABLE_SOON" | "NOT_AVAILABLE">;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Partial availabilty. Not 5 days/week cases
|
|
22
|
+
*/
|
|
23
|
+
isPartial: BooleanConstructor;
|
|
24
|
+
}>>, {
|
|
25
|
+
status: "AVAILABLE" | "AVAILABLE_AND_VERIFIED" | "NOT_AVAILABLE_WITH_DATE" | "AVAILABLE_SOON" | "NOT_AVAILABLE";
|
|
26
|
+
isPartial: boolean;
|
|
27
|
+
}, {}>;
|
|
28
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SIZES } from '@/types';
|
|
2
|
+
import VJoyAvatar from './VJoyAvatar.vue';
|
|
3
|
+
export declare const AVATAR_COLORS: readonly ["primary", "secondary", "tertiary", "quaternary", "neutral"];
|
|
4
|
+
export type FreelancerAvatarColors = (typeof AVATAR_COLORS)[number];
|
|
5
|
+
export type CompanyAvatarColors = Exclude<(typeof AVATAR_COLORS)[number], 'neutral'>;
|
|
6
|
+
export interface AvatarColors {
|
|
7
|
+
freelancer: FreelancerAvatarColors | 'transparent';
|
|
8
|
+
company: CompanyAvatarColors;
|
|
9
|
+
}
|
|
10
|
+
/** AVATAR SIZES */
|
|
11
|
+
export type AvatarSizes = Extract<(typeof SIZES)[number], 'large' | 'medium' | 'small'>;
|
|
12
|
+
export declare const AVATAR_SIZES: AvatarSizes[];
|
|
13
|
+
export type VJoyAvatarProps = InstanceType<typeof VJoyAvatar>['$props'];
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { AvatarSizes } from './JoyAvatar.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
/** 3 different sizes of avatar */
|
|
5
|
+
size: {
|
|
6
|
+
type: PropType<AvatarSizes>;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
/** Only visible if you apply a fullName but not any photoUrl. */
|
|
10
|
+
color: {
|
|
11
|
+
type: PropType<"primary" | "secondary" | "tertiary" | "quaternary" | "neutral" | "transparent">;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
/** Display the initials based on Firstname and Lastname */
|
|
15
|
+
fullName: StringConstructor;
|
|
16
|
+
/** Pass a photo URL that will be displayed over the fullname */
|
|
17
|
+
photoUrl: StringConstructor;
|
|
18
|
+
/** In a big avatar list, you may have to say "there are still XYZ more avatars". Use this to display the amount. */
|
|
19
|
+
totalNumber: NumberConstructor;
|
|
20
|
+
/** No functional purpose here. Only style. You need to trigger router change manually, depending on the framework you use. */
|
|
21
|
+
link: BooleanConstructor;
|
|
22
|
+
/** Use it to display "strategy" tag. */
|
|
23
|
+
profile: {
|
|
24
|
+
type: PropType<"default" | "strategy">;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
}, {
|
|
28
|
+
isAnonymous: import("vue").ComputedRef<boolean>;
|
|
29
|
+
initials: import("vue").ComputedRef<string>;
|
|
30
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
/** 3 different sizes of avatar */
|
|
32
|
+
size: {
|
|
33
|
+
type: PropType<AvatarSizes>;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
/** Only visible if you apply a fullName but not any photoUrl. */
|
|
37
|
+
color: {
|
|
38
|
+
type: PropType<"primary" | "secondary" | "tertiary" | "quaternary" | "neutral" | "transparent">;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
/** Display the initials based on Firstname and Lastname */
|
|
42
|
+
fullName: StringConstructor;
|
|
43
|
+
/** Pass a photo URL that will be displayed over the fullname */
|
|
44
|
+
photoUrl: StringConstructor;
|
|
45
|
+
/** In a big avatar list, you may have to say "there are still XYZ more avatars". Use this to display the amount. */
|
|
46
|
+
totalNumber: NumberConstructor;
|
|
47
|
+
/** No functional purpose here. Only style. You need to trigger router change manually, depending on the framework you use. */
|
|
48
|
+
link: BooleanConstructor;
|
|
49
|
+
/** Use it to display "strategy" tag. */
|
|
50
|
+
profile: {
|
|
51
|
+
type: PropType<"default" | "strategy">;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
}>>, {
|
|
55
|
+
link: boolean;
|
|
56
|
+
size: AvatarSizes;
|
|
57
|
+
color: "primary" | "secondary" | "tertiary" | "quaternary" | "neutral" | "transparent";
|
|
58
|
+
profile: "default" | "strategy";
|
|
59
|
+
}, {}>;
|
|
60
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
|
+
/** Renders a compact list of avatars */
|
|
3
|
+
compress: BooleanConstructor;
|
|
4
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5
|
+
/** Renders a compact list of avatars */
|
|
6
|
+
compress: BooleanConstructor;
|
|
7
|
+
}>>, {
|
|
8
|
+
compress: boolean;
|
|
9
|
+
}, {}>, {
|
|
10
|
+
default: (_: {}) => any;
|
|
11
|
+
}>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -19,7 +19,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
19
19
|
* Color of the badge. Override the color with `--badge-bg-color` and `--badge-circle-color` if needed
|
|
20
20
|
*/
|
|
21
21
|
variant: {
|
|
22
|
-
type: PropType<"info" | "gray" | "green" | "orange" | "red" | "teal" | "
|
|
22
|
+
type: PropType<"info" | "gray" | "green" | "orange" | "red" | "teal" | "pink" | "dark-blue" | "yellow">;
|
|
23
23
|
validator(variant: VariantsTypes): boolean;
|
|
24
24
|
};
|
|
25
25
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -41,7 +41,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
41
41
|
* Color of the badge. Override the color with `--badge-bg-color` and `--badge-circle-color` if needed
|
|
42
42
|
*/
|
|
43
43
|
variant: {
|
|
44
|
-
type: PropType<"info" | "gray" | "green" | "orange" | "red" | "teal" | "
|
|
44
|
+
type: PropType<"info" | "gray" | "green" | "orange" | "red" | "teal" | "pink" | "dark-blue" | "yellow">;
|
|
45
45
|
validator(variant: VariantsTypes): boolean;
|
|
46
46
|
};
|
|
47
47
|
}>>, {
|
|
@@ -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" | "
|
|
34
|
+
type: PropType<"main" | "primary" | "secondary" | "admin" | "ghost" | "white">;
|
|
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" | "
|
|
75
|
+
type: PropType<"main" | "primary" | "secondary" | "admin" | "ghost" | "white">;
|
|
76
76
|
default: string;
|
|
77
77
|
validator(variant: ButtonVariants): boolean;
|
|
78
78
|
};
|
|
@@ -84,10 +84,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
84
84
|
};
|
|
85
85
|
}>>, {
|
|
86
86
|
circle: boolean;
|
|
87
|
-
variant: "main" | "ghost" | "secondary" | "primary" | "white" | "admin";
|
|
88
87
|
size: ButtonSizes;
|
|
89
|
-
|
|
88
|
+
variant: "main" | "primary" | "secondary" | "admin" | "ghost" | "white";
|
|
90
89
|
loading: boolean;
|
|
90
|
+
iconPosition: "left" | "right";
|
|
91
91
|
}, {}>, {
|
|
92
92
|
default: (_: {}) => any;
|
|
93
93
|
}>;
|
|
@@ -111,12 +111,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
111
111
|
onBlur?: (() => any) | undefined;
|
|
112
112
|
"onUpdate:checked"?: ((value: boolean) => any) | undefined;
|
|
113
113
|
}, {
|
|
114
|
-
disabled: boolean;
|
|
115
|
-
value: string;
|
|
116
|
-
checked: boolean;
|
|
117
114
|
required: boolean;
|
|
115
|
+
value: string;
|
|
116
|
+
disabled: boolean;
|
|
118
117
|
indeterminate: boolean;
|
|
119
118
|
displayFocus: boolean;
|
|
119
|
+
checked: boolean;
|
|
120
120
|
invalid: boolean;
|
|
121
121
|
}, {}>, {
|
|
122
122
|
default: (_: {}) => any;
|
|
@@ -23,7 +23,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
23
23
|
label: StringConstructor;
|
|
24
24
|
/** Overrides the default label size. See JoyLabel stories */
|
|
25
25
|
labelSize: {
|
|
26
|
-
type: PropType<"small" | "
|
|
26
|
+
type: PropType<"small" | "large" | "medium">;
|
|
27
27
|
default: string;
|
|
28
28
|
};
|
|
29
29
|
/** If your component is not required, we can add a label to explicitely tell that it's not mandatory */
|
|
@@ -63,21 +63,21 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
63
63
|
};
|
|
64
64
|
}, {
|
|
65
65
|
props: {
|
|
66
|
-
readonly disabled: boolean;
|
|
67
66
|
readonly required: boolean;
|
|
67
|
+
readonly disabled: boolean;
|
|
68
68
|
readonly invalid: boolean;
|
|
69
|
-
readonly
|
|
69
|
+
readonly labelSize: "small" | "large" | "medium";
|
|
70
|
+
readonly requiredMark: boolean;
|
|
70
71
|
readonly min: number;
|
|
72
|
+
readonly modelValue: number;
|
|
71
73
|
readonly step: number;
|
|
72
|
-
readonly labelSize: "small" | "medium" | "large";
|
|
73
|
-
readonly requiredMark: boolean;
|
|
74
|
-
readonly id?: string | undefined;
|
|
75
74
|
readonly label?: string | undefined;
|
|
76
75
|
readonly name?: string | undefined;
|
|
77
|
-
readonly
|
|
76
|
+
readonly id?: string | undefined;
|
|
78
77
|
readonly optionalLabel?: string | undefined;
|
|
79
78
|
readonly labelDecrement?: string | undefined;
|
|
80
79
|
readonly labelIncrement?: string | undefined;
|
|
80
|
+
readonly max?: number | undefined;
|
|
81
81
|
readonly errorMessage?: string | undefined;
|
|
82
82
|
};
|
|
83
83
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -106,7 +106,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
106
106
|
label: StringConstructor;
|
|
107
107
|
/** Overrides the default label size. See JoyLabel stories */
|
|
108
108
|
labelSize: {
|
|
109
|
-
type: PropType<"small" | "
|
|
109
|
+
type: PropType<"small" | "large" | "medium">;
|
|
110
110
|
default: string;
|
|
111
111
|
};
|
|
112
112
|
/** If your component is not required, we can add a label to explicitely tell that it's not mandatory */
|
|
@@ -147,14 +147,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
147
147
|
}>> & {
|
|
148
148
|
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
149
149
|
}, {
|
|
150
|
-
disabled: boolean;
|
|
151
150
|
required: boolean;
|
|
151
|
+
disabled: boolean;
|
|
152
152
|
invalid: boolean;
|
|
153
|
-
|
|
153
|
+
labelSize: "small" | "large" | "medium";
|
|
154
|
+
requiredMark: boolean;
|
|
154
155
|
min: number;
|
|
156
|
+
modelValue: number;
|
|
155
157
|
step: number;
|
|
156
|
-
labelSize: "small" | "medium" | "large";
|
|
157
|
-
requiredMark: boolean;
|
|
158
158
|
}, {}>, {
|
|
159
159
|
default: (_: {}) => any;
|
|
160
160
|
}>;
|
|
@@ -35,7 +35,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
35
35
|
};
|
|
36
36
|
/** Dropdown vertical position according to the trigger */
|
|
37
37
|
direction: {
|
|
38
|
-
type: PropType<"
|
|
38
|
+
type: PropType<"up" | "down">;
|
|
39
39
|
default: string;
|
|
40
40
|
};
|
|
41
41
|
/** Dropdown horizontal justify according to the trigger */
|
|
@@ -120,7 +120,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
120
120
|
};
|
|
121
121
|
/** Dropdown vertical position according to the trigger */
|
|
122
122
|
direction: {
|
|
123
|
-
type: PropType<"
|
|
123
|
+
type: PropType<"up" | "down">;
|
|
124
124
|
default: string;
|
|
125
125
|
};
|
|
126
126
|
/** Dropdown horizontal justify according to the trigger */
|
|
@@ -176,14 +176,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
176
176
|
"onDropdown:hide"?: (() => any) | undefined;
|
|
177
177
|
}, {
|
|
178
178
|
size: DropdownListSizes;
|
|
179
|
-
options: Option[];
|
|
180
179
|
modelValue: string;
|
|
180
|
+
options: Option[];
|
|
181
181
|
width: string;
|
|
182
182
|
height: string;
|
|
183
183
|
appendTo: string | import("vue").RendererElement | null | undefined;
|
|
184
184
|
disableTeleport: boolean;
|
|
185
185
|
closeOnSelect: boolean;
|
|
186
|
-
direction: "
|
|
186
|
+
direction: "up" | "down";
|
|
187
187
|
justify: "left" | "right";
|
|
188
188
|
dropdownGap: string;
|
|
189
189
|
}, {}>, {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { LEVELS } from '@/types';
|
|
2
2
|
export type HighlightLevels = (typeof LEVELS)[number];
|
|
3
|
-
export declare const HIGHLIGHT_LEVELS: ("
|
|
3
|
+
export declare const HIGHLIGHT_LEVELS: ("neutral" | "info" | "success" | "warning" | "error")[];
|
|
@@ -13,7 +13,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
13
13
|
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
14
14
|
};
|
|
15
15
|
level: {
|
|
16
|
-
type: PropType<"
|
|
16
|
+
type: PropType<"neutral" | "info" | "success" | "warning" | "error">;
|
|
17
17
|
default: string;
|
|
18
18
|
validator(level: HighlightLevels): boolean;
|
|
19
19
|
};
|
|
@@ -32,14 +32,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
32
32
|
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
33
33
|
};
|
|
34
34
|
level: {
|
|
35
|
-
type: PropType<"
|
|
35
|
+
type: PropType<"neutral" | "info" | "success" | "warning" | "error">;
|
|
36
36
|
default: string;
|
|
37
37
|
validator(level: HighlightLevels): boolean;
|
|
38
38
|
};
|
|
39
39
|
}>>, {
|
|
40
40
|
accent: boolean;
|
|
41
41
|
displayIcon: boolean;
|
|
42
|
-
level: "
|
|
42
|
+
level: "neutral" | "info" | "success" | "warning" | "error";
|
|
43
43
|
}, {}>, {
|
|
44
44
|
'highlight-title': (_: {}) => any;
|
|
45
45
|
default: (_: {}) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JoyIconsId } from '@maltjoy/icons';
|
|
2
|
-
export declare const JOY_ICONS_COLORS: readonly [...("
|
|
2
|
+
export declare const JOY_ICONS_COLORS: readonly [...("neutral" | "info" | "success" | "warning" | "error")[], "primary", "secondary", "tertiary", "quaternary", "brand-primary", "brand-secondary", "white"];
|
|
3
3
|
export type JoyIconsColors = (typeof JOY_ICONS_COLORS)[number];
|
|
4
4
|
export declare const JOY_ICONS_SIZES: readonly ["xlarge", "large", "medium", "small", "xsmall", "xxsmall"];
|
|
5
5
|
export type JoyIconSizes = (typeof JOY_ICONS_SIZES)[number];
|
|
@@ -5,11 +5,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
5
5
|
required: true;
|
|
6
6
|
};
|
|
7
7
|
color: {
|
|
8
|
-
type: PropType<"
|
|
8
|
+
type: PropType<"primary" | "secondary" | "tertiary" | "quaternary" | "neutral" | "info" | "white" | "success" | "warning" | "error" | "brand-primary" | "brand-secondary">;
|
|
9
9
|
default: string;
|
|
10
10
|
};
|
|
11
11
|
size: {
|
|
12
|
-
type: PropType<"small" | "
|
|
12
|
+
type: PropType<"small" | "xlarge" | "large" | "medium" | "xsmall" | "xxsmall">;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
15
15
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -18,15 +18,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
required: true;
|
|
19
19
|
};
|
|
20
20
|
color: {
|
|
21
|
-
type: PropType<"
|
|
21
|
+
type: PropType<"primary" | "secondary" | "tertiary" | "quaternary" | "neutral" | "info" | "white" | "success" | "warning" | "error" | "brand-primary" | "brand-secondary">;
|
|
22
22
|
default: string;
|
|
23
23
|
};
|
|
24
24
|
size: {
|
|
25
|
-
type: PropType<"small" | "
|
|
25
|
+
type: PropType<"small" | "xlarge" | "large" | "medium" | "xsmall" | "xxsmall">;
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
28
|
}>>, {
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
size: "small" | "xlarge" | "large" | "medium" | "xsmall" | "xxsmall";
|
|
30
|
+
color: "primary" | "secondary" | "tertiary" | "quaternary" | "neutral" | "info" | "white" | "success" | "warning" | "error" | "brand-primary" | "brand-secondary";
|
|
31
31
|
}, {}>;
|
|
32
32
|
export default _default;
|
|
@@ -24,7 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
24
24
|
label: StringConstructor;
|
|
25
25
|
/** Overrides the default label size. See JoyLabel stories */
|
|
26
26
|
labelSize: {
|
|
27
|
-
type: PropType<"small" | "
|
|
27
|
+
type: PropType<"small" | "large" | "medium">;
|
|
28
28
|
default: string;
|
|
29
29
|
};
|
|
30
30
|
/** If your component is not required, we can add a label to explicitely tell that it's not mandatory */
|
|
@@ -37,6 +37,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
37
37
|
modelValue: {
|
|
38
38
|
type: (StringConstructor | NumberConstructor)[];
|
|
39
39
|
};
|
|
40
|
+
modelModifiers: {
|
|
41
|
+
default: () => {
|
|
42
|
+
lazy: boolean;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
40
45
|
/** Display a cross icon on the right that enables to clear the field */
|
|
41
46
|
clearable: {
|
|
42
47
|
type: BooleanConstructor;
|
|
@@ -81,7 +86,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
81
86
|
label: StringConstructor;
|
|
82
87
|
/** Overrides the default label size. See JoyLabel stories */
|
|
83
88
|
labelSize: {
|
|
84
|
-
type: PropType<"small" | "
|
|
89
|
+
type: PropType<"small" | "large" | "medium">;
|
|
85
90
|
default: string;
|
|
86
91
|
};
|
|
87
92
|
/** If your component is not required, we can add a label to explicitely tell that it's not mandatory */
|
|
@@ -94,6 +99,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
94
99
|
modelValue: {
|
|
95
100
|
type: (StringConstructor | NumberConstructor)[];
|
|
96
101
|
};
|
|
102
|
+
modelModifiers: {
|
|
103
|
+
default: () => {
|
|
104
|
+
lazy: boolean;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
97
107
|
/** Display a cross icon on the right that enables to clear the field */
|
|
98
108
|
clearable: {
|
|
99
109
|
type: BooleanConstructor;
|
|
@@ -115,13 +125,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
115
125
|
/** Adds a legend like symbol on the right of the component. Made for number based values */
|
|
116
126
|
unit: StringConstructor;
|
|
117
127
|
}>>, {
|
|
118
|
-
disabled: boolean;
|
|
119
128
|
type: string;
|
|
120
129
|
size: InputSizes;
|
|
121
130
|
required: boolean;
|
|
131
|
+
disabled: boolean;
|
|
122
132
|
invalid: boolean;
|
|
123
|
-
labelSize: "small" | "
|
|
133
|
+
labelSize: "small" | "large" | "medium";
|
|
124
134
|
requiredMark: boolean;
|
|
135
|
+
modelModifiers: {
|
|
136
|
+
lazy: boolean;
|
|
137
|
+
};
|
|
125
138
|
clearable: boolean;
|
|
126
139
|
}, {}>, {
|
|
127
140
|
default: (_: {}) => any;
|
|
@@ -2,7 +2,7 @@ import { PropType } from 'vue';
|
|
|
2
2
|
import { LabelSizes } from './JoyLabel.types';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
4
|
size: {
|
|
5
|
-
type: PropType<"small" | "
|
|
5
|
+
type: PropType<"small" | "large" | "medium">;
|
|
6
6
|
default: string;
|
|
7
7
|
validator(size: LabelSizes): boolean;
|
|
8
8
|
};
|
|
@@ -20,7 +20,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
20
20
|
text: StringConstructor;
|
|
21
21
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
22
|
size: {
|
|
23
|
-
type: PropType<"small" | "
|
|
23
|
+
type: PropType<"small" | "large" | "medium">;
|
|
24
24
|
default: string;
|
|
25
25
|
validator(size: LabelSizes): boolean;
|
|
26
26
|
};
|
|
@@ -37,7 +37,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
37
37
|
};
|
|
38
38
|
text: StringConstructor;
|
|
39
39
|
}>>, {
|
|
40
|
-
size: "small" | "
|
|
40
|
+
size: "small" | "large" | "medium";
|
|
41
41
|
required: boolean;
|
|
42
42
|
tagName: "label" | "legend";
|
|
43
43
|
}, {}>, {
|
|
@@ -31,7 +31,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
31
31
|
};
|
|
32
32
|
label: StringConstructor;
|
|
33
33
|
labelSize: {
|
|
34
|
-
type: PropType<"small" | "
|
|
34
|
+
type: PropType<"small" | "large" | "medium">;
|
|
35
35
|
default: string;
|
|
36
36
|
};
|
|
37
37
|
optionalLabel: StringConstructor;
|
|
@@ -58,7 +58,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
58
58
|
};
|
|
59
59
|
label: StringConstructor;
|
|
60
60
|
labelSize: {
|
|
61
|
-
type: PropType<"small" | "
|
|
61
|
+
type: PropType<"small" | "large" | "medium">;
|
|
62
62
|
default: string;
|
|
63
63
|
};
|
|
64
64
|
optionalLabel: StringConstructor;
|
|
@@ -69,9 +69,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
69
69
|
}>> & {
|
|
70
70
|
"onUpdate:value"?: ((value: any[]) => any) | undefined;
|
|
71
71
|
}, {
|
|
72
|
-
value: any[];
|
|
73
72
|
required: boolean;
|
|
74
|
-
|
|
73
|
+
value: any[];
|
|
74
|
+
labelSize: "small" | "large" | "medium";
|
|
75
75
|
requiredMark: boolean;
|
|
76
76
|
}, {}>, {
|
|
77
77
|
checkbox: (_: Option) => any;
|
|
@@ -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
|
}, {}>, {
|
|
@@ -21,7 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
21
21
|
};
|
|
22
22
|
label: StringConstructor;
|
|
23
23
|
labelSize: {
|
|
24
|
-
type: PropType<"small" | "
|
|
24
|
+
type: PropType<"small" | "large" | "medium">;
|
|
25
25
|
};
|
|
26
26
|
optionalLabel: StringConstructor;
|
|
27
27
|
requiredMark: {
|
|
@@ -29,8 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
29
29
|
default: boolean;
|
|
30
30
|
};
|
|
31
31
|
modelValue: {
|
|
32
|
-
type: StringConstructor;
|
|
33
|
-
default: string;
|
|
32
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
34
33
|
};
|
|
35
34
|
size: {
|
|
36
35
|
type: PropType<SelectSizes>;
|
|
@@ -59,7 +58,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
59
58
|
};
|
|
60
59
|
label: StringConstructor;
|
|
61
60
|
labelSize: {
|
|
62
|
-
type: PropType<"small" | "
|
|
61
|
+
type: PropType<"small" | "large" | "medium">;
|
|
63
62
|
};
|
|
64
63
|
optionalLabel: StringConstructor;
|
|
65
64
|
requiredMark: {
|
|
@@ -67,8 +66,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
67
66
|
default: boolean;
|
|
68
67
|
};
|
|
69
68
|
modelValue: {
|
|
70
|
-
type: StringConstructor;
|
|
71
|
-
default: string;
|
|
69
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
72
70
|
};
|
|
73
71
|
size: {
|
|
74
72
|
type: PropType<SelectSizes>;
|
|
@@ -77,11 +75,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
77
75
|
}>> & {
|
|
78
76
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
79
77
|
}, {
|
|
80
|
-
disabled: boolean;
|
|
81
78
|
size: SelectSizes;
|
|
82
79
|
required: boolean;
|
|
80
|
+
disabled: boolean;
|
|
83
81
|
invalid: boolean;
|
|
84
|
-
modelValue: string;
|
|
85
82
|
requiredMark: boolean;
|
|
86
83
|
}, {}>, {
|
|
87
84
|
'select-label': (_: {}) => any;
|
|
@@ -67,9 +67,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
67
67
|
}>> & {
|
|
68
68
|
"onUpdate:checked"?: ((value: string | boolean) => any) | undefined;
|
|
69
69
|
}, {
|
|
70
|
+
required: boolean;
|
|
70
71
|
disabled: boolean;
|
|
71
72
|
checked: boolean;
|
|
72
|
-
required: boolean;
|
|
73
73
|
invalid: boolean;
|
|
74
74
|
multiple: boolean;
|
|
75
75
|
}, {}>, {
|
|
@@ -22,7 +22,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
22
|
};
|
|
23
23
|
id: StringConstructor;
|
|
24
24
|
value: {
|
|
25
|
-
type: (
|
|
25
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
26
26
|
default: null;
|
|
27
27
|
};
|
|
28
28
|
multiple: {
|
|
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
39
39
|
};
|
|
40
40
|
label: StringConstructor;
|
|
41
41
|
labelSize: {
|
|
42
|
-
type: PropType<"small" | "
|
|
42
|
+
type: PropType<"small" | "large" | "medium">;
|
|
43
43
|
default: string;
|
|
44
44
|
};
|
|
45
45
|
optionalLabel: StringConstructor;
|
|
@@ -57,7 +57,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
57
57
|
};
|
|
58
58
|
id: StringConstructor;
|
|
59
59
|
value: {
|
|
60
|
-
type: (
|
|
60
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
61
61
|
default: null;
|
|
62
62
|
};
|
|
63
63
|
multiple: {
|
|
@@ -74,7 +74,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
74
|
};
|
|
75
75
|
label: StringConstructor;
|
|
76
76
|
labelSize: {
|
|
77
|
-
type: PropType<"small" | "
|
|
77
|
+
type: PropType<"small" | "large" | "medium">;
|
|
78
78
|
default: string;
|
|
79
79
|
};
|
|
80
80
|
optionalLabel: StringConstructor;
|
|
@@ -85,11 +85,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
85
|
}>> & {
|
|
86
86
|
"onUpdate:value"?: ((value: string | any[]) => any) | undefined;
|
|
87
87
|
}, {
|
|
88
|
-
value: string | unknown[];
|
|
89
88
|
required: boolean;
|
|
90
|
-
|
|
91
|
-
labelSize: "small" | "
|
|
89
|
+
value: string | unknown[];
|
|
90
|
+
labelSize: "small" | "large" | "medium";
|
|
92
91
|
requiredMark: boolean;
|
|
92
|
+
multiple: boolean;
|
|
93
93
|
fullWidth: boolean;
|
|
94
94
|
}, {}>;
|
|
95
95
|
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SIZES } from '@/types';
|
|
2
|
+
import VJoyTag from './VJoyTag.vue';
|
|
3
|
+
export declare const TAG_VARIANTS: readonly ["important", "inactive", "pending", "pricing", "primary", "secondary"];
|
|
4
|
+
export type TagVariants = (typeof TAG_VARIANTS)[number];
|
|
5
|
+
export type TagSizes = Exclude<(typeof SIZES)[number], 'xlarge' | 'xxsmall'>;
|
|
6
|
+
export declare const TAG_SIZES: TagSizes[];
|
|
7
|
+
export type VJoyTagProps = InstanceType<typeof VJoyTag>['$props'];
|
|
8
|
+
export interface IJoyTagSelected {
|
|
9
|
+
selected: boolean;
|
|
10
|
+
value: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IJoyTag extends VJoyTagProps {
|
|
13
|
+
}
|