@codemonster-ru/vueforge 0.48.0 → 0.49.0
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 +48 -2
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.ts.mjs +2266 -2138
- package/dist/index.ts.umd.js +3 -3
- package/dist/package/components/__tests__/masked-input.test.d.ts +1 -0
- package/dist/package/components/masked-input.vue.d.ts +60 -0
- package/dist/package/config/theme-core.d.ts +23 -0
- package/dist/package/themes/default/components/masked-input.d.ts +23 -0
- package/dist/package/themes/default/index.d.ts +22 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
type Size = 'small' | 'normal' | 'large';
|
|
2
|
+
type Variant = 'filled' | 'outlined';
|
|
3
|
+
type MaskTransformer = (value: string) => string;
|
|
4
|
+
interface Props {
|
|
5
|
+
modelValue?: string;
|
|
6
|
+
mask?: string | MaskTransformer;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
placeholderChar?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
readonly?: boolean;
|
|
11
|
+
unmask?: boolean;
|
|
12
|
+
size?: Size;
|
|
13
|
+
variant?: Variant;
|
|
14
|
+
}
|
|
15
|
+
declare function __VLS_template(): {
|
|
16
|
+
attrs: Partial<{}>;
|
|
17
|
+
slots: {
|
|
18
|
+
prefix?(_: {}): any;
|
|
19
|
+
suffix?(_: {}): any;
|
|
20
|
+
};
|
|
21
|
+
refs: {
|
|
22
|
+
control: HTMLInputElement;
|
|
23
|
+
};
|
|
24
|
+
rootEl: HTMLDivElement;
|
|
25
|
+
};
|
|
26
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
27
|
+
declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
+
blur: (...args: any[]) => void;
|
|
29
|
+
change: (...args: any[]) => void;
|
|
30
|
+
focus: (...args: any[]) => void;
|
|
31
|
+
input: (...args: any[]) => void;
|
|
32
|
+
"update:modelValue": (...args: any[]) => void;
|
|
33
|
+
complete: (...args: any[]) => void;
|
|
34
|
+
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
|
|
35
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
36
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
37
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
38
|
+
onInput?: ((...args: any[]) => any) | undefined;
|
|
39
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
onComplete?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
disabled: boolean;
|
|
43
|
+
mask: string | MaskTransformer;
|
|
44
|
+
size: Size;
|
|
45
|
+
variant: Variant;
|
|
46
|
+
modelValue: string;
|
|
47
|
+
placeholder: string;
|
|
48
|
+
readonly: boolean;
|
|
49
|
+
placeholderChar: string;
|
|
50
|
+
unmask: boolean;
|
|
51
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
52
|
+
control: HTMLInputElement;
|
|
53
|
+
}, HTMLDivElement>;
|
|
54
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
55
|
+
export default _default;
|
|
56
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -176,6 +176,28 @@ export type ColorPickerTokens = {
|
|
|
176
176
|
presetSize?: string;
|
|
177
177
|
};
|
|
178
178
|
};
|
|
179
|
+
export type MaskedInputTokens = {
|
|
180
|
+
gap?: string;
|
|
181
|
+
fontSize?: string;
|
|
182
|
+
padding?: string;
|
|
183
|
+
borderRadius?: string;
|
|
184
|
+
borderColor?: string;
|
|
185
|
+
backgroundColor?: string;
|
|
186
|
+
textColor?: string;
|
|
187
|
+
placeholderColor?: string;
|
|
188
|
+
focusBorderColor?: string;
|
|
189
|
+
focusRingShadow?: string;
|
|
190
|
+
hoverBorderColor?: string;
|
|
191
|
+
disabledOpacity?: string;
|
|
192
|
+
small?: {
|
|
193
|
+
padding?: string;
|
|
194
|
+
fontSize?: string;
|
|
195
|
+
};
|
|
196
|
+
large?: {
|
|
197
|
+
padding?: string;
|
|
198
|
+
fontSize?: string;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
179
201
|
export type NumberInputTokens = {
|
|
180
202
|
gap?: string;
|
|
181
203
|
fontSize?: string;
|
|
@@ -1359,6 +1381,7 @@ export type ThemeComponentTokens = {
|
|
|
1359
1381
|
passwordInput?: PasswordInputTokens;
|
|
1360
1382
|
otpInput?: OtpInputTokens;
|
|
1361
1383
|
colorPicker?: ColorPickerTokens;
|
|
1384
|
+
maskedInput?: MaskedInputTokens;
|
|
1362
1385
|
numberInput?: NumberInputTokens;
|
|
1363
1386
|
formField?: FormFieldTokens;
|
|
1364
1387
|
textarea?: TextareaTokens;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
gap: string;
|
|
3
|
+
fontSize: string;
|
|
4
|
+
padding: string;
|
|
5
|
+
borderRadius: string;
|
|
6
|
+
borderColor: string;
|
|
7
|
+
backgroundColor: string;
|
|
8
|
+
textColor: string;
|
|
9
|
+
placeholderColor: string;
|
|
10
|
+
focusBorderColor: string;
|
|
11
|
+
focusRingShadow: string;
|
|
12
|
+
hoverBorderColor: string;
|
|
13
|
+
disabledOpacity: string;
|
|
14
|
+
small: {
|
|
15
|
+
padding: string;
|
|
16
|
+
fontSize: string;
|
|
17
|
+
};
|
|
18
|
+
large: {
|
|
19
|
+
padding: string;
|
|
20
|
+
fontSize: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export default _default;
|
|
@@ -333,6 +333,28 @@ declare const _default: {
|
|
|
333
333
|
presetSize: string;
|
|
334
334
|
};
|
|
335
335
|
};
|
|
336
|
+
maskedInput: {
|
|
337
|
+
gap: string;
|
|
338
|
+
fontSize: string;
|
|
339
|
+
padding: string;
|
|
340
|
+
borderRadius: string;
|
|
341
|
+
borderColor: string;
|
|
342
|
+
backgroundColor: string;
|
|
343
|
+
textColor: string;
|
|
344
|
+
placeholderColor: string;
|
|
345
|
+
focusBorderColor: string;
|
|
346
|
+
focusRingShadow: string;
|
|
347
|
+
hoverBorderColor: string;
|
|
348
|
+
disabledOpacity: string;
|
|
349
|
+
small: {
|
|
350
|
+
padding: string;
|
|
351
|
+
fontSize: string;
|
|
352
|
+
};
|
|
353
|
+
large: {
|
|
354
|
+
padding: string;
|
|
355
|
+
fontSize: string;
|
|
356
|
+
};
|
|
357
|
+
};
|
|
336
358
|
numberInput: {
|
|
337
359
|
gap: string;
|
|
338
360
|
fontSize: string;
|