@maltjoy/core-vue 3.36.0-next → 3.37.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.
Files changed (99) hide show
  1. package/LICENSE +21 -0
  2. package/dist/App.vue.d.ts +1 -1
  3. package/dist/components/JoyAvailability/VJoyAvailability.vue.d.ts +4 -4
  4. package/dist/components/JoyAvatar/VJoyAvatar.vue.d.ts +10 -10
  5. package/dist/components/JoyAvatarsList/VJoyAvatarsList.vue.d.ts +4 -4
  6. package/dist/components/JoyBadge/VJoyBadge.vue.d.ts +4 -4
  7. package/dist/components/JoyBadgeLevel/VJoyBadgeLevel.vue.d.ts +4 -4
  8. package/dist/components/JoyBlockSkeleton/VJoyBlockSkeleton.vue.d.ts +4 -4
  9. package/dist/components/JoyBottomSheet/VJoyBottomSheet.vue.d.ts +8 -8
  10. package/dist/components/JoyBottomSheetTrigger/VJoyBottomSheetTrigger.vue.d.ts +93 -52
  11. package/dist/components/JoyButton/VJoyButton.vue.d.ts +7 -7
  12. package/dist/components/JoyButton/useRandomId.d.ts +1 -1
  13. package/dist/components/JoyCheckbox/VJoyCheckbox.vue.d.ts +15 -15
  14. package/dist/components/JoyCollapse/VJoyCollapse.vue.d.ts +52 -27
  15. package/dist/components/JoyCollapseItem/VJoyCollapseItem.vue.d.ts +9 -9
  16. package/dist/components/JoyCompanyAvatar/VJoyCompanyAvatar.vue.d.ts +7 -7
  17. package/dist/components/JoyCounter/VJoyCounter.vue.d.ts +16 -16
  18. package/dist/components/JoyDialog/VJoyDialog.vue.d.ts +13 -13
  19. package/dist/components/JoyDialogTrigger/VJoyDialogTrigger.vue.d.ts +193 -82
  20. package/dist/components/JoyDividerCta/VJoyDividerCta.vue.d.ts +4 -4
  21. package/dist/components/JoyDot/VJoyDot.vue.d.ts +4 -4
  22. package/dist/components/JoyDrawer/VJoyDrawer.vue.d.ts +13 -13
  23. package/dist/components/JoyDrawerTrigger/VJoyDrawerTrigger.vue.d.ts +171 -78
  24. package/dist/components/JoyDropdown/VJoyDropdown.vue.d.ts +13 -13
  25. package/dist/components/JoyDropdownList/VJoyDropdownList.vue.d.ts +11 -11
  26. package/dist/components/JoyDropzone/VJoyDropzone.vue.d.ts +10 -16
  27. package/dist/components/JoyDropzone/VJoyDropzoneFileItem.vue.d.ts +7 -7
  28. package/dist/components/JoyDropzone/VJoyDropzoneIcon.vue.d.ts +3 -3
  29. package/dist/components/JoyFilterBar/VJoyFilterBar.vue.d.ts +3 -3
  30. package/dist/components/JoyFilterBarButton/VJoyFilterBarButton.vue.d.ts +6 -6
  31. package/dist/components/JoyFooter/VJoyFooter.vue.d.ts +1 -1
  32. package/dist/components/JoyFormError/VJoyFormError.vue.d.ts +4 -4
  33. package/dist/components/JoyFormFieldSkeleton/VJoyFormFieldSkeleton.vue.d.ts +5 -5
  34. package/dist/components/JoyFunnel/VJoyFunnel.vue.d.ts +6 -6
  35. package/dist/components/JoyFunnelFooter/VJoyFunnelFooter.vue.d.ts +1 -1
  36. package/dist/components/JoyHeader/VJoyHeader.vue.d.ts +1 -1
  37. package/dist/components/JoyHighlight/VJoyHighlight.vue.d.ts +5 -5
  38. package/dist/components/JoyIcon/VJoyIcon.vue.d.ts +4 -4
  39. package/dist/components/JoyIndicator/VJoyIndicator.vue.d.ts +4 -4
  40. package/dist/components/JoyIndicators/VJoyIndicators.vue.d.ts +10 -10
  41. package/dist/components/JoyInput/VJoyInput.vue.d.ts +12 -12
  42. package/dist/components/JoyLabel/VJoyLabel.vue.d.ts +5 -5
  43. package/dist/components/JoyLink/VJoyLink.vue.d.ts +4 -4
  44. package/dist/components/JoyListItem/VJoyListItem.vue.d.ts +15 -6
  45. package/dist/components/JoyMenu/VJoyMenu.vue.d.ts +8 -8
  46. package/dist/components/JoyMultiCheckbox/VJoyMultiCheckbox.vue.d.ts +6 -6
  47. package/dist/components/JoyPagination/PaginationIcon.vue.d.ts +6 -6
  48. package/dist/components/JoyPagination/VJoyPagination.vue.d.ts +6 -6
  49. package/dist/components/JoyPanel/VJoyPanel.vue.d.ts +4 -4
  50. package/dist/components/JoyPanelSection/VJoyPanelSection.vue.d.ts +1 -1
  51. package/dist/components/JoyProductTour/JoyProductTour.store.d.ts +150 -113
  52. package/dist/components/JoyProductTour/JoyProductTourSpotlight/VJoyProductTourSpotlight.vue.d.ts +1 -1
  53. package/dist/components/JoyProductTour/VJoyProductTour.vue.d.ts +27 -6
  54. package/dist/components/JoyProductTour/VJoyProductTourInner.vue.d.ts +43 -8
  55. package/dist/components/JoyProductTourTrigger/VJoyProductTourTrigger.vue.d.ts +257 -48
  56. package/dist/components/JoyProgressBar/VJoyProgressBar.vue.d.ts +6 -6
  57. package/dist/components/JoyRadio/VJoyRadio.vue.d.ts +10 -10
  58. package/dist/components/JoyRadioGroup/VJoyRadioGroup.vue.d.ts +4 -4
  59. package/dist/components/JoyRatingStars/VJoyRatingStars.vue.d.ts +5 -5
  60. package/dist/components/JoyScreenLoader/VJoyScreenLoader.vue.d.ts +4 -4
  61. package/dist/components/JoySelect/VJoySelect.vue.d.ts +11 -11
  62. package/dist/components/JoySelectableItem/VJoySelectableItem.vue.d.ts +10 -10
  63. package/dist/components/JoySelectableItemGroup/VJoySelectableItemGroup.vue.d.ts +9 -9
  64. package/dist/components/JoySeparator/VJoySeparator.vue.d.ts +4 -4
  65. package/dist/components/JoySnackbar/VJoySnackbar.vue.d.ts +6 -6
  66. package/dist/components/JoySpinner/VJoySpinner.vue.d.ts +3 -3
  67. package/dist/components/JoyStep/VJoyStep.vue.d.ts +7 -7
  68. package/dist/components/JoyStepper/VJoyStepper.vue.d.ts +46 -19
  69. package/dist/components/JoyTab/TabButton.vue.d.ts +6 -6
  70. package/dist/components/JoyTab/VJoyTab.vue.d.ts +4 -4
  71. package/dist/components/JoyTabs/VJoyTabs.vue.d.ts +28 -12
  72. package/dist/components/JoyTag/VJoyTag.vue.d.ts +44 -9
  73. package/dist/components/JoyTagsInput/VJoyTagsInput.vue.d.ts +13 -13
  74. package/dist/components/JoyTagsList/VJoyTagsList.vue.d.ts +15 -15
  75. package/dist/components/JoyTemplate/VJoyTemplate.vue.d.ts +4 -4
  76. package/dist/components/JoyTemplateShape/VJoyTemplateShape.vue.d.ts +1 -1
  77. package/dist/components/JoyText/VJoyText.vue.d.ts +7 -7
  78. package/dist/components/JoyTextarea/VJoyTextarea.vue.d.ts +10 -10
  79. package/dist/components/JoyToggle/VJoyToggle.vue.d.ts +7 -7
  80. package/dist/components/JoyTooltip/VJoyTooltip.vue.d.ts +7 -7
  81. package/dist/components/JoyUserCard/VJoyUserCard.vue.d.ts +3 -3
  82. package/dist/components/JoyWalkthrough/VJoyWalkthrough.vue.d.ts +36 -9
  83. package/dist/components/JoyWalkthroughTrigger/VJoyWalkthroughTrigger.vue.d.ts +10 -1
  84. package/dist/components/JoyWrapper/VJoyWrapper.vue.d.ts +5 -5
  85. package/dist/components.cjs +1 -1
  86. package/dist/components.js +2 -2
  87. package/dist/composables/helpers.d.ts +1 -1
  88. package/dist/joy-core-vue-manifest.json +1 -1
  89. package/dist/main.cjs +1 -1
  90. package/dist/main.js +2 -2
  91. package/dist/pages/FunnelAndStepper.vue.d.ts +1 -1
  92. package/dist/pages/FunnelMode.vue.d.ts +1 -1
  93. package/dist/pages/IndexPage.vue.d.ts +1 -1
  94. package/dist/style-DiEVDLd0.cjs +16 -0
  95. package/dist/{style-fNjzeg7Q.js → style-DqUSTCzR.js} +1775 -1775
  96. package/dist/style.css +1 -1
  97. package/dist/tests/helpers/FocusOnFormElement.vue.d.ts +4 -4
  98. package/package.json +30 -31
  99. package/dist/style-Cg6-S4et.cjs +0 -16
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 maltcommunity / apps
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/App.vue.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
2
2
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { TJoyAvailabilityStatus } from './JoyAvailability.types';
3
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ declare const _default: import("vue").DefineComponent<{
4
4
  /** Don't fill it and you'll only have the colored dot */
5
5
  label: StringConstructor;
6
6
  status: {
@@ -11,7 +11,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
11
11
  * Partial availabilty. Not 5 days/week cases
12
12
  */
13
13
  isPartial: BooleanConstructor;
14
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
14
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
15
  /** Don't fill it and you'll only have the colored dot */
16
16
  label: StringConstructor;
17
17
  status: {
@@ -22,8 +22,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
22
22
  * Partial availabilty. Not 5 days/week cases
23
23
  */
24
24
  isPartial: BooleanConstructor;
25
- }>> & Readonly<{}>, {
25
+ }>>, {
26
26
  status: TJoyAvailabilityStatus;
27
27
  isPartial: boolean;
28
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
28
+ }, {}>;
29
29
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { TJoyAvatarSizes } from './JoyAvatar.types';
3
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ declare const _default: import("vue").DefineComponent<{
4
4
  /** 3 different sizes of avatar */
5
5
  size: {
6
6
  type: PropType<TJoyAvatarSizes>;
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
26
26
  };
27
27
  /** Only applied if you set a photoUrl */
28
28
  loading: {
29
- type: PropType<"lazy" | "eager">;
29
+ type: PropType<"eager" | "lazy">;
30
30
  default: string;
31
31
  };
32
32
  /** Basic state with no information */
@@ -34,11 +34,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
34
34
  type: BooleanConstructor;
35
35
  default: boolean;
36
36
  };
37
- }>, {
37
+ }, {
38
38
  isAnonymous: import("vue").ComputedRef<boolean>;
39
39
  initials: import("vue").ComputedRef<string>;
40
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
41
- click: () => any;
40
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
41
+ click: () => void;
42
42
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
43
43
  /** 3 different sizes of avatar */
44
44
  size: {
@@ -65,7 +65,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
65
65
  };
66
66
  /** Only applied if you set a photoUrl */
67
67
  loading: {
68
- type: PropType<"lazy" | "eager">;
68
+ type: PropType<"eager" | "lazy">;
69
69
  default: string;
70
70
  };
71
71
  /** Basic state with no information */
@@ -73,14 +73,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
73
73
  type: BooleanConstructor;
74
74
  default: boolean;
75
75
  };
76
- }>> & Readonly<{
76
+ }>> & {
77
77
  onClick?: (() => any) | undefined;
78
- }>, {
78
+ }, {
79
79
  link: boolean;
80
- loading: "lazy" | "eager";
81
80
  size: TJoyAvatarSizes;
81
+ loading: "eager" | "lazy";
82
82
  color: import("./JoyAvatar.types").FreelancerAvatarColors | "transparent";
83
83
  profile: "default" | "strategy";
84
84
  isEmpty: boolean;
85
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
85
+ }, {}>;
86
86
  export default _default;
@@ -1,18 +1,18 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
2
  /** Renders a compact list of avatars */
3
3
  compress: {
4
4
  type: BooleanConstructor;
5
5
  default: boolean;
6
6
  };
7
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
7
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
8
8
  /** Renders a compact list of avatars */
9
9
  compress: {
10
10
  type: BooleanConstructor;
11
11
  default: boolean;
12
12
  };
13
- }>> & Readonly<{}>, {
13
+ }>>, {
14
14
  compress: boolean;
15
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
15
+ }, {}>, Readonly<{
16
16
  /** Use this slot to inject all your VJoyAvatar. VJoyAvatars applies some style to the list. */
17
17
  default(): any;
18
18
  }> & {
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
3
  /**
4
4
  * Display the colored bulletpoint on the left
5
5
  */
@@ -24,7 +24,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
24
24
  default: string;
25
25
  };
26
26
  number: NumberConstructor;
27
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
27
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
28
  /**
29
29
  * Display the colored bulletpoint on the left
30
30
  */
@@ -49,11 +49,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
49
49
  default: string;
50
50
  };
51
51
  number: NumberConstructor;
52
- }>> & Readonly<{}>, {
52
+ }>>, {
53
53
  label: string;
54
54
  variant: import("../JoyDot/VJoyDot.types").TJoyDotVariants;
55
55
  bulletpoint: boolean;
56
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
56
+ }, {}>, Readonly<{
57
57
  /** Use the slot as an alternative to "label" property. */
58
58
  default(): any;
59
59
  }> & {
@@ -1,5 +1,5 @@
1
1
  import { PropType } from 'vue';
2
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
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">;
@@ -15,7 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
15
15
  type: BooleanConstructor;
16
16
  default: boolean;
17
17
  };
18
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
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">;
@@ -31,10 +31,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
31
31
  type: BooleanConstructor;
32
32
  default: boolean;
33
33
  };
34
- }>> & Readonly<{}>, {
34
+ }>>, {
35
35
  superMalterLevel: number;
36
36
  visibleText: boolean;
37
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
37
+ }, {}>, Readonly<{
38
38
  /** Override the default given label */
39
39
  default(): any;
40
40
  }> & {
@@ -1,4 +1,4 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
1
+ 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;
@@ -12,7 +12,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
12
12
  height: {
13
13
  type: StringConstructor;
14
14
  };
15
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
16
  /** If you want to use it properly you need to set fixed width and height */
17
17
  circle: {
18
18
  type: BooleanConstructor;
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
26
26
  height: {
27
27
  type: StringConstructor;
28
28
  };
29
- }>> & Readonly<{}>, {
29
+ }>>, {
30
30
  circle: boolean;
31
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
31
+ }, {}>;
32
32
  export default _default;
@@ -5,7 +5,7 @@ import { PropType } from 'vue';
5
5
  declare function show(): void;
6
6
  declare function hide(): void;
7
7
  declare function moveContainer(translationY: number): void;
8
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
9
9
  /** Automatically renders a CTA that closes the bottom-sheet */
10
10
  closeLabel: {
11
11
  type: StringConstructor;
@@ -34,13 +34,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
34
34
  type: BooleanConstructor;
35
35
  default: boolean;
36
36
  };
37
- }>, {
37
+ }, {
38
38
  hide: typeof hide;
39
39
  show: typeof show;
40
- isOpen: import("vue").Ref<boolean, boolean>;
40
+ isOpen: import("vue").Ref<boolean>;
41
41
  moveContainer: typeof moveContainer;
42
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
43
- "bottom-sheet:close": () => any;
42
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
43
+ "bottom-sheet:close": () => void;
44
44
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
45
45
  /** Automatically renders a CTA that closes the bottom-sheet */
46
46
  closeLabel: {
@@ -70,15 +70,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
70
70
  type: BooleanConstructor;
71
71
  default: boolean;
72
72
  };
73
- }>> & Readonly<{
73
+ }>> & {
74
74
  "onBottom-sheet:close"?: (() => any) | undefined;
75
- }>, {
75
+ }, {
76
76
  closeLabel: string;
77
77
  open: boolean;
78
78
  preventBodyScroll: boolean;
79
79
  teleport: string | import("vue").RendererElement | null | undefined;
80
80
  frozen: boolean;
81
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
81
+ }, {}>, Readonly<{
82
82
  /** Main content of the component */
83
83
  'bottom-sheet-content': () => any;
84
84
  /** Put whatever type of CTA you need here */
@@ -1,4 +1,4 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
2
2
  /** VJoyBottomSheet ref. */
3
3
  bottomSheet: ({
4
4
  $: import("vue").ComponentInternalInstance;
@@ -15,8 +15,31 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
15
15
  readonly preventBodyScroll: boolean;
16
16
  readonly teleport: string | import("vue").RendererElement | null | undefined;
17
17
  readonly frozen: boolean;
18
- readonly "onBottom-sheet:close"?: (() => any) | undefined;
19
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "closeLabel" | "open" | "preventBodyScroll" | "teleport" | "frozen">;
18
+ "onBottom-sheet:close"?: (() => any) | undefined;
19
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
20
+ closeLabel: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ open: {
25
+ type: BooleanConstructor;
26
+ default: boolean;
27
+ };
28
+ preventBodyScroll: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ teleport: {
33
+ type: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
34
+ default: string;
35
+ };
36
+ frozen: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ }>> & {
41
+ "onBottom-sheet:close"?: (() => any) | undefined;
42
+ }, "closeLabel" | "open" | "preventBodyScroll" | "teleport" | "frozen">;
20
43
  $attrs: {
21
44
  [x: string]: unknown;
22
45
  };
@@ -26,9 +49,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
26
49
  $slots: Readonly<{
27
50
  [name: string]: import("vue").Slot<any> | undefined;
28
51
  }>;
29
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null;
30
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null;
31
- $host: Element | null;
52
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
53
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
32
54
  $emit: (event: "bottom-sheet:close") => void;
33
55
  $el: any;
34
56
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -52,22 +74,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
52
74
  type: BooleanConstructor;
53
75
  default: boolean;
54
76
  };
55
- }>> & Readonly<{
77
+ }>> & {
56
78
  "onBottom-sheet:close"?: (() => any) | undefined;
57
- }>, {
79
+ }, {
58
80
  hide: () => void;
59
81
  show: () => void;
60
- isOpen: import("vue").Ref<boolean, boolean>;
82
+ isOpen: import("vue").Ref<boolean>;
61
83
  moveContainer: (translationY: number) => void;
62
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
63
- "bottom-sheet:close": () => any;
84
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
85
+ "bottom-sheet:close": () => void;
64
86
  }, string, {
65
87
  closeLabel: string;
66
88
  open: boolean;
67
89
  preventBodyScroll: boolean;
68
90
  teleport: string | import("vue").RendererElement | null | undefined;
69
91
  frozen: boolean;
70
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
92
+ }, {}, string, {}> & {
71
93
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
72
94
  created?: ((() => void) | (() => void)[]) | undefined;
73
95
  beforeMount?: ((() => void) | (() => void)[]) | undefined;
@@ -82,18 +104,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
82
104
  unmounted?: ((() => void) | (() => void)[]) | undefined;
83
105
  renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
84
106
  renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
85
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[]) | undefined;
107
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
86
108
  };
87
109
  $forceUpdate: () => void;
88
110
  $nextTick: typeof import("vue").nextTick;
89
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import("@vue/reactivity").OnCleanup) => any : (args_0: any, args_1: any, args_2: import("@vue/reactivity").OnCleanup) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
90
- } & Readonly<{
91
- closeLabel: string;
92
- open: boolean;
93
- preventBodyScroll: boolean;
94
- teleport: string | import("vue").RendererElement | null | undefined;
95
- frozen: boolean;
96
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
111
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: (cleanupFn: () => void) => void) => any : (args_0: any, args_1: any, args_2: (cleanupFn: () => void) => void) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
112
+ } & Omit<Readonly<import("vue").ExtractPropTypes<{
97
113
  closeLabel: {
98
114
  type: StringConstructor;
99
115
  default: string;
@@ -114,12 +130,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
114
130
  type: BooleanConstructor;
115
131
  default: boolean;
116
132
  };
117
- }>> & Readonly<{
133
+ }>> & {
118
134
  "onBottom-sheet:close"?: (() => any) | undefined;
119
- }>, "hide" | "show" | "isOpen" | "moveContainer" | ("closeLabel" | "open" | "preventBodyScroll" | "teleport" | "frozen")> & import("vue").ShallowUnwrapRef<{
135
+ }, "hide" | "show" | "isOpen" | "moveContainer"> & import("vue").ShallowUnwrapRef<{
120
136
  hide: () => void;
121
137
  show: () => void;
122
- isOpen: import("vue").Ref<boolean, boolean>;
138
+ isOpen: import("vue").Ref<boolean>;
123
139
  moveContainer: (translationY: number) => void;
124
140
  }> & {} & import("vue").ComponentCustomProperties & {} & {
125
141
  $slots: Readonly<{
@@ -130,9 +146,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
130
146
  'bottom-sheet-cta': () => any;
131
147
  };
132
148
  }) | null | undefined;
133
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
134
- click: () => any;
135
- }, string, import("vue").PublicProps, Readonly<{
149
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
150
+ click: () => void;
151
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
136
152
  /** VJoyBottomSheet ref. */
137
153
  bottomSheet: ({
138
154
  $: import("vue").ComponentInternalInstance;
@@ -149,8 +165,31 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
149
165
  readonly preventBodyScroll: boolean;
150
166
  readonly teleport: string | import("vue").RendererElement | null | undefined;
151
167
  readonly frozen: boolean;
152
- readonly "onBottom-sheet:close"?: (() => any) | undefined;
153
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "closeLabel" | "open" | "preventBodyScroll" | "teleport" | "frozen">;
168
+ "onBottom-sheet:close"?: (() => any) | undefined;
169
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
170
+ closeLabel: {
171
+ type: StringConstructor;
172
+ default: string;
173
+ };
174
+ open: {
175
+ type: BooleanConstructor;
176
+ default: boolean;
177
+ };
178
+ preventBodyScroll: {
179
+ type: BooleanConstructor;
180
+ default: boolean;
181
+ };
182
+ teleport: {
183
+ type: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
184
+ default: string;
185
+ };
186
+ frozen: {
187
+ type: BooleanConstructor;
188
+ default: boolean;
189
+ };
190
+ }>> & {
191
+ "onBottom-sheet:close"?: (() => any) | undefined;
192
+ }, "closeLabel" | "open" | "preventBodyScroll" | "teleport" | "frozen">;
154
193
  $attrs: {
155
194
  [x: string]: unknown;
156
195
  };
@@ -160,9 +199,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
160
199
  $slots: Readonly<{
161
200
  [name: string]: import("vue").Slot<any> | undefined;
162
201
  }>;
163
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null;
164
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null;
165
- $host: Element | null;
202
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
203
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
166
204
  $emit: (event: "bottom-sheet:close") => void;
167
205
  $el: any;
168
206
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
@@ -186,22 +224,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
186
224
  type: BooleanConstructor;
187
225
  default: boolean;
188
226
  };
189
- }>> & Readonly<{
227
+ }>> & {
190
228
  "onBottom-sheet:close"?: (() => any) | undefined;
191
- }>, {
229
+ }, {
192
230
  hide: () => void;
193
231
  show: () => void;
194
- isOpen: import("vue").Ref<boolean, boolean>;
232
+ isOpen: import("vue").Ref<boolean>;
195
233
  moveContainer: (translationY: number) => void;
196
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
197
- "bottom-sheet:close": () => any;
234
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
235
+ "bottom-sheet:close": () => void;
198
236
  }, string, {
199
237
  closeLabel: string;
200
238
  open: boolean;
201
239
  preventBodyScroll: boolean;
202
240
  teleport: string | import("vue").RendererElement | null | undefined;
203
241
  frozen: boolean;
204
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & {
242
+ }, {}, string, {}> & {
205
243
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
206
244
  created?: ((() => void) | (() => void)[]) | undefined;
207
245
  beforeMount?: ((() => void) | (() => void)[]) | undefined;
@@ -216,18 +254,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
216
254
  unmounted?: ((() => void) | (() => void)[]) | undefined;
217
255
  renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
218
256
  renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
219
- errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import("vue").ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[]) | undefined;
257
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
220
258
  };
221
259
  $forceUpdate: () => void;
222
260
  $nextTick: typeof import("vue").nextTick;
223
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import("@vue/reactivity").OnCleanup) => any : (args_0: any, args_1: any, args_2: import("@vue/reactivity").OnCleanup) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
224
- } & Readonly<{
225
- closeLabel: string;
226
- open: boolean;
227
- preventBodyScroll: boolean;
228
- teleport: string | import("vue").RendererElement | null | undefined;
229
- frozen: boolean;
230
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
261
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: (cleanupFn: () => void) => void) => any : (args_0: any, args_1: any, args_2: (cleanupFn: () => void) => void) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
262
+ } & Omit<Readonly<import("vue").ExtractPropTypes<{
231
263
  closeLabel: {
232
264
  type: StringConstructor;
233
265
  default: string;
@@ -248,12 +280,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
248
280
  type: BooleanConstructor;
249
281
  default: boolean;
250
282
  };
251
- }>> & Readonly<{
283
+ }>> & {
252
284
  "onBottom-sheet:close"?: (() => any) | undefined;
253
- }>, "hide" | "show" | "isOpen" | "moveContainer" | ("closeLabel" | "open" | "preventBodyScroll" | "teleport" | "frozen")> & import("vue").ShallowUnwrapRef<{
285
+ }, "hide" | "show" | "isOpen" | "moveContainer"> & import("vue").ShallowUnwrapRef<{
254
286
  hide: () => void;
255
287
  show: () => void;
256
- isOpen: import("vue").Ref<boolean, boolean>;
288
+ isOpen: import("vue").Ref<boolean>;
257
289
  moveContainer: (translationY: number) => void;
258
290
  }> & {} & import("vue").ComponentCustomProperties & {} & {
259
291
  $slots: Readonly<{
@@ -264,9 +296,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
264
296
  'bottom-sheet-cta': () => any;
265
297
  };
266
298
  }) | null | undefined;
267
- }> & Readonly<{
299
+ }>>> & {
268
300
  onClick?: (() => any) | undefined;
269
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, Readonly<{
301
+ }, {}, {}>, Readonly<{
270
302
  /** @slot Default slot where you can render anything you need. */
271
303
  default: () => any;
272
304
  }> & {
@@ -279,3 +311,12 @@ type __VLS_WithTemplateSlots<T, S> = T & {
279
311
  $slots: S;
280
312
  };
281
313
  };
314
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
315
+ type __VLS_TypePropsToOption<T> = {
316
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
317
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
318
+ } : {
319
+ type: import('vue').PropType<T[K]>;
320
+ required: true;
321
+ };
322
+ };
@@ -1,6 +1,6 @@
1
1
  import { TJoyButtonSizes, TJoyButtonVariants } from './JoyButton.types';
2
2
  import { PropType } from 'vue';
3
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
4
  /**
5
5
  * If you only need a button with an icon. To keep your component accessible, you can give a text as slot, it will be used as title and aria-label.
6
6
  * This property takes effect only if icon property is set
@@ -39,9 +39,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
39
39
  type: PropType<TJoyButtonSizes>;
40
40
  default: string;
41
41
  };
42
- }>, {
43
- randomId: import("vue").Ref<string | undefined, string | undefined>;
44
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
42
+ }, {
43
+ randomId: import("vue").Ref<string | undefined>;
44
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
45
45
  /**
46
46
  * If you only need a button with an icon. To keep your component accessible, you can give a text as slot, it will be used as title and aria-label.
47
47
  * This property takes effect only if icon property is set
@@ -80,13 +80,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<im
80
80
  type: PropType<TJoyButtonSizes>;
81
81
  default: string;
82
82
  };
83
- }>> & Readonly<{}>, {
83
+ }>>, {
84
+ size: TJoyButtonSizes;
84
85
  circle: boolean;
85
86
  loading: boolean;
86
- size: TJoyButtonSizes;
87
87
  variant: TJoyButtonVariants;
88
88
  iconPosition: import("../../types/index.js").TPositions;
89
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, Readonly<{
89
+ }, {}>, Readonly<{
90
90
  /** Default slot for button text */
91
91
  default(): any;
92
92
  }> & {
@@ -2,5 +2,5 @@
2
2
  * TEMP: maybe we can make it a shared composable. No need for now
3
3
  */
4
4
  export declare function useRandomId(): {
5
- randomId: import("vue").Ref<string | undefined, string | undefined>;
5
+ randomId: import("vue").Ref<string | undefined>;
6
6
  };