@maltjoy/core-vue 1.0.0-alpha.1.1 → 1.0.0-alpha.3
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/README.md +1 -1
- package/dist/App.vue.d.ts +2 -0
- package/dist/components/JoyButton/JoyButton.types.d.ts +1 -1
- package/dist/components/JoyButton/JoyButton.vue.d.ts +18 -28
- package/dist/components/JoyButton/tests/JoyButton.spec.d.ts +1 -0
- package/dist/components/JoyInput/JoyInput.vue.d.ts +14 -65
- package/dist/components/JoyLabel/JoyLabel.vue.d.ts +24 -10
- package/dist/components/JoyLabel/tests/JoyLabel.spec.d.ts +1 -0
- package/dist/components/JoyLink/JoyLink.types.d.ts +2 -0
- package/dist/components/JoyLink/JoyLink.vue.d.ts +35 -0
- package/dist/components/JoyRadio/JoyRadio.vue.d.ts +56 -0
- package/dist/components/JoyRadio/tests/JoyRadio.spec.d.ts +1 -0
- package/dist/components/JoyRadioGroup/JoyRadioGroup.vue.d.ts +50 -0
- package/dist/components/JoySelect/JoySelect.types.d.ts +2 -0
- package/dist/components/JoySelect/JoySelect.vue.d.ts +98 -0
- package/dist/components/JoySelect/tests/JoySelect.spec.d.ts +1 -0
- package/dist/components/JoySpinner/JoySpinner.vue.d.ts +6 -6
- package/dist/components/JoyTemplate/JoyTemplate.vue.d.ts +35 -0
- package/dist/components/JoyWrapper/JoyWrapper.vue.d.ts +10 -3
- package/dist/components/index.d.ts +11 -6
- package/dist/components/main.d.ts +2 -2
- package/dist/joy-vue.js +445 -110
- package/dist/joy-vue.umd.cjs +1 -1
- package/dist/main.d.ts +1 -0
- package/dist/style.css +1 -1
- package/joy-components.d.ts +6 -1
- package/package.json +50 -50
- package/dist/vite-env.d.ts +0 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Vue version of [@maltjoy/core](https://www.npmjs.com/package/@maltjoy/core) pack
|
|
|
4
4
|
|
|
5
5
|
In order to inherit from all [@maltjoy/themes](https://www.npmjs.com/package/@maltjoy/themes) custom properties, you will need to import as well the default theme:
|
|
6
6
|
|
|
7
|
-
> If you already use @maltjoy/core in your project, it already
|
|
7
|
+
> If you already use @maltjoy/core in your project, it already includes the theme.
|
|
8
8
|
|
|
9
9
|
```
|
|
10
10
|
npm install @maltjoy/themes
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GENERIC_VARIANTS, SIZES } from '
|
|
1
|
+
import { GENERIC_VARIANTS, SIZES } from '@/types';
|
|
2
2
|
/** BUTTON VARIANTS/COLORS */
|
|
3
3
|
declare const BUTTONS_SPECIFIC_VARIANTS: readonly ["main", "admin", "white", "ghost"];
|
|
4
4
|
export declare const BUTTON_VARIANTS: ((typeof GENERIC_VARIANTS)[number] | (typeof BUTTONS_SPECIFIC_VARIANTS)[number])[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ButtonSizes, ButtonVariants, IconSizes } from
|
|
2
|
-
import { PropType } from
|
|
3
|
-
declare const
|
|
1
|
+
import { ButtonSizes, ButtonVariants, IconSizes } from './JoyButton.types';
|
|
2
|
+
import { PropType } from 'vue';
|
|
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
|
|
@@ -18,13 +18,13 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
18
18
|
};
|
|
19
19
|
/** Button or Link color variant */
|
|
20
20
|
variant: {
|
|
21
|
-
type: PropType<"
|
|
21
|
+
type: PropType<"white" | "main" | "primary" | "secondary" | "admin" | "ghost">;
|
|
22
22
|
default: string;
|
|
23
23
|
validator(variant: ButtonVariants): boolean;
|
|
24
24
|
};
|
|
25
25
|
/** Button or Link size */
|
|
26
26
|
size: {
|
|
27
|
-
type: PropType<"
|
|
27
|
+
type: PropType<"small" | "xlarge" | "large" | "medium" | "xsmall" | "xxsmall">;
|
|
28
28
|
default: string;
|
|
29
29
|
validator(variant: ButtonSizes): boolean;
|
|
30
30
|
};
|
|
@@ -34,24 +34,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
34
34
|
default: string;
|
|
35
35
|
validator(iconSize: IconSizes): boolean;
|
|
36
36
|
};
|
|
37
|
-
}, {
|
|
38
|
-
props: any;
|
|
39
|
-
attrs: {
|
|
40
|
-
[x: string]: unknown;
|
|
41
|
-
};
|
|
42
|
-
spinnerColor: import("vue").ComputedRef<"white" | "teal">;
|
|
43
|
-
JoySpinner: import("vue").DefineComponent<{
|
|
44
|
-
color: {
|
|
45
|
-
type: PropType<"white" | "teal">;
|
|
46
|
-
validator(color: "white" | "teal"): boolean;
|
|
47
|
-
};
|
|
48
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
|
-
color: {
|
|
50
|
-
type: PropType<"white" | "teal">;
|
|
51
|
-
validator(color: "white" | "teal"): boolean;
|
|
52
|
-
};
|
|
53
|
-
}>>, {}>;
|
|
54
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
37
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
38
|
/**
|
|
56
39
|
* 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.
|
|
57
40
|
* This property takes effect only if icon property is set
|
|
@@ -69,13 +52,13 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
69
52
|
};
|
|
70
53
|
/** Button or Link color variant */
|
|
71
54
|
variant: {
|
|
72
|
-
type: PropType<"
|
|
55
|
+
type: PropType<"white" | "main" | "primary" | "secondary" | "admin" | "ghost">;
|
|
73
56
|
default: string;
|
|
74
57
|
validator(variant: ButtonVariants): boolean;
|
|
75
58
|
};
|
|
76
59
|
/** Button or Link size */
|
|
77
60
|
size: {
|
|
78
|
-
type: PropType<"
|
|
61
|
+
type: PropType<"small" | "xlarge" | "large" | "medium" | "xsmall" | "xxsmall">;
|
|
79
62
|
default: string;
|
|
80
63
|
validator(variant: ButtonSizes): boolean;
|
|
81
64
|
};
|
|
@@ -88,8 +71,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
88
71
|
}>>, {
|
|
89
72
|
circle: boolean;
|
|
90
73
|
loading: boolean;
|
|
91
|
-
variant: "
|
|
92
|
-
size: "
|
|
74
|
+
variant: "white" | "main" | "primary" | "secondary" | "admin" | "ghost";
|
|
75
|
+
size: "small" | "xlarge" | "large" | "medium" | "xsmall" | "xxsmall";
|
|
93
76
|
iconSize: "small" | "xsmall" | "xxsmall";
|
|
77
|
+
}>, {
|
|
78
|
+
default: (_: {}) => any;
|
|
94
79
|
}>;
|
|
95
|
-
export default
|
|
80
|
+
export default _default;
|
|
81
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
82
|
+
new (): {
|
|
83
|
+
$slots: S;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropType } from
|
|
2
|
-
declare const
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
clearable: {
|
|
4
4
|
type: BooleanConstructor;
|
|
5
5
|
default: boolean;
|
|
@@ -9,7 +9,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
9
9
|
type: BooleanConstructor;
|
|
10
10
|
default: boolean;
|
|
11
11
|
};
|
|
12
|
-
labelSize: PropType<"
|
|
12
|
+
labelSize: PropType<"small" | "large" | "medium">;
|
|
13
13
|
modelValue: {
|
|
14
14
|
type: StringConstructor;
|
|
15
15
|
default: string;
|
|
@@ -19,7 +19,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
19
19
|
*/
|
|
20
20
|
name: {
|
|
21
21
|
type: StringConstructor;
|
|
22
|
-
required: true;
|
|
23
22
|
};
|
|
24
23
|
optionalLabel: StringConstructor;
|
|
25
24
|
required: {
|
|
@@ -36,63 +35,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
36
35
|
};
|
|
37
36
|
type: StringConstructor;
|
|
38
37
|
unit: StringConstructor;
|
|
39
|
-
}, {
|
|
40
|
-
emit: (event: "update:modelValue", ...args: any[]) => void;
|
|
41
|
-
props: any;
|
|
42
|
-
input: import("vue").Ref<HTMLInputElement | undefined>;
|
|
43
|
-
root: import("vue").Ref<HTMLElement | undefined>;
|
|
44
|
-
attrs: {
|
|
45
|
-
[x: string]: unknown;
|
|
46
|
-
};
|
|
47
|
-
slots: Readonly<{
|
|
48
|
-
[name: string]: import("vue").Slot | undefined;
|
|
49
|
-
}>;
|
|
50
|
-
isFocusing: import("vue").Ref<boolean>;
|
|
51
|
-
showClearableIcon: import("vue").ComputedRef<boolean>;
|
|
52
|
-
hasDefaultSlot: import("vue").ComputedRef<import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
53
|
-
[key: string]: any;
|
|
54
|
-
}>[] | undefined>;
|
|
55
|
-
withinJoyWrapper: import("vue").ComputedRef<boolean>;
|
|
56
|
-
inputType: import("vue").Ref<string | undefined>;
|
|
57
|
-
eventHandlers: {
|
|
58
|
-
onFocus: () => void;
|
|
59
|
-
onBlur: () => void;
|
|
60
|
-
onInput: (e: Event) => void;
|
|
61
|
-
clearValue: () => void;
|
|
62
|
-
};
|
|
63
|
-
JoyLabel: import("vue").DefineComponent<{
|
|
64
|
-
size: {
|
|
65
|
-
type: PropType<"large" | "medium" | "small">;
|
|
66
|
-
default: string;
|
|
67
|
-
validator(size: "large" | "medium" | "small"): boolean;
|
|
68
|
-
};
|
|
69
|
-
required: {
|
|
70
|
-
type: BooleanConstructor;
|
|
71
|
-
default: boolean;
|
|
72
|
-
};
|
|
73
|
-
optionalLabel: {
|
|
74
|
-
type: StringConstructor;
|
|
75
|
-
};
|
|
76
|
-
}, {
|
|
77
|
-
props: any;
|
|
78
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
79
|
-
size: {
|
|
80
|
-
type: PropType<"large" | "medium" | "small">;
|
|
81
|
-
default: string;
|
|
82
|
-
validator(size: "large" | "medium" | "small"): boolean;
|
|
83
|
-
};
|
|
84
|
-
required: {
|
|
85
|
-
type: BooleanConstructor;
|
|
86
|
-
default: boolean;
|
|
87
|
-
};
|
|
88
|
-
optionalLabel: {
|
|
89
|
-
type: StringConstructor;
|
|
90
|
-
};
|
|
91
|
-
}>>, {
|
|
92
|
-
size: "large" | "medium" | "small";
|
|
93
|
-
required: boolean;
|
|
94
|
-
}>;
|
|
95
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
96
39
|
clearable: {
|
|
97
40
|
type: BooleanConstructor;
|
|
98
41
|
default: boolean;
|
|
@@ -102,7 +45,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
102
45
|
type: BooleanConstructor;
|
|
103
46
|
default: boolean;
|
|
104
47
|
};
|
|
105
|
-
labelSize: PropType<"
|
|
48
|
+
labelSize: PropType<"small" | "large" | "medium">;
|
|
106
49
|
modelValue: {
|
|
107
50
|
type: StringConstructor;
|
|
108
51
|
default: string;
|
|
@@ -112,7 +55,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
112
55
|
*/
|
|
113
56
|
name: {
|
|
114
57
|
type: StringConstructor;
|
|
115
|
-
required: true;
|
|
116
58
|
};
|
|
117
59
|
optionalLabel: StringConstructor;
|
|
118
60
|
required: {
|
|
@@ -133,10 +75,17 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
133
75
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
134
76
|
}, {
|
|
135
77
|
size: string;
|
|
78
|
+
required: boolean;
|
|
136
79
|
clearable: boolean;
|
|
137
80
|
invalid: boolean;
|
|
138
81
|
modelValue: string;
|
|
139
|
-
required: boolean;
|
|
140
82
|
requiredMark: boolean;
|
|
83
|
+
}>, {
|
|
84
|
+
default: (_: {}) => any;
|
|
141
85
|
}>;
|
|
142
|
-
export default
|
|
86
|
+
export default _default;
|
|
87
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
88
|
+
new (): {
|
|
89
|
+
$slots: S;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { PropType } from
|
|
2
|
-
import { LabelSizes } from
|
|
3
|
-
declare const
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { LabelSizes } from './JoyLabel.types';
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
4
|
size: {
|
|
5
|
-
type: PropType<"
|
|
5
|
+
type: PropType<"small" | "large" | "medium">;
|
|
6
6
|
default: string;
|
|
7
7
|
validator(size: LabelSizes): boolean;
|
|
8
8
|
};
|
|
9
|
+
tagName: {
|
|
10
|
+
type: PropType<"label" | "legend">;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
9
13
|
required: {
|
|
10
14
|
type: BooleanConstructor;
|
|
11
15
|
default: boolean;
|
|
@@ -13,14 +17,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
13
17
|
optionalLabel: {
|
|
14
18
|
type: StringConstructor;
|
|
15
19
|
};
|
|
16
|
-
}, {
|
|
17
|
-
props: any;
|
|
18
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
21
|
size: {
|
|
20
|
-
type: PropType<"
|
|
22
|
+
type: PropType<"small" | "large" | "medium">;
|
|
21
23
|
default: string;
|
|
22
24
|
validator(size: LabelSizes): boolean;
|
|
23
25
|
};
|
|
26
|
+
tagName: {
|
|
27
|
+
type: PropType<"label" | "legend">;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
24
30
|
required: {
|
|
25
31
|
type: BooleanConstructor;
|
|
26
32
|
default: boolean;
|
|
@@ -29,7 +35,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
29
35
|
type: StringConstructor;
|
|
30
36
|
};
|
|
31
37
|
}>>, {
|
|
32
|
-
size: "
|
|
38
|
+
size: "small" | "large" | "medium";
|
|
39
|
+
tagName: "label" | "legend";
|
|
33
40
|
required: boolean;
|
|
41
|
+
}>, {
|
|
42
|
+
default: (_: {}) => any;
|
|
34
43
|
}>;
|
|
35
|
-
export default
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { LinkColors } from './JoyLink.types';
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
|
+
href: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
color: {
|
|
9
|
+
type: PropType<"teal" | "white">;
|
|
10
|
+
default: string;
|
|
11
|
+
validator(color: LinkColors): boolean;
|
|
12
|
+
};
|
|
13
|
+
icon: StringConstructor;
|
|
14
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
href: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
color: {
|
|
20
|
+
type: PropType<"teal" | "white">;
|
|
21
|
+
default: string;
|
|
22
|
+
validator(color: LinkColors): boolean;
|
|
23
|
+
};
|
|
24
|
+
icon: StringConstructor;
|
|
25
|
+
}>>, {
|
|
26
|
+
color: "teal" | "white";
|
|
27
|
+
}>, {
|
|
28
|
+
default: (_: {}) => any;
|
|
29
|
+
}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
+
disabled: BooleanConstructor;
|
|
4
|
+
invalid: BooleanConstructor;
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: StringConstructor;
|
|
7
|
+
};
|
|
8
|
+
name: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
};
|
|
11
|
+
required: BooleanConstructor;
|
|
12
|
+
theme: {
|
|
13
|
+
type: PropType<"default" | "outline">;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
value: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
checked: import("vue").ComputedRef<boolean>;
|
|
21
|
+
isExpanded: import("vue").Ref<boolean>;
|
|
22
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
disabled: BooleanConstructor;
|
|
24
|
+
invalid: BooleanConstructor;
|
|
25
|
+
modelValue: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
};
|
|
28
|
+
name: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
};
|
|
31
|
+
required: BooleanConstructor;
|
|
32
|
+
theme: {
|
|
33
|
+
type: PropType<"default" | "outline">;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
value: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
};
|
|
39
|
+
}>> & {
|
|
40
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
}, {
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
required: boolean;
|
|
44
|
+
invalid: boolean;
|
|
45
|
+
theme: "default" | "outline";
|
|
46
|
+
}>, {
|
|
47
|
+
default: (_: {}) => any;
|
|
48
|
+
'radio-content': (_: {}) => any;
|
|
49
|
+
'expandable-content': (_: {}) => any;
|
|
50
|
+
}>;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
+
direction: {
|
|
4
|
+
type: PropType<"vertical" | "horizontal">;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
form: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
};
|
|
10
|
+
modelValue: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
};
|
|
13
|
+
name: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
};
|
|
16
|
+
invalid: BooleanConstructor;
|
|
17
|
+
invalidText: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
};
|
|
20
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
direction: {
|
|
22
|
+
type: PropType<"vertical" | "horizontal">;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
form: {
|
|
26
|
+
type: StringConstructor;
|
|
27
|
+
};
|
|
28
|
+
modelValue: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
};
|
|
31
|
+
name: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
};
|
|
34
|
+
invalid: BooleanConstructor;
|
|
35
|
+
invalidText: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
};
|
|
38
|
+
}>>, {
|
|
39
|
+
invalid: boolean;
|
|
40
|
+
direction: "vertical" | "horizontal";
|
|
41
|
+
}>, {
|
|
42
|
+
'radio-group-legend': (_: {}) => any;
|
|
43
|
+
default: (_: {}) => any;
|
|
44
|
+
}>;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { LabelSizes } from './JoySelect.types';
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
|
+
disabled: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
invalid: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
id: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
};
|
|
15
|
+
label: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
};
|
|
18
|
+
labelSize: {
|
|
19
|
+
type: PropType<LabelSizes>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
modelValue: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
name: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
optionalLabel: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
};
|
|
33
|
+
required: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
requiredMark: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
disabled: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
invalid: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
id: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
};
|
|
53
|
+
label: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
};
|
|
56
|
+
labelSize: {
|
|
57
|
+
type: PropType<LabelSizes>;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
modelValue: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
name: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
optionalLabel: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
};
|
|
71
|
+
required: {
|
|
72
|
+
type: BooleanConstructor;
|
|
73
|
+
default: boolean;
|
|
74
|
+
};
|
|
75
|
+
requiredMark: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
}>> & {
|
|
80
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
}, {
|
|
82
|
+
disabled: boolean;
|
|
83
|
+
required: boolean;
|
|
84
|
+
invalid: boolean;
|
|
85
|
+
modelValue: string;
|
|
86
|
+
name: string;
|
|
87
|
+
requiredMark: boolean;
|
|
88
|
+
labelSize: LabelSizes;
|
|
89
|
+
}>, {
|
|
90
|
+
label: (_: {}) => any;
|
|
91
|
+
default: (_: {}) => any;
|
|
92
|
+
}>;
|
|
93
|
+
export default _default;
|
|
94
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
95
|
+
new (): {
|
|
96
|
+
$slots: S;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { PropType } from
|
|
2
|
-
import { SpinnerColors } from
|
|
3
|
-
declare const
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { SpinnerColors } from './JoySpinner.types';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
color: {
|
|
5
|
-
type: PropType<"
|
|
5
|
+
type: PropType<"teal" | "white">;
|
|
6
6
|
validator(color: SpinnerColors): boolean;
|
|
7
7
|
};
|
|
8
8
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
9
|
color: {
|
|
10
|
-
type: PropType<"
|
|
10
|
+
type: PropType<"teal" | "white">;
|
|
11
11
|
validator(color: SpinnerColors): boolean;
|
|
12
12
|
};
|
|
13
13
|
}>>, {}>;
|
|
14
|
-
export default
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
+
full: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
sidebar: {
|
|
8
|
+
type: PropType<"left" | "right">;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
12
|
+
full: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
sidebar: {
|
|
17
|
+
type: PropType<"left" | "right">;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
}>>, {
|
|
21
|
+
full: boolean;
|
|
22
|
+
sidebar: "left" | "right";
|
|
23
|
+
}>, {
|
|
24
|
+
'template-back': (_: {}) => any;
|
|
25
|
+
'template-title': (_: {}) => any;
|
|
26
|
+
'template-subtitle': (_: {}) => any;
|
|
27
|
+
'template-main': (_: {}) => any;
|
|
28
|
+
'template-sidebar': (_: {}) => any;
|
|
29
|
+
}>;
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
32
|
+
new (): {
|
|
33
|
+
$slots: S;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
|
-
declare const
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
3
|
justify: {
|
|
4
4
|
type: PropType<"center" | "space-between" | "flex-start" | "flex-end">;
|
|
5
5
|
default: string;
|
|
@@ -34,9 +34,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
|
|
|
34
34
|
default: string;
|
|
35
35
|
};
|
|
36
36
|
}>>, {
|
|
37
|
+
direction: "row" | "column";
|
|
37
38
|
wrap: "nowrap" | "wrap";
|
|
38
39
|
justify: "center" | "space-between" | "flex-start" | "flex-end";
|
|
39
40
|
align: "center" | "flex-start" | "flex-end" | "stretch";
|
|
40
|
-
|
|
41
|
+
}>, {
|
|
42
|
+
default: (_: {}) => any;
|
|
41
43
|
}>;
|
|
42
|
-
export default
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import JoyButton from '
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
1
|
+
import JoyButton from '@/components/JoyButton/JoyButton.vue';
|
|
2
|
+
import JoyInput from '@/components/JoyInput/JoyInput.vue';
|
|
3
|
+
import JoyLabel from '@/components/JoyLabel/JoyLabel.vue';
|
|
4
|
+
import JoyLink from '@/components/JoyLink/JoyLink.vue';
|
|
5
|
+
import JoyRadio from '@/components/JoyRadio/JoyRadio.vue';
|
|
6
|
+
import JoyRadioGroup from '@/components/JoyRadioGroup/JoyRadioGroup.vue';
|
|
7
|
+
import JoySelect from '@/components/JoySelect/JoySelect.vue';
|
|
8
|
+
import JoySpinner from '@/components/JoySpinner/JoySpinner.vue';
|
|
9
|
+
import JoyWrapper from '@/components/JoyWrapper/JoyWrapper.vue';
|
|
10
|
+
import JoyTemplate from '@/components/JoyTemplate/JoyTemplate.vue';
|
|
11
|
+
export { JoyButton, JoyInput, JoyLabel, JoyLink, JoyRadio, JoyRadioGroup, JoySelect, JoySpinner, JoyTemplate, JoyWrapper };
|