@maltjoy/core-vue 5.14.0 → 5.15.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/JoyButton/JoyButton.types.d.ts +1 -1
- package/dist/components/JoyIcon/JoyIcon.types.d.ts +1 -1
- package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +4 -4
- package/dist/components/JoyInput/JoyInput.types.d.ts +4 -0
- package/dist/components/JoyInput/VJoyInput.vue.d.ts +4 -0
- package/dist/components/JoyInputPassword/VJoyInputPassword.vue.d.ts +31 -0
- package/dist/components/components.types.d.ts +1 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/core-vue.js +1568 -1499
- package/dist/core-vue.umd.cjs +2 -2
- package/dist/joy-core-vue-manifest.json +6 -5
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +1 -1
- package/joy-components.d.ts +1 -0
- package/package.json +4 -4
|
@@ -2,5 +2,5 @@ import { TGenericVariants, TPositions, TSizes } from '../../types';
|
|
|
2
2
|
export type TJoyDefaultButtonVariants = TGenericVariants | 'main' | 'admin' | 'ghost';
|
|
3
3
|
export type TJoyAIButtonVariants = `${TJoyDefaultButtonVariants}-ai`;
|
|
4
4
|
export type TJoyButtonVariants = TJoyDefaultButtonVariants | Exclude<TJoyAIButtonVariants, 'admin-ai'>;
|
|
5
|
-
export type TJoyButtonSizes =
|
|
5
|
+
export type TJoyButtonSizes = Extract<TSizes, 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large'>;
|
|
6
6
|
export type TJoyButtonIconPositions = TPositions;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JoyIconsId } from '@maltjoy/icons';
|
|
2
2
|
import { TSizes, TLevels } from '../../types';
|
|
3
3
|
export type TJoyIconsColors = TLevels | 'neutral-50' | 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'brand-primary' | 'brand-secondary' | 'white';
|
|
4
|
-
export type TJoyIconSizes = TSizes
|
|
4
|
+
export type TJoyIconSizes = Extract<TSizes, 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge'>;
|
|
5
5
|
export type TJoyIconsNames = JoyIconsId;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
import { TJoyIconsColors } from './JoyIcon.types';
|
|
2
|
+
import { TJoyIconsColors, TJoyIconSizes } from './JoyIcon.types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
4
|
ariaLabel: {
|
|
5
5
|
type: StringConstructor;
|
|
@@ -24,7 +24,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
24
24
|
};
|
|
25
25
|
/** Use `TJoyIconSizes` */
|
|
26
26
|
size: {
|
|
27
|
-
type: PropType<
|
|
27
|
+
type: PropType<TJoyIconSizes>;
|
|
28
28
|
default: string;
|
|
29
29
|
};
|
|
30
30
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -51,12 +51,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
51
51
|
};
|
|
52
52
|
/** Use `TJoyIconSizes` */
|
|
53
53
|
size: {
|
|
54
|
-
type: PropType<
|
|
54
|
+
type: PropType<TJoyIconSizes>;
|
|
55
55
|
default: string;
|
|
56
56
|
};
|
|
57
57
|
}>> & Readonly<{}>, {
|
|
58
58
|
color: TJoyIconsColors;
|
|
59
59
|
tabIndex: number;
|
|
60
|
-
size:
|
|
60
|
+
size: TJoyIconSizes;
|
|
61
61
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
62
62
|
export default _default;
|
|
@@ -24,6 +24,10 @@ export interface VJoyInputProps {
|
|
|
24
24
|
/** Add a JoyIcon / joy-icon with given name on left-side. */
|
|
25
25
|
icon?: TJoyIconsNames;
|
|
26
26
|
size?: TJoyInputSizes;
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated Password mode is deprecated on VJoyInput.
|
|
29
|
+
* Use VJoyInputPassword for password fields and toggle behavior.
|
|
30
|
+
*/
|
|
27
31
|
type?: string;
|
|
28
32
|
/** Adds a legend like symbol on the right of the component. Made for number based values */
|
|
29
33
|
unit?: string;
|
|
@@ -22,9 +22,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<VJ
|
|
|
22
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
|
|
23
23
|
/** DEPRECATED. Default slot to display a label on top of the element. You can use label property as well */
|
|
24
24
|
default?: (() => any) | undefined;
|
|
25
|
+
/** Slot used to inject a custom action on the right side of the input wrapper. */
|
|
26
|
+
'right-action'?: (() => any) | undefined;
|
|
25
27
|
}> & {
|
|
26
28
|
/** DEPRECATED. Default slot to display a label on top of the element. You can use label property as well */
|
|
27
29
|
default?: (() => any) | undefined;
|
|
30
|
+
/** Slot used to inject a custom action on the right side of the input wrapper. */
|
|
31
|
+
'right-action'?: (() => any) | undefined;
|
|
28
32
|
}>;
|
|
29
33
|
export default _default;
|
|
30
34
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { VJoyInputProps } from '../JoyInput/JoyInput.types';
|
|
2
|
+
type VJoyInputPasswordProps = Omit<VJoyInputProps, 'type' | 'clearable' | 'clearAriaLabel' | 'readonly'>;
|
|
3
|
+
declare function focus(): void;
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<VJoyInputPasswordProps, {
|
|
5
|
+
focus: typeof focus;
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: string) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<VJoyInputPasswordProps> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
invalid: boolean;
|
|
12
|
+
name: string;
|
|
13
|
+
required: boolean;
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
autofocus: boolean;
|
|
16
|
+
labelSize: import("../components.types.js").TJoyLabelSizes;
|
|
17
|
+
requiredMark: boolean;
|
|
18
|
+
modelModifiers: Partial<Record<"number" | "trim" | "lazy", boolean>>;
|
|
19
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
|
|
20
|
+
/** Slot used to inject password requirements. Use VJoyPasswordRequirement component to display the requirements. */
|
|
21
|
+
'password-requirements'?: (() => any) | undefined;
|
|
22
|
+
}> & {
|
|
23
|
+
/** Slot used to inject password requirements. Use VJoyPasswordRequirement component to display the requirements. */
|
|
24
|
+
'password-requirements'?: (() => any) | undefined;
|
|
25
|
+
}>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -21,6 +21,7 @@ export * from './JoyLink/JoyLink.types';
|
|
|
21
21
|
export * from './JoyMenu/JoyMenu.types';
|
|
22
22
|
export * from './JoyMenuItem/JoyMenuItem.types';
|
|
23
23
|
export * from './JoyPanel/JoyPanel.types';
|
|
24
|
+
export * from './JoyPasswordRequirement/JoyPasswordRequirement.types';
|
|
24
25
|
export * from './JoyProgressBar/JoyProgressBar.types';
|
|
25
26
|
export * from './JoyProductTour/JoyProductTour.types';
|
|
26
27
|
export * from './JoyRadio/JoyRadio.types';
|
|
@@ -34,6 +34,7 @@ import { default as VJoyIndicator } from './JoyIndicator/VJoyIndicator.vue';
|
|
|
34
34
|
import { default as VJoyIndicators } from './JoyIndicators/VJoyIndicators.vue';
|
|
35
35
|
import { default as VJoyInput } from './JoyInput/VJoyInput.vue';
|
|
36
36
|
import { default as VJoyInputDigit } from './JoyInputDigit/VJoyInputDigit.vue';
|
|
37
|
+
import { default as VJoyInputPassword } from './JoyInputPassword/VJoyInputPassword.vue';
|
|
37
38
|
import { default as VJoyLabel } from './JoyLabel/VJoyLabel.vue';
|
|
38
39
|
import { default as VJoyLink } from './JoyLink/VJoyLink.vue';
|
|
39
40
|
import { default as VJoyListItem } from './JoyListItem/VJoyListItem.vue';
|
|
@@ -75,4 +76,4 @@ import { default as VJoyUserCard } from './JoyUserCard/VJoyUserCard.vue';
|
|
|
75
76
|
import { default as VJoyWalkthrough } from './JoyWalkthrough/VJoyWalkthrough.vue';
|
|
76
77
|
import { default as VJoyWalkthroughTrigger } from './JoyWalkthroughTrigger/VJoyWalkthroughTrigger.vue';
|
|
77
78
|
import { default as VJoyWrapper } from './JoyWrapper/VJoyWrapper.vue';
|
|
78
|
-
export { VJoyAdminBanner, VJoyAvailability, VJoyAvatar, VJoyAvatarsList, VJoyBadge, VJoyBadgeLevel, VJoyBlockSkeleton, VJoyBottomSheet, VJoyBottomSheetTrigger, VJoyButton, VJoyCheckbox, VJoyCollapse, VJoyCollapseItem, VJoyCompanyAvatar, VJoyDialog, VJoyDialogTrigger, VJoyDot, VJoyDrawer, VJoyDrawerTrigger, VJoyDropdown, VJoyDropdownList, VJoyDropzone, VJoyFilterBar, VJoyFilterBarButton, VJoyFormError, VJoyFormFieldSkeleton, VJoyFormGroup, VJoyFunnel, VJoyFunnelFooter, VJoyFunnelHeader, VJoyHighlight, VJoyIcon, VJoyIndicator, VJoyIndicators, VJoyInput, VJoyInputDigit, VJoyLabel, VJoyLink, VJoyListItem, VJoyMenu, VJoyMenuItem, VJoyMultiCheckbox, VJoyPagination, VJoyPanel, VJoyPanelSection, VJoyPasswordRequirement, VJoyProductTour, VJoyProductTourTrigger, VJoyProgressBar, VJoyRadio, VJoyRadioGroup, VJoyRatingStars, VJoyScreenLoader, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySeparator, VJoySnackbar, VJoySpinner, VJoyStep, VJoyStepper, VJoyTab, VJoyTabs, VJoyTag, VJoyTagsInput, VJoyTagsList, VJoyTemplate, VJoyTemplateShape, VJoyText, VJoyTextarea, VJoyTitleBrand, VJoyToggle, VJoyTooltip, VJoyUserCard, VJoyWalkthrough, VJoyWalkthroughTrigger, VJoyWrapper, };
|
|
79
|
+
export { VJoyAdminBanner, VJoyAvailability, VJoyAvatar, VJoyAvatarsList, VJoyBadge, VJoyBadgeLevel, VJoyBlockSkeleton, VJoyBottomSheet, VJoyBottomSheetTrigger, VJoyButton, VJoyCheckbox, VJoyCollapse, VJoyCollapseItem, VJoyCompanyAvatar, VJoyDialog, VJoyDialogTrigger, VJoyDot, VJoyDrawer, VJoyDrawerTrigger, VJoyDropdown, VJoyDropdownList, VJoyDropzone, VJoyFilterBar, VJoyFilterBarButton, VJoyFormError, VJoyFormFieldSkeleton, VJoyFormGroup, VJoyFunnel, VJoyFunnelFooter, VJoyFunnelHeader, VJoyHighlight, VJoyIcon, VJoyIndicator, VJoyIndicators, VJoyInput, VJoyInputDigit, VJoyInputPassword, VJoyLabel, VJoyLink, VJoyListItem, VJoyMenu, VJoyMenuItem, VJoyMultiCheckbox, VJoyPagination, VJoyPanel, VJoyPanelSection, VJoyPasswordRequirement, VJoyProductTour, VJoyProductTourTrigger, VJoyProgressBar, VJoyRadio, VJoyRadioGroup, VJoyRatingStars, VJoyScreenLoader, VJoySelect, VJoySelectableItem, VJoySelectableItemGroup, VJoySeparator, VJoySnackbar, VJoySpinner, VJoyStep, VJoyStepper, VJoyTab, VJoyTabs, VJoyTag, VJoyTagsInput, VJoyTagsList, VJoyTemplate, VJoyTemplateShape, VJoyText, VJoyTextarea, VJoyTitleBrand, VJoyToggle, VJoyTooltip, VJoyUserCard, VJoyWalkthrough, VJoyWalkthroughTrigger, VJoyWrapper, };
|