touchstudy-core 0.1.58 → 0.1.60
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/dist/index.css +16 -9
- package/dist/index.js +65 -19
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +65 -19
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
@@ -157,26 +157,33 @@
|
|
157
157
|
justify-content: space-between !important; }
|
158
158
|
|
159
159
|
._2ibYC {
|
160
|
-
max-width: 40px;
|
161
|
-
max-height: 40px;
|
162
|
-
border-radius: 50%;
|
163
|
-
display: flex;
|
164
|
-
justify-content: center;
|
165
|
-
align-items: center;
|
166
160
|
font-size: 20px;
|
167
161
|
font-weight: 600;
|
168
162
|
line-height: 1;
|
169
163
|
color: #fff; }
|
170
164
|
._2ibYC img {
|
171
|
-
width:
|
172
|
-
|
165
|
+
width: 40px;
|
166
|
+
min-width: 40px;
|
167
|
+
max-width: 40px;
|
168
|
+
aspect-ratio: 1;
|
173
169
|
border-radius: 50%;
|
174
170
|
-o-object-fit: cover;
|
175
171
|
object-fit: cover;
|
176
172
|
border: 1px solid #DFE3E8; }
|
173
|
+
._2ibYC span {
|
174
|
+
display: flex;
|
175
|
+
justify-content: center;
|
176
|
+
align-items: center;
|
177
|
+
width: 40px;
|
178
|
+
min-width: 40px;
|
179
|
+
max-width: 40px;
|
180
|
+
aspect-ratio: 1;
|
181
|
+
border-radius: 50%;
|
182
|
+
background: #349056;
|
183
|
+
border: 1px solid #DFE3E8; }
|
177
184
|
|
178
185
|
._1JMRU {
|
179
|
-
border-radius:
|
186
|
+
border-radius: 6px !important;
|
180
187
|
border: 0;
|
181
188
|
max-width: 268px;
|
182
189
|
min-width: unset !important;
|
package/dist/index.js
CHANGED
@@ -2326,6 +2326,7 @@ var date = "날짜";
|
|
2326
2326
|
var the_code_has_been_copied_to_your_clipboard = "코드가 클립보드에 복사되었습니다.";
|
2327
2327
|
var an_unexpected_error_has_occurred = "예상치 못한 오류가 발생했습니다";
|
2328
2328
|
var select_roles = "역할 선택";
|
2329
|
+
var no_academy_selected = "선택한 아카데미 없음";
|
2329
2330
|
var lang_ko = {
|
2330
2331
|
problem_solving: problem_solving,
|
2331
2332
|
my_story: my_story,
|
@@ -2839,7 +2840,8 @@ var lang_ko = {
|
|
2839
2840
|
date: date,
|
2840
2841
|
the_code_has_been_copied_to_your_clipboard: the_code_has_been_copied_to_your_clipboard,
|
2841
2842
|
an_unexpected_error_has_occurred: an_unexpected_error_has_occurred,
|
2842
|
-
select_roles: select_roles
|
2843
|
+
select_roles: select_roles,
|
2844
|
+
no_academy_selected: no_academy_selected
|
2843
2845
|
};
|
2844
2846
|
|
2845
2847
|
var problem_solving$1 = "Problem Solving";
|
@@ -3387,6 +3389,7 @@ var add_lesson$1 = "Add Lesson";
|
|
3387
3389
|
var the_code_has_been_copied_to_your_clipboard$1 = "The code has been copied to your clipboard";
|
3388
3390
|
var an_unexpected_error_has_occurred$1 = "An unexpected error has occurred";
|
3389
3391
|
var select_roles$1 = "Select roles";
|
3392
|
+
var no_academy_selected$1 = "No Academy Selected";
|
3390
3393
|
var lang_en = {
|
3391
3394
|
problem_solving: problem_solving$1,
|
3392
3395
|
my_story: my_story$1,
|
@@ -3927,7 +3930,8 @@ var lang_en = {
|
|
3927
3930
|
add_lesson: add_lesson$1,
|
3928
3931
|
the_code_has_been_copied_to_your_clipboard: the_code_has_been_copied_to_your_clipboard$1,
|
3929
3932
|
an_unexpected_error_has_occurred: an_unexpected_error_has_occurred$1,
|
3930
|
-
select_roles: select_roles$1
|
3933
|
+
select_roles: select_roles$1,
|
3934
|
+
no_academy_selected: no_academy_selected$1
|
3931
3935
|
};
|
3932
3936
|
|
3933
3937
|
i18n.use(reactI18next.initReactI18next).init({
|
@@ -4192,7 +4196,8 @@ var TheAcademyDropdown = function TheAcademyDropdown(_ref) {
|
|
4192
4196
|
sx: _extends({}, popoverStyle)
|
4193
4197
|
}, React__default.createElement(material.Grid, {
|
4194
4198
|
container: true,
|
4195
|
-
spacing: isLargerThanLg ? "0" : "12px"
|
4199
|
+
spacing: isLargerThanLg ? "0" : "12px",
|
4200
|
+
width: isLargerThanLg ? "260px" : "auto"
|
4196
4201
|
}, React__default.createElement(material.Grid, {
|
4197
4202
|
item: true,
|
4198
4203
|
xs: 6,
|
@@ -4209,9 +4214,11 @@ var TheAcademyDropdown = function TheAcademyDropdown(_ref) {
|
|
4209
4214
|
sx: {
|
4210
4215
|
position: "relative",
|
4211
4216
|
height: "100%",
|
4212
|
-
px: isLargerThanLg ? "12px" : 0
|
4217
|
+
px: isLargerThanLg ? "12px" : 0,
|
4218
|
+
display: "flex",
|
4219
|
+
alignItems: "center"
|
4213
4220
|
}
|
4214
|
-
}, React__default.createElement(material.Typography, {
|
4221
|
+
}, selectedAcademy !== null && selectedAcademy !== void 0 && selectedAcademy.name ? React__default.createElement(material.Typography, {
|
4215
4222
|
textAlign: "start",
|
4216
4223
|
className: "" + styles["line-clamp"],
|
4217
4224
|
sx: {
|
@@ -4220,16 +4227,33 @@ var TheAcademyDropdown = function TheAcademyDropdown(_ref) {
|
|
4220
4227
|
lineHeight: '1.5em',
|
4221
4228
|
color: styles.gray_900
|
4222
4229
|
}
|
4223
|
-
},
|
4230
|
+
}, selectedAcademy.name) : React__default.createElement(material.Typography, {
|
4231
|
+
textAlign: "start",
|
4232
|
+
className: "" + styles["line-clamp"],
|
4233
|
+
sx: {
|
4234
|
+
fontSize: 14,
|
4235
|
+
fontWeight: 600,
|
4236
|
+
lineHeight: '1.5em',
|
4237
|
+
color: styles.gray_500
|
4238
|
+
}
|
4239
|
+
}, t("no_academy_selected")))), React__default.createElement(material.Grid, {
|
4224
4240
|
item: true,
|
4225
4241
|
xs: 6,
|
4226
|
-
lg: 2
|
4242
|
+
lg: 2,
|
4243
|
+
justifyContent: "center",
|
4244
|
+
alignItems: "center"
|
4245
|
+
}, React__default.createElement(material.Stack, {
|
4246
|
+
flexDirection: "row",
|
4247
|
+
width: "100%",
|
4248
|
+
height: "100%",
|
4249
|
+
justifyContent: "center",
|
4250
|
+
alignItems: "center"
|
4227
4251
|
}, React__default.createElement("div", {
|
4228
4252
|
className: "" + styles["switch-icon"]
|
4229
4253
|
}, React__default.createElement(go.GoArrowSwitch, {
|
4230
4254
|
size: 14,
|
4231
4255
|
color: styles.gray_900
|
4232
|
-
}))))), (isSuperAdmin || !isAdmin) && React__default.createElement(Popover, {
|
4256
|
+
})))))), (isSuperAdmin || !isAdmin) && React__default.createElement(Popover, {
|
4233
4257
|
open: !!open,
|
4234
4258
|
anchorEl: open,
|
4235
4259
|
onClose: handleClose,
|
@@ -4260,24 +4284,46 @@ var TheAcademyDropdown = function TheAcademyDropdown(_ref) {
|
|
4260
4284
|
return React__default.createElement(MenuItemCustom, {
|
4261
4285
|
key: option.id,
|
4262
4286
|
selected: option.id === (selectedAcademy === null || selectedAcademy === void 0 ? void 0 : selectedAcademy.id),
|
4287
|
+
sx: {
|
4288
|
+
whiteSpace: "wrap",
|
4289
|
+
borderRadius: "6px"
|
4290
|
+
},
|
4263
4291
|
onClick: function onClick() {
|
4264
4292
|
return option.id !== (selectedAcademy === null || selectedAcademy === void 0 ? void 0 : selectedAcademy.id) && handleChangeAcademy(option);
|
4265
|
-
},
|
4266
|
-
sx: {
|
4267
|
-
typography: "body2",
|
4268
|
-
p: "8px",
|
4269
|
-
borderRadius: "4px",
|
4270
|
-
fontSize: 14,
|
4271
|
-
fontWeight: 600
|
4272
4293
|
}
|
4273
|
-
}, React__default.createElement(
|
4274
|
-
|
4294
|
+
}, React__default.createElement(material.Stack, {
|
4295
|
+
flexDirection: "row",
|
4296
|
+
gap: "12px",
|
4297
|
+
position: "relative",
|
4298
|
+
width: "100%"
|
4299
|
+
}, React__default.createElement(material.Stack, {
|
4300
|
+
className: styles["image-academy"] + " " + styles["image-academy--item"],
|
4301
|
+
minWidth: "40px"
|
4275
4302
|
}, option.image ? React__default.createElement(Box, {
|
4276
4303
|
component: "img",
|
4277
4304
|
alt: option.name,
|
4278
4305
|
src: option.image
|
4279
|
-
}) : React__default.createElement("span", null, (_option$name$charAt = option.name.charAt(0)) === null || _option$name$charAt === void 0 ? void 0 : _option$name$charAt.toUpperCase())),
|
4280
|
-
|
4306
|
+
}) : React__default.createElement("span", null, (_option$name$charAt = option.name.charAt(0)) === null || _option$name$charAt === void 0 ? void 0 : _option$name$charAt.toUpperCase())), React__default.createElement(Box, {
|
4307
|
+
sx: {
|
4308
|
+
position: "relative",
|
4309
|
+
display: "flex",
|
4310
|
+
alignItems: "center",
|
4311
|
+
maxWidth: isLargerThanLg ? "200px" : "100px"
|
4312
|
+
}
|
4313
|
+
}, React__default.createElement(material.Typography, {
|
4314
|
+
className: "" + styles["line-clamp"],
|
4315
|
+
sx: {
|
4316
|
+
fontSize: 14,
|
4317
|
+
lineHeight: '1.5em',
|
4318
|
+
fontWeight: 600
|
4319
|
+
}
|
4320
|
+
}, option.name))));
|
4321
|
+
}), React__default.createElement(MenuItemCustom, {
|
4322
|
+
sx: {
|
4323
|
+
whiteSpace: "wrap",
|
4324
|
+
borderRadius: "6px"
|
4325
|
+
}
|
4326
|
+
}, React__default.createElement(material.Stack, {
|
4281
4327
|
display: "flex",
|
4282
4328
|
gap: "8px",
|
4283
4329
|
width: "100%",
|