react-validate-component 0.1.4 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -24,9 +24,9 @@ yarn add react-validate-component
24
24
 
25
25
  ## 사용법, How to use
26
26
 
27
- 현재 라이브러리에는 `VText` 컴포넌트가 구현되어 있습니다. 이 컴포넌트를 사용하여 텍스트 입력 필드의 유효성 검사를 쉽게 구현할 수 있습니다.
27
+ 현재 라이브러리에는 `VText`, `VCheckbox`, `VURL` 컴포넌트가 구현되어 있습니다. 이 컴포넌트를 사용하여 텍스트 입력 필드의 유효성 검사를 쉽게 구현할 수 있습니다.
28
28
 
29
- The library currently includes the `VText` component. You can use this component to easily implement validation for text input fields.
29
+ The library currently includes the `VText`, `VCheckbox`, `VURL` component. You can use this component to easily implement validation for text input fields.
30
30
 
31
31
  ### VText Component
32
32
 
@@ -109,6 +109,177 @@ export default App;
109
109
  - `vIsAnimate` (boolean): Whether to apply animation when displaying the validation message (currently, only opacity animation is supported).
110
110
  - `props` (object): Other options. Enter values for attributes that can be added to the basic input tag.
111
111
 
112
+ ### VCheckbox Component
113
+
114
+ `VCheckbox` 컴포넌트는 기본적인 체크박스 필드에 유효성 검사 문구를 출력해주는 기능을 제공합니다.
115
+
116
+ The `VCheckbox` component provides functionality to display validation messages for basic checkbox fields.
117
+
118
+ #### 사용 예제, Example
119
+
120
+ ```jsx
121
+ import React from 'react';
122
+ import { VText } from 'react-validate-component';
123
+
124
+ const App = () => {
125
+ const list = ['Tiger', 'Rabbit', 'Elephant', 'Dog', 'Pig', 'Cat', 'Duck'];
126
+ const [checked, setChecked] = React.useState<boolean[]>(
127
+ Array.from(list, () => false)
128
+ );
129
+ const [vState2, setVState2] = React.useState<boolean>(false);
130
+ const [vMessage2, setVMessage2] = React.useState<string>('');
131
+ React.useEffect(() => {
132
+ if (checked.filter(v => v).length > 3) {
133
+ setVState2(true);
134
+ setVMessage2('You can check up to 3 items.');
135
+ } else {
136
+ setVState2(false);
137
+ setVMessage2('');
138
+ }
139
+ }, [checked]);
140
+
141
+ return (
142
+ <section className={styles.layout}>
143
+ <h1>React-Validate-Component</h1>
144
+ <div>
145
+ <h2>VCheckbox</h2>
146
+ <h3>CHECK UP TO 3.</h3>
147
+ <VCheckbox
148
+ vState={vState2}
149
+ vType={'bottom'}
150
+ // vClassName={'test'}
151
+ vLabelClassName={styles.label_class}
152
+ vCheckedClassName={styles.label_check_class}
153
+ vCheckList={list}
154
+ vCheckedList={checked}
155
+ vShowMessage={true}
156
+ vMessage={vMessage2}
157
+ vMessageClass={styles.validation_message}
158
+ vIsAnimate={true}
159
+ props={{
160
+ onChange: (e: { target: { value: string; checked: boolean } }) => {
161
+ const tmp = [...checked];
162
+ const findIndex = list.findIndex(val => val === e.target.value);
163
+ tmp[findIndex] = e.target.checked;
164
+ setChecked(tmp);
165
+ },
166
+ }}
167
+ />
168
+ </div>
169
+ </section>
170
+ );
171
+ };
172
+
173
+ export default App;
174
+ ```
175
+
176
+ #### Props
177
+
178
+ - `vState` (boolean): 유효성 상태 값입니다.
179
+ - `vType` (`top`, `bottom`): 유효성 메시지를 띄우는 타입입니다.
180
+ - `vClassName` (string): 유효성 입힐 class 명입니다.
181
+ - `vLabelClassName` (string): label 태그에 입힐 class 명입니다.
182
+ - `vCheckedClassName` (string): check 상태일 때 입힐 class 명입니다.
183
+ - `vCheckList` (string[]): checkbox를 만들때 사용하는 배열입니다. 해당 배열에 있는 string값으로 체크박스를 만듭니다.
184
+ - `vCheckedList` (boolean[]): 현재 체크되어있는 상태를 나타내는 배열입니다.
185
+ - `vShowMessage` (boolean): 유효성 메시지 출력 여부값입니다.
186
+ - `vMessage` (string): 유효성 검사 실패 시 표시할 에러 메시지입니다.
187
+ - `vMessageClass` (string): 유효성 메시지에 입힐 class 명입니다.
188
+ - `vIsAnimate` (boolean): 유효성 메시지 출력 시 애니메이션 적용할지 여부입니다. (현재는 opacity만 적용되어있습니다.)
189
+ - `props` (object): 기타 옵션입니다. 기본 input 태그에 attribute로 넣을 값들을 입력하시면 됩니다.
190
+
191
+ - `vState` (boolean): The validity status value.
192
+ - `vType` (`top`, `bottom`): The type of validation message display.
193
+ - `vClassName` (string): The class name to apply for validation styling.
194
+ - `vLabelClassName` (string): The class name to apply to the `label` tag.
195
+ - `vCheckedClassName` (string): The class name to apply when checked.
196
+ - `vCheckList` (string[]): An array used to create checkboxes. Checkboxes are created using the string values in this array.
197
+ - `vCheckedList` (boolean[]): An array representing the current checked state.
198
+ - `vShowMessage` (boolean): Whether to display the validation message.
199
+ - `vMessage` (string): The error message to display when validation fails.
200
+ - `vMessageClass` (string): The class name to apply to the validation message.
201
+ - `vIsAnimate` (boolean): Whether to apply animation when displaying the validation message (currently, only opacity animation is supported).
202
+ - `props` (object): Other options. Enter values for attributes that can be added to the basic input tag.
203
+
204
+ ### VURL Component
205
+
206
+ `VURL` 컴포넌트는 기본적인 URL 필드에 유효성 검사 문구를 출력해주는 기능을 제공합니다.
207
+
208
+ The `VURL` component provides functionality to display validation messages for basic url fields.
209
+
210
+ #### 사용 예제, Example
211
+
212
+ ```jsx
213
+ import React from 'react';
214
+ import { VText } from 'react-validate-component';
215
+
216
+ const App = () => {
217
+ const [vState, setvState] = React.useState < boolean > false;
218
+ const [vMessage, setvMessage] = React.useState < string > '';
219
+ const [message, setmessage] =
220
+ React.useState < string > 'https://www.naver.com';
221
+
222
+ React.useEffect(() => {
223
+ if (/^http[s]?:\/\/([\S]{3,})/i.test(message)) {
224
+ setvState(false);
225
+ setvMessage('');
226
+ } else {
227
+ setvState(true);
228
+ setvMessage('IT MUST BE URL.');
229
+ }
230
+ }, [message]);
231
+
232
+ return (
233
+ <div>
234
+ <h2>VURL</h2>
235
+ <h3>INPUT URL.</h3>
236
+ <VURL
237
+ vState={vState}
238
+ vType={'outer'}
239
+ // vClassName={'test'}
240
+ vShowMessage={true}
241
+ vMessage={vMessage}
242
+ vLocateMessage={'bottom-left'}
243
+ vMessageClass={styles.validation_message}
244
+ vIsAnimate={true}
245
+ props={{
246
+ onChange: (e: { target: { value: string } }) => {
247
+ setmessage(e.target.value);
248
+ },
249
+ placeholder: 'this is react-validate-component test.',
250
+ className: styles.input_text,
251
+ defaultValue: 'https://www.naver.com',
252
+ }}
253
+ />
254
+ </div>
255
+ );
256
+ };
257
+
258
+ export default App;
259
+ ```
260
+
261
+ #### Props
262
+
263
+ - `vState` (boolean): 유효성 상태 값입니다.
264
+ - `vType` (`inner`, `outer`, `tooltip`): 유효성 메시지를 띄우는 타입입니다.
265
+ - `vClassName` (string): 유효성 입힐 class 명입니다.
266
+ - `vShowMessage` (boolean): 유효성 메시지 출력 여부값입니다.
267
+ - `vMessage` (string): 유효성 검사 실패 시 표시할 에러 메시지입니다.
268
+ - `vLocateMessage` (`top-left`, `top`, `top-right`, `center-left`, `center`, `center-right`, `bottom-left`, `bottom`, `bottom-right`): 유효성 메시지를 element 어디에 붙일지 위치값입니다.
269
+ - `vMessageClass` (string): 유효성 메시지에 입힐 class 명입니다.
270
+ - `vIsAnimate` (boolean): 유효성 메시지 출력 시 애니메이션 적용할지 여부입니다. (현재는 opacity만 적용되어있습니다.)
271
+ - `props` (object): 기타 옵션입니다. 기본 input 태그에 attribute로 넣을 값들을 입력하시면 됩니다.
272
+
273
+ - `vState` (boolean): The validity status value.
274
+ - `vType` (`inner`, `outer`, `tooltip`): The type of validation message display.
275
+ - `vClassName` (string): The class name to apply for validation styling.
276
+ - `vShowMessage` (boolean): Whether to display the validation message.
277
+ - `vMessage` (string): The error message to display when validation fails.
278
+ - `vLocateMessage` (`top-left`, `top`, `top-right`, `center-left`, `center`, `center-right`, `bottom-left`, `bottom`, `bottom-right`): The position where the validation message should be displayed relative to the element.
279
+ - `vMessageClass` (string): The class name to apply to the validation message.
280
+ - `vIsAnimate` (boolean): Whether to apply animation when displaying the validation message (currently, only opacity animation is supported).
281
+ - `props` (object): Other options. Enter values for attributes that can be added to the basic input tag.
282
+
112
283
  ### 유효성 검사 규칙, Validation Rules
113
284
 
114
285
  - 지금은 사용자가 정규식 혹은 함수를 이용해 작성한 유효성검사 로직을 토대로 element에 출력하고 있습니다.
@@ -119,11 +290,11 @@ export default App;
119
290
 
120
291
  ## 개발중인 기능, Features in Development
121
292
 
122
- - 현재 `VText` 컴포넌트만 구현되어 있으며, 다른 입력 유형에 대한 컴포넌트도 개발할 예정입니다.
293
+ - 현재 `VText`, `VCheckbox` 컴포넌트만 구현되어 있으며, 다른 입력 유형에 대한 컴포넌트도 개발할 예정입니다.
123
294
  - 추가적인 유효성 검사 규칙 및 에러 메시지 처리 기능이 계획되어 있습니다.
124
295
  - 현재 문서에 이미지를 추가한 문서 업데이트도 예정되어있습니다.
125
296
 
126
- - Currently, only the `VText` component is implemented, but components for other input types are planned for development.
297
+ - Currently, only the `VText`, `VCheckbox` component is implemented, but components for other input types are planned for development.
127
298
  - Additional validation rules and error message handling features are also in the pipeline.
128
299
  - Updates to the documentation, including the addition of images, are also planned.
129
300
 
package/dist/index.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import { VText } from './vText';
2
2
  import { VCheckbox } from './vCheckbox';
3
- import { vColor } from './vColor';
4
- import { vDate } from './vDate';
5
- import { vEmail } from './vEmail';
6
- import { vRadio } from './vRadio';
7
- import { vRange } from './vRange';
8
- import { vURL } from './vURL';
9
- export { VText, VCheckbox, vColor, vDate, vEmail, vRadio, vRange, vURL };
3
+ import { VURL } from './vURL';
4
+ import { VColor } from './vColor';
5
+ import { VDate } from './vDate';
6
+ import { VEmail } from './vEmail';
7
+ import { VRadio } from './vRadio';
8
+ import { VRange } from './vRange';
9
+ export { VText, VCheckbox, VURL, VColor, VDate, VEmail, VRadio, VRange };
@@ -97,54 +97,173 @@ function VText(_ref) {
97
97
  }
98
98
  }
99
99
 
100
- function VCheckbox() {
101
- return /*#__PURE__*/React.createElement("input", {
102
- type: "checkbox"
103
- });
100
+ var css_248z$1 = ".index-module_invalid__jaxx5 {\r\n border: 2px solid red;\r\n outline: none;\r\n}\r\n.index-module_invalid__jaxx5:focus,\r\n.index-module_invalid__jaxx5:focus-visible,\r\n.index-module_invalid__jaxx5:focus-within {\r\n border: 2px solid red;\r\n}\r\n\r\n.index-module_flex_column__jVY8S {\r\n display: flex;\r\n flex-direction: column;\r\n}\r\n\r\n.index-module_checkbox_layout__CnBGz {\r\n width: 400px;\r\n display: flex;\r\n flex-wrap: wrap;\r\n gap: 10px;\r\n}\r\n\r\n.index-module_animateMessage__o7xGY {\r\n animation: index-module_fade-in__KDZ5w 1s ease-in-out;\r\n}\r\n\r\n@keyframes index-module_fade-in__KDZ5w {\r\n 0% {\r\n opacity: 0;\r\n }\r\n 100% {\r\n opacity: 1;\r\n }\r\n}\r\n";
101
+ var styles$1 = {"invalid":"index-module_invalid__jaxx5","flex_column":"index-module_flex_column__jVY8S","checkbox_layout":"index-module_checkbox_layout__CnBGz","animateMessage":"index-module_animateMessage__o7xGY","fade-in":"index-module_fade-in__KDZ5w"};
102
+ styleInject(css_248z$1);
103
+
104
+ function VCheckbox(_ref) {
105
+ var _ref$vState = _ref.vState,
106
+ vState = _ref$vState === void 0 ? false : _ref$vState,
107
+ _ref$vType = _ref.vType,
108
+ vType = _ref$vType === void 0 ? 'bottom' : _ref$vType,
109
+ _ref$vClassName = _ref.vClassName,
110
+ vClassName = _ref$vClassName === void 0 ? '' : _ref$vClassName,
111
+ _ref$vLabelClassName = _ref.vLabelClassName,
112
+ vLabelClassName = _ref$vLabelClassName === void 0 ? '' : _ref$vLabelClassName,
113
+ _ref$vCheckedClassNam = _ref.vCheckedClassName,
114
+ vCheckedClassName = _ref$vCheckedClassNam === void 0 ? '' : _ref$vCheckedClassNam,
115
+ _ref$vCheckList = _ref.vCheckList,
116
+ vCheckList = _ref$vCheckList === void 0 ? [] : _ref$vCheckList,
117
+ _ref$vCheckedList = _ref.vCheckedList,
118
+ vCheckedList = _ref$vCheckedList === void 0 ? [] : _ref$vCheckedList,
119
+ _ref$vShowMessage = _ref.vShowMessage,
120
+ vShowMessage = _ref$vShowMessage === void 0 ? false : _ref$vShowMessage,
121
+ _ref$vMessage = _ref.vMessage,
122
+ vMessage = _ref$vMessage === void 0 ? '' : _ref$vMessage,
123
+ _ref$vMessageClass = _ref.vMessageClass,
124
+ vMessageClass = _ref$vMessageClass === void 0 ? '' : _ref$vMessageClass,
125
+ _ref$vIsAnimate = _ref.vIsAnimate,
126
+ vIsAnimate = _ref$vIsAnimate === void 0 ? false : _ref$vIsAnimate,
127
+ _ref$props = _ref.props,
128
+ props = _ref$props === void 0 ? {} : _ref$props;
129
+ // 체크박스 리스트 생성 함수
130
+ function makeCheckList() {
131
+ var result = [];
132
+ vCheckList.forEach(function (val, i) {
133
+ result.push( /*#__PURE__*/React.createElement("label", {
134
+ htmlFor: "vCheckbox-" + i,
135
+ className: vLabelClassName + " " + (vCheckedList[i] ? vCheckedClassName : '') + " " + (vState ? styles$1.invalid : ''),
136
+ key: i
137
+ }, /*#__PURE__*/React.createElement("input", Object.assign({
138
+ id: "vCheckbox-" + i,
139
+ type: "checkbox",
140
+ className: vClassName,
141
+ hidden: true,
142
+ value: val,
143
+ checked: vCheckedList[i]
144
+ }, props)), /*#__PURE__*/React.createElement("span", null, val)));
145
+ });
146
+ return /*#__PURE__*/React.createElement("div", {
147
+ className: styles$1.checkbox_layout
148
+ }, result);
149
+ }
150
+ switch (vType) {
151
+ case 'top':
152
+ return /*#__PURE__*/React.createElement("div", {
153
+ className: styles$1.flex_column
154
+ }, vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
155
+ className: vMessageClass + " " + (vIsAnimate ? styles$1.animateMessage : '')
156
+ }, vMessage)) : null, makeCheckList());
157
+ case 'bottom':
158
+ return /*#__PURE__*/React.createElement("div", {
159
+ className: styles$1.flex_column
160
+ }, makeCheckList(), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
161
+ className: vMessageClass + " " + (vIsAnimate ? styles$1.animateMessage : '')
162
+ }, vMessage)) : null);
163
+ default:
164
+ return /*#__PURE__*/React.createElement(React.Fragment, null);
165
+ }
104
166
  }
105
167
 
106
- function vColor() {
168
+ var css_248z$2 = ".index-module_invalid__Vthuh {\r\n border: 2px solid red;\r\n outline: none;\r\n}\r\n.index-module_invalid__Vthuh:focus,\r\n.index-module_invalid__Vthuh:focus-visible,\r\n.index-module_invalid__Vthuh:focus-within {\r\n border: 2px solid red;\r\n}\r\n\r\n/* vType === 'outer' */\r\n.index-module_vinput__Lvi4O {\r\n display: flex;\r\n}\r\n.index-module_vinput-top-left__sBqYe {\r\n flex-direction: column-reverse;\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-top__qDZz- {\r\n flex-direction: column-reverse;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-top-right__I-hDB {\r\n flex-direction: column-reverse;\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-center-left__oYELK {\r\n flex-direction: row-reverse;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-center-right__91z7q {\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom-left__6K-Lk {\r\n flex-direction: column;\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom__FlRwi {\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom-right__xC4I1 {\r\n flex-direction: column;\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n\r\n/* vType === 'inner' */\r\n.index-module_innerMessage__Rajpi {\r\n position: absolute;\r\n font-size: 12px;\r\n margin: 0;\r\n padding: 2px 5px;\r\n display: flex;\r\n}\r\n.index-module_innerMessage-top-left__JdN8y {\r\n align-items: flex-start;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-top__ASXWj {\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-top-right__62EeZ {\r\n align-items: flex-start;\r\n justify-content: flex-end;\r\n}\r\n.index-module_innerMessage-center-left__TS--f {\r\n align-items: center;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-center__-c2-N {\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-center-right__ow9Vw {\r\n align-items: center;\r\n justify-content: flex-end;\r\n}\r\n.index-module_innerMessage-bottom-left__a2DiX {\r\n align-items: flex-end;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-bottom__tSUzZ {\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-bottom-right__VNQIp {\r\n align-items: flex-end;\r\n justify-content: flex-end;\r\n}\r\n\r\n/* vType === 'tooltip' */\r\n.index-module_tooltipMessage__fCp4y {\r\n position: absolute;\r\n margin: 0;\r\n padding: 10px 20px;\r\n border: 1px solid transparent;\r\n border-radius: 10px;\r\n background-color: black;\r\n}\r\np[class*='tooltipMessage-top'] {\r\n transform: translateY(calc(-100% - 10px));\r\n}\r\np[class*='tooltipMessage-top']::after {\r\n content: '';\r\n position: absolute;\r\n bottom: 0;\r\n border: 10px solid transparent;\r\n border-top-color: black;\r\n border-bottom: 0;\r\n margin-bottom: -11px;\r\n}\r\n.index-module_vinput__Lvi4O.index-module_tooltipMessage-top-left__2a7YY {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-top-left__2a7YY::after {\r\n left: 3%;\r\n}\r\n.index-module_vinput__Lvi4O.index-module_tooltipMessage-top__vfEvp {\r\n justify-content: center;\r\n}\r\np.index-module_tooltipMessage-top__vfEvp::after {\r\n left: 44%;\r\n}\r\n.index-module_tooltipMessage-top-right__3AW9- {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-top-right__3AW9-::after {\r\n left: 87%;\r\n}\r\np[class*='tooltipMessage-center'] {\r\n /* transform: translateY(calc(-100% - 10px)); */\r\n}\r\np[class*='tooltipMessage-center']::after {\r\n content: '';\r\n position: absolute;\r\n border: 10px solid transparent;\r\n}\r\n.index-module_vinput__Lvi4O.index-module_tooltipMessage-center-right__5Sxay {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-center-right__5Sxay {\r\n transform: translateX(calc(100% + 10px));\r\n}\r\np.index-module_tooltipMessage-center-right__5Sxay::after {\r\n border-right-color: black;\r\n left: -10%;\r\n}\r\n.index-module_vinput__Lvi4O.index-module_tooltipMessage-center-left__8ShCG {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-center-left__8ShCG {\r\n transform: translateX(calc(-100% - 10px));\r\n}\r\np.index-module_tooltipMessage-center-left__8ShCG::after {\r\n border-left-color: black;\r\n left: 100%;\r\n}\r\n\r\np[class*='tooltipMessage-bottom'] {\r\n transform: translateY(calc(120% + 10px));\r\n}\r\np[class*='tooltipMessage-bottom']::after {\r\n content: '';\r\n position: absolute;\r\n top: 0;\r\n border: 10px solid transparent;\r\n border-bottom-color: black;\r\n border-top: 0;\r\n margin-top: -11px;\r\n}\r\n.index-module_vinput__Lvi4O.index-module_tooltipMessage-bottom-left__NNUPd {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-bottom-left__NNUPd::after {\r\n left: 3%;\r\n}\r\n.index-module_vinput__Lvi4O.index-module_tooltipMessage-bottom__73oDg {\r\n justify-content: center;\r\n}\r\np.index-module_tooltipMessage-bottom__73oDg::after {\r\n left: 44%;\r\n}\r\n.index-module_tooltipMessage-bottom-right__QqsJp {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-bottom-right__QqsJp::after {\r\n left: 87%;\r\n}\r\n\r\n.index-module_animateMessage__QOzDN {\r\n animation: index-module_fade-in__-mmbL 1s ease-in-out;\r\n}\r\n\r\n@keyframes index-module_fade-in__-mmbL {\r\n 0% {\r\n opacity: 0;\r\n }\r\n 100% {\r\n opacity: 1;\r\n }\r\n}\r\n";
169
+ var styles$2 = {"invalid":"index-module_invalid__Vthuh","vinput":"index-module_vinput__Lvi4O","vinput-top-left":"index-module_vinput-top-left__sBqYe","vinput-top":"index-module_vinput-top__qDZz-","vinput-top-right":"index-module_vinput-top-right__I-hDB","vinput-center-left":"index-module_vinput-center-left__oYELK","vinput-center-right":"index-module_vinput-center-right__91z7q","vinput-bottom-left":"index-module_vinput-bottom-left__6K-Lk","vinput-bottom":"index-module_vinput-bottom__FlRwi","vinput-bottom-right":"index-module_vinput-bottom-right__xC4I1","innerMessage":"index-module_innerMessage__Rajpi","innerMessage-top-left":"index-module_innerMessage-top-left__JdN8y","innerMessage-top":"index-module_innerMessage-top__ASXWj","innerMessage-top-right":"index-module_innerMessage-top-right__62EeZ","innerMessage-center-left":"index-module_innerMessage-center-left__TS--f","innerMessage-center":"index-module_innerMessage-center__-c2-N","innerMessage-center-right":"index-module_innerMessage-center-right__ow9Vw","innerMessage-bottom-left":"index-module_innerMessage-bottom-left__a2DiX","innerMessage-bottom":"index-module_innerMessage-bottom__tSUzZ","innerMessage-bottom-right":"index-module_innerMessage-bottom-right__VNQIp","tooltipMessage":"index-module_tooltipMessage__fCp4y","tooltipMessage-top-left":"index-module_tooltipMessage-top-left__2a7YY","tooltipMessage-top":"index-module_tooltipMessage-top__vfEvp","tooltipMessage-top-right":"index-module_tooltipMessage-top-right__3AW9-","tooltipMessage-center-right":"index-module_tooltipMessage-center-right__5Sxay","tooltipMessage-center-left":"index-module_tooltipMessage-center-left__8ShCG","tooltipMessage-bottom-left":"index-module_tooltipMessage-bottom-left__NNUPd","tooltipMessage-bottom":"index-module_tooltipMessage-bottom__73oDg","tooltipMessage-bottom-right":"index-module_tooltipMessage-bottom-right__QqsJp","animateMessage":"index-module_animateMessage__QOzDN","fade-in":"index-module_fade-in__-mmbL"};
170
+ styleInject(css_248z$2);
171
+
172
+ function VURL(_ref) {
173
+ var _props$defaultValue, _props$defaultValue2, _props$defaultValue3;
174
+ var _ref$vState = _ref.vState,
175
+ vState = _ref$vState === void 0 ? false : _ref$vState,
176
+ _ref$vType = _ref.vType,
177
+ vType = _ref$vType === void 0 ? 'outer' : _ref$vType,
178
+ _ref$vClassName = _ref.vClassName,
179
+ vClassName = _ref$vClassName === void 0 ? '' : _ref$vClassName,
180
+ _ref$vShowMessage = _ref.vShowMessage,
181
+ vShowMessage = _ref$vShowMessage === void 0 ? false : _ref$vShowMessage,
182
+ _ref$vMessage = _ref.vMessage,
183
+ vMessage = _ref$vMessage === void 0 ? '' : _ref$vMessage,
184
+ _ref$vLocateMessage = _ref.vLocateMessage,
185
+ vLocateMessage = _ref$vLocateMessage === void 0 ? 'bottom' : _ref$vLocateMessage,
186
+ _ref$vMessageClass = _ref.vMessageClass,
187
+ vMessageClass = _ref$vMessageClass === void 0 ? '' : _ref$vMessageClass,
188
+ _ref$vIsAnimate = _ref.vIsAnimate,
189
+ vIsAnimate = _ref$vIsAnimate === void 0 ? false : _ref$vIsAnimate,
190
+ _ref$props = _ref.props,
191
+ props = _ref$props === void 0 ? {} : _ref$props;
192
+ switch (vType) {
193
+ case 'outer':
194
+ return /*#__PURE__*/React.createElement("div", {
195
+ className: styles$2.vinput + " " + styles$2["vinput-" + vLocateMessage]
196
+ }, /*#__PURE__*/React.createElement("input", Object.assign({
197
+ type: "url"
198
+ }, props, {
199
+ defaultValue: (_props$defaultValue = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue : '',
200
+ className: (props == null ? void 0 : props.className) + " " + (vState ? vClassName || styles$2.invalid : '')
201
+ })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
202
+ className: vMessageClass + " " + (vIsAnimate ? styles$2.animateMessage : '')
203
+ }, vMessage)) : null);
204
+ case 'inner':
205
+ return /*#__PURE__*/React.createElement("div", {
206
+ className: styles$2.vinput
207
+ }, /*#__PURE__*/React.createElement("input", Object.assign({
208
+ type: "url"
209
+ }, props, {
210
+ defaultValue: (_props$defaultValue2 = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue2 : '',
211
+ className: (props == null ? void 0 : props.className) + " " + (vState ? vClassName || styles$2.invalid : '')
212
+ })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
213
+ className: vMessageClass + " " + styles$2.innerMessage + " " + styles$2["innerMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles$2.animateMessage : '')
214
+ }, vMessage)) : null);
215
+ case 'tooltip':
216
+ return /*#__PURE__*/React.createElement("div", {
217
+ className: styles$2.vinput + " " + styles$2["tooltipMessage-" + vLocateMessage]
218
+ }, /*#__PURE__*/React.createElement("input", Object.assign({
219
+ type: "url"
220
+ }, props, {
221
+ defaultValue: (_props$defaultValue3 = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue3 : '',
222
+ className: (props == null ? void 0 : props.className) + " " + (vState ? vClassName || styles$2.invalid : '')
223
+ })), vState && vShowMessage ? ( /*#__PURE__*/React.createElement("p", {
224
+ className: vMessageClass + " " + styles$2.tooltipMessage + " " + styles$2["tooltipMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles$2.animateMessage : '')
225
+ }, vMessage)) : null);
226
+ default:
227
+ return /*#__PURE__*/React.createElement("div", null);
228
+ }
229
+ }
230
+
231
+ function VColor() {
107
232
  return /*#__PURE__*/React.createElement("input", {
108
233
  type: "color"
109
234
  });
110
235
  }
111
236
 
112
- function vDate() {
237
+ function VDate() {
113
238
  return /*#__PURE__*/React.createElement("input", {
114
239
  type: "date"
115
240
  });
116
241
  }
117
242
 
118
- function vEmail() {
243
+ function VEmail() {
119
244
  return /*#__PURE__*/React.createElement("input", {
120
245
  type: "email"
121
246
  });
122
247
  }
123
248
 
124
- function vRadio() {
249
+ function VRadio() {
125
250
  return /*#__PURE__*/React.createElement("input", {
126
251
  type: "radio"
127
252
  });
128
253
  }
129
254
 
130
- function vRange() {
255
+ function VRange() {
131
256
  return /*#__PURE__*/React.createElement("input", {
132
257
  type: "range"
133
258
  });
134
259
  }
135
260
 
136
- function vURL() {
137
- return /*#__PURE__*/React.createElement("input", {
138
- type: "url"
139
- });
140
- }
141
-
142
261
  exports.VCheckbox = VCheckbox;
262
+ exports.VColor = VColor;
263
+ exports.VDate = VDate;
264
+ exports.VEmail = VEmail;
265
+ exports.VRadio = VRadio;
266
+ exports.VRange = VRange;
143
267
  exports.VText = VText;
144
- exports.vColor = vColor;
145
- exports.vDate = vDate;
146
- exports.vEmail = vEmail;
147
- exports.vRadio = vRadio;
148
- exports.vRange = vRange;
149
- exports.vURL = vURL;
268
+ exports.VURL = VURL;
150
269
  //# sourceMappingURL=react-validate-component.cjs.development.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"react-validate-component.cjs.development.js","sources":["../node_modules/style-inject/dist/style-inject.es.js","../src/vText/index.tsx","../src/vCheckbox/index.tsx","../src/vColor/index.tsx","../src/vDate/index.tsx","../src/vEmail/index.tsx","../src/vRadio/index.tsx","../src/vRange/index.tsx","../src/vURL/index.tsx"],"sourcesContent":["function styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nexport default styleInject;\n","import React from 'react';\nimport styles from './index.module.css';\nimport { VTEXT_PARAMS } from './vText';\n\n// Text\nexport function VText({\n vState = false,\n vType = 'outer',\n vClassName = '',\n vShowMessage = false,\n vMessage = '',\n vLocateMessage = 'bottom',\n vMessageClass = '',\n vIsAnimate = false,\n props = {},\n}: VTEXT_PARAMS) {\n switch (vType) {\n case 'outer':\n return (\n <div\n className={`${styles.vinput} ${styles[`vinput-${vLocateMessage}`]}`}\n >\n <input\n type=\"text\"\n {...props}\n defaultValue={props?.defaultValue ?? ''}\n className={`${props?.className} ${\n vState ? vClassName || styles.invalid : ''\n }`}\n ></input>\n {vState && vShowMessage ? (\n <p\n className={`${vMessageClass} ${\n vIsAnimate ? styles.animateMessage : ''\n }`}\n >\n {vMessage}\n </p>\n ) : null}\n </div>\n );\n case 'inner':\n return (\n <div className={styles.vinput}>\n <input\n type=\"text\"\n {...props}\n defaultValue={props?.defaultValue ?? ''}\n className={`${props?.className} ${\n vState ? vClassName || styles.invalid : ''\n }`}\n ></input>\n {vState && vShowMessage ? (\n <p\n className={`${vMessageClass} ${styles.innerMessage} ${\n styles[`innerMessage-${vLocateMessage}`]\n } ${vIsAnimate ? styles.animateMessage : ''}`}\n >\n {vMessage}\n </p>\n ) : null}\n </div>\n );\n case 'tooltip':\n return (\n <div\n className={`${styles.vinput} ${\n styles[`tooltipMessage-${vLocateMessage}`]\n }`}\n >\n <input\n type=\"text\"\n {...props}\n defaultValue={props?.defaultValue ?? ''}\n className={`${props?.className} ${\n vState ? vClassName || styles.invalid : ''\n }`}\n ></input>\n {vState && vShowMessage ? (\n <p\n className={`${vMessageClass} ${styles.tooltipMessage} ${\n styles[`tooltipMessage-${vLocateMessage}`]\n } ${vIsAnimate ? styles.animateMessage : ''}`}\n >\n {vMessage}\n </p>\n ) : null}\n </div>\n );\n default:\n return <div></div>;\n }\n}\n","import React from 'react';\r\n\r\nexport function VCheckbox() {\r\n return <input type=\"checkbox\" />;\r\n}\r\n","import React from 'react';\r\n\r\nexport function vColor() {\r\n return <input type=\"color\" />;\r\n}\r\n","import React from 'react';\r\n\r\nexport function vDate() {\r\n return <input type=\"date\" />;\r\n}\r\n","import React from 'react';\r\n\r\nexport function vEmail() {\r\n return <input type=\"email\" />;\r\n}\r\n","import React from 'react';\r\n\r\nexport function vRadio() {\r\n return <input type=\"radio\" />;\r\n}\r\n","import React from 'react';\r\n\r\nexport function vRange() {\r\n return <input type=\"range\" />;\r\n}\r\n","import React from 'react';\r\n\r\nexport function vURL() {\r\n return <input type=\"url\" />;\r\n}\r\n"],"names":["VText","_ref","vState","_ref$vState","_ref$vType","vType","_ref$vClassName","vClassName","_ref$vShowMessage","vShowMessage","_ref$vMessage","vMessage","_ref$vLocateMessage","vLocateMessage","_ref$vMessageClass","vMessageClass","_ref$vIsAnimate","vIsAnimate","_ref$props","props","React","className","styles","vinput","type","defaultValue","_props$defaultValue","invalid","animateMessage","_props$defaultValue2","innerMessage","_props$defaultValue3","tooltipMessage","VCheckbox","vColor","vDate","vEmail","vRadio","vRange","vURL"],"mappings":";;;;;;;;AAAA,SAAS,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE;AAC/B,EAAE,KAAK,GAAG,KAAK,KAAK,CAAC,GAAG,GAAG,GAAG,EAAE,CAAC;AACjC,EAAE,IAAI,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;AAC9B;AACA,EAAE,IAAI,CAAC,GAAG,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE,EAAE,OAAO,EAAE;AAC1D;AACA,EAAE,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AACvE,EAAE,IAAI,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;AAC9C,EAAE,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACzB,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;AAChD,KAAK,MAAM;AACX,MAAM,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC9B,KAAK;AACL,GAAG,MAAM;AACT,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;AAC5B,GAAG;AACH;AACA,EAAE,IAAI,KAAK,CAAC,UAAU,EAAE;AACxB,IAAI,KAAK,CAAC,UAAU,CAAC,OAAO,GAAG,GAAG,CAAC;AACnC,GAAG,MAAM;AACT,IAAI,KAAK,CAAC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GAAGK,MAAM,CAACM,cAAc,GAAG,EAAE;SAE1CjB,QAAQ,CACP,IACF,IAAI,CACJ;IAEV;MACE,oBAAOS,gCAAW;;AAExB;;SC1FgBa,SAASA;EACvB,oBAAOb;IAAOI,IAAI,EAAC;IAAa;AAClC;;SCFgBU,MAAMA;EACpB,oBAAOd;IAAOI,IAAI,EAAC;IAAU;AAC/B;;SCFgBW,KAAKA;EACnB,oBAAOf;IAAOI,IAAI,EAAC;IAAS;AAC9B;;SCFgBY,MAAMA;EACpB,oBAAOhB;IAAOI,IAAI,EAAC;IAAU;AAC/B;;SCFgBa,MAAMA;EACpB,oBAAOjB;IAAOI,IAAI,EAAC;IAAU;AAC/B;;SCFgBc,MAAMA;EACpB,oBAAOlB;IAAOI,IAAI,EAAC;IAAU;AAC/B;;SCFgBe,IAAIA;EAClB,oBAAOnB;IAAOI,IAAI,EAAC;IAAQ;AAC7B;;;;;;;;;;;"}
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,KAAK,CAAC,IAAI,GAAG,UAAU,CAAC;AAC1B;AACA,EAAE,IAAI,QAAQ,KAAK,KAAK,EAAE;AAC1B,IAAI,IAAI,IAAI,CAAC,UAAU,EAAE;AACz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V,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,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,t={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"};!function(e,n){void 0===n&&(n={});var t=n.insertAt;if("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))}}(".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"),exports.VCheckbox=function(){return n.createElement("input",{type:"checkbox"})},exports.VText=function(e){var r,o,i,l=e.vState,s=void 0!==l&&l,a=e.vType,d=e.vClassName,_=void 0===d?"":d,u=e.vShowMessage,p=void 0!==u&&u,m=e.vMessage,c=void 0===m?"":m,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,y=e.props,h=void 0===y?{}:y;switch(void 0===a?"outer":a){case"outer":return n.createElement("div",{className:t.vinput+" "+t["vinput-"+g]},n.createElement("input",Object.assign({type:"text"},h,{defaultValue:null!=(r=null==h?void 0:h.defaultValue)?r:"",className:(null==h?void 0:h.className)+" "+(s?_||t.invalid:"")})),s&&p?n.createElement("p",{className:v+" "+(b?t.animateMessage:"")},c):null);case"inner":return n.createElement("div",{className:t.vinput},n.createElement("input",Object.assign({type:"text"},h,{defaultValue:null!=(o=null==h?void 0:h.defaultValue)?o:"",className:(null==h?void 0:h.className)+" "+(s?_||t.invalid:"")})),s&&p?n.createElement("p",{className:v+" "+t.innerMessage+" "+t["innerMessage-"+g]+" "+(b?t.animateMessage:"")},c):null);case"tooltip":return n.createElement("div",{className:t.vinput+" "+t["tooltipMessage-"+g]},n.createElement("input",Object.assign({type:"text"},h,{defaultValue:null!=(i=null==h?void 0:h.defaultValue)?i:"",className:(null==h?void 0:h.className)+" "+(s?_||t.invalid:"")})),s&&p?n.createElement("p",{className:v+" "+t.tooltipMessage+" "+t["tooltipMessage-"+g]+" "+(b?t.animateMessage:"")},c):null);default:return n.createElement("div",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.vURL=function(){return n.createElement("input",{type:"url"})};
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)}};
2
2
  //# sourceMappingURL=react-validate-component.cjs.production.min.js.map