@maltjoy/core-vue 6.5.0-beta.1 → 6.5.0-beta.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/App.vue.d.ts +2 -0
- package/dist/components/JoyAdminBanner/VJoyAdminBanner.vue.d.ts +7 -0
- package/dist/components/JoyAvailability/JoyAvailability.types.d.ts +1 -0
- package/dist/components/JoyAvailability/VJoyAvailability.vue.d.ts +10 -0
- package/dist/components/JoyAvatar/JoyAvatar.types.d.ts +5 -0
- package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +68 -0
- package/dist/components/JoyAvatarsList/VJoyAvatarsList.vue.d.ts +27 -0
- package/dist/components/JoyBadge/JoyBadge.types.d.ts +2 -0
- package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +66 -0
- package/dist/components/JoyBadgeLevel/JoyBadgeLevel.types.d.ts +12 -0
- package/dist/components/JoyBadgeLevel/VJoyBadgeLevel.vue.d.ts +49 -0
- package/dist/components/JoyBlockSkeleton/VJoyBlockSkeleton.vue.d.ts +32 -0
- package/dist/components/JoyBottomSheet/VJoyBottomSheet.vue.d.ts +49 -0
- package/dist/components/JoyButton/JoyButton.types.d.ts +6 -0
- package/dist/components/JoyButton/VJoyButton.vue.d.ts +101 -0
- package/dist/components/JoyButtonCard/JoyButtonCard.types.d.ts +13 -0
- package/dist/components/JoyButtonCard/VJoyButtonCard.vue.d.ts +18 -0
- package/dist/components/JoyCheckbox/JoyCheckbox.types.d.ts +26 -0
- package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +36 -0
- package/dist/components/JoyCheckboxCard/JoyCheckboxCard.types.d.ts +7 -0
- package/dist/components/JoyCheckboxCard/VJoyCheckboxCard.vue.d.ts +35 -0
- package/dist/components/JoyCheckboxGroup/VJoyCheckboxGroup.vue.d.ts +67 -0
- package/dist/components/JoyCollapse/VJoyCollapse.vue.d.ts +215 -0
- package/dist/components/JoyCollapseItem/JoyCollapseItem.types.d.ts +5 -0
- package/dist/components/JoyCollapseItem/VJoyCollapseItem.vue.d.ts +101 -0
- package/dist/components/JoyCompanyAvatar/JoyCompanyAvatar.types.d.ts +2 -0
- package/dist/components/JoyCompanyAvatar/VJoyCompanyAvatar.vue.d.ts +39 -0
- package/dist/components/JoyDialog/JoyDialog.types.d.ts +2 -0
- package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +238 -0
- package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +589 -0
- package/dist/components/JoyDot/VJoyDot.types.d.ts +1 -0
- package/dist/components/JoyDot/VJoyDot.vue.d.ts +15 -0
- package/dist/components/JoyDrawer/JoyDrawer.types.d.ts +1 -0
- package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +195 -0
- package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +509 -0
- package/dist/components/JoyDropdown/JoyDropdown.types.d.ts +18 -0
- package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +220 -0
- package/dist/components/JoyDropdownList/JoyDropdownList.types.d.ts +2 -0
- package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +136 -0
- package/dist/components/JoyDropzone/VJoyDropzone.vue.d.ts +153 -0
- package/dist/components/JoyDropzone/VJoyDropzoneFileItem.vue.d.ts +84 -0
- package/dist/components/JoyDropzone/VJoyDropzoneIcon.vue.d.ts +26 -0
- package/dist/components/JoyFilterBar/VJoyFilterBar.vue.d.ts +19 -0
- package/dist/components/JoyFilterBarButton/VJoyFilterBarButton.vue.d.ts +43 -0
- package/dist/components/JoyFloatingActionsBar/VJoyFloatingActionsBar.vue.d.ts +30 -0
- package/dist/components/JoyFormError/VJoyFormError.vue.d.ts +63 -0
- package/dist/components/JoyFormFieldSkeleton/VJoyFormFieldSkeleton.vue.d.ts +41 -0
- package/dist/components/JoyFormGroup/VJoyFormGroup.vue.d.ts +13 -0
- package/dist/components/JoyFunnel/JoyFunnel.types.d.ts +3 -0
- package/dist/components/JoyFunnel/VJoyFunnel.vue.d.ts +71 -0
- package/dist/components/JoyFunnelFooter/VJoyFunnelFooter.vue.d.ts +13 -0
- package/dist/components/JoyFunnelHeader/VJoyFunnelHeader.vue.d.ts +13 -0
- package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +3 -0
- package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +76 -0
- package/dist/components/JoyIcon/JoyIcon.types.d.ts +5 -0
- package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +62 -0
- package/dist/components/JoyIconButton/JoyIconButton.types.d.ts +5 -0
- package/dist/components/JoyIconButton/VJoyIconButton.vue.d.ts +80 -0
- package/dist/components/JoyIndicator/VJoyIndicator.vue.d.ts +44 -0
- package/dist/components/JoyIndicators/JoyIndicators.types.d.ts +1 -0
- package/dist/components/JoyIndicators/VJoyIndicators.vue.d.ts +74 -0
- package/dist/components/JoyInput/JoyInput.types.d.ts +33 -0
- package/dist/components/JoyInput/VJoyInput.vue.d.ts +38 -0
- package/dist/components/JoyInputDigit/JoyInputDigit.types.d.ts +14 -0
- package/dist/components/JoyInputDigit/VJoyInputDigit.vue.d.ts +24 -0
- package/dist/components/JoyInputNumber/VJoyInputNumber.vue.d.ts +33 -0
- package/dist/components/JoyInputPassword/VJoyInputPassword.vue.d.ts +31 -0
- package/dist/components/JoyLabel/JoyLabel.types.d.ts +3 -0
- package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +57 -0
- package/dist/components/JoyLink/JoyLink.types.d.ts +2 -0
- package/dist/components/JoyLink/VJoyLink.vue.d.ts +41 -0
- package/dist/components/JoyListItem/VJoyListItem.vue.d.ts +21 -0
- package/dist/components/JoyMenu/JoyMenu.types.d.ts +13 -0
- package/dist/components/JoyMenu/VJoyMenu.vue.d.ts +59 -0
- package/dist/components/JoyMenuItem/JoyMenuItem.types.d.ts +13 -0
- package/dist/components/JoyMenuItem/VJoyMenuItem.vue.d.ts +73 -0
- package/dist/components/JoyPagination/PaginationIcon.vue.d.ts +35 -0
- package/dist/components/JoyPagination/VJoyPagination.vue.d.ts +84 -0
- package/dist/components/JoyPanel/JoyPanel.types.d.ts +4 -0
- package/dist/components/JoyPanel/VJoyPanel.vue.d.ts +103 -0
- package/dist/components/JoyPanelSection/VJoyPanelSection.vue.d.ts +10 -0
- package/dist/components/JoyPasswordRequirement/JoyPasswordRequirement.types.d.ts +7 -0
- package/dist/components/JoyPasswordRequirement/VJoyPasswordRequirement.vue.d.ts +13 -0
- package/dist/components/JoyProductTour/JoyProductTour.store.d.ts +174 -0
- package/dist/components/JoyProductTour/JoyProductTour.types.d.ts +38 -0
- package/dist/components/JoyProductTour/JoyProductTourSpotlight/VJoyProductTourSpotlight.vue.d.ts +6 -0
- package/dist/components/JoyProductTour/VJoyProductTour.vue.d.ts +21 -0
- package/dist/components/JoyProductTour/VJoyProductTourInner.vue.d.ts +27 -0
- package/dist/components/JoyProductTourTrigger/VJoyProductTourTrigger.vue.d.ts +167 -0
- package/dist/components/JoyProgressBar/JoyProgressBar.types.d.ts +2 -0
- package/dist/components/JoyProgressBar/VJoyProgressBar.vue.d.ts +67 -0
- package/dist/components/JoyRadio/JoyRadio.types.d.ts +1 -0
- package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +117 -0
- package/dist/components/JoyRadioGroup/JoyRadioGroup.types.d.ts +1 -0
- package/dist/components/JoyRadioGroup/VJoyRadioGroup.vue.d.ts +33 -0
- package/dist/components/JoyRatingStars/JoyRatingStars.types.d.ts +2 -0
- package/dist/components/JoyRatingStars/VJoyRatingStars.vue.d.ts +51 -0
- package/dist/components/JoyScreenLoader/VJoyScreenLoader.types.d.ts +1 -0
- package/dist/components/JoyScreenLoader/VJoyScreenLoader.vue.d.ts +44 -0
- package/dist/components/JoySelect/JoySelect.types.d.ts +2 -0
- package/dist/components/JoySelect/VJoySelect.vue.d.ts +121 -0
- package/dist/components/JoySelectableItem/VJoySelectableItem.types.d.ts +8 -0
- package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +76 -0
- package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +93 -0
- package/dist/components/JoySeparator/JoySeparator.types.d.ts +3 -0
- package/dist/components/JoySeparator/VJoySeparator.vue.d.ts +24 -0
- package/dist/components/JoySnackbar/JoySnackbar.types.d.ts +19 -0
- package/dist/components/JoySnackbar/VJoySnackbar.vue.d.ts +104 -0
- package/dist/components/JoySnackbar/VJoySnackbarService.d.ts +25 -0
- package/dist/components/JoySnackbar/index.d.ts +1 -0
- package/dist/components/JoySpinner/JoySpinner.types.d.ts +1 -0
- package/dist/components/JoySpinner/VJoySpinner.vue.d.ts +12 -0
- package/dist/components/JoyStep/TJoyStep.types.d.ts +1 -0
- package/dist/components/JoyStep/VJoyStep.vue.d.ts +86 -0
- package/dist/components/JoyStepper/VJoyStepper.vue.d.ts +171 -0
- package/dist/components/JoyTab/TabButton.vue.d.ts +79 -0
- package/dist/components/JoyTab/VJoyTab.vue.d.ts +81 -0
- package/dist/components/JoyTabs/VJoyTabs.vue.d.ts +103 -0
- package/dist/components/JoyTag/JoyTag.types.d.ts +14 -0
- package/dist/components/JoyTag/VJoyTag.vue.d.ts +52 -0
- package/dist/components/JoyTagsInput/JoyTagsInput.service.d.ts +5 -0
- package/dist/components/JoyTagsInput/JoyTagsInput.types.d.ts +4 -0
- package/dist/components/JoyTagsInput/VJoyTagsInput.vue.d.ts +124 -0
- package/dist/components/JoyTagsList/JoyTagsList.types.d.ts +4 -0
- package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +140 -0
- package/dist/components/JoyTemplate/JoyTemplate.types.d.ts +1 -0
- package/dist/components/JoyTemplate/VJoyTemplate.vue.d.ts +92 -0
- package/dist/components/JoyTemplate/_JoyTemplateShape/TemplateShape.vue.d.ts +2 -0
- package/dist/components/JoyText/JoyText.types.d.ts +4 -0
- package/dist/components/JoyText/VJoyText.vue.d.ts +40 -0
- package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +155 -0
- package/dist/components/JoyTitleBrand/VJoyTitleBrand.vue.d.ts +19 -0
- package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +104 -0
- package/dist/components/JoyTooltip/VJoyTooltip.vue.d.ts +112 -0
- package/dist/components/JoyUserCard/VJoyUserCard.vue.d.ts +71 -0
- package/dist/components/JoyWalkthrough/VJoyWalkthrough.vue.d.ts +39 -0
- package/dist/components/JoyWalkthroughTrigger/VJoyWalkthroughTrigger.vue.d.ts +9 -0
- package/dist/components/JoyWrapper/JoyWrapper.types.d.ts +5 -0
- package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +100 -0
- package/dist/components/compat.d.ts +1 -0
- package/dist/components/component-metadata.d.ts +22 -0
- package/dist/components/components.d.ts +8 -0
- package/dist/components/components.types.d.ts +42 -0
- package/dist/components/index.d.ts +84 -0
- package/dist/composables/events.d.ts +5 -0
- package/dist/composables/helpers.d.ts +9 -0
- package/dist/composables/index.d.ts +5 -0
- package/dist/composables/overlay-a11y.d.ts +21 -0
- package/dist/directives/index.d.ts +1 -0
- package/dist/directives/ripple.d.ts +4 -0
- package/dist/events/bus.d.ts +3 -0
- package/dist/events/index.d.ts +1 -0
- package/dist/helpers/index.d.ts +15 -0
- package/dist/joy-core-vue-manifest.json +96 -0
- package/dist/main.d.ts +1 -0
- package/dist/pages/FunnelAndStepper.vue.d.ts +2 -0
- package/dist/pages/FunnelMode.vue.d.ts +2 -0
- package/dist/pages/IndexPage.vue.d.ts +2 -0
- package/dist/stories/fixtures/index.d.ts +1 -0
- package/dist/types/index.d.ts +27 -0
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type TeleportProps } from 'vue';
|
|
2
|
+
export interface Props {
|
|
3
|
+
/** Height of the bar. Adjust when the default does not fit your content. */
|
|
4
|
+
height?: string;
|
|
5
|
+
/** CSS selector or DOM element used as the Teleport target. */
|
|
6
|
+
appendTo?: TeleportProps['to'];
|
|
7
|
+
/** Controls the horizontal distribution of the inner content. */
|
|
8
|
+
justify?: 'space-between' | 'space-around' | 'space-evenly' | 'flex-start' | 'flex-end' | 'center';
|
|
9
|
+
}
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
11
|
+
appendTo: string | import("vue").RendererElement | null;
|
|
12
|
+
height: string;
|
|
13
|
+
justify: "center" | "space-between" | "flex-start" | "flex-end" | "space-around" | "space-evenly";
|
|
14
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
|
|
15
|
+
/** Content slot, placed on the left side of the bar */
|
|
16
|
+
content: () => any;
|
|
17
|
+
/** Actions slot, placed on the right side */
|
|
18
|
+
actions: () => any;
|
|
19
|
+
}> & {
|
|
20
|
+
/** Content slot, placed on the left side of the bar */
|
|
21
|
+
content: () => any;
|
|
22
|
+
/** Actions slot, placed on the right side */
|
|
23
|
+
actions: () => any;
|
|
24
|
+
}>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
/**
|
|
4
|
+
* In some cases you'll need to inject the error in the DOM but hide it. Visible by default
|
|
5
|
+
* @deprecated - The property is now ignored.
|
|
6
|
+
*/
|
|
7
|
+
visible: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Display a list of errors without the need of a slot
|
|
13
|
+
*/
|
|
14
|
+
errors: {
|
|
15
|
+
type: PropType<string[]>;
|
|
16
|
+
required: false;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Allows to remove any bottom margin on the component
|
|
20
|
+
*/
|
|
21
|
+
noMargin: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
/**
|
|
27
|
+
* In some cases you'll need to inject the error in the DOM but hide it. Visible by default
|
|
28
|
+
* @deprecated - The property is now ignored.
|
|
29
|
+
*/
|
|
30
|
+
visible: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Display a list of errors without the need of a slot
|
|
36
|
+
*/
|
|
37
|
+
errors: {
|
|
38
|
+
type: PropType<string[]>;
|
|
39
|
+
required: false;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Allows to remove any bottom margin on the component
|
|
43
|
+
*/
|
|
44
|
+
noMargin: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
}>> & Readonly<{}>, {
|
|
49
|
+
noMargin: boolean;
|
|
50
|
+
visible: boolean;
|
|
51
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
|
|
52
|
+
/** If you need a list of error, use this slot with a simple ul/li */
|
|
53
|
+
default?: (() => any) | undefined;
|
|
54
|
+
}> & {
|
|
55
|
+
/** If you need a list of error, use this slot with a simple ul/li */
|
|
56
|
+
default?: (() => any) | undefined;
|
|
57
|
+
}>;
|
|
58
|
+
export default _default;
|
|
59
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
60
|
+
new (): {
|
|
61
|
+
$slots: S;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { FormSizes } from '@/types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
/** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
|
|
5
|
+
size: {
|
|
6
|
+
type: PropType<FormSizes>;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
width: {
|
|
10
|
+
type: StringConstructor;
|
|
11
|
+
};
|
|
12
|
+
/** The component is aimed to be used with a VJoyWrapper to quickly create skeleton layouts.
|
|
13
|
+
* Use flex property to spread your items horizontally, by default they will all have the same width.
|
|
14
|
+
*/
|
|
15
|
+
flex: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
}>, {
|
|
20
|
+
flexStyle: import("vue").ComputedRef<string>;
|
|
21
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
/** In some cases you'll need to inject the error in the DOM but hide it. Visible by default */
|
|
23
|
+
size: {
|
|
24
|
+
type: PropType<FormSizes>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
width: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
};
|
|
30
|
+
/** The component is aimed to be used with a VJoyWrapper to quickly create skeleton layouts.
|
|
31
|
+
* Use flex property to spread your items horizontally, by default they will all have the same width.
|
|
32
|
+
*/
|
|
33
|
+
flex: {
|
|
34
|
+
type: StringConstructor;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
}>> & Readonly<{}>, {
|
|
38
|
+
size: FormSizes;
|
|
39
|
+
flex: string;
|
|
40
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
41
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
|
|
2
|
+
/** Use it to render the content of the form group. Most of the time JoyLabel, any form component, and JoyFormError. */
|
|
3
|
+
default?: (() => any) | undefined;
|
|
4
|
+
}> & {
|
|
5
|
+
/** Use it to render the content of the form group. Most of the time JoyLabel, any form component, and JoyFormError. */
|
|
6
|
+
default?: (() => any) | undefined;
|
|
7
|
+
}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyFunnelLayoutWidths, TJoyFunnelProfiles } from './JoyFunnel.types';
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
/**
|
|
5
|
+
* Remove decorative shapes placed at the bottom right corner
|
|
6
|
+
*/
|
|
7
|
+
hideShapes: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
layoutWidth: {
|
|
12
|
+
type: PropType<TJoyFunnelLayoutWidths>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
profile: {
|
|
16
|
+
type: PropType<TJoyFunnelProfiles>;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
}>, {
|
|
20
|
+
scrollOnTop: import("vue").Ref<boolean, boolean>;
|
|
21
|
+
hasStepperSlot: import("vue").ComputedRef<boolean>;
|
|
22
|
+
hasFooterSlot: import("vue").ComputedRef<boolean>;
|
|
23
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
/**
|
|
25
|
+
* Remove decorative shapes placed at the bottom right corner
|
|
26
|
+
*/
|
|
27
|
+
hideShapes: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
default: boolean;
|
|
30
|
+
};
|
|
31
|
+
layoutWidth: {
|
|
32
|
+
type: PropType<TJoyFunnelLayoutWidths>;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
profile: {
|
|
36
|
+
type: PropType<TJoyFunnelProfiles>;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
}>> & Readonly<{}>, {
|
|
40
|
+
profile: TJoyFunnelProfiles;
|
|
41
|
+
hideShapes: boolean;
|
|
42
|
+
layoutWidth: TJoyFunnelLayoutWidths;
|
|
43
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
|
|
44
|
+
/** Use VJoyTemplate here */
|
|
45
|
+
default: () => any;
|
|
46
|
+
/** Use VJoyHeader here */
|
|
47
|
+
'funnel-header': () => any;
|
|
48
|
+
/** Use VJoyStepper here */
|
|
49
|
+
'funnel-stepper'?: (() => any) | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Deprecated. Use VJoyFunnelFooter component directly within default slot.
|
|
52
|
+
* */
|
|
53
|
+
'funnel-footer'?: (() => any) | undefined;
|
|
54
|
+
}> & {
|
|
55
|
+
/** Use VJoyTemplate here */
|
|
56
|
+
default: () => any;
|
|
57
|
+
/** Use VJoyHeader here */
|
|
58
|
+
'funnel-header': () => any;
|
|
59
|
+
/** Use VJoyStepper here */
|
|
60
|
+
'funnel-stepper'?: (() => any) | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Deprecated. Use VJoyFunnelFooter component directly within default slot.
|
|
63
|
+
* */
|
|
64
|
+
'funnel-footer'?: (() => any) | undefined;
|
|
65
|
+
}>;
|
|
66
|
+
export default _default;
|
|
67
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
68
|
+
new (): {
|
|
69
|
+
$slots: S;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
|
|
2
|
+
'footer-left': () => any;
|
|
3
|
+
'footer-right': () => any;
|
|
4
|
+
}> & {
|
|
5
|
+
'footer-left': () => any;
|
|
6
|
+
'footer-right': () => any;
|
|
7
|
+
}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
|
|
2
|
+
'funnel-header-left': () => any;
|
|
3
|
+
'funnel-header-right': () => any;
|
|
4
|
+
}> & {
|
|
5
|
+
'funnel-header-left': () => any;
|
|
6
|
+
'funnel-header-right': () => any;
|
|
7
|
+
}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyHighlightVariants } from './JoyHighlight.types';
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
accent: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
displayIcon: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
/** Based on maltjoy/icons availabilities. Works in pair with displayIcon boolean prop. */
|
|
13
|
+
icon: {
|
|
14
|
+
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
15
|
+
};
|
|
16
|
+
/** import `TJoyHighlightLevels` */
|
|
17
|
+
level: {
|
|
18
|
+
type: PropType<import("../../types/index.js").TLevels>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
/** Please note that 'default' variant has no effect. This property is meant to completely override "level" prop style */
|
|
22
|
+
variant: {
|
|
23
|
+
type: PropType<TJoyHighlightVariants>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
}>, {
|
|
27
|
+
getRelevantIcon: import("vue").ComputedRef<import("@maltjoy/icons").JoyIconsId>;
|
|
28
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
accent: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
displayIcon: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
/** Based on maltjoy/icons availabilities. Works in pair with displayIcon boolean prop. */
|
|
38
|
+
icon: {
|
|
39
|
+
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
40
|
+
};
|
|
41
|
+
/** import `TJoyHighlightLevels` */
|
|
42
|
+
level: {
|
|
43
|
+
type: PropType<import("../../types/index.js").TLevels>;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
/** Please note that 'default' variant has no effect. This property is meant to completely override "level" prop style */
|
|
47
|
+
variant: {
|
|
48
|
+
type: PropType<TJoyHighlightVariants>;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
}>> & Readonly<{}>, {
|
|
52
|
+
level: import("../../types/index.js").TLevels;
|
|
53
|
+
variant: TJoyHighlightVariants;
|
|
54
|
+
accent: boolean;
|
|
55
|
+
displayIcon: boolean;
|
|
56
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
|
|
57
|
+
/** Main content of the highlight */
|
|
58
|
+
default(): any;
|
|
59
|
+
/** Use it if you want to customize the default icon associated with the highlight. You can inject whatever you want here */
|
|
60
|
+
'highlight-decorator'(): any;
|
|
61
|
+
/** Not mandatory, renders a bold title above the main content */
|
|
62
|
+
'highlight-title'(): any;
|
|
63
|
+
}> & {
|
|
64
|
+
/** Main content of the highlight */
|
|
65
|
+
default(): any;
|
|
66
|
+
/** Use it if you want to customize the default icon associated with the highlight. You can inject whatever you want here */
|
|
67
|
+
'highlight-decorator'(): any;
|
|
68
|
+
/** Not mandatory, renders a bold title above the main content */
|
|
69
|
+
'highlight-title'(): any;
|
|
70
|
+
}>;
|
|
71
|
+
export default _default;
|
|
72
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
73
|
+
new (): {
|
|
74
|
+
$slots: S;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { JoyIconsId } from '@maltjoy/icons';
|
|
2
|
+
import { TSizes, TLevels } from '../../types';
|
|
3
|
+
export type TJoyIconsColors = TLevels | 'neutral-50' | 'primary' | 'secondary' | 'tertiary' | 'quaternary' | 'brand-primary' | 'brand-secondary' | 'white';
|
|
4
|
+
export type TJoyIconSizes = Extract<TSizes, 'xxsmall' | 'xsmall' | 'small' | 'medium' | 'large'>;
|
|
5
|
+
export type TJoyIconsNames = JoyIconsId;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { TJoyIconsColors, TJoyIconSizes } from './JoyIcon.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
ariaLabel: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
};
|
|
7
|
+
title: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
};
|
|
10
|
+
role: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
};
|
|
13
|
+
tabIndex: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
default: number;
|
|
16
|
+
};
|
|
17
|
+
name: {
|
|
18
|
+
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
color: {
|
|
22
|
+
type: PropType<TJoyIconsColors>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
/** Use `TJoyIconSizes` */
|
|
26
|
+
size: {
|
|
27
|
+
type: PropType<TJoyIconSizes>;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
|
+
ariaLabel: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
};
|
|
34
|
+
title: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
};
|
|
37
|
+
role: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
};
|
|
40
|
+
tabIndex: {
|
|
41
|
+
type: NumberConstructor;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
name: {
|
|
45
|
+
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
46
|
+
required: true;
|
|
47
|
+
};
|
|
48
|
+
color: {
|
|
49
|
+
type: PropType<TJoyIconsColors>;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
/** Use `TJoyIconSizes` */
|
|
53
|
+
size: {
|
|
54
|
+
type: PropType<TJoyIconSizes>;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
}>> & Readonly<{}>, {
|
|
58
|
+
color: TJoyIconsColors;
|
|
59
|
+
tabIndex: number;
|
|
60
|
+
size: TJoyIconSizes;
|
|
61
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
62
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TJoyButtonSizes, TJoyButtonVariants } from '../JoyButton/JoyButton.types';
|
|
2
|
+
import { TJoyIconsNames } from '../JoyIcon/JoyIcon.types';
|
|
3
|
+
export type TJoyIconButtonVariants = TJoyButtonVariants;
|
|
4
|
+
export type TJoyIconButtonSizes = TJoyButtonSizes;
|
|
5
|
+
export type TJoyIconButtonIconNames = TJoyIconsNames;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
/** Name of the icon displayed inside the button */
|
|
4
|
+
icon: {
|
|
5
|
+
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Accessible label used when no default slot is provided.
|
|
10
|
+
* The text is hidden visually by JoyIconButton styles.
|
|
11
|
+
*/
|
|
12
|
+
label: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
};
|
|
15
|
+
/** Change the component's state and display a JoySpinner. */
|
|
16
|
+
loading: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
/** Button or Link color variant */
|
|
21
|
+
variant: {
|
|
22
|
+
type: PropType<import("../components.types.js").TJoyButtonVariants>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
/** Button or Link size */
|
|
26
|
+
size: {
|
|
27
|
+
type: PropType<import("../components.types.js").TJoyButtonSizes>;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
id: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
};
|
|
33
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
/** Name of the icon displayed inside the button */
|
|
35
|
+
icon: {
|
|
36
|
+
type: PropType<import("@maltjoy/icons").JoyIconsId>;
|
|
37
|
+
required: true;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Accessible label used when no default slot is provided.
|
|
41
|
+
* The text is hidden visually by JoyIconButton styles.
|
|
42
|
+
*/
|
|
43
|
+
label: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
};
|
|
46
|
+
/** Change the component's state and display a JoySpinner. */
|
|
47
|
+
loading: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
/** Button or Link color variant */
|
|
52
|
+
variant: {
|
|
53
|
+
type: PropType<import("../components.types.js").TJoyButtonVariants>;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
/** Button or Link size */
|
|
57
|
+
size: {
|
|
58
|
+
type: PropType<import("../components.types.js").TJoyButtonSizes>;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
id: {
|
|
62
|
+
type: StringConstructor;
|
|
63
|
+
};
|
|
64
|
+
}>> & Readonly<{}>, {
|
|
65
|
+
size: import("../components.types.js").TJoyButtonSizes;
|
|
66
|
+
loading: boolean;
|
|
67
|
+
variant: import("../components.types.js").TJoyButtonVariants;
|
|
68
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
|
|
69
|
+
/** Accessible label for the icon button */
|
|
70
|
+
default(): any;
|
|
71
|
+
}> & {
|
|
72
|
+
/** Accessible label for the icon button */
|
|
73
|
+
default(): any;
|
|
74
|
+
}>;
|
|
75
|
+
export default _default;
|
|
76
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
77
|
+
new (): {
|
|
78
|
+
$slots: S;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
/** Value is used for the parent v-model. Mandatory */
|
|
4
|
+
value: {
|
|
5
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
/** Automatically handled by parent. No need to set it manually */
|
|
9
|
+
selected: {
|
|
10
|
+
type: BooleanConstructor;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
variant: {
|
|
14
|
+
type: PropType<"default">;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
/** Indicators are text-less buttons by design. To make them more accessible, you can pass them an aria-label that will describe more their action. */
|
|
18
|
+
ariaLabel: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
};
|
|
21
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
/** Value is used for the parent v-model. Mandatory */
|
|
23
|
+
value: {
|
|
24
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
/** Automatically handled by parent. No need to set it manually */
|
|
28
|
+
selected: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
variant: {
|
|
33
|
+
type: PropType<"default">;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
/** Indicators are text-less buttons by design. To make them more accessible, you can pass them an aria-label that will describe more their action. */
|
|
37
|
+
ariaLabel: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
};
|
|
40
|
+
}>> & Readonly<{}>, {
|
|
41
|
+
selected: boolean;
|
|
42
|
+
variant: "default";
|
|
43
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
44
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type TJoyIndicatorsVariants = 'default';
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import VJoyIndicator from '../JoyIndicator/VJoyIndicator.vue';
|
|
3
|
+
declare function isSelected(indicator: typeof VJoyIndicator): boolean;
|
|
4
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
|
+
variant: {
|
|
6
|
+
type: PropType<"default">;
|
|
7
|
+
};
|
|
8
|
+
/** Use the component with a v-model to easily handle selected items */
|
|
9
|
+
modelValue: {
|
|
10
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
11
|
+
};
|
|
12
|
+
}>, {
|
|
13
|
+
indicators: import("vue").ComputedRef<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
14
|
+
value: {
|
|
15
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
selected: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
variant: {
|
|
23
|
+
type: PropType<"default">;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
ariaLabel: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
};
|
|
29
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
value: {
|
|
31
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
selected: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
variant: {
|
|
39
|
+
type: PropType<"default">;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
ariaLabel: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
};
|
|
45
|
+
}>> & Readonly<{}>, {
|
|
46
|
+
selected: boolean;
|
|
47
|
+
variant: "default";
|
|
48
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>[]>;
|
|
49
|
+
isSelected: typeof isSelected;
|
|
50
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
|
+
"update:modelValue": (value: string | number) => any;
|
|
52
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
+
variant: {
|
|
54
|
+
type: PropType<"default">;
|
|
55
|
+
};
|
|
56
|
+
/** Use the component with a v-model to easily handle selected items */
|
|
57
|
+
modelValue: {
|
|
58
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
59
|
+
};
|
|
60
|
+
}>> & Readonly<{
|
|
61
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
62
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
|
|
63
|
+
/** Use VJoyIndicator children here */
|
|
64
|
+
default(): any;
|
|
65
|
+
}> & {
|
|
66
|
+
/** Use VJoyIndicator children here */
|
|
67
|
+
default(): any;
|
|
68
|
+
}>;
|
|
69
|
+
export default _default;
|
|
70
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
71
|
+
new (): {
|
|
72
|
+
$slots: S;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { TSizes } from '../../types';
|
|
2
|
+
import { TJoyIconsNames } from '../JoyIcon/JoyIcon.types';
|
|
3
|
+
import { TJoyLabelSizes } from '../JoyLabel/JoyLabel.types';
|
|
4
|
+
export type TJoyInputSizes = Extract<TSizes, 'small' | 'medium' | 'large'>;
|
|
5
|
+
export interface VJoyInputProps {
|
|
6
|
+
autofocus?: boolean;
|
|
7
|
+
modelValue?: string | number | null;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
id?: string;
|
|
10
|
+
invalid?: boolean;
|
|
11
|
+
name?: string;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
/** Display a label on top of the element. Handy if you only need to pass a string. If you need more, use the VJoyLabel. */
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Overrides the default label size. See JoyLabel stories */
|
|
16
|
+
labelSize?: TJoyLabelSizes;
|
|
17
|
+
/** If your component is not required, we can add a label to explicitely tell that it's not mandatory */
|
|
18
|
+
optionalLabel?: string;
|
|
19
|
+
/** Depending on context, we can add a "*" after the label to specify it's mandatory. */
|
|
20
|
+
requiredMark?: boolean;
|
|
21
|
+
modelModifiers?: Partial<Record<'number' | 'trim' | 'lazy', boolean>>;
|
|
22
|
+
/** Display a cross icon on the right that enables to clear the field */
|
|
23
|
+
clearable?: boolean;
|
|
24
|
+
/** Add a JoyIcon / joy-icon with given name on left-side. */
|
|
25
|
+
icon?: TJoyIconsNames;
|
|
26
|
+
size?: TJoyInputSizes;
|
|
27
|
+
/** HTML input type. Use VJoyInputPassword for password fields. */
|
|
28
|
+
type?: string;
|
|
29
|
+
/** Activates the readonly mode for the input */
|
|
30
|
+
readonly?: boolean;
|
|
31
|
+
/** When using the clearable property, you have to specific an aria-label for accessibility. */
|
|
32
|
+
clearAriaLabel?: string;
|
|
33
|
+
}
|