react-validate-component 0.3.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 +89 -10
- package/dist/react-validate-component.cjs.development.js +61 -4
- package/dist/react-validate-component.cjs.development.js.map +1 -1
- package/dist/react-validate-component.cjs.production.min.js +1 -1
- package/dist/react-validate-component.cjs.production.min.js.map +1 -1
- package/dist/react-validate-component.esm.js +61 -4
- package/dist/react-validate-component.esm.js.map +1 -1
- package/dist/vEmail/index.d.ts +2 -1
- package/dist/vEmail/vEmail.d.ts +13 -0
- package/package.json +1 -1
- package/src/vEmail/index.module.css +210 -0
- package/src/vEmail/index.tsx +89 -2
- package/src/vEmail/vEmail.ts +24 -0
package/README.md
CHANGED
|
@@ -24,9 +24,9 @@ yarn add react-validate-component
|
|
|
24
24
|
|
|
25
25
|
## 사용법, How to use
|
|
26
26
|
|
|
27
|
-
현재 라이브러리에는 `VText`, `VCheckbox`, `VURL` 컴포넌트가 구현되어 있습니다. 이 컴포넌트를 사용하여 텍스트 입력 필드의 유효성 검사를 쉽게 구현할 수 있습니다.
|
|
27
|
+
현재 라이브러리에는 `VText`, `VCheckbox`, `VURL`, `VEmail` 컴포넌트가 구현되어 있습니다. 이 컴포넌트를 사용하여 텍스트 입력 필드의 유효성 검사를 쉽게 구현할 수 있습니다.
|
|
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` 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 {
|
|
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 [
|
|
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
|
-
|
|
133
|
+
setvState(true);
|
|
134
134
|
setVMessage2('You can check up to 3 items.');
|
|
135
135
|
} else {
|
|
136
|
-
|
|
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={
|
|
148
|
+
vState={vState}
|
|
149
149
|
vType={'bottom'}
|
|
150
150
|
// vClassName={'test'}
|
|
151
151
|
vLabelClassName={styles.label_class}
|
|
@@ -211,7 +211,7 @@ The `VURL` component provides functionality to display validation messages for b
|
|
|
211
211
|
|
|
212
212
|
```jsx
|
|
213
213
|
import React from 'react';
|
|
214
|
-
import {
|
|
214
|
+
import { VURL } from 'react-validate-component';
|
|
215
215
|
|
|
216
216
|
const App = () => {
|
|
217
217
|
const [vState, setvState] = React.useState < boolean > false;
|
|
@@ -280,6 +280,85 @@ export default App;
|
|
|
280
280
|
- `vIsAnimate` (boolean): Whether to apply animation when displaying the validation message (currently, only opacity animation is supported).
|
|
281
281
|
- `props` (object): Other options. Enter values for attributes that can be added to the basic input tag.
|
|
282
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
|
+
|
|
283
362
|
### 유효성 검사 규칙, Validation Rules
|
|
284
363
|
|
|
285
364
|
- 지금은 사용자가 정규식 혹은 함수를 이용해 작성한 유효성검사 로직을 토대로 element에 출력하고 있습니다.
|
|
@@ -290,11 +369,11 @@ export default App;
|
|
|
290
369
|
|
|
291
370
|
## 개발중인 기능, Features in Development
|
|
292
371
|
|
|
293
|
-
- 현재 `VText`, `VCheckbox` 컴포넌트만 구현되어 있으며, 다른 입력 유형에 대한 컴포넌트도 개발할 예정입니다.
|
|
372
|
+
- 현재 `VText`, `VCheckbox`, `VURL`, `VEmail` 컴포넌트만 구현되어 있으며, 다른 입력 유형에 대한 컴포넌트도 개발할 예정입니다.
|
|
294
373
|
- 추가적인 유효성 검사 규칙 및 에러 메시지 처리 기능이 계획되어 있습니다.
|
|
295
374
|
- 현재 문서에 이미지를 추가한 문서 업데이트도 예정되어있습니다.
|
|
296
375
|
|
|
297
|
-
- 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.
|
|
298
377
|
- Additional validation rules and error message handling features are also in the pipeline.
|
|
299
378
|
- Updates to the documentation, including the addition of images, are also planned.
|
|
300
379
|
|
|
@@ -240,10 +240,67 @@ function VDate() {
|
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
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
|
+
}
|
|
247
304
|
}
|
|
248
305
|
|
|
249
306
|
function VRadio() {
|
|
@@ -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/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\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"],"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,KAA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QACEI,IAAI,EAAC;SACDL,KAAK;QACTM,YAAY,GAAAM,oBAAA,GAAEZ,KAAK,oBAALA,KAAK,CAAEM,YAAY,YAAAM,oBAAA,GAAI,EAAE;QACvCV,SAAS,GAAKF,KAAK,oBAALA,KAAK,CAAEE,SAAS,WAC5BnB,MAAM,GAAGK,UAAU,IAAIe,QAAM,CAACK,OAAO,GAAG,EAC1C;SACO,EACRzB,MAAM,IAAIO,YAAY,kBACrBW;QACEC,SAAS,EAAKN,aAAa,SAAIO,QAAM,CAACU,cAAc,SAClDV,QAAM,qBAAmBT,cAAc,CACzC,UAAII,UAAU,GAAGK,QAAM,CAACM,cAAc,GAAG,EAAE;SAE1CjB,QAAQ,CACP,IACF,IAAI,CACJ;IAEV;MACE,oBAAOS,gCAAW;;AAExB;;SCzFgBqC,MAAMA;EACpB,oBAAOrC;IAAOI,IAAI,EAAC;IAAU;AAC/B;;SCFgBkC,KAAKA;EACnB,oBAAOtC;IAAOI,IAAI,EAAC;IAAS;AAC9B;;SCFgBmC,MAAMA;EACpB,oBAAOvC;IAAOI,IAAI,EAAC;IAAU;AAC/B;;SCFgBoC,MAAMA;EACpB,oBAAOxC;IAAOI,IAAI,EAAC;IAAU;AAC/B;;SCFgBqC,MAAMA;EACpB,oBAAOzC;IAAOI,IAAI,EAAC;IAAU;AAC/B;;;;;;;;;;;"}
|
|
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;AAC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,UAAU,IAAIe,QAAM,CAACK,OAAO,GAAG,EAC1C;SACO,EACRzB,MAAM,IAAIO,YAAY,kBACrBW;QACEC,SAAS,EAAKN,aAAa,SAAIO,QAAM,CAACQ,YAAY,SAChDR,QAAM,mBAAiBT,cAAc,CACvC,UAAII,UAAU,GAAGK,QAAM,CAACM,cAAc,GAAG,EAAE;SAE1CjB,QAAQ,CACP,IACF,IAAI,CACJ;IAEV,KAAK,SAAS;MACZ,oBACES;QACEC,SAAS,EAAKC,QAAM,CAACC,MAAM,SACzBD,QAAM,qBAAmBT,cAAc;sBAGzCO;QACEI,IAAI,EAAC;SACDL,KAAK;QACTM,YAAY,GAAAM,oBAAA,GAAEZ,KAAK,oBAALA,KAAK,CAAEM,YAAY,YAAAM,oBAAA,GAAI,EAAE;QACvCV,SAAS,GAAKF,KAAK,oBAALA,KAAK,CAAEE,SAAS,WAC5BnB,MAAM,GAAGK,UAAU,IAAIe,QAAM,CAACK,OAAO,GAAG,EAC1C;SACO,EACRzB,MAAM,IAAIO,YAAY,kBACrBW;QACEC,SAAS,EAAKN,aAAa,SAAIO,QAAM,CAACU,cAAc,SAClDV,QAAM,qBAAmBT,cAAc,CACzC,UAAII,UAAU,GAAGK,QAAM,CAACM,cAAc,GAAG,EAAE;SAE1CjB,QAAQ,CACP,IACF,IAAI,CACJ;IAEV;MACE,oBAAOS,gCAAW;;AAExB;;SCzFgBwC,MAAMA;EACpB,oBAAOxC;IAAOI,IAAI,EAAC;IAAU;AAC/B;;SCFgBqC,MAAMA;EACpB,oBAAOzC;IAAOI,IAAI,EAAC;IAAU;AAC/B;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,n=(e=require("react"))&&"object"==typeof e&&"default"in e?e.default:e;function t(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===t&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var r={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"};t(".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"),t(".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");var o={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"};t(".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"),exports.VCheckbox=function(e){var t=e.vState,r=void 0!==t&&t,o=e.vType,i=e.vClassName,l=void 0===i?"":i,s=e.vLabelClassName,a=void 0===s?"":s,d=e.vCheckedClassName,_=void 0===d?"":d,u=e.vCheckList,m=void 0===u?[]:u,p=e.vCheckedList,c=void 0===p?[]:p,x=e.vShowMessage,g=void 0!==x&&x,f=e.vMessage,v=void 0===f?"":f,M=e.vMessageClass,b=void 0===M?"":M,h=e.vIsAnimate,y=void 0!==h&&h,j=e.props,N=void 0===j?{}:j;function E(){var e=[];return m.forEach((function(t,o){e.push(n.createElement("label",{htmlFor:"vCheckbox-"+o,className:a+" "+(c[o]?_:"")+" "+(r?"index-module_invalid__jaxx5":""),key:o},n.createElement("input",Object.assign({id:"vCheckbox-"+o,type:"checkbox",className:l,hidden:!0,value:t,checked:c[o]},N)),n.createElement("span",null,t)))})),n.createElement("div",{className:"index-module_checkbox_layout__CnBGz"},e)}switch(void 0===o?"bottom":o){case"top":return n.createElement("div",{className:"index-module_flex_column__jVY8S"},r&&g?n.createElement("p",{className:b+" "+(y?"index-module_animateMessage__o7xGY":"")},v):null,E());case"bottom":return n.createElement("div",{className:"index-module_flex_column__jVY8S"},E(),r&&g?n.createElement("p",{className:b+" "+(y?"index-module_animateMessage__o7xGY":"")},v):null);default:return n.createElement(n.Fragment,null)}},exports.VColor=function(){return n.createElement("input",{type:"color"})},exports.VDate=function(){return n.createElement("input",{type:"date"})},exports.VEmail=function(){return n.createElement("input",{type:"email"})},exports.VRadio=function(){return n.createElement("input",{type:"radio"})},exports.VRange=function(){return n.createElement("input",{type:"range"})},exports.VText=function(e){var t,o,i,l=e.vState,s=void 0!==l&&l,a=e.vType,d=e.vClassName,_=void 0===d?"":d,u=e.vShowMessage,m=void 0!==u&&u,p=e.vMessage,c=void 0===p?"":p,x=e.vLocateMessage,g=void 0===x?"bottom":x,f=e.vMessageClass,v=void 0===f?"":f,M=e.vIsAnimate,b=void 0!==M&&M,h=e.props,y=void 0===h?{}:h;switch(void 0===a?"outer":a){case"outer":return n.createElement("div",{className:r.vinput+" "+r["vinput-"+g]},n.createElement("input",Object.assign({type:"text"},y,{defaultValue:null!=(t=null==y?void 0:y.defaultValue)?t:"",className:(null==y?void 0:y.className)+" "+(s?_||r.invalid:"")})),s&&m?n.createElement("p",{className:v+" "+(b?r.animateMessage:"")},c):null);case"inner":return n.createElement("div",{className:r.vinput},n.createElement("input",Object.assign({type:"text"},y,{defaultValue:null!=(o=null==y?void 0:y.defaultValue)?o:"",className:(null==y?void 0:y.className)+" "+(s?_||r.invalid:"")})),s&&m?n.createElement("p",{className:v+" "+r.innerMessage+" "+r["innerMessage-"+g]+" "+(b?r.animateMessage:"")},c):null);case"tooltip":return n.createElement("div",{className:r.vinput+" "+r["tooltipMessage-"+g]},n.createElement("input",Object.assign({type:"text"},y,{defaultValue:null!=(i=null==y?void 0:y.defaultValue)?i:"",className:(null==y?void 0:y.className)+" "+(s?_||r.invalid:"")})),s&&m?n.createElement("p",{className:v+" "+r.tooltipMessage+" "+r["tooltipMessage-"+g]+" "+(b?r.animateMessage:"")},c):null);default:return n.createElement("div",null)}},exports.VURL=function(e){var t,r,i,l=e.vState,s=void 0!==l&&l,a=e.vType,d=e.vClassName,_=void 0===d?"":d,u=e.vShowMessage,m=void 0!==u&&u,p=e.vMessage,c=void 0===p?"":p,x=e.vLocateMessage,g=void 0===x?"bottom":x,f=e.vMessageClass,v=void 0===f?"":f,M=e.vIsAnimate,b=void 0!==M&&M,h=e.props,y=void 0===h?{}:h;switch(void 0===a?"outer":a){case"outer":return n.createElement("div",{className:o.vinput+" "+o["vinput-"+g]},n.createElement("input",Object.assign({type:"url"},y,{defaultValue:null!=(t=null==y?void 0:y.defaultValue)?t:"",className:(null==y?void 0:y.className)+" "+(s?_||o.invalid:"")})),s&&m?n.createElement("p",{className:v+" "+(b?o.animateMessage:"")},c):null);case"inner":return n.createElement("div",{className:o.vinput},n.createElement("input",Object.assign({type:"url"},y,{defaultValue:null!=(r=null==y?void 0:y.defaultValue)?r:"",className:(null==y?void 0:y.className)+" "+(s?_||o.invalid:"")})),s&&m?n.createElement("p",{className:v+" "+o.innerMessage+" "+o["innerMessage-"+g]+" "+(b?o.animateMessage:"")},c):null);case"tooltip":return n.createElement("div",{className:o.vinput+" "+o["tooltipMessage-"+g]},n.createElement("input",Object.assign({type:"url"},y,{defaultValue:null!=(i=null==y?void 0:y.defaultValue)?i:"",className:(null==y?void 0:y.className)+" "+(s?_||o.invalid:"")})),s&&m?n.createElement("p",{className:v+" "+o.tooltipMessage+" "+o["tooltipMessage-"+g]+" "+(b?o.animateMessage:"")},c):null);default:return n.createElement("div",null)}};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,n=(e=require("react"))&&"object"==typeof e&&"default"in e?e.default:e;function t(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===t&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}var r={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"};t(".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"),t(".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");var o={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"};t(".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");var i={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"};t(".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"),exports.VCheckbox=function(e){var t=e.vState,r=void 0!==t&&t,o=e.vType,i=e.vClassName,l=void 0===i?"":i,s=e.vLabelClassName,a=void 0===s?"":s,d=e.vCheckedClassName,_=void 0===d?"":d,u=e.vCheckList,m=void 0===u?[]:u,p=e.vCheckedList,c=void 0===p?[]:p,g=e.vShowMessage,x=void 0!==g&&g,f=e.vMessage,v=void 0===f?"":f,M=e.vMessageClass,b=void 0===M?"":M,h=e.vIsAnimate,y=void 0!==h&&h,j=e.props,N=void 0===j?{}:j;function E(){var e=[];return m.forEach((function(t,o){e.push(n.createElement("label",{htmlFor:"vCheckbox-"+o,className:a+" "+(c[o]?_:"")+" "+(r?"index-module_invalid__jaxx5":""),key:o},n.createElement("input",Object.assign({id:"vCheckbox-"+o,type:"checkbox",className:l,hidden:!0,value:t,checked:c[o]},N)),n.createElement("span",null,t)))})),n.createElement("div",{className:"index-module_checkbox_layout__CnBGz"},e)}switch(void 0===o?"bottom":o){case"top":return n.createElement("div",{className:"index-module_flex_column__jVY8S"},r&&x?n.createElement("p",{className:b+" "+(y?"index-module_animateMessage__o7xGY":"")},v):null,E());case"bottom":return n.createElement("div",{className:"index-module_flex_column__jVY8S"},E(),r&&x?n.createElement("p",{className:b+" "+(y?"index-module_animateMessage__o7xGY":"")},v):null);default:return n.createElement(n.Fragment,null)}},exports.VColor=function(){return n.createElement("input",{type:"color"})},exports.VDate=function(){return n.createElement("input",{type:"date"})},exports.VEmail=function(e){var t,r,o,l=e.vState,s=void 0!==l&&l,a=e.vType,d=e.vClassName,_=void 0===d?"":d,u=e.vShowMessage,m=void 0!==u&&u,p=e.vMessage,c=void 0===p?"":p,g=e.vLocateMessage,x=void 0===g?"bottom":g,f=e.vMessageClass,v=void 0===f?"":f,M=e.vIsAnimate,b=void 0!==M&&M,h=e.props,y=void 0===h?{}:h;switch(void 0===a?"outer":a){case"outer":return n.createElement("div",{className:i.vinput+" "+i["vinput-"+x]},n.createElement("input",Object.assign({type:"email"},y,{defaultValue:null!=(t=null==y?void 0:y.defaultValue)?t:"",className:(null==y?void 0:y.className)+" "+(s?_||i.invalid:"")})),s&&m?n.createElement("p",{className:v+" "+(b?i.animateMessage:"")},c):null);case"inner":return n.createElement("div",{className:i.vinput},n.createElement("input",Object.assign({type:"email"},y,{defaultValue:null!=(r=null==y?void 0:y.defaultValue)?r:"",className:(null==y?void 0:y.className)+" "+(s?_||i.invalid:"")})),s&&m?n.createElement("p",{className:v+" "+i.innerMessage+" "+i["innerMessage-"+x]+" "+(b?i.animateMessage:"")},c):null);case"tooltip":return n.createElement("div",{className:i.vinput+" "+i["tooltipMessage-"+x]},n.createElement("input",Object.assign({type:"email"},y,{defaultValue:null!=(o=null==y?void 0:y.defaultValue)?o:"",className:(null==y?void 0:y.className)+" "+(s?_||i.invalid:"")})),s&&m?n.createElement("p",{className:v+" "+i.tooltipMessage+" "+i["tooltipMessage-"+x]+" "+(b?i.animateMessage:"")},c):null);default:return n.createElement("div",null)}},exports.VRadio=function(){return n.createElement("input",{type:"radio"})},exports.VRange=function(){return n.createElement("input",{type:"range"})},exports.VText=function(e){var t,o,i,l=e.vState,s=void 0!==l&&l,a=e.vType,d=e.vClassName,_=void 0===d?"":d,u=e.vShowMessage,m=void 0!==u&&u,p=e.vMessage,c=void 0===p?"":p,g=e.vLocateMessage,x=void 0===g?"bottom":g,f=e.vMessageClass,v=void 0===f?"":f,M=e.vIsAnimate,b=void 0!==M&&M,h=e.props,y=void 0===h?{}:h;switch(void 0===a?"outer":a){case"outer":return n.createElement("div",{className:r.vinput+" "+r["vinput-"+x]},n.createElement("input",Object.assign({type:"text"},y,{defaultValue:null!=(t=null==y?void 0:y.defaultValue)?t:"",className:(null==y?void 0:y.className)+" "+(s?_||r.invalid:"")})),s&&m?n.createElement("p",{className:v+" "+(b?r.animateMessage:"")},c):null);case"inner":return n.createElement("div",{className:r.vinput},n.createElement("input",Object.assign({type:"text"},y,{defaultValue:null!=(o=null==y?void 0:y.defaultValue)?o:"",className:(null==y?void 0:y.className)+" "+(s?_||r.invalid:"")})),s&&m?n.createElement("p",{className:v+" "+r.innerMessage+" "+r["innerMessage-"+x]+" "+(b?r.animateMessage:"")},c):null);case"tooltip":return n.createElement("div",{className:r.vinput+" "+r["tooltipMessage-"+x]},n.createElement("input",Object.assign({type:"text"},y,{defaultValue:null!=(i=null==y?void 0:y.defaultValue)?i:"",className:(null==y?void 0:y.className)+" "+(s?_||r.invalid:"")})),s&&m?n.createElement("p",{className:v+" "+r.tooltipMessage+" "+r["tooltipMessage-"+x]+" "+(b?r.animateMessage:"")},c):null);default:return n.createElement("div",null)}},exports.VURL=function(e){var t,r,i,l=e.vState,s=void 0!==l&&l,a=e.vType,d=e.vClassName,_=void 0===d?"":d,u=e.vShowMessage,m=void 0!==u&&u,p=e.vMessage,c=void 0===p?"":p,g=e.vLocateMessage,x=void 0===g?"bottom":g,f=e.vMessageClass,v=void 0===f?"":f,M=e.vIsAnimate,b=void 0!==M&&M,h=e.props,y=void 0===h?{}:h;switch(void 0===a?"outer":a){case"outer":return n.createElement("div",{className:o.vinput+" "+o["vinput-"+x]},n.createElement("input",Object.assign({type:"url"},y,{defaultValue:null!=(t=null==y?void 0:y.defaultValue)?t:"",className:(null==y?void 0:y.className)+" "+(s?_||o.invalid:"")})),s&&m?n.createElement("p",{className:v+" "+(b?o.animateMessage:"")},c):null);case"inner":return n.createElement("div",{className:o.vinput},n.createElement("input",Object.assign({type:"url"},y,{defaultValue:null!=(r=null==y?void 0:y.defaultValue)?r:"",className:(null==y?void 0:y.className)+" "+(s?_||o.invalid:"")})),s&&m?n.createElement("p",{className:v+" "+o.innerMessage+" "+o["innerMessage-"+x]+" "+(b?o.animateMessage:"")},c):null);case"tooltip":return n.createElement("div",{className:o.vinput+" "+o["tooltipMessage-"+x]},n.createElement("input",Object.assign({type:"url"},y,{defaultValue:null!=(i=null==y?void 0:y.defaultValue)?i:"",className:(null==y?void 0:y.className)+" "+(s?_||o.invalid:"")})),s&&m?n.createElement("p",{className:v+" "+o.tooltipMessage+" "+o["tooltipMessage-"+x]+" "+(b?o.animateMessage:"")},c):null);default:return n.createElement("div",null)}};
|
|
2
2
|
//# sourceMappingURL=react-validate-component.cjs.production.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-validate-component.cjs.production.min.js","sources":["../node_modules/style-inject/dist/style-inject.es.js","../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/vText/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';\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';\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 { 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"],"names":["styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","_ref","vState","_ref$vState","_ref$vType","vType","_ref$vClassName","vClassName","_ref$vLabelClassName","vLabelClassName","_ref$vCheckedClassNam","vCheckedClassName","_ref$vCheckList","vCheckList","_ref$vCheckedList","vCheckedList","_ref$vShowMessage","vShowMessage","_ref$vMessage","vMessage","_ref$vMessageClass","vMessageClass","_ref$vIsAnimate","vIsAnimate","_ref$props","props","makeCheckList","result","forEach","val","i","push","React","htmlFor","className","key","id","hidden","value","checked","_ref$vLocateMessage","vLocateMessage","styles","vinput","defaultValue","_props$defaultValue","invalid","animateMessage","_props$defaultValue2","innerMessage","_props$defaultValue3","tooltipMessage"],"mappings":"gJAAA,SAASA,EAAYC,EAAKC,QACX,IAARA,IAAiBA,EAAM,IAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,sxfCnBrBe,WACvBC,OAAAA,WAAMC,GAAQA,EAAAC,EAAAH,EACdI,MAAgBC,EAAAL,EAChBM,WAAAA,WAAUD,EAAG,GAAEA,EAAAE,EAAAP,EACfQ,gBAAAA,WAAeD,EAAG,GAAEA,EAAAE,EAAAT,EACpBU,kBAAAA,WAAiBD,EAAG,GAAEA,EAAAE,EAAAX,EACtBY,WAAAA,WAAUD,EAAG,GAAEA,EAAAE,EAAAb,EACfc,aAAAA,WAAYD,EAAG,GAAEA,EAAAE,EAAAf,EACjBgB,aAAAA,WAAYD,GAAQA,EAAAE,EAAAjB,EACpBkB,SAAAA,WAAQD,EAAG,GAAEA,EAAAE,EA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AAAsB,EAAAvC,EACbwC,eAAAA,WAAcD,EAAG,SAAQA,EAAApB,EAAAnB,EACzBoB,cAAAA,WAAaD,EAAG,GAAEA,EAAAE,EAAArB,EAClBsB,WAAAA,WAAUD,GAAQA,EAAAE,EAAAvB,EAClBwB,MAAAA,WAAKD,EAAG,GAAEA,EAEV,gBATKpB,EAAG,QAAOA,GAUb,IAAK,QACH,OACE4B,uBACEE,UAAcQ,EAAOC,WAAUD,YAAiBD,IAEhDT,uCACEtC,KAAK,OACD+B,GACJmB,oBAAYC,QAAEpB,SAAAA,EAAOmB,cAAYC,EAAI,GACrCX,iBAAcT,SAAAA,EAAOS,gBACnBhC,EAASK,GAAcmC,EAAOI,QAAU,OAG3C5C,GAAUe,EACTe,qBACEE,UAAcb,OACZE,EAAamB,EAAOK,eAAiB,KAGtC5B,GAED,MAGV,IAAK,QACH,OACEa,uBAAKE,UAAWQ,EAAOC,QACrBX,uCACEtC,KAAK,OACD+B,GACJmB,oBAAYI,QAAEvB,SAAAA,EAAOmB,cAAYI,EAAI,GACrCd,iBAAcT,SAAAA,EAAOS,gBACnBhC,EAASK,GAAcmC,EAAOI,QAAU,OAG3C5C,GAAUe,EACTe,qBACEE,UAAcb,MAAiBqB,EAAOO,iBACpCP,kBAAuBD,QACrBlB,EAAamB,EAAOK,eAAiB,KAExC5B,GAED,MAGV,IAAK,UACH,OACEa,uBACEE,UAAcQ,EAAOC,WACnBD,oBAAyBD,IAG3BT,uCACEtC,KAAK,OACD+B,GACJmB,oBAAYM,QAAEzB,SAAAA,EAAOmB,cAAYM,EAAI,GACrChB,iBAAcT,SAAAA,EAAOS,gBACnBhC,EAASK,GAAcmC,EAAOI,QAAU,OAG3C5C,GAAUe,EACTe,qBACEE,UAAcb,MAAiBqB,EAAOS,mBACpCT,oBAAyBD,QACvBlB,EAAamB,EAAOK,eAAiB,KAExC5B,GAED,MAGV,QACE,OAAOa"}
|
|
1
|
+
{"version":3,"file":"react-validate-component.cjs.production.min.js","sources":["../node_modules/style-inject/dist/style-inject.es.js","../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/vText/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';\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\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","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 { 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"],"names":["styleInject","css","ref","insertAt","document","head","getElementsByTagName","style","createElement","type","firstChild","insertBefore","appendChild","styleSheet","cssText","createTextNode","_ref","vState","_ref$vState","_ref$vType","vType","_ref$vClassName","vClassName","_ref$vLabelClassName","vLabelClassName","_ref$vCheckedClassNam","vCheckedClassName","_ref$vCheckList","vCheckList","_ref$vCheckedList","vCheckedList","_ref$vShowMessage","vShowMessage","_ref$vMessage","vMessage","_ref$vMessageClass","vMessageClass","_ref$vIsAnimate","vIsAnimate","_ref$props","props","makeCheckList","result","forEach","val","i","push","React","htmlFor","className","key","id","hidden","value","checked","_ref$vLocateMessage","vLocateMessage","styles","vinput","defaultValue","_props$defaultValue","invalid","animateMessage","_props$defaultValue2","innerMessage","_props$defaultValue3","tooltipMessage"],"mappings":"gJAAA,SAASA,EAAYC,EAAKC,QACX,IAARA,IAAiBA,EAAM,IAC5B,IAAIC,EAAWD,EAAIC,SAEnB,GAAKF,GAA2B,oBAAbG,SAAnB,CAEA,IAAIC,EAAOD,SAASC,MAAQD,SAASE,qBAAqB,QAAQ,GAC9DC,EAAQH,SAASI,cAAc,SACnCD,EAAME,KAAO,WAEI,QAAbN,GACEE,EAAKK,WACPL,EAAKM,aAAaJ,EAAOF,EAAKK,YAKhCL,EAAKO,YAAYL,GAGfA,EAAMM,WACRN,EAAMM,WAAWC,QAAUb,EAE3BM,EAAMK,YAAYR,SAASW,eAAed,yyuBCnBrBe,WACvBC,OAAAA,WAAMC,GAAQA,EAAAC,EAAAH,EACdI,MAAgBC,EAAAL,EAChBM,WAAAA,WAAUD,EAAG,GAAEA,EAAAE,EAAAP,EACfQ,gBAAAA,WAAeD,EAAG,GAAEA,EAAAE,EAAAT,EACpBU,kBAAAA,WAAiBD,EAAG,GAAEA,EAAAE,EAAAX,EACtBY,WAAAA,WAAUD,EAAG,GAAEA,EAAAE,EAAAb,EACfc,aAAAA,WAAYD,EAAG,GAAEA,EAAAE,EAAAf,EACjBgB,aAAAA,WAAYD,GAAQA,EAAAE,EAAAjB,EACpBkB,SAAAA,WAAQD,EAAG,GAAEA,EAAAE,EAAAnB,EACboB,cAAAA,WAAaD,EAAG,GAAEA,EAAAE,EAAArB,EAClBsB,WAAAA,WAAUD,GAAQA,EAAAE,EAAAvB,EAClBwB,MAAAA,WAAKD,EAAG,GAAEA,EAGV,SAASE,IACP,IAAMC,EAA8B,GAuBpC,OAtBAd,EAAWe,SAAQ,SAACC,EAAKC,GACvBH,EAAOI,KACLC,yBACEC,qBAAsBH,EACtBI,UAAczB,OACZM,EAAae,GAAKnB,EAAoB,SACpCT,gCAA0B,IAC9BiC,IAAKL,GAELE,uCACEI,gBAAiBN,E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AAK,QACH,OACE4B,uBACEE,UAAcQ,EAAOC,WAAUD,YAAiBD,IAEhDT,uCACEtC,KAAK,OACD+B,GACJmB,oBAAYC,QAAEpB,SAAAA,EAAOmB,cAAYC,EAAI,GACrCX,iBAAcT,SAAAA,EAAOS,gBACnBhC,EAASK,GAAcmC,EAAOI,QAAU,OAG3C5C,GAAUe,EACTe,qBACEE,UAAcb,OACZE,EAAamB,EAAOK,eAAiB,KAGtC5B,GAED,MAGV,IAAK,QACH,OACEa,uBAAKE,UAAWQ,EAAOC,QACrBX,uCACEtC,KAAK,OACD+B,GACJmB,oBAAYI,QAAEvB,SAAAA,EAAOmB,cAAYI,EAAI,GACrCd,iBAAcT,SAAAA,EAAOS,gBACnBhC,EAASK,GAAcmC,EAAOI,QAAU,OAG3C5C,GAAUe,EACTe,qBACEE,UAAcb,MAAiBqB,EAAOO,iBACpCP,kBAAuBD,QACrBlB,EAAamB,EAAOK,eAAiB,KAExC5B,GAED,MAGV,IAAK,UACH,OACEa,uBACEE,UAAcQ,EAAOC,WACnBD,oBAAyBD,IAG3BT,uCACEtC,KAAK,OACD+B,GACJmB,oBAAYM,QAAEzB,SAAAA,EAAOmB,cAAYM,EAAI,GACrChB,iBAAcT,SAAAA,EAAOS,gBACnBhC,EAASK,GAAcmC,EAAOI,QAAU,OAG3C5C,GAAUe,EACTe,qBACEE,UAAcb,MAAiBqB,EAAOS,mBACpCT,oBAAyBD,QACvBlB,EAAamB,EAAOK,eAAiB,KAExC5B,GAED,MAGV,QACE,OAAOa"}
|
|
@@ -234,10 +234,67 @@ function VDate() {
|
|
|
234
234
|
});
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
237
|
+
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";
|
|
238
|
+
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"};
|
|
239
|
+
styleInject(css_248z$3);
|
|
240
|
+
|
|
241
|
+
function VEmail(_ref) {
|
|
242
|
+
var _props$defaultValue, _props$defaultValue2, _props$defaultValue3;
|
|
243
|
+
var _ref$vState = _ref.vState,
|
|
244
|
+
vState = _ref$vState === void 0 ? false : _ref$vState,
|
|
245
|
+
_ref$vType = _ref.vType,
|
|
246
|
+
vType = _ref$vType === void 0 ? 'outer' : _ref$vType,
|
|
247
|
+
_ref$vClassName = _ref.vClassName,
|
|
248
|
+
vClassName = _ref$vClassName === void 0 ? '' : _ref$vClassName,
|
|
249
|
+
_ref$vShowMessage = _ref.vShowMessage,
|
|
250
|
+
vShowMessage = _ref$vShowMessage === void 0 ? false : _ref$vShowMessage,
|
|
251
|
+
_ref$vMessage = _ref.vMessage,
|
|
252
|
+
vMessage = _ref$vMessage === void 0 ? '' : _ref$vMessage,
|
|
253
|
+
_ref$vLocateMessage = _ref.vLocateMessage,
|
|
254
|
+
vLocateMessage = _ref$vLocateMessage === void 0 ? 'bottom' : _ref$vLocateMessage,
|
|
255
|
+
_ref$vMessageClass = _ref.vMessageClass,
|
|
256
|
+
vMessageClass = _ref$vMessageClass === void 0 ? '' : _ref$vMessageClass,
|
|
257
|
+
_ref$vIsAnimate = _ref.vIsAnimate,
|
|
258
|
+
vIsAnimate = _ref$vIsAnimate === void 0 ? false : _ref$vIsAnimate,
|
|
259
|
+
_ref$props = _ref.props,
|
|
260
|
+
props = _ref$props === void 0 ? {} : _ref$props;
|
|
261
|
+
switch (vType) {
|
|
262
|
+
case 'outer':
|
|
263
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
264
|
+
className: styles$3.vinput + " " + styles$3["vinput-" + vLocateMessage]
|
|
265
|
+
}, /*#__PURE__*/React.createElement("input", Object.assign({
|
|
266
|
+
type: "email"
|
|
267
|
+
}, props, {
|
|
268
|
+
defaultValue: (_props$defaultValue = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue : '',
|
|
269
|
+
className: (props == null ? void 0 : props.className) + " " + (vState ? vClassName || styles$3.invalid : '')
|
|
270
|
+
})), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
|
|
271
|
+
className: vMessageClass + " " + (vIsAnimate ? styles$3.animateMessage : '')
|
|
272
|
+
}, vMessage)) : null);
|
|
273
|
+
case 'inner':
|
|
274
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
275
|
+
className: styles$3.vinput
|
|
276
|
+
}, /*#__PURE__*/React.createElement("input", Object.assign({
|
|
277
|
+
type: "email"
|
|
278
|
+
}, props, {
|
|
279
|
+
defaultValue: (_props$defaultValue2 = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue2 : '',
|
|
280
|
+
className: (props == null ? void 0 : props.className) + " " + (vState ? vClassName || styles$3.invalid : '')
|
|
281
|
+
})), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
|
|
282
|
+
className: vMessageClass + " " + styles$3.innerMessage + " " + styles$3["innerMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles$3.animateMessage : '')
|
|
283
|
+
}, vMessage)) : null);
|
|
284
|
+
case 'tooltip':
|
|
285
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
286
|
+
className: styles$3.vinput + " " + styles$3["tooltipMessage-" + vLocateMessage]
|
|
287
|
+
}, /*#__PURE__*/React.createElement("input", Object.assign({
|
|
288
|
+
type: "email"
|
|
289
|
+
}, props, {
|
|
290
|
+
defaultValue: (_props$defaultValue3 = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue3 : '',
|
|
291
|
+
className: (props == null ? void 0 : props.className) + " " + (vState ? vClassName || styles$3.invalid : '')
|
|
292
|
+
})), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
|
|
293
|
+
className: vMessageClass + " " + styles$3.tooltipMessage + " " + styles$3["tooltipMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles$3.animateMessage : '')
|
|
294
|
+
}, vMessage)) : null);
|
|
295
|
+
default:
|
|
296
|
+
return /*#__PURE__*/React.createElement("div", null);
|
|
297
|
+
}
|
|
241
298
|
}
|
|
242
299
|
|
|
243
300
|
function VRadio() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-validate-component.esm.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\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"],"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,I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C,UAAII,UAAU,GAAGK,QAAM,CAACM,cAAc,GAAG,EAAE;SAE1CjB,QAAQ,CACP,IACF,IAAI,CACJ;IAEV,KAAK,SAAS;MACZ,oBACES;QACEC,SAAS,EAAKC,QAAM,CAACC,MAAM,SACzBD,QAAM,qBAAmBT,cAAc;sBAGzCO;QACEI,IAAI,EAAC;SACDL,KAAK;QACTM,YAAY,GAAAM,oBAAA,GAAEZ,KAAK,oBAALA,KAAK,CAAEM,YAAY,YAAAM,oBAAA,GAAI,EAAE;QACvCV,SAAS,GAAKF,KAAK,oBAALA,KAAK,CAAEE,SAAS,WAC5BnB,MAAM,GAAGK,UAAU,IAAIe,QAAM,CAACK,OAAO,GAAG,EAC1C;SACO,EACRzB,MAAM,IAAIO,YAAY,kBACrBW;QACEC,SAAS,EAAKN,aAAa,SAAIO,QAAM,CAACU,cAAc,SAClDV,QAAM,qBAAmBT,cAAc,CACzC,UAAII,UAAU,GAAGK,QAAM,CAACM,cAAc,GAAG,EAAE;SAE1CjB,QAAQ,CACP,IACF,IAAI,CACJ;IAEV;MACE,oBAAOS,gCAAW;;AAExB;;SCzFgBqC,MAAMA;EACpB,oBAAOrC;IAAOI,IAAI,EAAC;IAAU;AAC/B;;SCFgBkC,KAAKA;EACnB,oBAAOtC;IAAOI,IAAI,EAAC;IAAS;AAC9B;;SCFgBmC,MAAMA;EACpB,oBAAOvC;IAAOI,IAAI,EAAC;IAAU;AAC/B;;SCFgBoC,MAAMA;EACpB,oBAAOxC;IAAOI,IAAI,EAAC;IAAU;AAC/B;;SCFgBqC,MAAMA;EACpB,oBAAOzC;IAAOI,IAAI,EAAC;IAAU;AAC/B;;;;"}
|
|
1
|
+
{"version":3,"file":"react-validate-component.esm.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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
1
1
|
import React from 'react';
|
|
2
|
-
|
|
2
|
+
import { VTEXT_PARAMS } from './vEmail';
|
|
3
|
+
export declare function VEmail({ vState, vType, vClassName, vShowMessage, vMessage, vLocateMessage, vMessageClass, vIsAnimate, props, }: VTEXT_PARAMS): React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import propsType from '../types/vprops';
|
|
2
|
+
export interface VTEXT_PARAMS {
|
|
3
|
+
readonly vState: boolean;
|
|
4
|
+
readonly vType: // 유효성 메시지를 출력할 타입
|
|
5
|
+
'inner' | 'outer' | 'tooltip';
|
|
6
|
+
vClassName?: string;
|
|
7
|
+
readonly vShowMessage: boolean;
|
|
8
|
+
vMessage?: string;
|
|
9
|
+
vLocateMessage?: 'top-left' | 'top' | 'top-right' | 'center-left' | 'center' | 'center-right' | 'bottom-left' | 'bottom' | 'bottom-right';
|
|
10
|
+
vMessageClass?: string;
|
|
11
|
+
vIsAnimate?: boolean;
|
|
12
|
+
props?: propsType;
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
.invalid {
|
|
2
|
+
border: 2px solid red;
|
|
3
|
+
outline: none;
|
|
4
|
+
}
|
|
5
|
+
.invalid:focus,
|
|
6
|
+
.invalid:focus-visible,
|
|
7
|
+
.invalid:focus-within {
|
|
8
|
+
border: 2px solid red;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/* vType === 'outer' */
|
|
12
|
+
.vinput {
|
|
13
|
+
display: flex;
|
|
14
|
+
}
|
|
15
|
+
.vinput-top-left {
|
|
16
|
+
flex-direction: column-reverse;
|
|
17
|
+
align-items: flex-start;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
}
|
|
20
|
+
.vinput-top {
|
|
21
|
+
flex-direction: column-reverse;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
}
|
|
25
|
+
.vinput-top-right {
|
|
26
|
+
flex-direction: column-reverse;
|
|
27
|
+
align-items: flex-end;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
}
|
|
30
|
+
.vinput-center-left {
|
|
31
|
+
flex-direction: row-reverse;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
}
|
|
35
|
+
.vinput-center-right {
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center;
|
|
38
|
+
}
|
|
39
|
+
.vinput-bottom-left {
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
align-items: flex-start;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
}
|
|
44
|
+
.vinput-bottom {
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
align-items: center;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
}
|
|
49
|
+
.vinput-bottom-right {
|
|
50
|
+
flex-direction: column;
|
|
51
|
+
align-items: flex-end;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* vType === 'inner' */
|
|
56
|
+
.innerMessage {
|
|
57
|
+
position: absolute;
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
margin: 0;
|
|
60
|
+
padding: 2px 5px;
|
|
61
|
+
display: flex;
|
|
62
|
+
}
|
|
63
|
+
.innerMessage-top-left {
|
|
64
|
+
align-items: flex-start;
|
|
65
|
+
justify-content: flex-start;
|
|
66
|
+
}
|
|
67
|
+
.innerMessage-top {
|
|
68
|
+
align-items: flex-start;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
}
|
|
71
|
+
.innerMessage-top-right {
|
|
72
|
+
align-items: flex-start;
|
|
73
|
+
justify-content: flex-end;
|
|
74
|
+
}
|
|
75
|
+
.innerMessage-center-left {
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: flex-start;
|
|
78
|
+
}
|
|
79
|
+
.innerMessage-center {
|
|
80
|
+
align-items: center;
|
|
81
|
+
justify-content: center;
|
|
82
|
+
}
|
|
83
|
+
.innerMessage-center-right {
|
|
84
|
+
align-items: center;
|
|
85
|
+
justify-content: flex-end;
|
|
86
|
+
}
|
|
87
|
+
.innerMessage-bottom-left {
|
|
88
|
+
align-items: flex-end;
|
|
89
|
+
justify-content: flex-start;
|
|
90
|
+
}
|
|
91
|
+
.innerMessage-bottom {
|
|
92
|
+
align-items: flex-end;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
}
|
|
95
|
+
.innerMessage-bottom-right {
|
|
96
|
+
align-items: flex-end;
|
|
97
|
+
justify-content: flex-end;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* vType === 'tooltip' */
|
|
101
|
+
.tooltipMessage {
|
|
102
|
+
position: absolute;
|
|
103
|
+
margin: 0;
|
|
104
|
+
padding: 10px 20px;
|
|
105
|
+
border: 1px solid transparent;
|
|
106
|
+
border-radius: 10px;
|
|
107
|
+
background-color: black;
|
|
108
|
+
}
|
|
109
|
+
p[class*='tooltipMessage-top'] {
|
|
110
|
+
transform: translateY(calc(-100% - 10px));
|
|
111
|
+
}
|
|
112
|
+
p[class*='tooltipMessage-top']::after {
|
|
113
|
+
content: '';
|
|
114
|
+
position: absolute;
|
|
115
|
+
bottom: 0;
|
|
116
|
+
border: 10px solid transparent;
|
|
117
|
+
border-top-color: black;
|
|
118
|
+
border-bottom: 0;
|
|
119
|
+
margin-bottom: -11px;
|
|
120
|
+
}
|
|
121
|
+
.vinput.tooltipMessage-top-left {
|
|
122
|
+
justify-content: flex-start;
|
|
123
|
+
}
|
|
124
|
+
p.tooltipMessage-top-left::after {
|
|
125
|
+
left: 3%;
|
|
126
|
+
}
|
|
127
|
+
.vinput.tooltipMessage-top {
|
|
128
|
+
justify-content: center;
|
|
129
|
+
}
|
|
130
|
+
p.tooltipMessage-top::after {
|
|
131
|
+
left: 44%;
|
|
132
|
+
}
|
|
133
|
+
.tooltipMessage-top-right {
|
|
134
|
+
justify-content: flex-end;
|
|
135
|
+
}
|
|
136
|
+
p.tooltipMessage-top-right::after {
|
|
137
|
+
left: 87%;
|
|
138
|
+
}
|
|
139
|
+
p[class*='tooltipMessage-center'] {
|
|
140
|
+
/* transform: translateY(calc(-100% - 10px)); */
|
|
141
|
+
}
|
|
142
|
+
p[class*='tooltipMessage-center']::after {
|
|
143
|
+
content: '';
|
|
144
|
+
position: absolute;
|
|
145
|
+
border: 10px solid transparent;
|
|
146
|
+
}
|
|
147
|
+
.vinput.tooltipMessage-center-right {
|
|
148
|
+
justify-content: flex-end;
|
|
149
|
+
}
|
|
150
|
+
p.tooltipMessage-center-right {
|
|
151
|
+
transform: translateX(calc(100% + 10px));
|
|
152
|
+
}
|
|
153
|
+
p.tooltipMessage-center-right::after {
|
|
154
|
+
border-right-color: black;
|
|
155
|
+
left: -10%;
|
|
156
|
+
}
|
|
157
|
+
.vinput.tooltipMessage-center-left {
|
|
158
|
+
justify-content: flex-start;
|
|
159
|
+
}
|
|
160
|
+
p.tooltipMessage-center-left {
|
|
161
|
+
transform: translateX(calc(-100% - 10px));
|
|
162
|
+
}
|
|
163
|
+
p.tooltipMessage-center-left::after {
|
|
164
|
+
border-left-color: black;
|
|
165
|
+
left: 100%;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
p[class*='tooltipMessage-bottom'] {
|
|
169
|
+
transform: translateY(calc(120% + 10px));
|
|
170
|
+
}
|
|
171
|
+
p[class*='tooltipMessage-bottom']::after {
|
|
172
|
+
content: '';
|
|
173
|
+
position: absolute;
|
|
174
|
+
top: 0;
|
|
175
|
+
border: 10px solid transparent;
|
|
176
|
+
border-bottom-color: black;
|
|
177
|
+
border-top: 0;
|
|
178
|
+
margin-top: -11px;
|
|
179
|
+
}
|
|
180
|
+
.vinput.tooltipMessage-bottom-left {
|
|
181
|
+
justify-content: flex-start;
|
|
182
|
+
}
|
|
183
|
+
p.tooltipMessage-bottom-left::after {
|
|
184
|
+
left: 3%;
|
|
185
|
+
}
|
|
186
|
+
.vinput.tooltipMessage-bottom {
|
|
187
|
+
justify-content: center;
|
|
188
|
+
}
|
|
189
|
+
p.tooltipMessage-bottom::after {
|
|
190
|
+
left: 44%;
|
|
191
|
+
}
|
|
192
|
+
.tooltipMessage-bottom-right {
|
|
193
|
+
justify-content: flex-end;
|
|
194
|
+
}
|
|
195
|
+
p.tooltipMessage-bottom-right::after {
|
|
196
|
+
left: 87%;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.animateMessage {
|
|
200
|
+
animation: fade-in 1s ease-in-out;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@keyframes fade-in {
|
|
204
|
+
0% {
|
|
205
|
+
opacity: 0;
|
|
206
|
+
}
|
|
207
|
+
100% {
|
|
208
|
+
opacity: 1;
|
|
209
|
+
}
|
|
210
|
+
}
|
package/src/vEmail/index.tsx
CHANGED
|
@@ -1,5 +1,92 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import styles from './index.module.css';
|
|
3
|
+
import { VTEXT_PARAMS } from './vEmail';
|
|
2
4
|
|
|
3
|
-
export function VEmail(
|
|
4
|
-
|
|
5
|
+
export function VEmail({
|
|
6
|
+
vState = false,
|
|
7
|
+
vType = 'outer',
|
|
8
|
+
vClassName = '',
|
|
9
|
+
vShowMessage = false,
|
|
10
|
+
vMessage = '',
|
|
11
|
+
vLocateMessage = 'bottom',
|
|
12
|
+
vMessageClass = '',
|
|
13
|
+
vIsAnimate = false,
|
|
14
|
+
props = {},
|
|
15
|
+
}: VTEXT_PARAMS) {
|
|
16
|
+
switch (vType) {
|
|
17
|
+
case 'outer':
|
|
18
|
+
return (
|
|
19
|
+
<div
|
|
20
|
+
className={`${styles.vinput} ${styles[`vinput-${vLocateMessage}`]}`}
|
|
21
|
+
>
|
|
22
|
+
<input
|
|
23
|
+
type="email"
|
|
24
|
+
{...props}
|
|
25
|
+
defaultValue={props?.defaultValue ?? ''}
|
|
26
|
+
className={`${props?.className} ${
|
|
27
|
+
vState ? vClassName || styles.invalid : ''
|
|
28
|
+
}`}
|
|
29
|
+
></input>
|
|
30
|
+
{vState && vShowMessage ? (
|
|
31
|
+
<p
|
|
32
|
+
className={`${vMessageClass} ${
|
|
33
|
+
vIsAnimate ? styles.animateMessage : ''
|
|
34
|
+
}`}
|
|
35
|
+
>
|
|
36
|
+
{vMessage}
|
|
37
|
+
</p>
|
|
38
|
+
) : null}
|
|
39
|
+
</div>
|
|
40
|
+
);
|
|
41
|
+
case 'inner':
|
|
42
|
+
return (
|
|
43
|
+
<div className={styles.vinput}>
|
|
44
|
+
<input
|
|
45
|
+
type="email"
|
|
46
|
+
{...props}
|
|
47
|
+
defaultValue={props?.defaultValue ?? ''}
|
|
48
|
+
className={`${props?.className} ${
|
|
49
|
+
vState ? vClassName || styles.invalid : ''
|
|
50
|
+
}`}
|
|
51
|
+
></input>
|
|
52
|
+
{vState && vShowMessage ? (
|
|
53
|
+
<p
|
|
54
|
+
className={`${vMessageClass} ${styles.innerMessage} ${
|
|
55
|
+
styles[`innerMessage-${vLocateMessage}`]
|
|
56
|
+
} ${vIsAnimate ? styles.animateMessage : ''}`}
|
|
57
|
+
>
|
|
58
|
+
{vMessage}
|
|
59
|
+
</p>
|
|
60
|
+
) : null}
|
|
61
|
+
</div>
|
|
62
|
+
);
|
|
63
|
+
case 'tooltip':
|
|
64
|
+
return (
|
|
65
|
+
<div
|
|
66
|
+
className={`${styles.vinput} ${
|
|
67
|
+
styles[`tooltipMessage-${vLocateMessage}`]
|
|
68
|
+
}`}
|
|
69
|
+
>
|
|
70
|
+
<input
|
|
71
|
+
type="email"
|
|
72
|
+
{...props}
|
|
73
|
+
defaultValue={props?.defaultValue ?? ''}
|
|
74
|
+
className={`${props?.className} ${
|
|
75
|
+
vState ? vClassName || styles.invalid : ''
|
|
76
|
+
}`}
|
|
77
|
+
></input>
|
|
78
|
+
{vState && vShowMessage ? (
|
|
79
|
+
<p
|
|
80
|
+
className={`${vMessageClass} ${styles.tooltipMessage} ${
|
|
81
|
+
styles[`tooltipMessage-${vLocateMessage}`]
|
|
82
|
+
} ${vIsAnimate ? styles.animateMessage : ''}`}
|
|
83
|
+
>
|
|
84
|
+
{vMessage}
|
|
85
|
+
</p>
|
|
86
|
+
) : null}
|
|
87
|
+
</div>
|
|
88
|
+
);
|
|
89
|
+
default:
|
|
90
|
+
return <div></div>;
|
|
91
|
+
}
|
|
5
92
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import propsType from '../types/vprops';
|
|
2
|
+
|
|
3
|
+
// VText 파라미터
|
|
4
|
+
export interface VTEXT_PARAMS {
|
|
5
|
+
readonly vState: boolean; // 유효성 상태 값
|
|
6
|
+
readonly vType: // 유효성 메시지를 출력할 타입
|
|
7
|
+
'inner' | 'outer' | 'tooltip';
|
|
8
|
+
vClassName?: string; // 유효성 입힐 class 명
|
|
9
|
+
readonly vShowMessage: boolean; // 유효성 메시지 출력할지
|
|
10
|
+
vMessage?: string; // 유효성 메시지
|
|
11
|
+
vLocateMessage?: // 유효성 메시지를 element 어디에 붙일지
|
|
12
|
+
| 'top-left'
|
|
13
|
+
| 'top'
|
|
14
|
+
| 'top-right'
|
|
15
|
+
| 'center-left'
|
|
16
|
+
| 'center'
|
|
17
|
+
| 'center-right'
|
|
18
|
+
| 'bottom-left'
|
|
19
|
+
| 'bottom'
|
|
20
|
+
| 'bottom-right';
|
|
21
|
+
vMessageClass?: string; // 유효성 메시지에 입힐 class 명
|
|
22
|
+
vIsAnimate?: boolean; // 유효성 메시지 출력 시 애니메이션 적용할지
|
|
23
|
+
props?: propsType; // 기타 옵션
|
|
24
|
+
}
|