@xaypay/tui 0.0.17 → 0.0.18
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 +16 -10
- package/dist/index.js +16 -10
- 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 +1 -8
- package/src/components/stepper/index.js +7 -19
- package/src/components/stepper/stepper.module.css +57 -47
|
@@ -87,14 +87,7 @@ export const Pagination = ({
|
|
|
87
87
|
<li
|
|
88
88
|
onClick={() => onPageChange(pageNumber)}
|
|
89
89
|
key={id}
|
|
90
|
-
className={classnames(
|
|
91
|
-
`${
|
|
92
|
-
pageNumber === currentPageNumber
|
|
93
|
-
? styles.selected
|
|
94
|
-
: styles.listItem
|
|
95
|
-
}`, styles['pagination-item']
|
|
96
|
-
)}
|
|
97
|
-
>
|
|
90
|
+
className={classnames(`${pageNumber === currentPageNumber ? styles.selected : styles.listItem}`, styles['pagination-item'])}>
|
|
98
91
|
{pageNumber}
|
|
99
92
|
</li>
|
|
100
93
|
);
|
|
@@ -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
|
+
}
|