@maltjoy/core-vue 3.27.0 → 3.27.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.
- package/dist/components/JoyAvailability/JoyAvailability.types.d.ts +1 -2
- package/dist/components/JoyAvailability/VJoyAvailability.vue.d.ts +4 -3
- package/dist/components/JoyAvatar/JoyAvatar.types.d.ts +4 -6
- package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +3 -3
- package/dist/components/JoyAvatarsList/VJoyAvatarsList.vue.d.ts +14 -4
- package/dist/components/JoyBadge/JoyBadge.types.d.ts +1 -2
- package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +14 -8
- package/dist/components/JoyBadgeLevel/VJoyBadgeLevel.vue.d.ts +8 -4
- package/dist/components/JoyBlockSkeleton/VJoyBlockSkeleton.vue.d.ts +2 -0
- package/dist/components/JoyBottomSheet/VJoyBottomSheet.vue.d.ts +20 -7
- package/dist/components/JoyBottomSheetTrigger/VJoyBottomSheetTrigger.vue.d.ts +12 -6
- package/dist/components/JoyButton/JoyButton.types.d.ts +4 -20
- package/dist/components/JoyButton/VJoyButton.vue.d.ts +13 -13
- package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +10 -3
- package/dist/components/JoyCollapse/VJoyCollapse.vue.d.ts +10 -4
- package/dist/components/JoyCollapseItem/VJoyCollapseItem.vue.d.ts +12 -4
- package/dist/components/JoyCompanyAvatar/JoyCompanyAvatar.types.d.ts +2 -3
- package/dist/components/JoyCompanyAvatar/VJoyCompanyAvatar.vue.d.ts +6 -0
- package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +11 -6
- package/dist/components/JoyDialog/JoyDialog.types.d.ts +2 -3
- package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +30 -8
- package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +56 -20
- package/dist/components/JoyDividerCta/VJoyDividerCta.vue.d.ts +10 -3
- package/dist/components/JoyDrawer/JoyDrawer.types.d.ts +1 -2
- package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +32 -12
- package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +64 -30
- package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +3 -4
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +29 -22
- package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +2 -3
- package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +22 -21
- package/dist/components/JoyFilterBar/VJoyFilterBar.vue.d.ts +8 -2
- package/dist/components/JoyFilterBarButton/VJoyFilterBarButton.vue.d.ts +10 -2
- package/dist/components/JoyFormError/VJoyFormError.vue.d.ts +6 -2
- package/dist/components/JoyFunnel/JoyFunnel.types.d.ts +2 -4
- package/dist/components/JoyFunnel/VJoyFunnel.vue.d.ts +8 -0
- package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +2 -4
- package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +21 -9
- package/dist/components/JoyIcon/JoyIcon.types.d.ts +3 -4
- package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +9 -6
- package/dist/components/JoyIndicator/VJoyIndicator.vue.d.ts +4 -3
- package/dist/components/JoyIndicators/JoyIndicators.types.d.ts +1 -2
- package/dist/components/JoyIndicators/VJoyIndicators.vue.d.ts +9 -6
- package/dist/components/JoyInput/JoyInput.types.d.ts +2 -3
- package/dist/components/JoyInput/VJoyInput.vue.d.ts +10 -7
- package/dist/components/JoyLabel/JoyLabel.types.d.ts +2 -3
- package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +10 -7
- package/dist/components/JoyLink/JoyLink.types.d.ts +1 -2
- package/dist/components/JoyLink/VJoyLink.vue.d.ts +8 -7
- package/dist/components/JoyMenu/VJoyMenu.vue.d.ts +6 -10
- package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +16 -19
- package/dist/components/JoyPagination/VJoyPagination.vue.d.ts +14 -6
- package/dist/components/JoyPanel/JoyPanel.types.d.ts +3 -5
- package/dist/components/JoyPanel/VJoyPanel.vue.d.ts +30 -14
- package/dist/components/JoyProgressBar/JoyProgressBar.types.d.ts +2 -3
- package/dist/components/JoyProgressBar/VJoyProgressBar.vue.d.ts +5 -3
- package/dist/components/JoyRadio/JoyRadio.types.d.ts +1 -2
- package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +20 -7
- package/dist/components/JoyRadioGroup/JoyRadioGroup.types.d.ts +1 -2
- package/dist/components/JoyRadioGroup/VJoyRadioGroup.vue.d.ts +14 -6
- package/dist/components/JoyRatingStars/JoyRatingStars.types.d.ts +2 -3
- package/dist/components/JoyRatingStars/VJoyRatingStars.vue.d.ts +10 -2
- package/dist/components/JoyScreenLoader/VJoyScreenLoader.types.d.ts +1 -2
- package/dist/components/JoyScreenLoader/VJoyScreenLoader.vue.d.ts +14 -6
- package/dist/components/JoySelect/JoySelect.types.d.ts +2 -3
- package/dist/components/JoySelect/VJoySelect.vue.d.ts +9 -4
- package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +10 -65
- package/dist/components/JoySeparator/JoySeparator.types.d.ts +2 -3
- package/dist/components/JoySnackbar/JoySnackbar.types.d.ts +2 -3
- package/dist/components/JoySnackbar/VJoySnackbar.vue.d.ts +6 -2
- package/dist/components/JoySnackbar/index.d.ts +1 -1
- package/dist/components/JoySpinner/JoySpinner.types.d.ts +1 -2
- package/dist/components/JoySpinner/VJoySpinner.vue.d.ts +2 -4
- package/dist/components/JoyStep/VJoyStep.vue.d.ts +14 -2
- package/dist/components/JoyStepper/VJoyStepper.vue.d.ts +10 -2
- package/dist/components/JoyTabs/VJoyTabs.vue.d.ts +2 -0
- package/dist/components/JoyTag/JoyTag.types.d.ts +3 -5
- package/dist/components/JoyTag/VJoyTag.vue.d.ts +13 -3
- package/dist/components/JoyTagsInput/VJoyTagsInput.vue.d.ts +34 -19
- package/dist/components/JoyTagsList/JoyTagsList.types.d.ts +1 -2
- package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +9 -9
- package/dist/components/JoyTemplate/JoyTemplate.types.d.ts +1 -2
- package/dist/components/JoyTemplate/VJoyTemplate.vue.d.ts +67 -15
- package/dist/components/JoyText/VJoyText.vue.d.ts +6 -2
- package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +6 -5
- package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +6 -2
- package/dist/components/JoyTooltip/JoyTooltip.types.d.ts +0 -1
- package/dist/components/JoyUserCard/VJoyUserCard.vue.d.ts +20 -6
- package/dist/components/JoyWrapper/JoyWrapper.types.d.ts +5 -10
- package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +19 -18
- package/dist/components/main.d.ts +1 -1
- package/dist/helpers/index.d.ts +2 -2
- package/dist/joy-vue.js +2086 -2152
- package/dist/joy-vue.umd.cjs +4 -4
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +7 -10
- package/package.json +20 -24
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type TJoyAvailabilityStatus = (typeof AVAILABILITY_STATUS)[number];
|
|
1
|
+
export type TJoyAvailabilityStatus = 'AVAILABLE' | 'AVAILABLE_AND_VERIFIED' | 'NOT_AVAILABLE_WITH_DATE' | 'AVAILABLE_SOON' | 'NOT_AVAILABLE';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyAvailabilityStatus } from './JoyAvailability.types';
|
|
2
3
|
declare const _default: import("vue").DefineComponent<{
|
|
3
4
|
/** Don't fill it and you'll only have the colored dot */
|
|
4
5
|
label: StringConstructor;
|
|
5
6
|
status: {
|
|
6
|
-
type: PropType<
|
|
7
|
+
type: PropType<TJoyAvailabilityStatus>;
|
|
7
8
|
default: string;
|
|
8
9
|
};
|
|
9
10
|
/**
|
|
@@ -14,7 +15,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
15
|
/** Don't fill it and you'll only have the colored dot */
|
|
15
16
|
label: StringConstructor;
|
|
16
17
|
status: {
|
|
17
|
-
type: PropType<
|
|
18
|
+
type: PropType<TJoyAvailabilityStatus>;
|
|
18
19
|
default: string;
|
|
19
20
|
};
|
|
20
21
|
/**
|
|
@@ -22,7 +23,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
22
23
|
*/
|
|
23
24
|
isPartial: BooleanConstructor;
|
|
24
25
|
}>>, {
|
|
25
|
-
status:
|
|
26
|
+
status: TJoyAvailabilityStatus;
|
|
26
27
|
isPartial: boolean;
|
|
27
28
|
}, {}>;
|
|
28
29
|
export default _default;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TSizes } from '../../types';
|
|
2
2
|
import VJoyAvatar from './VJoyAvatar.vue';
|
|
3
|
-
export
|
|
4
|
-
export type
|
|
5
|
-
export type CompanyAvatarColors = Exclude<(typeof AVATAR_COLORS)[number], 'neutral'>;
|
|
3
|
+
export type FreelancerAvatarColors = 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'neutral';
|
|
4
|
+
export type CompanyAvatarColors = Exclude<FreelancerAvatarColors, 'neutral'>;
|
|
6
5
|
export interface AvatarColors {
|
|
7
6
|
freelancer: FreelancerAvatarColors | 'transparent';
|
|
8
7
|
company: CompanyAvatarColors;
|
|
9
8
|
}
|
|
10
9
|
/** AVATAR SIZES */
|
|
11
|
-
export type TJoyAvatarSizes = Extract<
|
|
12
|
-
export declare const AVATAR_SIZES: TJoyAvatarSizes[];
|
|
10
|
+
export type TJoyAvatarSizes = Extract<TSizes, 'large' | 'medium' | 'small'>;
|
|
13
11
|
export type TJoyAvatarProps = InstanceType<typeof VJoyAvatar>['$props'];
|
|
@@ -8,7 +8,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
8
8
|
};
|
|
9
9
|
/** Only visible if you apply a fullName but not any photoUrl. */
|
|
10
10
|
color: {
|
|
11
|
-
type: PropType<"
|
|
11
|
+
type: PropType<import("./JoyAvatar.types").FreelancerAvatarColors | "transparent">;
|
|
12
12
|
default: string;
|
|
13
13
|
};
|
|
14
14
|
/** Display the initials based on Firstname and Lastname */
|
|
@@ -37,7 +37,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
};
|
|
38
38
|
/** Only visible if you apply a fullName but not any photoUrl. */
|
|
39
39
|
color: {
|
|
40
|
-
type: PropType<"
|
|
40
|
+
type: PropType<import("./JoyAvatar.types").FreelancerAvatarColors | "transparent">;
|
|
41
41
|
default: string;
|
|
42
42
|
};
|
|
43
43
|
/** Display the initials based on Firstname and Lastname */
|
|
@@ -58,7 +58,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
58
58
|
}, {
|
|
59
59
|
link: boolean;
|
|
60
60
|
size: TJoyAvatarSizes;
|
|
61
|
-
color: "
|
|
61
|
+
color: import("./JoyAvatar.types").FreelancerAvatarColors | "transparent";
|
|
62
62
|
profile: "default" | "strategy";
|
|
63
63
|
}, {}>;
|
|
64
64
|
export default _default;
|
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
2
|
/** Renders a compact list of avatars */
|
|
3
|
-
compress:
|
|
3
|
+
compress: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
4
7
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
5
8
|
/** Renders a compact list of avatars */
|
|
6
|
-
compress:
|
|
9
|
+
compress: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
7
13
|
}>>, {
|
|
8
14
|
compress: boolean;
|
|
9
|
-
}, {}>, {
|
|
10
|
-
|
|
15
|
+
}, {}>, Readonly<{
|
|
16
|
+
/** Use this slot to inject all your VJoyAvatar. VJoyAvatars applies some style to the list. */
|
|
17
|
+
default(): any;
|
|
18
|
+
}> & {
|
|
19
|
+
/** Use this slot to inject all your VJoyAvatar. VJoyAvatars applies some style to the list. */
|
|
20
|
+
default(): any;
|
|
11
21
|
}>;
|
|
12
22
|
export default _default;
|
|
13
23
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
export type TJoyBadgeVariants = (typeof VARIANTS)[number];
|
|
1
|
+
export type TJoyBadgeVariants = 'info' | 'gray' | 'green' | 'orange' | 'red' | 'teal' | 'pink' | 'dark-blue' | 'yellow';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyBadgeVariants } from './JoyBadge.types';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
4
|
/**
|
|
4
5
|
* Display the colored bulletpoint on the left
|
|
@@ -15,11 +16,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
15
16
|
default: string;
|
|
16
17
|
};
|
|
17
18
|
/**
|
|
18
|
-
* Color of the badge. Override the color with `--badge-bg-color` and `--badge-circle-color` if needed
|
|
19
|
+
* Color of the badge. Override the color with `--badge-bg-color` and `--badge-circle-color` if needed.
|
|
19
20
|
*/
|
|
20
21
|
variant: {
|
|
21
|
-
type: PropType<
|
|
22
|
-
|
|
22
|
+
type: PropType<TJoyBadgeVariants>;
|
|
23
|
+
default: string;
|
|
23
24
|
};
|
|
24
25
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
26
|
/**
|
|
@@ -37,17 +38,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
37
38
|
default: string;
|
|
38
39
|
};
|
|
39
40
|
/**
|
|
40
|
-
* Color of the badge. Override the color with `--badge-bg-color` and `--badge-circle-color` if needed
|
|
41
|
+
* Color of the badge. Override the color with `--badge-bg-color` and `--badge-circle-color` if needed.
|
|
41
42
|
*/
|
|
42
43
|
variant: {
|
|
43
|
-
type: PropType<
|
|
44
|
-
|
|
44
|
+
type: PropType<TJoyBadgeVariants>;
|
|
45
|
+
default: string;
|
|
45
46
|
};
|
|
46
47
|
}>>, {
|
|
47
48
|
label: string;
|
|
48
49
|
bulletpoint: boolean;
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
variant: TJoyBadgeVariants;
|
|
51
|
+
}, {}>, Readonly<{
|
|
52
|
+
/** Use the slot as an alternative to "label" property. */
|
|
53
|
+
default(): any;
|
|
54
|
+
}> & {
|
|
55
|
+
/** Use the slot as an alternative to "label" property. */
|
|
56
|
+
default(): any;
|
|
51
57
|
}>;
|
|
52
58
|
export default _default;
|
|
53
59
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
-
/**
|
|
3
|
+
/** type: `TJoyBadges` */
|
|
4
4
|
type: {
|
|
5
5
|
type: PropType<"highpotential" | "high-potential-auto" | "maltlinker" | "new" | "supermalter" | "verified" | "program_high-potential">;
|
|
6
6
|
required: true;
|
|
@@ -16,7 +16,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
16
16
|
default: boolean;
|
|
17
17
|
};
|
|
18
18
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
-
/**
|
|
19
|
+
/** type: `TJoyBadges` */
|
|
20
20
|
type: {
|
|
21
21
|
type: PropType<"highpotential" | "high-potential-auto" | "maltlinker" | "new" | "supermalter" | "verified" | "program_high-potential">;
|
|
22
22
|
required: true;
|
|
@@ -34,8 +34,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
34
34
|
}>>, {
|
|
35
35
|
superMalterLevel: number;
|
|
36
36
|
visibleText: boolean;
|
|
37
|
-
}, {}>, {
|
|
38
|
-
default
|
|
37
|
+
}, {}>, Readonly<{
|
|
38
|
+
/** Override the default given label */
|
|
39
|
+
default(): any;
|
|
40
|
+
}> & {
|
|
41
|
+
/** Override the default given label */
|
|
42
|
+
default(): any;
|
|
39
43
|
}>;
|
|
40
44
|
export default _default;
|
|
41
45
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -2,6 +2,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2
2
|
/** If you want to use it properly you need to set fixed width and height */
|
|
3
3
|
circle: {
|
|
4
4
|
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
5
6
|
};
|
|
6
7
|
/** Size in any unit. Example: 50px, 100%... */
|
|
7
8
|
width: {
|
|
@@ -15,6 +16,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
15
16
|
/** If you want to use it properly you need to set fixed width and height */
|
|
16
17
|
circle: {
|
|
17
18
|
type: BooleanConstructor;
|
|
19
|
+
default: boolean;
|
|
18
20
|
};
|
|
19
21
|
/** Size in any unit. Example: 50px, 100%... */
|
|
20
22
|
width: {
|
|
@@ -16,17 +16,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
16
16
|
default: boolean;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Mostly for documentation purpose
|
|
20
20
|
*/
|
|
21
21
|
preventBodyScroll: {
|
|
22
22
|
type: BooleanConstructor;
|
|
23
23
|
default: boolean;
|
|
24
24
|
};
|
|
25
|
-
/** By default the
|
|
25
|
+
/** By default the bottom-sheet is teleported to the end of body tag */
|
|
26
26
|
teleport: {
|
|
27
27
|
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
28
28
|
default: string;
|
|
29
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* Only used for documentation purpose
|
|
32
|
+
*/
|
|
30
33
|
frozen: {
|
|
31
34
|
type: BooleanConstructor;
|
|
32
35
|
default: boolean;
|
|
@@ -49,17 +52,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
49
52
|
default: boolean;
|
|
50
53
|
};
|
|
51
54
|
/**
|
|
52
|
-
*
|
|
55
|
+
* Mostly for documentation purpose
|
|
53
56
|
*/
|
|
54
57
|
preventBodyScroll: {
|
|
55
58
|
type: BooleanConstructor;
|
|
56
59
|
default: boolean;
|
|
57
60
|
};
|
|
58
|
-
/** By default the
|
|
61
|
+
/** By default the bottom-sheet is teleported to the end of body tag */
|
|
59
62
|
teleport: {
|
|
60
63
|
type: PropType<string | import("vue").RendererElement | null | undefined>;
|
|
61
64
|
default: string;
|
|
62
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* Only used for documentation purpose
|
|
68
|
+
*/
|
|
63
69
|
frozen: {
|
|
64
70
|
type: BooleanConstructor;
|
|
65
71
|
default: boolean;
|
|
@@ -72,9 +78,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
72
78
|
preventBodyScroll: boolean;
|
|
73
79
|
teleport: string | import("vue").RendererElement | null | undefined;
|
|
74
80
|
frozen: boolean;
|
|
75
|
-
}, {}>, {
|
|
76
|
-
|
|
77
|
-
|
|
81
|
+
}, {}>, Readonly<{
|
|
82
|
+
/** Main content of the component */
|
|
83
|
+
'bottom-sheet-content': () => any;
|
|
84
|
+
/** Put whatever type of CTA you need here */
|
|
85
|
+
'bottom-sheet-cta': () => any;
|
|
86
|
+
}> & {
|
|
87
|
+
/** Main content of the component */
|
|
88
|
+
'bottom-sheet-content': () => any;
|
|
89
|
+
/** Put whatever type of CTA you need here */
|
|
90
|
+
'bottom-sheet-cta': () => any;
|
|
78
91
|
}>;
|
|
79
92
|
export default _default;
|
|
80
93
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -138,9 +138,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
138
138
|
isOpen: import("vue").Ref<boolean>;
|
|
139
139
|
moveContainer: (translationY: number) => void;
|
|
140
140
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
141
|
-
$slots: {
|
|
142
|
-
|
|
143
|
-
|
|
141
|
+
$slots: Readonly<{
|
|
142
|
+
'bottom-sheet-content': () => any;
|
|
143
|
+
'bottom-sheet-cta': () => any;
|
|
144
|
+
}> & {
|
|
145
|
+
'bottom-sheet-content': () => any;
|
|
146
|
+
'bottom-sheet-cta': () => any;
|
|
144
147
|
};
|
|
145
148
|
}) | null | undefined;
|
|
146
149
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -285,9 +288,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
285
288
|
isOpen: import("vue").Ref<boolean>;
|
|
286
289
|
moveContainer: (translationY: number) => void;
|
|
287
290
|
}> & {} & import("vue").ComponentCustomProperties & {} & {
|
|
288
|
-
$slots: {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
+
$slots: Readonly<{
|
|
292
|
+
'bottom-sheet-content': () => any;
|
|
293
|
+
'bottom-sheet-cta': () => any;
|
|
294
|
+
}> & {
|
|
295
|
+
'bottom-sheet-content': () => any;
|
|
296
|
+
'bottom-sheet-cta': () => any;
|
|
291
297
|
};
|
|
292
298
|
}) | null | undefined;
|
|
293
299
|
}>>> & {
|
|
@@ -1,20 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
* @deprecated - Use TJoyButtonVariants instead
|
|
6
|
-
*/
|
|
7
|
-
export type ButtonVariants = (typeof BUTTON_VARIANTS)[number];
|
|
8
|
-
export type TJoyButtonVariants = (typeof BUTTON_VARIANTS)[number];
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated - Use TJoyButtonSizes instead
|
|
11
|
-
*/
|
|
12
|
-
export type ButtonSizes = Exclude<(typeof SIZES)[number], 'xlarge'>;
|
|
13
|
-
export type TJoyButtonSizes = Exclude<(typeof SIZES)[number], 'xlarge'>;
|
|
14
|
-
export declare const BUTTON_SIZES: TJoyButtonSizes[];
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated - Use TJoyButtonIconPositions instead
|
|
17
|
-
*/
|
|
18
|
-
export type ButtonIconPositions = (typeof POSITIONS)[number];
|
|
19
|
-
export type TJoyButtonIconPositions = (typeof POSITIONS)[number];
|
|
20
|
-
export {};
|
|
1
|
+
import { TGenericVariants, TPositions, TSizes } from '../../types';
|
|
2
|
+
export type TJoyButtonVariants = TGenericVariants | 'main' | 'admin' | 'ghost' | 'white';
|
|
3
|
+
export type TJoyButtonSizes = Exclude<TSizes, 'xlarge'>;
|
|
4
|
+
export type TJoyButtonIconPositions = TPositions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TJoyButtonSizes } from './JoyButton.types';
|
|
1
|
+
import { TJoyButtonSizes, TJoyButtonVariants } from './JoyButton.types';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
4
|
/**
|
|
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
15
15
|
};
|
|
16
16
|
/** Left to the text or right */
|
|
17
17
|
iconPosition: {
|
|
18
|
-
type: PropType<"
|
|
18
|
+
type: PropType<import("../../types").TPositions>;
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
21
|
/**
|
|
@@ -31,15 +31,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
31
31
|
};
|
|
32
32
|
/** Button or Link color variant */
|
|
33
33
|
variant: {
|
|
34
|
-
type: PropType<
|
|
34
|
+
type: PropType<TJoyButtonVariants>;
|
|
35
35
|
default: string;
|
|
36
|
-
validator(variant: "main" | "primary" | "secondary" | "white" | "admin" | "ghost"): boolean;
|
|
37
36
|
};
|
|
38
37
|
/** Button or Link size */
|
|
39
38
|
size: {
|
|
40
39
|
type: PropType<TJoyButtonSizes>;
|
|
41
40
|
default: string;
|
|
42
|
-
validator(variant: TJoyButtonSizes): boolean;
|
|
43
41
|
};
|
|
44
42
|
}, {
|
|
45
43
|
randomId: import("vue").Ref<string | undefined>;
|
|
@@ -58,7 +56,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
58
56
|
};
|
|
59
57
|
/** Left to the text or right */
|
|
60
58
|
iconPosition: {
|
|
61
|
-
type: PropType<"
|
|
59
|
+
type: PropType<import("../../types").TPositions>;
|
|
62
60
|
default: string;
|
|
63
61
|
};
|
|
64
62
|
/**
|
|
@@ -74,24 +72,26 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
74
72
|
};
|
|
75
73
|
/** Button or Link color variant */
|
|
76
74
|
variant: {
|
|
77
|
-
type: PropType<
|
|
75
|
+
type: PropType<TJoyButtonVariants>;
|
|
78
76
|
default: string;
|
|
79
|
-
validator(variant: "main" | "primary" | "secondary" | "white" | "admin" | "ghost"): boolean;
|
|
80
77
|
};
|
|
81
78
|
/** Button or Link size */
|
|
82
79
|
size: {
|
|
83
80
|
type: PropType<TJoyButtonSizes>;
|
|
84
81
|
default: string;
|
|
85
|
-
validator(variant: TJoyButtonSizes): boolean;
|
|
86
82
|
};
|
|
87
83
|
}>>, {
|
|
88
84
|
circle: boolean;
|
|
89
85
|
size: TJoyButtonSizes;
|
|
90
86
|
loading: boolean;
|
|
91
|
-
variant:
|
|
92
|
-
iconPosition: "
|
|
93
|
-
}, {}>, {
|
|
94
|
-
|
|
87
|
+
variant: TJoyButtonVariants;
|
|
88
|
+
iconPosition: import("../../types").TPositions;
|
|
89
|
+
}, {}>, Readonly<{
|
|
90
|
+
/** Default slot for button text */
|
|
91
|
+
default(): any;
|
|
92
|
+
}> & {
|
|
93
|
+
/** Default slot for button text */
|
|
94
|
+
default(): any;
|
|
95
95
|
}>;
|
|
96
96
|
export default _default;
|
|
97
97
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -116,9 +116,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
116
116
|
checked: boolean;
|
|
117
117
|
invalid: boolean;
|
|
118
118
|
value: string;
|
|
119
|
-
}, {}>, {
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
}, {}>, Readonly<{
|
|
120
|
+
/** Default slot for checkbox label. You can as well use the label property. */
|
|
121
|
+
default(): any;
|
|
122
|
+
/** For additional content */
|
|
123
|
+
'checkbox-content': () => any;
|
|
124
|
+
}> & {
|
|
125
|
+
/** Default slot for checkbox label. You can as well use the label property. */
|
|
126
|
+
default(): any;
|
|
127
|
+
/** For additional content */
|
|
128
|
+
'checkbox-content': () => any;
|
|
122
129
|
}>;
|
|
123
130
|
export default _default;
|
|
124
131
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -4,16 +4,18 @@ declare function isItem(child: any): boolean;
|
|
|
4
4
|
declare function isOpen(item: typeof VJoyCollapseItem): any;
|
|
5
5
|
declare function getValForModel(item: typeof VJoyCollapseItem): any;
|
|
6
6
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
7
|
+
/** Open one item at a time. Works with modelValue */
|
|
7
8
|
accordion: {
|
|
8
9
|
type: BooleanConstructor;
|
|
9
10
|
default: boolean;
|
|
10
11
|
};
|
|
12
|
+
/** Use v-model to handle */
|
|
11
13
|
modelValue: {
|
|
12
14
|
type: PropType<string[]>;
|
|
13
15
|
default(): never[];
|
|
14
16
|
};
|
|
15
17
|
/**
|
|
16
|
-
* Experimental: outline mode may
|
|
18
|
+
* Experimental: outline mode may be the default one in near future
|
|
17
19
|
*/
|
|
18
20
|
mode: {
|
|
19
21
|
type: PropType<"default" | "outline">;
|
|
@@ -170,10 +172,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
170
172
|
mode: "default" | "outline";
|
|
171
173
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
172
174
|
$slots: Readonly<{
|
|
173
|
-
default
|
|
175
|
+
default(): any;
|
|
174
176
|
'collapse-header-right'?: (() => any) | undefined;
|
|
175
177
|
}> & {
|
|
176
|
-
default
|
|
178
|
+
default(): any;
|
|
177
179
|
'collapse-header-right'?: (() => any) | undefined;
|
|
178
180
|
};
|
|
179
181
|
}))[]>;
|
|
@@ -181,16 +183,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
181
183
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
182
184
|
"update:modelValue": (model: string[]) => void;
|
|
183
185
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
186
|
+
/** Open one item at a time. Works with modelValue */
|
|
184
187
|
accordion: {
|
|
185
188
|
type: BooleanConstructor;
|
|
186
189
|
default: boolean;
|
|
187
190
|
};
|
|
191
|
+
/** Use v-model to handle */
|
|
188
192
|
modelValue: {
|
|
189
193
|
type: PropType<string[]>;
|
|
190
194
|
default(): never[];
|
|
191
195
|
};
|
|
192
196
|
/**
|
|
193
|
-
* Experimental: outline mode may
|
|
197
|
+
* Experimental: outline mode may be the default one in near future
|
|
194
198
|
*/
|
|
195
199
|
mode: {
|
|
196
200
|
type: PropType<"default" | "outline">;
|
|
@@ -203,8 +207,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
203
207
|
accordion: boolean;
|
|
204
208
|
modelValue: string[];
|
|
205
209
|
}, {}>, Readonly<{
|
|
210
|
+
/** Inject your VJoyCollapseItem here */
|
|
206
211
|
default: () => any;
|
|
207
212
|
}> & {
|
|
213
|
+
/** Inject your VJoyCollapseItem here */
|
|
208
214
|
default: () => any;
|
|
209
215
|
}>;
|
|
210
216
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
declare function onToggle(): void;
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
|
+
/** Title of the collapse item */
|
|
4
5
|
header: {
|
|
5
6
|
type: StringConstructor;
|
|
6
7
|
required: true;
|
|
@@ -9,6 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
9
10
|
type: BooleanConstructor;
|
|
10
11
|
default: boolean;
|
|
11
12
|
};
|
|
13
|
+
/** Pick the icon you want to display in front of the header/title */
|
|
12
14
|
summaryIcon: {
|
|
13
15
|
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
14
16
|
};
|
|
@@ -16,7 +18,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
16
18
|
type: StringConstructor;
|
|
17
19
|
};
|
|
18
20
|
/**
|
|
19
|
-
* Experimental: outline mode may
|
|
21
|
+
* Experimental: outline mode may be the default one in near future
|
|
20
22
|
*/
|
|
21
23
|
mode: {
|
|
22
24
|
type: PropType<"default" | "outline">;
|
|
@@ -36,6 +38,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
36
38
|
"collapse-item:open": () => void;
|
|
37
39
|
"collapse-item:close": () => void;
|
|
38
40
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
41
|
+
/** Title of the collapse item */
|
|
39
42
|
header: {
|
|
40
43
|
type: StringConstructor;
|
|
41
44
|
required: true;
|
|
@@ -44,6 +47,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
44
47
|
type: BooleanConstructor;
|
|
45
48
|
default: boolean;
|
|
46
49
|
};
|
|
50
|
+
/** Pick the icon you want to display in front of the header/title */
|
|
47
51
|
summaryIcon: {
|
|
48
52
|
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
49
53
|
};
|
|
@@ -51,7 +55,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
51
55
|
type: StringConstructor;
|
|
52
56
|
};
|
|
53
57
|
/**
|
|
54
|
-
* Experimental: outline mode may
|
|
58
|
+
* Experimental: outline mode may be the default one in near future
|
|
55
59
|
*/
|
|
56
60
|
mode: {
|
|
57
61
|
type: PropType<"default" | "outline">;
|
|
@@ -64,10 +68,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
64
68
|
open: boolean;
|
|
65
69
|
mode: "default" | "outline";
|
|
66
70
|
}, {}>, Readonly<{
|
|
67
|
-
|
|
71
|
+
/** Main content, hidden by default */
|
|
72
|
+
default(): any;
|
|
73
|
+
/** Inject the content you need on the right side, between the header/title and the arrow */
|
|
68
74
|
'collapse-header-right'?: (() => any) | undefined;
|
|
69
75
|
}> & {
|
|
70
|
-
|
|
76
|
+
/** Main content, hidden by default */
|
|
77
|
+
default(): any;
|
|
78
|
+
/** Inject the content you need on the right side, between the header/title and the arrow */
|
|
71
79
|
'collapse-header-right'?: (() => any) | undefined;
|
|
72
80
|
}>;
|
|
73
81
|
export default _default;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type TJoyCompanyAvatarSizes = Extract<
|
|
3
|
-
export declare const COMPANY_AVATAR_SIZES: TJoyCompanyAvatarSizes[];
|
|
1
|
+
import { TSizes } from '../../types';
|
|
2
|
+
export type TJoyCompanyAvatarSizes = Extract<TSizes, 'large' | 'medium' | 'small'>;
|
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { TJoyCompanyAvatarSizes } from './JoyCompanyAvatar.types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
/** Inject the URL of your image. Fallback will be the icon */
|
|
4
5
|
imgSrc: StringConstructor;
|
|
6
|
+
/** Mostly for accessibility, use this to add an alternative text. */
|
|
5
7
|
imgAlt: StringConstructor;
|
|
8
|
+
/** Used as "title" attribute for the img. */
|
|
6
9
|
companyName: StringConstructor;
|
|
7
10
|
size: {
|
|
8
11
|
type: PropType<TJoyCompanyAvatarSizes>;
|
|
9
12
|
default: string;
|
|
10
13
|
};
|
|
11
14
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
/** Inject the URL of your image. Fallback will be the icon */
|
|
12
16
|
imgSrc: StringConstructor;
|
|
17
|
+
/** Mostly for accessibility, use this to add an alternative text. */
|
|
13
18
|
imgAlt: StringConstructor;
|
|
19
|
+
/** Used as "title" attribute for the img. */
|
|
14
20
|
companyName: StringConstructor;
|
|
15
21
|
size: {
|
|
16
22
|
type: PropType<TJoyCompanyAvatarSizes>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyLabelSizes } from '@/components/JoyLabel/JoyLabel.types';
|
|
2
3
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
4
|
autofocus: {
|
|
4
5
|
type: BooleanConstructor;
|
|
@@ -27,7 +28,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
27
28
|
label: StringConstructor;
|
|
28
29
|
/** Overrides the default label size. See JoyLabel stories */
|
|
29
30
|
labelSize: {
|
|
30
|
-
type: PropType<
|
|
31
|
+
type: PropType<TJoyLabelSizes>;
|
|
31
32
|
default: string;
|
|
32
33
|
};
|
|
33
34
|
/** If your component is not required, we can add a label to explicitely tell that it's not mandatory */
|
|
@@ -72,7 +73,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
72
73
|
readonly invalid: boolean;
|
|
73
74
|
readonly modelValue: number;
|
|
74
75
|
readonly autofocus: boolean;
|
|
75
|
-
readonly labelSize:
|
|
76
|
+
readonly labelSize: TJoyLabelSizes;
|
|
76
77
|
readonly requiredMark: boolean;
|
|
77
78
|
readonly min: number;
|
|
78
79
|
readonly step: number;
|
|
@@ -115,7 +116,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
115
116
|
label: StringConstructor;
|
|
116
117
|
/** Overrides the default label size. See JoyLabel stories */
|
|
117
118
|
labelSize: {
|
|
118
|
-
type: PropType<
|
|
119
|
+
type: PropType<TJoyLabelSizes>;
|
|
119
120
|
default: string;
|
|
120
121
|
};
|
|
121
122
|
/** If your component is not required, we can add a label to explicitely tell that it's not mandatory */
|
|
@@ -161,12 +162,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
161
162
|
invalid: boolean;
|
|
162
163
|
modelValue: number;
|
|
163
164
|
autofocus: boolean;
|
|
164
|
-
labelSize:
|
|
165
|
+
labelSize: TJoyLabelSizes;
|
|
165
166
|
requiredMark: boolean;
|
|
166
167
|
min: number;
|
|
167
168
|
step: number;
|
|
168
|
-
}, {}>, {
|
|
169
|
-
|
|
169
|
+
}, {}>, Readonly<{
|
|
170
|
+
/** Default slot to display a label on top of the element. You can use label property as well */
|
|
171
|
+
default(): any;
|
|
172
|
+
}> & {
|
|
173
|
+
/** Default slot to display a label on top of the element. You can use label property as well */
|
|
174
|
+
default(): any;
|
|
170
175
|
}>;
|
|
171
176
|
export default _default;
|
|
172
177
|
type __VLS_WithTemplateSlots<T, S> = T & {
|