podo-ui 0.1.46 → 0.2.0
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/package.json +2 -2
- package/react/atom/pagination.module.scss +61 -0
- package/react/atom/pagination.tsx +87 -0
- package/react.ts +2 -1
- package/readme.md +3 -3
- package/scss/color/theme.scss +92 -0
- package/scss/form/checkbox-radio.scss +48 -0
- package/scss/form/toggle.scss +16 -0
- package/scss/layout/bg-elevation.scss +14 -0
- package/scss/reset.scss +2 -0
- package/.prettierignore +0 -9
- package/.prettierrc +0 -8
- package/ARCHITECTURE.md +0 -727
- package/cli/icon-scss.js +0 -56
- package/eslint.config.js +0 -26
- package/index.html +0 -12
- package/next-env.d.ts +0 -5
- package/next.config.mjs +0 -10
- package/public/logo.svg +0 -57
- package/src/app/components/button/page.module.scss +0 -253
- package/src/app/components/button/page.tsx +0 -366
- package/src/app/components/checkbox-radio/page.module.scss +0 -95
- package/src/app/components/checkbox-radio/page.tsx +0 -265
- package/src/app/components/input/page.module.scss +0 -112
- package/src/app/components/input/page.tsx +0 -196
- package/src/app/components/select/page.module.scss +0 -90
- package/src/app/components/select/page.tsx +0 -225
- package/src/app/components/textarea/page.module.scss +0 -81
- package/src/app/components/textarea/page.tsx +0 -103
- package/src/app/foundation/colors/page.module.scss +0 -370
- package/src/app/foundation/colors/page.tsx +0 -200
- package/src/app/foundation/icons/page.module.scss +0 -229
- package/src/app/foundation/icons/page.tsx +0 -229
- package/src/app/foundation/spacing/page.module.scss +0 -258
- package/src/app/foundation/spacing/page.tsx +0 -289
- package/src/app/foundation/typography/page.module.scss +0 -148
- package/src/app/foundation/typography/page.tsx +0 -207
- package/src/app/getting-started/installation/page.module.scss +0 -157
- package/src/app/getting-started/installation/page.tsx +0 -154
- package/src/app/getting-started/usage/page.module.scss +0 -209
- package/src/app/getting-started/usage/page.tsx +0 -242
- package/src/app/home.module.scss +0 -541
- package/src/app/layout/grid/page.module.scss +0 -178
- package/src/app/layout/grid/page.tsx +0 -217
- package/src/app/layout/responsive/page.module.scss +0 -237
- package/src/app/layout/responsive/page.tsx +0 -279
- package/src/app/layout.module.scss +0 -14
- package/src/app/layout.tsx +0 -30
- package/src/app/page.module.scss +0 -71
- package/src/app/page.tsx +0 -284
- package/src/components/CodeBlock.module.scss +0 -29
- package/src/components/CodeBlock.tsx +0 -18
- package/src/components/Navigation.module.scss +0 -104
- package/src/components/Navigation.tsx +0 -96
- package/src/components/PageHeader.module.scss +0 -24
- package/src/components/PageHeader.tsx +0 -17
- package/src/components/ThemeToggle.module.scss +0 -34
- package/src/components/ThemeToggle.tsx +0 -47
- package/src/styles/custom.scss +0 -11
- package/src/styles/doc-common.scss +0 -119
- package/src/styles/font-family.scss +0 -80
- package/src/styles/icon.scss +0 -5
- package/src/vite-env.d.ts +0 -1
- package/tsconfig.json +0 -26
package/package.json
CHANGED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
@use '../../mixin.scss' as *;
|
|
2
|
+
|
|
3
|
+
.pagination {
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
gap: s(1);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.pageButton {
|
|
11
|
+
@include p3;
|
|
12
|
+
min-width: 32px;
|
|
13
|
+
height: 32px;
|
|
14
|
+
padding: s(1) s(2);
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
background-color: transparent;
|
|
19
|
+
color: color(text-action);
|
|
20
|
+
border: 1px solid transparent;
|
|
21
|
+
border-radius: r(2);
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
transition: all 0.2s;
|
|
24
|
+
user-select: none;
|
|
25
|
+
|
|
26
|
+
&:hover:not(.active) {
|
|
27
|
+
background-color: color(default-fill);
|
|
28
|
+
color: color(text-action-hover);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:active:not(.active) {
|
|
32
|
+
background-color: color(default-hover);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&.active {
|
|
36
|
+
background-color: color(primary);
|
|
37
|
+
color: color(primary-reverse);
|
|
38
|
+
border-color: color(primary);
|
|
39
|
+
font-weight: 600;
|
|
40
|
+
cursor: default;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:focus-visible {
|
|
44
|
+
outline: 4px solid color(primary-outline);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:disabled {
|
|
48
|
+
color: color(text-action-disabled);
|
|
49
|
+
cursor: not-allowed;
|
|
50
|
+
background-color: transparent;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
i {
|
|
54
|
+
font-size: 16px;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.pageButtonPlaceholder {
|
|
59
|
+
min-width: 32px;
|
|
60
|
+
height: 32px;
|
|
61
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import styles from './pagination.module.scss';
|
|
2
|
+
|
|
3
|
+
interface PaginationProps {
|
|
4
|
+
currentPage: number;
|
|
5
|
+
totalPages: number;
|
|
6
|
+
onPageChange: (page: number) => void;
|
|
7
|
+
maxVisiblePages?: number;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export default function Pagination({
|
|
11
|
+
currentPage,
|
|
12
|
+
totalPages,
|
|
13
|
+
onPageChange,
|
|
14
|
+
maxVisiblePages = 5,
|
|
15
|
+
}: PaginationProps) {
|
|
16
|
+
const getPageNumbers = () => {
|
|
17
|
+
const pages: number[] = [];
|
|
18
|
+
const startPage = Math.floor((currentPage - 1) / maxVisiblePages) * maxVisiblePages + 1;
|
|
19
|
+
const endPage = Math.min(startPage + maxVisiblePages - 1, totalPages);
|
|
20
|
+
|
|
21
|
+
for (let i = startPage; i <= endPage; i++) {
|
|
22
|
+
pages.push(i);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
return pages;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const pageNumbers = getPageNumbers();
|
|
29
|
+
|
|
30
|
+
const handlePrevious = () => {
|
|
31
|
+
if (currentPage > 1) {
|
|
32
|
+
onPageChange(currentPage - 1);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const handleNext = () => {
|
|
37
|
+
if (currentPage < totalPages) {
|
|
38
|
+
onPageChange(currentPage + 1);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
if (totalPages === 0) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return (
|
|
47
|
+
<div className={styles.pagination}>
|
|
48
|
+
{currentPage > 1 ? (
|
|
49
|
+
<button
|
|
50
|
+
onClick={handlePrevious}
|
|
51
|
+
className={styles.pageButton}
|
|
52
|
+
aria-label="이전 페이지"
|
|
53
|
+
>
|
|
54
|
+
<i className="icon-arrow-left"></i>
|
|
55
|
+
</button>
|
|
56
|
+
) : (
|
|
57
|
+
<div className={styles.pageButtonPlaceholder} />
|
|
58
|
+
)}
|
|
59
|
+
|
|
60
|
+
{pageNumbers.map((pageNum) => (
|
|
61
|
+
<button
|
|
62
|
+
key={pageNum}
|
|
63
|
+
onClick={() => onPageChange(pageNum)}
|
|
64
|
+
className={`${styles.pageButton} ${
|
|
65
|
+
currentPage === pageNum ? styles.active : ''
|
|
66
|
+
}`}
|
|
67
|
+
aria-label={`${pageNum}페이지`}
|
|
68
|
+
aria-current={currentPage === pageNum ? 'page' : undefined}
|
|
69
|
+
>
|
|
70
|
+
{pageNum}
|
|
71
|
+
</button>
|
|
72
|
+
))}
|
|
73
|
+
|
|
74
|
+
{currentPage < totalPages ? (
|
|
75
|
+
<button
|
|
76
|
+
onClick={handleNext}
|
|
77
|
+
className={styles.pageButton}
|
|
78
|
+
aria-label="다음 페이지"
|
|
79
|
+
>
|
|
80
|
+
<i className="icon-arrow-right"></i>
|
|
81
|
+
</button>
|
|
82
|
+
) : (
|
|
83
|
+
<div className={styles.pageButtonPlaceholder} />
|
|
84
|
+
)}
|
|
85
|
+
</div>
|
|
86
|
+
);
|
|
87
|
+
}
|
package/react.ts
CHANGED
|
@@ -2,6 +2,7 @@ import Input from './react/atom/input';
|
|
|
2
2
|
import Textarea from './react/atom/textarea';
|
|
3
3
|
import Editor from './react/atom/editor';
|
|
4
4
|
import EditorView from './react/atom/editor-view';
|
|
5
|
+
import Pagination from './react/atom/pagination';
|
|
5
6
|
import Field from './react/molecule/field';
|
|
6
7
|
const Form = {
|
|
7
8
|
Input,
|
|
@@ -13,4 +14,4 @@ const Form = {
|
|
|
13
14
|
|
|
14
15
|
export default Form;
|
|
15
16
|
|
|
16
|
-
export { Input, Textarea, Editor, EditorView, Field };
|
|
17
|
+
export { Input, Textarea, Editor, EditorView, Pagination, Field };
|
package/readme.md
CHANGED
package/scss/color/theme.scss
CHANGED
|
@@ -86,6 +86,98 @@
|
|
|
86
86
|
--color-text-action-reverse: #ffffff;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
/*
|
|
90
|
+
Auto mode: Follow system preference
|
|
91
|
+
*/
|
|
92
|
+
@media (prefers-color-scheme: dark) {
|
|
93
|
+
:root:not([data-color-mode='light']) {
|
|
94
|
+
--color-primary: #7c3aed;
|
|
95
|
+
--color-primary-hover: #8b5cf6;
|
|
96
|
+
--color-primary-pressed: #7c3aed;
|
|
97
|
+
--color-primary-focus: #8b5cf6;
|
|
98
|
+
--color-primary-fill: #111827;
|
|
99
|
+
--color-primary-reverse: #ffffff;
|
|
100
|
+
--color-primary-outline: rgba(158, 115, 254, 0.3);
|
|
101
|
+
--color-default: #34343a;
|
|
102
|
+
--color-default-hover: #3f3f46;
|
|
103
|
+
--color-default-pressed: #34343a;
|
|
104
|
+
--color-default-focus: #3f3f46;
|
|
105
|
+
--color-default-fill: #34343a;
|
|
106
|
+
--color-default-reverse: #ffffff;
|
|
107
|
+
--color-default-outline: rgba(63, 63, 70, 0.3);
|
|
108
|
+
--color-default-deep: #a1a1aa;
|
|
109
|
+
--color-default-deep-hover: #d1d1d7;
|
|
110
|
+
--color-default-deep-pressed: #a1a1aa;
|
|
111
|
+
--color-default-deep-focus: #d1d1d7;
|
|
112
|
+
--color-default-deep-fill: #52525b;
|
|
113
|
+
--color-default-deep-reverse: #2c2c31;
|
|
114
|
+
--color-default-deep-outline: rgba(209, 209, 215, 0.3);
|
|
115
|
+
--color-info: #0a73eb;
|
|
116
|
+
--color-info-hover: #1890ff;
|
|
117
|
+
--color-info-pressed: #0a73eb;
|
|
118
|
+
--color-info-focus: #1890ff;
|
|
119
|
+
--color-info-fill: #1c1c20;
|
|
120
|
+
--color-info-reverse: #ffffff;
|
|
121
|
+
--color-info-outline: rgba(24, 144, 255, 0.3);
|
|
122
|
+
--color-link: #0284c7;
|
|
123
|
+
--color-link-hover: #0ea5e9;
|
|
124
|
+
--color-link-pressed: #0284c7;
|
|
125
|
+
--color-link-focus: #0ea5e9;
|
|
126
|
+
--color-link-fill: #1c1c20;
|
|
127
|
+
--color-link-reverse: #ffffff;
|
|
128
|
+
--color-link-outline: rgba(14, 165, 233, 0.3);
|
|
129
|
+
--color-success: #0d9488;
|
|
130
|
+
--color-success-hover: #1bb0a2;
|
|
131
|
+
--color-success-pressed: #0d9488;
|
|
132
|
+
--color-success-focus: #1bb0a2;
|
|
133
|
+
--color-success-fill: #1c1c20;
|
|
134
|
+
--color-success-reverse: #ffffff;
|
|
135
|
+
--color-success-outline: rgba(27, 176, 162, 0.3);
|
|
136
|
+
--color-warning: #e8840f;
|
|
137
|
+
--color-warning-hover: #f19b0b;
|
|
138
|
+
--color-warning-pressed: #e8840f;
|
|
139
|
+
--color-warning-focus: #f19b0b;
|
|
140
|
+
--color-warning-fill: #1c1c20;
|
|
141
|
+
--color-warning-reverse: #ffffff;
|
|
142
|
+
--color-warning-outline: rgba(241, 155, 11, 0.3);
|
|
143
|
+
--color-danger: #f04646;
|
|
144
|
+
--color-danger-hover: #f25959;
|
|
145
|
+
--color-danger-pressed: #f04646;
|
|
146
|
+
--color-danger-focus: #f25959;
|
|
147
|
+
--color-danger-fill: #1c1c20;
|
|
148
|
+
--color-danger-reverse: #ffffff;
|
|
149
|
+
--color-danger-outline: rgba(242, 89, 89, 0.3);
|
|
150
|
+
--color-bg-modal: #2c2c31;
|
|
151
|
+
--color-bg-disabled: #2c2c31;
|
|
152
|
+
--color-bg-toggle: #52525b;
|
|
153
|
+
--color-bg-indicator: rgba(255, 255, 255, 0.36);
|
|
154
|
+
--color-bg-block: rgba(0, 0, 0, 0.09);
|
|
155
|
+
--color-bg-reverse-wb: #000000;
|
|
156
|
+
--color-bg-reverse-bw: #ffffff;
|
|
157
|
+
--color-bg-wt: #ffffff;
|
|
158
|
+
--color-bg-bk: #000000;
|
|
159
|
+
--color-bg-elevation: #09090b;
|
|
160
|
+
--color-bg-elevation-1: #18181b;
|
|
161
|
+
--color-bg-elevation-2: #242429;
|
|
162
|
+
--color-bg-elevation-3: #2c2c31;
|
|
163
|
+
--color-border: #52525b;
|
|
164
|
+
--color-border-hover: #71717a;
|
|
165
|
+
--color-border-pressed: #52525b;
|
|
166
|
+
--color-border-focus: #71717a;
|
|
167
|
+
--color-border-disabled: rgba(255, 255, 255, 0.09);
|
|
168
|
+
--color-border-alpha: rgba(255, 255, 255, 0.18);
|
|
169
|
+
--color-text-header: #f4f4f5;
|
|
170
|
+
--color-text-body: #e4e4e7;
|
|
171
|
+
--color-text-sub: #a1a1aa;
|
|
172
|
+
--color-text-action: #d1d1d7;
|
|
173
|
+
--color-text-action-hover: #f4f4f5;
|
|
174
|
+
--color-text-action-pressed: #d1d1d7;
|
|
175
|
+
--color-text-action-focus: #f4f4f5;
|
|
176
|
+
--color-text-action-disabled: #52525b;
|
|
177
|
+
--color-text-action-reverse: #ffffff;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
89
181
|
html[data-color-mode='dark'] {
|
|
90
182
|
/*
|
|
91
183
|
Dark mode colors
|
|
@@ -55,6 +55,40 @@ input[type='checkbox']:not(.toggle):indeterminate:disabled::before {
|
|
|
55
55
|
background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M3%205C3%203.89543%203.89543%203%205%203H19C20.1046%203%2021%203.89543%2021%205V19C21%2020.1046%2020.1046%2021%2019%2021H5C3.89543%2021%203%2020.1046%203%2019V5Z%22%20fill%3D%22%23E4E4E7%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%204H19C19.5523%204%2020%204.44772%2020%205V19C20%2019.5523%2019.5523%2020%2019%2020H5C4.44772%2020%204%2019.5523%204%2019V5C4%204.44772%204.44772%204%205%204ZM3%205C3%203.89543%203.89543%203%205%203H19C20.1046%203%2021%203.89543%2021%205V19C21%2020.1046%2020.1046%2021%2019%2021H5C3.89543%2021%203%2020.1046%203%2019V5ZM7.0458%2011.3918C6.71443%2011.3918%206.4458%2011.6605%206.4458%2011.9918C6.4458%2012.3232%206.71443%2012.5918%207.0458%2012.5918H16.9652C17.2966%2012.5918%2017.5652%2012.3232%2017.5652%2011.9918C17.5652%2011.6605%2017.2966%2011.3918%2016.9652%2011.3918H7.0458Z%22%20fill%3D%22black%22%20fill-opacity%3D%220.09%22%2F%3E%3C%2Fsvg%3E');
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
+
// Auto mode: Follow system preference
|
|
59
|
+
@media (prefers-color-scheme: dark) {
|
|
60
|
+
:root:not([data-color-mode='light']) {
|
|
61
|
+
input[type='checkbox']:not(.toggle)::before {
|
|
62
|
+
background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2225%22%20height%3D%2225%22%20viewBox%3D%220%200%2025%2025%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M3.5%205.40002C3.5%204.29545%204.39543%203.40002%205.5%203.40002H19.5C20.6046%203.40002%2021.5%204.29545%2021.5%205.40002V19.4C21.5%2020.5046%2020.6046%2021.4%2019.5%2021.4H5.5C4.39543%2021.4%203.5%2020.5046%203.5%2019.4V5.40002Z%22%20fill%3D%22%231F1F21%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M19.5%204.40002H5.5C4.94772%204.40002%204.5%204.84774%204.5%205.40002V19.4C4.5%2019.9523%204.94772%2020.4%205.5%2020.4H19.5C20.0523%2020.4%2020.5%2019.9523%2020.5%2019.4V5.40002C20.5%204.84774%2020.0523%204.40002%2019.5%204.40002ZM5.5%203.40002C4.39543%203.40002%203.5%204.29545%203.5%205.40002V19.4C3.5%2020.5046%204.39543%2021.4%205.5%2021.4H19.5C20.6046%2021.4%2021.5%2020.5046%2021.5%2019.4V5.40002C21.5%204.29545%2020.6046%203.40002%2019.5%203.40002H5.5Z%22%20fill%3D%22%23DCDCE0%22%2F%3E%3C%2Fsvg%3E');
|
|
63
|
+
background-size: contain;
|
|
64
|
+
background-repeat: no-repeat;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
input[type='checkbox']:not(.toggle):checked::before {
|
|
68
|
+
background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M3%205C3%203.89543%203.89543%203%205%203H19C20.1046%203%2021%203.89543%2021%205V19C21%2020.1046%2020.1046%2021%2019%2021H5C3.89543%2021%203%2020.1046%203%2019V5Z%22%20fill%3D%22%231890FF%22%2F%3E%3Cpath%20d%3D%22M10%2016.4L6%2012.4L7.4%2011L10%2013.6L16.6%207L18%208.4L10%2016.4Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E');
|
|
69
|
+
background-size: contain;
|
|
70
|
+
background-repeat: no-repeat;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
input[type='checkbox']:not(.toggle):disabled::before {
|
|
74
|
+
background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2225%22%20height%3D%2225%22%20viewBox%3D%220%200%2025%2025%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M3.5%205.5C3.5%204.39543%204.39543%203.5%205.5%203.5H19.5C20.6046%203.5%2021.5%204.39543%2021.5%205.5V19.5C21.5%2020.6046%2020.6046%2021.5%2019.5%2021.5H5.5C4.39543%2021.5%203.5%2020.6046%203.5%2019.5V5.5Z%22%20fill%3D%22%232F2F33%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M19.5%204.5H5.5C4.94772%204.5%204.5%204.94772%204.5%205.5V19.5C4.5%2020.0523%204.94772%2020.5%205.5%2020.5H19.5C20.0523%2020.5%2020.5%2020.0523%2020.5%2019.5V5.5C20.5%204.94772%2020.0523%204.5%2019.5%204.5ZM5.5%203.5C4.39543%203.5%203.5%204.39543%203.5%205.5V19.5C3.5%2020.6046%204.39543%2021.5%205.5%2021.5H19.5C20.6046%2021.5%2021.5%2020.6046%2021.5%2019.5V5.5C21.5%204.39543%2020.6046%203.5%2019.5%203.5H5.5Z%22%20fill%3D%22%23424245%22%2F%3E%3C%2Fsvg%3E');
|
|
75
|
+
cursor: not-allowed !important;
|
|
76
|
+
}
|
|
77
|
+
input[type='checkbox']:not(.toggle):checked:disabled::before {
|
|
78
|
+
background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2225%22%20viewBox%3D%220%200%2024%2025%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M3%205.5C3%204.39543%203.89543%203.5%205%203.5H19C20.1046%203.5%2021%204.39543%2021%205.5V19.5C21%2020.6046%2020.1046%2021.5%2019%2021.5H5C3.89543%2021.5%203%2020.6046%203%2019.5V5.5Z%22%20fill%3D%22%234C7295%22%2F%3E%3Cpath%20d%3D%22M10%2016.9L6%2012.9L7.4%2011.5L10%2014.1L16.6%207.5L18%208.9L10%2016.9Z%22%20fill%3D%22%23D9D9D9%22%2F%3E%3C%2Fsvg%3E');
|
|
79
|
+
cursor: not-allowed !important;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
input[type='checkbox']:not(.toggle):indeterminate::before {
|
|
83
|
+
background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2225%22%20viewBox%3D%220%200%2024%2025%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M3%205.09998C3%203.99541%203.89543%203.09998%205%203.09998H19C20.1046%203.09998%2021%203.99541%2021%205.09998V19.1C21%2020.2046%2020.1046%2021.1%2019%2021.1H5C3.89543%2021.1%203%2020.2046%203%2019.1V5.09998Z%22%20fill%3D%22%231F1F21%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%204.09998H19C19.5523%204.09998%2020%204.5477%2020%205.09998V19.1C20%2019.6523%2019.5523%2020.1%2019%2020.1H5C4.44772%2020.1%204%2019.6523%204%2019.1V5.09998C4%204.5477%204.44772%204.09998%205%204.09998ZM3%205.09998C3%203.99541%203.89543%203.09998%205%203.09998H19C20.1046%203.09998%2021%203.99541%2021%205.09998V19.1C21%2020.2046%2020.1046%2021.1%2019%2021.1H5C3.89543%2021.1%203%2020.2046%203%2019.1V5.09998ZM7.0458%2011.4918C6.71443%2011.4918%206.4458%2011.7605%206.4458%2012.0918C6.4458%2012.4232%206.71443%2012.6918%207.0458%2012.6918H16.9652C17.2966%2012.6918%2017.5652%2012.4232%2017.5652%2012.0918C17.5652%2011.7605%2017.2966%2011.4918%2016.9652%2011.4918H7.0458Z%22%20fill%3D%22%23DCDCE0%22%2F%3E%3C%2Fsvg%3E');
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
input[type='checkbox']:not(.toggle):indeterminate:disabled::before {
|
|
87
|
+
background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2225%22%20viewBox%3D%220%200%2024%2025%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M3%205.5C3%204.39543%203.89543%203.5%205%203.5H19C20.1046%203.5%2021%204.39543%2021%205.5V19.5C21%2020.6046%2020.1046%2021.5%2019%2021.5H5C3.89543%2021.5%203%2020.6046%203%2019.5V5.5Z%22%20fill%3D%22%232F2F33%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%204.5H19C19.5523%204.5%2020%204.94772%2020%205.5V19.5C20%2020.0523%2019.5523%2020.5%2019%2020.5H5C4.44772%2020.5%204%2020.0523%204%2019.5V5.5C4%204.94772%204.44772%204.5%205%204.5ZM3%205.5C3%204.39543%203.89543%203.5%205%203.5H19C20.1046%203.5%2021%204.39543%2021%205.5V19.5C21%2020.6046%2020.1046%2021.5%2019%2021.5H5C3.89543%2021.5%203%2020.6046%203%2019.5V5.5ZM7.0458%2011.8918C6.71443%2011.8918%206.4458%2012.1605%206.4458%2012.4918C6.4458%2012.8232%206.71443%2013.0918%207.0458%2013.0918H16.9652C17.2966%2013.0918%2017.5652%2012.8232%2017.5652%2012.4918C17.5652%2012.1605%2017.2966%2011.8918%2016.9652%2011.8918H7.0458Z%22%20fill%3D%22%23424245%22%2F%3E%3C%2Fsvg%3E');
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
58
92
|
// 다크모드
|
|
59
93
|
html[data-color-mode='dark'] {
|
|
60
94
|
input[type='checkbox']:not(.toggle)::before {
|
|
@@ -110,6 +144,20 @@ input[type='radio']:checked:disabled::before {
|
|
|
110
144
|
cursor: not-allowed !important;
|
|
111
145
|
}
|
|
112
146
|
|
|
147
|
+
// Auto mode: Follow system preference
|
|
148
|
+
@media (prefers-color-scheme: dark) {
|
|
149
|
+
:root:not([data-color-mode='light']) {
|
|
150
|
+
input[type='radio']:disabled::before {
|
|
151
|
+
background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20fill%3D%22%232F2F33%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M12%2020C16.4183%2020%2020%2016.4183%2020%2012C20%207.58172%2016.4183%204%2012%204C7.58172%204%204%207.58172%204%2012C4%2016.4183%207.58172%2020%2012%2020ZM12%2021C16.9706%2021%2021%2016.9706%2021%2012C21%207.02944%2016.9706%203%2012%203C7.02944%203%203%207.02944%203%2012C3%2016.9706%207.02944%2021%2012%2021Z%22%20fill%3D%22%23424245%22%2F%3E%3C%2Fsvg%3E');
|
|
152
|
+
cursor: not-allowed !important;
|
|
153
|
+
}
|
|
154
|
+
input[type='radio']:checked:disabled::before {
|
|
155
|
+
background-image: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20fill%3D%22black%22%20fill-opacity%3D%220.09%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M12%2020C7.58172%2020%204%2016.4183%204%2012C4%207.58172%207.58172%204%2012%204C16.4183%204%2020%207.58172%2020%2012C20%2016.4183%2016.4183%2020%2012%2020ZM3%2012C3%207.02944%207.02944%203%2012%203C16.9706%203%2021%207.02944%2021%2012C21%2016.9706%2016.9706%2021%2012%2021C7.02944%2021%203%2016.9706%203%2012ZM12%2017C14.7614%2017%2017%2014.7614%2017%2012C17%209.23858%2014.7614%207%2012%207C9.23858%207%207%209.23858%207%2012C7%2014.7614%209.23858%2017%2012%2017Z%22%20fill%3D%22%234C7295%22%2F%3E%3C%2Fsvg%3E');
|
|
156
|
+
cursor: not-allowed !important;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
113
161
|
// 다크모드
|
|
114
162
|
html[data-color-mode='dark'] {
|
|
115
163
|
input[type='radio']:disabled::before {
|
package/scss/form/toggle.scss
CHANGED
|
@@ -53,6 +53,22 @@
|
|
|
53
53
|
outline: 4px solid color('primary-outline');
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
+
|
|
57
|
+
// Auto mode: Follow system preference
|
|
58
|
+
@media (prefers-color-scheme: dark) {
|
|
59
|
+
:root:not([data-color-mode='light']) {
|
|
60
|
+
.toggle {
|
|
61
|
+
&:checked:disabled {
|
|
62
|
+
background-color: #4c7295;
|
|
63
|
+
cursor: not-allowed !important;
|
|
64
|
+
}
|
|
65
|
+
&:checked:disabled::before {
|
|
66
|
+
background-color: #d9d9d9;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
56
72
|
// 다크모드
|
|
57
73
|
html[data-color-mode='dark'] {
|
|
58
74
|
.toggle {
|
|
@@ -41,6 +41,20 @@ $shadow: (
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
// Auto mode: Follow system preference
|
|
45
|
+
@media (prefers-color-scheme: dark) {
|
|
46
|
+
:root:not([data-color-mode='light']) {
|
|
47
|
+
.bg-elevation {
|
|
48
|
+
&-2 {
|
|
49
|
+
box-shadow: none;
|
|
50
|
+
}
|
|
51
|
+
&-3 {
|
|
52
|
+
box-shadow: none;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
44
58
|
html[data-color-mode='dark'] {
|
|
45
59
|
.bg-elevation {
|
|
46
60
|
&-2 {
|
package/scss/reset.scss
CHANGED
package/.prettierignore
DELETED