react-validate-component 0.2.0 → 0.4.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,9 +24,9 @@ yarn add react-validate-component
24
24
 
25
25
  ## 사용법, How to use
26
26
 
27
- 현재 라이브러리에는 `VText` 컴포넌트가 구현되어 있습니다. 이 컴포넌트를 사용하여 텍스트 입력 필드의 유효성 검사를 쉽게 구현할 수 있습니다.
27
+ 현재 라이브러리에는 `VText`, `VCheckbox`, `VURL`, `VEmail` 컴포넌트가 구현되어 있습니다. 이 컴포넌트를 사용하여 텍스트 입력 필드의 유효성 검사를 쉽게 구현할 수 있습니다.
28
28
 
29
- The library currently includes the `VText` component. You can use this component to easily implement validation for text input fields.
29
+ The library currently includes the `VText`, `VCheckbox`, `VURL`, `VEmail` component. You can use this component to easily implement validation for text input fields.
30
30
 
31
31
  ### VText Component
32
32
 
@@ -119,21 +119,21 @@ The `VCheckbox` component provides functionality to display validation messages
119
119
 
120
120
  ```jsx
121
121
  import React from 'react';
122
- import { VText } from 'react-validate-component';
122
+ import { VCheckbox } from 'react-validate-component';
123
123
 
124
124
  const App = () => {
125
125
  const list = ['Tiger', 'Rabbit', 'Elephant', 'Dog', 'Pig', 'Cat', 'Duck'];
126
126
  const [checked, setChecked] = React.useState<boolean[]>(
127
127
  Array.from(list, () => false)
128
128
  );
129
- const [vState2, setVState2] = React.useState<boolean>(false);
129
+ const [vState, setvState] = React.useState<boolean>(false);
130
130
  const [vMessage2, setVMessage2] = React.useState<string>('');
131
131
  React.useEffect(() => {
132
132
  if (checked.filter(v => v).length > 3) {
133
- setVState2(true);
133
+ setvState(true);
134
134
  setVMessage2('You can check up to 3 items.');
135
135
  } else {
136
- setVState2(false);
136
+ setvState(false);
137
137
  setVMessage2('');
138
138
  }
139
139
  }, [checked]);
@@ -145,7 +145,7 @@ const App = () => {
145
145
  <h2>VCheckbox</h2>
146
146
  <h3>CHECK UP TO 3.</h3>
147
147
  <VCheckbox
148
- vState={vState2}
148
+ vState={vState}
149
149
  vType={'bottom'}
150
150
  // vClassName={'test'}
151
151
  vLabelClassName={styles.label_class}
@@ -201,6 +201,164 @@ export default App;
201
201
  - `vIsAnimate` (boolean): Whether to apply animation when displaying the validation message (currently, only opacity animation is supported).
202
202
  - `props` (object): Other options. Enter values for attributes that can be added to the basic input tag.
203
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 { VURL } 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.
282
+
283
+ ### VEmail Component
284
+
285
+ `VEmail` 컴포넌트는 기본적인 Email 필드에 유효성 검사 문구를 출력해주는 기능을 제공합니다.
286
+
287
+ The `VEmail` component provides functionality to display validation messages for basic Email fields.
288
+
289
+ #### 사용 예제, Example
290
+
291
+ ```jsx
292
+ import React from 'react';
293
+ import { VEmail } from 'react-validate-component';
294
+
295
+ const App = () => {
296
+ const [vState, setvState] = React.useState < boolean > false;
297
+ const [vMessage, setvMessage] = React.useState < string > '';
298
+ const [message, setmessage] =
299
+ React.useState < string > 'https://www.naver.com';
300
+
301
+ React.useEffect(() => {
302
+ if (/^[a-zA-Z0-9+-\_.]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$/i.test(message)) {
303
+ setvState(false);
304
+ setvMessage('');
305
+ } else {
306
+ setvState(true);
307
+ setvMessage('IT MUST BE EMAIL.');
308
+ }
309
+ }, [message]);
310
+
311
+ return (
312
+ <div>
313
+ <h2>VEmail</h2>
314
+ <h3>INPUT EMail.</h3>
315
+ <VEmail
316
+ vState={vState}
317
+ vType={'outer'}
318
+ // vClassName={'test'}
319
+ vShowMessage={true}
320
+ vMessage={vMessage}
321
+ vLocateMessage={'bottom-left'}
322
+ vMessageClass={styles.validation_message}
323
+ vIsAnimate={true}
324
+ props={{
325
+ onChange: (e: { target: { value: string } }) => {
326
+ setmessage(e.target.value);
327
+ },
328
+ placeholder: 'this is react-validate-component test.',
329
+ className: styles.input_text,
330
+ defaultValue: 'test@test.com',
331
+ }}
332
+ />
333
+ </div>
334
+ );
335
+ };
336
+
337
+ export default App;
338
+ ```
339
+
340
+ #### Props
341
+
342
+ - `vState` (boolean): 유효성 상태 값입니다.
343
+ - `vType` (`inner`, `outer`, `tooltip`): 유효성 메시지를 띄우는 타입입니다.
344
+ - `vClassName` (string): 유효성 입힐 class 명입니다.
345
+ - `vShowMessage` (boolean): 유효성 메시지 출력 여부값입니다.
346
+ - `vMessage` (string): 유효성 검사 실패 시 표시할 에러 메시지입니다.
347
+ - `vLocateMessage` (`top-left`, `top`, `top-right`, `center-left`, `center`, `center-right`, `bottom-left`, `bottom`, `bottom-right`): 유효성 메시지를 element 어디에 붙일지 위치값입니다.
348
+ - `vMessageClass` (string): 유효성 메시지에 입힐 class 명입니다.
349
+ - `vIsAnimate` (boolean): 유효성 메시지 출력 시 애니메이션 적용할지 여부입니다. (현재는 opacity만 적용되어있습니다.)
350
+ - `props` (object): 기타 옵션입니다. 기본 input 태그에 attribute로 넣을 값들을 입력하시면 됩니다.
351
+
352
+ - `vState` (boolean): The validity status value.
353
+ - `vType` (`inner`, `outer`, `tooltip`): The type of validation message display.
354
+ - `vClassName` (string): The class name to apply for validation styling.
355
+ - `vShowMessage` (boolean): Whether to display the validation message.
356
+ - `vMessage` (string): The error message to display when validation fails.
357
+ - `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.
358
+ - `vMessageClass` (string): The class name to apply to the validation message.
359
+ - `vIsAnimate` (boolean): Whether to apply animation when displaying the validation message (currently, only opacity animation is supported).
360
+ - `props` (object): Other options. Enter values for attributes that can be added to the basic input tag.
361
+
204
362
  ### 유효성 검사 규칙, Validation Rules
205
363
 
206
364
  - 지금은 사용자가 정규식 혹은 함수를 이용해 작성한 유효성검사 로직을 토대로 element에 출력하고 있습니다.
@@ -211,11 +369,11 @@ export default App;
211
369
 
212
370
  ## 개발중인 기능, Features in Development
213
371
 
214
- - 현재 `VText`, `VCheckbox` 컴포넌트만 구현되어 있으며, 다른 입력 유형에 대한 컴포넌트도 개발할 예정입니다.
372
+ - 현재 `VText`, `VCheckbox`, `VURL`, `VEmail` 컴포넌트만 구현되어 있으며, 다른 입력 유형에 대한 컴포넌트도 개발할 예정입니다.
215
373
  - 추가적인 유효성 검사 규칙 및 에러 메시지 처리 기능이 계획되어 있습니다.
216
374
  - 현재 문서에 이미지를 추가한 문서 업데이트도 예정되어있습니다.
217
375
 
218
- - Currently, only the `VText`, `VCheckbox` component is implemented, but components for other input types are planned for development.
376
+ - Currently, only the `VText`, `VCheckbox`, `VURL`, `VEmail` component is implemented, but components for other input types are planned for development.
219
377
  - Additional validation rules and error message handling features are also in the pipeline.
220
378
  - Updates to the documentation, including the addition of images, are also planned.
221
379
 
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { VText } from './vText';
2
2
  import { VCheckbox } from './vCheckbox';
3
- import { vColor } from './vColor';
4
- import { vDate } from './vDate';
5
- import { vEmail } from './vEmail';
6
- import { vRadio } from './vRadio';
7
- import { vRange } from './vRange';
8
- import { vURL } from './vURL';
9
- export { VText, VCheckbox, vColor, vDate, vEmail, vRadio, vRange, vURL };
3
+ import { VURL } from './vURL';
4
+ import { VColor } from './vColor';
5
+ import { VDate } from './vDate';
6
+ import { VEmail } from './vEmail';
7
+ import { VRadio } from './vRadio';
8
+ import { VRange } from './vRange';
9
+ export { VText, VCheckbox, VURL, VColor, VDate, VEmail, VRadio, VRange };
@@ -165,48 +165,162 @@ function VCheckbox(_ref) {
165
165
  }
166
166
  }
167
167
 
168
- function vColor() {
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
+ function VURL(_ref) {
173
+ var _props$defaultValue, _props$defaultValue2, _props$defaultValue3;
174
+ var _ref$vState = _ref.vState,
175
+ vState = _ref$vState === void 0 ? false : _ref$vState,
176
+ _ref$vType = _ref.vType,
177
+ vType = _ref$vType === void 0 ? 'outer' : _ref$vType,
178
+ _ref$vClassName = _ref.vClassName,
179
+ vClassName = _ref$vClassName === void 0 ? '' : _ref$vClassName,
180
+ _ref$vShowMessage = _ref.vShowMessage,
181
+ vShowMessage = _ref$vShowMessage === void 0 ? false : _ref$vShowMessage,
182
+ _ref$vMessage = _ref.vMessage,
183
+ vMessage = _ref$vMessage === void 0 ? '' : _ref$vMessage,
184
+ _ref$vLocateMessage = _ref.vLocateMessage,
185
+ vLocateMessage = _ref$vLocateMessage === void 0 ? 'bottom' : _ref$vLocateMessage,
186
+ _ref$vMessageClass = _ref.vMessageClass,
187
+ vMessageClass = _ref$vMessageClass === void 0 ? '' : _ref$vMessageClass,
188
+ _ref$vIsAnimate = _ref.vIsAnimate,
189
+ vIsAnimate = _ref$vIsAnimate === void 0 ? false : _ref$vIsAnimate,
190
+ _ref$props = _ref.props,
191
+ props = _ref$props === void 0 ? {} : _ref$props;
192
+ switch (vType) {
193
+ case 'outer':
194
+ return /*#__PURE__*/React.createElement("div", {
195
+ className: styles$2.vinput + " " + styles$2["vinput-" + vLocateMessage]
196
+ }, /*#__PURE__*/React.createElement("input", Object.assign({
197
+ type: "url"
198
+ }, props, {
199
+ 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 : '')
201
+ })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
202
+ className: vMessageClass + " " + (vIsAnimate ? styles$2.animateMessage : '')
203
+ }, vMessage)) : null);
204
+ case 'inner':
205
+ return /*#__PURE__*/React.createElement("div", {
206
+ className: styles$2.vinput
207
+ }, /*#__PURE__*/React.createElement("input", Object.assign({
208
+ type: "url"
209
+ }, props, {
210
+ 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 : '')
212
+ })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
213
+ className: vMessageClass + " " + styles$2.innerMessage + " " + styles$2["innerMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles$2.animateMessage : '')
214
+ }, vMessage)) : null);
215
+ case 'tooltip':
216
+ return /*#__PURE__*/React.createElement("div", {
217
+ className: styles$2.vinput + " " + styles$2["tooltipMessage-" + vLocateMessage]
218
+ }, /*#__PURE__*/React.createElement("input", Object.assign({
219
+ type: "url"
220
+ }, props, {
221
+ 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 : '')
223
+ })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
224
+ className: vMessageClass + " " + styles$2.tooltipMessage + " " + styles$2["tooltipMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles$2.animateMessage : '')
225
+ }, vMessage)) : null);
226
+ default:
227
+ return /*#__PURE__*/React.createElement("div", null);
228
+ }
229
+ }
230
+
231
+ function VColor() {
169
232
  return /*#__PURE__*/React.createElement("input", {
170
233
  type: "color"
171
234
  });
172
235
  }
173
236
 
174
- function vDate() {
237
+ function VDate() {
175
238
  return /*#__PURE__*/React.createElement("input", {
176
239
  type: "date"
177
240
  });
178
241
  }
179
242
 
180
- function vEmail() {
181
- return /*#__PURE__*/React.createElement("input", {
182
- type: "email"
183
- });
243
+ var css_248z$3 = ".index-module_invalid__g4gOQ {\r\n border: 2px solid red;\r\n outline: none;\r\n}\r\n.index-module_invalid__g4gOQ:focus,\r\n.index-module_invalid__g4gOQ:focus-visible,\r\n.index-module_invalid__g4gOQ:focus-within {\r\n border: 2px solid red;\r\n}\r\n\r\n/* vType === 'outer' */\r\n.index-module_vinput__nD5fW {\r\n display: flex;\r\n}\r\n.index-module_vinput-top-left__D6lE9 {\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__rodau {\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__p77kp {\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__nHoBu {\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__LHxdG {\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom-left__rkqBL {\r\n flex-direction: column;\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom__2ZQp5 {\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom-right__UGFj6 {\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__DeAC2 {\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__QDIhX {\r\n align-items: flex-start;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-top__Dr9gg {\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-top-right__gBQlB {\r\n align-items: flex-start;\r\n justify-content: flex-end;\r\n}\r\n.index-module_innerMessage-center-left__Mr4AY {\r\n align-items: center;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-center__oSNQg {\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-center-right__mEgmd {\r\n align-items: center;\r\n justify-content: flex-end;\r\n}\r\n.index-module_innerMessage-bottom-left__iTD-l {\r\n align-items: flex-end;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-bottom__6ZE75 {\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-bottom-right__-1bwL {\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__PoHhQ {\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__nD5fW.index-module_tooltipMessage-top-left__UrEvt {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-top-left__UrEvt::after {\r\n left: 3%;\r\n}\r\n.index-module_vinput__nD5fW.index-module_tooltipMessage-top__6Qj-W {\r\n justify-content: center;\r\n}\r\np.index-module_tooltipMessage-top__6Qj-W::after {\r\n left: 44%;\r\n}\r\n.index-module_tooltipMessage-top-right__-uitG {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-top-right__-uitG::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__nD5fW.index-module_tooltipMessage-center-right__2FqOP {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-center-right__2FqOP {\r\n transform: translateX(calc(100% + 10px));\r\n}\r\np.index-module_tooltipMessage-center-right__2FqOP::after {\r\n border-right-color: black;\r\n left: -10%;\r\n}\r\n.index-module_vinput__nD5fW.index-module_tooltipMessage-center-left__uScPg {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-center-left__uScPg {\r\n transform: translateX(calc(-100% - 10px));\r\n}\r\np.index-module_tooltipMessage-center-left__uScPg::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__nD5fW.index-module_tooltipMessage-bottom-left__5pmcb {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-bottom-left__5pmcb::after {\r\n left: 3%;\r\n}\r\n.index-module_vinput__nD5fW.index-module_tooltipMessage-bottom__h7aPM {\r\n justify-content: center;\r\n}\r\np.index-module_tooltipMessage-bottom__h7aPM::after {\r\n left: 44%;\r\n}\r\n.index-module_tooltipMessage-bottom-right__bRMfy {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-bottom-right__bRMfy::after {\r\n left: 87%;\r\n}\r\n\r\n.index-module_animateMessage__1ylyZ {\r\n animation: index-module_fade-in__95aJk 1s ease-in-out;\r\n}\r\n\r\n@keyframes index-module_fade-in__95aJk {\r\n 0% {\r\n opacity: 0;\r\n }\r\n 100% {\r\n opacity: 1;\r\n }\r\n}\r\n";
244
+ var styles$3 = {"invalid":"index-module_invalid__g4gOQ","vinput":"index-module_vinput__nD5fW","vinput-top-left":"index-module_vinput-top-left__D6lE9","vinput-top":"index-module_vinput-top__rodau","vinput-top-right":"index-module_vinput-top-right__p77kp","vinput-center-left":"index-module_vinput-center-left__nHoBu","vinput-center-right":"index-module_vinput-center-right__LHxdG","vinput-bottom-left":"index-module_vinput-bottom-left__rkqBL","vinput-bottom":"index-module_vinput-bottom__2ZQp5","vinput-bottom-right":"index-module_vinput-bottom-right__UGFj6","innerMessage":"index-module_innerMessage__DeAC2","innerMessage-top-left":"index-module_innerMessage-top-left__QDIhX","innerMessage-top":"index-module_innerMessage-top__Dr9gg","innerMessage-top-right":"index-module_innerMessage-top-right__gBQlB","innerMessage-center-left":"index-module_innerMessage-center-left__Mr4AY","innerMessage-center":"index-module_innerMessage-center__oSNQg","innerMessage-center-right":"index-module_innerMessage-center-right__mEgmd","innerMessage-bottom-left":"index-module_innerMessage-bottom-left__iTD-l","innerMessage-bottom":"index-module_innerMessage-bottom__6ZE75","innerMessage-bottom-right":"index-module_innerMessage-bottom-right__-1bwL","tooltipMessage":"index-module_tooltipMessage__PoHhQ","tooltipMessage-top-left":"index-module_tooltipMessage-top-left__UrEvt","tooltipMessage-top":"index-module_tooltipMessage-top__6Qj-W","tooltipMessage-top-right":"index-module_tooltipMessage-top-right__-uitG","tooltipMessage-center-right":"index-module_tooltipMessage-center-right__2FqOP","tooltipMessage-center-left":"index-module_tooltipMessage-center-left__uScPg","tooltipMessage-bottom-left":"index-module_tooltipMessage-bottom-left__5pmcb","tooltipMessage-bottom":"index-module_tooltipMessage-bottom__h7aPM","tooltipMessage-bottom-right":"index-module_tooltipMessage-bottom-right__bRMfy","animateMessage":"index-module_animateMessage__1ylyZ","fade-in":"index-module_fade-in__95aJk"};
245
+ styleInject(css_248z$3);
246
+
247
+ function VEmail(_ref) {
248
+ var _props$defaultValue, _props$defaultValue2, _props$defaultValue3;
249
+ var _ref$vState = _ref.vState,
250
+ vState = _ref$vState === void 0 ? false : _ref$vState,
251
+ _ref$vType = _ref.vType,
252
+ vType = _ref$vType === void 0 ? 'outer' : _ref$vType,
253
+ _ref$vClassName = _ref.vClassName,
254
+ vClassName = _ref$vClassName === void 0 ? '' : _ref$vClassName,
255
+ _ref$vShowMessage = _ref.vShowMessage,
256
+ vShowMessage = _ref$vShowMessage === void 0 ? false : _ref$vShowMessage,
257
+ _ref$vMessage = _ref.vMessage,
258
+ vMessage = _ref$vMessage === void 0 ? '' : _ref$vMessage,
259
+ _ref$vLocateMessage = _ref.vLocateMessage,
260
+ vLocateMessage = _ref$vLocateMessage === void 0 ? 'bottom' : _ref$vLocateMessage,
261
+ _ref$vMessageClass = _ref.vMessageClass,
262
+ vMessageClass = _ref$vMessageClass === void 0 ? '' : _ref$vMessageClass,
263
+ _ref$vIsAnimate = _ref.vIsAnimate,
264
+ vIsAnimate = _ref$vIsAnimate === void 0 ? false : _ref$vIsAnimate,
265
+ _ref$props = _ref.props,
266
+ props = _ref$props === void 0 ? {} : _ref$props;
267
+ switch (vType) {
268
+ case 'outer':
269
+ return /*#__PURE__*/React.createElement("div", {
270
+ className: styles$3.vinput + " " + styles$3["vinput-" + vLocateMessage]
271
+ }, /*#__PURE__*/React.createElement("input", Object.assign({
272
+ type: "email"
273
+ }, props, {
274
+ defaultValue: (_props$defaultValue = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue : '',
275
+ className: (props == null ? void 0 : props.className) + " " + (vState ? vClassName || styles$3.invalid : '')
276
+ })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
277
+ className: vMessageClass + " " + (vIsAnimate ? styles$3.animateMessage : '')
278
+ }, vMessage)) : null);
279
+ case 'inner':
280
+ return /*#__PURE__*/React.createElement("div", {
281
+ className: styles$3.vinput
282
+ }, /*#__PURE__*/React.createElement("input", Object.assign({
283
+ type: "email"
284
+ }, props, {
285
+ defaultValue: (_props$defaultValue2 = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue2 : '',
286
+ className: (props == null ? void 0 : props.className) + " " + (vState ? vClassName || styles$3.invalid : '')
287
+ })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
288
+ className: vMessageClass + " " + styles$3.innerMessage + " " + styles$3["innerMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles$3.animateMessage : '')
289
+ }, vMessage)) : null);
290
+ case 'tooltip':
291
+ return /*#__PURE__*/React.createElement("div", {
292
+ className: styles$3.vinput + " " + styles$3["tooltipMessage-" + vLocateMessage]
293
+ }, /*#__PURE__*/React.createElement("input", Object.assign({
294
+ type: "email"
295
+ }, props, {
296
+ defaultValue: (_props$defaultValue3 = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue3 : '',
297
+ className: (props == null ? void 0 : props.className) + " " + (vState ? vClassName || styles$3.invalid : '')
298
+ })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
299
+ className: vMessageClass + " " + styles$3.tooltipMessage + " " + styles$3["tooltipMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles$3.animateMessage : '')
300
+ }, vMessage)) : null);
301
+ default:
302
+ return /*#__PURE__*/React.createElement("div", null);
303
+ }
184
304
  }
185
305
 
186
- function vRadio() {
306
+ function VRadio() {
187
307
  return /*#__PURE__*/React.createElement("input", {
188
308
  type: "radio"
189
309
  });
190
310
  }
191
311
 
192
- function vRange() {
312
+ function VRange() {
193
313
  return /*#__PURE__*/React.createElement("input", {
194
314
  type: "range"
195
315
  });
196
316
  }
197
317
 
198
- function vURL() {
199
- return /*#__PURE__*/React.createElement("input", {
200
- type: "url"
201
- });
202
- }
203
-
204
318
  exports.VCheckbox = VCheckbox;
319
+ exports.VColor = VColor;
320
+ exports.VDate = VDate;
321
+ exports.VEmail = VEmail;
322
+ exports.VRadio = VRadio;
323
+ exports.VRange = VRange;
205
324
  exports.VText = VText;
206
- exports.vColor = vColor;
207
- exports.vDate = vDate;
208
- exports.vEmail = vEmail;
209
- exports.vRadio = vRadio;
210
- exports.vRange = vRange;
211
- exports.vURL = vURL;
325
+ exports.VURL = VURL;
212
326
  //# sourceMappingURL=react-validate-component.cjs.development.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-validate-component.cjs.development.js","sources":["../node_modules/style-inject/dist/style-inject.es.js","../src/vText/index.tsx","../src/vCheckbox/index.tsx","../src/vColor/index.tsx","../src/vDate/index.tsx","../src/vEmail/index.tsx","../src/vRadio/index.tsx","../src/vRange/index.tsx","../src/vURL/index.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import React from 'react';\nimport styles from './index.module.css';\nimport { VTEXT_PARAMS } from './vText';\n\n// Text\nexport function VText({\n vState = false,\n vType = 'outer',\n vClassName = '',\n vShowMessage = false,\n vMessage = '',\n vLocateMessage = 'bottom',\n vMessageClass = '',\n vIsAnimate = false,\n props = {},\n}: VTEXT_PARAMS) {\n switch (vType) {\n case 'outer':\n return (\n <div\n className={`${styles.vinput} ${styles[`vinput-${vLocateMessage}`]}`}\n >\n <input\n type=\"text\"\n {...props}\n defaultValue={props?.defaultValue ?? ''}\n className={`${props?.className} ${\n vState ? vClassName || styles.invalid : ''\n }`}\n ></input>\n {vState && vShowMessage ? (\n <p\n className={`${vMessageClass} ${\n vIsAnimate ? styles.animateMessage : ''\n }`}\n >\n {vMessage}\n </p>\n ) : null}\n </div>\n );\n case 'inner':\n return (\n <div className={styles.vinput}>\n <input\n type=\"text\"\n {...props}\n defaultValue={props?.defaultValue ?? ''}\n className={`${props?.className} ${\n vState ? vClassName || styles.invalid : ''\n }`}\n ></input>\n {vState && vShowMessage ? (\n <p\n className={`${vMessageClass} ${styles.innerMessage} ${\n styles[`innerMessage-${vLocateMessage}`]\n } ${vIsAnimate ? styles.animateMessage : ''}`}\n >\n {vMessage}\n </p>\n ) : null}\n </div>\n );\n case 'tooltip':\n return (\n <div\n className={`${styles.vinput} ${\n styles[`tooltipMessage-${vLocateMessage}`]\n }`}\n >\n <input\n type=\"text\"\n {...props}\n defaultValue={props?.defaultValue ?? ''}\n className={`${props?.className} ${\n vState ? vClassName || styles.invalid : ''\n }`}\n ></input>\n {vState && vShowMessage ? (\n <p\n className={`${vMessageClass} ${styles.tooltipMessage} ${\n styles[`tooltipMessage-${vLocateMessage}`]\n } ${vIsAnimate ? styles.animateMessage : ''}`}\n >\n {vMessage}\n </p>\n ) : null}\n </div>\n );\n default:\n return <div></div>;\n }\n}\n","import React from 'react';\r\nimport styles from './index.module.css';\r\nimport { VCHECKBOX_PARAMS } from './vCheckbox';\r\n\r\nexport function VCheckbox({\r\n vState = false,\r\n vType = 'bottom',\r\n vClassName = '',\r\n vLabelClassName = '',\r\n vCheckedClassName = '',\r\n vCheckList = [],\r\n vCheckedList = [],\r\n vShowMessage = false,\r\n vMessage = '',\r\n vMessageClass = '',\r\n vIsAnimate = false,\r\n props = {},\r\n}: VCHECKBOX_PARAMS) {\r\n // 체크박스 리스트 생성 함수\r\n function makeCheckList() {\r\n const result: React.JSX.Element[] = [];\r\n vCheckList.forEach((val, i) => {\r\n result.push(\r\n <label\r\n htmlFor={`vCheckbox-${i}`}\r\n className={`${vLabelClassName} ${\r\n vCheckedList[i] ? vCheckedClassName : ''\r\n } ${vState ? styles.invalid : ''}`}\r\n key={i}\r\n >\r\n <input\r\n id={`vCheckbox-${i}`}\r\n type=\"checkbox\"\r\n className={vClassName}\r\n hidden\r\n value={val}\r\n checked={vCheckedList[i]}\r\n {...props}\r\n />\r\n <span>{val}</span>\r\n </label>\r\n );\r\n });\r\n return <div className={styles.checkbox_layout}>{result}</div>;\r\n }\r\n\r\n switch (vType) {\r\n case 'top':\r\n return (\r\n <div className={styles.flex_column}>\r\n {vState && vShowMessage ? (\r\n <p\r\n className={`${vMessageClass} ${\r\n vIsAnimate ? styles.animateMessage : ''\r\n }`}\r\n >\r\n {vMessage}\r\n </p>\r\n ) : null}\r\n {makeCheckList()}\r\n </div>\r\n );\r\n case 'bottom':\r\n return (\r\n <div className={styles.flex_column}>\r\n {makeCheckList()}\r\n {vState && vShowMessage ? (\r\n <p\r\n className={`${vMessageClass} ${\r\n vIsAnimate ? styles.animateMessage : ''\r\n }`}\r\n >\r\n {vMessage}\r\n </p>\r\n ) : null}\r\n </div>\r\n );\r\n default:\r\n return <></>;\r\n }\r\n}\r\n","import React from 'react';\r\n\r\nexport function vColor() {\r\n return <input type=\"color\" />;\r\n}\r\n","import React from 'react';\r\n\r\nexport function vDate() {\r\n return <input type=\"date\" />;\r\n}\r\n","import React from 'react';\r\n\r\nexport function vEmail() {\r\n return <input type=\"email\" />;\r\n}\r\n","import React from 'react';\r\n\r\nexport function vRadio() {\r\n return <input type=\"radio\" />;\r\n}\r\n","import React from 'react';\r\n\r\nexport function vRange() {\r\n return <input type=\"range\" />;\r\n}\r\n","import React from 'react';\r\n\r\nexport function vURL() {\r\n return <input type=\"url\" />;\r\n}\r\n"],"names":["VText","_ref","vState","_ref$vState","_ref$vType","vType","_ref$vClassName","vClassName","_ref$vShowMessage","vShowMessage","_ref$vMessage","vMessage","_ref$vLocateMessage","vLocateMessage","_ref$vMessageClass","vMessageClass","_ref$vIsAnimate","vIsAnimate","_ref$props","props","React","className","styles","vinput","type","defaultValue","_props$defaultValue","invalid","animateMessage","_props$defaultValue2","innerMessage","_props$defaultValue3","tooltipMessage","VCheckbox","_ref$vLabelClassName","vLabelClassName","_ref$vCheckedClassNam","vCheckedClassName","_ref$vCheckList","vCheckList","_ref$vCheckedList","vCheckedList","makeCheckList","result","forEach","val","i","push","htmlFor","key","id","hidden","value","checked","checkbox_layout","flex_column","vColor","vDate","vEmail","vRadio","vRange","vURL"],"mappings":";;;;;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IA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
1
+ {"version":3,"file":"react-validate-component.cjs.development.js","sources":["../node_modules/style-inject/dist/style-inject.es.js","../src/vText/index.tsx","../src/vCheckbox/index.tsx","../src/vURL/index.tsx","../src/vColor/index.tsx","../src/vDate/index.tsx","../src/vEmail/index.tsx","../src/vRadio/index.tsx","../src/vRange/index.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import React from 'react';\nimport styles from './index.module.css';\nimport { VTEXT_PARAMS } from './vText';\n\n// Text\nexport function VText({\n vState = false,\n vType = 'outer',\n vClassName = '',\n vShowMessage = false,\n vMessage = '',\n vLocateMessage = 'bottom',\n vMessageClass = '',\n vIsAnimate = false,\n props = {},\n}: VTEXT_PARAMS) {\n switch (vType) {\n case 'outer':\n return (\n <div\n className={`${styles.vinput} ${styles[`vinput-${vLocateMessage}`]}`}\n >\n <input\n type=\"text\"\n {...props}\n defaultValue={props?.defaultValue ?? ''}\n className={`${props?.className} ${\n vState ? vClassName || styles.invalid : ''\n }`}\n ></input>\n {vState && vShowMessage ? (\n <p\n className={`${vMessageClass} ${\n vIsAnimate ? styles.animateMessage : ''\n }`}\n >\n {vMessage}\n </p>\n ) : null}\n </div>\n );\n case 'inner':\n return (\n <div className={styles.vinput}>\n <input\n type=\"text\"\n {...props}\n defaultValue={props?.defaultValue ?? ''}\n className={`${props?.className} ${\n vState ? vClassName || styles.invalid : ''\n }`}\n ></input>\n {vState && vShowMessage ? (\n <p\n className={`${vMessageClass} ${styles.innerMessage} ${\n styles[`innerMessage-${vLocateMessage}`]\n } ${vIsAnimate ? styles.animateMessage : ''}`}\n >\n {vMessage}\n </p>\n ) : null}\n </div>\n );\n case 'tooltip':\n return (\n <div\n className={`${styles.vinput} ${\n styles[`tooltipMessage-${vLocateMessage}`]\n }`}\n >\n <input\n type=\"text\"\n {...props}\n defaultValue={props?.defaultValue ?? ''}\n className={`${props?.className} ${\n vState ? vClassName || styles.invalid : ''\n }`}\n ></input>\n {vState && vShowMessage ? (\n <p\n className={`${vMessageClass} ${styles.tooltipMessage} ${\n styles[`tooltipMessage-${vLocateMessage}`]\n } ${vIsAnimate ? styles.animateMessage : ''}`}\n >\n {vMessage}\n </p>\n ) : null}\n </div>\n );\n default:\n return <div></div>;\n }\n}\n","import React from 'react';\r\nimport styles from './index.module.css';\r\nimport { VCHECKBOX_PARAMS } from './vCheckbox';\r\n\r\nexport function VCheckbox({\r\n vState = false,\r\n vType = 'bottom',\r\n vClassName = '',\r\n vLabelClassName = '',\r\n vCheckedClassName = '',\r\n vCheckList = [],\r\n vCheckedList = [],\r\n vShowMessage = false,\r\n vMessage = '',\r\n vMessageClass = '',\r\n vIsAnimate = false,\r\n props = {},\r\n}: VCHECKBOX_PARAMS) {\r\n // 체크박스 리스트 생성 함수\r\n function makeCheckList() {\r\n const result: React.JSX.Element[] = [];\r\n vCheckList.forEach((val, i) => {\r\n result.push(\r\n <label\r\n htmlFor={`vCheckbox-${i}`}\r\n className={`${vLabelClassName} ${\r\n vCheckedList[i] ? vCheckedClassName : ''\r\n } ${vState ? styles.invalid : ''}`}\r\n key={i}\r\n >\r\n <input\r\n id={`vCheckbox-${i}`}\r\n type=\"checkbox\"\r\n className={vClassName}\r\n hidden\r\n value={val}\r\n checked={vCheckedList[i]}\r\n {...props}\r\n />\r\n <span>{val}</span>\r\n </label>\r\n );\r\n });\r\n return <div className={styles.checkbox_layout}>{result}</div>;\r\n }\r\n\r\n switch (vType) {\r\n case 'top':\r\n return (\r\n <div className={styles.flex_column}>\r\n {vState && vShowMessage ? (\r\n <p\r\n className={`${vMessageClass} ${\r\n vIsAnimate ? styles.animateMessage : ''\r\n }`}\r\n >\r\n {vMessage}\r\n </p>\r\n ) : null}\r\n {makeCheckList()}\r\n </div>\r\n );\r\n case 'bottom':\r\n return (\r\n <div className={styles.flex_column}>\r\n {makeCheckList()}\r\n {vState && vShowMessage ? (\r\n <p\r\n className={`${vMessageClass} ${\r\n vIsAnimate ? styles.animateMessage : ''\r\n }`}\r\n >\r\n {vMessage}\r\n </p>\r\n ) : null}\r\n </div>\r\n );\r\n default:\r\n return <></>;\r\n }\r\n}\r\n","import React from 'react';\r\nimport styles from './index.module.css';\r\nimport { VTEXT_PARAMS } from './vURL';\r\n\r\nexport function VURL({\r\n vState = false,\r\n vType = 'outer',\r\n vClassName = '',\r\n vShowMessage = false,\r\n vMessage = '',\r\n vLocateMessage = 'bottom',\r\n vMessageClass = '',\r\n vIsAnimate = false,\r\n props = {},\r\n}: VTEXT_PARAMS) {\r\n switch (vType) {\r\n case 'outer':\r\n return (\r\n <div\r\n className={`${styles.vinput} ${styles[`vinput-${vLocateMessage}`]}`}\r\n >\r\n <input\r\n type=\"url\"\r\n {...props}\r\n defaultValue={props?.defaultValue ?? ''}\r\n className={`${props?.className} ${\r\n vState ? vClassName || styles.invalid : ''\r\n }`}\r\n ></input>\r\n {vState && vShowMessage ? (\r\n <p\r\n className={`${vMessageClass} ${\r\n vIsAnimate ? styles.animateMessage : ''\r\n }`}\r\n >\r\n {vMessage}\r\n </p>\r\n ) : null}\r\n </div>\r\n );\r\n case 'inner':\r\n return (\r\n <div className={styles.vinput}>\r\n <input\r\n type=\"url\"\r\n {...props}\r\n defaultValue={props?.defaultValue ?? ''}\r\n className={`${props?.className} ${\r\n vState ? vClassName || styles.invalid : ''\r\n }`}\r\n ></input>\r\n {vState && vShowMessage ? (\r\n <p\r\n className={`${vMessageClass} ${styles.innerMessage} ${\r\n styles[`innerMessage-${vLocateMessage}`]\r\n } ${vIsAnimate ? styles.animateMessage : ''}`}\r\n >\r\n {vMessage}\r\n </p>\r\n ) : null}\r\n </div>\r\n );\r\n case 'tooltip':\r\n return (\r\n <div\r\n className={`${styles.vinput} ${\r\n styles[`tooltipMessage-${vLocateMessage}`]\r\n }`}\r\n >\r\n <input\r\n type=\"url\"\r\n {...props}\r\n defaultValue={props?.defaultValue ?? ''}\r\n className={`${props?.className} ${\r\n vState ? vClassName || styles.invalid : ''\r\n }`}\r\n ></input>\r\n {vState && vShowMessage ? (\r\n <p\r\n className={`${vMessageClass} ${styles.tooltipMessage} ${\r\n styles[`tooltipMessage-${vLocateMessage}`]\r\n } ${vIsAnimate ? styles.animateMessage : ''}`}\r\n >\r\n {vMessage}\r\n </p>\r\n ) : null}\r\n </div>\r\n );\r\n default:\r\n return <div></div>;\r\n }\r\n}\r\n","import React from 'react';\r\n\r\nexport function VColor() {\r\n return <input type=\"color\" />;\r\n}\r\n","import React from 'react';\r\n\r\nexport function VDate() {\r\n return <input type=\"date\" />;\r\n}\r\n","import React from 'react';\r\nimport styles from './index.module.css';\r\nimport { VTEXT_PARAMS } from './vEmail';\r\n\r\nexport function VEmail({\r\n vState = false,\r\n vType = 'outer',\r\n vClassName = '',\r\n vShowMessage = false,\r\n vMessage = '',\r\n vLocateMessage = 'bottom',\r\n vMessageClass = '',\r\n vIsAnimate = false,\r\n props = {},\r\n}: VTEXT_PARAMS) {\r\n switch (vType) {\r\n case 'outer':\r\n return (\r\n <div\r\n className={`${styles.vinput} ${styles[`vinput-${vLocateMessage}`]}`}\r\n >\r\n <input\r\n type=\"email\"\r\n {...props}\r\n defaultValue={props?.defaultValue ?? ''}\r\n className={`${props?.className} ${\r\n vState ? vClassName || styles.invalid : ''\r\n }`}\r\n ></input>\r\n {vState && vShowMessage ? (\r\n <p\r\n className={`${vMessageClass} ${\r\n vIsAnimate ? styles.animateMessage : ''\r\n }`}\r\n >\r\n {vMessage}\r\n </p>\r\n ) : null}\r\n </div>\r\n );\r\n case 'inner':\r\n return (\r\n <div className={styles.vinput}>\r\n <input\r\n type=\"email\"\r\n {...props}\r\n defaultValue={props?.defaultValue ?? ''}\r\n className={`${props?.className} ${\r\n vState ? vClassName || styles.invalid : ''\r\n }`}\r\n ></input>\r\n {vState && vShowMessage ? (\r\n <p\r\n className={`${vMessageClass} ${styles.innerMessage} ${\r\n styles[`innerMessage-${vLocateMessage}`]\r\n } ${vIsAnimate ? styles.animateMessage : ''}`}\r\n >\r\n {vMessage}\r\n </p>\r\n ) : null}\r\n </div>\r\n );\r\n case 'tooltip':\r\n return (\r\n <div\r\n className={`${styles.vinput} ${\r\n styles[`tooltipMessage-${vLocateMessage}`]\r\n }`}\r\n >\r\n <input\r\n type=\"email\"\r\n {...props}\r\n defaultValue={props?.defaultValue ?? ''}\r\n className={`${props?.className} ${\r\n vState ? vClassName || styles.invalid : ''\r\n }`}\r\n ></input>\r\n {vState && vShowMessage ? (\r\n <p\r\n className={`${vMessageClass} ${styles.tooltipMessage} ${\r\n styles[`tooltipMessage-${vLocateMessage}`]\r\n } ${vIsAnimate ? styles.animateMessage : ''}`}\r\n >\r\n {vMessage}\r\n </p>\r\n ) : null}\r\n </div>\r\n );\r\n default:\r\n return <div></div>;\r\n }\r\n}\r\n","import React from 'react';\r\n\r\nexport function VRadio() {\r\n return <input type=\"radio\" />;\r\n}\r\n","import React from 'react';\r\n\r\nexport function VRange() {\r\n return <input type=\"range\" />;\r\n}\r\n"],"names":["VText","_ref","vState","_ref$vState","_ref$vType","vType","_ref$vClassName","vClassName","_ref$vShowMessage","vShowMessage","_ref$vMessage","vMessage","_ref$vLocateMessage","vLocateMessage","_ref$vMessageClass","vMessageClass","_ref$vIsAnimate","vIsAnimate","_ref$props","props","React","className","styles","vinput","type","defaultValue","_props$defaultValue","invalid","animateMessage","_props$defaultValue2","innerMessage","_props$defaultValue3","tooltipMessage","VCheckbox","_ref$vLabelClassName","vLabelClassName","_ref$vCheckedClassNam","vCheckedClassName","_ref$vCheckList","vCheckList","_ref$vCheckedList","vCheckedList","makeCheckList","result","forEach","val","i","push","htmlFor","key","id","hidden","value","checked","checkbox_layout","flex_column","VURL","VColor","VDate","VEmail","VRadio","VRange"],"mappings":";;;;;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,KAAK;AACL,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5B,GAAG;AACH;AACA,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;AACnC,GAAG,MAAM;AACT,IAAI,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC;AACpD,GAAG;AACH;;;;;;ACrBA;AACA,SAAgBA,KAAKA,CAA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