@maltjoy/core-vue 3.9.0 → 3.9.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.
@@ -31,7 +31,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
31
31
  };
32
32
  /** Button or Link color variant */
33
33
  variant: {
34
- type: PropType<"main" | "ghost" | "primary" | "secondary" | "white" | "admin">;
34
+ type: PropType<"main" | "ghost" | "secondary" | "primary" | "white" | "admin">;
35
35
  default: string;
36
36
  validator(variant: ButtonVariants): boolean;
37
37
  };
@@ -72,7 +72,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
72
72
  };
73
73
  /** Button or Link color variant */
74
74
  variant: {
75
- type: PropType<"main" | "ghost" | "primary" | "secondary" | "white" | "admin">;
75
+ type: PropType<"main" | "ghost" | "secondary" | "primary" | "white" | "admin">;
76
76
  default: string;
77
77
  validator(variant: ButtonVariants): boolean;
78
78
  };
@@ -84,7 +84,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
84
84
  };
85
85
  }>>, {
86
86
  circle: boolean;
87
- variant: "main" | "ghost" | "primary" | "secondary" | "white" | "admin";
87
+ variant: "main" | "ghost" | "secondary" | "primary" | "white" | "admin";
88
88
  size: ButtonSizes;
89
89
  iconPosition: "left" | "right";
90
90
  loading: boolean;
@@ -86,6 +86,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
86
86
  default: string;
87
87
  };
88
88
  }, {
89
+ coords: {
90
+ position?: string | undefined;
91
+ zIndex?: string | undefined;
92
+ left: string;
93
+ top: string;
94
+ right: string;
95
+ };
89
96
  showDropdownList: import("vue").Ref<boolean>;
90
97
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
91
98
  "update:modelValue": (value: string | undefined) => void;
@@ -5,7 +5,7 @@ declare const _default: import("vue").DefineComponent<{
5
5
  required: true;
6
6
  };
7
7
  color: {
8
- type: PropType<"primary" | "secondary" | "tertiary" | "quaternary" | "info" | "error" | "white" | "warning" | "neutral" | "success" | "brand-primary" | "brand-secondary">;
8
+ type: PropType<"secondary" | "primary" | "tertiary" | "quaternary" | "info" | "error" | "white" | "warning" | "neutral" | "success" | "brand-primary" | "brand-secondary">;
9
9
  default: string;
10
10
  };
11
11
  size: {
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<{
18
18
  required: true;
19
19
  };
20
20
  color: {
21
- type: PropType<"primary" | "secondary" | "tertiary" | "quaternary" | "info" | "error" | "white" | "warning" | "neutral" | "success" | "brand-primary" | "brand-secondary">;
21
+ type: PropType<"secondary" | "primary" | "tertiary" | "quaternary" | "info" | "error" | "white" | "warning" | "neutral" | "success" | "brand-primary" | "brand-secondary">;
22
22
  default: string;
23
23
  };
24
24
  size: {
@@ -26,7 +26,7 @@ declare const _default: import("vue").DefineComponent<{
26
26
  default: string;
27
27
  };
28
28
  }>>, {
29
- color: "primary" | "secondary" | "tertiary" | "quaternary" | "info" | "error" | "white" | "warning" | "neutral" | "success" | "brand-primary" | "brand-secondary";
29
+ color: "secondary" | "primary" | "tertiary" | "quaternary" | "info" | "error" | "white" | "warning" | "neutral" | "success" | "brand-primary" | "brand-secondary";
30
30
  size: "small" | "xsmall" | "xxsmall" | "medium" | "large" | "xlarge";
31
31
  }, {}>;
32
32
  export default _default;
@@ -51,7 +51,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
51
51
  default: string;
52
52
  validator(size: InputSizes): boolean;
53
53
  };
54
- type: StringConstructor;
54
+ type: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
55
58
  /** Adds a legend like symbol on the right of the component. Made for number based values */
56
59
  unit: StringConstructor;
57
60
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -105,11 +108,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
105
108
  default: string;
106
109
  validator(size: InputSizes): boolean;
107
110
  };
108
- type: StringConstructor;
111
+ type: {
112
+ type: StringConstructor;
113
+ default: string;
114
+ };
109
115
  /** Adds a legend like symbol on the right of the component. Made for number based values */
110
116
  unit: StringConstructor;
111
117
  }>>, {
112
118
  disabled: boolean;
119
+ type: string;
113
120
  size: InputSizes;
114
121
  required: boolean;
115
122
  invalid: boolean;
@@ -10,10 +10,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
10
10
  default: string;
11
11
  validator(color: LinkColors): boolean;
12
12
  };
13
- icon: {
14
- type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
15
- };
16
- text: StringConstructor;
13
+ icon: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
14
+ text: PropType<string | null>;
17
15
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
18
16
  href: {
19
17
  type: StringConstructor;
@@ -24,10 +22,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
24
22
  default: string;
25
23
  validator(color: LinkColors): boolean;
26
24
  };
27
- icon: {
28
- type: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
29
- };
30
- text: StringConstructor;
25
+ icon: PropType<import("@maltjoy/icons/dist/joy-icons").JoyIconsId>;
26
+ text: PropType<string | null>;
31
27
  }>>, {
32
28
  color: "teal" | "white";
33
29
  }, {}>, {
@@ -0,0 +1,9 @@
1
+ import { Ref } from 'vue';
2
+ /**
3
+ * Check if your current Node is a child of an Overlay component (dialog, drawer...)
4
+ *
5
+ * @param node - Vue ref of the node you want to check.
6
+ */
7
+ export declare function useCheckIfParentIsOverlay(node: Ref): {
8
+ isInOverlay: Ref<boolean>;
9
+ };
@@ -1,2 +1,3 @@
1
- export * from './props';
2
1
  export * from './events';
2
+ export * from './helpers';
3
+ export * from './props';
@@ -1,3 +1,5 @@
1
1
  import { JoyIconsNames } from '@/components/JoyIcon/JoyIcon.types';
2
+ import { Ref } from 'vue';
2
3
  import { LEVELS } from '../types';
3
4
  export declare function iconLevel(level: (typeof LEVELS)[number]): JoyIconsNames;
5
+ export declare function focusOnFirstFocusableFormField(root: Ref): any;