@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.
@@ -1,35 +1,71 @@
1
- .modal {
2
- width: 250px;
3
- height: 170px;
4
- background: white;
5
- color: white;
6
- z-index: 10;
7
- border-radius: 16px;
8
- box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.04);
9
- position: relative
10
- }
11
-
12
- .modal_header {
13
- height: 50px;
14
- background: white;
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
- .heading {
18
- color: #2c3e50;
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
- font-size: 18px;
21
- text-align: center;
27
+ color: #3C393E;
22
28
  }
23
-
24
- .close_btn {
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
- font-weight: 500;
27
- padding: 4px 8px;
28
- border: none;
29
- font-size: 18px;
30
- color: #2c3e50;
31
- background: white;
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
- top: 0;
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: relative;
38
- top: 6px;
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
- <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
+ }