@dotss/tictoccroc 0.4.2 → 0.5.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/dist/Calendar-BOLCHnjh.js +97 -0
- package/dist/TimePicker-BwACyeBR.js +120 -0
- package/dist/convertMdToHtml-Bmk0brLK.js +1431 -0
- package/dist/index.mjs +105 -200
- package/dist/parent/b2b/components/ActionButtons/ActionButtons.mjs +26 -29
- package/dist/parent/b2b/components/ActionButtons/index.mjs +5 -4
- package/dist/parent/b2b/components/BottomNotes/BottomNotes.mjs +37 -35
- package/dist/parent/b2b/components/BottomNotes/index.mjs +5 -4
- package/dist/parent/b2b/components/EmployeeNumberField/EmployeeNumberField.mjs +12 -15
- package/dist/parent/b2b/components/EmployeeNumberField/index.mjs +5 -4
- package/dist/parent/b2b/components/NameField/NameField.mjs +12 -7
- package/dist/parent/b2b/components/NameField/index.mjs +5 -4
- package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.mjs +27 -30
- package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.utils.mjs +7 -8
- package/dist/parent/b2b/components/PhoneNumberField/index.mjs +6 -7
- package/dist/parent/b2b/components/Title/Title.mjs +22 -16
- package/dist/parent/b2b/components/Title/index.mjs +4 -3
- package/dist/parent/b2b/components/TopLogo/TopLogo.mjs +55 -93
- package/dist/parent/b2b/components/TopLogo/index.mjs +5 -4
- package/dist/parent/b2b/components/index.mjs +9 -19
- package/dist/parent/b2b/utils/convertMdToHtml/convertMdToHtml.mjs +2 -1143
- package/dist/parent/b2b/utils/index.mjs +2 -4
- package/dist/parent/notification/components/NotificationCard/NotificationCard.mjs +90 -108
- package/dist/parent/notification/components/NotificationCard/index.mjs +5 -4
- package/dist/parent/notification/components/index.mjs +2 -4
- package/dist/parent/notification/utils/index.mjs +2 -4
- package/dist/parent/notification/utils/sanitize/sanitize.mjs +6 -6
- package/dist/purify.es-D3W4zDrg.js +549 -0
- package/dist/shared/components/Calendar/Calendar.mjs +2 -80
- package/dist/shared/components/Calendar/index.mjs +5 -4
- package/dist/shared/components/Carousel/Carousel.mjs +184 -210
- package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.mjs +10 -7
- package/dist/shared/components/Carousel/CarouselSlide/index.mjs +5 -4
- package/dist/shared/components/Carousel/index.mjs +6 -6
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.mjs +151 -183
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.utils.mjs +30 -50
- package/dist/shared/components/ChatKit/BotMessage/index.mjs +6 -8
- package/dist/shared/components/ChatKit/InputBar/InputBar.fallback.mjs +64 -84
- package/dist/shared/components/ChatKit/InputBar/InputBar.mjs +105 -130
- package/dist/shared/components/ChatKit/InputBar/index.mjs +6 -6
- package/dist/shared/components/ChatKit/Message/Message.fallback.mjs +50 -66
- package/dist/shared/components/ChatKit/Message/Message.mjs +178 -276
- package/dist/shared/components/ChatKit/Message/Message.utils.mjs +20 -31
- package/dist/shared/components/ChatKit/Message/index.mjs +7 -9
- package/dist/shared/components/ChatKit/Seperator/Seperator.mjs +31 -27
- package/dist/shared/components/ChatKit/Seperator/index.mjs +4 -3
- package/dist/shared/components/ChatKit/SystemMessage/(Actions)/DirectTrageRiskInfoBottomSheet/DirectTrageRiskInfoBottomSheet.mjs +183 -153
- package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.mjs +83 -108
- package/dist/shared/components/ChatKit/SystemMessage/SystemMessage.utils.mjs +5 -5
- package/dist/shared/components/ChatKit/SystemMessage/index.mjs +7 -8
- package/dist/shared/components/ChatKit/UnreadMessagePill/UnreadMessagePill.mjs +49 -54
- package/dist/shared/components/ChatKit/UnreadMessagePill/index.mjs +5 -4
- package/dist/shared/components/ChatKit/index.mjs +13 -29
- package/dist/shared/components/Image/Image.d.ts +2 -0
- package/dist/shared/components/Image/Image.error.mjs +34 -40
- package/dist/shared/components/Image/Image.mjs +247 -289
- package/dist/shared/components/Image/index.mjs +6 -6
- package/dist/shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs +19 -18
- package/dist/shared/components/LoadingAnnouncer/index.mjs +5 -4
- package/dist/shared/components/Masonry/Masonry.mjs +240 -276
- package/dist/shared/components/Masonry/Masonry.utils.mjs +62 -81
- package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.mjs +111 -144
- package/dist/shared/components/Masonry/MasonryBlock/index.mjs +5 -4
- package/dist/shared/components/Masonry/index.mjs +6 -6
- package/dist/shared/components/MediaDialog/MediaBlock/MediaBlock.mjs +54 -69
- package/dist/shared/components/MediaDialog/MediaBlock/index.mjs +5 -4
- package/dist/shared/components/MediaDialog/MediaDialog.mjs +216 -330
- package/dist/shared/components/MediaDialog/MediaDialogContent/MediaDialogContent.mjs +18 -21
- package/dist/shared/components/MediaDialog/MediaDialogContent/index.mjs +5 -4
- package/dist/shared/components/MediaDialog/MediaDialogFooter/MediaDialogFooter.mjs +22 -27
- package/dist/shared/components/MediaDialog/MediaDialogFooter/index.mjs +5 -4
- package/dist/shared/components/MediaDialog/MediaDialogToolbar/MediaDialogToolbar.mjs +15 -21
- package/dist/shared/components/MediaDialog/MediaDialogToolbar/index.mjs +5 -4
- package/dist/shared/components/MediaDialog/index.mjs +9 -12
- package/dist/shared/components/Roller/Roller.mjs +99 -132
- package/dist/shared/components/Roller/RollerBlock/RollerBlock.mjs +9 -6
- package/dist/shared/components/Roller/RollerBlock/index.mjs +5 -4
- package/dist/shared/components/Roller/index.mjs +6 -6
- package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.mjs +22 -30
- package/dist/shared/components/Scheduler/ScheduleBlock/index.mjs +5 -4
- package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.mjs +25 -35
- package/dist/shared/components/Scheduler/ScheduleEvent/index.mjs +5 -4
- package/dist/shared/components/Scheduler/Scheduler.mjs +472 -567
- package/dist/shared/components/Scheduler/Scheduler.utils.mjs +78 -101
- package/dist/shared/components/Scheduler/index.mjs +8 -10
- package/dist/shared/components/Swiper/Swiper.mjs +238 -283
- package/dist/shared/components/Swiper/Swiper.utils.mjs +19 -24
- package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.mjs +14 -17
- package/dist/shared/components/Swiper/SwiperBlock/index.mjs +5 -4
- package/dist/shared/components/Swiper/index.mjs +6 -6
- package/dist/shared/components/TextField/TextField.mjs +44 -55
- package/dist/shared/components/TextField/index.mjs +5 -4
- package/dist/shared/components/TimePicker/TimePicker.mjs +2 -120
- package/dist/shared/components/TimePicker/index.mjs +5 -4
- package/dist/shared/components/index.mjs +36 -75
- package/dist/shared/hooks/index.mjs +4 -8
- package/dist/shared/hooks/useCombineRef/index.mjs +5 -4
- package/dist/shared/hooks/useCombineRef/useCombineRef.mjs +7 -7
- package/dist/shared/hooks/useInView/index.mjs +5 -4
- package/dist/shared/hooks/useInView/useInView.d.ts +2 -1
- package/dist/shared/hooks/useInView/useInView.mjs +37 -47
- package/dist/shared/hooks/useIsomorphicLayoutEffect/index.mjs +5 -4
- package/dist/shared/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs +6 -6
- package/dist/shared/typings/common.mjs +6 -4
- package/dist/shared/typings/index.mjs +2 -4
- package/dist/shared/utils/ageToBirthDate/ageToBirthDate.mjs +17 -9
- package/dist/shared/utils/ageToBirthDate/index.mjs +5 -4
- package/dist/shared/utils/birthDateToAge/birthDateToAge.mjs +9 -10
- package/dist/shared/utils/birthDateToAge/index.mjs +4 -3
- package/dist/shared/utils/combineRef/combineRef.mjs +20 -23
- package/dist/shared/utils/combineRef/index.mjs +5 -4
- package/dist/shared/utils/dayFlagToDay/dayFlagToDay.mjs +15 -23
- package/dist/shared/utils/dayFlagToDay/index.mjs +5 -4
- package/dist/shared/utils/getCareTypeLabel/getCareTypeLabel.mjs +13 -20
- package/dist/shared/utils/getCareTypeLabel/index.mjs +5 -4
- package/dist/shared/utils/getDateRange/getDateRange.mjs +15 -20
- package/dist/shared/utils/getDateRange/index.mjs +5 -4
- package/dist/shared/utils/getImageUrl/getImageUrl.mjs +7 -17
- package/dist/shared/utils/getImageUrl/index.mjs +5 -6
- package/dist/shared/utils/getTimeRange/getTimeRange.mjs +19 -21
- package/dist/shared/utils/getTimeRange/index.mjs +5 -4
- package/dist/shared/utils/getVimeoId/getVimeoId.mjs +11 -11
- package/dist/shared/utils/getVimeoId/index.mjs +5 -4
- package/dist/shared/utils/index.mjs +18 -36
- package/dist/shared/utils/isAndroid/index.mjs +5 -4
- package/dist/shared/utils/isAndroid/isAndroid.mjs +5 -5
- package/dist/shared/utils/isApp/index.mjs +5 -4
- package/dist/shared/utils/isApp/isApp.mjs +4 -4
- package/dist/shared/utils/isDesktop/index.mjs +5 -4
- package/dist/shared/utils/isDesktop/isDesktop.mjs +15 -15
- package/dist/shared/utils/isIos/index.mjs +5 -4
- package/dist/shared/utils/isIos/isIos.mjs +5 -5
- package/dist/shared/utils/isServer/index.mjs +4 -3
- package/dist/shared/utils/isServer/isServer.mjs +4 -4
- package/dist/shared/utils/objectToQueryString/index.mjs +5 -4
- package/dist/shared/utils/objectToQueryString/objectToQueryString.mjs +7 -8
- package/dist/shared/utils/parseQueryString/index.mjs +4 -3
- package/dist/shared/utils/parseQueryString/parseQueryString.mjs +5 -5
- package/dist/shared/utils/share/index.mjs +5 -4
- package/dist/shared/utils/share/share.mjs +12 -14
- package/dist/teacher/home/components/BannerAccount/BannerAccount.fallback.mjs +19 -11
- package/dist/teacher/home/components/BannerAccount/BannerAccount.mjs +83 -99
- package/dist/teacher/home/components/BannerAccount/index.mjs +6 -7
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.fallback.mjs +127 -67
- package/dist/teacher/home/components/Carousel1Account/Carousel1Account.mjs +68 -82
- package/dist/teacher/home/components/Carousel1Account/index.mjs +6 -7
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.fallback.mjs +112 -94
- package/dist/teacher/home/components/Carousel2Account/Carousel2Account.mjs +79 -85
- package/dist/teacher/home/components/Carousel2Account/index.mjs +6 -7
- package/dist/teacher/home/components/TextAccount/TextAccount.fallback.mjs +119 -108
- package/dist/teacher/home/components/TextAccount/TextAccount.mjs +91 -111
- package/dist/teacher/home/components/TextAccount/index.mjs +6 -7
- package/dist/teacher/home/components/index.mjs +9 -18
- package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.mjs +345 -442
- package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/index.mjs +5 -5
- package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.mjs +106 -109
- package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.utils.mjs +54 -58
- package/dist/teacher/profile/components/AbilityCollection/index.mjs +7 -8
- package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.mjs +73 -104
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs +81 -95
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/index.mjs +4 -3
- package/dist/teacher/profile/components/ActivityGallery/index.mjs +6 -6
- package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.mjs +148 -194
- package/dist/teacher/profile/components/AvailableScheduleSection/index.mjs +5 -4
- package/dist/teacher/profile/components/CareNoteSection/CareNote/CareNote.mjs +61 -53
- package/dist/teacher/profile/components/CareNoteSection/CareNote/index.mjs +5 -4
- package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.mjs +72 -81
- package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.utils.mjs +17 -12
- package/dist/teacher/profile/components/CareNoteSection/index.mjs +6 -6
- package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs +108 -134
- package/dist/teacher/profile/components/CareerSection/CareerItem/index.mjs +5 -4
- package/dist/teacher/profile/components/CareerSection/CareerSection.mjs +133 -176
- package/dist/teacher/profile/components/CareerSection/index.mjs +6 -6
- package/dist/teacher/profile/components/CertificateSection/CertificateItem/CertificateItem.mjs +82 -88
- package/dist/teacher/profile/components/CertificateSection/CertificateItem/index.mjs +4 -3
- package/dist/teacher/profile/components/CertificateSection/CertificateSection.mjs +112 -141
- package/dist/teacher/profile/components/CertificateSection/index.mjs +6 -6
- package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs +96 -111
- package/dist/teacher/profile/components/EducationSection/EducationItem/index.mjs +5 -4
- package/dist/teacher/profile/components/EducationSection/EducationSection.mjs +112 -141
- package/dist/teacher/profile/components/EducationSection/index.mjs +6 -6
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs +107 -102
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/index.mjs +5 -4
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs +85 -81
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.mjs +17 -12
- package/dist/teacher/profile/components/ParentReviewSection/index.mjs +7 -8
- package/dist/teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.mjs +43 -36
- package/dist/teacher/profile/components/PreferredActivityKeywordGroup/index.mjs +4 -3
- package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.mjs +44 -31
- package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.mjs +11 -12
- package/dist/teacher/profile/components/PreferredAgeGroup/index.mjs +5 -5
- package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.mjs +348 -433
- package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.utils.mjs +7 -7
- package/dist/teacher/profile/components/ProfileSummary/index.mjs +5 -4
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs +80 -105
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/index.mjs +5 -4
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadgeCollection.mjs +34 -27
- package/dist/teacher/profile/components/StatBadgeCollection/index.mjs +6 -6
- package/dist/teacher/profile/components/index.mjs +24 -48
- package/dist/teacher/profile/utils/index.mjs +2 -4
- package/dist/teacher/profile/utils/sortItems/index.mjs +5 -4
- package/dist/teacher/profile/utils/sortItems/sortItems.mjs +48 -48
- package/package.json +1 -1
- package/dist/purify.es-BGaRrCfO.js +0 -553
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
1
|
+
import e from "./AbilityBadge.mjs";
|
|
2
|
+
//#region teacher/profile/components/AbilityCollection/AbilityBadge/index.ts
|
|
3
|
+
var t = e;
|
|
4
|
+
//#endregion
|
|
5
|
+
export { e as AbilityBadge, t as default };
|
|
@@ -1,110 +1,107 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
106
|
-
);
|
|
1
|
+
import e from "./AbilityBadge/index.mjs";
|
|
2
|
+
import { Children as t, cloneElement as n, isValidElement as r, useRef as i, useState as a } from "react";
|
|
3
|
+
import { Button as o, Flexbox as s, Icon as c, Typography as l } from "@dotss/ui";
|
|
4
|
+
import u from "@dotss/ui/core/useTheme";
|
|
5
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
|
+
//#region teacher/profile/components/AbilityCollection/AbilityCollection.tsx
|
|
7
|
+
function p({ children: p, enableToggle: m = !1, ...h }) {
|
|
8
|
+
let { spacing: g } = u(), [_, v] = a(!1), [y, b] = a(0), [x, S] = a(0), C = i(null), w = t.toArray(p).filter(r).filter((t) => t.type === e), T = () => v((e) => !e), E = (e) => (t) => {
|
|
9
|
+
let n = Number(t.currentTarget.getAttribute("data-row") || -1), r = Number(t.currentTarget.getAttribute("data-col") || -1);
|
|
10
|
+
b(n), S(r), e?.(t);
|
|
11
|
+
}, D = (e) => (t) => {
|
|
12
|
+
let n = Number(t.currentTarget.getAttribute("data-row") || -1), r = Number(t.currentTarget.getAttribute("data-col") || -1);
|
|
13
|
+
switch (t.key) {
|
|
14
|
+
case "ArrowUp":
|
|
15
|
+
if (t.preventDefault(), n === 0) return;
|
|
16
|
+
b(n - 1), C.current?.querySelector(`[data-row="${n - 1}"][data-col="${r}"]`)?.focus();
|
|
17
|
+
break;
|
|
18
|
+
case "ArrowDown":
|
|
19
|
+
if (t.preventDefault(), n === 2 || n === 1 && m && !_) return;
|
|
20
|
+
b(n + 1), C.current?.querySelector(`[data-row="${n + 1}"][data-col="${r}"]`)?.focus();
|
|
21
|
+
break;
|
|
22
|
+
case "ArrowLeft":
|
|
23
|
+
if (t.preventDefault(), r === 0) return;
|
|
24
|
+
S(r - 1), C.current?.querySelector(`[data-row="${n}"][data-col="${r - 1}"]`)?.focus();
|
|
25
|
+
break;
|
|
26
|
+
case "ArrowRight":
|
|
27
|
+
if (t.preventDefault(), r === 2) return;
|
|
28
|
+
S(r + 1), C.current?.querySelector(`[data-row="${n}"][data-col="${r + 1}"]`)?.focus();
|
|
29
|
+
break;
|
|
30
|
+
case "Enter":
|
|
31
|
+
case " ":
|
|
32
|
+
t.preventDefault(), t.currentTarget.click();
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
e?.(t);
|
|
36
|
+
};
|
|
37
|
+
return /* @__PURE__ */ f(s, {
|
|
38
|
+
tag: "section",
|
|
39
|
+
flexDirection: "column",
|
|
40
|
+
gap: 4,
|
|
41
|
+
"aria-labelledby": "ability-collection-title",
|
|
42
|
+
...h,
|
|
43
|
+
inlineCSS: {
|
|
44
|
+
width: "100%",
|
|
45
|
+
...h?.inlineCSS
|
|
46
|
+
},
|
|
47
|
+
children: [
|
|
48
|
+
/* @__PURE__ */ d(l, {
|
|
49
|
+
id: "ability-collection-title",
|
|
50
|
+
tag: "h2",
|
|
51
|
+
variant: "h2B",
|
|
52
|
+
children: "능력치 배지"
|
|
53
|
+
}),
|
|
54
|
+
/* @__PURE__ */ d(s, {
|
|
55
|
+
ref: C,
|
|
56
|
+
id: "ability-badge-grid",
|
|
57
|
+
role: "grid",
|
|
58
|
+
gap: 2,
|
|
59
|
+
pt: 3,
|
|
60
|
+
pb: 3,
|
|
61
|
+
alignItems: "center",
|
|
62
|
+
inlineCSS: {
|
|
63
|
+
display: "grid",
|
|
64
|
+
gridTemplateColumns: "repeat(3, 1fr)",
|
|
65
|
+
width: "inherit",
|
|
66
|
+
columnGap: g.content(2),
|
|
67
|
+
rowGap: g.content(6),
|
|
68
|
+
maxHeight: _ ? void 0 : m ? `calc(2 * 74px + ${g.content(12)}px)` : void 0,
|
|
69
|
+
overflow: "hidden"
|
|
70
|
+
},
|
|
71
|
+
children: t.map(w, (e, t) => {
|
|
72
|
+
let r = Math.floor(t / 3), i = t % 3;
|
|
73
|
+
return /* @__PURE__ */ d(s, {
|
|
74
|
+
role: "gridcell",
|
|
75
|
+
children: n(e, {
|
|
76
|
+
tabIndex: y === r && x === i ? 0 : -1,
|
|
77
|
+
"data-row": r,
|
|
78
|
+
"data-col": i,
|
|
79
|
+
"aria-posinset": t + 1,
|
|
80
|
+
"aria-setsize": w.length,
|
|
81
|
+
onFocus: E(e.props.onFocus),
|
|
82
|
+
onKeyDown: D(e.props.onKeyDown),
|
|
83
|
+
...e.props
|
|
84
|
+
})
|
|
85
|
+
}, `ability-badge-gridcell-${t}`);
|
|
86
|
+
})
|
|
87
|
+
}),
|
|
88
|
+
m && /* @__PURE__ */ d(s, {
|
|
89
|
+
alignItems: "center",
|
|
90
|
+
justifyContent: "center",
|
|
91
|
+
inlineCSS: { width: "inherit" },
|
|
92
|
+
children: /* @__PURE__ */ d(o, {
|
|
93
|
+
fullWidth: !0,
|
|
94
|
+
variant: "text",
|
|
95
|
+
color: "secondary",
|
|
96
|
+
endAdornment: /* @__PURE__ */ d(c, { name: _ ? "ChevronUpLine" : "ChevronDownLine" }),
|
|
97
|
+
onClick: T,
|
|
98
|
+
"aria-controls": "ability-badge-grid",
|
|
99
|
+
"aria-expanded": _,
|
|
100
|
+
children: _ ? "접기" : "더 보기"
|
|
101
|
+
})
|
|
102
|
+
})
|
|
103
|
+
]
|
|
104
|
+
});
|
|
107
105
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
};
|
|
106
|
+
//#endregion
|
|
107
|
+
export { p as default };
|
|
@@ -1,61 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
//#region teacher/profile/components/AbilityCollection/AbilityCollection.utils.ts
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = "";
|
|
4
|
+
switch (e) {
|
|
5
|
+
case "창의악어":
|
|
6
|
+
n = "creative-icon.png";
|
|
7
|
+
break;
|
|
8
|
+
case "영어악어":
|
|
9
|
+
n = "english-icon.png";
|
|
10
|
+
break;
|
|
11
|
+
case "영유아악어":
|
|
12
|
+
n = "infant-icon.png";
|
|
13
|
+
break;
|
|
14
|
+
case "산업안전 보건교육":
|
|
15
|
+
n = "osh-education-icon.png";
|
|
16
|
+
break;
|
|
17
|
+
case "아동학대 예방교육":
|
|
18
|
+
n = "cap-education-icon.png";
|
|
19
|
+
break;
|
|
20
|
+
case "응급상황 대처교육":
|
|
21
|
+
n = "emergency-response-training-icon.png";
|
|
22
|
+
break;
|
|
23
|
+
case "놀이돌봄 기초교육":
|
|
24
|
+
n = "basic-play-care-education-icon.png";
|
|
25
|
+
break;
|
|
26
|
+
default: break;
|
|
27
|
+
}
|
|
28
|
+
return n = t ? n : `incomplete-${n}`, n;
|
|
27
29
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
label: "영유아 배지를 취득해야 12개월~24개월 아이 돌봄이 가능해요",
|
|
46
|
-
description: `영유아 발달에 대한 이해와 기저귀 갈이 등의
|
|
47
|
-
기본 돌봄 역량이 검증된 선생님이에요.`
|
|
48
|
-
}
|
|
30
|
+
var t = {
|
|
31
|
+
creativeFlag: "창의악어",
|
|
32
|
+
englishFlag: "영어악어",
|
|
33
|
+
infantsFlag: "영유아악어"
|
|
34
|
+
}, n = {
|
|
35
|
+
창의악어: {
|
|
36
|
+
label: "창의악어 배지를 취득해야 창의미술 수업을 할 수 있어요",
|
|
37
|
+
description: "창의미술에 대한 이해도와 만들기 능력이 검증된\n미술 수업 특화 선생님이에요."
|
|
38
|
+
},
|
|
39
|
+
영어악어: {
|
|
40
|
+
label: "영어악어 배지를 취득해야 영어 수업을 할 수 있어요",
|
|
41
|
+
description: "아이들의 발달 상황에 맞도록 영어로 상호작용을\n자유롭게 할 수 있는 회화 실력이 검증된\n영어 수업 특화 선생님이에요."
|
|
42
|
+
},
|
|
43
|
+
영유아악어: {
|
|
44
|
+
label: "영유아 배지를 취득해야 12개월~24개월 아이 돌봄이 가능해요",
|
|
45
|
+
description: "영유아 발달에 대한 이해와 기저귀 갈이 등의\n기본 돌봄 역량이 검증된 선생님이에요."
|
|
46
|
+
}
|
|
49
47
|
};
|
|
50
|
-
function
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
48
|
+
function r(e) {
|
|
49
|
+
return Object.keys(t).map((r) => ({
|
|
50
|
+
key: r,
|
|
51
|
+
name: t[r],
|
|
52
|
+
completed: e[r] === "Y",
|
|
53
|
+
...n[t[r]]
|
|
54
|
+
}));
|
|
57
55
|
}
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
t as getIconFileName
|
|
61
|
-
};
|
|
56
|
+
//#endregion
|
|
57
|
+
export { r as getAbilityCollection, e as getIconFileName };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
1
|
+
import { getAbilityCollection as e } from "./AbilityCollection.utils.mjs";
|
|
2
|
+
import t from "./AbilityBadge/index.mjs";
|
|
3
|
+
import n from "./AbilityCollection.mjs";
|
|
4
|
+
//#region teacher/profile/components/AbilityCollection/index.ts
|
|
5
|
+
var r = n;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { t as AbilityBadge, r as default, e as getAbilityCollection };
|
|
@@ -1,105 +1,74 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import "
|
|
6
|
-
|
|
7
|
-
function
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
G,
|
|
73
|
-
{
|
|
74
|
-
rowCount: f,
|
|
75
|
-
columnCount: c,
|
|
76
|
-
spacing: g,
|
|
77
|
-
edgeSpacing: b,
|
|
78
|
-
direction: h,
|
|
79
|
-
defaultContainerWidth: u,
|
|
80
|
-
defaultContainerHeight: v,
|
|
81
|
-
role: "group",
|
|
82
|
-
"aria-label": "콘텐츠 목록",
|
|
83
|
-
...d,
|
|
84
|
-
children: i.map((t, a) => x(t, a, i.length))
|
|
85
|
-
},
|
|
86
|
-
i.map((t) => t.key).join(",")
|
|
87
|
-
),
|
|
88
|
-
m && /* @__PURE__ */ e(
|
|
89
|
-
o,
|
|
90
|
-
{
|
|
91
|
-
mt: 2,
|
|
92
|
-
flexGrow: 1,
|
|
93
|
-
alignItems: "center",
|
|
94
|
-
justifyContent: "center",
|
|
95
|
-
inlineCSS: { width: "inherit" },
|
|
96
|
-
children: m
|
|
97
|
-
}
|
|
98
|
-
)
|
|
99
|
-
]
|
|
100
|
-
}
|
|
101
|
-
);
|
|
1
|
+
import e from "./ActivityGalleryItem/index.mjs";
|
|
2
|
+
import t from "../../../../shared/components/Masonry/index.mjs";
|
|
3
|
+
import { Children as n, isValidElement as r } from "react";
|
|
4
|
+
import { Button as i, Flexbox as a, Icon as o, Typography as s } from "@dotss/ui";
|
|
5
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
|
+
//#region teacher/profile/components/ActivityGallery/ActivityGallery.tsx
|
|
7
|
+
function u({ children: u, onClickViewAll: d, action: f, hideHeader: p = !1, masonryProps: { columnCount: m = 2, rowCount: h = 2, spacing: g = 2, edgeSpacing: _ = 0, direction: v = "horizontal", defaultContainerWidth: y = 360, defaultContainerHeight: b = 0, ...x } = {}, ...S }) {
|
|
8
|
+
let C = n.toArray(u).filter(r).filter((t) => t.type === e), w = C.length > 0, T = (e, t, n) => {
|
|
9
|
+
let r = e.props.type === "VIDEO" || e.props.type === "VIMEO" || e.props.type === "YOUTUBE" ? "동영상" : "사진";
|
|
10
|
+
r = e.props.primary ? `대표 ${r}` : r;
|
|
11
|
+
let i = {
|
|
12
|
+
role: "button",
|
|
13
|
+
"aria-label": `${r} (${n}개 중 ${t + 1}번째)`,
|
|
14
|
+
...e.props
|
|
15
|
+
};
|
|
16
|
+
return /* @__PURE__ */ c(e.type, { ...i }, `activity-gallery-item-${t}`);
|
|
17
|
+
};
|
|
18
|
+
return /* @__PURE__ */ l(a, {
|
|
19
|
+
tag: "section",
|
|
20
|
+
flexDirection: "column",
|
|
21
|
+
"aria-labelledby": p ? void 0 : "activity-gallery-title",
|
|
22
|
+
"aria-label": p ? "선생님 활동 갤러리" : void 0,
|
|
23
|
+
gap: 4,
|
|
24
|
+
...S,
|
|
25
|
+
inlineCSS: {
|
|
26
|
+
width: "100%",
|
|
27
|
+
...S?.inlineCSS
|
|
28
|
+
},
|
|
29
|
+
children: [
|
|
30
|
+
!p && /* @__PURE__ */ l(a, {
|
|
31
|
+
alignItems: "center",
|
|
32
|
+
justifyContent: "space-between",
|
|
33
|
+
gap: 2,
|
|
34
|
+
children: [/* @__PURE__ */ c(s, {
|
|
35
|
+
id: "activity-gallery-title",
|
|
36
|
+
tag: "h2",
|
|
37
|
+
variant: "h2B",
|
|
38
|
+
"aria-label": "선생님 활동 갤러리",
|
|
39
|
+
children: "활동 갤러리"
|
|
40
|
+
}), typeof d == "function" && /* @__PURE__ */ c(i, {
|
|
41
|
+
variant: "text",
|
|
42
|
+
size: "small",
|
|
43
|
+
color: "secondary",
|
|
44
|
+
endAdornment: /* @__PURE__ */ c(o, { name: "ChevronRightLine" }),
|
|
45
|
+
onClick: d,
|
|
46
|
+
children: "전체보기"
|
|
47
|
+
})]
|
|
48
|
+
}),
|
|
49
|
+
w && /* @__PURE__ */ c(t, {
|
|
50
|
+
rowCount: h,
|
|
51
|
+
columnCount: m,
|
|
52
|
+
spacing: g,
|
|
53
|
+
edgeSpacing: _,
|
|
54
|
+
direction: v,
|
|
55
|
+
defaultContainerWidth: y,
|
|
56
|
+
defaultContainerHeight: b,
|
|
57
|
+
role: "group",
|
|
58
|
+
"aria-label": "콘텐츠 목록",
|
|
59
|
+
...x,
|
|
60
|
+
children: C.map((e, t) => T(e, t, C.length))
|
|
61
|
+
}, C.map((e) => e.key).join(",")),
|
|
62
|
+
f && /* @__PURE__ */ c(a, {
|
|
63
|
+
mt: 2,
|
|
64
|
+
flexGrow: 1,
|
|
65
|
+
alignItems: "center",
|
|
66
|
+
justifyContent: "center",
|
|
67
|
+
inlineCSS: { width: "inherit" },
|
|
68
|
+
children: f
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
});
|
|
102
72
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
};
|
|
73
|
+
//#endregion
|
|
74
|
+
export { u as default };
|