react-validate-component 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -254
- package/dist/react-validate-component.cjs.development.js +149 -38
- 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 +149 -38
- package/dist/react-validate-component.esm.js.map +1 -1
- package/dist/vEmail/index.d.ts +2 -1
- package/dist/vEmail/vEmail.d.ts +13 -0
- package/dist/vRadio/index.d.ts +2 -1
- package/dist/vRadio/vRadio.d.ts +16 -0
- package/dist/vURL/index.d.ts +2 -2
- package/dist/vURL/vURL.d.ts +1 -1
- package/package.json +1 -1
- package/src/vCheckbox/index.tsx +1 -1
- package/src/vEmail/index.tsx +89 -2
- package/src/vEmail/vEmail.ts +24 -0
- package/src/vRadio/index.tsx +106 -2
- package/src/vRadio/vRadio.ts +27 -0
- package/src/vText/index.tsx +7 -7
- package/src/vURL/index.tsx +9 -9
- package/src/vURL/vURL.ts +1 -1
- package/src/vCheckbox/index.module.css +0 -34
- package/src/vURL/index.module.css +0 -210
- /package/src/{vText/index.module.css → index.module.css} +0 -0
package/src/vEmail/index.tsx
CHANGED
|
@@ -1,5 +1,92 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import styles from '../index.module.css';
|
|
3
|
+
import { VEMAIL_PARAMS } from './vEmail';
|
|
2
4
|
|
|
3
|
-
export function VEmail(
|
|
4
|
-
|
|
5
|
+
export function VEmail({
|
|
6
|
+
vState = false,
|
|
7
|
+
vType = 'outer',
|
|
8
|
+
vClassName = '',
|
|
9
|
+
vShowMessage = false,
|
|
10
|
+
vMessage = '',
|
|
11
|
+
vLocateMessage = 'bottom',
|
|
12
|
+
vMessageClass = '',
|
|
13
|
+
vIsAnimate = false,
|
|
14
|
+
props = {},
|
|
15
|
+
}: VEMAIL_PARAMS) {
|
|
16
|
+
switch (vType) {
|
|
17
|
+
case 'outer':
|
|
18
|
+
return (
|
|
19
|
+
<div
|
|
20
|
+
className={`${styles.vinput} ${styles[`vinput-${vLocateMessage}`]}`}
|
|
21
|
+
>
|
|
22
|
+
<input
|
|
23
|
+
type="email"
|
|
24
|
+
{...props}
|
|
25
|
+
defaultValue={props?.defaultValue ?? ''}
|
|
26
|
+
className={`${props?.className ?? ''} ${vClassName} ${
|
|
27
|
+
vState ? styles.invalid : ''
|
|
28
|
+
}`}
|
|
29
|
+
></input>
|
|
30
|
+
{vState && vShowMessage ? (
|
|
31
|
+
<p
|
|
32
|
+
className={`${vMessageClass} ${
|
|
33
|
+
vIsAnimate ? styles.animateMessage : ''
|
|
34
|
+
}`}
|
|
35
|
+
>
|
|
36
|
+
{vMessage}
|
|
37
|
+
</p>
|
|
38
|
+
) : null}
|
|
39
|
+
</div>
|
|
40
|
+
);
|
|
41
|
+
case 'inner':
|
|
42
|
+
return (
|
|
43
|
+
<div className={styles.vinput}>
|
|
44
|
+
<input
|
|
45
|
+
type="email"
|
|
46
|
+
{...props}
|
|
47
|
+
defaultValue={props?.defaultValue ?? ''}
|
|
48
|
+
className={`${props?.className ?? ''} ${vClassName} ${
|
|
49
|
+
vState ? styles.invalid : ''
|
|
50
|
+
}`}
|
|
51
|
+
></input>
|
|
52
|
+
{vState && vShowMessage ? (
|
|
53
|
+
<p
|
|
54
|
+
className={`${vMessageClass} ${styles.innerMessage} ${
|
|
55
|
+
styles[`innerMessage-${vLocateMessage}`]
|
|
56
|
+
} ${vIsAnimate ? styles.animateMessage : ''}`}
|
|
57
|
+
>
|
|
58
|
+
{vMessage}
|
|
59
|
+
</p>
|
|
60
|
+
) : null}
|
|
61
|
+
</div>
|
|
62
|
+
);
|
|
63
|
+
case 'tooltip':
|
|
64
|
+
return (
|
|
65
|
+
<div
|
|
66
|
+
className={`${styles.vinput} ${
|
|
67
|
+
styles[`tooltipMessage-${vLocateMessage}`]
|
|
68
|
+
}`}
|
|
69
|
+
>
|
|
70
|
+
<input
|
|
71
|
+
type="email"
|
|
72
|
+
{...props}
|
|
73
|
+
defaultValue={props?.defaultValue ?? ''}
|
|
74
|
+
className={`${props?.className ?? ''} ${vClassName} ${
|
|
75
|
+
vState ? styles.invalid : ''
|
|
76
|
+
}`}
|
|
77
|
+
></input>
|
|
78
|
+
{vState && vShowMessage ? (
|
|
79
|
+
<p
|
|
80
|
+
className={`${vMessageClass} ${styles.tooltipMessage} ${
|
|
81
|
+
styles[`tooltipMessage-${vLocateMessage}`]
|
|
82
|
+
} ${vIsAnimate ? styles.animateMessage : ''}`}
|
|
83
|
+
>
|
|
84
|
+
{vMessage}
|
|
85
|
+
</p>
|
|
86
|
+
) : null}
|
|
87
|
+
</div>
|
|
88
|
+
);
|
|
89
|
+
default:
|
|
90
|
+
return <div></div>;
|
|
91
|
+
}
|
|
5
92
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import propsType from '../types/vprops';
|
|
2
|
+
|
|
3
|
+
// VText 파라미터
|
|
4
|
+
export interface VEMAIL_PARAMS {
|
|
5
|
+
readonly vState: boolean; // 유효성 상태 값
|
|
6
|
+
readonly vType: // 유효성 메시지를 출력할 타입
|
|
7
|
+
'inner' | 'outer' | 'tooltip';
|
|
8
|
+
vClassName?: string; // 유효성 입힐 class 명
|
|
9
|
+
readonly vShowMessage: boolean; // 유효성 메시지 출력할지
|
|
10
|
+
vMessage?: string; // 유효성 메시지
|
|
11
|
+
vLocateMessage?: // 유효성 메시지를 element 어디에 붙일지
|
|
12
|
+
| 'top-left'
|
|
13
|
+
| 'top'
|
|
14
|
+
| 'top-right'
|
|
15
|
+
| 'center-left'
|
|
16
|
+
| 'center'
|
|
17
|
+
| 'center-right'
|
|
18
|
+
| 'bottom-left'
|
|
19
|
+
| 'bottom'
|
|
20
|
+
| 'bottom-right';
|
|
21
|
+
vMessageClass?: string; // 유효성 메시지에 입힐 class 명
|
|
22
|
+
vIsAnimate?: boolean; // 유효성 메시지 출력 시 애니메이션 적용할지
|
|
23
|
+
props?: propsType; // 기타 옵션
|
|
24
|
+
}
|
package/src/vRadio/index.tsx
CHANGED
|
@@ -1,5 +1,109 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import styles from '../index.module.css';
|
|
3
|
+
import { VRADIO_PARAMS } from './vRadio';
|
|
2
4
|
|
|
3
|
-
export function VRadio(
|
|
4
|
-
|
|
5
|
+
export function VRadio({
|
|
6
|
+
vState = false,
|
|
7
|
+
vName = '',
|
|
8
|
+
vSelectListName = [],
|
|
9
|
+
vSelectListValue = [],
|
|
10
|
+
vType = 'bottom',
|
|
11
|
+
vClassName = '',
|
|
12
|
+
vShowMessage = false,
|
|
13
|
+
vMessage = '',
|
|
14
|
+
vLocateMessage = 'bottom',
|
|
15
|
+
vMessageClass = '',
|
|
16
|
+
vIsAnimate = false,
|
|
17
|
+
props = {},
|
|
18
|
+
}: VRADIO_PARAMS) {
|
|
19
|
+
function makeSelectList() {
|
|
20
|
+
const result = [];
|
|
21
|
+
|
|
22
|
+
for (let i = 0; i < vSelectListName.length; i += 1) {
|
|
23
|
+
result.push(
|
|
24
|
+
<div key={`${vName}-${i}`}>
|
|
25
|
+
<input
|
|
26
|
+
type="radio"
|
|
27
|
+
id={`${vName}-${i}`}
|
|
28
|
+
name={vName}
|
|
29
|
+
value={vSelectListValue[i]}
|
|
30
|
+
{...props}
|
|
31
|
+
></input>
|
|
32
|
+
<label htmlFor={`${vName}-${i}`}>{vSelectListName[i]}</label>
|
|
33
|
+
</div>
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return result;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
switch (vType) {
|
|
41
|
+
case 'bottom':
|
|
42
|
+
return (
|
|
43
|
+
<>
|
|
44
|
+
<div
|
|
45
|
+
className={`${styles.vinput} ${styles[`vinput-${vLocateMessage}`]}`}
|
|
46
|
+
>
|
|
47
|
+
<div className={`${props?.className ?? ''} ${vClassName}`}>
|
|
48
|
+
{makeSelectList()}
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
{vState && vShowMessage ? (
|
|
52
|
+
<p
|
|
53
|
+
className={`${vMessageClass} ${
|
|
54
|
+
vIsAnimate ? styles.animateMessage : ''
|
|
55
|
+
}`}
|
|
56
|
+
>
|
|
57
|
+
{vMessage}
|
|
58
|
+
</p>
|
|
59
|
+
) : null}
|
|
60
|
+
</>
|
|
61
|
+
);
|
|
62
|
+
case 'top':
|
|
63
|
+
return (
|
|
64
|
+
<>
|
|
65
|
+
<div
|
|
66
|
+
className={`${styles.vinput} ${styles[`vinput-${vLocateMessage}`]}`}
|
|
67
|
+
>
|
|
68
|
+
{vState && vShowMessage ? (
|
|
69
|
+
<p
|
|
70
|
+
className={`${vMessageClass} ${
|
|
71
|
+
vIsAnimate ? styles.animateMessage : ''
|
|
72
|
+
}`}
|
|
73
|
+
>
|
|
74
|
+
{vMessage}
|
|
75
|
+
</p>
|
|
76
|
+
) : null}
|
|
77
|
+
<div className={`${props?.className ?? ''} ${vClassName}`}>
|
|
78
|
+
{makeSelectList()}
|
|
79
|
+
</div>
|
|
80
|
+
</div>
|
|
81
|
+
</>
|
|
82
|
+
);
|
|
83
|
+
case 'tooltip':
|
|
84
|
+
return (
|
|
85
|
+
<>
|
|
86
|
+
<div
|
|
87
|
+
className={`${styles.vinput} ${
|
|
88
|
+
styles[`tooltipMessage-${vLocateMessage}`]
|
|
89
|
+
}`}
|
|
90
|
+
>
|
|
91
|
+
<div className={`${props?.className ?? ''} ${vClassName}`}>
|
|
92
|
+
{makeSelectList()}
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
{vState && vShowMessage ? (
|
|
96
|
+
<p
|
|
97
|
+
className={`${vMessageClass} ${styles.tooltipMessage} ${
|
|
98
|
+
styles[`tooltipMessage-${vLocateMessage}`]
|
|
99
|
+
} ${vIsAnimate ? styles.animateMessage : ''}`}
|
|
100
|
+
>
|
|
101
|
+
{vMessage}
|
|
102
|
+
</p>
|
|
103
|
+
) : null}
|
|
104
|
+
</>
|
|
105
|
+
);
|
|
106
|
+
default:
|
|
107
|
+
return <div></div>;
|
|
108
|
+
}
|
|
5
109
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import propsType from '../types/vprops';
|
|
2
|
+
|
|
3
|
+
// VCheclbox 파라미터
|
|
4
|
+
export interface VRADIO_PARAMS {
|
|
5
|
+
readonly vState: boolean; // 유효성 상태 값
|
|
6
|
+
vName: string; // 라디오 그룹핑할 이름
|
|
7
|
+
vSelectListName: string[]; // 라디오 리스트 이름들
|
|
8
|
+
vSelectListValue: string[]; // 라디오 리스트 값들
|
|
9
|
+
readonly vType: // 유효성 메시지를 출력할 타입
|
|
10
|
+
'top' | 'bottom' | 'tooltip';
|
|
11
|
+
vClassName?: string; // 유효성 입힐 class 명
|
|
12
|
+
readonly vShowMessage: boolean; // 유효성 메시지 출력할지
|
|
13
|
+
vMessage?: string; // 유효성 메시지
|
|
14
|
+
vLocateMessage?: // 유효성 메시지를 element 어디에 붙일지
|
|
15
|
+
| 'top-left'
|
|
16
|
+
| 'top'
|
|
17
|
+
| 'top-right'
|
|
18
|
+
| 'center-left'
|
|
19
|
+
| 'center'
|
|
20
|
+
| 'center-right'
|
|
21
|
+
| 'bottom-left'
|
|
22
|
+
| 'bottom'
|
|
23
|
+
| 'bottom-right';
|
|
24
|
+
vMessageClass?: string; // 유효성 메시지에 입힐 class 명
|
|
25
|
+
vIsAnimate?: boolean; // 유효성 메시지 출력 시 애니메이션 적용할지
|
|
26
|
+
props?: propsType; // 기타 옵션
|
|
27
|
+
}
|
package/src/vText/index.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styles from '
|
|
2
|
+
import styles from '../index.module.css';
|
|
3
3
|
import { VTEXT_PARAMS } from './vText';
|
|
4
4
|
|
|
5
5
|
// Text
|
|
@@ -24,8 +24,8 @@ export function VText({
|
|
|
24
24
|
type="text"
|
|
25
25
|
{...props}
|
|
26
26
|
defaultValue={props?.defaultValue ?? ''}
|
|
27
|
-
className={`${props?.className} ${
|
|
28
|
-
vState ?
|
|
27
|
+
className={`${props?.className ?? ''} ${vClassName} ${
|
|
28
|
+
vState ? styles.invalid : ''
|
|
29
29
|
}`}
|
|
30
30
|
></input>
|
|
31
31
|
{vState && vShowMessage ? (
|
|
@@ -46,8 +46,8 @@ export function VText({
|
|
|
46
46
|
type="text"
|
|
47
47
|
{...props}
|
|
48
48
|
defaultValue={props?.defaultValue ?? ''}
|
|
49
|
-
className={`${props?.className} ${
|
|
50
|
-
vState ?
|
|
49
|
+
className={`${props?.className ?? ''} ${vClassName} ${
|
|
50
|
+
vState ? styles.invalid : ''
|
|
51
51
|
}`}
|
|
52
52
|
></input>
|
|
53
53
|
{vState && vShowMessage ? (
|
|
@@ -72,8 +72,8 @@ export function VText({
|
|
|
72
72
|
type="text"
|
|
73
73
|
{...props}
|
|
74
74
|
defaultValue={props?.defaultValue ?? ''}
|
|
75
|
-
className={`${props?.className} ${
|
|
76
|
-
vState ?
|
|
75
|
+
className={`${props?.className ?? ''} ${vClassName} ${
|
|
76
|
+
vState ? styles.invalid : ''
|
|
77
77
|
}`}
|
|
78
78
|
></input>
|
|
79
79
|
{vState && vShowMessage ? (
|
package/src/vURL/index.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import styles from '
|
|
3
|
-
import {
|
|
2
|
+
import styles from '../index.module.css';
|
|
3
|
+
import { VURL_PARAMS } from './vURL';
|
|
4
4
|
|
|
5
5
|
export function VURL({
|
|
6
6
|
vState = false,
|
|
@@ -12,7 +12,7 @@ export function VURL({
|
|
|
12
12
|
vMessageClass = '',
|
|
13
13
|
vIsAnimate = false,
|
|
14
14
|
props = {},
|
|
15
|
-
}:
|
|
15
|
+
}: VURL_PARAMS) {
|
|
16
16
|
switch (vType) {
|
|
17
17
|
case 'outer':
|
|
18
18
|
return (
|
|
@@ -23,8 +23,8 @@ export function VURL({
|
|
|
23
23
|
type="url"
|
|
24
24
|
{...props}
|
|
25
25
|
defaultValue={props?.defaultValue ?? ''}
|
|
26
|
-
className={`${props?.className} ${
|
|
27
|
-
vState ?
|
|
26
|
+
className={`${props?.className ?? ''} ${vClassName} ${
|
|
27
|
+
vState ? styles.invalid : ''
|
|
28
28
|
}`}
|
|
29
29
|
></input>
|
|
30
30
|
{vState && vShowMessage ? (
|
|
@@ -45,8 +45,8 @@ export function VURL({
|
|
|
45
45
|
type="url"
|
|
46
46
|
{...props}
|
|
47
47
|
defaultValue={props?.defaultValue ?? ''}
|
|
48
|
-
className={`${props?.className} ${
|
|
49
|
-
vState ?
|
|
48
|
+
className={`${props?.className ?? ''} ${vClassName} ${
|
|
49
|
+
vState ? styles.invalid : ''
|
|
50
50
|
}`}
|
|
51
51
|
></input>
|
|
52
52
|
{vState && vShowMessage ? (
|
|
@@ -71,8 +71,8 @@ export function VURL({
|
|
|
71
71
|
type="url"
|
|
72
72
|
{...props}
|
|
73
73
|
defaultValue={props?.defaultValue ?? ''}
|
|
74
|
-
className={`${props?.className} ${
|
|
75
|
-
vState ?
|
|
74
|
+
className={`${props?.className ?? ''} ${vClassName} ${
|
|
75
|
+
vState ? styles.invalid : ''
|
|
76
76
|
}`}
|
|
77
77
|
></input>
|
|
78
78
|
{vState && vShowMessage ? (
|
package/src/vURL/vURL.ts
CHANGED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
.invalid {
|
|
2
|
-
border: 2px solid red;
|
|
3
|
-
outline: none;
|
|
4
|
-
}
|
|
5
|
-
.invalid:focus,
|
|
6
|
-
.invalid:focus-visible,
|
|
7
|
-
.invalid:focus-within {
|
|
8
|
-
border: 2px solid red;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.flex_column {
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.checkbox_layout {
|
|
17
|
-
width: 400px;
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-wrap: wrap;
|
|
20
|
-
gap: 10px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.animateMessage {
|
|
24
|
-
animation: fade-in 1s ease-in-out;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
@keyframes fade-in {
|
|
28
|
-
0% {
|
|
29
|
-
opacity: 0;
|
|
30
|
-
}
|
|
31
|
-
100% {
|
|
32
|
-
opacity: 1;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
.invalid {
|
|
2
|
-
border: 2px solid red;
|
|
3
|
-
outline: none;
|
|
4
|
-
}
|
|
5
|
-
.invalid:focus,
|
|
6
|
-
.invalid:focus-visible,
|
|
7
|
-
.invalid:focus-within {
|
|
8
|
-
border: 2px solid red;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/* vType === 'outer' */
|
|
12
|
-
.vinput {
|
|
13
|
-
display: flex;
|
|
14
|
-
}
|
|
15
|
-
.vinput-top-left {
|
|
16
|
-
flex-direction: column-reverse;
|
|
17
|
-
align-items: flex-start;
|
|
18
|
-
justify-content: center;
|
|
19
|
-
}
|
|
20
|
-
.vinput-top {
|
|
21
|
-
flex-direction: column-reverse;
|
|
22
|
-
align-items: center;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
}
|
|
25
|
-
.vinput-top-right {
|
|
26
|
-
flex-direction: column-reverse;
|
|
27
|
-
align-items: flex-end;
|
|
28
|
-
justify-content: center;
|
|
29
|
-
}
|
|
30
|
-
.vinput-center-left {
|
|
31
|
-
flex-direction: row-reverse;
|
|
32
|
-
align-items: center;
|
|
33
|
-
justify-content: center;
|
|
34
|
-
}
|
|
35
|
-
.vinput-center-right {
|
|
36
|
-
align-items: center;
|
|
37
|
-
justify-content: center;
|
|
38
|
-
}
|
|
39
|
-
.vinput-bottom-left {
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
align-items: flex-start;
|
|
42
|
-
justify-content: center;
|
|
43
|
-
}
|
|
44
|
-
.vinput-bottom {
|
|
45
|
-
flex-direction: column;
|
|
46
|
-
align-items: center;
|
|
47
|
-
justify-content: center;
|
|
48
|
-
}
|
|
49
|
-
.vinput-bottom-right {
|
|
50
|
-
flex-direction: column;
|
|
51
|
-
align-items: flex-end;
|
|
52
|
-
justify-content: center;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/* vType === 'inner' */
|
|
56
|
-
.innerMessage {
|
|
57
|
-
position: absolute;
|
|
58
|
-
font-size: 12px;
|
|
59
|
-
margin: 0;
|
|
60
|
-
padding: 2px 5px;
|
|
61
|
-
display: flex;
|
|
62
|
-
}
|
|
63
|
-
.innerMessage-top-left {
|
|
64
|
-
align-items: flex-start;
|
|
65
|
-
justify-content: flex-start;
|
|
66
|
-
}
|
|
67
|
-
.innerMessage-top {
|
|
68
|
-
align-items: flex-start;
|
|
69
|
-
justify-content: center;
|
|
70
|
-
}
|
|
71
|
-
.innerMessage-top-right {
|
|
72
|
-
align-items: flex-start;
|
|
73
|
-
justify-content: flex-end;
|
|
74
|
-
}
|
|
75
|
-
.innerMessage-center-left {
|
|
76
|
-
align-items: center;
|
|
77
|
-
justify-content: flex-start;
|
|
78
|
-
}
|
|
79
|
-
.innerMessage-center {
|
|
80
|
-
align-items: center;
|
|
81
|
-
justify-content: center;
|
|
82
|
-
}
|
|
83
|
-
.innerMessage-center-right {
|
|
84
|
-
align-items: center;
|
|
85
|
-
justify-content: flex-end;
|
|
86
|
-
}
|
|
87
|
-
.innerMessage-bottom-left {
|
|
88
|
-
align-items: flex-end;
|
|
89
|
-
justify-content: flex-start;
|
|
90
|
-
}
|
|
91
|
-
.innerMessage-bottom {
|
|
92
|
-
align-items: flex-end;
|
|
93
|
-
justify-content: center;
|
|
94
|
-
}
|
|
95
|
-
.innerMessage-bottom-right {
|
|
96
|
-
align-items: flex-end;
|
|
97
|
-
justify-content: flex-end;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/* vType === 'tooltip' */
|
|
101
|
-
.tooltipMessage {
|
|
102
|
-
position: absolute;
|
|
103
|
-
margin: 0;
|
|
104
|
-
padding: 10px 20px;
|
|
105
|
-
border: 1px solid transparent;
|
|
106
|
-
border-radius: 10px;
|
|
107
|
-
background-color: black;
|
|
108
|
-
}
|
|
109
|
-
p[class*='tooltipMessage-top'] {
|
|
110
|
-
transform: translateY(calc(-100% - 10px));
|
|
111
|
-
}
|
|
112
|
-
p[class*='tooltipMessage-top']::after {
|
|
113
|
-
content: '';
|
|
114
|
-
position: absolute;
|
|
115
|
-
bottom: 0;
|
|
116
|
-
border: 10px solid transparent;
|
|
117
|
-
border-top-color: black;
|
|
118
|
-
border-bottom: 0;
|
|
119
|
-
margin-bottom: -11px;
|
|
120
|
-
}
|
|
121
|
-
.vinput.tooltipMessage-top-left {
|
|
122
|
-
justify-content: flex-start;
|
|
123
|
-
}
|
|
124
|
-
p.tooltipMessage-top-left::after {
|
|
125
|
-
left: 3%;
|
|
126
|
-
}
|
|
127
|
-
.vinput.tooltipMessage-top {
|
|
128
|
-
justify-content: center;
|
|
129
|
-
}
|
|
130
|
-
p.tooltipMessage-top::after {
|
|
131
|
-
left: 44%;
|
|
132
|
-
}
|
|
133
|
-
.tooltipMessage-top-right {
|
|
134
|
-
justify-content: flex-end;
|
|
135
|
-
}
|
|
136
|
-
p.tooltipMessage-top-right::after {
|
|
137
|
-
left: 87%;
|
|
138
|
-
}
|
|
139
|
-
p[class*='tooltipMessage-center'] {
|
|
140
|
-
/* transform: translateY(calc(-100% - 10px)); */
|
|
141
|
-
}
|
|
142
|
-
p[class*='tooltipMessage-center']::after {
|
|
143
|
-
content: '';
|
|
144
|
-
position: absolute;
|
|
145
|
-
border: 10px solid transparent;
|
|
146
|
-
}
|
|
147
|
-
.vinput.tooltipMessage-center-right {
|
|
148
|
-
justify-content: flex-end;
|
|
149
|
-
}
|
|
150
|
-
p.tooltipMessage-center-right {
|
|
151
|
-
transform: translateX(calc(100% + 10px));
|
|
152
|
-
}
|
|
153
|
-
p.tooltipMessage-center-right::after {
|
|
154
|
-
border-right-color: black;
|
|
155
|
-
left: -10%;
|
|
156
|
-
}
|
|
157
|
-
.vinput.tooltipMessage-center-left {
|
|
158
|
-
justify-content: flex-start;
|
|
159
|
-
}
|
|
160
|
-
p.tooltipMessage-center-left {
|
|
161
|
-
transform: translateX(calc(-100% - 10px));
|
|
162
|
-
}
|
|
163
|
-
p.tooltipMessage-center-left::after {
|
|
164
|
-
border-left-color: black;
|
|
165
|
-
left: 100%;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
p[class*='tooltipMessage-bottom'] {
|
|
169
|
-
transform: translateY(calc(120% + 10px));
|
|
170
|
-
}
|
|
171
|
-
p[class*='tooltipMessage-bottom']::after {
|
|
172
|
-
content: '';
|
|
173
|
-
position: absolute;
|
|
174
|
-
top: 0;
|
|
175
|
-
border: 10px solid transparent;
|
|
176
|
-
border-bottom-color: black;
|
|
177
|
-
border-top: 0;
|
|
178
|
-
margin-top: -11px;
|
|
179
|
-
}
|
|
180
|
-
.vinput.tooltipMessage-bottom-left {
|
|
181
|
-
justify-content: flex-start;
|
|
182
|
-
}
|
|
183
|
-
p.tooltipMessage-bottom-left::after {
|
|
184
|
-
left: 3%;
|
|
185
|
-
}
|
|
186
|
-
.vinput.tooltipMessage-bottom {
|
|
187
|
-
justify-content: center;
|
|
188
|
-
}
|
|
189
|
-
p.tooltipMessage-bottom::after {
|
|
190
|
-
left: 44%;
|
|
191
|
-
}
|
|
192
|
-
.tooltipMessage-bottom-right {
|
|
193
|
-
justify-content: flex-end;
|
|
194
|
-
}
|
|
195
|
-
p.tooltipMessage-bottom-right::after {
|
|
196
|
-
left: 87%;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
.animateMessage {
|
|
200
|
-
animation: fade-in 1s ease-in-out;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
@keyframes fade-in {
|
|
204
|
-
0% {
|
|
205
|
-
opacity: 0;
|
|
206
|
-
}
|
|
207
|
-
100% {
|
|
208
|
-
opacity: 1;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
File without changes
|