react-validate-component 0.3.0 → 0.5.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 CHANGED
@@ -24,261 +24,17 @@ yarn add react-validate-component
24
24
 
25
25
  ## 사용법, How to use
26
26
 
27
- 현재 라이브러리에는 `VText`, `VCheckbox`, `VURL` 컴포넌트가 구현되어 있습니다. 이 컴포넌트를 사용하여 텍스트 입력 필드의 유효성 검사를 쉽게 구현할 수 있습니다.
27
+ 현재 라이브러리에는 `VText`, `VCheckbox`, `VURL`, `VEmail`, `VRadio` 컴포넌트가 구현되어 있습니다. 이 컴포넌트를 사용하여 텍스트 입력 필드의 유효성 검사를 쉽게 구현할 수 있습니다.
28
28
 
29
- The library currently includes the `VText`, `VCheckbox`, `VURL` component. You can use this component to easily implement validation for text input fields.
29
+ The library currently includes the `VText`, `VCheckbox`, `VURL`, `VEmail`, `VRadio` component. You can use this component to easily implement validation for text input fields.
30
30
 
31
- ### VText Component
31
+ ## 컴포넌트, Components
32
32
 
33
- `VText` 컴포넌트는 기본적인 텍스트 입력 필드에 유효성 검사 문구를 출력해주는 기능을 제공합니다.
34
-
35
- The `VText` component provides functionality to display validation messages for basic text input fields.
36
-
37
- #### 사용 예제, Example
38
-
39
- ```jsx
40
- import React from 'react';
41
- import { VText } from 'react-validate-component';
42
-
43
- const App = () => {
44
- const [message, setMessage] = React.useState('');
45
- const [vState, setVState] = React.useState(false);
46
- const [vMessage, setVMessage] = React.useState('');
47
-
48
- React.useEffect(() => {
49
- if (/[\d]/gim.exec(message)) {
50
- setVState(true);
51
- setVMessage('DO NOT INPUT NUMBER.');
52
- } else {
53
- setVState(false);
54
- setVMessage('');
55
- }
56
- }, [message]);
57
-
58
- return (
59
- <section className={styles.layout}>
60
- <h1>React-Validate-Component</h1>
61
- <div>
62
- <h2>VText</h2>
63
- <h3>DO NOT INPUT NUMBER.</h3>
64
- <VText
65
- vState={vState}
66
- vType={'outer'}
67
- vClassName={'test'}
68
- vShowMessage={true}
69
- vMessage={vMessage}
70
- vLocateMessage={'bottom-left'}
71
- vMessageClass={styles.validation_message}
72
- vIsAnimate={true}
73
- props={{
74
- onChange: (e: { target: { value: string } }) => {
75
- setMessage(e.target.value);
76
- },
77
- placeholder: 'this is react-validate-component test.',
78
- className: styles.input_text,
79
- defaultValue: 'test',
80
- }}
81
- />
82
- </div>
83
- </section>
84
- );
85
- };
86
-
87
- export default App;
88
- ```
89
-
90
- #### Props
91
-
92
- - `vState` (boolean): 유효성 상태 값입니다.
93
- - `vType` (`inner`, `outer`, `tooltip`): 유효성 메시지를 띄우는 타입입니다.
94
- - `vClassName` (string): 유효성 입힐 class 명입니다.
95
- - `vShowMessage` (boolean): 유효성 메시지 출력 여부값입니다.
96
- - `vMessage` (string): 유효성 검사 실패 시 표시할 에러 메시지입니다.
97
- - `vLocateMessage` (`top-left`, `top`, `top-right`, `center-left`, `center`, `center-right`, `bottom-left`, `bottom`, `bottom-right`): 유효성 메시지를 element 어디에 붙일지 위치값입니다.
98
- - `vMessageClass` (string): 유효성 메시지에 입힐 class 명입니다.
99
- - `vIsAnimate` (boolean): 유효성 메시지 출력 시 애니메이션 적용할지 여부입니다. (현재는 opacity만 적용되어있습니다.)
100
- - `props` (object): 기타 옵션입니다. 기본 input 태그에 attribute로 넣을 값들을 입력하시면 됩니다.
101
-
102
- - `vState` (boolean): The validity status value.
103
- - `vType` (`inner`, `outer`, `tooltip`): The type of validation message display.
104
- - `vClassName` (string): The class name to apply for validation styling.
105
- - `vShowMessage` (boolean): Whether to display the validation message.
106
- - `vMessage` (string): The error message to display when validation fails.
107
- - `vLocateMessage` (`top-left`, `top`, `top-right`, `center-left`, `center`, `center-right`, `bottom-left`, `bottom`, `bottom-right`): The position where the validation message should be displayed relative to the element.
108
- - `vMessageClass` (string): The class name to apply to the validation message.
109
- - `vIsAnimate` (boolean): Whether to apply animation when displaying the validation message (currently, only opacity animation is supported).
110
- - `props` (object): Other options. Enter values for attributes that can be added to the basic input tag.
111
-
112
- ### VCheckbox Component
113
-
114
- `VCheckbox` 컴포넌트는 기본적인 체크박스 필드에 유효성 검사 문구를 출력해주는 기능을 제공합니다.
115
-
116
- The `VCheckbox` component provides functionality to display validation messages for basic checkbox fields.
117
-
118
- #### 사용 예제, Example
119
-
120
- ```jsx
121
- import React from 'react';
122
- import { VText } from 'react-validate-component';
123
-
124
- const App = () => {
125
- const list = ['Tiger', 'Rabbit', 'Elephant', 'Dog', 'Pig', 'Cat', 'Duck'];
126
- const [checked, setChecked] = React.useState<boolean[]>(
127
- Array.from(list, () => false)
128
- );
129
- const [vState2, setVState2] = React.useState<boolean>(false);
130
- const [vMessage2, setVMessage2] = React.useState<string>('');
131
- React.useEffect(() => {
132
- if (checked.filter(v => v).length > 3) {
133
- setVState2(true);
134
- setVMessage2('You can check up to 3 items.');
135
- } else {
136
- setVState2(false);
137
- setVMessage2('');
138
- }
139
- }, [checked]);
140
-
141
- return (
142
- <section className={styles.layout}>
143
- <h1>React-Validate-Component</h1>
144
- <div>
145
- <h2>VCheckbox</h2>
146
- <h3>CHECK UP TO 3.</h3>
147
- <VCheckbox
148
- vState={vState2}
149
- vType={'bottom'}
150
- // vClassName={'test'}
151
- vLabelClassName={styles.label_class}
152
- vCheckedClassName={styles.label_check_class}
153
- vCheckList={list}
154
- vCheckedList={checked}
155
- vShowMessage={true}
156
- vMessage={vMessage2}
157
- vMessageClass={styles.validation_message}
158
- vIsAnimate={true}
159
- props={{
160
- onChange: (e: { target: { value: string; checked: boolean } }) => {
161
- const tmp = [...checked];
162
- const findIndex = list.findIndex(val => val === e.target.value);
163
- tmp[findIndex] = e.target.checked;
164
- setChecked(tmp);
165
- },
166
- }}
167
- />
168
- </div>
169
- </section>
170
- );
171
- };
172
-
173
- export default App;
174
- ```
175
-
176
- #### Props
177
-
178
- - `vState` (boolean): 유효성 상태 값입니다.
179
- - `vType` (`top`, `bottom`): 유효성 메시지를 띄우는 타입입니다.
180
- - `vClassName` (string): 유효성 입힐 class 명입니다.
181
- - `vLabelClassName` (string): label 태그에 입힐 class 명입니다.
182
- - `vCheckedClassName` (string): check 상태일 때 입힐 class 명입니다.
183
- - `vCheckList` (string[]): checkbox를 만들때 사용하는 배열입니다. 해당 배열에 있는 string값으로 체크박스를 만듭니다.
184
- - `vCheckedList` (boolean[]): 현재 체크되어있는 상태를 나타내는 배열입니다.
185
- - `vShowMessage` (boolean): 유효성 메시지 출력 여부값입니다.
186
- - `vMessage` (string): 유효성 검사 실패 시 표시할 에러 메시지입니다.
187
- - `vMessageClass` (string): 유효성 메시지에 입힐 class 명입니다.
188
- - `vIsAnimate` (boolean): 유효성 메시지 출력 시 애니메이션 적용할지 여부입니다. (현재는 opacity만 적용되어있습니다.)
189
- - `props` (object): 기타 옵션입니다. 기본 input 태그에 attribute로 넣을 값들을 입력하시면 됩니다.
190
-
191
- - `vState` (boolean): The validity status value.
192
- - `vType` (`top`, `bottom`): The type of validation message display.
193
- - `vClassName` (string): The class name to apply for validation styling.
194
- - `vLabelClassName` (string): The class name to apply to the `label` tag.
195
- - `vCheckedClassName` (string): The class name to apply when checked.
196
- - `vCheckList` (string[]): An array used to create checkboxes. Checkboxes are created using the string values in this array.
197
- - `vCheckedList` (boolean[]): An array representing the current checked state.
198
- - `vShowMessage` (boolean): Whether to display the validation message.
199
- - `vMessage` (string): The error message to display when validation fails.
200
- - `vMessageClass` (string): The class name to apply to the validation message.
201
- - `vIsAnimate` (boolean): Whether to apply animation when displaying the validation message (currently, only opacity animation is supported).
202
- - `props` (object): Other options. Enter values for attributes that can be added to the basic input tag.
203
-
204
- ### VURL Component
205
-
206
- `VURL` 컴포넌트는 기본적인 URL 필드에 유효성 검사 문구를 출력해주는 기능을 제공합니다.
207
-
208
- The `VURL` component provides functionality to display validation messages for basic url fields.
209
-
210
- #### 사용 예제, Example
211
-
212
- ```jsx
213
- import React from 'react';
214
- import { VText } from 'react-validate-component';
215
-
216
- const App = () => {
217
- const [vState, setvState] = React.useState < boolean > false;
218
- const [vMessage, setvMessage] = React.useState < string > '';
219
- const [message, setmessage] =
220
- React.useState < string > 'https://www.naver.com';
221
-
222
- React.useEffect(() => {
223
- if (/^http[s]?:\/\/([\S]{3,})/i.test(message)) {
224
- setvState(false);
225
- setvMessage('');
226
- } else {
227
- setvState(true);
228
- setvMessage('IT MUST BE URL.');
229
- }
230
- }, [message]);
231
-
232
- return (
233
- <div>
234
- <h2>VURL</h2>
235
- <h3>INPUT URL.</h3>
236
- <VURL
237
- vState={vState}
238
- vType={'outer'}
239
- // vClassName={'test'}
240
- vShowMessage={true}
241
- vMessage={vMessage}
242
- vLocateMessage={'bottom-left'}
243
- vMessageClass={styles.validation_message}
244
- vIsAnimate={true}
245
- props={{
246
- onChange: (e: { target: { value: string } }) => {
247
- setmessage(e.target.value);
248
- },
249
- placeholder: 'this is react-validate-component test.',
250
- className: styles.input_text,
251
- defaultValue: 'https://www.naver.com',
252
- }}
253
- />
254
- </div>
255
- );
256
- };
257
-
258
- export default App;
259
- ```
260
-
261
- #### Props
262
-
263
- - `vState` (boolean): 유효성 상태 값입니다.
264
- - `vType` (`inner`, `outer`, `tooltip`): 유효성 메시지를 띄우는 타입입니다.
265
- - `vClassName` (string): 유효성 입힐 class 명입니다.
266
- - `vShowMessage` (boolean): 유효성 메시지 출력 여부값입니다.
267
- - `vMessage` (string): 유효성 검사 실패 시 표시할 에러 메시지입니다.
268
- - `vLocateMessage` (`top-left`, `top`, `top-right`, `center-left`, `center`, `center-right`, `bottom-left`, `bottom`, `bottom-right`): 유효성 메시지를 element 어디에 붙일지 위치값입니다.
269
- - `vMessageClass` (string): 유효성 메시지에 입힐 class 명입니다.
270
- - `vIsAnimate` (boolean): 유효성 메시지 출력 시 애니메이션 적용할지 여부입니다. (현재는 opacity만 적용되어있습니다.)
271
- - `props` (object): 기타 옵션입니다. 기본 input 태그에 attribute로 넣을 값들을 입력하시면 됩니다.
272
-
273
- - `vState` (boolean): The validity status value.
274
- - `vType` (`inner`, `outer`, `tooltip`): The type of validation message display.
275
- - `vClassName` (string): The class name to apply for validation styling.
276
- - `vShowMessage` (boolean): Whether to display the validation message.
277
- - `vMessage` (string): The error message to display when validation fails.
278
- - `vLocateMessage` (`top-left`, `top`, `top-right`, `center-left`, `center`, `center-right`, `bottom-left`, `bottom`, `bottom-right`): The position where the validation message should be displayed relative to the element.
279
- - `vMessageClass` (string): The class name to apply to the validation message.
280
- - `vIsAnimate` (boolean): Whether to apply animation when displaying the validation message (currently, only opacity animation is supported).
281
- - `props` (object): Other options. Enter values for attributes that can be added to the basic input tag.
33
+ [vText](./doc/vtext.md)
34
+ [vCheckbox](./doc/vcheckbox.md)
35
+ [vURL](./doc/vurl.md)
36
+ [vEmail](./doc/vemail.md)
37
+ [vRadio](./doc/vradio.md)
282
38
 
283
39
  ### 유효성 검사 규칙, Validation Rules
284
40
 
@@ -290,11 +46,11 @@ export default App;
290
46
 
291
47
  ## 개발중인 기능, Features in Development
292
48
 
293
- - 현재 `VText`, `VCheckbox` 컴포넌트만 구현되어 있으며, 다른 입력 유형에 대한 컴포넌트도 개발할 예정입니다.
49
+ - 현재 `VText`, `VCheckbox`, `VURL`, `VEmail`, `VRadio` 컴포넌트만 구현되어 있으며, 다른 입력 유형에 대한 컴포넌트도 개발할 예정입니다.
294
50
  - 추가적인 유효성 검사 규칙 및 에러 메시지 처리 기능이 계획되어 있습니다.
295
51
  - 현재 문서에 이미지를 추가한 문서 업데이트도 예정되어있습니다.
296
52
 
297
- - Currently, only the `VText`, `VCheckbox` component is implemented, but components for other input types are planned for development.
53
+ - Currently, only the `VText`, `VCheckbox`, `VURL`, `VEmail`, `VRadio` component is implemented, but components for other input types are planned for development.
298
54
  - Additional validation rules and error message handling features are also in the pipeline.
299
55
  - Updates to the documentation, including the addition of images, are also planned.
300
56
 
@@ -33,13 +33,13 @@ function styleInject(css, ref) {
33
33
  }
34
34
  }
35
35
 
36
- var css_248z = ".index-module_invalid__iPosr {\r\n border: 2px solid red;\r\n outline: none;\r\n}\r\n.index-module_invalid__iPosr:focus,\r\n.index-module_invalid__iPosr:focus-visible,\r\n.index-module_invalid__iPosr:focus-within {\r\n border: 2px solid red;\r\n}\r\n\r\n/* vType === 'outer' */\r\n.index-module_vinput__Xz53v {\r\n display: flex;\r\n}\r\n.index-module_vinput-top-left__UFNRe {\r\n flex-direction: column-reverse;\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-top__Gor3M {\r\n flex-direction: column-reverse;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-top-right__wexyT {\r\n flex-direction: column-reverse;\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-center-left__oTbXC {\r\n flex-direction: row-reverse;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-center-right__wz--8 {\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom-left__9gm8q {\r\n flex-direction: column;\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom__bxp6x {\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom-right__ihiB0 {\r\n flex-direction: column;\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n\r\n/* vType === 'inner' */\r\n.index-module_innerMessage__cnS6N {\r\n position: absolute;\r\n font-size: 12px;\r\n margin: 0;\r\n padding: 2px 5px;\r\n display: flex;\r\n}\r\n.index-module_innerMessage-top-left__3804h {\r\n align-items: flex-start;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-top__MRmrS {\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-top-right__4ejsZ {\r\n align-items: flex-start;\r\n justify-content: flex-end;\r\n}\r\n.index-module_innerMessage-center-left__t2SwR {\r\n align-items: center;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-center__gT4X6 {\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-center-right__FzHy2 {\r\n align-items: center;\r\n justify-content: flex-end;\r\n}\r\n.index-module_innerMessage-bottom-left__gI2z5 {\r\n align-items: flex-end;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-bottom__Zb48i {\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-bottom-right__OlaLD {\r\n align-items: flex-end;\r\n justify-content: flex-end;\r\n}\r\n\r\n/* vType === 'tooltip' */\r\n.index-module_tooltipMessage__BG3C0 {\r\n position: absolute;\r\n margin: 0;\r\n padding: 10px 20px;\r\n border: 1px solid transparent;\r\n border-radius: 10px;\r\n background-color: black;\r\n}\r\np[class*='tooltipMessage-top'] {\r\n transform: translateY(calc(-100% - 10px));\r\n}\r\np[class*='tooltipMessage-top']::after {\r\n content: '';\r\n position: absolute;\r\n bottom: 0;\r\n border: 10px solid transparent;\r\n border-top-color: black;\r\n border-bottom: 0;\r\n margin-bottom: -11px;\r\n}\r\n.index-module_vinput__Xz53v.index-module_tooltipMessage-top-left__EExDe {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-top-left__EExDe::after {\r\n left: 3%;\r\n}\r\n.index-module_vinput__Xz53v.index-module_tooltipMessage-top__L7c5- {\r\n justify-content: center;\r\n}\r\np.index-module_tooltipMessage-top__L7c5-::after {\r\n left: 44%;\r\n}\r\n.index-module_tooltipMessage-top-right__iVHO9 {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-top-right__iVHO9::after {\r\n left: 87%;\r\n}\r\np[class*='tooltipMessage-center'] {\r\n /* transform: translateY(calc(-100% - 10px)); */\r\n}\r\np[class*='tooltipMessage-center']::after {\r\n content: '';\r\n position: absolute;\r\n border: 10px solid transparent;\r\n}\r\n.index-module_vinput__Xz53v.index-module_tooltipMessage-center-right__nL7jv {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-center-right__nL7jv {\r\n transform: translateX(calc(100% + 10px));\r\n}\r\np.index-module_tooltipMessage-center-right__nL7jv::after {\r\n border-right-color: black;\r\n left: -10%;\r\n}\r\n.index-module_vinput__Xz53v.index-module_tooltipMessage-center-left__C2dwc {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-center-left__C2dwc {\r\n transform: translateX(calc(-100% - 10px));\r\n}\r\np.index-module_tooltipMessage-center-left__C2dwc::after {\r\n border-left-color: black;\r\n left: 100%;\r\n}\r\n\r\np[class*='tooltipMessage-bottom'] {\r\n transform: translateY(calc(120% + 10px));\r\n}\r\np[class*='tooltipMessage-bottom']::after {\r\n content: '';\r\n position: absolute;\r\n top: 0;\r\n border: 10px solid transparent;\r\n border-bottom-color: black;\r\n border-top: 0;\r\n margin-top: -11px;\r\n}\r\n.index-module_vinput__Xz53v.index-module_tooltipMessage-bottom-left__G4dRB {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-bottom-left__G4dRB::after {\r\n left: 3%;\r\n}\r\n.index-module_vinput__Xz53v.index-module_tooltipMessage-bottom__O5fIQ {\r\n justify-content: center;\r\n}\r\np.index-module_tooltipMessage-bottom__O5fIQ::after {\r\n left: 44%;\r\n}\r\n.index-module_tooltipMessage-bottom-right__ACA9z {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-bottom-right__ACA9z::after {\r\n left: 87%;\r\n}\r\n\r\n.index-module_animateMessage__2Xq3T {\r\n animation: index-module_fade-in__Xcu-Q 1s ease-in-out;\r\n}\r\n\r\n@keyframes index-module_fade-in__Xcu-Q {\r\n 0% {\r\n opacity: 0;\r\n }\r\n 100% {\r\n opacity: 1;\r\n }\r\n}\r\n";
37
- var styles = {"invalid":"index-module_invalid__iPosr","vinput":"index-module_vinput__Xz53v","vinput-top-left":"index-module_vinput-top-left__UFNRe","vinput-top":"index-module_vinput-top__Gor3M","vinput-top-right":"index-module_vinput-top-right__wexyT","vinput-center-left":"index-module_vinput-center-left__oTbXC","vinput-center-right":"index-module_vinput-center-right__wz--8","vinput-bottom-left":"index-module_vinput-bottom-left__9gm8q","vinput-bottom":"index-module_vinput-bottom__bxp6x","vinput-bottom-right":"index-module_vinput-bottom-right__ihiB0","innerMessage":"index-module_innerMessage__cnS6N","innerMessage-top-left":"index-module_innerMessage-top-left__3804h","innerMessage-top":"index-module_innerMessage-top__MRmrS","innerMessage-top-right":"index-module_innerMessage-top-right__4ejsZ","innerMessage-center-left":"index-module_innerMessage-center-left__t2SwR","innerMessage-center":"index-module_innerMessage-center__gT4X6","innerMessage-center-right":"index-module_innerMessage-center-right__FzHy2","innerMessage-bottom-left":"index-module_innerMessage-bottom-left__gI2z5","innerMessage-bottom":"index-module_innerMessage-bottom__Zb48i","innerMessage-bottom-right":"index-module_innerMessage-bottom-right__OlaLD","tooltipMessage":"index-module_tooltipMessage__BG3C0","tooltipMessage-top-left":"index-module_tooltipMessage-top-left__EExDe","tooltipMessage-top":"index-module_tooltipMessage-top__L7c5-","tooltipMessage-top-right":"index-module_tooltipMessage-top-right__iVHO9","tooltipMessage-center-right":"index-module_tooltipMessage-center-right__nL7jv","tooltipMessage-center-left":"index-module_tooltipMessage-center-left__C2dwc","tooltipMessage-bottom-left":"index-module_tooltipMessage-bottom-left__G4dRB","tooltipMessage-bottom":"index-module_tooltipMessage-bottom__O5fIQ","tooltipMessage-bottom-right":"index-module_tooltipMessage-bottom-right__ACA9z","animateMessage":"index-module_animateMessage__2Xq3T","fade-in":"index-module_fade-in__Xcu-Q"};
36
+ var css_248z = ".index-module_invalid__gHKsE {\r\n border: 2px solid red;\r\n outline: none;\r\n}\r\n.index-module_invalid__gHKsE:focus,\r\n.index-module_invalid__gHKsE:focus-visible,\r\n.index-module_invalid__gHKsE:focus-within {\r\n border: 2px solid red;\r\n}\r\n\r\n/* vType === 'outer' */\r\n.index-module_vinput__tFGFH {\r\n display: flex;\r\n}\r\n.index-module_vinput-top-left__2g8Bq {\r\n flex-direction: column-reverse;\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-top__ZTh6H {\r\n flex-direction: column-reverse;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-top-right__t6K-Q {\r\n flex-direction: column-reverse;\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-center-left__vJn0s {\r\n flex-direction: row-reverse;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-center-right__HDgip {\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom-left__xxaiT {\r\n flex-direction: column;\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom__nCOAf {\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom-right__6AjOE {\r\n flex-direction: column;\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n\r\n/* vType === 'inner' */\r\n.index-module_innerMessage__rihga {\r\n position: absolute;\r\n font-size: 12px;\r\n margin: 0;\r\n padding: 2px 5px;\r\n display: flex;\r\n}\r\n.index-module_innerMessage-top-left__HLoYg {\r\n align-items: flex-start;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-top__ouYW6 {\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-top-right__7tMC8 {\r\n align-items: flex-start;\r\n justify-content: flex-end;\r\n}\r\n.index-module_innerMessage-center-left__4iZyl {\r\n align-items: center;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-center__U2006 {\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-center-right__Pg2oU {\r\n align-items: center;\r\n justify-content: flex-end;\r\n}\r\n.index-module_innerMessage-bottom-left__1QDIv {\r\n align-items: flex-end;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-bottom__gMogT {\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-bottom-right__peBq- {\r\n align-items: flex-end;\r\n justify-content: flex-end;\r\n}\r\n\r\n/* vType === 'tooltip' */\r\n.index-module_tooltipMessage__ZlthY {\r\n position: absolute;\r\n margin: 0;\r\n padding: 10px 20px;\r\n border: 1px solid transparent;\r\n border-radius: 10px;\r\n background-color: black;\r\n}\r\np[class*='tooltipMessage-top'] {\r\n transform: translateY(calc(-100% - 10px));\r\n}\r\np[class*='tooltipMessage-top']::after {\r\n content: '';\r\n position: absolute;\r\n bottom: 0;\r\n border: 10px solid transparent;\r\n border-top-color: black;\r\n border-bottom: 0;\r\n margin-bottom: -11px;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-top-left__us8PI {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-top-left__us8PI::after {\r\n left: 3%;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-top__NaUtu {\r\n justify-content: center;\r\n}\r\np.index-module_tooltipMessage-top__NaUtu::after {\r\n left: 44%;\r\n}\r\n.index-module_tooltipMessage-top-right__UveQN {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-top-right__UveQN::after {\r\n left: 87%;\r\n}\r\np[class*='tooltipMessage-center'] {\r\n /* transform: translateY(calc(-100% - 10px)); */\r\n}\r\np[class*='tooltipMessage-center']::after {\r\n content: '';\r\n position: absolute;\r\n border: 10px solid transparent;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-center-right__8eqfQ {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-center-right__8eqfQ {\r\n transform: translateX(calc(100% + 10px));\r\n}\r\np.index-module_tooltipMessage-center-right__8eqfQ::after {\r\n border-right-color: black;\r\n left: -10%;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-center-left__yyDuD {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-center-left__yyDuD {\r\n transform: translateX(calc(-100% - 10px));\r\n}\r\np.index-module_tooltipMessage-center-left__yyDuD::after {\r\n border-left-color: black;\r\n left: 100%;\r\n}\r\n\r\np[class*='tooltipMessage-bottom'] {\r\n transform: translateY(calc(120% + 10px));\r\n}\r\np[class*='tooltipMessage-bottom']::after {\r\n content: '';\r\n position: absolute;\r\n top: 0;\r\n border: 10px solid transparent;\r\n border-bottom-color: black;\r\n border-top: 0;\r\n margin-top: -11px;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-bottom-left__u-H0Q {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-bottom-left__u-H0Q::after {\r\n left: 3%;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-bottom__YOZgV {\r\n justify-content: center;\r\n}\r\np.index-module_tooltipMessage-bottom__YOZgV::after {\r\n left: 44%;\r\n}\r\n.index-module_tooltipMessage-bottom-right__yD0zu {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-bottom-right__yD0zu::after {\r\n left: 87%;\r\n}\r\n\r\n.index-module_animateMessage__Gxf3M {\r\n animation: index-module_fade-in__GxKz8 1s ease-in-out;\r\n}\r\n\r\n@keyframes index-module_fade-in__GxKz8 {\r\n 0% {\r\n opacity: 0;\r\n }\r\n 100% {\r\n opacity: 1;\r\n }\r\n}\r\n";
37
+ var styles = {"invalid":"index-module_invalid__gHKsE","vinput":"index-module_vinput__tFGFH","vinput-top-left":"index-module_vinput-top-left__2g8Bq","vinput-top":"index-module_vinput-top__ZTh6H","vinput-top-right":"index-module_vinput-top-right__t6K-Q","vinput-center-left":"index-module_vinput-center-left__vJn0s","vinput-center-right":"index-module_vinput-center-right__HDgip","vinput-bottom-left":"index-module_vinput-bottom-left__xxaiT","vinput-bottom":"index-module_vinput-bottom__nCOAf","vinput-bottom-right":"index-module_vinput-bottom-right__6AjOE","innerMessage":"index-module_innerMessage__rihga","innerMessage-top-left":"index-module_innerMessage-top-left__HLoYg","innerMessage-top":"index-module_innerMessage-top__ouYW6","innerMessage-top-right":"index-module_innerMessage-top-right__7tMC8","innerMessage-center-left":"index-module_innerMessage-center-left__4iZyl","innerMessage-center":"index-module_innerMessage-center__U2006","innerMessage-center-right":"index-module_innerMessage-center-right__Pg2oU","innerMessage-bottom-left":"index-module_innerMessage-bottom-left__1QDIv","innerMessage-bottom":"index-module_innerMessage-bottom__gMogT","innerMessage-bottom-right":"index-module_innerMessage-bottom-right__peBq-","tooltipMessage":"index-module_tooltipMessage__ZlthY","tooltipMessage-top-left":"index-module_tooltipMessage-top-left__us8PI","tooltipMessage-top":"index-module_tooltipMessage-top__NaUtu","tooltipMessage-top-right":"index-module_tooltipMessage-top-right__UveQN","tooltipMessage-center-right":"index-module_tooltipMessage-center-right__8eqfQ","tooltipMessage-center-left":"index-module_tooltipMessage-center-left__yyDuD","tooltipMessage-bottom-left":"index-module_tooltipMessage-bottom-left__u-H0Q","tooltipMessage-bottom":"index-module_tooltipMessage-bottom__YOZgV","tooltipMessage-bottom-right":"index-module_tooltipMessage-bottom-right__yD0zu","animateMessage":"index-module_animateMessage__Gxf3M","fade-in":"index-module_fade-in__GxKz8"};
38
38
  styleInject(css_248z);
39
39
 
40
40
  // Text
41
41
  function VText(_ref) {
42
- var _props$defaultValue, _props$defaultValue2, _props$defaultValue3;
42
+ var _props$defaultValue, _props$className, _props$defaultValue2, _props$className2, _props$defaultValue3, _props$className3;
43
43
  var _ref$vState = _ref.vState,
44
44
  vState = _ref$vState === void 0 ? false : _ref$vState,
45
45
  _ref$vType = _ref.vType,
@@ -66,7 +66,7 @@ function VText(_ref) {
66
66
  type: "text"
67
67
  }, props, {
68
68
  defaultValue: (_props$defaultValue = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue : '',
69
- className: (props == null ? void 0 : props.className) + " " + (vState ? vClassName || styles.invalid : '')
69
+ className: ((_props$className = props == null ? void 0 : props.className) != null ? _props$className : '') + " " + vClassName + " " + (vState ? styles.invalid : '')
70
70
  })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
71
71
  className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
72
72
  }, vMessage)) : null);
@@ -77,7 +77,7 @@ function VText(_ref) {
77
77
  type: "text"
78
78
  }, props, {
79
79
  defaultValue: (_props$defaultValue2 = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue2 : '',
80
- className: (props == null ? void 0 : props.className) + " " + (vState ? vClassName || styles.invalid : '')
80
+ className: ((_props$className2 = props == null ? void 0 : props.className) != null ? _props$className2 : '') + " " + vClassName + " " + (vState ? styles.invalid : '')
81
81
  })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
82
82
  className: vMessageClass + " " + styles.innerMessage + " " + styles["innerMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles.animateMessage : '')
83
83
  }, vMessage)) : null);
@@ -88,7 +88,7 @@ function VText(_ref) {
88
88
  type: "text"
89
89
  }, props, {
90
90
  defaultValue: (_props$defaultValue3 = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue3 : '',
91
- className: (props == null ? void 0 : props.className) + " " + (vState ? vClassName || styles.invalid : '')
91
+ className: ((_props$className3 = props == null ? void 0 : props.className) != null ? _props$className3 : '') + " " + vClassName + " " + (vState ? styles.invalid : '')
92
92
  })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
93
93
  className: vMessageClass + " " + styles.tooltipMessage + " " + styles["tooltipMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles.animateMessage : '')
94
94
  }, vMessage)) : null);
@@ -97,10 +97,6 @@ function VText(_ref) {
97
97
  }
98
98
  }
99
99
 
100
- var css_248z$1 = ".index-module_invalid__jaxx5 {\r\n border: 2px solid red;\r\n outline: none;\r\n}\r\n.index-module_invalid__jaxx5:focus,\r\n.index-module_invalid__jaxx5:focus-visible,\r\n.index-module_invalid__jaxx5:focus-within {\r\n border: 2px solid red;\r\n}\r\n\r\n.index-module_flex_column__jVY8S {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.index-module_checkbox_layout__CnBGz {\r\n width: 400px;\r\n display: flex;\r\n flex-wrap: wrap;\r\n gap: 10px;\r\n}\r\n\r\n.index-module_animateMessage__o7xGY {\r\n animation: index-module_fade-in__KDZ5w 1s ease-in-out;\r\n}\r\n\r\n@keyframes index-module_fade-in__KDZ5w {\r\n 0% {\r\n opacity: 0;\r\n }\r\n 100% {\r\n opacity: 1;\r\n }\r\n}\r\n";
101
- var styles$1 = {"invalid":"index-module_invalid__jaxx5","flex_column":"index-module_flex_column__jVY8S","checkbox_layout":"index-module_checkbox_layout__CnBGz","animateMessage":"index-module_animateMessage__o7xGY","fade-in":"index-module_fade-in__KDZ5w"};
102
- styleInject(css_248z$1);
103
-
104
100
  function VCheckbox(_ref) {
105
101
  var _ref$vState = _ref.vState,
106
102
  vState = _ref$vState === void 0 ? false : _ref$vState,
@@ -132,7 +128,7 @@ function VCheckbox(_ref) {
132
128
  vCheckList.forEach(function (val, i) {
133
129
  result.push( /*#__PURE__*/React.createElement("label", {
134
130
  htmlFor: "vCheckbox-" + i,
135
- className: vLabelClassName + " " + (vCheckedList[i] ? vCheckedClassName : '') + " " + (vState ? styles$1.invalid : ''),
131
+ className: vLabelClassName + " " + (vCheckedList[i] ? vCheckedClassName : '') + " " + (vState ? styles.invalid : ''),
136
132
  key: i
137
133
  }, /*#__PURE__*/React.createElement("input", Object.assign({
138
134
  id: "vCheckbox-" + i,
@@ -144,33 +140,29 @@ function VCheckbox(_ref) {
144
140
  }, props)), /*#__PURE__*/React.createElement("span", null, val)));
145
141
  });
146
142
  return /*#__PURE__*/React.createElement("div", {
147
- className: styles$1.checkbox_layout
143
+ className: styles.checkbox_layout
148
144
  }, result);
149
145
  }
150
146
  switch (vType) {
151
147
  case 'top':
152
148
  return /*#__PURE__*/React.createElement("div", {
153
- className: styles$1.flex_column
149
+ className: styles.flex_column
154
150
  }, vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
155
- className: vMessageClass + " " + (vIsAnimate ? styles$1.animateMessage : '')
151
+ className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
156
152
  }, vMessage)) : null, makeCheckList());
157
153
  case 'bottom':
158
154
  return /*#__PURE__*/React.createElement("div", {
159
- className: styles$1.flex_column
155
+ className: styles.flex_column
160
156
  }, makeCheckList(), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
161
- className: vMessageClass + " " + (vIsAnimate ? styles$1.animateMessage : '')
157
+ className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
162
158
  }, vMessage)) : null);
163
159
  default:
164
160
  return /*#__PURE__*/React.createElement(React.Fragment, null);
165
161
  }
166
162
  }
167
163
 
168
- var css_248z$2 = ".index-module_invalid__Vthuh {\r\n border: 2px solid red;\r\n outline: none;\r\n}\r\n.index-module_invalid__Vthuh:focus,\r\n.index-module_invalid__Vthuh:focus-visible,\r\n.index-module_invalid__Vthuh:focus-within {\r\n border: 2px solid red;\r\n}\r\n\r\n/* vType === 'outer' */\r\n.index-module_vinput__Lvi4O {\r\n display: flex;\r\n}\r\n.index-module_vinput-top-left__sBqYe {\r\n flex-direction: column-reverse;\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-top__qDZz- {\r\n flex-direction: column-reverse;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-top-right__I-hDB {\r\n flex-direction: column-reverse;\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-center-left__oYELK {\r\n flex-direction: row-reverse;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-center-right__91z7q {\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom-left__6K-Lk {\r\n flex-direction: column;\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom__FlRwi {\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom-right__xC4I1 {\r\n flex-direction: column;\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n\r\n/* vType === 'inner' */\r\n.index-module_innerMessage__Rajpi {\r\n position: absolute;\r\n font-size: 12px;\r\n margin: 0;\r\n padding: 2px 5px;\r\n display: flex;\r\n}\r\n.index-module_innerMessage-top-left__JdN8y {\r\n align-items: flex-start;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-top__ASXWj {\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-top-right__62EeZ {\r\n align-items: flex-start;\r\n justify-content: flex-end;\r\n}\r\n.index-module_innerMessage-center-left__TS--f {\r\n align-items: center;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-center__-c2-N {\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-center-right__ow9Vw {\r\n align-items: center;\r\n justify-content: flex-end;\r\n}\r\n.index-module_innerMessage-bottom-left__a2DiX {\r\n align-items: flex-end;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-bottom__tSUzZ {\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-bottom-right__VNQIp {\r\n align-items: flex-end;\r\n justify-content: flex-end;\r\n}\r\n\r\n/* vType === 'tooltip' */\r\n.index-module_tooltipMessage__fCp4y {\r\n position: absolute;\r\n margin: 0;\r\n padding: 10px 20px;\r\n border: 1px solid transparent;\r\n border-radius: 10px;\r\n background-color: black;\r\n}\r\np[class*='tooltipMessage-top'] {\r\n transform: translateY(calc(-100% - 10px));\r\n}\r\np[class*='tooltipMessage-top']::after {\r\n content: '';\r\n position: absolute;\r\n bottom: 0;\r\n border: 10px solid transparent;\r\n border-top-color: black;\r\n border-bottom: 0;\r\n margin-bottom: -11px;\r\n}\r\n.index-module_vinput__Lvi4O.index-module_tooltipMessage-top-left__2a7YY {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-top-left__2a7YY::after {\r\n left: 3%;\r\n}\r\n.index-module_vinput__Lvi4O.index-module_tooltipMessage-top__vfEvp {\r\n justify-content: center;\r\n}\r\np.index-module_tooltipMessage-top__vfEvp::after {\r\n left: 44%;\r\n}\r\n.index-module_tooltipMessage-top-right__3AW9- {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-top-right__3AW9-::after {\r\n left: 87%;\r\n}\r\np[class*='tooltipMessage-center'] {\r\n /* transform: translateY(calc(-100% - 10px)); */\r\n}\r\np[class*='tooltipMessage-center']::after {\r\n content: '';\r\n position: absolute;\r\n border: 10px solid transparent;\r\n}\r\n.index-module_vinput__Lvi4O.index-module_tooltipMessage-center-right__5Sxay {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-center-right__5Sxay {\r\n transform: translateX(calc(100% + 10px));\r\n}\r\np.index-module_tooltipMessage-center-right__5Sxay::after {\r\n border-right-color: black;\r\n left: -10%;\r\n}\r\n.index-module_vinput__Lvi4O.index-module_tooltipMessage-center-left__8ShCG {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-center-left__8ShCG {\r\n transform: translateX(calc(-100% - 10px));\r\n}\r\np.index-module_tooltipMessage-center-left__8ShCG::after {\r\n border-left-color: black;\r\n left: 100%;\r\n}\r\n\r\np[class*='tooltipMessage-bottom'] {\r\n transform: translateY(calc(120% + 10px));\r\n}\r\np[class*='tooltipMessage-bottom']::after {\r\n content: '';\r\n position: absolute;\r\n top: 0;\r\n border: 10px solid transparent;\r\n border-bottom-color: black;\r\n border-top: 0;\r\n margin-top: -11px;\r\n}\r\n.index-module_vinput__Lvi4O.index-module_tooltipMessage-bottom-left__NNUPd {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-bottom-left__NNUPd::after {\r\n left: 3%;\r\n}\r\n.index-module_vinput__Lvi4O.index-module_tooltipMessage-bottom__73oDg {\r\n justify-content: center;\r\n}\r\np.index-module_tooltipMessage-bottom__73oDg::after {\r\n left: 44%;\r\n}\r\n.index-module_tooltipMessage-bottom-right__QqsJp {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-bottom-right__QqsJp::after {\r\n left: 87%;\r\n}\r\n\r\n.index-module_animateMessage__QOzDN {\r\n animation: index-module_fade-in__-mmbL 1s ease-in-out;\r\n}\r\n\r\n@keyframes index-module_fade-in__-mmbL {\r\n 0% {\r\n opacity: 0;\r\n }\r\n 100% {\r\n opacity: 1;\r\n }\r\n}\r\n";
169
- var styles$2 = {"invalid":"index-module_invalid__Vthuh","vinput":"index-module_vinput__Lvi4O","vinput-top-left":"index-module_vinput-top-left__sBqYe","vinput-top":"index-module_vinput-top__qDZz-","vinput-top-right":"index-module_vinput-top-right__I-hDB","vinput-center-left":"index-module_vinput-center-left__oYELK","vinput-center-right":"index-module_vinput-center-right__91z7q","vinput-bottom-left":"index-module_vinput-bottom-left__6K-Lk","vinput-bottom":"index-module_vinput-bottom__FlRwi","vinput-bottom-right":"index-module_vinput-bottom-right__xC4I1","innerMessage":"index-module_innerMessage__Rajpi","innerMessage-top-left":"index-module_innerMessage-top-left__JdN8y","innerMessage-top":"index-module_innerMessage-top__ASXWj","innerMessage-top-right":"index-module_innerMessage-top-right__62EeZ","innerMessage-center-left":"index-module_innerMessage-center-left__TS--f","innerMessage-center":"index-module_innerMessage-center__-c2-N","innerMessage-center-right":"index-module_innerMessage-center-right__ow9Vw","innerMessage-bottom-left":"index-module_innerMessage-bottom-left__a2DiX","innerMessage-bottom":"index-module_innerMessage-bottom__tSUzZ","innerMessage-bottom-right":"index-module_innerMessage-bottom-right__VNQIp","tooltipMessage":"index-module_tooltipMessage__fCp4y","tooltipMessage-top-left":"index-module_tooltipMessage-top-left__2a7YY","tooltipMessage-top":"index-module_tooltipMessage-top__vfEvp","tooltipMessage-top-right":"index-module_tooltipMessage-top-right__3AW9-","tooltipMessage-center-right":"index-module_tooltipMessage-center-right__5Sxay","tooltipMessage-center-left":"index-module_tooltipMessage-center-left__8ShCG","tooltipMessage-bottom-left":"index-module_tooltipMessage-bottom-left__NNUPd","tooltipMessage-bottom":"index-module_tooltipMessage-bottom__73oDg","tooltipMessage-bottom-right":"index-module_tooltipMessage-bottom-right__QqsJp","animateMessage":"index-module_animateMessage__QOzDN","fade-in":"index-module_fade-in__-mmbL"};
170
- styleInject(css_248z$2);
171
-
172
164
  function VURL(_ref) {
173
- var _props$defaultValue, _props$defaultValue2, _props$defaultValue3;
165
+ var _props$defaultValue, _props$className, _props$defaultValue2, _props$className2, _props$defaultValue3, _props$className3;
174
166
  var _ref$vState = _ref.vState,
175
167
  vState = _ref$vState === void 0 ? false : _ref$vState,
176
168
  _ref$vType = _ref.vType,
@@ -192,36 +184,36 @@ function VURL(_ref) {
192
184
  switch (vType) {
193
185
  case 'outer':
194
186
  return /*#__PURE__*/React.createElement("div", {
195
- className: styles$2.vinput + " " + styles$2["vinput-" + vLocateMessage]
187
+ className: styles.vinput + " " + styles["vinput-" + vLocateMessage]
196
188
  }, /*#__PURE__*/React.createElement("input", Object.assign({
197
189
  type: "url"
198
190
  }, props, {
199
191
  defaultValue: (_props$defaultValue = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue : '',
200
- className: (props == null ? void 0 : props.className) + " " + (vState ? vClassName || styles$2.invalid : '')
192
+ className: ((_props$className = props == null ? void 0 : props.className) != null ? _props$className : '') + " " + vClassName + " " + (vState ? styles.invalid : '')
201
193
  })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
202
- className: vMessageClass + " " + (vIsAnimate ? styles$2.animateMessage : '')
194
+ className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
203
195
  }, vMessage)) : null);
204
196
  case 'inner':
205
197
  return /*#__PURE__*/React.createElement("div", {
206
- className: styles$2.vinput
198
+ className: styles.vinput
207
199
  }, /*#__PURE__*/React.createElement("input", Object.assign({
208
200
  type: "url"
209
201
  }, props, {
210
202
  defaultValue: (_props$defaultValue2 = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue2 : '',
211
- className: (props == null ? void 0 : props.className) + " " + (vState ? vClassName || styles$2.invalid : '')
203
+ className: ((_props$className2 = props == null ? void 0 : props.className) != null ? _props$className2 : '') + " " + vClassName + " " + (vState ? styles.invalid : '')
212
204
  })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
213
- className: vMessageClass + " " + styles$2.innerMessage + " " + styles$2["innerMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles$2.animateMessage : '')
205
+ className: vMessageClass + " " + styles.innerMessage + " " + styles["innerMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles.animateMessage : '')
214
206
  }, vMessage)) : null);
215
207
  case 'tooltip':
216
208
  return /*#__PURE__*/React.createElement("div", {
217
- className: styles$2.vinput + " " + styles$2["tooltipMessage-" + vLocateMessage]
209
+ className: styles.vinput + " " + styles["tooltipMessage-" + vLocateMessage]
218
210
  }, /*#__PURE__*/React.createElement("input", Object.assign({
219
211
  type: "url"
220
212
  }, props, {
221
213
  defaultValue: (_props$defaultValue3 = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue3 : '',
222
- className: (props == null ? void 0 : props.className) + " " + (vState ? vClassName || styles$2.invalid : '')
214
+ className: ((_props$className3 = props == null ? void 0 : props.className) != null ? _props$className3 : '') + " " + vClassName + " " + (vState ? styles.invalid : '')
223
215
  })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
224
- className: vMessageClass + " " + styles$2.tooltipMessage + " " + styles$2["tooltipMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles$2.animateMessage : '')
216
+ className: vMessageClass + " " + styles.tooltipMessage + " " + styles["tooltipMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles.animateMessage : '')
225
217
  }, vMessage)) : null);
226
218
  default:
227
219
  return /*#__PURE__*/React.createElement("div", null);
@@ -240,16 +232,135 @@ function VDate() {
240
232
  });
241
233
  }
242
234
 
243
- function VEmail() {
244
- return /*#__PURE__*/React.createElement("input", {
245
- type: "email"
246
- });
235
+ function VEmail(_ref) {
236
+ var _props$defaultValue, _props$className, _props$defaultValue2, _props$className2, _props$defaultValue3, _props$className3;
237
+ var _ref$vState = _ref.vState,
238
+ vState = _ref$vState === void 0 ? false : _ref$vState,
239
+ _ref$vType = _ref.vType,
240
+ vType = _ref$vType === void 0 ? 'outer' : _ref$vType,
241
+ _ref$vClassName = _ref.vClassName,
242
+ vClassName = _ref$vClassName === void 0 ? '' : _ref$vClassName,
243
+ _ref$vShowMessage = _ref.vShowMessage,
244
+ vShowMessage = _ref$vShowMessage === void 0 ? false : _ref$vShowMessage,
245
+ _ref$vMessage = _ref.vMessage,
246
+ vMessage = _ref$vMessage === void 0 ? '' : _ref$vMessage,
247
+ _ref$vLocateMessage = _ref.vLocateMessage,
248
+ vLocateMessage = _ref$vLocateMessage === void 0 ? 'bottom' : _ref$vLocateMessage,
249
+ _ref$vMessageClass = _ref.vMessageClass,
250
+ vMessageClass = _ref$vMessageClass === void 0 ? '' : _ref$vMessageClass,
251
+ _ref$vIsAnimate = _ref.vIsAnimate,
252
+ vIsAnimate = _ref$vIsAnimate === void 0 ? false : _ref$vIsAnimate,
253
+ _ref$props = _ref.props,
254
+ props = _ref$props === void 0 ? {} : _ref$props;
255
+ switch (vType) {
256
+ case 'outer':
257
+ return /*#__PURE__*/React.createElement("div", {
258
+ className: styles.vinput + " " + styles["vinput-" + vLocateMessage]
259
+ }, /*#__PURE__*/React.createElement("input", Object.assign({
260
+ type: "email"
261
+ }, props, {
262
+ defaultValue: (_props$defaultValue = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue : '',
263
+ className: ((_props$className = props == null ? void 0 : props.className) != null ? _props$className : '') + " " + vClassName + " " + (vState ? styles.invalid : '')
264
+ })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
265
+ className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
266
+ }, vMessage)) : null);
267
+ case 'inner':
268
+ return /*#__PURE__*/React.createElement("div", {
269
+ className: styles.vinput
270
+ }, /*#__PURE__*/React.createElement("input", Object.assign({
271
+ type: "email"
272
+ }, props, {
273
+ defaultValue: (_props$defaultValue2 = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue2 : '',
274
+ className: ((_props$className2 = props == null ? void 0 : props.className) != null ? _props$className2 : '') + " " + vClassName + " " + (vState ? styles.invalid : '')
275
+ })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
276
+ className: vMessageClass + " " + styles.innerMessage + " " + styles["innerMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles.animateMessage : '')
277
+ }, vMessage)) : null);
278
+ case 'tooltip':
279
+ return /*#__PURE__*/React.createElement("div", {
280
+ className: styles.vinput + " " + styles["tooltipMessage-" + vLocateMessage]
281
+ }, /*#__PURE__*/React.createElement("input", Object.assign({
282
+ type: "email"
283
+ }, props, {
284
+ defaultValue: (_props$defaultValue3 = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue3 : '',
285
+ className: ((_props$className3 = props == null ? void 0 : props.className) != null ? _props$className3 : '') + " " + vClassName + " " + (vState ? styles.invalid : '')
286
+ })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
287
+ className: vMessageClass + " " + styles.tooltipMessage + " " + styles["tooltipMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles.animateMessage : '')
288
+ }, vMessage)) : null);
289
+ default:
290
+ return /*#__PURE__*/React.createElement("div", null);
291
+ }
247
292
  }
248
293
 
249
- function VRadio() {
250
- return /*#__PURE__*/React.createElement("input", {
251
- type: "radio"
252
- });
294
+ function VRadio(_ref) {
295
+ var _props$className, _props$className2, _props$className3;
296
+ var _ref$vState = _ref.vState,
297
+ vState = _ref$vState === void 0 ? false : _ref$vState,
298
+ _ref$vName = _ref.vName,
299
+ vName = _ref$vName === void 0 ? '' : _ref$vName,
300
+ _ref$vSelectListName = _ref.vSelectListName,
301
+ vSelectListName = _ref$vSelectListName === void 0 ? [] : _ref$vSelectListName,
302
+ _ref$vSelectListValue = _ref.vSelectListValue,
303
+ vSelectListValue = _ref$vSelectListValue === void 0 ? [] : _ref$vSelectListValue,
304
+ _ref$vType = _ref.vType,
305
+ vType = _ref$vType === void 0 ? 'bottom' : _ref$vType,
306
+ _ref$vClassName = _ref.vClassName,
307
+ vClassName = _ref$vClassName === void 0 ? '' : _ref$vClassName,
308
+ _ref$vShowMessage = _ref.vShowMessage,
309
+ vShowMessage = _ref$vShowMessage === void 0 ? false : _ref$vShowMessage,
310
+ _ref$vMessage = _ref.vMessage,
311
+ vMessage = _ref$vMessage === void 0 ? '' : _ref$vMessage,
312
+ _ref$vLocateMessage = _ref.vLocateMessage,
313
+ vLocateMessage = _ref$vLocateMessage === void 0 ? 'bottom' : _ref$vLocateMessage,
314
+ _ref$vMessageClass = _ref.vMessageClass,
315
+ vMessageClass = _ref$vMessageClass === void 0 ? '' : _ref$vMessageClass,
316
+ _ref$vIsAnimate = _ref.vIsAnimate,
317
+ vIsAnimate = _ref$vIsAnimate === void 0 ? false : _ref$vIsAnimate,
318
+ _ref$props = _ref.props,
319
+ props = _ref$props === void 0 ? {} : _ref$props;
320
+ function makeSelectList() {
321
+ var result = [];
322
+ for (var i = 0; i < vSelectListName.length; i += 1) {
323
+ result.push( /*#__PURE__*/React.createElement("div", {
324
+ key: vName + "-" + i
325
+ }, /*#__PURE__*/React.createElement("input", Object.assign({
326
+ type: "radio",
327
+ id: vName + "-" + i,
328
+ name: vName,
329
+ value: vSelectListValue[i]
330
+ }, props)), /*#__PURE__*/React.createElement("label", {
331
+ htmlFor: vName + "-" + i
332
+ }, vSelectListName[i])));
333
+ }
334
+ return result;
335
+ }
336
+ switch (vType) {
337
+ case 'bottom':
338
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
339
+ className: styles.vinput + " " + styles["vinput-" + vLocateMessage]
340
+ }, /*#__PURE__*/React.createElement("div", {
341
+ className: ((_props$className = props == null ? void 0 : props.className) != null ? _props$className : '') + " " + vClassName
342
+ }, makeSelectList())), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
343
+ className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
344
+ }, vMessage)) : null);
345
+ case 'top':
346
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
347
+ className: styles.vinput + " " + styles["vinput-" + vLocateMessage]
348
+ }, vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
349
+ className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
350
+ }, vMessage)) : null, /*#__PURE__*/React.createElement("div", {
351
+ className: ((_props$className2 = props == null ? void 0 : props.className) != null ? _props$className2 : '') + " " + vClassName
352
+ }, makeSelectList())));
353
+ case 'tooltip':
354
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
355
+ className: styles.vinput + " " + styles["tooltipMessage-" + vLocateMessage]
356
+ }, /*#__PURE__*/React.createElement("div", {
357
+ className: ((_props$className3 = props == null ? void 0 : props.className) != null ? _props$className3 : '') + " " + vClassName
358
+ }, makeSelectList())), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
359
+ className: vMessageClass + " " + styles.tooltipMessage + " " + styles["tooltipMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles.animateMessage : '')
360
+ }, vMessage)) : null);
361
+ default:
362
+ return /*#__PURE__*/React.createElement("div", null);
363
+ }
253
364
  }
254
365
 
255
366
  function VRange() {