@xaypay/tui 0.0.17 → 0.0.19
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/.idea/workspace.xml +4279 -393
- package/dist/index.es.js +20 -14
- package/dist/index.js +20 -14
- package/package.json +1 -1
- package/src/assets_old/icons/demo.html +29 -1
- package/src/assets_old/icons/fonts/icomoon.eot +0 -0
- package/src/assets_old/icons/fonts/icomoon.svg +2 -0
- package/src/assets_old/icons/fonts/icomoon.ttf +0 -0
- package/src/assets_old/icons/fonts/icomoon.woff +0 -0
- package/src/assets_old/icons/selection.json +1 -1
- package/src/assets_old/icons/style.css +13 -7
- package/src/components/captcha/captcha.module.css +34 -25
- package/src/components/captcha/index.js +10 -6
- package/src/components/modal/index.js +11 -7
- package/src/components/modal/modal.module.css +65 -29
- package/src/components/pagination/index.js +7 -11
- package/src/components/select/select.module.css +5 -2
- package/src/components/stepper/index.js +7 -19
- package/src/components/stepper/stepper.module.css +57 -47
|
@@ -1,35 +1,71 @@
|
|
|
1
|
-
.modal {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
.modal-wrap {
|
|
2
|
+
position: fixed;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
top: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
z-index: 9;
|
|
8
|
+
background: rgba(0,0,0,0.4);
|
|
9
|
+
}
|
|
10
|
+
.modal-top {
|
|
11
|
+
display: flex;
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 30px;
|
|
15
|
+
padding-left: 24px;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
box-shadow: 0 1px 0 0 rgba(0,0,0,0.08);
|
|
15
18
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
.modal-title {
|
|
20
|
+
flex: 1 1;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
font-size: 20px;
|
|
25
|
+
line-height: 24px;
|
|
19
26
|
font-weight: 500;
|
|
20
|
-
|
|
21
|
-
text-align: center;
|
|
27
|
+
color: #3C393E;
|
|
22
28
|
}
|
|
23
|
-
|
|
24
|
-
|
|
29
|
+
.close-btn {
|
|
30
|
+
flex: 0 0 auto;
|
|
31
|
+
width: 24px;
|
|
32
|
+
height: 100%;
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: center;
|
|
25
36
|
cursor: pointer;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
37
|
+
}
|
|
38
|
+
.modal-section {
|
|
39
|
+
flex: 1 1;
|
|
40
|
+
width: 100%;
|
|
41
|
+
height: 100%;
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
}
|
|
46
|
+
.modal-content {
|
|
32
47
|
position: absolute;
|
|
48
|
+
width: 100%;
|
|
49
|
+
max-width: 300px;
|
|
50
|
+
min-height: 130px;
|
|
51
|
+
top: 110px;
|
|
52
|
+
left: 0;
|
|
33
53
|
right: 0;
|
|
34
|
-
|
|
35
|
-
|
|
54
|
+
margin: auto;
|
|
55
|
+
display: flex;
|
|
56
|
+
align-items: center;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
height: auto;
|
|
59
|
+
background: rgba(255,255,255,1);
|
|
60
|
+
border-radius: 8px;
|
|
61
|
+
animation: show-popup 240ms;
|
|
62
|
+
}
|
|
63
|
+
@keyframes show-popup {
|
|
64
|
+
0% {
|
|
65
|
+
transform: translate3d(0, -30%, 0);
|
|
66
|
+
}
|
|
67
|
+
100% {
|
|
68
|
+
transform: translate3d(0, 0, 0);
|
|
69
|
+
opacity: 1;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -66,7 +66,8 @@ export const Pagination = ({
|
|
|
66
66
|
return (
|
|
67
67
|
<ul className={classProps}>
|
|
68
68
|
<button className={styles["pagination-btn"]} onClick={onPrevious} disabled={currentPage === 1 ? true : false}>
|
|
69
|
-
<Icon className="icon-arrow-back"/>
|
|
69
|
+
{/* <Icon className="icon-arrow-back"/> */}
|
|
70
|
+
<i className="icon-arrow-back"></i>
|
|
70
71
|
</button>
|
|
71
72
|
|
|
72
73
|
{paginationRange.map((pageNumber, id) => {
|
|
@@ -77,7 +78,8 @@ export const Pagination = ({
|
|
|
77
78
|
disabled={currentPageIndex === 0 ? true : false}>
|
|
78
79
|
<span className={styles['pagination-jump-next-txt']}>...</span>
|
|
79
80
|
<span className={styles['pagination-jump-next-arrow']}>
|
|
80
|
-
<Icon className="icon-arrow-jump-next"/>
|
|
81
|
+
{/* <Icon className="icon-arrow-jump-next"/> */}
|
|
82
|
+
<i className="icon-arrow-jump-next"></i>
|
|
81
83
|
</span>
|
|
82
84
|
</li>
|
|
83
85
|
);
|
|
@@ -87,14 +89,7 @@ export const Pagination = ({
|
|
|
87
89
|
<li
|
|
88
90
|
onClick={() => onPageChange(pageNumber)}
|
|
89
91
|
key={id}
|
|
90
|
-
className={classnames(
|
|
91
|
-
`${
|
|
92
|
-
pageNumber === currentPageNumber
|
|
93
|
-
? styles.selected
|
|
94
|
-
: styles.listItem
|
|
95
|
-
}`, styles['pagination-item']
|
|
96
|
-
)}
|
|
97
|
-
>
|
|
92
|
+
className={classnames(`${pageNumber === currentPageNumber ? styles.selected : styles.listItem}`, styles['pagination-item'])}>
|
|
98
93
|
{pageNumber}
|
|
99
94
|
</li>
|
|
100
95
|
);
|
|
@@ -104,7 +99,8 @@ export const Pagination = ({
|
|
|
104
99
|
className={styles["pagination-btn"]}
|
|
105
100
|
disabled={currentPageNumber === lastPage ? true : false}
|
|
106
101
|
>
|
|
107
|
-
<Icon className='icon-arrow'/>
|
|
102
|
+
{/* <Icon className='icon-arrow'/> */}
|
|
103
|
+
<i className="icon-arrow"></i>
|
|
108
104
|
</button>
|
|
109
105
|
</ul>
|
|
110
106
|
);
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
.select-content {
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
|
+
position: relative;
|
|
13
14
|
}
|
|
14
15
|
.select-content-top {
|
|
15
16
|
display: flex;
|
|
@@ -34,8 +35,10 @@
|
|
|
34
35
|
border-color: #3C393E;
|
|
35
36
|
}
|
|
36
37
|
.select-content-bottom {
|
|
37
|
-
position:
|
|
38
|
-
|
|
38
|
+
position: absolute;
|
|
39
|
+
width: 100%;
|
|
40
|
+
top: 52px;
|
|
41
|
+
left: 0;
|
|
39
42
|
overflow: hidden;
|
|
40
43
|
max-width: 400px;
|
|
41
44
|
background: #FBFBFB;
|
|
@@ -6,34 +6,22 @@ import styles from "./stepper.module.css";
|
|
|
6
6
|
export const Stepper = ({ className, onChange, stepLength, activeSteps }) => {
|
|
7
7
|
const classProps = classNames(className);
|
|
8
8
|
return (
|
|
9
|
-
|
|
9
|
+
<div className={styles['stepper-container']}>
|
|
10
10
|
{(() => {
|
|
11
11
|
let steppers = [];
|
|
12
12
|
for (let step = 1; step <= stepLength; step++) {
|
|
13
13
|
steppers.push(
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
>
|
|
20
|
-
<div
|
|
21
|
-
className={classNames(
|
|
22
|
-
`${
|
|
23
|
-
step <= activeSteps
|
|
24
|
-
? styles.smallActiveRing
|
|
25
|
-
: styles.smallRing
|
|
26
|
-
}`
|
|
27
|
-
)}
|
|
28
|
-
>
|
|
29
|
-
{step <= activeSteps ? step : ""}
|
|
14
|
+
<div className={classNames(`${step <= activeSteps ? styles.activeRing : styles.bigRing}`)} key={step}>
|
|
15
|
+
<div
|
|
16
|
+
className={classNames(`${step <= activeSteps ? styles.smallActiveRing : styles.smallRing}`)}>
|
|
17
|
+
{step <= activeSteps ? step : ""}
|
|
18
|
+
</div>
|
|
30
19
|
</div>
|
|
31
|
-
</div>
|
|
32
20
|
);
|
|
33
21
|
}
|
|
34
22
|
return steppers;
|
|
35
23
|
})()}
|
|
36
|
-
|
|
24
|
+
</div>
|
|
37
25
|
);
|
|
38
26
|
};
|
|
39
27
|
|
|
@@ -1,48 +1,58 @@
|
|
|
1
|
+
.stepper-container > div:last-child:before {
|
|
2
|
+
display: none;
|
|
3
|
+
}
|
|
4
|
+
.bigRing, .activeRing {
|
|
5
|
+
position: relative;
|
|
6
|
+
width: 36px;
|
|
7
|
+
height: 36px;
|
|
8
|
+
border-radius: 50%;
|
|
9
|
+
margin-bottom: 36px;
|
|
10
|
+
cursor:pointer;
|
|
11
|
+
}
|
|
1
12
|
.bigRing {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
13
|
+
box-shadow: 0 0 0 2px #D1D1D1;
|
|
14
|
+
}
|
|
15
|
+
.bigRing:before {
|
|
16
|
+
background: #D1D1D1;
|
|
17
|
+
}
|
|
18
|
+
.activeRing {
|
|
19
|
+
box-shadow: 0 0 0 2px #00236A;
|
|
20
|
+
}
|
|
21
|
+
.activeRing:before {
|
|
22
|
+
background: #00236A;
|
|
23
|
+
}
|
|
24
|
+
.bigRing:before, .activeRing:before {
|
|
25
|
+
position: absolute;
|
|
26
|
+
content: '';
|
|
27
|
+
width: 2px;
|
|
28
|
+
height: 28px;
|
|
29
|
+
bottom: -32px;
|
|
30
|
+
left: 0;
|
|
31
|
+
right: 0;
|
|
32
|
+
margin: auto;
|
|
33
|
+
border-radius: 20px;
|
|
34
|
+
overflow: hidden;
|
|
35
|
+
}
|
|
36
|
+
.smallRing, .smallActiveRing {
|
|
37
|
+
border-radius: 50%;
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 0;
|
|
40
|
+
left: 0;
|
|
41
|
+
right: 0;
|
|
42
|
+
bottom: 0;
|
|
43
|
+
margin: auto;
|
|
44
|
+
}
|
|
45
|
+
.smallRing {
|
|
46
|
+
width: 14px;
|
|
47
|
+
height: 14px;
|
|
48
|
+
background-color: #D1D1D1;
|
|
49
|
+
}
|
|
50
|
+
.smallActiveRing {
|
|
51
|
+
display: flex;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
width: 28px;
|
|
55
|
+
height: 28px;
|
|
56
|
+
background-color: #00236A;
|
|
57
|
+
color: #ffffff;
|
|
58
|
+
}
|