@rocketui/vue 0.2.68 → 0.2.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rocket-ui-vue.js +912 -896
- package/dist/rocket-ui-vue.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/Accordion/RAccordion.vue.d.ts +70 -0
- package/dist/types/components/Accordion/RAccordion.vue.d.ts.map +1 -0
- package/dist/types/components/Alert/RAlert.vue.d.ts +109 -0
- package/dist/types/components/Alert/RAlert.vue.d.ts.map +1 -0
- package/dist/types/components/Avatar/RAvatar.vue.d.ts +92 -0
- package/dist/types/components/Avatar/RAvatar.vue.d.ts.map +1 -0
- package/dist/types/components/Badge/RBadge.vue.d.ts +143 -0
- package/dist/types/components/Badge/RBadge.vue.d.ts.map +1 -0
- package/dist/types/components/Breadcrumb/RBreadcrumb.vue.d.ts +50 -0
- package/dist/types/components/Breadcrumb/RBreadcrumb.vue.d.ts.map +1 -0
- package/dist/types/components/Button/RButton.vue.d.ts +155 -0
- package/dist/types/components/Button/RButton.vue.d.ts.map +1 -0
- package/dist/types/components/Checkbox/RCheckbox.vue.d.ts +120 -0
- package/dist/types/components/Checkbox/RCheckbox.vue.d.ts.map +1 -0
- package/dist/types/components/Chips/RChip.vue.d.ts +132 -0
- package/dist/types/components/Chips/RChip.vue.d.ts.map +1 -0
- package/dist/types/components/Dropdown/RDropdown.vue.d.ts +415 -0
- package/dist/types/components/Dropdown/RDropdown.vue.d.ts.map +1 -0
- package/dist/types/components/Icon/RIcon.vue.d.ts +59 -0
- package/dist/types/components/Icon/RIcon.vue.d.ts.map +1 -0
- package/dist/types/components/ItemGroup/RItem.vue.d.ts +65 -0
- package/dist/types/components/ItemGroup/RItem.vue.d.ts.map +1 -0
- package/dist/types/components/ItemGroup/RItemGroup.vue.d.ts +123 -0
- package/dist/types/components/ItemGroup/RItemGroup.vue.d.ts.map +1 -0
- package/dist/types/components/Label/RLabel.vue.d.ts +68 -0
- package/dist/types/components/Label/RLabel.vue.d.ts.map +1 -0
- package/dist/types/components/Modal/RModal.vue.d.ts +183 -0
- package/dist/types/components/Modal/RModal.vue.d.ts.map +1 -0
- package/dist/types/components/Pagination/RPagination.vue.d.ts +110 -0
- package/dist/types/components/Pagination/RPagination.vue.d.ts.map +1 -0
- package/dist/types/components/ProgressBar/RProgressbar.vue.d.ts +34 -0
- package/dist/types/components/ProgressBar/RProgressbar.vue.d.ts.map +1 -0
- package/dist/types/components/Radio/RRadio.vue.d.ts +66 -0
- package/dist/types/components/Radio/RRadio.vue.d.ts.map +1 -0
- package/dist/types/components/Sidebar/RSidebar.vue.d.ts +53 -0
- package/dist/types/components/Sidebar/RSidebar.vue.d.ts.map +1 -0
- package/dist/types/components/Snackbar/RSnackbar.vue.d.ts +113 -0
- package/dist/types/components/Snackbar/RSnackbar.vue.d.ts.map +1 -0
- package/dist/types/components/Switch/RSwitch.vue.d.ts +135 -0
- package/dist/types/components/Switch/RSwitch.vue.d.ts.map +1 -0
- package/dist/types/components/TabItem/RTabItem.vue.d.ts +155 -0
- package/dist/types/components/TabItem/RTabItem.vue.d.ts.map +1 -0
- package/dist/types/components/Tabs/RTabs.vue.d.ts +95 -0
- package/dist/types/components/Tabs/RTabs.vue.d.ts.map +1 -0
- package/dist/types/components/TextArea/RTextArea.vue.d.ts +120 -0
- package/dist/types/components/TextArea/RTextArea.vue.d.ts.map +1 -0
- package/dist/types/components/Textfield/RTextfield.vue.d.ts +249 -0
- package/dist/types/components/Textfield/RTextfield.vue.d.ts.map +1 -0
- package/dist/types/components/Tooltip/RTooltip.vue.d.ts +253 -0
- package/dist/types/components/Tooltip/RTooltip.vue.d.ts.map +1 -0
- package/dist/types/lib/main.d.ts +26 -0
- package/dist/types/lib/main.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/rocket-ui-vue.d.ts +0 -3306
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, type HTMLAttributes, type InputHTMLAttributes, type LabelHTMLAttributes } from 'vue';
|
|
2
|
+
export interface Props {
|
|
3
|
+
/**
|
|
4
|
+
* id of the checkbox
|
|
5
|
+
* @type {HTMLAttributes['id']}
|
|
6
|
+
* @default ''
|
|
7
|
+
* @example
|
|
8
|
+
* <Checkbox id="checkbox" />
|
|
9
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
|
|
10
|
+
*/
|
|
11
|
+
id: HTMLAttributes['id'];
|
|
12
|
+
/**
|
|
13
|
+
* Input checked state
|
|
14
|
+
* @type InputHTMLAttributes['checked']
|
|
15
|
+
* @default false
|
|
16
|
+
* @example
|
|
17
|
+
* <Checkbox modelValue="true" />
|
|
18
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#checked
|
|
19
|
+
*/
|
|
20
|
+
modelValue?: InputHTMLAttributes['checked'];
|
|
21
|
+
/**
|
|
22
|
+
* Input disabled state
|
|
23
|
+
* @type InputHTMLAttributes['disabled']
|
|
24
|
+
* @default false
|
|
25
|
+
* @example
|
|
26
|
+
* <Checkbox disabled="true" />
|
|
27
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#disabled
|
|
28
|
+
*/
|
|
29
|
+
disabled?: InputHTMLAttributes['disabled'];
|
|
30
|
+
/**
|
|
31
|
+
* label of the checkbox
|
|
32
|
+
* @type LabelHTMLAttributes['label']
|
|
33
|
+
* @default ''
|
|
34
|
+
* @example
|
|
35
|
+
* <Checkbox label="Checkbox" />
|
|
36
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label
|
|
37
|
+
*/
|
|
38
|
+
label?: LabelHTMLAttributes['for'];
|
|
39
|
+
/**
|
|
40
|
+
* Hint text
|
|
41
|
+
* @type string
|
|
42
|
+
* @default ''
|
|
43
|
+
* @example
|
|
44
|
+
* <Checkbox hint="This is a hint" />
|
|
45
|
+
*/
|
|
46
|
+
hint?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Error message
|
|
49
|
+
* @type string
|
|
50
|
+
* @default ''
|
|
51
|
+
* @example
|
|
52
|
+
* <Checkbox errorMsg="This is an error" />
|
|
53
|
+
*/
|
|
54
|
+
errorMsg?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Size of the checkbox
|
|
57
|
+
* @type 'small' | 'medium' | 'large'
|
|
58
|
+
* @default 'medium'
|
|
59
|
+
* @example
|
|
60
|
+
* <Checkbox size="small" />
|
|
61
|
+
*/
|
|
62
|
+
size?: 'small' | 'medium' | 'large';
|
|
63
|
+
/**
|
|
64
|
+
* Hide the hint and error message
|
|
65
|
+
* @type {boolean}
|
|
66
|
+
* @default false
|
|
67
|
+
* @example
|
|
68
|
+
* <Checkbox hideDetails />
|
|
69
|
+
*/
|
|
70
|
+
hideDetails?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Reverse the order of the checkbox and the label
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
* @default false
|
|
75
|
+
* @example
|
|
76
|
+
* <Checkbox reverse />
|
|
77
|
+
*/
|
|
78
|
+
reverse?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Name of the checkbox
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @default ''
|
|
83
|
+
* @example
|
|
84
|
+
* <Checkbox name="checkbox" />
|
|
85
|
+
*/
|
|
86
|
+
name?: string;
|
|
87
|
+
}
|
|
88
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
89
|
+
id: string;
|
|
90
|
+
modelValue: boolean;
|
|
91
|
+
size: string;
|
|
92
|
+
disabled: boolean;
|
|
93
|
+
label: string;
|
|
94
|
+
hint: string;
|
|
95
|
+
errorMsg: string;
|
|
96
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
97
|
+
"update:modelValue": (...args: any[]) => void;
|
|
98
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
99
|
+
id: string;
|
|
100
|
+
modelValue: boolean;
|
|
101
|
+
size: string;
|
|
102
|
+
disabled: boolean;
|
|
103
|
+
label: string;
|
|
104
|
+
hint: string;
|
|
105
|
+
errorMsg: string;
|
|
106
|
+
}>>> & {
|
|
107
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
size: "small" | "medium" | "large";
|
|
110
|
+
label: string;
|
|
111
|
+
disabled: boolean | "true" | "false";
|
|
112
|
+
id: string | undefined;
|
|
113
|
+
modelValue: any[] | Set<any> | (boolean | "true" | "false");
|
|
114
|
+
hint: string;
|
|
115
|
+
errorMsg: string;
|
|
116
|
+
}, {}>;
|
|
117
|
+
export default _default;
|
|
118
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
119
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
120
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
121
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
122
|
+
} : {
|
|
123
|
+
type: PropType<T[K]>;
|
|
124
|
+
required: true;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
128
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
129
|
+
default: D[K];
|
|
130
|
+
}> : P[K];
|
|
131
|
+
};
|
|
132
|
+
declare type __VLS_Prettify<T> = {
|
|
133
|
+
[K in keyof T]: T[K];
|
|
134
|
+
} & {};
|
|
135
|
+
//# sourceMappingURL=RSwitch.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RSwitch.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Switch/RSwitch.vue"],"names":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Q,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,aAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,aAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { type TabItemVariant, TabItemVariants } from './common';
|
|
3
|
+
export interface IProps {
|
|
4
|
+
/**
|
|
5
|
+
* Id of the tab item
|
|
6
|
+
* @type string | number
|
|
7
|
+
* @default ''
|
|
8
|
+
* @example
|
|
9
|
+
* <TabItem id="1" />
|
|
10
|
+
*/
|
|
11
|
+
id: string | number;
|
|
12
|
+
/**
|
|
13
|
+
* Variant of the tab item
|
|
14
|
+
* @type TabItemVariant
|
|
15
|
+
* @default TabItemVariants.DEFAULT
|
|
16
|
+
* @example
|
|
17
|
+
* <TabItem variant="default" />
|
|
18
|
+
*/
|
|
19
|
+
variant?: TabItemVariant;
|
|
20
|
+
/**
|
|
21
|
+
* Label of the tab item
|
|
22
|
+
* @type string
|
|
23
|
+
* @default ''
|
|
24
|
+
* @example
|
|
25
|
+
* <TabItem label="Label" />
|
|
26
|
+
*/
|
|
27
|
+
label?: string;
|
|
28
|
+
/**
|
|
29
|
+
* prependIcon of the tab item
|
|
30
|
+
* @type string
|
|
31
|
+
* @default ''
|
|
32
|
+
* @example
|
|
33
|
+
* <TabItem prependIcon="prependIcon" />
|
|
34
|
+
*/
|
|
35
|
+
prependIcon?: string;
|
|
36
|
+
/**
|
|
37
|
+
* appendIcon of the tab item
|
|
38
|
+
* @type string
|
|
39
|
+
* @default ''
|
|
40
|
+
* @example
|
|
41
|
+
* <TabItem appendIcon="appendIcon" />
|
|
42
|
+
*/
|
|
43
|
+
appendIcon?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Disabled state of the tab item
|
|
46
|
+
* @type ButtonHTMLAttributes['disabled']
|
|
47
|
+
* @default false
|
|
48
|
+
* @example
|
|
49
|
+
* <TabItem disabled />
|
|
50
|
+
*/
|
|
51
|
+
disabled?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Model value of the tab item
|
|
54
|
+
* @type string | number
|
|
55
|
+
* @default ''
|
|
56
|
+
* @example
|
|
57
|
+
* <TabItem v-model="model" />
|
|
58
|
+
*/
|
|
59
|
+
modelValue?: string | number;
|
|
60
|
+
/**
|
|
61
|
+
* Tile state of the tab item
|
|
62
|
+
* @type boolean
|
|
63
|
+
* @default false
|
|
64
|
+
* @example
|
|
65
|
+
* <TabItem tile />
|
|
66
|
+
*/
|
|
67
|
+
tile?: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* Block state of the tab item
|
|
70
|
+
* @type boolean
|
|
71
|
+
* @default false
|
|
72
|
+
* @example
|
|
73
|
+
* <TabItem block />
|
|
74
|
+
*/
|
|
75
|
+
block?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Color of the tab item
|
|
78
|
+
* @type string
|
|
79
|
+
* @default ''
|
|
80
|
+
* @example
|
|
81
|
+
* <TabItem color="" />
|
|
82
|
+
*/
|
|
83
|
+
color?: string;
|
|
84
|
+
}
|
|
85
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
86
|
+
label: string;
|
|
87
|
+
variant: TabItemVariants;
|
|
88
|
+
prependIcon: string;
|
|
89
|
+
appendIcon: string;
|
|
90
|
+
disabled: boolean;
|
|
91
|
+
modelValue: string;
|
|
92
|
+
tile: boolean;
|
|
93
|
+
block: boolean;
|
|
94
|
+
color: string;
|
|
95
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
96
|
+
"update:modelValue": (...args: any[]) => void;
|
|
97
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
98
|
+
label: string;
|
|
99
|
+
variant: TabItemVariants;
|
|
100
|
+
prependIcon: string;
|
|
101
|
+
appendIcon: string;
|
|
102
|
+
disabled: boolean;
|
|
103
|
+
modelValue: string;
|
|
104
|
+
tile: boolean;
|
|
105
|
+
block: boolean;
|
|
106
|
+
color: string;
|
|
107
|
+
}>>> & {
|
|
108
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
label: string;
|
|
111
|
+
disabled: boolean;
|
|
112
|
+
variant: TabItemVariant;
|
|
113
|
+
block: boolean;
|
|
114
|
+
color: string;
|
|
115
|
+
prependIcon: string;
|
|
116
|
+
appendIcon: string;
|
|
117
|
+
modelValue: string | number;
|
|
118
|
+
tile: boolean;
|
|
119
|
+
}, {}>, {
|
|
120
|
+
prepend?(_: {
|
|
121
|
+
active: boolean;
|
|
122
|
+
disabled: boolean;
|
|
123
|
+
}): any;
|
|
124
|
+
default?(_: {
|
|
125
|
+
label: string;
|
|
126
|
+
}): any;
|
|
127
|
+
append?(_: {
|
|
128
|
+
active: boolean;
|
|
129
|
+
disabled: boolean;
|
|
130
|
+
}): any;
|
|
131
|
+
}>;
|
|
132
|
+
export default _default;
|
|
133
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
134
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
135
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
136
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
137
|
+
} : {
|
|
138
|
+
type: PropType<T[K]>;
|
|
139
|
+
required: true;
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
143
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
144
|
+
default: D[K];
|
|
145
|
+
}> : P[K];
|
|
146
|
+
};
|
|
147
|
+
declare type __VLS_Prettify<T> = {
|
|
148
|
+
[K in keyof T]: T[K];
|
|
149
|
+
} & {};
|
|
150
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
151
|
+
new (): {
|
|
152
|
+
$slots: S;
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
//# sourceMappingURL=RTabItem.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RTabItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/TabItem/RTabItem.vue"],"names":[],"mappings":"AAIA,OAAO,gBAAgB,CAAA;AACvB,OAAO,EAAE,KAAK,cAAc,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAE/D,MAAM,WAAW,MAAM;IACrB;;;;;;OAMG;IACH,EAAE,EAAE,MAAM,GAAG,MAAM,CAAA;IAEnB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,cAAc,CAAA;IAExB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAA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E,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import type { Tab } from './types';
|
|
3
|
+
export interface IProps {
|
|
4
|
+
/**
|
|
5
|
+
* Tabs of the tabs
|
|
6
|
+
* @type {Tab[]}
|
|
7
|
+
* @default []
|
|
8
|
+
* @example
|
|
9
|
+
* <Tabs :tabs="[]" />
|
|
10
|
+
*/
|
|
11
|
+
tabs?: Tab[];
|
|
12
|
+
/**
|
|
13
|
+
* Block state of the tabs
|
|
14
|
+
* @type {boolean}
|
|
15
|
+
* @default false
|
|
16
|
+
* @example
|
|
17
|
+
* <Tabs block />
|
|
18
|
+
*/
|
|
19
|
+
block?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Active tab of the tabs
|
|
22
|
+
* @type {number | string}
|
|
23
|
+
* @default tabs[0].id
|
|
24
|
+
* @example
|
|
25
|
+
* <Tabs v-model="activeTab" />
|
|
26
|
+
*/
|
|
27
|
+
modelValue?: number | string;
|
|
28
|
+
/**
|
|
29
|
+
* Tile state of the tabs
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @default false
|
|
32
|
+
* @example
|
|
33
|
+
* <Tabs tile />
|
|
34
|
+
*/
|
|
35
|
+
tile?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Scrollable state of the tabs
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @default false
|
|
40
|
+
* @example
|
|
41
|
+
* <Tabs scrollable />
|
|
42
|
+
*/
|
|
43
|
+
scrollable?: boolean;
|
|
44
|
+
}
|
|
45
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
46
|
+
tabs: () => never[];
|
|
47
|
+
block: boolean;
|
|
48
|
+
modelValue: string;
|
|
49
|
+
tile: boolean;
|
|
50
|
+
scrollable: boolean;
|
|
51
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
52
|
+
"update:modelValue": (...args: any[]) => void;
|
|
53
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
54
|
+
tabs: () => never[];
|
|
55
|
+
block: boolean;
|
|
56
|
+
modelValue: string;
|
|
57
|
+
tile: boolean;
|
|
58
|
+
scrollable: boolean;
|
|
59
|
+
}>>> & {
|
|
60
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
block: boolean;
|
|
63
|
+
modelValue: string | number;
|
|
64
|
+
tile: boolean;
|
|
65
|
+
tabs: Tab[];
|
|
66
|
+
scrollable: boolean;
|
|
67
|
+
}, {}>, {
|
|
68
|
+
default?(_: {
|
|
69
|
+
activeTab: string | number;
|
|
70
|
+
}): any;
|
|
71
|
+
}>;
|
|
72
|
+
export default _default;
|
|
73
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
74
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
75
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
76
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
77
|
+
} : {
|
|
78
|
+
type: PropType<T[K]>;
|
|
79
|
+
required: true;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
83
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
84
|
+
default: D[K];
|
|
85
|
+
}> : P[K];
|
|
86
|
+
};
|
|
87
|
+
declare type __VLS_Prettify<T> = {
|
|
88
|
+
[K in keyof T]: T[K];
|
|
89
|
+
} & {};
|
|
90
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
91
|
+
new (): {
|
|
92
|
+
$slots: S;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=RTabs.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RTabs.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/RTabs.vue"],"names":[],"mappings":"AAGA,OAAO,YAAY,CAAA;AAEnB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAElC,MAAM,WAAW,MAAM;IACrB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;IAEZ;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAE5B;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6ID,wBAAwG;AACxG,aAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,aAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,aAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,aAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC;AACxD,aAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType, type HTMLAttributes, type InputHTMLAttributes, type LabelHTMLAttributes } from 'vue';
|
|
2
|
+
export interface IProps {
|
|
3
|
+
/**
|
|
4
|
+
* id of the textarea
|
|
5
|
+
* @type HTMLAttributes['id']
|
|
6
|
+
* @default ''
|
|
7
|
+
* @example
|
|
8
|
+
* <TextArea id="textarea" />
|
|
9
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
|
|
10
|
+
*/
|
|
11
|
+
id: HTMLAttributes['id'];
|
|
12
|
+
/**
|
|
13
|
+
* Input value
|
|
14
|
+
* @type InputHTMLAttributes['value'];
|
|
15
|
+
* @default ''
|
|
16
|
+
* @example
|
|
17
|
+
* <TextArea modelValue="Hello" />
|
|
18
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#value
|
|
19
|
+
*/
|
|
20
|
+
modelValue?: InputHTMLAttributes['value'];
|
|
21
|
+
/**
|
|
22
|
+
* label of the textarea
|
|
23
|
+
* @type LabelHTMLAttributes['label']
|
|
24
|
+
* @default ''
|
|
25
|
+
* @example
|
|
26
|
+
* <TextArea label="TextArea" />
|
|
27
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label
|
|
28
|
+
*/
|
|
29
|
+
label?: LabelHTMLAttributes['for'];
|
|
30
|
+
/**
|
|
31
|
+
* Placeholder text
|
|
32
|
+
* @type InputHTMLAttributes['placeholder'];
|
|
33
|
+
* @default ''
|
|
34
|
+
* @example
|
|
35
|
+
* <TextArea placeholder="Placeholder" />
|
|
36
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder
|
|
37
|
+
*/
|
|
38
|
+
placeholder?: InputHTMLAttributes['placeholder'];
|
|
39
|
+
/**
|
|
40
|
+
* Disabled state
|
|
41
|
+
* @type InputHTMLAttributes['disabled'];
|
|
42
|
+
* @default false
|
|
43
|
+
* @example
|
|
44
|
+
* <TextArea disabled />
|
|
45
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#disabled
|
|
46
|
+
*/
|
|
47
|
+
disabled?: InputHTMLAttributes['disabled'];
|
|
48
|
+
/**
|
|
49
|
+
* Hint text
|
|
50
|
+
* @type string
|
|
51
|
+
* @default 'This is a hint'
|
|
52
|
+
* @example
|
|
53
|
+
* <TextArea hint="This is a hint" />
|
|
54
|
+
*/
|
|
55
|
+
hint?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Error message
|
|
58
|
+
* @type string
|
|
59
|
+
* @default ''
|
|
60
|
+
* @example
|
|
61
|
+
* <TextArea errorMsg="This is an error" />
|
|
62
|
+
*/
|
|
63
|
+
errorMsg?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Hide details
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @default false
|
|
68
|
+
* @example
|
|
69
|
+
* <TextArea hideDetails />
|
|
70
|
+
*/
|
|
71
|
+
hideDetails?: boolean;
|
|
72
|
+
}
|
|
73
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
74
|
+
id: string;
|
|
75
|
+
errorMsg: string;
|
|
76
|
+
disabled: boolean;
|
|
77
|
+
placeholder: string;
|
|
78
|
+
modelValue: string;
|
|
79
|
+
label: string;
|
|
80
|
+
hint: string;
|
|
81
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
82
|
+
"update:modelValue": (...args: any[]) => void;
|
|
83
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
84
|
+
id: string;
|
|
85
|
+
errorMsg: string;
|
|
86
|
+
disabled: boolean;
|
|
87
|
+
placeholder: string;
|
|
88
|
+
modelValue: string;
|
|
89
|
+
label: string;
|
|
90
|
+
hint: string;
|
|
91
|
+
}>>> & {
|
|
92
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
93
|
+
}, {
|
|
94
|
+
label: string;
|
|
95
|
+
disabled: boolean | "true" | "false";
|
|
96
|
+
id: string | undefined;
|
|
97
|
+
modelValue: any;
|
|
98
|
+
hint: string;
|
|
99
|
+
errorMsg: string;
|
|
100
|
+
placeholder: string;
|
|
101
|
+
}, {}>;
|
|
102
|
+
export default _default;
|
|
103
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
104
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
105
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
106
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
107
|
+
} : {
|
|
108
|
+
type: PropType<T[K]>;
|
|
109
|
+
required: true;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
113
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
114
|
+
default: D[K];
|
|
115
|
+
}> : P[K];
|
|
116
|
+
};
|
|
117
|
+
declare type __VLS_Prettify<T> = {
|
|
118
|
+
[K in keyof T]: T[K];
|
|
119
|
+
} & {};
|
|
120
|
+
//# sourceMappingURL=RTextArea.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RTextArea.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/TextArea/RTextArea.vue"],"names":[],"mappings":"AAEA,OAAO,gBAAgB,CAAA;AACvB,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EAKzB,MAAM,KAAK,CAAA;AAGZ,MAAM,WAAW,MAAM;IACrB;;;;;;;OAOG;IACH,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,CAAA;IAExB;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,CAAA;IAEzC;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAA;IAElC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,mBAAmB,CAAC,aAAa,CAAC,CAAA;IAEhD;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,mBAAmB,CAAC,UAAU,CAAC,CAAA;IAE1C;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4JD,wBAOG;AACH,aAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,aAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KA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