@maltjoy/core-vue 1.0.0-alpha.2 → 1.0.0-alpha.4

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 (44) hide show
  1. package/dist/App.vue.d.ts +2 -0
  2. package/dist/components/JoyButton/JoyButton.types.d.ts +1 -1
  3. package/dist/components/JoyButton/JoyButton.vue.d.ts +18 -28
  4. package/dist/components/JoyButton/tests/JoyButton.spec.d.ts +1 -0
  5. package/dist/components/JoyCheckbox/JoyCheckbox.vue.d.ts +85 -0
  6. package/dist/components/JoyCheckbox/tests/JoyCheckbox.spec.d.ts +1 -0
  7. package/dist/components/JoyFormError/JoyFormError.vue.d.ts +23 -0
  8. package/dist/components/JoyFormError/tests/JoyFormError.spec.d.ts +1 -0
  9. package/dist/components/JoyHighlight/JoyHighlight.types.d.ts +3 -0
  10. package/dist/components/JoyHighlight/JoyHighlight.vue.d.ts +48 -0
  11. package/dist/components/JoyHighlight/tests/JoyHighlight.spec.d.ts +1 -0
  12. package/dist/components/JoyInput/JoyInput.vue.d.ts +56 -90
  13. package/dist/components/JoyLabel/JoyLabel.vue.d.ts +24 -10
  14. package/dist/components/JoyLabel/tests/JoyLabel.spec.d.ts +1 -0
  15. package/dist/components/JoyLink/JoyLink.types.d.ts +2 -0
  16. package/dist/components/JoyLink/JoyLink.vue.d.ts +35 -0
  17. package/dist/components/JoyRadio/JoyRadio.vue.d.ts +80 -0
  18. package/dist/components/JoyRadio/tests/JoyRadio.spec.d.ts +1 -0
  19. package/dist/components/JoyRadioGroup/JoyRadioGroup.vue.d.ts +50 -0
  20. package/dist/components/JoySelect/JoySelect.vue.d.ts +89 -0
  21. package/dist/components/JoySelect/tests/JoySelect.spec.d.ts +1 -0
  22. package/dist/components/JoySpinner/JoySpinner.vue.d.ts +6 -6
  23. package/dist/components/JoyTemplate/JoyTemplate.vue.d.ts +35 -0
  24. package/dist/components/JoyToggle/JoyToggle.vue.d.ts +71 -0
  25. package/dist/components/JoyToggle/tests/JoyToggle.spec.d.ts +1 -0
  26. package/dist/components/JoyWrapper/JoyWrapper.vue.d.ts +18 -11
  27. package/dist/components/index.d.ts +15 -6
  28. package/dist/components/main.d.ts +2 -3
  29. package/dist/composables/index.d.ts +1 -0
  30. package/dist/composables/props.d.ts +56 -0
  31. package/dist/helpers/index.d.ts +2 -0
  32. package/dist/joy-vue.js +646 -130
  33. package/dist/joy-vue.umd.cjs +1 -1
  34. package/dist/main.d.ts +1 -0
  35. package/dist/style.css +1 -1
  36. package/dist/tests/composables/prop.spec.d.ts +1 -0
  37. package/dist/tests/composables/test-components/CheckboxFormProps.vue.d.ts +62 -0
  38. package/dist/tests/composables/test-components/GenericFormProps.vue.d.ts +44 -0
  39. package/dist/tests/composables/test-components/GenericFormPropsWithLabel.vue.d.ts +55 -0
  40. package/dist/tests/helpers.spec.d.ts +1 -0
  41. package/dist/types/index.d.ts +1 -0
  42. package/joy-components.d.ts +15 -5
  43. package/package.json +50 -50
  44. package/dist/vite-env.d.ts +0 -1
@@ -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 '../../types';
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 "./JoyButton.types";
2
- import { PropType } from "vue";
3
- declare const _sfc_main: import("vue").DefineComponent<{
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<"primary" | "secondary" | "main" | "admin" | "white" | "ghost">;
21
+ type: PropType<"main" | "secondary" | "white" | "primary" | "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<"xlarge" | "large" | "medium" | "small" | "xsmall" | "xxsmall">;
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<"primary" | "secondary" | "main" | "admin" | "white" | "ghost">;
55
+ type: PropType<"main" | "secondary" | "white" | "primary" | "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<"xlarge" | "large" | "medium" | "small" | "xsmall" | "xxsmall">;
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: "primary" | "secondary" | "main" | "admin" | "white" | "ghost";
92
- size: "xlarge" | "large" | "medium" | "small" | "xsmall" | "xxsmall";
74
+ variant: "main" | "secondary" | "white" | "primary" | "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 _sfc_main;
80
+ export default _default;
81
+ type __VLS_WithTemplateSlots<T, S> = T & {
82
+ new (): {
83
+ $slots: S;
84
+ };
85
+ };
@@ -0,0 +1,85 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ disabled: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ id: {
7
+ type: StringConstructor;
8
+ }; /** Can't be used in addition of v-model. See usage : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes */
9
+ invalid: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ name: {
14
+ type: StringConstructor;
15
+ };
16
+ required: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ modelValue: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ value: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ /** Can't be used in addition of v-model. See usage : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes */
29
+ indeterminate: {
30
+ type: BooleanConstructor;
31
+ default: boolean;
32
+ };
33
+ }, {
34
+ isIndeterminate: import("vue").Ref<boolean>;
35
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
+ disabled: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ id: {
41
+ type: StringConstructor;
42
+ }; /** Can't be used in addition of v-model. See usage : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes */
43
+ invalid: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ name: {
48
+ type: StringConstructor;
49
+ };
50
+ required: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ modelValue: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ value: {
59
+ type: StringConstructor;
60
+ default: string;
61
+ };
62
+ /** Can't be used in addition of v-model. See usage : https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes */
63
+ indeterminate: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ }>> & {
68
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
69
+ }, {
70
+ disabled: boolean;
71
+ indeterminate: boolean;
72
+ invalid: boolean;
73
+ required: boolean;
74
+ modelValue: boolean;
75
+ value: string;
76
+ }>, {
77
+ default: (_: {}) => any;
78
+ 'checkbox-content': (_: {}) => any;
79
+ }>;
80
+ export default _default;
81
+ type __VLS_WithTemplateSlots<T, S> = T & {
82
+ new (): {
83
+ $slots: S;
84
+ };
85
+ };
@@ -0,0 +1,23 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
2
+ visible: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ noHtmlErrorText: StringConstructor;
7
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
8
+ visible: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ noHtmlErrorText: StringConstructor;
13
+ }>>, {
14
+ visible: boolean;
15
+ }>, {
16
+ default: (_: {}) => any;
17
+ }>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };
@@ -0,0 +1,3 @@
1
+ import { LEVELS } from '@/types';
2
+ export type HighlightLevels = (typeof LEVELS)[number];
3
+ export declare const HIGHLIGHT_LEVELS: ("error" | "neutral" | "success" | "info" | "warning")[];
@@ -0,0 +1,48 @@
1
+ import { PropType } from 'vue';
2
+ import { HighlightLevels } from './JoyHighlight.types';
3
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
4
+ accent: {
5
+ type: BooleanConstructor;
6
+ default: boolean;
7
+ };
8
+ displayIcon: {
9
+ type: BooleanConstructor;
10
+ default: boolean;
11
+ };
12
+ icon: StringConstructor;
13
+ level: {
14
+ type: PropType<"error" | "neutral" | "success" | "info" | "warning">;
15
+ default: string;
16
+ validator(level: HighlightLevels): boolean;
17
+ };
18
+ }, {
19
+ getRelevantIcon: import("vue").ComputedRef<string>;
20
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
+ accent: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ displayIcon: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ icon: StringConstructor;
30
+ level: {
31
+ type: PropType<"error" | "neutral" | "success" | "info" | "warning">;
32
+ default: string;
33
+ validator(level: HighlightLevels): boolean;
34
+ };
35
+ }>>, {
36
+ accent: boolean;
37
+ displayIcon: boolean;
38
+ level: "error" | "neutral" | "success" | "info" | "warning";
39
+ }>, {
40
+ 'highlight-title': (_: {}) => any;
41
+ default: (_: {}) => any;
42
+ }>;
43
+ export default _default;
44
+ type __VLS_WithTemplateSlots<T, S> = T & {
45
+ new (): {
46
+ $slots: S;
47
+ };
48
+ };
@@ -1,31 +1,14 @@
1
- import { PropType } from "vue";
2
- declare const _sfc_main: import("vue").DefineComponent<{
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
2
  clearable: {
4
3
  type: BooleanConstructor;
5
4
  default: boolean;
6
5
  };
7
6
  icon: StringConstructor;
8
- invalid: {
9
- type: BooleanConstructor;
10
- default: boolean;
11
- };
12
- labelSize: PropType<"large" | "medium" | "small">;
13
7
  modelValue: {
14
8
  type: StringConstructor;
15
9
  default: string;
16
10
  };
17
- /**
18
- * For accessibility purpose, the name is required. it will be mapped to the input ID, and the label "for" attribute as well.
19
- */
20
- name: {
21
- type: StringConstructor;
22
- required: true;
23
- };
24
11
  optionalLabel: StringConstructor;
25
- required: {
26
- type: BooleanConstructor;
27
- default: boolean;
28
- };
29
12
  requiredMark: {
30
13
  type: BooleanConstructor;
31
14
  default: boolean;
@@ -36,89 +19,40 @@ declare const _sfc_main: import("vue").DefineComponent<{
36
19
  };
37
20
  type: StringConstructor;
38
21
  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<{
96
- clearable: {
22
+ label: StringConstructor;
23
+ labelSize: {
24
+ type: import("vue").PropType<"small" | "large" | "medium">;
25
+ default: string;
26
+ };
27
+ disabled: {
97
28
  type: BooleanConstructor;
98
29
  default: boolean;
99
30
  };
100
- icon: StringConstructor;
31
+ id: {
32
+ type: StringConstructor;
33
+ };
101
34
  invalid: {
102
35
  type: BooleanConstructor;
103
36
  default: boolean;
104
37
  };
105
- labelSize: PropType<"large" | "medium" | "small">;
106
- modelValue: {
107
- type: StringConstructor;
108
- default: string;
109
- };
110
- /**
111
- * For accessibility purpose, the name is required. it will be mapped to the input ID, and the label "for" attribute as well.
112
- */
113
38
  name: {
114
39
  type: StringConstructor;
115
- required: true;
116
40
  };
117
- optionalLabel: StringConstructor;
118
41
  required: {
119
42
  type: BooleanConstructor;
120
43
  default: boolean;
121
44
  };
45
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
46
+ clearable: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ icon: StringConstructor;
51
+ modelValue: {
52
+ type: StringConstructor;
53
+ default: string;
54
+ };
55
+ optionalLabel: StringConstructor;
122
56
  requiredMark: {
123
57
  type: BooleanConstructor;
124
58
  default: boolean;
@@ -129,14 +63,46 @@ declare const _sfc_main: import("vue").DefineComponent<{
129
63
  };
130
64
  type: StringConstructor;
131
65
  unit: StringConstructor;
66
+ label: StringConstructor;
67
+ labelSize: {
68
+ type: import("vue").PropType<"small" | "large" | "medium">;
69
+ default: string;
70
+ };
71
+ disabled: {
72
+ type: BooleanConstructor;
73
+ default: boolean;
74
+ };
75
+ id: {
76
+ type: StringConstructor;
77
+ };
78
+ invalid: {
79
+ type: BooleanConstructor;
80
+ default: boolean;
81
+ };
82
+ name: {
83
+ type: StringConstructor;
84
+ };
85
+ required: {
86
+ type: BooleanConstructor;
87
+ default: boolean;
88
+ };
132
89
  }>> & {
133
90
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
134
91
  }, {
135
92
  size: string;
136
- clearable: boolean;
93
+ disabled: boolean;
137
94
  invalid: boolean;
138
- modelValue: string;
139
95
  required: boolean;
96
+ modelValue: string;
97
+ clearable: boolean;
140
98
  requiredMark: boolean;
99
+ labelSize: "small" | "large" | "medium";
100
+ }>, {
101
+ default: (_: {}) => any;
141
102
  }>;
142
- export default _sfc_main;
103
+ export default _default;
104
+ type __VLS_WithTemplateSlots<T, S> = T & {
105
+ new (): {
106
+ $slots: S;
107
+ };
108
+ };
@@ -1,11 +1,15 @@
1
- import { PropType } from "vue";
2
- import { LabelSizes } from "./JoyLabel.types";
3
- declare const _sfc_main: import("vue").DefineComponent<{
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<"large" | "medium" | "small">;
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<"large" | "medium" | "small">;
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: "large" | "medium" | "small";
38
+ size: "small" | "large" | "medium";
33
39
  required: boolean;
40
+ tagName: "label" | "legend";
41
+ }>, {
42
+ default: (_: {}) => any;
34
43
  }>;
35
- export default _sfc_main;
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,2 @@
1
+ export declare const LINK_COLORS: readonly ["teal", "white"];
2
+ export type LinkColors = (typeof LINK_COLORS)[number];
@@ -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,80 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
3
+ modelValue: {
4
+ type: StringConstructor;
5
+ };
6
+ theme: {
7
+ type: PropType<"default" | "outline">;
8
+ default: string;
9
+ };
10
+ value: {
11
+ type: StringConstructor;
12
+ };
13
+ disabled: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ id: {
18
+ type: StringConstructor;
19
+ };
20
+ invalid: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ name: {
25
+ type: StringConstructor;
26
+ };
27
+ required: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ }, {
32
+ checked: import("vue").ComputedRef<boolean>;
33
+ isExpanded: import("vue").Ref<boolean>;
34
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
35
+ modelValue: {
36
+ type: StringConstructor;
37
+ };
38
+ theme: {
39
+ type: PropType<"default" | "outline">;
40
+ default: string;
41
+ };
42
+ value: {
43
+ type: StringConstructor;
44
+ };
45
+ disabled: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ id: {
50
+ type: StringConstructor;
51
+ };
52
+ invalid: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ name: {
57
+ type: StringConstructor;
58
+ };
59
+ required: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ }>> & {
64
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
65
+ }, {
66
+ disabled: boolean;
67
+ invalid: boolean;
68
+ required: boolean;
69
+ theme: "default" | "outline";
70
+ }>, {
71
+ default: (_: {}) => any;
72
+ 'radio-content': (_: {}) => any;
73
+ 'expandable-content': (_: {}) => any;
74
+ }>;
75
+ export default _default;
76
+ type __VLS_WithTemplateSlots<T, S> = T & {
77
+ new (): {
78
+ $slots: S;
79
+ };
80
+ };
@@ -0,0 +1 @@
1
+ export {};