@jk-core/components 1.1.11 → 1.1.12
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 +73 -73
- package/dist/index.js +276 -275
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +6 -6
- package/dist/index.umd.cjs.map +1 -1
- package/dist/src/common/DropDown/index.d.ts +5 -1
- package/package.json +99 -99
- package/src/Calendar/Calendar.module.scss +213 -213
- package/src/Calendar/RangeCalendar.tsx +125 -125
- package/src/Calendar/ScrollCalendar.module.scss +214 -214
- package/src/Calendar/ScrollCalendar.tsx +124 -124
- package/src/Calendar/SingleCalendar.tsx +121 -121
- package/src/Calendar/components/DateLabel/DateLabel.module.scss +89 -89
- package/src/Calendar/components/DateLabel/index.tsx +91 -91
- package/src/Calendar/components/DayTile/DayTile.module.scss +117 -117
- package/src/Calendar/components/DayTile/index.tsx +108 -108
- package/src/Calendar/components/MonthTile/MonthTile.module.scss +59 -59
- package/src/Calendar/components/MonthTile/index.tsx +50 -50
- package/src/Calendar/components/ViewSelector/ViewSelector.module.scss +48 -48
- package/src/Calendar/components/ViewSelector/index.tsx +49 -49
- package/src/Calendar/components/YearTile/YearTile.module.scss +85 -85
- package/src/Calendar/components/YearTile/index.tsx +65 -65
- package/src/Calendar/hooks/useCalendarNav.ts +83 -83
- package/src/Calendar/hooks/useDateSelect.ts +54 -54
- package/src/Calendar/index.scss +189 -189
- package/src/Calendar/index.tsx +66 -66
- package/src/Calendar/type.ts +3 -3
- package/src/Calendar/utils/getWeeksInMonth.ts +45 -45
- package/src/Calendar/utils/isInRange.ts +8 -8
- package/src/Calendar/utils/isSameDay.ts +21 -21
- package/src/assets/arrow.svg +11 -11
- package/src/assets/close.svg +15 -15
- package/src/assets/drop-arrow.svg +3 -3
- package/src/common/Accordion/Accordion.module.scss +53 -53
- package/src/common/Accordion/arrow-down.svg +3 -3
- package/src/common/Accordion/arrow-up.svg +3 -3
- package/src/common/Accordion/index.tsx +54 -54
- package/src/common/Breadcrumbs/Breadcrumbs.module.scss +46 -46
- package/src/common/Breadcrumbs/home.svg +5 -5
- package/src/common/Breadcrumbs/index.tsx +82 -82
- package/src/common/Button/Button.module.scss +127 -127
- package/src/common/Button/index.tsx +60 -60
- package/src/common/Card/Card.module.scss +28 -28
- package/src/common/Card/index.tsx +19 -19
- package/src/common/Divider/Divider.module.scss +101 -101
- package/src/common/Divider/index.tsx +24 -24
- package/src/common/DropDown/DropDown.module.scss +135 -135
- package/src/common/DropDown/List.tsx +156 -156
- package/src/common/DropDown/arrow-down.svg +3 -3
- package/src/common/DropDown/index.tsx +108 -103
- package/src/common/DropDown/search.svg +4 -4
- package/src/common/Pagination/Pagination.module.scss +210 -210
- package/src/common/Pagination/arrow-left.svg +11 -11
- package/src/common/Pagination/arrow-right.svg +11 -11
- package/src/common/Pagination/index.tsx +156 -156
- package/src/common/SegmentButton/SegmentButton.module.scss +45 -45
- package/src/common/SegmentButton/index.tsx +79 -79
- package/src/common/Skeleton/Skeleton.module.scss +80 -80
- package/src/common/Skeleton/index.tsx +47 -47
- package/src/common/SwitchButton/SwitchButton.module.scss +65 -65
- package/src/common/SwitchButton/index.tsx +56 -56
- package/src/common/Table/Table.module.scss +70 -70
- package/src/common/Table/index.tsx +128 -128
- package/src/index.scss +1 -1
- package/src/index.tsx +21 -21
- package/src/styles/color.scss +346 -346
- package/src/styles/font-face.scss +18 -18
- package/src/styles/font.scss +49 -49
- package/src/styles/mediaQuery.scss +22 -22
- package/src/styles/scrollbar.scss +71 -71
- package/src/svg.d.ts +6 -6
- package/src/utils/styles/mediaQuery.scss +22 -22
- package/src/utils/ts/allowDecimal.ts +4 -4
- package/src/utils/ts/autoHypen.ts +33 -33
- package/src/utils/ts/calculateMax.ts +24 -24
- package/src/utils/ts/checkIsMobilePlatform.ts +15 -15
- package/src/utils/ts/formatFileSize.ts +16 -16
- package/src/utils/ts/formatMoney.ts +16 -16
- package/src/utils/ts/gradientRatio.ts +61 -61
- package/src/utils/ts/kiloToMega.ts +30 -30
- package/src/utils/ts/maskingPhone.ts +8 -8
- package/src/utils/ts/toQueryString.ts +7 -7
- package/src/utils/ts/valueAsNumber.ts +15 -15
- package/src/vite-env.d.ts +2 -2
|
@@ -1,104 +1,109 @@
|
|
|
1
|
-
import { useEffect, useRef, useState } from 'react';
|
|
2
|
-
import { createPortal } from 'react-dom';
|
|
3
|
-
import { cn } from '@jk-core/utils';
|
|
4
|
-
import DownIcon from './arrow-down.svg';
|
|
5
|
-
import styles from './DropDown.module.scss';
|
|
6
|
-
import List from './List';
|
|
7
|
-
|
|
8
|
-
interface DropDownProps {
|
|
9
|
-
/**
|
|
10
|
-
* 드롭다운 목록
|
|
11
|
-
*/
|
|
12
|
-
list: string[];
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
1
|
+
import { useEffect, useRef, useState } from 'react';
|
|
2
|
+
import { createPortal } from 'react-dom';
|
|
3
|
+
import { cn } from '@jk-core/utils';
|
|
4
|
+
import DownIcon from './arrow-down.svg';
|
|
5
|
+
import styles from './DropDown.module.scss';
|
|
6
|
+
import List from './List';
|
|
7
|
+
|
|
8
|
+
interface DropDownProps {
|
|
9
|
+
/**
|
|
10
|
+
* 드롭다운 목록
|
|
11
|
+
*/
|
|
12
|
+
list: string[];
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* 드롭다운 버튼에 표시될 내용
|
|
16
|
+
*/
|
|
17
|
+
value?: string;
|
|
18
|
+
/**
|
|
19
|
+
* 선택된 아이템을 처리하는 함수
|
|
20
|
+
*/
|
|
21
|
+
onSelect: (item: string, index:number) => void;
|
|
22
|
+
/**
|
|
23
|
+
* 필터링 기능 활성화 여부
|
|
24
|
+
*/
|
|
25
|
+
filter?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* 드롭다운의 플레이스홀더 텍스트
|
|
28
|
+
*/
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
/**
|
|
31
|
+
* 드롭다운의 스타일
|
|
32
|
+
*/
|
|
33
|
+
style?: React.CSSProperties;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* 드롭다운 컴포넌트
|
|
38
|
+
* 사용자가 선택할 수 있는 목록을 제공하며, 선택된 아이템을 표시합니다.
|
|
39
|
+
* 필터링 기능을 활성화할 수 있으며, 플레이스홀더 텍스트를 설정할 수 있습니다.
|
|
40
|
+
*/
|
|
41
|
+
export default function DropDown({
|
|
42
|
+
list = [], value, onSelect, filter,
|
|
43
|
+
placeholder, style }: DropDownProps) {
|
|
44
|
+
const wrapperRef = useRef<HTMLDivElement>(null);
|
|
45
|
+
const listRef = useRef<HTMLDivElement>(null);
|
|
46
|
+
const [selectedItem, setSelectedItem] = useState<string>(placeholder || '선택하세요');
|
|
47
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
48
|
+
const [filteredList, setFilteredList] = useState(list);
|
|
49
|
+
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
if (!isOpen) {
|
|
52
|
+
setFilteredList(list);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function handleClick(event: MouseEvent) {
|
|
56
|
+
if (
|
|
57
|
+
wrapperRef.current &&
|
|
58
|
+
!wrapperRef.current.contains(event.target as Node) &&
|
|
59
|
+
listRef.current &&
|
|
60
|
+
!listRef.current.contains(event.target as Node)
|
|
61
|
+
) {
|
|
62
|
+
setIsOpen(false);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (isOpen) {
|
|
67
|
+
document.addEventListener('mousedown', handleClick);
|
|
68
|
+
}
|
|
69
|
+
return () => {
|
|
70
|
+
document.removeEventListener('mousedown', handleClick);
|
|
71
|
+
};
|
|
72
|
+
}, [isOpen, list]);
|
|
73
|
+
|
|
74
|
+
return (
|
|
75
|
+
<div className={styles.wrapper} ref={wrapperRef}>
|
|
76
|
+
<button
|
|
77
|
+
className={styles.title}
|
|
78
|
+
type="button"
|
|
79
|
+
onClick={() => setIsOpen(!isOpen)}
|
|
80
|
+
style={style}
|
|
81
|
+
>
|
|
82
|
+
<span>{value || selectedItem}</span>
|
|
83
|
+
<DownIcon className={cn({
|
|
84
|
+
[styles.icon]: true,
|
|
85
|
+
[styles['icon--up']]: isOpen,
|
|
86
|
+
})}
|
|
87
|
+
/>
|
|
88
|
+
</button>
|
|
89
|
+
{isOpen && (
|
|
90
|
+
createPortal(
|
|
91
|
+
<div ref={listRef} className={styles['list-portal']}>
|
|
92
|
+
<List
|
|
93
|
+
selectedItem={selectedItem}
|
|
94
|
+
list={list}
|
|
95
|
+
filteredList={filteredList}
|
|
96
|
+
parent={wrapperRef}
|
|
97
|
+
setFilteredList={filter ? setFilteredList : undefined}
|
|
98
|
+
onSelect={(item, index) => {
|
|
99
|
+
onSelect(item, index);
|
|
100
|
+
setSelectedItem(item);
|
|
101
|
+
setFilteredList(list);
|
|
102
|
+
setIsOpen(false);
|
|
103
|
+
}}
|
|
104
|
+
/>
|
|
105
|
+
</div>, document.body)
|
|
106
|
+
)}
|
|
107
|
+
</div>
|
|
108
|
+
);
|
|
104
109
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<rect x="0.7" y="0.7" width="12.6" height="12.6" rx="6.3" stroke="#2D2D2D" stroke-width="1.4"/>
|
|
3
|
-
<path d="M11.459 11.458L14.9945 14.9935" stroke="#2D2D2D" stroke-width="1.4" stroke-linecap="square"/>
|
|
4
|
-
</svg>
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<rect x="0.7" y="0.7" width="12.6" height="12.6" rx="6.3" stroke="#2D2D2D" stroke-width="1.4"/>
|
|
3
|
+
<path d="M11.459 11.458L14.9945 14.9935" stroke="#2D2D2D" stroke-width="1.4" stroke-linecap="square"/>
|
|
4
|
+
</svg>
|
|
@@ -1,210 +1,210 @@
|
|
|
1
|
-
$delay: 0.2s;
|
|
2
|
-
$size: 40px;
|
|
3
|
-
|
|
4
|
-
@keyframes slideLeft {
|
|
5
|
-
from {
|
|
6
|
-
transform: translateX(-$size);
|
|
7
|
-
}
|
|
8
|
-
to {
|
|
9
|
-
transform: translateX(0);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
@keyframes slideRight {
|
|
14
|
-
from {
|
|
15
|
-
transform: translateX($size);
|
|
16
|
-
}
|
|
17
|
-
to {
|
|
18
|
-
transform: translateX(0);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@keyframes slideDoubleLeft {
|
|
23
|
-
from {
|
|
24
|
-
transform: translateX(-$size * 2);
|
|
25
|
-
}
|
|
26
|
-
to {
|
|
27
|
-
transform: translateX(0);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@keyframes slideDoubleRight {
|
|
32
|
-
from {
|
|
33
|
-
transform: translateX($size * 2);
|
|
34
|
-
}
|
|
35
|
-
to {
|
|
36
|
-
transform: translateX(0);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
@keyframes slideTripleLeft {
|
|
40
|
-
from {
|
|
41
|
-
transform: translateX(-$size * 3);
|
|
42
|
-
}
|
|
43
|
-
to {
|
|
44
|
-
transform: translateX(0);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
@keyframes slideTripleRight {
|
|
48
|
-
from {
|
|
49
|
-
transform: translateX($size * 3);
|
|
50
|
-
}
|
|
51
|
-
to {
|
|
52
|
-
transform: translateX(0);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.pagination {
|
|
57
|
-
position: relative;
|
|
58
|
-
width: 100%;
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
justify-content: center;
|
|
62
|
-
gap: 10px;
|
|
63
|
-
padding: 10px 0;
|
|
64
|
-
|
|
65
|
-
& > * {
|
|
66
|
-
user-select: none;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.arrow {
|
|
71
|
-
width: $size;
|
|
72
|
-
height: $size;
|
|
73
|
-
border-radius: 100%;
|
|
74
|
-
background-color: var(--G-10);
|
|
75
|
-
cursor: pointer;
|
|
76
|
-
user-select: none;
|
|
77
|
-
-webkit-user-drag: none;
|
|
78
|
-
pointer-events: auto;
|
|
79
|
-
transition: background-color 0.1s ease;
|
|
80
|
-
flex-shrink: 0;
|
|
81
|
-
|
|
82
|
-
@media screen and (max-width: 500px) {
|
|
83
|
-
display: none;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
& > svg {
|
|
87
|
-
width: 20px;
|
|
88
|
-
height: 20px;
|
|
89
|
-
fill: var(--G-80);
|
|
90
|
-
transition: fill 0.1s ease;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&:hover {
|
|
94
|
-
background-color: var(--P-50);
|
|
95
|
-
|
|
96
|
-
& > svg {
|
|
97
|
-
fill: var(--white);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
&--disabled {
|
|
102
|
-
background-color: var(--G-10) !important;
|
|
103
|
-
cursor: default;
|
|
104
|
-
|
|
105
|
-
& > svg {
|
|
106
|
-
fill: var(--G-40) !important; // Gray color for disabled state
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.slider {
|
|
112
|
-
position: relative;
|
|
113
|
-
height: $size;
|
|
114
|
-
display: flex;
|
|
115
|
-
overflow: visible;
|
|
116
|
-
background-color: var(--G-10);
|
|
117
|
-
border-radius: 10px;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.track {
|
|
121
|
-
position: absolute;
|
|
122
|
-
left: 50%;
|
|
123
|
-
transform: translateX(-50%);
|
|
124
|
-
width: $size;
|
|
125
|
-
height: $size;
|
|
126
|
-
border-radius: 10px;
|
|
127
|
-
background: linear-gradient(135deg, var(--P-40) 0%, var(--P-60) 100%);
|
|
128
|
-
box-shadow: 0 0 7px 2px #3234bf56;
|
|
129
|
-
transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
130
|
-
z-index: 0;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
.pages {
|
|
134
|
-
overflow: hidden visible;
|
|
135
|
-
display: flex;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.pageWrapper {
|
|
139
|
-
display: flex;
|
|
140
|
-
align-items: center;
|
|
141
|
-
justify-content: center;
|
|
142
|
-
transition: transform $delay ease-in-out;
|
|
143
|
-
border-radius: 10px;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.page {
|
|
147
|
-
width: $size;
|
|
148
|
-
height: $size;
|
|
149
|
-
flex-shrink: 0;
|
|
150
|
-
z-index: 2;
|
|
151
|
-
color: #6b7280;
|
|
152
|
-
user-select: none;
|
|
153
|
-
font-size: 14px;
|
|
154
|
-
font-weight: 600;
|
|
155
|
-
|
|
156
|
-
&:disabled {
|
|
157
|
-
cursor: default;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
&:hover {
|
|
161
|
-
color: var(--P-50);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
&--selected {
|
|
165
|
-
transition: color $delay;
|
|
166
|
-
color: #ffffff !important;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.left {
|
|
171
|
-
animation: slideLeft $delay;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.right {
|
|
175
|
-
animation: slideRight $delay;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.doubleLeft {
|
|
179
|
-
animation: slideDoubleLeft $delay;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.doubleRight {
|
|
183
|
-
animation: slideDoubleRight $delay;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
.tripleLeft {
|
|
187
|
-
animation: slideTripleLeft $delay;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.tripleRight {
|
|
191
|
-
animation: slideTripleRight $delay;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.portal {
|
|
195
|
-
display: flex;
|
|
196
|
-
align-items: center;
|
|
197
|
-
gap: 5px;
|
|
198
|
-
width: 60px;
|
|
199
|
-
height: $size;
|
|
200
|
-
flex-shrink: 0;
|
|
201
|
-
overflow: hidden;
|
|
202
|
-
z-index: 2;
|
|
203
|
-
font-size: 14px;
|
|
204
|
-
font-weight: 600;
|
|
205
|
-
|
|
206
|
-
&__ellipsis {
|
|
207
|
-
color: #6b7280;
|
|
208
|
-
font-size: 12px;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
1
|
+
$delay: 0.2s;
|
|
2
|
+
$size: 40px;
|
|
3
|
+
|
|
4
|
+
@keyframes slideLeft {
|
|
5
|
+
from {
|
|
6
|
+
transform: translateX(-$size);
|
|
7
|
+
}
|
|
8
|
+
to {
|
|
9
|
+
transform: translateX(0);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@keyframes slideRight {
|
|
14
|
+
from {
|
|
15
|
+
transform: translateX($size);
|
|
16
|
+
}
|
|
17
|
+
to {
|
|
18
|
+
transform: translateX(0);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@keyframes slideDoubleLeft {
|
|
23
|
+
from {
|
|
24
|
+
transform: translateX(-$size * 2);
|
|
25
|
+
}
|
|
26
|
+
to {
|
|
27
|
+
transform: translateX(0);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@keyframes slideDoubleRight {
|
|
32
|
+
from {
|
|
33
|
+
transform: translateX($size * 2);
|
|
34
|
+
}
|
|
35
|
+
to {
|
|
36
|
+
transform: translateX(0);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
@keyframes slideTripleLeft {
|
|
40
|
+
from {
|
|
41
|
+
transform: translateX(-$size * 3);
|
|
42
|
+
}
|
|
43
|
+
to {
|
|
44
|
+
transform: translateX(0);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
@keyframes slideTripleRight {
|
|
48
|
+
from {
|
|
49
|
+
transform: translateX($size * 3);
|
|
50
|
+
}
|
|
51
|
+
to {
|
|
52
|
+
transform: translateX(0);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.pagination {
|
|
57
|
+
position: relative;
|
|
58
|
+
width: 100%;
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
gap: 10px;
|
|
63
|
+
padding: 10px 0;
|
|
64
|
+
|
|
65
|
+
& > * {
|
|
66
|
+
user-select: none;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.arrow {
|
|
71
|
+
width: $size;
|
|
72
|
+
height: $size;
|
|
73
|
+
border-radius: 100%;
|
|
74
|
+
background-color: var(--G-10);
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
user-select: none;
|
|
77
|
+
-webkit-user-drag: none;
|
|
78
|
+
pointer-events: auto;
|
|
79
|
+
transition: background-color 0.1s ease;
|
|
80
|
+
flex-shrink: 0;
|
|
81
|
+
|
|
82
|
+
@media screen and (max-width: 500px) {
|
|
83
|
+
display: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
& > svg {
|
|
87
|
+
width: 20px;
|
|
88
|
+
height: 20px;
|
|
89
|
+
fill: var(--G-80);
|
|
90
|
+
transition: fill 0.1s ease;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:hover {
|
|
94
|
+
background-color: var(--P-50);
|
|
95
|
+
|
|
96
|
+
& > svg {
|
|
97
|
+
fill: var(--white);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&--disabled {
|
|
102
|
+
background-color: var(--G-10) !important;
|
|
103
|
+
cursor: default;
|
|
104
|
+
|
|
105
|
+
& > svg {
|
|
106
|
+
fill: var(--G-40) !important; // Gray color for disabled state
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.slider {
|
|
112
|
+
position: relative;
|
|
113
|
+
height: $size;
|
|
114
|
+
display: flex;
|
|
115
|
+
overflow: visible;
|
|
116
|
+
background-color: var(--G-10);
|
|
117
|
+
border-radius: 10px;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.track {
|
|
121
|
+
position: absolute;
|
|
122
|
+
left: 50%;
|
|
123
|
+
transform: translateX(-50%);
|
|
124
|
+
width: $size;
|
|
125
|
+
height: $size;
|
|
126
|
+
border-radius: 10px;
|
|
127
|
+
background: linear-gradient(135deg, var(--P-40) 0%, var(--P-60) 100%);
|
|
128
|
+
box-shadow: 0 0 7px 2px #3234bf56;
|
|
129
|
+
transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
130
|
+
z-index: 0;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.pages {
|
|
134
|
+
overflow: hidden visible;
|
|
135
|
+
display: flex;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.pageWrapper {
|
|
139
|
+
display: flex;
|
|
140
|
+
align-items: center;
|
|
141
|
+
justify-content: center;
|
|
142
|
+
transition: transform $delay ease-in-out;
|
|
143
|
+
border-radius: 10px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.page {
|
|
147
|
+
width: $size;
|
|
148
|
+
height: $size;
|
|
149
|
+
flex-shrink: 0;
|
|
150
|
+
z-index: 2;
|
|
151
|
+
color: #6b7280;
|
|
152
|
+
user-select: none;
|
|
153
|
+
font-size: 14px;
|
|
154
|
+
font-weight: 600;
|
|
155
|
+
|
|
156
|
+
&:disabled {
|
|
157
|
+
cursor: default;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&:hover {
|
|
161
|
+
color: var(--P-50);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&--selected {
|
|
165
|
+
transition: color $delay;
|
|
166
|
+
color: #ffffff !important;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.left {
|
|
171
|
+
animation: slideLeft $delay;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.right {
|
|
175
|
+
animation: slideRight $delay;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.doubleLeft {
|
|
179
|
+
animation: slideDoubleLeft $delay;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.doubleRight {
|
|
183
|
+
animation: slideDoubleRight $delay;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.tripleLeft {
|
|
187
|
+
animation: slideTripleLeft $delay;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.tripleRight {
|
|
191
|
+
animation: slideTripleRight $delay;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.portal {
|
|
195
|
+
display: flex;
|
|
196
|
+
align-items: center;
|
|
197
|
+
gap: 5px;
|
|
198
|
+
width: 60px;
|
|
199
|
+
height: $size;
|
|
200
|
+
flex-shrink: 0;
|
|
201
|
+
overflow: hidden;
|
|
202
|
+
z-index: 2;
|
|
203
|
+
font-size: 14px;
|
|
204
|
+
font-weight: 600;
|
|
205
|
+
|
|
206
|
+
&__ellipsis {
|
|
207
|
+
color: #6b7280;
|
|
208
|
+
font-size: 12px;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
2
|
-
|
|
3
|
-
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
|
|
4
|
-
<svg width="30px" height="30px" viewBox="0 0 24 24" fill="#000000" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
-
|
|
6
|
-
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
|
|
7
|
-
|
|
8
|
-
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9
|
-
|
|
10
|
-
<g id="SVGRepo_iconCarrier"> <path d="M16.1795 3.26875C15.7889 2.87823 15.1558 2.87823 14.7652 3.26875L8.12078 9.91322C6.94952 11.0845 6.94916 12.9833 8.11996 14.155L14.6903 20.7304C15.0808 21.121 15.714 21.121 16.1045 20.7304C16.495 20.3399 16.495 19.7067 16.1045 19.3162L9.53246 12.7442C9.14194 12.3536 9.14194 11.7205 9.53246 11.33L16.1795 4.68297C16.57 4.29244 16.57 3.65928 16.1795 3.26875Z" /> </g>
|
|
11
|
-
|
|
1
|
+
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
|
2
|
+
|
|
3
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Transformed by: SVG Repo Mixer Tools -->
|
|
4
|
+
<svg width="30px" height="30px" viewBox="0 0 24 24" fill="#000000" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
|
|
6
|
+
<g id="SVGRepo_bgCarrier" stroke-width="0"/>
|
|
7
|
+
|
|
8
|
+
<g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9
|
+
|
|
10
|
+
<g id="SVGRepo_iconCarrier"> <path d="M16.1795 3.26875C15.7889 2.87823 15.1558 2.87823 14.7652 3.26875L8.12078 9.91322C6.94952 11.0845 6.94916 12.9833 8.11996 14.155L14.6903 20.7304C15.0808 21.121 15.714 21.121 16.1045 20.7304C16.495 20.3399 16.495 19.7067 16.1045 19.3162L9.53246 12.7442C9.14194 12.3536 9.14194 11.7205 9.53246 11.33L16.1795 4.68297C16.57 4.29244 16.57 3.65928 16.1795 3.26875Z" /> </g>
|
|
11
|
+
|
|
12
12
|
</svg>
|