@edu-tosel/design 1.0.275 → 1.0.276

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/globals.css CHANGED
@@ -1,281 +1,281 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- .image-container {
6
- display: -webkit-box;
7
- display: -ms-flexbox;
8
- display: flex;
9
- }
10
-
11
- @font-face {
12
- font-family: "Pretendard-Medium";
13
- src: url("./asset/fonts/Pretendard-Medium.otf") format("opentype");
14
- }
15
-
16
- @font-face {
17
- font-family: "Pretendard-Bold";
18
- src: url("./asset/fonts/Pretendard-Bold.otf") format("opentype");
19
- }
20
-
21
- @font-face {
22
- font-family: "Pretendard-Light";
23
- src: url("./asset/fonts/Pretendard-Light.otf") format("opentype");
24
- }
25
-
26
- @font-face {
27
- font-family: "Kostar";
28
- src: url("./asset/fonts/Kostar.ttf") format("truetype");
29
- }
30
-
31
- @font-face {
32
- font-family: "NicoMoji";
33
- src: url("./asset/fonts/NicoMoji.ttf") format("truetype");
34
- }
35
-
36
- @font-face {
37
- font-family: "Megrim";
38
- src: url("./asset/fonts/Megrim.ttf") format("truetype");
39
- }
40
-
41
- @font-face {
42
- font-family: "Times-Newer-Roman-Bold";
43
- src: url("./asset/fonts/TimesNewerRoman-Bold.otf") format("opentype");
44
- }
45
-
46
- @font-face {
47
- font-family: "Times-Newer-Roman-BoldItalic";
48
- src: url("./asset/fonts/TimesNewerRoman-BoldItalic.otf") format("opentype");
49
- }
50
-
51
- @font-face {
52
- font-family: "PretendardVariable";
53
- src: url("./asset/fonts/PretendardVariable.ttf") format("truetype");
54
- }
55
-
56
- input[type="date"]::-webkit-inner-spin-button,
57
- input[type="date"]::-webkit-calendar-picker-indicator {
58
- display: none;
59
- -webkit-appearance: none;
60
- }
61
-
62
- ::-webkit-scrollbar {
63
- width: 3px;
64
- padding-right: 10px;
65
- }
66
-
67
- ::-webkit-scrollbar-track {
68
- background-color: transparent;
69
- }
70
- ::-webkit-scrollbar-thumb {
71
- background-color: #808080;
72
- opacity: 0.5;
73
- border-radius: 10px;
74
- }
75
-
76
- .box-shadow {
77
- box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
78
- }
79
- .box-shadow-md {
80
- box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
81
- }
82
- .box-shadow-sm {
83
- box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
84
- }
85
-
86
- .x-shape {
87
- position: relative;
88
- width: 0.83625rem;
89
- height: 0.83625rem;
90
- }
91
-
92
- .x-shape::before,
93
- .x-shape::after {
94
- content: "";
95
- position: absolute;
96
- top: 50%;
97
- left: 50%;
98
- width: 2.5px;
99
- border-radius: 2px;
100
- height: 100%;
101
- background-color: white;
102
- transform-origin: center;
103
- }
104
-
105
- .x-shape::before {
106
- transform: translate(-50%, -50%) rotate(45deg);
107
- }
108
-
109
- .x-shape::after {
110
- transform: translate(-50%, -50%) rotate(-45deg);
111
- }
112
-
113
- .border-inner {
114
- box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
115
- 0 2px 4px -1px rgba(0, 0, 0, 0.06);
116
- }
117
- .box-shadow-focus:focus {
118
- box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
119
- 0 2px 4px -1px rgba(0, 0, 0, 0.06);
120
- }
121
- .box-shadow-focus-red:focus {
122
- box-shadow: 0px 0px 10px 0px #ff8383;
123
- }
124
- .box-green {
125
- background: rgba(16, 86, 82, 0.1);
126
- color: #105652;
127
- }
128
- .box-shadow-green-sm {
129
- box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38);
130
- }
131
- .box-green-focus:focus {
132
- background: white;
133
- color: black;
134
- box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38);
135
- }
136
- /* box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38); */
137
- .box-inner-shadow:hover {
138
- box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
139
- 0 2px 4px -1px rgba(0, 0, 0, 0.06);
140
- }
141
- /* Date Picker Css */
142
- .react-datepicker__day--selected {
143
- background-color: #105652 !important;
144
- }
145
- .react-datepicker__header {
146
- background: white !important;
147
- border: none !important;
148
- }
149
- .react-datepicker {
150
- box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15) !important;
151
- border-radius: 0.375rem !important;
152
- border: none !important;
153
- }
154
- .react-datepicker__day--keyboard-selected {
155
- background-color: white !important;
156
- color: black !important;
157
- }
158
- .react-datepicker__day--outside-month {
159
- color: rgb(161 161 170) !important;
160
- }
161
- .react-datepicker__month-container {
162
- padding-top: 1rem;
163
- padding-left: 1rem;
164
- padding-right: 1rem;
165
- padding-bottom: 0.5rem;
166
- }
167
- .react-datepicker-popper {
168
- transform: translate(0px 295px) !important;
169
- }
170
- .react-datepicker__input-container {
171
- text-align: center !important;
172
- border-radius: 0.375rem !important;
173
- transition: all 0.3s;
174
- }
175
- .react-datepicker__input-container > input {
176
- cursor: pointer !important;
177
- }
178
- .react-datepicker__input-container:hover {
179
- box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15) !important;
180
- }
181
- .react-datepicker__navigation {
182
- top: 18px !important;
183
- }
184
- .react-datepicker__navigation--next {
185
- right: 20px !important;
186
- }
187
- .react-datepicker__navigation--previous {
188
- left: 182px !important;
189
- }
190
- .react-datepicker__current-month {
191
- text-align: left !important;
192
- margin-left: 16px !important;
193
- }
194
- .react-datepicker__triangle {
195
- display: none !important;
196
- }
197
- .react-datepicker__children-container {
198
- width: 16rem !important;
199
- }
200
- /* toggle button */
201
- .toggle[type="checkbox"]::before {
202
- content: "";
203
- position: absolute;
204
- left: 1px;
205
- top: 1px;
206
- width: 1.1rem;
207
- height: 1.1rem;
208
- border-radius: 50%;
209
- transform: scale(0.9);
210
- background-color: white;
211
- transition: left 100ms linear;
212
- }
213
- .toggle[type="checkbox"]:checked::before {
214
- background-color: white;
215
- left: 1.32rem;
216
- }
217
- .toggle[type="checkbox"]:checked {
218
- background-color: #105652;
219
- }
220
- .toggle[type="checkbox"]:disabled {
221
- opacity: 0.3;
222
- cursor: not-allowed;
223
- }
224
- .toggle[type="checkbox"]:disabled + span {
225
- opacity: 0.3;
226
- cursor: not-allowed;
227
- }
228
-
229
- /* checkbox */
230
- .check-box[type="checkbox"]:checked {
231
- border-color: transparent;
232
- background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e");
233
- background-size: 150%;
234
- background-position: 50%;
235
- background-repeat: no-repeat;
236
- }
237
- .check-box[type="checkbox"]:disabled {
238
- background-color: #7f7f7f;
239
- }
240
- .box-shadow-green:hover {
241
- box-shadow: 0px 0px 20px 0px rgba(16, 86, 82, 0.5);
242
- }
243
-
244
- .fade-enter {
245
- opacity: 0;
246
- }
247
- .fade-enter-active {
248
- opacity: 1;
249
- transition: opacity 0.5s ease-in-out;
250
- }
251
- .fade-exit {
252
- opacity: 1;
253
- }
254
- .fade-exit-active {
255
- opacity: 0;
256
- transition: opacity 0.5s ease-in-out;
257
- }
258
-
259
- .text-gradient-green-to-red {
260
- background: var(
261
- --gradient-main,
262
- linear-gradient(269deg, #760023 0%, #105652 100%)
263
- );
264
- background-clip: text;
265
- -webkit-background-clip: text;
266
- -webkit-text-fill-color: transparent;
267
- }
268
-
269
- /* related to font rendering in safari engine */
270
- * {
271
- font-synthesis: none !important;
272
- -webkit-font-smoothing: antialiased;
273
- -moz-osx-font-smoothing: grayscale;
274
- }
275
-
276
- .stacking-context {
277
- -webkit-mask-image: -webkit-radial-gradient(white, black);
278
- mask-image: radial-gradient(white, black);
279
- -webkit-mask-composite: destination-in;
280
- mask-composite: intersect;
281
- }
1
+ @tailwind base;
2
+ @tailwind components;
3
+ @tailwind utilities;
4
+
5
+ .image-container {
6
+ display: -webkit-box;
7
+ display: -ms-flexbox;
8
+ display: flex;
9
+ }
10
+
11
+ @font-face {
12
+ font-family: "Pretendard-Medium";
13
+ src: url("./asset/fonts/Pretendard-Medium.otf") format("opentype");
14
+ }
15
+
16
+ @font-face {
17
+ font-family: "Pretendard-Bold";
18
+ src: url("./asset/fonts/Pretendard-Bold.otf") format("opentype");
19
+ }
20
+
21
+ @font-face {
22
+ font-family: "Pretendard-Light";
23
+ src: url("./asset/fonts/Pretendard-Light.otf") format("opentype");
24
+ }
25
+
26
+ @font-face {
27
+ font-family: "Kostar";
28
+ src: url("./asset/fonts/Kostar.ttf") format("truetype");
29
+ }
30
+
31
+ @font-face {
32
+ font-family: "NicoMoji";
33
+ src: url("./asset/fonts/NicoMoji.ttf") format("truetype");
34
+ }
35
+
36
+ @font-face {
37
+ font-family: "Megrim";
38
+ src: url("./asset/fonts/Megrim.ttf") format("truetype");
39
+ }
40
+
41
+ @font-face {
42
+ font-family: "Times-Newer-Roman-Bold";
43
+ src: url("./asset/fonts/TimesNewerRoman-Bold.otf") format("opentype");
44
+ }
45
+
46
+ @font-face {
47
+ font-family: "Times-Newer-Roman-BoldItalic";
48
+ src: url("./asset/fonts/TimesNewerRoman-BoldItalic.otf") format("opentype");
49
+ }
50
+
51
+ @font-face {
52
+ font-family: "PretendardVariable";
53
+ src: url("./asset/fonts/PretendardVariable.ttf") format("truetype");
54
+ }
55
+
56
+ input[type="date"]::-webkit-inner-spin-button,
57
+ input[type="date"]::-webkit-calendar-picker-indicator {
58
+ display: none;
59
+ -webkit-appearance: none;
60
+ }
61
+
62
+ ::-webkit-scrollbar {
63
+ width: 3px;
64
+ padding-right: 10px;
65
+ }
66
+
67
+ ::-webkit-scrollbar-track {
68
+ background-color: transparent;
69
+ }
70
+ ::-webkit-scrollbar-thumb {
71
+ background-color: #808080;
72
+ opacity: 0.5;
73
+ border-radius: 10px;
74
+ }
75
+
76
+ .box-shadow {
77
+ box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15);
78
+ }
79
+ .box-shadow-md {
80
+ box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
81
+ }
82
+ .box-shadow-sm {
83
+ box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
84
+ }
85
+
86
+ .x-shape {
87
+ position: relative;
88
+ width: 0.83625rem;
89
+ height: 0.83625rem;
90
+ }
91
+
92
+ .x-shape::before,
93
+ .x-shape::after {
94
+ content: "";
95
+ position: absolute;
96
+ top: 50%;
97
+ left: 50%;
98
+ width: 2.5px;
99
+ border-radius: 2px;
100
+ height: 100%;
101
+ background-color: white;
102
+ transform-origin: center;
103
+ }
104
+
105
+ .x-shape::before {
106
+ transform: translate(-50%, -50%) rotate(45deg);
107
+ }
108
+
109
+ .x-shape::after {
110
+ transform: translate(-50%, -50%) rotate(-45deg);
111
+ }
112
+
113
+ .border-inner {
114
+ box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
115
+ 0 2px 4px -1px rgba(0, 0, 0, 0.06);
116
+ }
117
+ .box-shadow-focus:focus {
118
+ box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
119
+ 0 2px 4px -1px rgba(0, 0, 0, 0.06);
120
+ }
121
+ .box-shadow-focus-red:focus {
122
+ box-shadow: 0px 0px 10px 0px #ff8383;
123
+ }
124
+ .box-green {
125
+ background: rgba(16, 86, 82, 0.1);
126
+ color: #105652;
127
+ }
128
+ .box-shadow-green-sm {
129
+ box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38);
130
+ }
131
+ .box-green-focus:focus {
132
+ background: white;
133
+ color: black;
134
+ box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38);
135
+ }
136
+ /* box-shadow: 0px 0px 10px 0px rgba(16, 86, 82, 0.38); */
137
+ .box-inner-shadow:hover {
138
+ box-shadow: 0 0 0 1px #e5e7eb inset, 0 4px 6px -1px rgba(0, 0, 0, 0.1),
139
+ 0 2px 4px -1px rgba(0, 0, 0, 0.06);
140
+ }
141
+ /* Date Picker Css */
142
+ .react-datepicker__day--selected {
143
+ background-color: #105652 !important;
144
+ }
145
+ .react-datepicker__header {
146
+ background: white !important;
147
+ border: none !important;
148
+ }
149
+ .react-datepicker {
150
+ box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15) !important;
151
+ border-radius: 0.375rem !important;
152
+ border: none !important;
153
+ }
154
+ .react-datepicker__day--keyboard-selected {
155
+ background-color: white !important;
156
+ color: black !important;
157
+ }
158
+ .react-datepicker__day--outside-month {
159
+ color: rgb(161 161 170) !important;
160
+ }
161
+ .react-datepicker__month-container {
162
+ padding-top: 1rem;
163
+ padding-left: 1rem;
164
+ padding-right: 1rem;
165
+ padding-bottom: 0.5rem;
166
+ }
167
+ .react-datepicker-popper {
168
+ transform: translate(0px 295px) !important;
169
+ }
170
+ .react-datepicker__input-container {
171
+ text-align: center !important;
172
+ border-radius: 0.375rem !important;
173
+ transition: all 0.3s;
174
+ }
175
+ .react-datepicker__input-container > input {
176
+ cursor: pointer !important;
177
+ }
178
+ .react-datepicker__input-container:hover {
179
+ box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.15) !important;
180
+ }
181
+ .react-datepicker__navigation {
182
+ top: 18px !important;
183
+ }
184
+ .react-datepicker__navigation--next {
185
+ right: 20px !important;
186
+ }
187
+ .react-datepicker__navigation--previous {
188
+ left: 182px !important;
189
+ }
190
+ .react-datepicker__current-month {
191
+ text-align: left !important;
192
+ margin-left: 16px !important;
193
+ }
194
+ .react-datepicker__triangle {
195
+ display: none !important;
196
+ }
197
+ .react-datepicker__children-container {
198
+ width: 16rem !important;
199
+ }
200
+ /* toggle button */
201
+ .toggle[type="checkbox"]::before {
202
+ content: "";
203
+ position: absolute;
204
+ left: 1px;
205
+ top: 1px;
206
+ width: 1.1rem;
207
+ height: 1.1rem;
208
+ border-radius: 50%;
209
+ transform: scale(0.9);
210
+ background-color: white;
211
+ transition: left 100ms linear;
212
+ }
213
+ .toggle[type="checkbox"]:checked::before {
214
+ background-color: white;
215
+ left: 1.32rem;
216
+ }
217
+ .toggle[type="checkbox"]:checked {
218
+ background-color: #105652;
219
+ }
220
+ .toggle[type="checkbox"]:disabled {
221
+ opacity: 0.3;
222
+ cursor: not-allowed;
223
+ }
224
+ .toggle[type="checkbox"]:disabled + span {
225
+ opacity: 0.3;
226
+ cursor: not-allowed;
227
+ }
228
+
229
+ /* checkbox */
230
+ .check-box[type="checkbox"]:checked {
231
+ border-color: transparent;
232
+ background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M5.707 7.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4a1 1 0 0 0-1.414-1.414L7 8.586 5.707 7.293z'/%3e%3c/svg%3e");
233
+ background-size: 150%;
234
+ background-position: 50%;
235
+ background-repeat: no-repeat;
236
+ }
237
+ .check-box[type="checkbox"]:disabled {
238
+ background-color: #7f7f7f;
239
+ }
240
+ .box-shadow-green:hover {
241
+ box-shadow: 0px 0px 20px 0px rgba(16, 86, 82, 0.5);
242
+ }
243
+
244
+ .fade-enter {
245
+ opacity: 0;
246
+ }
247
+ .fade-enter-active {
248
+ opacity: 1;
249
+ transition: opacity 0.5s ease-in-out;
250
+ }
251
+ .fade-exit {
252
+ opacity: 1;
253
+ }
254
+ .fade-exit-active {
255
+ opacity: 0;
256
+ transition: opacity 0.5s ease-in-out;
257
+ }
258
+
259
+ .text-gradient-green-to-red {
260
+ background: var(
261
+ --gradient-main,
262
+ linear-gradient(269deg, #760023 0%, #105652 100%)
263
+ );
264
+ background-clip: text;
265
+ -webkit-background-clip: text;
266
+ -webkit-text-fill-color: transparent;
267
+ }
268
+
269
+ /* related to font rendering in safari engine */
270
+ * {
271
+ font-synthesis: none !important;
272
+ -webkit-font-smoothing: antialiased;
273
+ -moz-osx-font-smoothing: grayscale;
274
+ }
275
+
276
+ .stacking-context {
277
+ -webkit-mask-image: -webkit-radial-gradient(white, black);
278
+ mask-image: radial-gradient(white, black);
279
+ -webkit-mask-composite: destination-in;
280
+ mask-composite: intersect;
281
+ }
@@ -5,18 +5,19 @@ export default function Layout({ children, steps, script, title, }) {
5
5
  positions: "relative",
6
6
  sizes: "w-full min-h-screen overflow-hidden",
7
7
  displays: "flex flex-col items-center justify-center",
8
- spacings: "px-5",
8
+ spacings: "px-3 xs:px-5",
9
+ other: "bg-gray-50",
9
10
  };
10
11
  const headerBox = {
11
12
  display: "flex flex-row justify-between items-center",
12
13
  sizes: "h-15 w-full md:w-112.5",
13
- spacings: "px-5",
14
+ spacings: "px-5 mb-5",
14
15
  backgorunds: "bg-gradient-to-r from-green-dark to-crimson-burgundy rounded-lg",
15
16
  };
16
17
  const titleText = {
17
18
  textStyles: "font-bold text-base text-white",
18
19
  };
19
- return (_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: cn(headerBox), children: [_jsx("img", { src: "/images/logos/tosel-white-highdefinition.png", width: 93, height: 20, alt: "\uD1A0\uC140\uC758 \uBA54\uC778 \uB85C\uACE0" }), _jsx("div", { className: cn(titleText), children: title })] }), _jsx("div", { className: "mt-5 font-medium text-sm", children: script }), _jsx("div", { className: "flex gap-5 my-5", children: steps?.map((step, index) => (_jsx(Light, { flag: step }, index))) }), children] }));
20
+ return (_jsxs("div", { className: cn(container), children: [_jsxs("div", { className: cn(headerBox), children: [_jsx("img", { src: "/images/logos/tosel-white-highdefinition.png", width: 93, height: 20, alt: "\uD1A0\uC140\uC758 \uBA54\uC778 \uB85C\uACE0" }), _jsx("div", { className: cn(titleText), children: title })] }), script && _jsx("div", { className: "font-medium text-sm", children: script }), steps && (_jsx("div", { className: "flex gap-5 my-5", children: steps?.map((step, index) => (_jsx(Light, { flag: step }, index))) })), children] }));
20
21
  }
21
22
  function Light({ flag }) {
22
23
  const container = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edu-tosel/design",
3
- "version": "1.0.275",
3
+ "version": "1.0.276",
4
4
  "description": "UI components for International TOSEL Committee",
5
5
  "keywords": [
6
6
  "jsx",