@fiscozen/input 0.1.16 → 1.0.0-next.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.
@@ -0,0 +1,202 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ modelValue: import('vue').PropType<string | number | null | undefined>;
3
+ error: {
4
+ type: import('vue').PropType<boolean>;
5
+ };
6
+ name: {
7
+ type: import('vue').PropType<string>;
8
+ };
9
+ size: {
10
+ type: import('vue').PropType<"sm" | "md" | "lg">;
11
+ };
12
+ variant: {
13
+ type: import('vue').PropType<"normal" | "floating-label">;
14
+ };
15
+ required: {
16
+ type: import('vue').PropType<boolean>;
17
+ };
18
+ disabled: {
19
+ type: import('vue').PropType<boolean>;
20
+ };
21
+ max: {
22
+ type: import('vue').PropType<number>;
23
+ default: number;
24
+ };
25
+ label: {
26
+ type: import('vue').PropType<string>;
27
+ };
28
+ pattern: {
29
+ type: import('vue').PropType<string>;
30
+ };
31
+ environment: {
32
+ type: import('vue').PropType<import('./types').InputEnvironment>;
33
+ };
34
+ minimumFractionDigits: {
35
+ type: import('vue').PropType<number>;
36
+ default: number;
37
+ };
38
+ maximumFractionDigits: {
39
+ type: import('vue').PropType<number>;
40
+ default: number;
41
+ };
42
+ valid: {
43
+ type: import('vue').PropType<boolean>;
44
+ };
45
+ placeholder: {
46
+ type: import('vue').PropType<string>;
47
+ };
48
+ leftIcon: {
49
+ type: import('vue').PropType<string>;
50
+ };
51
+ leftIconVariant: {
52
+ type: import('vue').PropType<import('@fiscozen/icons/src/types').IconVariant>;
53
+ };
54
+ leftIconButtonVariant: {
55
+ type: import('vue').PropType<import('@fiscozen/button').CommonButtonVariant>;
56
+ };
57
+ leftIconAriaLabel: {
58
+ type: import('vue').PropType<string>;
59
+ };
60
+ readonly: {
61
+ type: import('vue').PropType<boolean>;
62
+ };
63
+ maxlength: {
64
+ type: import('vue').PropType<number>;
65
+ };
66
+ leftIconClass: {
67
+ type: import('vue').PropType<string>;
68
+ };
69
+ nullOnEmpty: {
70
+ type: import('vue').PropType<boolean>;
71
+ };
72
+ zeroOnEmpty: {
73
+ type: import('vue').PropType<boolean>;
74
+ };
75
+ min: {
76
+ type: import('vue').PropType<number>;
77
+ default: number;
78
+ };
79
+ step: {
80
+ type: import('vue').PropType<number>;
81
+ default: number;
82
+ };
83
+ forceStep: {
84
+ type: import('vue').PropType<boolean>;
85
+ };
86
+ stepUpAriaLabel: {
87
+ type: import('vue').PropType<string>;
88
+ };
89
+ stepDownAriaLabel: {
90
+ type: import('vue').PropType<string>;
91
+ };
92
+ }>, {
93
+ inputRef: import('vue').ComputedRef<HTMLInputElement | null | undefined>;
94
+ containerRef: import('vue').ComputedRef<HTMLElement | null | undefined>;
95
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
96
+ modelValue: import('vue').PropType<string | number | null | undefined>;
97
+ error: {
98
+ type: import('vue').PropType<boolean>;
99
+ };
100
+ name: {
101
+ type: import('vue').PropType<string>;
102
+ };
103
+ size: {
104
+ type: import('vue').PropType<"sm" | "md" | "lg">;
105
+ };
106
+ variant: {
107
+ type: import('vue').PropType<"normal" | "floating-label">;
108
+ };
109
+ required: {
110
+ type: import('vue').PropType<boolean>;
111
+ };
112
+ disabled: {
113
+ type: import('vue').PropType<boolean>;
114
+ };
115
+ max: {
116
+ type: import('vue').PropType<number>;
117
+ default: number;
118
+ };
119
+ label: {
120
+ type: import('vue').PropType<string>;
121
+ };
122
+ pattern: {
123
+ type: import('vue').PropType<string>;
124
+ };
125
+ environment: {
126
+ type: import('vue').PropType<import('./types').InputEnvironment>;
127
+ };
128
+ minimumFractionDigits: {
129
+ type: import('vue').PropType<number>;
130
+ default: number;
131
+ };
132
+ maximumFractionDigits: {
133
+ type: import('vue').PropType<number>;
134
+ default: number;
135
+ };
136
+ valid: {
137
+ type: import('vue').PropType<boolean>;
138
+ };
139
+ placeholder: {
140
+ type: import('vue').PropType<string>;
141
+ };
142
+ leftIcon: {
143
+ type: import('vue').PropType<string>;
144
+ };
145
+ leftIconVariant: {
146
+ type: import('vue').PropType<import('@fiscozen/icons/src/types').IconVariant>;
147
+ };
148
+ leftIconButtonVariant: {
149
+ type: import('vue').PropType<import('@fiscozen/button').CommonButtonVariant>;
150
+ };
151
+ leftIconAriaLabel: {
152
+ type: import('vue').PropType<string>;
153
+ };
154
+ readonly: {
155
+ type: import('vue').PropType<boolean>;
156
+ };
157
+ maxlength: {
158
+ type: import('vue').PropType<number>;
159
+ };
160
+ leftIconClass: {
161
+ type: import('vue').PropType<string>;
162
+ };
163
+ nullOnEmpty: {
164
+ type: import('vue').PropType<boolean>;
165
+ };
166
+ zeroOnEmpty: {
167
+ type: import('vue').PropType<boolean>;
168
+ };
169
+ min: {
170
+ type: import('vue').PropType<number>;
171
+ default: number;
172
+ };
173
+ step: {
174
+ type: import('vue').PropType<number>;
175
+ default: number;
176
+ };
177
+ forceStep: {
178
+ type: import('vue').PropType<boolean>;
179
+ };
180
+ stepUpAriaLabel: {
181
+ type: import('vue').PropType<string>;
182
+ };
183
+ stepDownAriaLabel: {
184
+ type: import('vue').PropType<string>;
185
+ };
186
+ }>> & Readonly<{}>, {
187
+ max: number;
188
+ minimumFractionDigits: number;
189
+ maximumFractionDigits: number;
190
+ min: number;
191
+ step: number;
192
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
193
+ label?(_: {}): any;
194
+ errorMessage?(_: {}): any;
195
+ helpText?(_: {}): any;
196
+ }>;
197
+ export default _default;
198
+ type __VLS_WithTemplateSlots<T, S> = T & {
199
+ new (): {
200
+ $slots: S;
201
+ };
202
+ };
@@ -0,0 +1,254 @@
1
+ import { Ref } from 'vue';
2
+ import { InputEnvironment } from './types';
3
+
4
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ modelValue: import('vue').PropType<string>;
6
+ error: {
7
+ type: import('vue').PropType<boolean>;
8
+ default: boolean;
9
+ };
10
+ name: {
11
+ type: import('vue').PropType<string>;
12
+ };
13
+ size: {
14
+ type: import('vue').PropType<"sm" | "md" | "lg">;
15
+ };
16
+ variant: {
17
+ type: import('vue').PropType<"normal" | "floating-label">;
18
+ default: string;
19
+ };
20
+ type: {
21
+ type: import('vue').PropType<"number" | "text" | "password" | "email" | "tel" | "url">;
22
+ default: string;
23
+ };
24
+ required: {
25
+ type: import('vue').PropType<boolean>;
26
+ };
27
+ disabled: {
28
+ type: import('vue').PropType<boolean>;
29
+ };
30
+ label: {
31
+ type: import('vue').PropType<string>;
32
+ };
33
+ pattern: {
34
+ type: import('vue').PropType<string>;
35
+ };
36
+ environment: {
37
+ type: import('vue').PropType<InputEnvironment>;
38
+ default: string;
39
+ };
40
+ valid: {
41
+ type: import('vue').PropType<boolean>;
42
+ };
43
+ rightIcon: {
44
+ type: import('vue').PropType<string>;
45
+ };
46
+ rightIconSize: {
47
+ type: import('vue').PropType<import('@fiscozen/icons/src/types').IconSize>;
48
+ };
49
+ rightIconVariant: {
50
+ type: import('vue').PropType<import('@fiscozen/icons/src/types').IconVariant>;
51
+ };
52
+ rightIconButton: {
53
+ type: import('vue').PropType<boolean>;
54
+ };
55
+ rightIconButtonVariant: {
56
+ type: import('vue').PropType<import('@fiscozen/button').CommonButtonVariant>;
57
+ default: string;
58
+ };
59
+ rightIconAriaLabel: {
60
+ type: import('vue').PropType<string>;
61
+ };
62
+ rightIconClass: {
63
+ type: import('vue').PropType<string>;
64
+ };
65
+ secondRightIcon: {
66
+ type: import('vue').PropType<string>;
67
+ };
68
+ secondRightIconClass: {
69
+ type: import('vue').PropType<string>;
70
+ };
71
+ secondRightIconVariant: {
72
+ type: import('vue').PropType<import('@fiscozen/icons/src/types').IconVariant>;
73
+ };
74
+ secondRightIconButton: {
75
+ type: import('vue').PropType<boolean>;
76
+ };
77
+ secondRightIconButtonVariant: {
78
+ type: import('vue').PropType<import('@fiscozen/button').CommonButtonVariant>;
79
+ default: string;
80
+ };
81
+ secondRightIconAriaLabel: {
82
+ type: import('vue').PropType<string>;
83
+ };
84
+ placeholder: {
85
+ type: import('vue').PropType<string>;
86
+ };
87
+ leftIcon: {
88
+ type: import('vue').PropType<string>;
89
+ };
90
+ leftIconVariant: {
91
+ type: import('vue').PropType<import('@fiscozen/icons/src/types').IconVariant>;
92
+ };
93
+ leftIconButtonVariant: {
94
+ type: import('vue').PropType<import('@fiscozen/button').CommonButtonVariant>;
95
+ };
96
+ leftIconAriaLabel: {
97
+ type: import('vue').PropType<string>;
98
+ };
99
+ readonly: {
100
+ type: import('vue').PropType<boolean>;
101
+ };
102
+ maxlength: {
103
+ type: import('vue').PropType<number>;
104
+ };
105
+ leftIconClass: {
106
+ type: import('vue').PropType<string>;
107
+ };
108
+ }>, {
109
+ inputRef: Ref<HTMLInputElement | null, HTMLInputElement | null>;
110
+ containerRef: Ref<HTMLElement | null, HTMLElement | null>;
111
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
112
+ blur: (event: FocusEvent) => void;
113
+ focus: (event: FocusEvent) => void;
114
+ paste: (event: ClipboardEvent) => void;
115
+ "fzinput:left-icon-click": () => void;
116
+ "fzinput:right-icon-click": () => void;
117
+ "fzinput:second-right-icon-click": () => void;
118
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
119
+ modelValue: import('vue').PropType<string>;
120
+ error: {
121
+ type: import('vue').PropType<boolean>;
122
+ default: boolean;
123
+ };
124
+ name: {
125
+ type: import('vue').PropType<string>;
126
+ };
127
+ size: {
128
+ type: import('vue').PropType<"sm" | "md" | "lg">;
129
+ };
130
+ variant: {
131
+ type: import('vue').PropType<"normal" | "floating-label">;
132
+ default: string;
133
+ };
134
+ type: {
135
+ type: import('vue').PropType<"number" | "text" | "password" | "email" | "tel" | "url">;
136
+ default: string;
137
+ };
138
+ required: {
139
+ type: import('vue').PropType<boolean>;
140
+ };
141
+ disabled: {
142
+ type: import('vue').PropType<boolean>;
143
+ };
144
+ label: {
145
+ type: import('vue').PropType<string>;
146
+ };
147
+ pattern: {
148
+ type: import('vue').PropType<string>;
149
+ };
150
+ environment: {
151
+ type: import('vue').PropType<InputEnvironment>;
152
+ default: string;
153
+ };
154
+ valid: {
155
+ type: import('vue').PropType<boolean>;
156
+ };
157
+ rightIcon: {
158
+ type: import('vue').PropType<string>;
159
+ };
160
+ rightIconSize: {
161
+ type: import('vue').PropType<import('@fiscozen/icons/src/types').IconSize>;
162
+ };
163
+ rightIconVariant: {
164
+ type: import('vue').PropType<import('@fiscozen/icons/src/types').IconVariant>;
165
+ };
166
+ rightIconButton: {
167
+ type: import('vue').PropType<boolean>;
168
+ };
169
+ rightIconButtonVariant: {
170
+ type: import('vue').PropType<import('@fiscozen/button').CommonButtonVariant>;
171
+ default: string;
172
+ };
173
+ rightIconAriaLabel: {
174
+ type: import('vue').PropType<string>;
175
+ };
176
+ rightIconClass: {
177
+ type: import('vue').PropType<string>;
178
+ };
179
+ secondRightIcon: {
180
+ type: import('vue').PropType<string>;
181
+ };
182
+ secondRightIconClass: {
183
+ type: import('vue').PropType<string>;
184
+ };
185
+ secondRightIconVariant: {
186
+ type: import('vue').PropType<import('@fiscozen/icons/src/types').IconVariant>;
187
+ };
188
+ secondRightIconButton: {
189
+ type: import('vue').PropType<boolean>;
190
+ };
191
+ secondRightIconButtonVariant: {
192
+ type: import('vue').PropType<import('@fiscozen/button').CommonButtonVariant>;
193
+ default: string;
194
+ };
195
+ secondRightIconAriaLabel: {
196
+ type: import('vue').PropType<string>;
197
+ };
198
+ placeholder: {
199
+ type: import('vue').PropType<string>;
200
+ };
201
+ leftIcon: {
202
+ type: import('vue').PropType<string>;
203
+ };
204
+ leftIconVariant: {
205
+ type: import('vue').PropType<import('@fiscozen/icons/src/types').IconVariant>;
206
+ };
207
+ leftIconButtonVariant: {
208
+ type: import('vue').PropType<import('@fiscozen/button').CommonButtonVariant>;
209
+ };
210
+ leftIconAriaLabel: {
211
+ type: import('vue').PropType<string>;
212
+ };
213
+ readonly: {
214
+ type: import('vue').PropType<boolean>;
215
+ };
216
+ maxlength: {
217
+ type: import('vue').PropType<number>;
218
+ };
219
+ leftIconClass: {
220
+ type: import('vue').PropType<string>;
221
+ };
222
+ }>> & Readonly<{
223
+ onBlur?: ((event: FocusEvent) => any) | undefined;
224
+ onFocus?: ((event: FocusEvent) => any) | undefined;
225
+ onPaste?: ((event: ClipboardEvent) => any) | undefined;
226
+ "onFzinput:left-icon-click"?: (() => any) | undefined;
227
+ "onFzinput:right-icon-click"?: (() => any) | undefined;
228
+ "onFzinput:second-right-icon-click"?: (() => any) | undefined;
229
+ }>, {
230
+ error: boolean;
231
+ variant: "normal" | "floating-label";
232
+ type: "number" | "text" | "password" | "email" | "tel" | "url";
233
+ environment: InputEnvironment;
234
+ rightIconButtonVariant: import('@fiscozen/button').CommonButtonVariant;
235
+ secondRightIconButtonVariant: import('@fiscozen/button').CommonButtonVariant;
236
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, Readonly<{
237
+ label?: (() => unknown) | undefined;
238
+ "left-icon"?: (() => unknown) | undefined;
239
+ "right-icon"?: (() => unknown) | undefined;
240
+ errorMessage?: (() => unknown) | undefined;
241
+ helpText?: (() => unknown) | undefined;
242
+ }> & {
243
+ label?: (() => unknown) | undefined;
244
+ "left-icon"?: (() => unknown) | undefined;
245
+ "right-icon"?: (() => unknown) | undefined;
246
+ errorMessage?: (() => unknown) | undefined;
247
+ helpText?: (() => unknown) | undefined;
248
+ }>;
249
+ export default _default;
250
+ type __VLS_WithTemplateSlots<T, S> = T & {
251
+ new (): {
252
+ $slots: S;
253
+ };
254
+ };
@@ -0,0 +1,4 @@
1
+ export { default as FzInput } from './FzInput.vue';
2
+ export { default as FzCurrencyInput } from './FzCurrencyInput.vue';
3
+ export type * from './types';
4
+ export { sizeToEnvironmentMapping } from './utils';