@rocketui/vue 0.2.69 → 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 +894 -885
- 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 -3325
|
@@ -0,0 +1,249 @@
|
|
|
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 textfield
|
|
5
|
+
* @type HTMLAttributes['id']
|
|
6
|
+
* @default ''
|
|
7
|
+
* @example
|
|
8
|
+
* <Textfield id="textfield" />
|
|
9
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id
|
|
10
|
+
*/
|
|
11
|
+
id: HTMLAttributes['id'];
|
|
12
|
+
/**
|
|
13
|
+
* Input type
|
|
14
|
+
* @type 'text' | 'password' | 'email' | 'number' | 'tel' | 'url'
|
|
15
|
+
* @default 'text'
|
|
16
|
+
* @example
|
|
17
|
+
* <Textfield type="password" />
|
|
18
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#input_types
|
|
19
|
+
*/
|
|
20
|
+
type: 'text' | 'password' | 'email' | 'number' | 'tel' | 'url';
|
|
21
|
+
/**
|
|
22
|
+
* Input value
|
|
23
|
+
* @type InputHTMLAttributes['value'];
|
|
24
|
+
* @default ''
|
|
25
|
+
* @example
|
|
26
|
+
* <Textfield modelValue="Hello" />
|
|
27
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#value
|
|
28
|
+
*/
|
|
29
|
+
modelValue?: InputHTMLAttributes['value'];
|
|
30
|
+
/**
|
|
31
|
+
* label of the textfield
|
|
32
|
+
* @type LabelHTMLAttributes['label']
|
|
33
|
+
* @default ''
|
|
34
|
+
* @example
|
|
35
|
+
* <Textfield label="Textfield" />
|
|
36
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label
|
|
37
|
+
*/
|
|
38
|
+
label?: LabelHTMLAttributes['for'];
|
|
39
|
+
/**
|
|
40
|
+
* Placeholder text
|
|
41
|
+
* @type InputHTMLAttributes['placeholder'];
|
|
42
|
+
* @default ''
|
|
43
|
+
* @example
|
|
44
|
+
* <Textfield placeholder="Placeholder" />
|
|
45
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#placeholder
|
|
46
|
+
*/
|
|
47
|
+
placeholder?: InputHTMLAttributes['placeholder'];
|
|
48
|
+
/**
|
|
49
|
+
* Error message
|
|
50
|
+
* @type string
|
|
51
|
+
* @default ''
|
|
52
|
+
* @example
|
|
53
|
+
* <Textfield errorMsg="This is an error" />
|
|
54
|
+
*/
|
|
55
|
+
errorMsg?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Hint text
|
|
58
|
+
* @type string
|
|
59
|
+
* @default ''
|
|
60
|
+
* @example
|
|
61
|
+
* <Textfield hint="This is a hint" />
|
|
62
|
+
*/
|
|
63
|
+
hint?: string;
|
|
64
|
+
/**
|
|
65
|
+
* Icon to prepend
|
|
66
|
+
* @type string
|
|
67
|
+
* @default ''
|
|
68
|
+
* @example
|
|
69
|
+
* <Textfield prependIcon="mdiLock" />
|
|
70
|
+
*/
|
|
71
|
+
prependIcon?: string;
|
|
72
|
+
/**
|
|
73
|
+
* Icon to append
|
|
74
|
+
* @type string
|
|
75
|
+
* @default ''
|
|
76
|
+
* @example
|
|
77
|
+
* <Textfield appendIcon="mdiEyeOffOutline" />
|
|
78
|
+
*/
|
|
79
|
+
appendIcon?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Input disabled state
|
|
82
|
+
* @type InputHTMLAttributes['disabled'] | boolean
|
|
83
|
+
* @default false
|
|
84
|
+
* @example
|
|
85
|
+
* <Textfield disabled="true" />
|
|
86
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#disabled
|
|
87
|
+
*/
|
|
88
|
+
disabled?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Input loading state
|
|
91
|
+
* @type boolean
|
|
92
|
+
* @default false
|
|
93
|
+
* @example
|
|
94
|
+
* <Textfield loading="true" />
|
|
95
|
+
*/
|
|
96
|
+
loading?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Input clearable state
|
|
99
|
+
* @type boolean
|
|
100
|
+
* @default false
|
|
101
|
+
* @example
|
|
102
|
+
* <Textfield clearable="true" />
|
|
103
|
+
*/
|
|
104
|
+
clearable?: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* Input number min value
|
|
107
|
+
* @type InputHTMLAttributes['min']
|
|
108
|
+
* @default ''
|
|
109
|
+
* @example
|
|
110
|
+
* <Textfield min="0" />
|
|
111
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min
|
|
112
|
+
*/
|
|
113
|
+
min?: InputHTMLAttributes['min'];
|
|
114
|
+
/**
|
|
115
|
+
* Input number max value
|
|
116
|
+
* @type InputHTMLAttributes['max']
|
|
117
|
+
* @default ''
|
|
118
|
+
* @example
|
|
119
|
+
* <Textfield max="10" />
|
|
120
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max
|
|
121
|
+
*/
|
|
122
|
+
max?: InputHTMLAttributes['max'];
|
|
123
|
+
/**
|
|
124
|
+
* Hide details state of textfield details
|
|
125
|
+
* @type {boolean}
|
|
126
|
+
* @default false
|
|
127
|
+
* @example
|
|
128
|
+
* <Textfield hideDetails />
|
|
129
|
+
*/
|
|
130
|
+
hideDetails?: boolean;
|
|
131
|
+
/**
|
|
132
|
+
* Input role
|
|
133
|
+
* @type {string}
|
|
134
|
+
* @default ''
|
|
135
|
+
* @example
|
|
136
|
+
* <Textfield role="search" />
|
|
137
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#role
|
|
138
|
+
*/
|
|
139
|
+
role?: string;
|
|
140
|
+
/**
|
|
141
|
+
* Input readonly state
|
|
142
|
+
* @type {boolean}
|
|
143
|
+
* @default false
|
|
144
|
+
* @example
|
|
145
|
+
* <Textfield readonly />
|
|
146
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#readonly
|
|
147
|
+
*/
|
|
148
|
+
readonly?: boolean;
|
|
149
|
+
}
|
|
150
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
151
|
+
id: string;
|
|
152
|
+
type: string;
|
|
153
|
+
modelValue: string;
|
|
154
|
+
label: string;
|
|
155
|
+
placeholder: string;
|
|
156
|
+
errorMsg: string;
|
|
157
|
+
hint: string;
|
|
158
|
+
prependIcon: string;
|
|
159
|
+
appendIcon: string;
|
|
160
|
+
iconColor: string;
|
|
161
|
+
disabled: boolean;
|
|
162
|
+
loading: boolean;
|
|
163
|
+
clearable: boolean;
|
|
164
|
+
hideDetails: boolean;
|
|
165
|
+
role: string;
|
|
166
|
+
readonly: boolean;
|
|
167
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
168
|
+
input: (...args: any[]) => void;
|
|
169
|
+
"update:modelValue": (...args: any[]) => void;
|
|
170
|
+
blur: (...args: any[]) => void;
|
|
171
|
+
focus: (...args: any[]) => void;
|
|
172
|
+
"click:icon": (...args: any[]) => void;
|
|
173
|
+
"click:clear": (...args: any[]) => void;
|
|
174
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
175
|
+
id: string;
|
|
176
|
+
type: string;
|
|
177
|
+
modelValue: string;
|
|
178
|
+
label: string;
|
|
179
|
+
placeholder: string;
|
|
180
|
+
errorMsg: string;
|
|
181
|
+
hint: string;
|
|
182
|
+
prependIcon: string;
|
|
183
|
+
appendIcon: string;
|
|
184
|
+
iconColor: string;
|
|
185
|
+
disabled: boolean;
|
|
186
|
+
loading: boolean;
|
|
187
|
+
clearable: boolean;
|
|
188
|
+
hideDetails: boolean;
|
|
189
|
+
role: string;
|
|
190
|
+
readonly: boolean;
|
|
191
|
+
}>>> & {
|
|
192
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
193
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
194
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
195
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
196
|
+
"onClick:icon"?: ((...args: any[]) => any) | undefined;
|
|
197
|
+
"onClick:clear"?: ((...args: any[]) => any) | undefined;
|
|
198
|
+
}, {
|
|
199
|
+
type: "number" | "text" | "email" | "password" | "tel" | "url";
|
|
200
|
+
label: string;
|
|
201
|
+
disabled: boolean;
|
|
202
|
+
loading: boolean;
|
|
203
|
+
prependIcon: string;
|
|
204
|
+
appendIcon: string;
|
|
205
|
+
id: string | undefined;
|
|
206
|
+
modelValue: any;
|
|
207
|
+
hint: string;
|
|
208
|
+
errorMsg: string;
|
|
209
|
+
hideDetails: boolean;
|
|
210
|
+
clearable: boolean;
|
|
211
|
+
role: string;
|
|
212
|
+
placeholder: string;
|
|
213
|
+
readonly: boolean;
|
|
214
|
+
}, {}>, {
|
|
215
|
+
prepend?(_: {
|
|
216
|
+
disabled: boolean;
|
|
217
|
+
error: number;
|
|
218
|
+
loading: boolean;
|
|
219
|
+
}): any;
|
|
220
|
+
append?(_: {
|
|
221
|
+
disabled: boolean;
|
|
222
|
+
error: number;
|
|
223
|
+
loading: boolean;
|
|
224
|
+
}): any;
|
|
225
|
+
}>;
|
|
226
|
+
export default _default;
|
|
227
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
228
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
229
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
230
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
231
|
+
} : {
|
|
232
|
+
type: PropType<T[K]>;
|
|
233
|
+
required: true;
|
|
234
|
+
};
|
|
235
|
+
};
|
|
236
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
237
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
238
|
+
default: D[K];
|
|
239
|
+
}> : P[K];
|
|
240
|
+
};
|
|
241
|
+
declare type __VLS_Prettify<T> = {
|
|
242
|
+
[K in keyof T]: T[K];
|
|
243
|
+
} & {};
|
|
244
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
245
|
+
new (): {
|
|
246
|
+
$slots: S;
|
|
247
|
+
};
|
|
248
|
+
};
|
|
249
|
+
//# sourceMappingURL=RTextfield.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RTextfield.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Textfield/RTextfield.vue"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EAKzB,MAAM,KAAK,CAAA;AACZ,OAAO,iBAAiB,CAAA;AAKxB,MAAM,WAAW,KAAK;IACpB;;;;;;;OAOG;IACH,EAAE,EAAE,cAAc,CAAC,IAAI,CAAC,CAAA;IACxB;;;;;;;OAOG;IACH,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,KAAK,CAAA;IAE9D;;;;;;;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;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB;;;;;;;OAOG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IA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C,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,253 @@
|
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
import { Placement, type Placements, Theme, Trigger, type Triggers } from './popper';
|
|
3
|
+
export interface IProps {
|
|
4
|
+
/**
|
|
5
|
+
* Placement of the tooltip
|
|
6
|
+
* @type Placements
|
|
7
|
+
* @default Placement.Top
|
|
8
|
+
* @example
|
|
9
|
+
* <Tooltip placement="top" />
|
|
10
|
+
*/
|
|
11
|
+
placement?: Placements;
|
|
12
|
+
/**
|
|
13
|
+
* Text of the tooltip content
|
|
14
|
+
* @type string
|
|
15
|
+
* @default ''
|
|
16
|
+
* @example
|
|
17
|
+
* <Tooltip text="Tooltip" />
|
|
18
|
+
*/
|
|
19
|
+
text?: string;
|
|
20
|
+
/**
|
|
21
|
+
* Dark theme of the tooltip deneme 1 2 3
|
|
22
|
+
* @type boolean
|
|
23
|
+
* @default true
|
|
24
|
+
* @example
|
|
25
|
+
* <Tooltip dark />
|
|
26
|
+
*/
|
|
27
|
+
dark?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Light theme of the tooltip
|
|
30
|
+
* @type boolean
|
|
31
|
+
* @default false
|
|
32
|
+
* @example
|
|
33
|
+
* <Tooltip light />
|
|
34
|
+
*/
|
|
35
|
+
light?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Triggers of the tooltip
|
|
38
|
+
* @type Triggers
|
|
39
|
+
* @default Trigger.Hover
|
|
40
|
+
* @example
|
|
41
|
+
* <Tooltip triggers="hover" />
|
|
42
|
+
*/
|
|
43
|
+
triggers?: Array<Triggers>;
|
|
44
|
+
/**
|
|
45
|
+
* Auto hide of the tooltip
|
|
46
|
+
* @type boolean
|
|
47
|
+
* @default true
|
|
48
|
+
* @example
|
|
49
|
+
* <Tooltip autoHide />
|
|
50
|
+
*/
|
|
51
|
+
autoHide?: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Hide delay of the tooltip
|
|
54
|
+
* @type number
|
|
55
|
+
* @default 3000
|
|
56
|
+
* @example
|
|
57
|
+
* <Tooltip hideDelay={3000} />
|
|
58
|
+
*/
|
|
59
|
+
hideDelay?: number;
|
|
60
|
+
/**
|
|
61
|
+
* Show delay of the tooltip
|
|
62
|
+
* @type number
|
|
63
|
+
* @default 0
|
|
64
|
+
* @example
|
|
65
|
+
* <Tooltip showDelay={0} />
|
|
66
|
+
*/
|
|
67
|
+
showDelay?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Shown state of the tooltip
|
|
70
|
+
* @type boolean
|
|
71
|
+
* @default false
|
|
72
|
+
* @example
|
|
73
|
+
* <Tooltip shown />
|
|
74
|
+
*/
|
|
75
|
+
shown?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Disabled state of the tooltip
|
|
78
|
+
* @type boolean
|
|
79
|
+
* @default false
|
|
80
|
+
* @example
|
|
81
|
+
* <Tooltip disabled />
|
|
82
|
+
*/
|
|
83
|
+
disabled?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* Offset of the tooltip
|
|
86
|
+
* @type number
|
|
87
|
+
* @default 0
|
|
88
|
+
* @example
|
|
89
|
+
* <Tooltip offset={0} />
|
|
90
|
+
* @link https://floating-ui.com/docs/tutorial#offset-middleware
|
|
91
|
+
*/
|
|
92
|
+
offset?: number;
|
|
93
|
+
/**
|
|
94
|
+
* Padding of the tooltip
|
|
95
|
+
* @type number
|
|
96
|
+
* @default 2
|
|
97
|
+
* @example
|
|
98
|
+
* <Tooltip padding={0} />
|
|
99
|
+
* @link https://floating-ui.com/docs/tutorial#shift-middleware
|
|
100
|
+
*/
|
|
101
|
+
padding?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Outside click of the tooltip
|
|
104
|
+
* @type boolean
|
|
105
|
+
* @default false
|
|
106
|
+
* @example
|
|
107
|
+
* <Tooltip outsideClick />
|
|
108
|
+
*/
|
|
109
|
+
outsideClick?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Trigger content of the tooltip
|
|
112
|
+
* @type string
|
|
113
|
+
* @default ''
|
|
114
|
+
* @example
|
|
115
|
+
* <Tooltip triggerContent="Trigger" />
|
|
116
|
+
*/
|
|
117
|
+
triggerContent?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Resizable of the tooltip
|
|
120
|
+
* @type boolean
|
|
121
|
+
* @default true
|
|
122
|
+
* @example
|
|
123
|
+
* <Tooltip resizable />
|
|
124
|
+
* @link https://developer.mozilla.org/en-US/docs/Web/API/Window/resize_event
|
|
125
|
+
*/
|
|
126
|
+
resizable?: boolean;
|
|
127
|
+
/**
|
|
128
|
+
* Trigger class of the tooltip
|
|
129
|
+
* @type string
|
|
130
|
+
* @default ''
|
|
131
|
+
* @example
|
|
132
|
+
* <Tooltip triggerClass="trigger" />
|
|
133
|
+
*/
|
|
134
|
+
triggerClass?: string | string[];
|
|
135
|
+
/**
|
|
136
|
+
* Tooltip class of the tooltip
|
|
137
|
+
* @type string
|
|
138
|
+
* @default ''
|
|
139
|
+
* @example
|
|
140
|
+
* <Tooltip tooltipClass="tooltip" />
|
|
141
|
+
*/
|
|
142
|
+
tooltipClass?: string | string[];
|
|
143
|
+
type?: Theme | string;
|
|
144
|
+
}
|
|
145
|
+
declare function hideTooltip(e?: Event | null): void;
|
|
146
|
+
declare function onClick(e: MouseEvent): void;
|
|
147
|
+
declare function onMouseEnter(): void;
|
|
148
|
+
declare function onMouseLeave(): void;
|
|
149
|
+
declare function onMouseMove(): void;
|
|
150
|
+
declare function handleUpdate(extraData?: any): void;
|
|
151
|
+
declare const _default: __VLS_WithTemplateSlots<DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
152
|
+
placement: Placement;
|
|
153
|
+
text: string;
|
|
154
|
+
dark: boolean;
|
|
155
|
+
light: boolean;
|
|
156
|
+
triggers: () => Trigger[];
|
|
157
|
+
autoHide: boolean;
|
|
158
|
+
hideDelay: number;
|
|
159
|
+
showDelay: number;
|
|
160
|
+
shown: boolean;
|
|
161
|
+
disabled: boolean;
|
|
162
|
+
offset: number;
|
|
163
|
+
padding: number;
|
|
164
|
+
outsideClick: boolean;
|
|
165
|
+
triggerContent: string;
|
|
166
|
+
resizable: boolean;
|
|
167
|
+
triggerClass: string;
|
|
168
|
+
tooltipClass: string;
|
|
169
|
+
type: Theme;
|
|
170
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
171
|
+
show: (...args: any[]) => void;
|
|
172
|
+
hide: (...args: any[]) => void;
|
|
173
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IProps>, {
|
|
174
|
+
placement: Placement;
|
|
175
|
+
text: string;
|
|
176
|
+
dark: boolean;
|
|
177
|
+
light: boolean;
|
|
178
|
+
triggers: () => Trigger[];
|
|
179
|
+
autoHide: boolean;
|
|
180
|
+
hideDelay: number;
|
|
181
|
+
showDelay: number;
|
|
182
|
+
shown: boolean;
|
|
183
|
+
disabled: boolean;
|
|
184
|
+
offset: number;
|
|
185
|
+
padding: number;
|
|
186
|
+
outsideClick: boolean;
|
|
187
|
+
triggerContent: string;
|
|
188
|
+
resizable: boolean;
|
|
189
|
+
triggerClass: string;
|
|
190
|
+
tooltipClass: string;
|
|
191
|
+
type: Theme;
|
|
192
|
+
}>>> & {
|
|
193
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
194
|
+
onHide?: ((...args: any[]) => any) | undefined;
|
|
195
|
+
}, {
|
|
196
|
+
type: string;
|
|
197
|
+
text: string;
|
|
198
|
+
disabled: boolean;
|
|
199
|
+
placement: Placements;
|
|
200
|
+
padding: number;
|
|
201
|
+
dark: boolean;
|
|
202
|
+
light: boolean;
|
|
203
|
+
triggers: Triggers[];
|
|
204
|
+
autoHide: boolean;
|
|
205
|
+
hideDelay: number;
|
|
206
|
+
showDelay: number;
|
|
207
|
+
shown: boolean;
|
|
208
|
+
offset: number;
|
|
209
|
+
outsideClick: boolean;
|
|
210
|
+
triggerContent: string;
|
|
211
|
+
resizable: boolean;
|
|
212
|
+
triggerClass: string | string[];
|
|
213
|
+
tooltipClass: string | string[];
|
|
214
|
+
}, {}>, {
|
|
215
|
+
default?(_: {
|
|
216
|
+
activators: {
|
|
217
|
+
click: typeof onClick;
|
|
218
|
+
mouseenter: typeof onMouseEnter;
|
|
219
|
+
mouseleave: typeof onMouseLeave;
|
|
220
|
+
mousemove: typeof onMouseMove;
|
|
221
|
+
};
|
|
222
|
+
tooltipId: string;
|
|
223
|
+
updatePosition: typeof handleUpdate;
|
|
224
|
+
}): any;
|
|
225
|
+
content?(_: {
|
|
226
|
+
hide: typeof hideTooltip;
|
|
227
|
+
updatePosition: typeof handleUpdate;
|
|
228
|
+
}): any;
|
|
229
|
+
}>;
|
|
230
|
+
export default _default;
|
|
231
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
232
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
233
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
234
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
235
|
+
} : {
|
|
236
|
+
type: PropType<T[K]>;
|
|
237
|
+
required: true;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
241
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
242
|
+
default: D[K];
|
|
243
|
+
}> : P[K];
|
|
244
|
+
};
|
|
245
|
+
declare type __VLS_Prettify<T> = {
|
|
246
|
+
[K in keyof T]: T[K];
|
|
247
|
+
} & {};
|
|
248
|
+
declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
249
|
+
new (): {
|
|
250
|
+
$slots: S;
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
//# sourceMappingURL=RTooltip.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RTooltip.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tooltip/RTooltip.vue"],"names":[],"mappings":"AAEA,OAAO,eAAe,CAAA;AAItB,OAAO,EACL,SAAS,EACT,KAAK,UAAU,EACf,KAAK,EACL,OAAO,EACP,KAAK,QAAQ,EAEd,MAAM,UAAU,CAAA;AAEjB,MAAM,WAAW,MAAM;IACrB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,UAAU,CAAA;IAEtB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IAEb;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IAEd;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAA;IAE1B;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IAEf;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IAEf;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,MAAM,CAAA;IAEhB;;;;;;OA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AI;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,26 @@
|
|
|
1
|
+
export { default as RAccordion } from '../components/Accordion/RAccordion.vue';
|
|
2
|
+
export { default as RAlert } from '../components/Alert/RAlert.vue';
|
|
3
|
+
export { default as RAvatar } from '../components/Avatar/RAvatar.vue';
|
|
4
|
+
export { default as RBadge } from '../components/Badge/RBadge.vue';
|
|
5
|
+
export { default as RButton } from '../components/Button/RButton.vue';
|
|
6
|
+
export { default as RCheckbox } from '../components/Checkbox/RCheckbox.vue';
|
|
7
|
+
export { default as RChip } from '../components/Chips/RChip.vue';
|
|
8
|
+
export { default as RDropdown } from '../components/Dropdown/RDropdown.vue';
|
|
9
|
+
export { default as RIcon } from '../components/Icon/RIcon.vue';
|
|
10
|
+
export { default as RLabel } from '../components/Label/RLabel.vue';
|
|
11
|
+
export { default as RModal } from '../components/Modal/RModal.vue';
|
|
12
|
+
export { default as RSidebar } from '../components/Sidebar/RSidebar.vue';
|
|
13
|
+
export { default as RSnackbar } from '../components/Snackbar/RSnackbar.vue';
|
|
14
|
+
export { default as RSwitch } from '../components/Switch/RSwitch.vue';
|
|
15
|
+
export { default as RTabItem } from '../components/TabItem/RTabItem.vue';
|
|
16
|
+
export { default as RTabs } from '../components/Tabs/RTabs.vue';
|
|
17
|
+
export { default as RTextArea } from '../components/TextArea/RTextArea.vue';
|
|
18
|
+
export { default as RTextfield } from '../components/Textfield/RTextfield.vue';
|
|
19
|
+
export { default as RTooltip } from '../components/Tooltip/RTooltip.vue';
|
|
20
|
+
export { default as RBreadcrumb } from '../components/Breadcrumb/RBreadcrumb.vue';
|
|
21
|
+
export { default as RPagination } from '../components/Pagination/RPagination.vue';
|
|
22
|
+
export { default as RProgressbar } from '../components/Progressbar/RProgressbar.vue';
|
|
23
|
+
export { default as RItemGroup } from '../components/ItemGroup/RItemGroup.vue';
|
|
24
|
+
export { default as RItem } from '../components/ItemGroup/RItem.vue';
|
|
25
|
+
export { default as RRadio } from '../components/Radio/RRadio.vue';
|
|
26
|
+
//# sourceMappingURL=main.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../../src/lib/main.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAA;AACrB,OAAO,yCAAyC,CAAA;AAChD,OAAO,uCAAuC,CAAA;AAC9C,OAAO,+BAA+B,CAAA;AACtC,OAAO,iCAAiC,CAAA;AACxC,OAAO,+BAA+B,CAAA;AACtC,OAAO,iCAAiC,CAAA;AACxC,OAAO,qCAAqC,CAAA;AAC5C,OAAO,8BAA8B,CAAA;AACrC,OAAO,qCAAqC,CAAA;AAC5C,OAAO,+BAA+B,CAAA;AACtC,OAAO,+BAA+B,CAAA;AACtC,OAAO,mCAAmC,CAAA;AAC1C,OAAO,qCAAqC,CAAA;AAC5C,OAAO,iCAAiC,CAAA;AACxC,OAAO,oCAAoC,CAAA;AAC3C,OAAO,6BAA6B,CAAA;AACpC,OAAO,qCAAqC,CAAA;AAC5C,OAAO,uCAAuC,CAAA;AAC9C,OAAO,mCAAmC,CAAA;AAC1C,OAAO,yCAAyC,CAAA;AAChD,OAAO,yCAAyC,CAAA;AAChD,OAAO,2CAA2C,CA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;AACxE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0CAA0C,CAAA;AACjF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0CAA0C,CAAA;AACjF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,4CAA4C,CAAA;AACpF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wCAAwC,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,mCAAmC,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rocketui/vue",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.70",
|
|
5
5
|
"packageManager": "yarn@1.22.17",
|
|
6
6
|
"description": "A set of customizable UI components for Vue 3, built with TypeScript",
|
|
7
7
|
"homepage": "https://teknasyon.github.io/rocket-ui/",
|