@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.
@@ -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
- <div
15
- className={classNames(
16
- `${step <= activeSteps ? styles.activeRing : styles.bigRing}`
17
- )}
18
- key={step}
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
- width: 30px;
3
- height: 30px;
4
- border: 1px solid gray;
5
- border-radius: 50%;
6
- position: relative;
7
- margin: 10px;
8
- cursor:pointer;
9
- }
10
-
11
- .smallRing {
12
- position: absolute;
13
- width: 50%;
14
- height: 50%;
15
- border-radius: 50%;
16
- background-color: gray;
17
- top: 50%;
18
- left: 50%;
19
- transform: translate(-50%, -50%);
20
- font-size: 12px;
21
- color: white;
22
- text-align: center;
23
- }
24
-
25
-
26
- .activeRing {
27
- width: 30px;
28
- height: 30px;
29
- border: 1px solid blue;
30
- border-radius: 50%;
31
- position: relative;
32
- margin: 10px;
33
- cursor:pointer;
34
- }
35
-
36
- .smallActiveRing {
37
- position: absolute;
38
- width: 50%;
39
- height: 50%;
40
- border-radius: 50%;
41
- background-color: blue;
42
- top: 50%;
43
- left: 50%;
44
- transform: translate(-50%, -50%);
45
- font-size: 12px;
46
- color: white;
47
- text-align: center;
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
+ }