react-validate-component 1.1.1 → 1.1.2
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/dist/react-validate-component.cjs.development.js +31 -37
- 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 +31 -37
- package/dist/react-validate-component.esm.js.map +1 -1
- package/package.json +6 -4
- package/src/index.module.css +16 -12
- package/src/vText/index.tsx +131 -137
|
@@ -43,13 +43,13 @@ function styleInject(css, ref) {
|
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
var css_248z = ".index-module_invalid__gHKsE {\r\n border:
|
|
46
|
+
var css_248z = ".index-module_invalid__gHKsE {\r\n border: 1px solid red;\r\n outline: none;\r\n}\r\n.index-module_invalid__gHKsE:focus,\r\n.index-module_invalid__gHKsE:focus-visible,\r\n.index-module_invalid__gHKsE:focus-within {\r\n border: 2px solid red;\r\n}\r\n.index-module_vMaxLengthContainer__rh7UH {\r\n position: relative;\r\n}\r\n.index-module_vMaxLengthContainer__rh7UH > input[type='text'] {\r\n padding-right: 70px;\r\n}\r\n.index-module_vMaxLengthContainer__rh7UH .index-module_vMaxLength__hANPK {\r\n color: #555;\r\n font-size: 0.8rem;\r\n position: absolute;\r\n right: 0;\r\n top: 0;\r\n margin: 0;\r\n padding: 16px;\r\n}\r\n\r\n/* vType === 'outer' */\r\n.index-module_vinput__tFGFH {\r\n display: flex;\r\n width: fit-content;\r\n}\r\n.index-module_vinput-top-left__2g8Bq {\r\n flex-direction: column-reverse;\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-top__ZTh6H {\r\n flex-direction: column-reverse;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-top-right__t6K-Q {\r\n flex-direction: column-reverse;\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-center-left__vJn0s {\r\n flex-direction: row-reverse;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-center-right__HDgip {\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom-left__xxaiT {\r\n flex-direction: column;\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom__nCOAf {\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom-right__6AjOE {\r\n flex-direction: column;\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n\r\n/* vType === 'inner' */\r\n.index-module_innerMessage__rihga {\r\n position: absolute;\r\n font-size: 12px;\r\n margin: 0;\r\n padding: 2px 5px;\r\n display: flex;\r\n}\r\n.index-module_innerMessage-top-left__HLoYg {\r\n align-items: flex-start;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-top__ouYW6 {\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-top-right__7tMC8 {\r\n align-items: flex-start;\r\n justify-content: flex-end;\r\n}\r\n.index-module_innerMessage-center-left__4iZyl {\r\n align-items: center;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-center__U2006 {\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-center-right__Pg2oU {\r\n align-items: center;\r\n justify-content: flex-end;\r\n}\r\n.index-module_innerMessage-bottom-left__1QDIv {\r\n align-items: flex-end;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-bottom__gMogT {\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-bottom-right__peBq- {\r\n align-items: flex-end;\r\n justify-content: flex-end;\r\n}\r\n\r\n/* vType === 'tooltip' */\r\n* {\r\n --tooltip-default-color: #333;\r\n}\r\n.index-module_tooltipMessage__ZlthY {\r\n position: absolute;\r\n margin: 0;\r\n padding: 10px 20px;\r\n border: 1px solid transparent;\r\n border-radius: 10px;\r\n background-color: var(--tooltip-default-color);\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: var(--tooltip-default-color);\r\n border-bottom: 0;\r\n margin-bottom: -10px;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-top-left__us8PI {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-top-left__us8PI::after {\r\n left: 10%;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-top__NaUtu {\r\n justify-content: center;\r\n}\r\np.index-module_tooltipMessage-top__NaUtu::after {\r\n left: 44%;\r\n}\r\n.index-module_tooltipMessage-top-right__UveQN {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-top-right__UveQN::after {\r\n left: 80%;\r\n}\r\np[class*='tooltipMessage-center'] {\r\n /* transform: translateY(calc(-100% - 10px)); */\r\n}\r\np[class*='tooltipMessage-center']::after {\r\n content: '';\r\n position: absolute;\r\n border: 10px solid transparent;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-center-right__8eqfQ {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-center-right__8eqfQ {\r\n transform: translateX(calc(100% + 10px));\r\n}\r\np.index-module_tooltipMessage-center-right__8eqfQ::after {\r\n border-right-color: var(--tooltip-default-color);\r\n left: -15%;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-center-left__yyDuD {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-center-left__yyDuD {\r\n transform: translateX(calc(-100% - 10px));\r\n}\r\np.index-module_tooltipMessage-center-left__yyDuD::after {\r\n border-left-color: var(--tooltip-default-color);\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: var(--tooltip-default-color);\r\n border-top: 0;\r\n margin-top: -11px;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-bottom-left__u-H0Q {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-bottom-left__u-H0Q::after {\r\n left: 10%;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-bottom__YOZgV {\r\n justify-content: center;\r\n}\r\np.index-module_tooltipMessage-bottom__YOZgV::after {\r\n left: 44%;\r\n}\r\n.index-module_tooltipMessage-bottom-right__yD0zu {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-bottom-right__yD0zu::after {\r\n left: 80%;\r\n}\r\n\r\n.index-module_animateMessage__Gxf3M {\r\n animation: index-module_fade-in__GxKz8 1s ease-in-out;\r\n}\r\n\r\n@keyframes index-module_fade-in__GxKz8 {\r\n 0% {\r\n opacity: 0;\r\n }\r\n 100% {\r\n opacity: 1;\r\n }\r\n}\r\n";
|
|
47
47
|
var styles = {"invalid":"index-module_invalid__gHKsE","vMaxLengthContainer":"index-module_vMaxLengthContainer__rh7UH","vMaxLength":"index-module_vMaxLength__hANPK","vinput":"index-module_vinput__tFGFH","vinput-top-left":"index-module_vinput-top-left__2g8Bq","vinput-top":"index-module_vinput-top__ZTh6H","vinput-top-right":"index-module_vinput-top-right__t6K-Q","vinput-center-left":"index-module_vinput-center-left__vJn0s","vinput-center-right":"index-module_vinput-center-right__HDgip","vinput-bottom-left":"index-module_vinput-bottom-left__xxaiT","vinput-bottom":"index-module_vinput-bottom__nCOAf","vinput-bottom-right":"index-module_vinput-bottom-right__6AjOE","innerMessage":"index-module_innerMessage__rihga","innerMessage-top-left":"index-module_innerMessage-top-left__HLoYg","innerMessage-top":"index-module_innerMessage-top__ouYW6","innerMessage-top-right":"index-module_innerMessage-top-right__7tMC8","innerMessage-center-left":"index-module_innerMessage-center-left__4iZyl","innerMessage-center":"index-module_innerMessage-center__U2006","innerMessage-center-right":"index-module_innerMessage-center-right__Pg2oU","innerMessage-bottom-left":"index-module_innerMessage-bottom-left__1QDIv","innerMessage-bottom":"index-module_innerMessage-bottom__gMogT","innerMessage-bottom-right":"index-module_innerMessage-bottom-right__peBq-","tooltipMessage":"index-module_tooltipMessage__ZlthY","tooltipMessage-top-left":"index-module_tooltipMessage-top-left__us8PI","tooltipMessage-top":"index-module_tooltipMessage-top__NaUtu","tooltipMessage-top-right":"index-module_tooltipMessage-top-right__UveQN","tooltipMessage-center-right":"index-module_tooltipMessage-center-right__8eqfQ","tooltipMessage-center-left":"index-module_tooltipMessage-center-left__yyDuD","tooltipMessage-bottom-left":"index-module_tooltipMessage-bottom-left__u-H0Q","tooltipMessage-bottom":"index-module_tooltipMessage-bottom__YOZgV","tooltipMessage-bottom-right":"index-module_tooltipMessage-bottom-right__yD0zu","animateMessage":"index-module_animateMessage__Gxf3M","fade-in":"index-module_fade-in__GxKz8"};
|
|
48
48
|
styleInject(css_248z);
|
|
49
49
|
|
|
50
50
|
// Text
|
|
51
51
|
function VText(_ref) {
|
|
52
|
-
var _length, _ref2, _props, _props2
|
|
52
|
+
var _length, _ref2, _props, _props2;
|
|
53
53
|
var _ref$vState = _ref.vState,
|
|
54
54
|
vState = _ref$vState === void 0 ? false : _ref$vState,
|
|
55
55
|
_ref$vType = _ref.vType,
|
|
@@ -74,7 +74,6 @@ function VText(_ref) {
|
|
|
74
74
|
vClassMaxLength = _ref$vClassMaxLength === void 0 ? '' : _ref$vClassMaxLength,
|
|
75
75
|
_ref$props = _ref.props,
|
|
76
76
|
props = _ref$props === void 0 ? {} : _ref$props;
|
|
77
|
-
var inputRef = React.useRef(null);
|
|
78
77
|
var _React$useState = React.useState((_length = (_ref2 = ((_props = props) == null ? void 0 : _props.defaultValue) || ((_props2 = props) == null ? void 0 : _props2.value)) == null ? void 0 : _ref2.length) != null ? _length : 0),
|
|
79
78
|
inputLength = _React$useState[0],
|
|
80
79
|
setInputLength = _React$useState[1];
|
|
@@ -82,8 +81,7 @@ function VText(_ref) {
|
|
|
82
81
|
var inputHTML = function inputHTML() {
|
|
83
82
|
var _props$defaultValue, _props4, _props$className, _props5;
|
|
84
83
|
return /*#__PURE__*/React.createElement("input", Object.assign({
|
|
85
|
-
type: "text"
|
|
86
|
-
ref: inputRef
|
|
84
|
+
type: "text"
|
|
87
85
|
}, props, {
|
|
88
86
|
onChange: function onChange(e) {
|
|
89
87
|
if (vUseMaxLength && e.target.value.length > vMaxLength) {
|
|
@@ -92,6 +90,9 @@ function VText(_ref) {
|
|
|
92
90
|
} else {
|
|
93
91
|
var _props3;
|
|
94
92
|
(_props3 = props) == null || _props3.onChange(e);
|
|
93
|
+
if (vUseMaxLength) {
|
|
94
|
+
setInputLength(e.target.value.length);
|
|
95
|
+
}
|
|
95
96
|
}
|
|
96
97
|
},
|
|
97
98
|
defaultValue: (_props$defaultValue = (_props4 = props) == null ? void 0 : _props4.defaultValue) != null ? _props$defaultValue : '',
|
|
@@ -104,13 +105,6 @@ function VText(_ref) {
|
|
|
104
105
|
maxLength: vMaxLength
|
|
105
106
|
});
|
|
106
107
|
}
|
|
107
|
-
React.useEffect(function () {
|
|
108
|
-
// 입력 최댓값을 사용할 경우 useEffect Hook 설정
|
|
109
|
-
if (vUseMaxLength) {
|
|
110
|
-
var _inputRef$current$val, _inputRef$current;
|
|
111
|
-
setInputLength(((_inputRef$current$val = (_inputRef$current = inputRef.current) == null ? void 0 : _inputRef$current.value) != null ? _inputRef$current$val : '').length);
|
|
112
|
-
}
|
|
113
|
-
}, [(_inputRef$current2 = inputRef.current) == null ? void 0 : _inputRef$current2.value]);
|
|
114
108
|
switch (vType) {
|
|
115
109
|
default:
|
|
116
110
|
case 'outer':
|
|
@@ -120,25 +114,25 @@ function VText(_ref) {
|
|
|
120
114
|
style: {
|
|
121
115
|
position: 'relative'
|
|
122
116
|
}
|
|
123
|
-
}, inputHTML(), vUseMaxLength && (
|
|
117
|
+
}, inputHTML(), vUseMaxLength && (/*#__PURE__*/React.createElement("p", {
|
|
124
118
|
className: styles.vMaxLength + " " + vClassMaxLength
|
|
125
|
-
}, inputLength, " / ", vMaxLength))), vState && vShowMessage ? (
|
|
119
|
+
}, inputLength, " / ", vMaxLength))), vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
126
120
|
className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
127
121
|
}, vMessage)) : null);
|
|
128
122
|
case 'inner':
|
|
129
123
|
return /*#__PURE__*/React.createElement("div", {
|
|
130
124
|
className: styles.vinput + " " + (vUseMaxLength ? styles.vMaxLengthContainer : '')
|
|
131
|
-
}, inputHTML(), vUseMaxLength && (
|
|
125
|
+
}, inputHTML(), vUseMaxLength && (/*#__PURE__*/React.createElement("p", {
|
|
132
126
|
className: styles.vMaxLength + " " + vClassMaxLength
|
|
133
|
-
}, inputLength, " / ", vMaxLength)), vState && vShowMessage ? (
|
|
127
|
+
}, inputLength, " / ", vMaxLength)), vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
134
128
|
className: vMessageClass + " " + styles.innerMessage + " " + styles["innerMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
135
129
|
}, vMessage)) : null);
|
|
136
130
|
case 'tooltip':
|
|
137
131
|
return /*#__PURE__*/React.createElement("div", {
|
|
138
132
|
className: styles.vinput + " " + styles["tooltipMessage-" + vLocateMessage] + " " + (vUseMaxLength ? styles.vMaxLengthContainer : '')
|
|
139
|
-
}, inputHTML(), vUseMaxLength && (
|
|
133
|
+
}, inputHTML(), vUseMaxLength && (/*#__PURE__*/React.createElement("p", {
|
|
140
134
|
className: styles.vMaxLength + " " + vClassMaxLength
|
|
141
|
-
}, inputLength, " / ", vMaxLength)), vState && vShowMessage ? (
|
|
135
|
+
}, inputLength, " / ", vMaxLength)), vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
142
136
|
className: vMessageClass + " " + styles.tooltipMessage + " " + styles["tooltipMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
143
137
|
}, vMessage)) : null);
|
|
144
138
|
}
|
|
@@ -175,7 +169,7 @@ function VCheckbox(_ref) {
|
|
|
175
169
|
function makeCheckList() {
|
|
176
170
|
var result = [];
|
|
177
171
|
vCheckList.forEach(function (val, i) {
|
|
178
|
-
result.push(
|
|
172
|
+
result.push(/*#__PURE__*/React.createElement("label", {
|
|
179
173
|
htmlFor: "vCheckbox-" + i,
|
|
180
174
|
className: vLabelClassName + " " + (vCheckedList[i] ? vCheckedClassName : '') + " " + (vState ? styles.invalid : ''),
|
|
181
175
|
key: i
|
|
@@ -195,11 +189,11 @@ function VCheckbox(_ref) {
|
|
|
195
189
|
switch (vType) {
|
|
196
190
|
default:
|
|
197
191
|
case 'top':
|
|
198
|
-
return /*#__PURE__*/React.createElement("div", null, vState && vShowMessage ? (
|
|
192
|
+
return /*#__PURE__*/React.createElement("div", null, vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
199
193
|
className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
200
194
|
}, vMessage)) : null, makeCheckList());
|
|
201
195
|
case 'bottom':
|
|
202
|
-
return /*#__PURE__*/React.createElement("div", null, makeCheckList(), vState && vShowMessage ? (
|
|
196
|
+
return /*#__PURE__*/React.createElement("div", null, makeCheckList(), vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
203
197
|
className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
204
198
|
}, vMessage)) : null);
|
|
205
199
|
}
|
|
@@ -235,7 +229,7 @@ function VURL(_ref) {
|
|
|
235
229
|
}, props, {
|
|
236
230
|
defaultValue: (_props$defaultValue = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue : '',
|
|
237
231
|
className: ((_props$className = props == null ? void 0 : props.className) != null ? _props$className : '') + " " + vClassName + " " + (vState ? styles.invalid : '')
|
|
238
|
-
})), vState && vShowMessage ? (
|
|
232
|
+
})), vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
239
233
|
className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
240
234
|
}, vMessage)) : null);
|
|
241
235
|
case 'inner':
|
|
@@ -246,7 +240,7 @@ function VURL(_ref) {
|
|
|
246
240
|
}, props, {
|
|
247
241
|
defaultValue: (_props$defaultValue2 = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue2 : '',
|
|
248
242
|
className: ((_props$className2 = props == null ? void 0 : props.className) != null ? _props$className2 : '') + " " + vClassName + " " + (vState ? styles.invalid : '')
|
|
249
|
-
})), vState && vShowMessage ? (
|
|
243
|
+
})), vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
250
244
|
className: vMessageClass + " " + styles.innerMessage + " " + styles["innerMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
251
245
|
}, vMessage)) : null);
|
|
252
246
|
case 'tooltip':
|
|
@@ -257,7 +251,7 @@ function VURL(_ref) {
|
|
|
257
251
|
}, props, {
|
|
258
252
|
defaultValue: (_props$defaultValue3 = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue3 : '',
|
|
259
253
|
className: ((_props$className3 = props == null ? void 0 : props.className) != null ? _props$className3 : '') + " " + vClassName + " " + (vState ? styles.invalid : '')
|
|
260
|
-
})), vState && vShowMessage ? (
|
|
254
|
+
})), vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
261
255
|
className: vMessageClass + " " + styles.tooltipMessage + " " + styles["tooltipMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
262
256
|
}, vMessage)) : null);
|
|
263
257
|
}
|
|
@@ -283,7 +277,7 @@ function VColor(_ref) {
|
|
|
283
277
|
switch (vType) {
|
|
284
278
|
default:
|
|
285
279
|
case 'top':
|
|
286
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, vState && vShowMessage ? (
|
|
280
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
287
281
|
className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
288
282
|
}, vMessage)) : null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("input", Object.assign({
|
|
289
283
|
type: "color",
|
|
@@ -293,7 +287,7 @@ function VColor(_ref) {
|
|
|
293
287
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("input", Object.assign({
|
|
294
288
|
type: "color",
|
|
295
289
|
className: vClassName + " test"
|
|
296
|
-
}, props))), vState && vShowMessage ? (
|
|
290
|
+
}, props))), vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
297
291
|
className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
298
292
|
}, vMessage)) : null);
|
|
299
293
|
}
|
|
@@ -319,7 +313,7 @@ function VDate(_ref) {
|
|
|
319
313
|
switch (vType) {
|
|
320
314
|
default:
|
|
321
315
|
case 'top':
|
|
322
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, vState && vShowMessage ? (
|
|
316
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
323
317
|
className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
324
318
|
}, vMessage)) : null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("input", Object.assign({
|
|
325
319
|
type: "date",
|
|
@@ -329,7 +323,7 @@ function VDate(_ref) {
|
|
|
329
323
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("input", Object.assign({
|
|
330
324
|
type: "date",
|
|
331
325
|
className: vClassName + " test"
|
|
332
|
-
}, props))), vState && vShowMessage ? (
|
|
326
|
+
}, props))), vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
333
327
|
className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
334
328
|
}, vMessage)) : null);
|
|
335
329
|
}
|
|
@@ -365,7 +359,7 @@ function VEmail(_ref) {
|
|
|
365
359
|
}, props, {
|
|
366
360
|
defaultValue: (_props$defaultValue = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue : '',
|
|
367
361
|
className: ((_props$className = props == null ? void 0 : props.className) != null ? _props$className : '') + " " + vClassName + " " + (vState ? styles.invalid : '')
|
|
368
|
-
})), vState && vShowMessage ? (
|
|
362
|
+
})), vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
369
363
|
className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
370
364
|
}, vMessage)) : null);
|
|
371
365
|
case 'inner':
|
|
@@ -376,7 +370,7 @@ function VEmail(_ref) {
|
|
|
376
370
|
}, props, {
|
|
377
371
|
defaultValue: (_props$defaultValue2 = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue2 : '',
|
|
378
372
|
className: ((_props$className2 = props == null ? void 0 : props.className) != null ? _props$className2 : '') + " " + vClassName + " " + (vState ? styles.invalid : '')
|
|
379
|
-
})), vState && vShowMessage ? (
|
|
373
|
+
})), vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
380
374
|
className: vMessageClass + " " + styles.innerMessage + " " + styles["innerMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
381
375
|
}, vMessage)) : null);
|
|
382
376
|
case 'tooltip':
|
|
@@ -387,7 +381,7 @@ function VEmail(_ref) {
|
|
|
387
381
|
}, props, {
|
|
388
382
|
defaultValue: (_props$defaultValue3 = props == null ? void 0 : props.defaultValue) != null ? _props$defaultValue3 : '',
|
|
389
383
|
className: ((_props$className3 = props == null ? void 0 : props.className) != null ? _props$className3 : '') + " " + vClassName + " " + (vState ? styles.invalid : '')
|
|
390
|
-
})), vState && vShowMessage ? (
|
|
384
|
+
})), vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
391
385
|
className: vMessageClass + " " + styles.tooltipMessage + " " + styles["tooltipMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
392
386
|
}, vMessage)) : null);
|
|
393
387
|
}
|
|
@@ -422,7 +416,7 @@ function VRadio(_ref) {
|
|
|
422
416
|
function makeSelectList() {
|
|
423
417
|
var result = [];
|
|
424
418
|
for (var i = 0; i < vSelectListName.length; i += 1) {
|
|
425
|
-
result.push(
|
|
419
|
+
result.push(/*#__PURE__*/React.createElement("div", {
|
|
426
420
|
key: vName + "-" + i
|
|
427
421
|
}, /*#__PURE__*/React.createElement("input", Object.assign({
|
|
428
422
|
type: "radio",
|
|
@@ -442,13 +436,13 @@ function VRadio(_ref) {
|
|
|
442
436
|
className: styles.vinput + " " + styles["vinput-" + vLocateMessage]
|
|
443
437
|
}, /*#__PURE__*/React.createElement("div", {
|
|
444
438
|
className: ((_props$className = props == null ? void 0 : props.className) != null ? _props$className : '') + " " + vClassName
|
|
445
|
-
}, makeSelectList())), vState && vShowMessage ? (
|
|
439
|
+
}, makeSelectList())), vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
446
440
|
className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
447
441
|
}, vMessage)) : null);
|
|
448
442
|
case 'top':
|
|
449
443
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
450
444
|
className: styles.vinput + " " + styles["vinput-" + vLocateMessage]
|
|
451
|
-
}, vState && vShowMessage ? (
|
|
445
|
+
}, vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
452
446
|
className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
453
447
|
}, vMessage)) : null, /*#__PURE__*/React.createElement("div", {
|
|
454
448
|
className: ((_props$className2 = props == null ? void 0 : props.className) != null ? _props$className2 : '') + " " + vClassName
|
|
@@ -458,7 +452,7 @@ function VRadio(_ref) {
|
|
|
458
452
|
className: styles.vinput + " " + styles["tooltipMessage-" + vLocateMessage]
|
|
459
453
|
}, /*#__PURE__*/React.createElement("div", {
|
|
460
454
|
className: ((_props$className3 = props == null ? void 0 : props.className) != null ? _props$className3 : '') + " " + vClassName
|
|
461
|
-
}, makeSelectList())), vState && vShowMessage ? (
|
|
455
|
+
}, makeSelectList())), vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
462
456
|
className: vMessageClass + " " + styles.tooltipMessage + " " + styles["tooltipMessage-" + vLocateMessage] + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
463
457
|
}, vMessage)) : null);
|
|
464
458
|
}
|
|
@@ -484,7 +478,7 @@ function VRange(_ref) {
|
|
|
484
478
|
switch (vType) {
|
|
485
479
|
default:
|
|
486
480
|
case 'top':
|
|
487
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, vState && vShowMessage ? (
|
|
481
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
488
482
|
className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
489
483
|
}, vMessage)) : null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("input", Object.assign({
|
|
490
484
|
type: "range",
|
|
@@ -494,7 +488,7 @@ function VRange(_ref) {
|
|
|
494
488
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("input", Object.assign({
|
|
495
489
|
type: "range",
|
|
496
490
|
className: vClassName + " test"
|
|
497
|
-
}, props))), vState && vShowMessage ? (
|
|
491
|
+
}, props))), vState && vShowMessage ? (/*#__PURE__*/React.createElement("p", {
|
|
498
492
|
className: vMessageClass + " " + (vIsAnimate ? styles.animateMessage : '')
|
|
499
493
|
}, vMessage)) : null);
|
|
500
494
|
}
|
|
@@ -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 vUseMaxLength = false,\n vMaxLength = 0,\n vClassMaxLength = '',\n props = {},\n}: VTEXT_PARAMS) {\n const inputRef = React.useRef<HTMLInputElement>(null);\n const [inputLength, setInputLength] = React.useState<number>(\n (props?.defaultValue || props?.value)?.length ?? 0\n );\n\n // 공통 input 태그 변수화\n const inputHTML = () => {\n return (\n <input\n type=\"text\"\n ref={inputRef}\n {...props}\n onChange={e => {\n if (vUseMaxLength && e.target.value.length > vMaxLength) {\n e.preventDefault();\n e.target.value = e.target.value.slice(0, vMaxLength);\n } else {\n props?.onChange(e);\n }\n }}\n defaultValue={props?.defaultValue ?? ''}\n className={`${props?.className ?? ''} ${vClassName} ${\n vState ? styles.invalid : ''\n }`}\n ></input>\n );\n };\n\n // 일부 옵션 값들은 input 기본 속성값을 이용하기 위해 merge 진행\n if (vUseMaxLength) {\n props = { ...props, maxLength: vMaxLength };\n }\n\n React.useEffect(() => {\n // 입력 최댓값을 사용할 경우 useEffect Hook 설정\n if (vUseMaxLength) {\n setInputLength((inputRef.current?.value ?? '').length);\n }\n }, [inputRef.current?.value]);\n\n switch (vType) {\n default:\n case 'outer':\n return (\n <div\n className={`${styles.vinput} ${styles[`vinput-${vLocateMessage}`]} ${\n vUseMaxLength ? styles.vMaxLengthContainer : ''\n }`}\n >\n <div style={{ position: 'relative' }}>\n {inputHTML()}\n {vUseMaxLength && (\n <p className={`${styles.vMaxLength} ${vClassMaxLength}`}>\n {inputLength} / {vMaxLength}\n </p>\n )}\n </div>\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\n className={`${styles.vinput} ${\n vUseMaxLength ? styles.vMaxLengthContainer : ''\n }`}\n >\n {inputHTML()}\n {vUseMaxLength && (\n <p className={`${styles.vMaxLength} ${vClassMaxLength}`}>\n {inputLength} / {vMaxLength}\n </p>\n )}\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 } ${vUseMaxLength ? styles.vMaxLengthContainer : ''}`}\n >\n {inputHTML()}\n {vUseMaxLength && (\n <p className={`${styles.vMaxLength} ${vClassMaxLength}`}>\n {inputLength} / {vMaxLength}\n </p>\n )}\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 }\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 vLayoutClassName = '',\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={vLayoutClassName}>{result}</div>;\r\n }\r\n\r\n switch (vType) {\r\n default:\r\n case 'top':\r\n return (\r\n <div>\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>\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 }\r\n}\r\n","import React from 'react';\r\nimport styles from '../index.module.css';\r\nimport { VURL_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}: VURL_PARAMS) {\r\n switch (vType) {\r\n default:\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 ?? ''} ${vClassName} ${\r\n vState ? 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 ?? ''} ${vClassName} ${\r\n vState ? 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 ?? ''} ${vClassName} ${\r\n vState ? 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 }\r\n}\r\n","import React from 'react';\r\nimport styles from '../index.module.css';\r\nimport { VCOLOR_PARAMS } from './vColor';\r\n\r\nexport function VColor({\r\n vState = false,\r\n vType = 'bottom',\r\n vClassName = '',\r\n vShowMessage = false,\r\n vMessage = '',\r\n vMessageClass = '',\r\n vIsAnimate = false,\r\n props = {},\r\n}: VCOLOR_PARAMS) {\r\n switch (vType) {\r\n default:\r\n case 'top':\r\n return (\r\n <>\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 <input type=\"color\" className={vClassName} {...props} />\r\n </div>\r\n </>\r\n );\r\n case 'bottom':\r\n return (\r\n <>\r\n <div>\r\n <input type=\"color\" className={`${vClassName} test`} {...props} />\r\n </div>\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 </>\r\n );\r\n }\r\n}\r\n","import React from 'react';\r\nimport styles from '../index.module.css';\r\nimport { VDATE_PARAMS } from './vDate';\r\n\r\nexport function VDate({\r\n vState = false,\r\n vType = 'bottom',\r\n vClassName = '',\r\n vShowMessage = false,\r\n vMessage = '',\r\n vMessageClass = '',\r\n vIsAnimate = false,\r\n props = {},\r\n}: VDATE_PARAMS) {\r\n switch (vType) {\r\n default:\r\n case 'top':\r\n return (\r\n <>\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 <input type=\"date\" className={vClassName} {...props} />\r\n </div>\r\n </>\r\n );\r\n case 'bottom':\r\n return (\r\n <>\r\n <div>\r\n <input type=\"date\" className={`${vClassName} test`} {...props} />\r\n </div>\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 </>\r\n );\r\n }\r\n}\r\n","import React from 'react';\r\nimport styles from '../index.module.css';\r\nimport { VEMAIL_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}: VEMAIL_PARAMS) {\r\n switch (vType) {\r\n default:\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 ?? ''} ${vClassName} ${\r\n vState ? 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 ?? ''} ${vClassName} ${\r\n vState ? 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 ?? ''} ${vClassName} ${\r\n vState ? 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 }\r\n}\r\n","import React from 'react';\r\nimport styles from '../index.module.css';\r\nimport { VRADIO_PARAMS } from './vRadio';\r\n\r\nexport function VRadio({\r\n vState = false,\r\n vName = '',\r\n vSelectListName = [],\r\n vSelectListValue = [],\r\n vType = 'bottom',\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}: VRADIO_PARAMS) {\r\n function makeSelectList() {\r\n const result = [];\r\n\r\n for (let i = 0; i < vSelectListName.length; i += 1) {\r\n result.push(\r\n <div key={`${vName}-${i}`}>\r\n <input\r\n type=\"radio\"\r\n id={`${vName}-${i}`}\r\n name={vName}\r\n value={vSelectListValue[i]}\r\n {...props}\r\n ></input>\r\n <label htmlFor={`${vName}-${i}`}>{vSelectListName[i]}</label>\r\n </div>\r\n );\r\n }\r\n\r\n return result;\r\n }\r\n\r\n switch (vType) {\r\n default:\r\n case 'bottom':\r\n return (\r\n <>\r\n <div\r\n className={`${styles.vinput} ${styles[`vinput-${vLocateMessage}`]}`}\r\n >\r\n <div className={`${props?.className ?? ''} ${vClassName}`}>\r\n {makeSelectList()}\r\n </div>\r\n </div>\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 </>\r\n );\r\n case 'top':\r\n return (\r\n <>\r\n <div\r\n className={`${styles.vinput} ${styles[`vinput-${vLocateMessage}`]}`}\r\n >\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 className={`${props?.className ?? ''} ${vClassName}`}>\r\n {makeSelectList()}\r\n </div>\r\n </div>\r\n </>\r\n );\r\n case 'tooltip':\r\n return (\r\n <>\r\n <div\r\n className={`${styles.vinput} ${\r\n styles[`tooltipMessage-${vLocateMessage}`]\r\n }`}\r\n >\r\n <div className={`${props?.className ?? ''} ${vClassName}`}>\r\n {makeSelectList()}\r\n </div>\r\n </div>\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 </>\r\n );\r\n }\r\n}\r\n","import React from 'react';\r\nimport styles from '../index.module.css';\r\nimport { VRANGE_PARAMS } from './vRange';\r\n\r\nexport function VRange({\r\n vState = false,\r\n vType = 'bottom',\r\n vClassName = '',\r\n vShowMessage = false,\r\n vMessage = '',\r\n vMessageClass = '',\r\n vIsAnimate = false,\r\n props = {},\r\n}: VRANGE_PARAMS) {\r\n switch (vType) {\r\n default:\r\n case 'top':\r\n return (\r\n <>\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 <input type=\"range\" className={vClassName} {...props} />\r\n </div>\r\n </>\r\n );\r\n case 'bottom':\r\n return (\r\n <>\r\n <div>\r\n <input type=\"range\" className={`${vClassName} test`} {...props} />\r\n </div>\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 </>\r\n );\r\n }\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$vUseMaxLength","vUseMaxLength","_ref$vMaxLength","vMaxLength","_ref$vClassMaxLength","vClassMaxLength","_ref$props","props","inputRef","React","useRef","_React$useState","useState","_length","_ref2","_props","defaultValue","_props2","value","length","inputLength","setInputLength","inputHTML","type","ref","onChange","e","target","preventDefault","slice","_props3","_props$defaultValue","_props4","className","_props$className","_props5","styles","invalid","_extends","maxLength","useEffect","_inputRef$current$val","_inputRef$current","current","_inputRef$current2","vinput","vMaxLengthContainer","style","position","animateMessage","innerMessage","tooltipMessage","VCheckbox","_ref$vLayoutClassName","vLayoutClassName","_ref$vLabelClassName","vLabelClassName","_ref$vCheckedClassNam","vCheckedClassName","_ref$vCheckList","vCheckList","_ref$vCheckedList","vCheckedList","makeCheckList","result","forEach","val","i","push","htmlFor","key","id","hidden","checked","VURL","_props$defaultValue2","_props$className2","_props$defaultValue3","_props$className3","VColor","VDate","VEmail","VRadio","_ref$vName","vName","_ref$vSelectListName","vSelectListName","_ref$vSelectListValue","vSelectListValue","makeSelectList","name","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,oBAA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,eAAA,cAAG,EAAE,GAAAA,eAAA;IAAAE,iBAAA,GAAAP,IAAA,CACfQ,YAAY;IAAZA,YAAY,GAAAD,iBAAA,cAAG,KAAK,GAAAA,iBAAA;IAAAE,aAAA,GAAAT,IAAA,CACpBU,QAAQ;IAARA,QAAQ,GAAAD,aAAA,cAAG,EAAE,GAAAA,aAAA;IAAAI,kBAAA,GAAAb,IAAA,CACbc,aAAa;IAAbA,aAAa,GAAAD,kBAAA,cAAG,EAAE,GAAAA,kBAAA;IAAAE,eAAA,GAAAf,IAAA,CAClBgB,UAAU;IAAVA,UAAU,GAAAD,eAAA,cAAG,KAAK,GAAAA,eAAA;IAAAQ,UAAA,GAAAvB,IAAA,CAClBwB,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,EAAE,GAAAA,UAAA;EAEV,QAAQnB,KAAK;IACX;IACA,KAAK,KAAK;MACR,oBACEsB,0CACGzB,MAAM,IAAIO,YAAY,kBACrBkB;QACEwB,SAAS,EAAKpC,aAAa,UACzBE,UAAU,GAAGqC,MAAM,CAACa,cAAc,GAAG,EACvC;SAECxD,QAAQ,CACP,IACF,IAAI,eACRgB,8CACEA;QAAOc,IAAI,EAAC,OAAO;QAACU,SAAS,EAAE5C;SAAgBkB,KAAK,EAAI,CACpD,CACL;IAEP,KAAK,QAAQ;MACX,oBACEE,uDACEA,8CACEA;QAAOc,IAAI,EAAC,OAAO;QAACU,SAAS,EAAK5C,UAAU;SAAakB,KAAK,EAAI,CAC9D,EACLvB,MAAM,IAAIO,YAAY,kBACrBkB;QACEwB,SAAS,EAAKpC,aAAa,UACzBE,UAAU,GAAGqC,MAAM,CAACa,cAAc,GAAG,EACvC;SAECxD,QAAQ,CACP,IACF,IAAI,CACP;;AAGX;;;;;;;;;;;"}
|
|
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';\r\nimport styles from '../index.module.css';\r\nimport { VTEXT_PARAMS } from './vText';\r\n\r\n// Text\r\nexport function VText({\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 vUseMaxLength = false,\r\n vMaxLength = 0,\r\n vClassMaxLength = '',\r\n props = {},\r\n}: VTEXT_PARAMS) {\r\n const [inputLength, setInputLength] = React.useState<number>(\r\n (props?.defaultValue || props?.value)?.length ?? 0\r\n );\r\n\r\n // 공통 input 태그 변수화\r\n const inputHTML = () => {\r\n return (\r\n <input\r\n type=\"text\"\r\n {...props}\r\n onChange={e => {\r\n if (vUseMaxLength && e.target.value.length > vMaxLength) {\r\n e.preventDefault();\r\n e.target.value = e.target.value.slice(0, vMaxLength);\r\n } else {\r\n props?.onChange(e);\r\n if (vUseMaxLength) {\r\n setInputLength(e.target.value.length);\r\n }\r\n }\r\n }}\r\n defaultValue={props?.defaultValue ?? ''}\r\n className={`${props?.className ?? ''} ${vClassName} ${\r\n vState ? styles.invalid : ''\r\n }`}\r\n ></input>\r\n );\r\n };\r\n\r\n // 일부 옵션 값들은 input 기본 속성값을 이용하기 위해 merge 진행\r\n if (vUseMaxLength) {\r\n props = { ...props, maxLength: vMaxLength };\r\n }\r\n\r\n switch (vType) {\r\n default:\r\n case 'outer':\r\n return (\r\n <div\r\n className={`${styles.vinput} ${styles[`vinput-${vLocateMessage}`]} ${\r\n vUseMaxLength ? styles.vMaxLengthContainer : ''\r\n }`}\r\n >\r\n <div style={{ position: 'relative' }}>\r\n {inputHTML()}\r\n {vUseMaxLength && (\r\n <p className={`${styles.vMaxLength} ${vClassMaxLength}`}>\r\n {inputLength} / {vMaxLength}\r\n </p>\r\n )}\r\n </div>\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\r\n className={`${styles.vinput} ${\r\n vUseMaxLength ? styles.vMaxLengthContainer : ''\r\n }`}\r\n >\r\n {inputHTML()}\r\n {vUseMaxLength && (\r\n <p className={`${styles.vMaxLength} ${vClassMaxLength}`}>\r\n {inputLength} / {vMaxLength}\r\n </p>\r\n )}\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 } ${vUseMaxLength ? styles.vMaxLengthContainer : ''}`}\r\n >\r\n {inputHTML()}\r\n {vUseMaxLength && (\r\n <p className={`${styles.vMaxLength} ${vClassMaxLength}`}>\r\n {inputLength} / {vMaxLength}\r\n </p>\r\n )}\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 }\r\n}\r\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 vLayoutClassName = '',\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={vLayoutClassName}>{result}</div>;\r\n }\r\n\r\n switch (vType) {\r\n default:\r\n case 'top':\r\n return (\r\n <div>\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>\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 }\r\n}\r\n","import React from 'react';\r\nimport styles from '../index.module.css';\r\nimport { VURL_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}: VURL_PARAMS) {\r\n switch (vType) {\r\n default:\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 ?? ''} ${vClassName} ${\r\n vState ? 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 ?? ''} ${vClassName} ${\r\n vState ? 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 ?? ''} ${vClassName} ${\r\n vState ? 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 }\r\n}\r\n","import React from 'react';\r\nimport styles from '../index.module.css';\r\nimport { VCOLOR_PARAMS } from './vColor';\r\n\r\nexport function VColor({\r\n vState = false,\r\n vType = 'bottom',\r\n vClassName = '',\r\n vShowMessage = false,\r\n vMessage = '',\r\n vMessageClass = '',\r\n vIsAnimate = false,\r\n props = {},\r\n}: VCOLOR_PARAMS) {\r\n switch (vType) {\r\n default:\r\n case 'top':\r\n return (\r\n <>\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 <input type=\"color\" className={vClassName} {...props} />\r\n </div>\r\n </>\r\n );\r\n case 'bottom':\r\n return (\r\n <>\r\n <div>\r\n <input type=\"color\" className={`${vClassName} test`} {...props} />\r\n </div>\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 </>\r\n );\r\n }\r\n}\r\n","import React from 'react';\r\nimport styles from '../index.module.css';\r\nimport { VDATE_PARAMS } from './vDate';\r\n\r\nexport function VDate({\r\n vState = false,\r\n vType = 'bottom',\r\n vClassName = '',\r\n vShowMessage = false,\r\n vMessage = '',\r\n vMessageClass = '',\r\n vIsAnimate = false,\r\n props = {},\r\n}: VDATE_PARAMS) {\r\n switch (vType) {\r\n default:\r\n case 'top':\r\n return (\r\n <>\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 <input type=\"date\" className={vClassName} {...props} />\r\n </div>\r\n </>\r\n );\r\n case 'bottom':\r\n return (\r\n <>\r\n <div>\r\n <input type=\"date\" className={`${vClassName} test`} {...props} />\r\n </div>\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 </>\r\n );\r\n }\r\n}\r\n","import React from 'react';\r\nimport styles from '../index.module.css';\r\nimport { VEMAIL_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}: VEMAIL_PARAMS) {\r\n switch (vType) {\r\n default:\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 ?? ''} ${vClassName} ${\r\n vState ? 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 ?? ''} ${vClassName} ${\r\n vState ? 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 ?? ''} ${vClassName} ${\r\n vState ? 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 }\r\n}\r\n","import React from 'react';\r\nimport styles from '../index.module.css';\r\nimport { VRADIO_PARAMS } from './vRadio';\r\n\r\nexport function VRadio({\r\n vState = false,\r\n vName = '',\r\n vSelectListName = [],\r\n vSelectListValue = [],\r\n vType = 'bottom',\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}: VRADIO_PARAMS) {\r\n function makeSelectList() {\r\n const result = [];\r\n\r\n for (let i = 0; i < vSelectListName.length; i += 1) {\r\n result.push(\r\n <div key={`${vName}-${i}`}>\r\n <input\r\n type=\"radio\"\r\n id={`${vName}-${i}`}\r\n name={vName}\r\n value={vSelectListValue[i]}\r\n {...props}\r\n ></input>\r\n <label htmlFor={`${vName}-${i}`}>{vSelectListName[i]}</label>\r\n </div>\r\n );\r\n }\r\n\r\n return result;\r\n }\r\n\r\n switch (vType) {\r\n default:\r\n case 'bottom':\r\n return (\r\n <>\r\n <div\r\n className={`${styles.vinput} ${styles[`vinput-${vLocateMessage}`]}`}\r\n >\r\n <div className={`${props?.className ?? ''} ${vClassName}`}>\r\n {makeSelectList()}\r\n </div>\r\n </div>\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 </>\r\n );\r\n case 'top':\r\n return (\r\n <>\r\n <div\r\n className={`${styles.vinput} ${styles[`vinput-${vLocateMessage}`]}`}\r\n >\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 className={`${props?.className ?? ''} ${vClassName}`}>\r\n {makeSelectList()}\r\n </div>\r\n </div>\r\n </>\r\n );\r\n case 'tooltip':\r\n return (\r\n <>\r\n <div\r\n className={`${styles.vinput} ${\r\n styles[`tooltipMessage-${vLocateMessage}`]\r\n }`}\r\n >\r\n <div className={`${props?.className ?? ''} ${vClassName}`}>\r\n {makeSelectList()}\r\n </div>\r\n </div>\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 </>\r\n );\r\n }\r\n}\r\n","import React from 'react';\r\nimport styles from '../index.module.css';\r\nimport { VRANGE_PARAMS } from './vRange';\r\n\r\nexport function VRange({\r\n vState = false,\r\n vType = 'bottom',\r\n vClassName = '',\r\n vShowMessage = false,\r\n vMessage = '',\r\n vMessageClass = '',\r\n vIsAnimate = false,\r\n props = {},\r\n}: VRANGE_PARAMS) {\r\n switch (vType) {\r\n default:\r\n case 'top':\r\n return (\r\n <>\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 <input type=\"range\" className={vClassName} {...props} />\r\n </div>\r\n </>\r\n );\r\n case 'bottom':\r\n return (\r\n <>\r\n <div>\r\n <input type=\"range\" className={`${vClassName} test`} {...props} />\r\n </div>\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 </>\r\n );\r\n }\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$vUseMaxLength","vUseMaxLength","_ref$vMaxLength","vMaxLength","_ref$vClassMaxLength","vClassMaxLength","_ref$props","props","_React$useState","React","useState","_length","_ref2","_props","defaultValue","_props2","value","length","inputLength","setInputLength","inputHTML","type","onChange","e","target","preventDefault","slice","_props3","_props$defaultValue","_props4","className","_props$className","_props5","styles","invalid","_extends","maxLength","vinput","vMaxLengthContainer","style","position","animateMessage","innerMessage","tooltipMessage","VCheckbox","_ref$vLayoutClassName","vLayoutClassName","_ref$vLabelClassName","vLabelClassName","_ref$vCheckedClassNam","vCheckedClassName","_ref$vCheckList","vCheckList","_ref$vCheckedList","vCheckedList","makeCheckList","result","forEach","val","i","push","htmlFor","key","id","hidden","checked","VURL","_props$defaultValue2","_props$className2","_props$defaultValue3","_props$className3","VColor","VDate","VEmail","VRadio","_ref$vName","vName","_ref$vSelectListName","vSelectListName","_ref$vSelectListValue","vSelectListValue","makeSelectList","name","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,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AA,CAClBgB,UAAU;IAAVA,UAAU,GAAAD,eAAA,cAAG,KAAK,GAAAA,eAAA;IAAAQ,UAAA,GAAAvB,IAAA,CAClBwB,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,EAAE,GAAAA,UAAA;EAEV,QAAQnB,KAAK;IACX;IACA,KAAK,KAAK;MACR,oBACEsB,0CACGzB,MAAM,IAAIO,YAAY,iBACrBkB;QACEqB,SAAS,EAAKjC,aAAa,UACzBE,UAAU,GAAGkC,MAAM,CAACQ,cAAc,GAAG,EACvC;SAEChD,QAAQ,CACP,IACF,IAAI,eACRgB,8CACEA;QAAOY,IAAI,EAAC,OAAO;QAACS,SAAS,EAAEzC;SAAgBkB,KAAK,EAAI,CACpD,CACL;IAEP,KAAK,QAAQ;MACX,oBACEE,uDACEA,8CACEA;QAAOY,IAAI,EAAC,OAAO;QAACS,SAAS,EAAKzC,UAAU;SAAakB,KAAK,EAAI,CAC9D,EACLvB,MAAM,IAAIO,YAAY,iBACrBkB;QACEqB,SAAS,EAAKjC,aAAa,UACzBE,UAAU,GAAGkC,MAAM,CAACQ,cAAc,GAAG,EACvC;SAEChD,QAAQ,CACP,IACF,IAAI,CACP;;AAGX;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=(e=require("react"))&&"object"==typeof e&&"default"in e?e.default:e;function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var a={invalid:"index-module_invalid__gHKsE",vMaxLengthContainer:"index-module_vMaxLengthContainer__rh7UH",vMaxLength:"index-module_vMaxLength__hANPK",vinput:"index-module_vinput__tFGFH","vinput-top-left":"index-module_vinput-top-left__2g8Bq","vinput-top":"index-module_vinput-top__ZTh6H","vinput-top-right":"index-module_vinput-top-right__t6K-Q","vinput-center-left":"index-module_vinput-center-left__vJn0s","vinput-center-right":"index-module_vinput-center-right__HDgip","vinput-bottom-left":"index-module_vinput-bottom-left__xxaiT","vinput-bottom":"index-module_vinput-bottom__nCOAf","vinput-bottom-right":"index-module_vinput-bottom-right__6AjOE",innerMessage:"index-module_innerMessage__rihga","innerMessage-top-left":"index-module_innerMessage-top-left__HLoYg","innerMessage-top":"index-module_innerMessage-top__ouYW6","innerMessage-top-right":"index-module_innerMessage-top-right__7tMC8","innerMessage-center-left":"index-module_innerMessage-center-left__4iZyl","innerMessage-center":"index-module_innerMessage-center__U2006","innerMessage-center-right":"index-module_innerMessage-center-right__Pg2oU","innerMessage-bottom-left":"index-module_innerMessage-bottom-left__1QDIv","innerMessage-bottom":"index-module_innerMessage-bottom__gMogT","innerMessage-bottom-right":"index-module_innerMessage-bottom-right__peBq-",tooltipMessage:"index-module_tooltipMessage__ZlthY","tooltipMessage-top-left":"index-module_tooltipMessage-top-left__us8PI","tooltipMessage-top":"index-module_tooltipMessage-top__NaUtu","tooltipMessage-top-right":"index-module_tooltipMessage-top-right__UveQN","tooltipMessage-center-right":"index-module_tooltipMessage-center-right__8eqfQ","tooltipMessage-center-left":"index-module_tooltipMessage-center-left__yyDuD","tooltipMessage-bottom-left":"index-module_tooltipMessage-bottom-left__u-H0Q","tooltipMessage-bottom":"index-module_tooltipMessage-bottom__YOZgV","tooltipMessage-bottom-right":"index-module_tooltipMessage-bottom-right__yD0zu",animateMessage:"index-module_animateMessage__Gxf3M","fade-in":"index-module_fade-in__GxKz8"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===n&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}(".index-module_invalid__gHKsE {\r\n border: 2px solid red;\r\n outline: none;\r\n}\r\n.index-module_invalid__gHKsE:focus,\r\n.index-module_invalid__gHKsE:focus-visible,\r\n.index-module_invalid__gHKsE:focus-within {\r\n border: 2px solid red;\r\n}\r\n.index-module_vMaxLengthContainer__rh7UH {\r\n position: relative;\r\n}\r\n.index-module_vMaxLengthContainer__rh7UH > input[type='text'] {\r\n padding-right: 70px;\r\n}\r\n.index-module_vMaxLengthContainer__rh7UH .index-module_vMaxLength__hANPK {\r\n color: #555;\r\n font-size: 0.8rem;\r\n position: absolute;\r\n right: 0;\r\n top: 0;\r\n margin: 0;\r\n padding: 16px;\r\n}\r\n\r\n/* vType === 'outer' */\r\n.index-module_vinput__tFGFH {\r\n display: flex;\r\n}\r\n.index-module_vinput-top-left__2g8Bq {\r\n flex-direction: column-reverse;\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-top__ZTh6H {\r\n flex-direction: column-reverse;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-top-right__t6K-Q {\r\n flex-direction: column-reverse;\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-center-left__vJn0s {\r\n flex-direction: row-reverse;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-center-right__HDgip {\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom-left__xxaiT {\r\n flex-direction: column;\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom__nCOAf {\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom-right__6AjOE {\r\n flex-direction: column;\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n\r\n/* vType === 'inner' */\r\n.index-module_innerMessage__rihga {\r\n position: absolute;\r\n font-size: 12px;\r\n margin: 0;\r\n padding: 2px 5px;\r\n display: flex;\r\n}\r\n.index-module_innerMessage-top-left__HLoYg {\r\n align-items: flex-start;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-top__ouYW6 {\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-top-right__7tMC8 {\r\n align-items: flex-start;\r\n justify-content: flex-end;\r\n}\r\n.index-module_innerMessage-center-left__4iZyl {\r\n align-items: center;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-center__U2006 {\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-center-right__Pg2oU {\r\n align-items: center;\r\n justify-content: flex-end;\r\n}\r\n.index-module_innerMessage-bottom-left__1QDIv {\r\n align-items: flex-end;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-bottom__gMogT {\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-bottom-right__peBq- {\r\n align-items: flex-end;\r\n justify-content: flex-end;\r\n}\r\n\r\n/* vType === 'tooltip' */\r\n.index-module_tooltipMessage__ZlthY {\r\n position: absolute;\r\n margin: 0;\r\n padding: 10px 20px;\r\n border: 1px solid transparent;\r\n border-radius: 10px;\r\n background-color: black;\r\n}\r\np[class*='tooltipMessage-top'] {\r\n transform: translateY(calc(-100% - 10px));\r\n}\r\np[class*='tooltipMessage-top']::after {\r\n content: '';\r\n position: absolute;\r\n bottom: 0;\r\n border: 10px solid transparent;\r\n border-top-color: black;\r\n border-bottom: 0;\r\n margin-bottom: -11px;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-top-left__us8PI {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-top-left__us8PI::after {\r\n left: 3%;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-top__NaUtu {\r\n justify-content: center;\r\n}\r\np.index-module_tooltipMessage-top__NaUtu::after {\r\n left: 44%;\r\n}\r\n.index-module_tooltipMessage-top-right__UveQN {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-top-right__UveQN::after {\r\n left: 87%;\r\n}\r\np[class*='tooltipMessage-center'] {\r\n /* transform: translateY(calc(-100% - 10px)); */\r\n}\r\np[class*='tooltipMessage-center']::after {\r\n content: '';\r\n position: absolute;\r\n border: 10px solid transparent;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-center-right__8eqfQ {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-center-right__8eqfQ {\r\n transform: translateX(calc(100% + 10px));\r\n}\r\np.index-module_tooltipMessage-center-right__8eqfQ::after {\r\n border-right-color: black;\r\n left: -10%;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-center-left__yyDuD {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-center-left__yyDuD {\r\n transform: translateX(calc(-100% - 10px));\r\n}\r\np.index-module_tooltipMessage-center-left__yyDuD::after {\r\n border-left-color: black;\r\n left: 100%;\r\n}\r\n\r\np[class*='tooltipMessage-bottom'] {\r\n transform: translateY(calc(120% + 10px));\r\n}\r\np[class*='tooltipMessage-bottom']::after {\r\n content: '';\r\n position: absolute;\r\n top: 0;\r\n border: 10px solid transparent;\r\n border-bottom-color: black;\r\n border-top: 0;\r\n margin-top: -11px;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-bottom-left__u-H0Q {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-bottom-left__u-H0Q::after {\r\n left: 3%;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-bottom__YOZgV {\r\n justify-content: center;\r\n}\r\np.index-module_tooltipMessage-bottom__YOZgV::after {\r\n left: 44%;\r\n}\r\n.index-module_tooltipMessage-bottom-right__yD0zu {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-bottom-right__yD0zu::after {\r\n left: 87%;\r\n}\r\n\r\n.index-module_animateMessage__Gxf3M {\r\n animation: index-module_fade-in__GxKz8 1s ease-in-out;\r\n}\r\n\r\n@keyframes index-module_fade-in__GxKz8 {\r\n 0% {\r\n opacity: 0;\r\n }\r\n 100% {\r\n opacity: 1;\r\n }\r\n}\r\n"),exports.VCheckbox=function(e){var n=e.vState,l=void 0!==n&&n,s=e.vType,i=e.vClassName,r=void 0===i?"":i,o=e.vLayoutClassName,d=void 0===o?"":o,u=e.vLabelClassName,m=void 0===u?"":u,c=e.vCheckedClassName,v=void 0===c?"":c,p=e.vCheckList,g=void 0===p?[]:p,_=e.vCheckedList,f=void 0===_?[]:_,x=e.vShowMessage,M=void 0!==x&&x,h=e.vMessage,b=void 0===h?"":h,E=e.vMessageClass,N=void 0===E?"":E,y=e.vIsAnimate,j=void 0!==y&&y,C=e.props,L=void 0===C?{}:C;function F(){var e=[];return g.forEach((function(n,s){e.push(t.createElement("label",{htmlFor:"vCheckbox-"+s,className:m+" "+(f[s]?v:"")+" "+(l?a.invalid:""),key:s},t.createElement("input",Object.assign({id:"vCheckbox-"+s,type:"checkbox",className:r,hidden:!0,value:n,checked:f[s]},L)),t.createElement("span",null,n)))})),t.createElement("div",{className:d},e)}switch(void 0===s?"bottom":s){default:case"top":return t.createElement("div",null,l&&M?t.createElement("p",{className:N+" "+(j?a.animateMessage:"")},b):null,F());case"bottom":return t.createElement("div",null,F(),l&&M?t.createElement("p",{className:N+" "+(j?a.animateMessage:"")},b):null)}},exports.VColor=function(e){var n=e.vState,l=void 0!==n&&n,s=e.vType,i=e.vClassName,r=void 0===i?"":i,o=e.vShowMessage,d=void 0!==o&&o,u=e.vMessage,m=void 0===u?"":u,c=e.vMessageClass,v=void 0===c?"":c,p=e.vIsAnimate,g=void 0!==p&&p,_=e.props,f=void 0===_?{}:_;switch(void 0===s?"bottom":s){default:case"top":return t.createElement(t.Fragment,null,l&&d?t.createElement("p",{className:v+" "+(g?a.animateMessage:"")},m):null,t.createElement("div",null,t.createElement("input",Object.assign({type:"color",className:r},f))));case"bottom":return t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement("input",Object.assign({type:"color",className:r+" test"},f))),l&&d?t.createElement("p",{className:v+" "+(g?a.animateMessage:"")},m):null)}},exports.VDate=function(e){var n=e.vState,l=void 0!==n&&n,s=e.vType,i=e.vClassName,r=void 0===i?"":i,o=e.vShowMessage,d=void 0!==o&&o,u=e.vMessage,m=void 0===u?"":u,c=e.vMessageClass,v=void 0===c?"":c,p=e.vIsAnimate,g=void 0!==p&&p,_=e.props,f=void 0===_?{}:_;switch(void 0===s?"bottom":s){default:case"top":return t.createElement(t.Fragment,null,l&&d?t.createElement("p",{className:v+" "+(g?a.animateMessage:"")},m):null,t.createElement("div",null,t.createElement("input",Object.assign({type:"date",className:r},f))));case"bottom":return t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement("input",Object.assign({type:"date",className:r+" test"},f))),l&&d?t.createElement("p",{className:v+" "+(g?a.animateMessage:"")},m):null)}},exports.VEmail=function(e){var n,l,s,i,r,o,d=e.vState,u=void 0!==d&&d,m=e.vType,c=e.vClassName,v=void 0===c?"":c,p=e.vShowMessage,g=void 0!==p&&p,_=e.vMessage,f=void 0===_?"":_,x=e.vLocateMessage,M=void 0===x?"bottom":x,h=e.vMessageClass,b=void 0===h?"":h,E=e.vIsAnimate,N=void 0!==E&&E,y=e.props,j=void 0===y?{}:y;switch(void 0===m?"outer":m){default:case"outer":return t.createElement("div",{className:a.vinput+" "+a["vinput-"+M]},t.createElement("input",Object.assign({type:"email"},j,{defaultValue:null!=(n=null==j?void 0:j.defaultValue)?n:"",className:(null!=(l=null==j?void 0:j.className)?l:"")+" "+v+" "+(u?a.invalid:"")})),u&&g?t.createElement("p",{className:b+" "+(N?a.animateMessage:"")},f):null);case"inner":return t.createElement("div",{className:a.vinput},t.createElement("input",Object.assign({type:"email"},j,{defaultValue:null!=(s=null==j?void 0:j.defaultValue)?s:"",className:(null!=(i=null==j?void 0:j.className)?i:"")+" "+v+" "+(u?a.invalid:"")})),u&&g?t.createElement("p",{className:b+" "+a.innerMessage+" "+a["innerMessage-"+M]+" "+(N?a.animateMessage:"")},f):null);case"tooltip":return t.createElement("div",{className:a.vinput+" "+a["tooltipMessage-"+M]},t.createElement("input",Object.assign({type:"email"},j,{defaultValue:null!=(r=null==j?void 0:j.defaultValue)?r:"",className:(null!=(o=null==j?void 0:j.className)?o:"")+" "+v+" "+(u?a.invalid:"")})),u&&g?t.createElement("p",{className:b+" "+a.tooltipMessage+" "+a["tooltipMessage-"+M]+" "+(N?a.animateMessage:"")},f):null)}},exports.VRadio=function(e){var n,l,s,i=e.vState,r=void 0!==i&&i,o=e.vName,d=void 0===o?"":o,u=e.vSelectListName,m=void 0===u?[]:u,c=e.vSelectListValue,v=void 0===c?[]:c,p=e.vType,g=e.vClassName,_=void 0===g?"":g,f=e.vShowMessage,x=void 0!==f&&f,M=e.vMessage,h=void 0===M?"":M,b=e.vLocateMessage,E=void 0===b?"bottom":b,N=e.vMessageClass,y=void 0===N?"":N,j=e.vIsAnimate,C=void 0!==j&&j,L=e.props,F=void 0===L?{}:L;function V(){for(var e=[],n=0;n<m.length;n+=1)e.push(t.createElement("div",{key:d+"-"+n},t.createElement("input",Object.assign({type:"radio",id:d+"-"+n,name:d,value:v[n]},F)),t.createElement("label",{htmlFor:d+"-"+n},m[n])));return e}switch(void 0===p?"bottom":p){default:case"bottom":return t.createElement(t.Fragment,null,t.createElement("div",{className:a.vinput+" "+a["vinput-"+E]},t.createElement("div",{className:(null!=(n=null==F?void 0:F.className)?n:"")+" "+_},V())),r&&x?t.createElement("p",{className:y+" "+(C?a.animateMessage:"")},h):null);case"top":return t.createElement(t.Fragment,null,t.createElement("div",{className:a.vinput+" "+a["vinput-"+E]},r&&x?t.createElement("p",{className:y+" "+(C?a.animateMessage:"")},h):null,t.createElement("div",{className:(null!=(l=null==F?void 0:F.className)?l:"")+" "+_},V())));case"tooltip":return t.createElement(t.Fragment,null,t.createElement("div",{className:a.vinput+" "+a["tooltipMessage-"+E]},t.createElement("div",{className:(null!=(s=null==F?void 0:F.className)?s:"")+" "+_},V())),r&&x?t.createElement("p",{className:y+" "+a.tooltipMessage+" "+a["tooltipMessage-"+E]+" "+(C?a.animateMessage:"")},h):null)}},exports.VRange=function(e){var n=e.vState,l=void 0!==n&&n,s=e.vType,i=e.vClassName,r=void 0===i?"":i,o=e.vShowMessage,d=void 0!==o&&o,u=e.vMessage,m=void 0===u?"":u,c=e.vMessageClass,v=void 0===c?"":c,p=e.vIsAnimate,g=void 0!==p&&p,_=e.props,f=void 0===_?{}:_;switch(void 0===s?"bottom":s){default:case"top":return t.createElement(t.Fragment,null,l&&d?t.createElement("p",{className:v+" "+(g?a.animateMessage:"")},m):null,t.createElement("div",null,t.createElement("input",Object.assign({type:"range",className:r},f))));case"bottom":return t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement("input",Object.assign({type:"range",className:r+" test"},f))),l&&d?t.createElement("p",{className:v+" "+(g?a.animateMessage:"")},m):null)}},exports.VText=function(e){var l,s,i,r,o,d=e.vState,u=void 0!==d&&d,m=e.vType,c=void 0===m?"outer":m,v=e.vClassName,p=void 0===v?"":v,g=e.vShowMessage,_=void 0!==g&&g,f=e.vMessage,x=void 0===f?"":f,M=e.vLocateMessage,h=void 0===M?"bottom":M,b=e.vMessageClass,E=void 0===b?"":b,N=e.vIsAnimate,y=void 0!==N&&N,j=e.vUseMaxLength,C=void 0!==j&&j,L=e.vMaxLength,F=void 0===L?0:L,V=e.vClassMaxLength,H=void 0===V?"":V,O=e.props,S=void 0===O?{}:O,T=t.useRef(null),w=t.useState(null!=(l=null==(s=(null==(i=S)?void 0:i.defaultValue)||(null==(r=S)?void 0:r.value))?void 0:s.length)?l:0),k=w[0],D=w[1],U=function(){var e,n,l,s;return t.createElement("input",Object.assign({type:"text",ref:T},S,{onChange:function(e){var t;C&&e.target.value.length>F?(e.preventDefault(),e.target.value=e.target.value.slice(0,F)):null==(t=S)||t.onChange(e)},defaultValue:null!=(e=null==(n=S)?void 0:n.defaultValue)?e:"",className:(null!=(l=null==(s=S)?void 0:s.className)?l:"")+" "+p+" "+(u?a.invalid:"")}))};switch(C&&(S=n({},S,{maxLength:F})),t.useEffect((function(){var e,t;C&&D((null!=(e=null==(t=T.current)?void 0:t.value)?e:"").length)}),[null==(o=T.current)?void 0:o.value]),c){default:case"outer":return t.createElement("div",{className:a.vinput+" "+a["vinput-"+h]+" "+(C?a.vMaxLengthContainer:"")},t.createElement("div",{style:{position:"relative"}},U(),C&&t.createElement("p",{className:a.vMaxLength+" "+H},k," / ",F)),u&&_?t.createElement("p",{className:E+" "+(y?a.animateMessage:"")},x):null);case"inner":return t.createElement("div",{className:a.vinput+" "+(C?a.vMaxLengthContainer:"")},U(),C&&t.createElement("p",{className:a.vMaxLength+" "+H},k," / ",F),u&&_?t.createElement("p",{className:E+" "+a.innerMessage+" "+a["innerMessage-"+h]+" "+(y?a.animateMessage:"")},x):null);case"tooltip":return t.createElement("div",{className:a.vinput+" "+a["tooltipMessage-"+h]+" "+(C?a.vMaxLengthContainer:"")},U(),C&&t.createElement("p",{className:a.vMaxLength+" "+H},k," / ",F),u&&_?t.createElement("p",{className:E+" "+a.tooltipMessage+" "+a["tooltipMessage-"+h]+" "+(y?a.animateMessage:"")},x):null)}},exports.VURL=function(e){var n,l,s,i,r,o,d=e.vState,u=void 0!==d&&d,m=e.vType,c=e.vClassName,v=void 0===c?"":c,p=e.vShowMessage,g=void 0!==p&&p,_=e.vMessage,f=void 0===_?"":_,x=e.vLocateMessage,M=void 0===x?"bottom":x,h=e.vMessageClass,b=void 0===h?"":h,E=e.vIsAnimate,N=void 0!==E&&E,y=e.props,j=void 0===y?{}:y;switch(void 0===m?"outer":m){default:case"outer":return t.createElement("div",{className:a.vinput+" "+a["vinput-"+M]},t.createElement("input",Object.assign({type:"url"},j,{defaultValue:null!=(n=null==j?void 0:j.defaultValue)?n:"",className:(null!=(l=null==j?void 0:j.className)?l:"")+" "+v+" "+(u?a.invalid:"")})),u&&g?t.createElement("p",{className:b+" "+(N?a.animateMessage:"")},f):null);case"inner":return t.createElement("div",{className:a.vinput},t.createElement("input",Object.assign({type:"url"},j,{defaultValue:null!=(s=null==j?void 0:j.defaultValue)?s:"",className:(null!=(i=null==j?void 0:j.className)?i:"")+" "+v+" "+(u?a.invalid:"")})),u&&g?t.createElement("p",{className:b+" "+a.innerMessage+" "+a["innerMessage-"+M]+" "+(N?a.animateMessage:"")},f):null);case"tooltip":return t.createElement("div",{className:a.vinput+" "+a["tooltipMessage-"+M]},t.createElement("input",Object.assign({type:"url"},j,{defaultValue:null!=(r=null==j?void 0:j.defaultValue)?r:"",className:(null!=(o=null==j?void 0:j.className)?o:"")+" "+v+" "+(u?a.invalid:"")})),u&&g?t.createElement("p",{className:b+" "+a.tooltipMessage+" "+a["tooltipMessage-"+M]+" "+(N?a.animateMessage:"")},f):null)}};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=(e=require("react"))&&"object"==typeof e&&"default"in e?e.default:e;function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e}).apply(null,arguments)}var a={invalid:"index-module_invalid__gHKsE",vMaxLengthContainer:"index-module_vMaxLengthContainer__rh7UH",vMaxLength:"index-module_vMaxLength__hANPK",vinput:"index-module_vinput__tFGFH","vinput-top-left":"index-module_vinput-top-left__2g8Bq","vinput-top":"index-module_vinput-top__ZTh6H","vinput-top-right":"index-module_vinput-top-right__t6K-Q","vinput-center-left":"index-module_vinput-center-left__vJn0s","vinput-center-right":"index-module_vinput-center-right__HDgip","vinput-bottom-left":"index-module_vinput-bottom-left__xxaiT","vinput-bottom":"index-module_vinput-bottom__nCOAf","vinput-bottom-right":"index-module_vinput-bottom-right__6AjOE",innerMessage:"index-module_innerMessage__rihga","innerMessage-top-left":"index-module_innerMessage-top-left__HLoYg","innerMessage-top":"index-module_innerMessage-top__ouYW6","innerMessage-top-right":"index-module_innerMessage-top-right__7tMC8","innerMessage-center-left":"index-module_innerMessage-center-left__4iZyl","innerMessage-center":"index-module_innerMessage-center__U2006","innerMessage-center-right":"index-module_innerMessage-center-right__Pg2oU","innerMessage-bottom-left":"index-module_innerMessage-bottom-left__1QDIv","innerMessage-bottom":"index-module_innerMessage-bottom__gMogT","innerMessage-bottom-right":"index-module_innerMessage-bottom-right__peBq-",tooltipMessage:"index-module_tooltipMessage__ZlthY","tooltipMessage-top-left":"index-module_tooltipMessage-top-left__us8PI","tooltipMessage-top":"index-module_tooltipMessage-top__NaUtu","tooltipMessage-top-right":"index-module_tooltipMessage-top-right__UveQN","tooltipMessage-center-right":"index-module_tooltipMessage-center-right__8eqfQ","tooltipMessage-center-left":"index-module_tooltipMessage-center-left__yyDuD","tooltipMessage-bottom-left":"index-module_tooltipMessage-bottom-left__u-H0Q","tooltipMessage-bottom":"index-module_tooltipMessage-bottom__YOZgV","tooltipMessage-bottom-right":"index-module_tooltipMessage-bottom-right__yD0zu",animateMessage:"index-module_animateMessage__Gxf3M","fade-in":"index-module_fade-in__GxKz8"};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if("undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===n&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}(".index-module_invalid__gHKsE {\r\n border: 1px solid red;\r\n outline: none;\r\n}\r\n.index-module_invalid__gHKsE:focus,\r\n.index-module_invalid__gHKsE:focus-visible,\r\n.index-module_invalid__gHKsE:focus-within {\r\n border: 2px solid red;\r\n}\r\n.index-module_vMaxLengthContainer__rh7UH {\r\n position: relative;\r\n}\r\n.index-module_vMaxLengthContainer__rh7UH > input[type='text'] {\r\n padding-right: 70px;\r\n}\r\n.index-module_vMaxLengthContainer__rh7UH .index-module_vMaxLength__hANPK {\r\n color: #555;\r\n font-size: 0.8rem;\r\n position: absolute;\r\n right: 0;\r\n top: 0;\r\n margin: 0;\r\n padding: 16px;\r\n}\r\n\r\n/* vType === 'outer' */\r\n.index-module_vinput__tFGFH {\r\n display: flex;\r\n width: fit-content;\r\n}\r\n.index-module_vinput-top-left__2g8Bq {\r\n flex-direction: column-reverse;\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-top__ZTh6H {\r\n flex-direction: column-reverse;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-top-right__t6K-Q {\r\n flex-direction: column-reverse;\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-center-left__vJn0s {\r\n flex-direction: row-reverse;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-center-right__HDgip {\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom-left__xxaiT {\r\n flex-direction: column;\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom__nCOAf {\r\n flex-direction: column;\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_vinput-bottom-right__6AjOE {\r\n flex-direction: column;\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n\r\n/* vType === 'inner' */\r\n.index-module_innerMessage__rihga {\r\n position: absolute;\r\n font-size: 12px;\r\n margin: 0;\r\n padding: 2px 5px;\r\n display: flex;\r\n}\r\n.index-module_innerMessage-top-left__HLoYg {\r\n align-items: flex-start;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-top__ouYW6 {\r\n align-items: flex-start;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-top-right__7tMC8 {\r\n align-items: flex-start;\r\n justify-content: flex-end;\r\n}\r\n.index-module_innerMessage-center-left__4iZyl {\r\n align-items: center;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-center__U2006 {\r\n align-items: center;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-center-right__Pg2oU {\r\n align-items: center;\r\n justify-content: flex-end;\r\n}\r\n.index-module_innerMessage-bottom-left__1QDIv {\r\n align-items: flex-end;\r\n justify-content: flex-start;\r\n}\r\n.index-module_innerMessage-bottom__gMogT {\r\n align-items: flex-end;\r\n justify-content: center;\r\n}\r\n.index-module_innerMessage-bottom-right__peBq- {\r\n align-items: flex-end;\r\n justify-content: flex-end;\r\n}\r\n\r\n/* vType === 'tooltip' */\r\n* {\r\n --tooltip-default-color: #333;\r\n}\r\n.index-module_tooltipMessage__ZlthY {\r\n position: absolute;\r\n margin: 0;\r\n padding: 10px 20px;\r\n border: 1px solid transparent;\r\n border-radius: 10px;\r\n background-color: var(--tooltip-default-color);\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: var(--tooltip-default-color);\r\n border-bottom: 0;\r\n margin-bottom: -10px;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-top-left__us8PI {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-top-left__us8PI::after {\r\n left: 10%;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-top__NaUtu {\r\n justify-content: center;\r\n}\r\np.index-module_tooltipMessage-top__NaUtu::after {\r\n left: 44%;\r\n}\r\n.index-module_tooltipMessage-top-right__UveQN {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-top-right__UveQN::after {\r\n left: 80%;\r\n}\r\np[class*='tooltipMessage-center'] {\r\n /* transform: translateY(calc(-100% - 10px)); */\r\n}\r\np[class*='tooltipMessage-center']::after {\r\n content: '';\r\n position: absolute;\r\n border: 10px solid transparent;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-center-right__8eqfQ {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-center-right__8eqfQ {\r\n transform: translateX(calc(100% + 10px));\r\n}\r\np.index-module_tooltipMessage-center-right__8eqfQ::after {\r\n border-right-color: var(--tooltip-default-color);\r\n left: -15%;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-center-left__yyDuD {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-center-left__yyDuD {\r\n transform: translateX(calc(-100% - 10px));\r\n}\r\np.index-module_tooltipMessage-center-left__yyDuD::after {\r\n border-left-color: var(--tooltip-default-color);\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: var(--tooltip-default-color);\r\n border-top: 0;\r\n margin-top: -11px;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-bottom-left__u-H0Q {\r\n justify-content: flex-start;\r\n}\r\np.index-module_tooltipMessage-bottom-left__u-H0Q::after {\r\n left: 10%;\r\n}\r\n.index-module_vinput__tFGFH.index-module_tooltipMessage-bottom__YOZgV {\r\n justify-content: center;\r\n}\r\np.index-module_tooltipMessage-bottom__YOZgV::after {\r\n left: 44%;\r\n}\r\n.index-module_tooltipMessage-bottom-right__yD0zu {\r\n justify-content: flex-end;\r\n}\r\np.index-module_tooltipMessage-bottom-right__yD0zu::after {\r\n left: 80%;\r\n}\r\n\r\n.index-module_animateMessage__Gxf3M {\r\n animation: index-module_fade-in__GxKz8 1s ease-in-out;\r\n}\r\n\r\n@keyframes index-module_fade-in__GxKz8 {\r\n 0% {\r\n opacity: 0;\r\n }\r\n 100% {\r\n opacity: 1;\r\n }\r\n}\r\n"),exports.VCheckbox=function(e){var n=e.vState,l=void 0!==n&&n,r=e.vType,s=e.vClassName,i=void 0===s?"":s,o=e.vLayoutClassName,d=void 0===o?"":o,u=e.vLabelClassName,m=void 0===u?"":u,c=e.vCheckedClassName,v=void 0===c?"":c,p=e.vCheckList,g=void 0===p?[]:p,_=e.vCheckedList,f=void 0===_?[]:_,x=e.vShowMessage,M=void 0!==x&&x,h=e.vMessage,b=void 0===h?"":h,E=e.vMessageClass,N=void 0===E?"":E,y=e.vIsAnimate,j=void 0!==y&&y,C=e.props,L=void 0===C?{}:C;function F(){var e=[];return g.forEach((function(n,r){e.push(t.createElement("label",{htmlFor:"vCheckbox-"+r,className:m+" "+(f[r]?v:"")+" "+(l?a.invalid:""),key:r},t.createElement("input",Object.assign({id:"vCheckbox-"+r,type:"checkbox",className:i,hidden:!0,value:n,checked:f[r]},L)),t.createElement("span",null,n)))})),t.createElement("div",{className:d},e)}switch(void 0===r?"bottom":r){default:case"top":return t.createElement("div",null,l&&M?t.createElement("p",{className:N+" "+(j?a.animateMessage:"")},b):null,F());case"bottom":return t.createElement("div",null,F(),l&&M?t.createElement("p",{className:N+" "+(j?a.animateMessage:"")},b):null)}},exports.VColor=function(e){var n=e.vState,l=void 0!==n&&n,r=e.vType,s=e.vClassName,i=void 0===s?"":s,o=e.vShowMessage,d=void 0!==o&&o,u=e.vMessage,m=void 0===u?"":u,c=e.vMessageClass,v=void 0===c?"":c,p=e.vIsAnimate,g=void 0!==p&&p,_=e.props,f=void 0===_?{}:_;switch(void 0===r?"bottom":r){default:case"top":return t.createElement(t.Fragment,null,l&&d?t.createElement("p",{className:v+" "+(g?a.animateMessage:"")},m):null,t.createElement("div",null,t.createElement("input",Object.assign({type:"color",className:i},f))));case"bottom":return t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement("input",Object.assign({type:"color",className:i+" test"},f))),l&&d?t.createElement("p",{className:v+" "+(g?a.animateMessage:"")},m):null)}},exports.VDate=function(e){var n=e.vState,l=void 0!==n&&n,r=e.vType,s=e.vClassName,i=void 0===s?"":s,o=e.vShowMessage,d=void 0!==o&&o,u=e.vMessage,m=void 0===u?"":u,c=e.vMessageClass,v=void 0===c?"":c,p=e.vIsAnimate,g=void 0!==p&&p,_=e.props,f=void 0===_?{}:_;switch(void 0===r?"bottom":r){default:case"top":return t.createElement(t.Fragment,null,l&&d?t.createElement("p",{className:v+" "+(g?a.animateMessage:"")},m):null,t.createElement("div",null,t.createElement("input",Object.assign({type:"date",className:i},f))));case"bottom":return t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement("input",Object.assign({type:"date",className:i+" test"},f))),l&&d?t.createElement("p",{className:v+" "+(g?a.animateMessage:"")},m):null)}},exports.VEmail=function(e){var n,l,r,s,i,o,d=e.vState,u=void 0!==d&&d,m=e.vType,c=e.vClassName,v=void 0===c?"":c,p=e.vShowMessage,g=void 0!==p&&p,_=e.vMessage,f=void 0===_?"":_,x=e.vLocateMessage,M=void 0===x?"bottom":x,h=e.vMessageClass,b=void 0===h?"":h,E=e.vIsAnimate,N=void 0!==E&&E,y=e.props,j=void 0===y?{}:y;switch(void 0===m?"outer":m){default:case"outer":return t.createElement("div",{className:a.vinput+" "+a["vinput-"+M]},t.createElement("input",Object.assign({type:"email"},j,{defaultValue:null!=(n=null==j?void 0:j.defaultValue)?n:"",className:(null!=(l=null==j?void 0:j.className)?l:"")+" "+v+" "+(u?a.invalid:"")})),u&&g?t.createElement("p",{className:b+" "+(N?a.animateMessage:"")},f):null);case"inner":return t.createElement("div",{className:a.vinput},t.createElement("input",Object.assign({type:"email"},j,{defaultValue:null!=(r=null==j?void 0:j.defaultValue)?r:"",className:(null!=(s=null==j?void 0:j.className)?s:"")+" "+v+" "+(u?a.invalid:"")})),u&&g?t.createElement("p",{className:b+" "+a.innerMessage+" "+a["innerMessage-"+M]+" "+(N?a.animateMessage:"")},f):null);case"tooltip":return t.createElement("div",{className:a.vinput+" "+a["tooltipMessage-"+M]},t.createElement("input",Object.assign({type:"email"},j,{defaultValue:null!=(i=null==j?void 0:j.defaultValue)?i:"",className:(null!=(o=null==j?void 0:j.className)?o:"")+" "+v+" "+(u?a.invalid:"")})),u&&g?t.createElement("p",{className:b+" "+a.tooltipMessage+" "+a["tooltipMessage-"+M]+" "+(N?a.animateMessage:"")},f):null)}},exports.VRadio=function(e){var n,l,r,s=e.vState,i=void 0!==s&&s,o=e.vName,d=void 0===o?"":o,u=e.vSelectListName,m=void 0===u?[]:u,c=e.vSelectListValue,v=void 0===c?[]:c,p=e.vType,g=e.vClassName,_=void 0===g?"":g,f=e.vShowMessage,x=void 0!==f&&f,M=e.vMessage,h=void 0===M?"":M,b=e.vLocateMessage,E=void 0===b?"bottom":b,N=e.vMessageClass,y=void 0===N?"":N,j=e.vIsAnimate,C=void 0!==j&&j,L=e.props,F=void 0===L?{}:L;function V(){for(var e=[],n=0;n<m.length;n+=1)e.push(t.createElement("div",{key:d+"-"+n},t.createElement("input",Object.assign({type:"radio",id:d+"-"+n,name:d,value:v[n]},F)),t.createElement("label",{htmlFor:d+"-"+n},m[n])));return e}switch(void 0===p?"bottom":p){default:case"bottom":return t.createElement(t.Fragment,null,t.createElement("div",{className:a.vinput+" "+a["vinput-"+E]},t.createElement("div",{className:(null!=(n=null==F?void 0:F.className)?n:"")+" "+_},V())),i&&x?t.createElement("p",{className:y+" "+(C?a.animateMessage:"")},h):null);case"top":return t.createElement(t.Fragment,null,t.createElement("div",{className:a.vinput+" "+a["vinput-"+E]},i&&x?t.createElement("p",{className:y+" "+(C?a.animateMessage:"")},h):null,t.createElement("div",{className:(null!=(l=null==F?void 0:F.className)?l:"")+" "+_},V())));case"tooltip":return t.createElement(t.Fragment,null,t.createElement("div",{className:a.vinput+" "+a["tooltipMessage-"+E]},t.createElement("div",{className:(null!=(r=null==F?void 0:F.className)?r:"")+" "+_},V())),i&&x?t.createElement("p",{className:y+" "+a.tooltipMessage+" "+a["tooltipMessage-"+E]+" "+(C?a.animateMessage:"")},h):null)}},exports.VRange=function(e){var n=e.vState,l=void 0!==n&&n,r=e.vType,s=e.vClassName,i=void 0===s?"":s,o=e.vShowMessage,d=void 0!==o&&o,u=e.vMessage,m=void 0===u?"":u,c=e.vMessageClass,v=void 0===c?"":c,p=e.vIsAnimate,g=void 0!==p&&p,_=e.props,f=void 0===_?{}:_;switch(void 0===r?"bottom":r){default:case"top":return t.createElement(t.Fragment,null,l&&d?t.createElement("p",{className:v+" "+(g?a.animateMessage:"")},m):null,t.createElement("div",null,t.createElement("input",Object.assign({type:"range",className:i},f))));case"bottom":return t.createElement(t.Fragment,null,t.createElement("div",null,t.createElement("input",Object.assign({type:"range",className:i+" test"},f))),l&&d?t.createElement("p",{className:v+" "+(g?a.animateMessage:"")},m):null)}},exports.VText=function(e){var l,r,s,i,o=e.vState,d=void 0!==o&&o,u=e.vType,m=void 0===u?"outer":u,c=e.vClassName,v=void 0===c?"":c,p=e.vShowMessage,g=void 0!==p&&p,_=e.vMessage,f=void 0===_?"":_,x=e.vLocateMessage,M=void 0===x?"bottom":x,h=e.vMessageClass,b=void 0===h?"":h,E=e.vIsAnimate,N=void 0!==E&&E,y=e.vUseMaxLength,j=void 0!==y&&y,C=e.vMaxLength,L=void 0===C?0:C,F=e.vClassMaxLength,V=void 0===F?"":F,H=e.props,O=void 0===H?{}:H,S=t.useState(null!=(l=null==(r=(null==(s=O)?void 0:s.defaultValue)||(null==(i=O)?void 0:i.value))?void 0:r.length)?l:0),T=S[0],w=S[1],D=function(){var e,n,l,r;return t.createElement("input",Object.assign({type:"text"},O,{onChange:function(e){var t;j&&e.target.value.length>L?(e.preventDefault(),e.target.value=e.target.value.slice(0,L)):(null==(t=O)||t.onChange(e),j&&w(e.target.value.length))},defaultValue:null!=(e=null==(n=O)?void 0:n.defaultValue)?e:"",className:(null!=(l=null==(r=O)?void 0:r.className)?l:"")+" "+v+" "+(d?a.invalid:"")}))};switch(j&&(O=n({},O,{maxLength:L})),m){default:case"outer":return t.createElement("div",{className:a.vinput+" "+a["vinput-"+M]+" "+(j?a.vMaxLengthContainer:"")},t.createElement("div",{style:{position:"relative"}},D(),j&&t.createElement("p",{className:a.vMaxLength+" "+V},T," / ",L)),d&&g?t.createElement("p",{className:b+" "+(N?a.animateMessage:"")},f):null);case"inner":return t.createElement("div",{className:a.vinput+" "+(j?a.vMaxLengthContainer:"")},D(),j&&t.createElement("p",{className:a.vMaxLength+" "+V},T," / ",L),d&&g?t.createElement("p",{className:b+" "+a.innerMessage+" "+a["innerMessage-"+M]+" "+(N?a.animateMessage:"")},f):null);case"tooltip":return t.createElement("div",{className:a.vinput+" "+a["tooltipMessage-"+M]+" "+(j?a.vMaxLengthContainer:"")},D(),j&&t.createElement("p",{className:a.vMaxLength+" "+V},T," / ",L),d&&g?t.createElement("p",{className:b+" "+a.tooltipMessage+" "+a["tooltipMessage-"+M]+" "+(N?a.animateMessage:"")},f):null)}},exports.VURL=function(e){var n,l,r,s,i,o,d=e.vState,u=void 0!==d&&d,m=e.vType,c=e.vClassName,v=void 0===c?"":c,p=e.vShowMessage,g=void 0!==p&&p,_=e.vMessage,f=void 0===_?"":_,x=e.vLocateMessage,M=void 0===x?"bottom":x,h=e.vMessageClass,b=void 0===h?"":h,E=e.vIsAnimate,N=void 0!==E&&E,y=e.props,j=void 0===y?{}:y;switch(void 0===m?"outer":m){default:case"outer":return t.createElement("div",{className:a.vinput+" "+a["vinput-"+M]},t.createElement("input",Object.assign({type:"url"},j,{defaultValue:null!=(n=null==j?void 0:j.defaultValue)?n:"",className:(null!=(l=null==j?void 0:j.className)?l:"")+" "+v+" "+(u?a.invalid:"")})),u&&g?t.createElement("p",{className:b+" "+(N?a.animateMessage:"")},f):null);case"inner":return t.createElement("div",{className:a.vinput},t.createElement("input",Object.assign({type:"url"},j,{defaultValue:null!=(r=null==j?void 0:j.defaultValue)?r:"",className:(null!=(s=null==j?void 0:j.className)?s:"")+" "+v+" "+(u?a.invalid:"")})),u&&g?t.createElement("p",{className:b+" "+a.innerMessage+" "+a["innerMessage-"+M]+" "+(N?a.animateMessage:"")},f):null);case"tooltip":return t.createElement("div",{className:a.vinput+" "+a["tooltipMessage-"+M]},t.createElement("input",Object.assign({type:"url"},j,{defaultValue:null!=(i=null==j?void 0:j.defaultValue)?i:"",className:(null!=(o=null==j?void 0:j.className)?o:"")+" "+v+" "+(u?a.invalid:"")})),u&&g?t.createElement("p",{className:b+" "+a.tooltipMessage+" "+a["tooltipMessage-"+M]+" "+(N?a.animateMessage:"")},f):null)}};
|
|
2
2
|
//# sourceMappingURL=react-validate-component.cjs.production.min.js.map
|