@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,7 @@
|
|
|
1
|
+
import { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { ImageProps } from '../Image';
|
|
3
|
+
import { MasonryBlockProps } from './MasonryBlock';
|
|
4
|
+
export declare function getHorizontalLayoutRows(blocks: ReactElement<MasonryBlockProps>[], rowCount: number, fallbackWidth: number): ReactElement<MasonryBlockProps, string | import('react').JSXElementConstructor<any>>[][];
|
|
5
|
+
export declare function findNextFocusableElement(currentElement: HTMLDivElement, keyDirection: 'left' | 'right' | 'up' | 'down', candidates: (HTMLDivElement | null)[]): HTMLDivElement | null;
|
|
6
|
+
export declare function getNextIndexHorizontalFromRows(rows: HTMLDivElement[][], currentIndex: number, keyDirection: 'up' | 'down' | 'left' | 'right'): number | null;
|
|
7
|
+
export declare function findImageInChildren(children: ReactNode): ReactElement<ImageProps> | null;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { Children as M, isValidElement as y } from "react";
|
|
2
|
+
import E from "../Image/Image.mjs";
|
|
3
|
+
function X(n, r, e) {
|
|
4
|
+
const o = Array.from({ length: r }, () => []), t = Array(r).fill(0);
|
|
5
|
+
return n.forEach((c) => {
|
|
6
|
+
const g = t.indexOf(Math.min(...t));
|
|
7
|
+
o[g].push(c), t[g] += c.props.width ?? e;
|
|
8
|
+
}), o;
|
|
9
|
+
}
|
|
10
|
+
function B(n, r, e) {
|
|
11
|
+
const o = n.getBoundingClientRect(), t = (o.left + o.right) / 2, c = (o.top + o.bottom) / 2;
|
|
12
|
+
let g = null, h = 1 / 0;
|
|
13
|
+
for (const u of e) {
|
|
14
|
+
if (!u || u === n) continue;
|
|
15
|
+
const s = u.getBoundingClientRect(), R = (s.left + s.right) / 2, C = (s.top + s.bottom) / 2, a = R - t, i = C - c, l = Math.abs(i) < s.height * 0.75, f = Math.abs(a) < s.width * 0.75, m = r === "right" && a > 0 && l || r === "left" && a < 0 && l || r === "down" && i > 0 && f || r === "up" && i < 0 && f, d = Math.hypot(a, i);
|
|
16
|
+
m && d < h && (h = d, g = u);
|
|
17
|
+
}
|
|
18
|
+
return g;
|
|
19
|
+
}
|
|
20
|
+
function w(n, r, e) {
|
|
21
|
+
var s, R, C, a;
|
|
22
|
+
if (!n.length || r < 0) return null;
|
|
23
|
+
const o = n.length;
|
|
24
|
+
let t = -1, c = -1;
|
|
25
|
+
for (let i = 0; i < o; i++) {
|
|
26
|
+
for (let l = 0; l < n[i].length; l++) {
|
|
27
|
+
const f = n[i][l];
|
|
28
|
+
if (Number(f == null ? void 0 : f.getAttribute("aria-posinset")) - 1 === r) {
|
|
29
|
+
t = i, c = l;
|
|
30
|
+
break;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (t !== -1) break;
|
|
34
|
+
}
|
|
35
|
+
if (t === -1 || c === -1) return null;
|
|
36
|
+
const h = n[t][c].getBoundingClientRect(), u = (h.left + h.right) / 2;
|
|
37
|
+
if (e === "left" && c > 0)
|
|
38
|
+
return Number((s = n[t][c - 1]) == null ? void 0 : s.getAttribute("aria-posinset")) - 1;
|
|
39
|
+
if (e === "right" && c < n[t].length - 1)
|
|
40
|
+
return Number((R = n[t][c + 1]) == null ? void 0 : R.getAttribute("aria-posinset")) - 1;
|
|
41
|
+
if (e === "up" && t > 0) {
|
|
42
|
+
const i = n[t - 1];
|
|
43
|
+
let l = 0, f = 1 / 0;
|
|
44
|
+
return i.forEach((m, d) => {
|
|
45
|
+
const p = m.getBoundingClientRect(), A = (p.left + p.right) / 2, b = Math.abs(u - A);
|
|
46
|
+
b < f && (f = b, l = d);
|
|
47
|
+
}), Number((C = i[l]) == null ? void 0 : C.getAttribute("aria-posinset")) - 1;
|
|
48
|
+
}
|
|
49
|
+
if (e === "down" && t < o - 1) {
|
|
50
|
+
const i = n[t + 1];
|
|
51
|
+
let l = 0, f = 1 / 0;
|
|
52
|
+
return i.forEach((m, d) => {
|
|
53
|
+
const p = m.getBoundingClientRect(), A = (p.left + p.right) / 2, b = Math.abs(u - A);
|
|
54
|
+
b < f && (f = b, l = d);
|
|
55
|
+
}), Number((a = i[l]) == null ? void 0 : a.getAttribute("aria-posinset")) - 1;
|
|
56
|
+
}
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
function x(n) {
|
|
60
|
+
const r = M.toArray(n).filter(y).find((e) => e.type === E || e.type === "img");
|
|
61
|
+
if (r)
|
|
62
|
+
return r;
|
|
63
|
+
for (const e of M.toArray(n))
|
|
64
|
+
if (y(e) && e.props && e.props.children) {
|
|
65
|
+
const o = M.toArray(e.props.children).filter(y).find((t) => t.type === E || t.type === "img");
|
|
66
|
+
if (o)
|
|
67
|
+
return o;
|
|
68
|
+
}
|
|
69
|
+
return null;
|
|
70
|
+
}
|
|
71
|
+
export {
|
|
72
|
+
x as findImageInChildren,
|
|
73
|
+
B as findNextFocusableElement,
|
|
74
|
+
X as getHorizontalLayoutRows,
|
|
75
|
+
w as getNextIndexHorizontalFromRows
|
|
76
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
2
|
+
export interface MasonryBlockProps extends FlexboxProps {
|
|
3
|
+
spacing?: number;
|
|
4
|
+
width?: number;
|
|
5
|
+
height?: number;
|
|
6
|
+
borderRadius?: number | string;
|
|
7
|
+
direction?: 'horizontal' | 'vertical';
|
|
8
|
+
setInnerRef?: (ref: HTMLDivElement | null) => void;
|
|
9
|
+
}
|
|
10
|
+
declare const MasonryBlock: import('react').ForwardRefExoticComponent<Omit<MasonryBlockProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export default MasonryBlock;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as h, useState as m, useRef as k, useImperativeHandle as w, useEffect as c, Children as x, isValidElement as B, cloneElement as S } from "react";
|
|
3
|
+
import { Flexbox as f } from "@dotss/ui";
|
|
4
|
+
import C from "../../Image/Image.mjs";
|
|
5
|
+
const j = h(
|
|
6
|
+
({
|
|
7
|
+
children: g,
|
|
8
|
+
spacing: s = 2,
|
|
9
|
+
width: e = 0,
|
|
10
|
+
height: i = 0,
|
|
11
|
+
borderRadius: d,
|
|
12
|
+
direction: u = "vertical",
|
|
13
|
+
setInnerRef: o,
|
|
14
|
+
...r
|
|
15
|
+
}, v) => {
|
|
16
|
+
const [l, y] = m(e ?? 0), [a, b] = m(i ?? 0), n = k(null);
|
|
17
|
+
return w(v, () => n.current), c(() => {
|
|
18
|
+
y(e), b(i);
|
|
19
|
+
}, [e, i]), c(() => {
|
|
20
|
+
o == null || o(n.current);
|
|
21
|
+
}, [o]), /* @__PURE__ */ p(
|
|
22
|
+
f,
|
|
23
|
+
{
|
|
24
|
+
ref: n,
|
|
25
|
+
...r,
|
|
26
|
+
inlineCSS: {
|
|
27
|
+
scrollbarWidth: "none",
|
|
28
|
+
transform: "translate3d(0, 0, 0)",
|
|
29
|
+
"&::-webkit-scrollbar": {
|
|
30
|
+
display: "none"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
style: u === "vertical" ? {
|
|
34
|
+
...r.style,
|
|
35
|
+
position: "relative",
|
|
36
|
+
marginBottom: s,
|
|
37
|
+
borderRadius: d,
|
|
38
|
+
paddingTop: `calc(${a / l} * 100%)`,
|
|
39
|
+
transition: "padding-top 0.3s 0.1s",
|
|
40
|
+
overflow: "hidden"
|
|
41
|
+
} : {
|
|
42
|
+
...r.style,
|
|
43
|
+
position: "relative",
|
|
44
|
+
marginBottom: s,
|
|
45
|
+
borderRadius: d,
|
|
46
|
+
paddingLeft: l,
|
|
47
|
+
paddingTop: a,
|
|
48
|
+
transition: "padding-top 0.3s 0.1s, padding-left 0.3s 0.1s",
|
|
49
|
+
overflow: "hidden"
|
|
50
|
+
},
|
|
51
|
+
children: /* @__PURE__ */ p(
|
|
52
|
+
f,
|
|
53
|
+
{
|
|
54
|
+
inlineCSS: {
|
|
55
|
+
position: "absolute",
|
|
56
|
+
top: 0,
|
|
57
|
+
left: 0,
|
|
58
|
+
width: "100%",
|
|
59
|
+
height: "100%",
|
|
60
|
+
overflow: "auto",
|
|
61
|
+
zIndex: 1
|
|
62
|
+
},
|
|
63
|
+
children: x.toArray(g).filter(B).map((t) => t.type === C || t.type === "img" ? S(t, {
|
|
64
|
+
width: l,
|
|
65
|
+
height: a,
|
|
66
|
+
draggable: !1,
|
|
67
|
+
...t.props
|
|
68
|
+
}) : t)
|
|
69
|
+
}
|
|
70
|
+
)
|
|
71
|
+
}
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
export {
|
|
76
|
+
j as default
|
|
77
|
+
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { FlexboxProps } from 'node_modules/@
|
|
1
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
2
2
|
export interface RollerProps extends FlexboxProps {
|
|
3
3
|
spacing?: number;
|
|
4
4
|
edgeSpacing?: number;
|
|
5
5
|
rowCount?: number;
|
|
6
|
-
maxWidth?: number;
|
|
7
6
|
}
|
|
8
7
|
declare function Roller({ children, spacing, edgeSpacing, rowCount, inlineCSS }: RollerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
8
|
export default Roller;
|
|
@@ -1,122 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var t, e;
|
|
8
|
-
l.current = !0, b.current = r.clientX - (((t = n.current) == null ? void 0 : t.offsetLeft) || 0), f.current = ((e = n.current) == null ? void 0 : e.scrollLeft) || 0;
|
|
9
|
-
}, h = (r) => {
|
|
10
|
-
l.current && (r.currentTarget.style.cursor = "grabbing", n.current && (n.current.scrollLeft = f.current - (r.clientX - n.current.offsetLeft - b.current)));
|
|
11
|
-
}, v = (r) => {
|
|
12
|
-
var e;
|
|
13
|
-
l.current = !1, f.current !== ((e = n.current) == null ? void 0 : e.scrollLeft) ? (r.currentTarget.style.cursor = "grab", i.current = !1, c.current && cancelAnimationFrame(c.current), c.current = requestAnimationFrame(() => {
|
|
14
|
-
i.current = !0;
|
|
15
|
-
})) : i.current = !0;
|
|
16
|
-
}, y = (r) => (t) => {
|
|
17
|
-
var D;
|
|
18
|
-
t.stopPropagation();
|
|
19
|
-
const e = Number(t.currentTarget.getAttribute("aria-posinset")) - 1;
|
|
20
|
-
if (isNaN(e)) return;
|
|
21
|
-
let s = e;
|
|
22
|
-
switch (t.key) {
|
|
23
|
-
case "ArrowRight": {
|
|
24
|
-
t.preventDefault(), e + o < u && (s = e + o);
|
|
25
|
-
break;
|
|
26
|
-
}
|
|
27
|
-
case "ArrowLeft": {
|
|
28
|
-
t.preventDefault(), e - o >= 0 && (s = e - o);
|
|
29
|
-
break;
|
|
30
|
-
}
|
|
31
|
-
case "ArrowDown": {
|
|
32
|
-
t.preventDefault(), (e + 1) % o !== 0 && e + 1 < u && (s = e + 1);
|
|
33
|
-
break;
|
|
34
|
-
}
|
|
35
|
-
case "ArrowUp": {
|
|
36
|
-
t.preventDefault(), e % o !== 0 && e - 1 >= 0 && (s = e - 1);
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
case "Enter":
|
|
40
|
-
case " ": {
|
|
41
|
-
t.preventDefault(), t.currentTarget.click();
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
default:
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
if (s !== e) {
|
|
48
|
-
const p = (D = n.current) == null ? void 0 : D.children[s];
|
|
49
|
-
p == null || p.focus();
|
|
50
|
-
}
|
|
51
|
-
r == null || r(t);
|
|
52
|
-
};
|
|
53
|
-
return g(() => {
|
|
54
|
-
const r = n.current, t = (e) => {
|
|
55
|
-
i.current || e.stopPropagation();
|
|
56
|
-
};
|
|
57
|
-
return r == null || r.addEventListener("click", t), () => {
|
|
58
|
-
r == null || r.removeEventListener("click", t);
|
|
59
|
-
};
|
|
60
|
-
}, []), g(() => {
|
|
61
|
-
const r = n.current, t = (e) => {
|
|
62
|
-
e.stopPropagation();
|
|
63
|
-
};
|
|
64
|
-
return r == null || r.addEventListener("touchmove", t), () => {
|
|
65
|
-
r == null || r.removeEventListener("touchmove", t);
|
|
66
|
-
};
|
|
67
|
-
}, []), g(() => () => {
|
|
68
|
-
c.current && cancelAnimationFrame(c.current);
|
|
69
|
-
}, []), /* @__PURE__ */ E(
|
|
70
|
-
I,
|
|
71
|
-
{
|
|
72
|
-
ref: n,
|
|
73
|
-
alignItems: "baseline",
|
|
74
|
-
gap: A,
|
|
75
|
-
pl: m,
|
|
76
|
-
pr: m,
|
|
77
|
-
onMouseDown: R,
|
|
78
|
-
onMouseMove: h,
|
|
79
|
-
onMouseUp: v,
|
|
80
|
-
onMouseLeave: v,
|
|
81
|
-
role: "group",
|
|
82
|
-
"aria-roledescription": "carousel",
|
|
83
|
-
"aria-label": "슬라이더",
|
|
84
|
-
inlineCSS: {
|
|
85
|
-
display: "grid",
|
|
86
|
-
gridAutoFlow: "column",
|
|
87
|
-
gridAutoColumns: "min-content",
|
|
88
|
-
overflowX: "auto",
|
|
89
|
-
scrollbarWidth: "none",
|
|
90
|
-
cursor: "grab",
|
|
91
|
-
transform: "translate3d(0, 0, 0)",
|
|
92
|
-
"&::-webkit-scrollbar": {
|
|
93
|
-
display: "none"
|
|
94
|
-
},
|
|
95
|
-
...M
|
|
96
|
-
},
|
|
97
|
-
children: k.map(
|
|
98
|
-
d,
|
|
99
|
-
(r, t) => {
|
|
100
|
-
var e;
|
|
101
|
-
return F(r, {
|
|
102
|
-
role: "group",
|
|
103
|
-
tabIndex: 0,
|
|
104
|
-
"aria-roledescription": "slide",
|
|
105
|
-
"aria-label": `${u}개 중 ${t + 1}번째 슬라이드`,
|
|
106
|
-
"aria-posinset": t + 1,
|
|
107
|
-
"aria-setsize": u,
|
|
108
|
-
onKeyDown: y(r.props.onKeyDown),
|
|
109
|
-
...r.props,
|
|
110
|
-
style: {
|
|
111
|
-
...(e = r.props) == null ? void 0 : e.style,
|
|
112
|
-
gridRow: `${t % o + 1} / ${t % o + 1}`
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
)
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
}
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import "@dotss/ui";
|
|
4
|
+
import "./RollerBlock/RollerBlock.mjs";
|
|
5
|
+
import { R as e } from "../../../LessonNotesSection-a2QNdQtj.js";
|
|
6
|
+
import "../../../teacher/profile/components/LessonNotesSection/LessonNote/LessonNote.mjs";
|
|
120
7
|
export {
|
|
121
|
-
|
|
8
|
+
e as default
|
|
122
9
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FlexboxProps } from 'node_modules/@
|
|
1
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
2
2
|
export type RollerBlockProps = FlexboxProps;
|
|
3
3
|
declare function RollerBlock({ children, ...props }: RollerBlockProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default RollerBlock;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import l from "
|
|
2
|
-
import { default as
|
|
1
|
+
import { R as l } from "../../../LessonNotesSection-a2QNdQtj.js";
|
|
2
|
+
import { default as a } from "./RollerBlock/RollerBlock.mjs";
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
a as RollerBlock,
|
|
5
5
|
l as default
|
|
6
6
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { FlexboxProps } from 'node_modules/@
|
|
2
|
-
export
|
|
3
|
-
date: string;
|
|
4
|
-
time: string;
|
|
5
|
-
}
|
|
1
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
2
|
+
export type ScheduleBlockProps = FlexboxProps;
|
|
6
3
|
declare function ScheduleBlock({ children, style, ...props }: ScheduleBlockProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
4
|
export default ScheduleBlock;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { FlexboxProps } from 'node_modules/@
|
|
2
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
3
|
export interface ScheduleEventProps extends FlexboxProps {
|
|
4
4
|
startDate: string;
|
|
5
5
|
endDate: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { Flexbox as l, Typography as n } from "@
|
|
3
|
-
import p from "@
|
|
2
|
+
import { Flexbox as l, Typography as n } from "@dotss/ui";
|
|
3
|
+
import p from "@dotss/ui/core/useTheme";
|
|
4
4
|
function s({ children: r, style: t, startDate: f, endDate: i, ...o }) {
|
|
5
5
|
const {
|
|
6
6
|
palette: { brand: a }
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ReactNode
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
2
|
import { Dayjs } from 'dayjs';
|
|
3
|
-
import { FlexboxProps } from 'node_modules/@
|
|
3
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
4
4
|
export interface SchedulerProps extends FlexboxProps {
|
|
5
5
|
date?: Dayjs;
|
|
6
|
-
containerRef?: RefObject<HTMLElement | null>;
|
|
7
6
|
legend?: {
|
|
8
7
|
text: string;
|
|
9
8
|
color?: string;
|
|
10
9
|
}[];
|
|
10
|
+
minScheduleBlockHeight?: number;
|
|
11
11
|
renderScheduleBlock?: (date: string, time: string) => ReactNode;
|
|
12
12
|
onDateChange?: (date: Dayjs) => void;
|
|
13
13
|
}
|
|
14
|
-
declare function Scheduler({ children, date, legend,
|
|
14
|
+
declare function Scheduler({ children, date, legend, minScheduleBlockHeight, renderScheduleBlock, onDateChange, ...props }: SchedulerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
15
|
export default Scheduler;
|