@dotss/tictoccroc 0.0.0 → 0.0.2
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/LessonNotesSection-a2QNdQtj.js +196 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +109 -52
- package/dist/shared/components/Calendar/Calendar.d.ts +3 -2
- package/dist/shared/components/Calendar/Calendar.mjs +1 -1
- package/dist/shared/components/Carousel/Carousel.d.ts +1 -1
- package/dist/shared/components/Carousel/Carousel.mjs +13 -13
- package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.d.ts +1 -1
- package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.mjs +1 -1
- package/dist/shared/components/Image/Image.d.ts +1 -1
- package/dist/shared/components/Image/Image.mjs +94 -93
- package/dist/shared/components/ImageZoomDialog/ImageBlock/ImageBlock.mjs +12 -26
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialog.mjs +77 -98
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogContent/ImageZoomDialogContent.mjs +4 -4
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogFooter/ImageZoomDialogFooter.mjs +4 -4
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogToolbar/ImageZoomDialogToolbar.mjs +1 -1
- package/dist/shared/components/LoadingAnnouncer/LoadingAnnouncer.d.ts +7 -0
- package/dist/shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs +19 -0
- package/dist/shared/components/LoadingAnnouncer/index.d.ts +3 -0
- package/dist/shared/components/LoadingAnnouncer/index.mjs +4 -0
- package/dist/shared/components/Masonry/Masonry.d.ts +12 -0
- package/dist/shared/components/Masonry/Masonry.mjs +220 -0
- package/dist/shared/components/Masonry/Masonry.utils.d.ts +7 -0
- package/dist/shared/components/Masonry/Masonry.utils.mjs +76 -0
- package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.d.ts +11 -0
- package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.mjs +77 -0
- package/dist/shared/components/Masonry/MasonryBlock/index.d.ts +3 -0
- package/dist/shared/components/Masonry/MasonryBlock/index.mjs +4 -0
- package/dist/shared/components/Masonry/index.d.ts +4 -0
- package/dist/shared/components/Masonry/index.mjs +6 -0
- package/dist/shared/components/Roller/Roller.d.ts +1 -2
- package/dist/shared/components/Roller/Roller.mjs +7 -120
- package/dist/shared/components/Roller/RollerBlock/RollerBlock.d.ts +1 -1
- package/dist/shared/components/Roller/RollerBlock/RollerBlock.mjs +1 -1
- package/dist/shared/components/Roller/index.mjs +3 -3
- package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.d.ts +2 -5
- package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.mjs +1 -1
- package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.d.ts +1 -1
- package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.mjs +2 -2
- package/dist/shared/components/Scheduler/Scheduler.d.ts +4 -4
- package/dist/shared/components/Scheduler/Scheduler.mjs +167 -178
- package/dist/shared/components/Swiper/Swiper.d.ts +1 -1
- package/dist/shared/components/Swiper/Swiper.mjs +77 -97
- package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.d.ts +1 -1
- package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.mjs +1 -1
- package/dist/shared/components/TimePicker/TimePicker.d.ts +2 -2
- package/dist/shared/components/TimePicker/TimePicker.mjs +1 -1
- package/dist/shared/components/index.d.ts +14 -1
- package/dist/shared/components/index.mjs +40 -28
- package/dist/shared/utils/birthDateToAge/birthDateToAge.test.mjs +9 -10
- package/dist/shared/utils/getDateRange/getDateRange.d.ts +1 -1
- package/dist/shared/utils/getDateRange/getDateRange.test.mjs +27 -28
- package/dist/shared/utils/getImageUrl/getImageUrl.test.mjs +19 -20
- package/dist/shared/utils/getTimeRange/getTimeRange.test.mjs +22 -23
- package/dist/shared/utils/getVimeoId/getVimeoId.test.mjs +11 -12
- package/dist/shared/utils/index.d.ts +1 -0
- package/dist/shared/utils/index.mjs +6 -4
- package/dist/shared/utils/isAndroid/isAndroid.test.mjs +9 -10
- package/dist/shared/utils/isApp/isApp.test.mjs +14 -15
- package/dist/shared/utils/isDesktop/isDesktop.test.mjs +8 -9
- package/dist/shared/utils/isServer/isServer.test.mjs +10 -11
- package/dist/shared/utils/objectToQueryString/objectToQueryString.test.mjs +7 -7
- package/dist/shared/utils/parseQueryString/parseQueryString.test.mjs +10 -11
- package/dist/shared/utils/share/index.d.ts +2 -0
- package/dist/shared/utils/share/index.mjs +4 -0
- package/dist/shared/utils/share/share.d.ts +9 -0
- package/dist/shared/utils/share/share.mjs +15 -0
- package/dist/shared/utils/share/share.test.d.ts +1 -0
- package/dist/shared/utils/share/share.test.mjs +31 -0
- package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.d.ts +15 -0
- package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.mjs +441 -0
- package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/index.d.ts +3 -0
- package/dist/teacher/profile/components/AbilityCollection/AbilityBadge/index.mjs +5 -0
- package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.d.ts +6 -0
- package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.mjs +111 -0
- package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.utils.d.ts +6 -0
- package/dist/teacher/profile/components/AbilityCollection/AbilityCollection.utils.mjs +43 -0
- package/dist/teacher/profile/components/AbilityCollection/index.d.ts +5 -0
- package/dist/teacher/profile/components/AbilityCollection/index.mjs +8 -0
- package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.d.ts +11 -0
- package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.mjs +101 -0
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.d.ts +8 -0
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs +124 -0
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/index.d.ts +3 -0
- package/dist/teacher/profile/components/ActivityGallery/ActivityGalleryItem/index.mjs +4 -0
- package/dist/teacher/profile/components/ActivityGallery/index.d.ts +4 -0
- package/dist/teacher/profile/components/ActivityGallery/index.mjs +6 -0
- package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.d.ts +22 -0
- package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.mjs +179 -0
- package/dist/teacher/profile/components/AvailableScheduleSection/index.d.ts +3 -0
- package/dist/teacher/profile/components/AvailableScheduleSection/index.mjs +4 -0
- package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.d.ts +10 -0
- package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs +136 -0
- package/dist/teacher/profile/components/CareerSection/CareerItem/index.d.ts +3 -0
- package/dist/teacher/profile/components/CareerSection/CareerItem/index.mjs +4 -0
- package/dist/teacher/profile/components/CareerSection/CareerSection.d.ts +9 -0
- package/dist/teacher/profile/components/CareerSection/CareerSection.mjs +185 -0
- package/dist/teacher/profile/components/CareerSection/index.d.ts +4 -0
- package/dist/teacher/profile/components/CareerSection/index.mjs +6 -0
- package/dist/teacher/profile/components/CertificationSection/CertificationItem/CertificationItem.d.ts +8 -0
- package/dist/teacher/profile/components/CertificationSection/CertificationItem/CertificationItem.mjs +91 -0
- package/dist/teacher/profile/components/CertificationSection/CertificationItem/index.d.ts +3 -0
- package/dist/teacher/profile/components/CertificationSection/CertificationItem/index.mjs +4 -0
- package/dist/teacher/profile/components/CertificationSection/CertificationSection.d.ts +9 -0
- package/dist/teacher/profile/components/CertificationSection/CertificationSection.mjs +152 -0
- package/dist/teacher/profile/components/CertificationSection/index.d.ts +4 -0
- package/dist/teacher/profile/components/CertificationSection/index.mjs +6 -0
- package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.d.ts +9 -0
- package/dist/teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs +105 -0
- package/dist/teacher/profile/components/EducationSection/EducationItem/index.d.ts +3 -0
- package/dist/teacher/profile/components/EducationSection/EducationItem/index.mjs +4 -0
- package/dist/teacher/profile/components/EducationSection/EducationSection.d.ts +9 -0
- package/dist/teacher/profile/components/EducationSection/EducationSection.mjs +152 -0
- package/dist/teacher/profile/components/EducationSection/index.d.ts +4 -0
- package/dist/teacher/profile/components/EducationSection/index.mjs +6 -0
- package/dist/teacher/profile/components/LessonNotesSection/LessonNote/LessonNote.d.ts +9 -0
- package/dist/teacher/profile/components/LessonNotesSection/LessonNote/LessonNote.mjs +54 -0
- package/dist/teacher/profile/components/LessonNotesSection/LessonNote/index.d.ts +3 -0
- package/dist/teacher/profile/components/LessonNotesSection/LessonNote/index.mjs +4 -0
- package/dist/teacher/profile/components/LessonNotesSection/LessonNotesSection.d.ts +7 -0
- package/dist/teacher/profile/components/LessonNotesSection/LessonNotesSection.mjs +8 -0
- package/dist/teacher/profile/components/LessonNotesSection/LessonNotesSection.utils.d.ts +4 -0
- package/dist/teacher/profile/components/LessonNotesSection/LessonNotesSection.utils.mjs +13 -0
- package/dist/teacher/profile/components/LessonNotesSection/index.d.ts +4 -0
- package/dist/teacher/profile/components/LessonNotesSection/index.mjs +6 -0
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.d.ts +10 -0
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs +103 -0
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/index.d.ts +3 -0
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewCard/index.mjs +4 -0
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.d.ts +7 -0
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs +79 -0
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.d.ts +4 -0
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.utils.mjs +13 -0
- package/dist/teacher/profile/components/ParentReviewSection/index.d.ts +4 -0
- package/dist/teacher/profile/components/ParentReviewSection/index.mjs +6 -0
- package/dist/teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.d.ts +9 -0
- package/dist/teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.mjs +37 -0
- package/dist/teacher/profile/components/PreferredActivityKeywordGroup/index.d.ts +3 -0
- package/dist/teacher/profile/components/PreferredActivityKeywordGroup/index.mjs +4 -0
- package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.d.ts +8 -0
- package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.mjs +32 -0
- package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.d.ts +18 -0
- package/dist/teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.mjs +14 -0
- package/dist/teacher/profile/components/PreferredAgeGroup/index.d.ts +4 -0
- package/dist/teacher/profile/components/PreferredAgeGroup/index.mjs +6 -0
- package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.d.ts +25 -1
- package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.mjs +413 -5
- package/dist/teacher/profile/components/ProfileSummary/index.d.ts +2 -1
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.d.ts +7 -0
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs +105 -0
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/index.d.ts +3 -0
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadge/index.mjs +4 -0
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadgeCollection.d.ts +6 -0
- package/dist/teacher/profile/components/StatBadgeCollection/StatBadgeCollection.mjs +28 -0
- package/dist/teacher/profile/components/StatBadgeCollection/index.d.ts +4 -0
- package/dist/teacher/profile/components/StatBadgeCollection/index.mjs +6 -0
- package/dist/teacher/profile/components/index.d.ts +24 -0
- package/dist/teacher/profile/components/index.mjs +46 -0
- package/package.json +2 -2
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
import { jsx as f, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as i, Children as k, isValidElement as E, useEffect as y, cloneElement as I, forwardRef as T } from "react";
|
|
3
|
+
import { Flexbox as d, Typography as S, Button as F, Icon as $ } from "@dotss/ui";
|
|
4
|
+
import N from "@dotss/ui/core/useTheme";
|
|
5
|
+
import X from "./shared/components/Roller/RollerBlock/RollerBlock.mjs";
|
|
6
|
+
import j from "./teacher/profile/components/LessonNotesSection/LessonNote/LessonNote.mjs";
|
|
7
|
+
function B({ children: g, spacing: p = 2, edgeSpacing: l = 4, rowCount: n = 1, inlineCSS: b }) {
|
|
8
|
+
const o = i(null), c = i(!1), s = i(!0), D = i(0), v = i(0), u = i(0), R = k.toArray(g).filter(E).filter((e) => e.type === X || e.type === j), h = R.length, M = (e) => {
|
|
9
|
+
var t, r;
|
|
10
|
+
c.current = !0, D.current = e.clientX - (((t = o.current) == null ? void 0 : t.offsetLeft) || 0), v.current = ((r = o.current) == null ? void 0 : r.scrollLeft) || 0;
|
|
11
|
+
}, w = (e) => {
|
|
12
|
+
c.current && (e.currentTarget.style.cursor = "grabbing", o.current && (o.current.scrollLeft = v.current - (e.clientX - o.current.offsetLeft - D.current)));
|
|
13
|
+
}, A = (e) => {
|
|
14
|
+
var r;
|
|
15
|
+
c.current = !1, v.current !== ((r = o.current) == null ? void 0 : r.scrollLeft) ? (e.currentTarget.style.cursor = "grab", s.current = !1, u.current && cancelAnimationFrame(u.current), u.current = requestAnimationFrame(() => {
|
|
16
|
+
s.current = !0;
|
|
17
|
+
})) : s.current = !0;
|
|
18
|
+
}, C = (e) => (t) => {
|
|
19
|
+
var x;
|
|
20
|
+
t.stopPropagation();
|
|
21
|
+
const r = Number(t.currentTarget.getAttribute("aria-posinset")) - 1;
|
|
22
|
+
let a = r;
|
|
23
|
+
switch (t.key) {
|
|
24
|
+
case "ArrowRight": {
|
|
25
|
+
t.preventDefault(), r + n < h && (a = r + n);
|
|
26
|
+
break;
|
|
27
|
+
}
|
|
28
|
+
case "ArrowLeft": {
|
|
29
|
+
t.preventDefault(), r - n >= 0 && (a = r - n);
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
case "ArrowDown": {
|
|
33
|
+
t.preventDefault(), (r + 1) % n !== 0 && r + 1 < h && (a = r + 1);
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
case "ArrowUp": {
|
|
37
|
+
t.preventDefault(), r % n !== 0 && r - 1 >= 0 && (a = r - 1);
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
case "Enter":
|
|
41
|
+
case " ": {
|
|
42
|
+
t.preventDefault(), t.currentTarget.click();
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
default:
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
if (a !== r) {
|
|
49
|
+
const L = (x = o.current) == null ? void 0 : x.children[a];
|
|
50
|
+
L == null || L.focus();
|
|
51
|
+
}
|
|
52
|
+
e == null || e(t);
|
|
53
|
+
};
|
|
54
|
+
return y(() => {
|
|
55
|
+
const e = o.current, t = (r) => {
|
|
56
|
+
s.current || r.stopPropagation();
|
|
57
|
+
};
|
|
58
|
+
return e == null || e.addEventListener("click", t), () => {
|
|
59
|
+
e == null || e.removeEventListener("click", t);
|
|
60
|
+
};
|
|
61
|
+
}, []), y(() => {
|
|
62
|
+
const e = o.current, t = (r) => {
|
|
63
|
+
r.stopPropagation();
|
|
64
|
+
};
|
|
65
|
+
return e == null || e.addEventListener("touchmove", t), () => {
|
|
66
|
+
e == null || e.removeEventListener("touchmove", t);
|
|
67
|
+
};
|
|
68
|
+
}, []), y(() => () => {
|
|
69
|
+
u.current && cancelAnimationFrame(u.current);
|
|
70
|
+
}, []), /* @__PURE__ */ f(
|
|
71
|
+
d,
|
|
72
|
+
{
|
|
73
|
+
ref: o,
|
|
74
|
+
alignItems: "baseline",
|
|
75
|
+
gap: p,
|
|
76
|
+
pl: l,
|
|
77
|
+
pr: l,
|
|
78
|
+
onMouseDown: M,
|
|
79
|
+
onMouseMove: w,
|
|
80
|
+
onMouseUp: A,
|
|
81
|
+
onMouseLeave: A,
|
|
82
|
+
role: "list",
|
|
83
|
+
"aria-roledescription": "carousel",
|
|
84
|
+
"aria-label": "슬라이더",
|
|
85
|
+
inlineCSS: {
|
|
86
|
+
display: "grid",
|
|
87
|
+
gridAutoFlow: "column",
|
|
88
|
+
gridAutoColumns: "min-content",
|
|
89
|
+
overflowX: "auto",
|
|
90
|
+
scrollbarWidth: "none",
|
|
91
|
+
cursor: "grab",
|
|
92
|
+
transform: "translate3d(0, 0, 0)",
|
|
93
|
+
"&::-webkit-scrollbar": {
|
|
94
|
+
display: "none"
|
|
95
|
+
},
|
|
96
|
+
...b
|
|
97
|
+
},
|
|
98
|
+
children: k.map(
|
|
99
|
+
R,
|
|
100
|
+
(e, t) => {
|
|
101
|
+
var r;
|
|
102
|
+
return I(e, {
|
|
103
|
+
role: "listitem",
|
|
104
|
+
tabIndex: 0,
|
|
105
|
+
"aria-roledescription": "slide",
|
|
106
|
+
"aria-posinset": t + 1,
|
|
107
|
+
"aria-setsize": h,
|
|
108
|
+
onKeyDown: C(e.props.onKeyDown),
|
|
109
|
+
...e.props,
|
|
110
|
+
style: {
|
|
111
|
+
...(r = e.props) == null ? void 0 : r.style,
|
|
112
|
+
gridRow: `${t % n + 1} / ${t % n + 1}`
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
)
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
const H = T(
|
|
121
|
+
({ children: g, totalCount: p = 0, onClickViewAll: l, ...n }, b) => {
|
|
122
|
+
const {
|
|
123
|
+
palette: { background: o },
|
|
124
|
+
spacing: c
|
|
125
|
+
} = N(), s = k.count(g);
|
|
126
|
+
return /* @__PURE__ */ m(
|
|
127
|
+
d,
|
|
128
|
+
{
|
|
129
|
+
ref: b,
|
|
130
|
+
tag: "section",
|
|
131
|
+
pt: 10,
|
|
132
|
+
pb: 10,
|
|
133
|
+
pl: 4,
|
|
134
|
+
pr: 4,
|
|
135
|
+
gap: 4,
|
|
136
|
+
flexDirection: "column",
|
|
137
|
+
"aria-labelledby": "lesson-notes-section-title",
|
|
138
|
+
...n,
|
|
139
|
+
inlineCSS: {
|
|
140
|
+
width: "100%",
|
|
141
|
+
backgroundColor: o.primary,
|
|
142
|
+
...n == null ? void 0 : n.inlineCSS
|
|
143
|
+
},
|
|
144
|
+
children: [
|
|
145
|
+
/* @__PURE__ */ m(d, { alignItems: "center", justifyContent: "space-between", gap: 1, children: [
|
|
146
|
+
/* @__PURE__ */ f(d, { alignItems: "center", gap: 2, children: /* @__PURE__ */ m(S, { id: "lesson-notes-section-title", tag: "h2", variant: "h2B", children: [
|
|
147
|
+
"선생님의 수업노트",
|
|
148
|
+
p > 0 && /* @__PURE__ */ m(
|
|
149
|
+
S,
|
|
150
|
+
{
|
|
151
|
+
tag: "span",
|
|
152
|
+
variant: "h4R",
|
|
153
|
+
color: "grey.70",
|
|
154
|
+
inlineCSS: { marginLeft: c.content(2), verticalAlign: 2 },
|
|
155
|
+
children: [
|
|
156
|
+
"(",
|
|
157
|
+
p.toLocaleString(),
|
|
158
|
+
"개)"
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
)
|
|
162
|
+
] }) }),
|
|
163
|
+
typeof l == "function" && /* @__PURE__ */ f(
|
|
164
|
+
F,
|
|
165
|
+
{
|
|
166
|
+
variant: "text",
|
|
167
|
+
size: "small",
|
|
168
|
+
color: "secondary",
|
|
169
|
+
endAdornment: /* @__PURE__ */ f($, { name: "ChevronRightLine" }),
|
|
170
|
+
onClick: l,
|
|
171
|
+
children: "전체보기"
|
|
172
|
+
}
|
|
173
|
+
)
|
|
174
|
+
] }),
|
|
175
|
+
/* @__PURE__ */ f(
|
|
176
|
+
B,
|
|
177
|
+
{
|
|
178
|
+
rowCount: 1,
|
|
179
|
+
spacing: 3,
|
|
180
|
+
inlineCSS: {
|
|
181
|
+
width: `calc(100% + ${c.content(8)}px)`,
|
|
182
|
+
gridAutoColumns: s > 1 ? `calc(100% - ${c.content(8)}px)` : "100%",
|
|
183
|
+
margin: `0 -${c.content(4)}px`
|
|
184
|
+
},
|
|
185
|
+
children: g
|
|
186
|
+
}
|
|
187
|
+
)
|
|
188
|
+
]
|
|
189
|
+
}
|
|
190
|
+
);
|
|
191
|
+
}
|
|
192
|
+
);
|
|
193
|
+
export {
|
|
194
|
+
H as L,
|
|
195
|
+
B as R
|
|
196
|
+
};
|
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,54 +1,111 @@
|
|
|
1
|
-
import "./shared/components/Scheduler/Scheduler.mjs";
|
|
2
|
-
import { default as
|
|
3
|
-
import { default as
|
|
4
|
-
import { getAvailableDateRange as
|
|
5
|
-
import "
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import "./shared/components/
|
|
12
|
-
import "
|
|
13
|
-
import { default as
|
|
14
|
-
import {
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import "./shared/components/
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
1
|
+
import { default as t } from "./shared/components/Scheduler/Scheduler.mjs";
|
|
2
|
+
import { default as a } from "./shared/components/Scheduler/ScheduleEvent/ScheduleEvent.mjs";
|
|
3
|
+
import { default as l } from "./shared/components/Scheduler/ScheduleBlock/ScheduleBlock.mjs";
|
|
4
|
+
import { getAvailableDateRange as d } from "./shared/components/Scheduler/Scheduler.utils.mjs";
|
|
5
|
+
import { default as u } from "./shared/components/ImageZoomDialog/ImageZoomDialog.mjs";
|
|
6
|
+
import { default as i } from "./shared/components/ImageZoomDialog/ImageZoomDialogContent/ImageZoomDialogContent.mjs";
|
|
7
|
+
import { default as n } from "./shared/components/ImageZoomDialog/ImageZoomDialogFooter/ImageZoomDialogFooter.mjs";
|
|
8
|
+
import { default as g } from "./shared/components/ImageZoomDialog/ImageZoomDialogToolbar/ImageZoomDialogToolbar.mjs";
|
|
9
|
+
import { default as y } from "./shared/components/Swiper/Swiper.mjs";
|
|
10
|
+
import { default as C } from "./shared/components/Swiper/SwiperBlock/SwiperBlock.mjs";
|
|
11
|
+
import { default as v } from "./shared/components/Carousel/Carousel.mjs";
|
|
12
|
+
import { default as D } from "./shared/components/Carousel/CarouselSlide/CarouselSlide.mjs";
|
|
13
|
+
import { default as h } from "./shared/components/TimePicker/TimePicker.mjs";
|
|
14
|
+
import { L as P, R as k } from "./LessonNotesSection-a2QNdQtj.js";
|
|
15
|
+
import { default as L } from "./shared/components/Roller/RollerBlock/RollerBlock.mjs";
|
|
16
|
+
import { default as E } from "./shared/components/Image/Image.mjs";
|
|
17
|
+
import { default as Z } from "./shared/components/Calendar/Calendar.mjs";
|
|
18
|
+
import { default as M } from "./shared/components/Masonry/Masonry.mjs";
|
|
19
|
+
import { default as Q } from "./shared/components/Masonry/MasonryBlock/MasonryBlock.mjs";
|
|
20
|
+
import { default as F } from "./shared/components/LoadingAnnouncer/LoadingAnnouncer.mjs";
|
|
21
|
+
import { default as V } from "./shared/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs";
|
|
22
|
+
import { default as z } from "./shared/utils/getImageUrl/getImageUrl.mjs";
|
|
23
|
+
import { default as J } from "./shared/utils/isServer/isServer.mjs";
|
|
24
|
+
import { default as W } from "./shared/utils/getTimeRange/getTimeRange.mjs";
|
|
25
|
+
import { default as Y } from "./shared/utils/getDateRange/getDateRange.mjs";
|
|
26
|
+
import { default as $ } from "./shared/utils/isAndroid/isAndroid.mjs";
|
|
27
|
+
import { default as oe } from "./shared/utils/isApp/isApp.mjs";
|
|
28
|
+
import { default as re } from "./shared/utils/isDesktop/isDesktop.mjs";
|
|
29
|
+
import { default as fe } from "./shared/utils/birthDateToAge/birthDateToAge.mjs";
|
|
30
|
+
import { default as me } from "./shared/utils/objectToQueryString/objectToQueryString.mjs";
|
|
31
|
+
import { default as se } from "./shared/utils/getVimeoId/getVimeoId.mjs";
|
|
32
|
+
import { default as pe } from "./shared/utils/parseQueryString/parseQueryString.mjs";
|
|
33
|
+
import { default as xe } from "./shared/utils/share/share.mjs";
|
|
34
|
+
import { default as ce } from "./teacher/profile/components/ProfileSummary/ProfileSummary.mjs";
|
|
35
|
+
import { default as Se } from "./teacher/profile/components/StatBadgeCollection/StatBadgeCollection.mjs";
|
|
36
|
+
import { default as Ae } from "./teacher/profile/components/StatBadgeCollection/StatBadge/StatBadge.mjs";
|
|
37
|
+
import { default as Ie } from "./teacher/profile/components/ActivityGallery/ActivityGallery.mjs";
|
|
38
|
+
import { default as be } from "./teacher/profile/components/ActivityGallery/ActivityGalleryItem/ActivityGalleryItem.mjs";
|
|
39
|
+
import { default as Re } from "./teacher/profile/components/CertificationSection/CertificationSection.mjs";
|
|
40
|
+
import { default as Be } from "./teacher/profile/components/CertificationSection/CertificationItem/CertificationItem.mjs";
|
|
41
|
+
import { default as ke } from "./teacher/profile/components/CareerSection/CareerSection.mjs";
|
|
42
|
+
import { default as Le } from "./teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs";
|
|
43
|
+
import { default as Ee } from "./teacher/profile/components/EducationSection/EducationSection.mjs";
|
|
44
|
+
import { default as Ze } from "./teacher/profile/components/EducationSection/EducationItem/EducationItem.mjs";
|
|
45
|
+
import { default as Me } from "./teacher/profile/components/PreferredActivityKeywordGroup/PreferredActivityKeywordGroup.mjs";
|
|
46
|
+
import { default as Qe } from "./teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.mjs";
|
|
47
|
+
import { getPreferredAgeKeywords as Fe } from "./teacher/profile/components/PreferredAgeGroup/PreferredAgeGroup.utils.mjs";
|
|
48
|
+
import { default as Ve } from "./teacher/profile/components/AbilityCollection/AbilityCollection.mjs";
|
|
49
|
+
import { default as ze } from "./teacher/profile/components/AbilityCollection/AbilityBadge/AbilityBadge.mjs";
|
|
50
|
+
import { getAbilityCollection as Je } from "./teacher/profile/components/AbilityCollection/AbilityCollection.utils.mjs";
|
|
51
|
+
import { default as We } from "./teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.mjs";
|
|
52
|
+
import { default as Ye } from "./teacher/profile/components/LessonNotesSection/LessonNote/LessonNote.mjs";
|
|
53
|
+
import { default as $e } from "./teacher/profile/components/ParentReviewSection/ParentReviewSection.mjs";
|
|
54
|
+
import { default as oo } from "./teacher/profile/components/ParentReviewSection/ParentReviewCard/ParentReviewCard.mjs";
|
|
32
55
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
56
|
+
ze as AbilityBadge,
|
|
57
|
+
Ve as AbilityCollection,
|
|
58
|
+
Ie as ActivityGallery,
|
|
59
|
+
be as ActivityGalleryItem,
|
|
60
|
+
We as AvailableScheduleSection,
|
|
61
|
+
Z as Calendar,
|
|
62
|
+
Le as CareerItem,
|
|
63
|
+
ke as CareerSection,
|
|
64
|
+
v as Carousel,
|
|
65
|
+
D as CarouselSlide,
|
|
66
|
+
Be as CertificationItem,
|
|
67
|
+
Re as CertificationSection,
|
|
68
|
+
Ze as EducationItem,
|
|
69
|
+
Ee as EducationSection,
|
|
70
|
+
E as Image,
|
|
71
|
+
u as ImageZoomDialog,
|
|
72
|
+
i as ImageZoomDialogContent,
|
|
73
|
+
n as ImageZoomDialogFooter,
|
|
74
|
+
g as ImageZoomDialogToolbar,
|
|
75
|
+
Ye as LessonNote,
|
|
76
|
+
P as LessonNotesSection,
|
|
77
|
+
F as LoadingAnnouncer,
|
|
78
|
+
M as Masonry,
|
|
79
|
+
Q as MasonryBlock,
|
|
80
|
+
oo as ParentReviewCard,
|
|
81
|
+
$e as ParentReviewSection,
|
|
82
|
+
Me as PreferredActivityKeywordGroup,
|
|
83
|
+
Qe as PreferredAgeGroup,
|
|
84
|
+
ce as ProfileSummary,
|
|
85
|
+
k as Roller,
|
|
86
|
+
L as RollerBlock,
|
|
87
|
+
l as ScheduleBlock,
|
|
88
|
+
a as ScheduleEvent,
|
|
89
|
+
t as Scheduler,
|
|
90
|
+
Ae as StatBadge,
|
|
91
|
+
Se as StatBadgeCollection,
|
|
92
|
+
y as Swiper,
|
|
93
|
+
C as SwiperBlock,
|
|
94
|
+
h as TimePicker,
|
|
95
|
+
fe as birthDateToAge,
|
|
96
|
+
Je as getAbilityCollection,
|
|
97
|
+
d as getAvailableDateRange,
|
|
98
|
+
Y as getDateRange,
|
|
99
|
+
z as getImageUrl,
|
|
100
|
+
Fe as getPreferredAgeKeywords,
|
|
101
|
+
W as getTimeRange,
|
|
102
|
+
se as getVimeoId,
|
|
103
|
+
$ as isAndroid,
|
|
104
|
+
oe as isApp,
|
|
105
|
+
re as isDesktop,
|
|
106
|
+
J as isServer,
|
|
107
|
+
me as objectToQueryString,
|
|
108
|
+
pe as parseQueryString,
|
|
109
|
+
xe as share,
|
|
110
|
+
V as useIsomorphicLayoutEffect
|
|
54
111
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { DateValue } from '@dotss/ui/DatePicker';
|
|
2
|
+
import { DatePickerProps } from 'node_modules/@dotss/ui/DatePicker/DatePicker';
|
|
3
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
4
|
export interface CalendarProps extends Omit<FlexboxProps, 'onChange' | 'value'>, Pick<DatePickerProps, 'onChange' | 'value'> {
|
|
4
5
|
startDate?: DateValue;
|
|
5
6
|
endDate?: DateValue;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as f } from "react";
|
|
3
|
-
import u from "@
|
|
3
|
+
import u from "@dotss/ui/DatePicker";
|
|
4
4
|
import x from "../../utils/getDateRange/getDateRange.mjs";
|
|
5
5
|
import t from "@emotion/styled";
|
|
6
6
|
const $ = t.div`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as ce, jsx as k } from "react/jsx-runtime";
|
|
2
|
-
import { useState as J, useRef as
|
|
3
|
-
import { Flexbox as W } from "@
|
|
4
|
-
import ue from "@
|
|
2
|
+
import { useState as J, useRef as g, Children as Q, isValidElement as ie, useCallback as ae, useEffect as C, cloneElement as le } from "react";
|
|
3
|
+
import { Flexbox as W } from "@dotss/ui";
|
|
4
|
+
import ue from "@dotss/ui/core/useTheme";
|
|
5
5
|
import fe from "./CarouselSlide/CarouselSlide.mjs";
|
|
6
6
|
function ve({
|
|
7
7
|
children: Z,
|
|
@@ -12,7 +12,7 @@ function ve({
|
|
|
12
12
|
renderPagination: A,
|
|
13
13
|
...O
|
|
14
14
|
}) {
|
|
15
|
-
const { spacing: z } = ue(), [l, $] = J(1), [w, ee] = J(0), L =
|
|
15
|
+
const { spacing: z } = ue(), [l, $] = J(1), [w, ee] = J(0), L = g(null), o = g(null), u = g(null), I = g(0), Y = g(0), R = g(0), b = g(!1), T = g(!0), D = g(0), v = z.content(_), y = z.content(K), X = Q.toArray(Z).filter(ie).filter((e) => e.type === fe), M = X.length, F = (e, t) => {
|
|
16
16
|
I.current = e, Y.current = t;
|
|
17
17
|
}, P = () => {
|
|
18
18
|
var s;
|
|
@@ -23,10 +23,10 @@ function ve({
|
|
|
23
23
|
t ? c = l + 1 : r ? c = l - 1 : T.current = !0, o.current.style.transition = "transform 0.2s", o.current.style.cursor = "grab", S(c);
|
|
24
24
|
}, S = ae(
|
|
25
25
|
(e, t = 0) => {
|
|
26
|
-
var h,
|
|
26
|
+
var h, m, E;
|
|
27
27
|
if (!o.current) return;
|
|
28
28
|
$(e);
|
|
29
|
-
const r = e === 1, c = e === w, s = (((h = L.current) == null ? void 0 : h.offsetWidth) || 0) - y, f = (((E = (
|
|
29
|
+
const r = e === 1, c = e === w, s = (((h = L.current) == null ? void 0 : h.offsetWidth) || 0) - y, f = (((E = (m = u.current) == null ? void 0 : m.children[0]) == null ? void 0 : E.clientWidth) || 0) + v, i = (s - f * Math.floor(s / f) - v) / 2, d = f * (e - 1) - i;
|
|
30
30
|
r ? o.current.style.transform = `translate3d(${t}px, 0, 0)` : c ? o.current.style.transform = `translate3d(${-(d - i) + t}px, 0, 0)` : o.current.style.transform = `translate3d(${-d + t}px, 0, 0)`;
|
|
31
31
|
},
|
|
32
32
|
[y, v, w]
|
|
@@ -37,13 +37,13 @@ function ve({
|
|
|
37
37
|
}, se = (e) => (t) => {
|
|
38
38
|
var N, U, q, G, V, B;
|
|
39
39
|
t.stopPropagation();
|
|
40
|
-
const r = Array.from(((N = u.current) == null ? void 0 : N.children) || []).indexOf(t.currentTarget), c = (((U = L.current) == null ? void 0 : U.offsetWidth) || 0) - y * 2, s = (((G = (q = u.current) == null ? void 0 : q.children[0]) == null ? void 0 : G.clientWidth) || 0) + v, i = Math.floor(c / (s / x)) * a, d = (l - 1) * i, h = d + i - 1,
|
|
40
|
+
const r = Array.from(((N = u.current) == null ? void 0 : N.children) || []).indexOf(t.currentTarget), c = (((U = L.current) == null ? void 0 : U.offsetWidth) || 0) - y * 2, s = (((G = (q = u.current) == null ? void 0 : q.children[0]) == null ? void 0 : G.clientWidth) || 0) + v, i = Math.floor(c / (s / x)) * a, d = (l - 1) * i, h = d + i - 1, m = ((V = u.current) == null ? void 0 : V.children.length) || 0, E = r % a, j = Math.floor(r / a);
|
|
41
41
|
let p = r;
|
|
42
42
|
switch (t.key) {
|
|
43
43
|
case "ArrowRight": {
|
|
44
44
|
t.preventDefault();
|
|
45
45
|
const n = (j + 1) * a + E;
|
|
46
|
-
n <
|
|
46
|
+
n < m && (p = n);
|
|
47
47
|
break;
|
|
48
48
|
}
|
|
49
49
|
case "ArrowLeft": {
|
|
@@ -55,7 +55,7 @@ function ve({
|
|
|
55
55
|
case "ArrowDown": {
|
|
56
56
|
t.preventDefault();
|
|
57
57
|
const n = r + 1;
|
|
58
|
-
n <
|
|
58
|
+
n < m && n % a > E && (p = n);
|
|
59
59
|
break;
|
|
60
60
|
}
|
|
61
61
|
case "ArrowUp": {
|
|
@@ -77,7 +77,7 @@ function ve({
|
|
|
77
77
|
n == null || n.focus();
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
|
-
p >= 0 && p <
|
|
80
|
+
p >= 0 && p < m && (D.current = requestAnimationFrame(() => {
|
|
81
81
|
var H;
|
|
82
82
|
const n = (H = u.current) == null ? void 0 : H.children[p];
|
|
83
83
|
n == null || n.focus();
|
|
@@ -94,7 +94,7 @@ function ve({
|
|
|
94
94
|
const e = () => {
|
|
95
95
|
var i, d, h;
|
|
96
96
|
const t = (((i = L.current) == null ? void 0 : i.offsetWidth) || 0) - y * 2, r = (((h = (d = u.current) == null ? void 0 : d.children[0]) == null ? void 0 : h.clientWidth) || 0) + v, c = Math.floor(t / (r / x)), s = Math.ceil(M / (a || 1)), f = Math.max(s - (c - 1), 1);
|
|
97
|
-
$((
|
|
97
|
+
$((m) => m > f ? f : m), ee(f);
|
|
98
98
|
};
|
|
99
99
|
return e(), window.addEventListener("resize", e), () => {
|
|
100
100
|
window.removeEventListener("resize", e);
|
|
@@ -124,7 +124,7 @@ function ve({
|
|
|
124
124
|
W,
|
|
125
125
|
{
|
|
126
126
|
flexDirection: "column",
|
|
127
|
-
role: "
|
|
127
|
+
role: "list",
|
|
128
128
|
"aria-roledescription": "carousel",
|
|
129
129
|
"aria-label": "슬라이더",
|
|
130
130
|
flexGrow: 1,
|
|
@@ -174,7 +174,7 @@ function ve({
|
|
|
174
174
|
(e, t) => {
|
|
175
175
|
var r;
|
|
176
176
|
return le(e, {
|
|
177
|
-
role: "
|
|
177
|
+
role: "listitem",
|
|
178
178
|
tabIndex: 0,
|
|
179
179
|
"aria-roledescription": "slide",
|
|
180
180
|
"aria-label": `${M}개 중 ${t + 1}번째 슬라이드`,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FlexboxProps } from 'node_modules/@
|
|
1
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
2
2
|
export type CarouselSlideProps = FlexboxProps;
|
|
3
3
|
declare function CarouselSlide({ children, ...props }: CarouselSlideProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default CarouselSlide;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLProps } from 'react';
|
|
2
|
-
import { FlexboxProps } from '
|
|
2
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
3
|
export interface ImageProps extends HTMLProps<HTMLImageElement> {
|
|
4
4
|
src: string;
|
|
5
5
|
width?: number;
|