@dotss/tictoccroc 0.0.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/index.d.ts +3 -0
- package/dist/index.mjs +54 -0
- package/dist/shared/components/Calendar/Calendar.d.ts +10 -0
- package/dist/shared/components/Calendar/Calendar.mjs +80 -0
- package/dist/shared/components/Calendar/index.d.ts +2 -0
- package/dist/shared/components/Calendar/index.mjs +4 -0
- package/dist/shared/components/Carousel/Carousel.d.ts +16 -0
- package/dist/shared/components/Carousel/Carousel.mjs +205 -0
- package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.d.ts +4 -0
- package/dist/shared/components/Carousel/CarouselSlide/CarouselSlide.mjs +8 -0
- package/dist/shared/components/Carousel/CarouselSlide/index.d.ts +3 -0
- package/dist/shared/components/Carousel/CarouselSlide/index.mjs +4 -0
- package/dist/shared/components/Carousel/index.d.ts +4 -0
- package/dist/shared/components/Carousel/index.mjs +6 -0
- package/dist/shared/components/Image/Image.d.ts +20 -0
- package/dist/shared/components/Image/Image.mjs +181 -0
- package/dist/shared/components/Image/index.d.ts +3 -0
- package/dist/shared/components/Image/index.mjs +4 -0
- package/dist/shared/components/ImageZoomDialog/ImageBlock/ImageBlock.d.ts +8 -0
- package/dist/shared/components/ImageZoomDialog/ImageBlock/ImageBlock.mjs +50 -0
- package/dist/shared/components/ImageZoomDialog/ImageBlock/index.d.ts +2 -0
- package/dist/shared/components/ImageZoomDialog/ImageBlock/index.mjs +4 -0
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialog.d.ts +16 -0
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialog.mjs +344 -0
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogContent/ImageZoomDialogContent.d.ts +3 -0
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogContent/ImageZoomDialogContent.mjs +23 -0
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogContent/index.d.ts +2 -0
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogContent/index.mjs +4 -0
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogFooter/ImageZoomDialogFooter.d.ts +3 -0
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogFooter/ImageZoomDialogFooter.mjs +28 -0
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogFooter/index.d.ts +2 -0
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogFooter/index.mjs +4 -0
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogToolbar/ImageZoomDialogToolbar.d.ts +3 -0
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogToolbar/ImageZoomDialogToolbar.mjs +22 -0
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogToolbar/index.d.ts +2 -0
- package/dist/shared/components/ImageZoomDialog/ImageZoomDialogToolbar/index.mjs +4 -0
- package/dist/shared/components/ImageZoomDialog/index.d.ts +6 -0
- package/dist/shared/components/ImageZoomDialog/index.mjs +10 -0
- package/dist/shared/components/Roller/Roller.d.ts +9 -0
- package/dist/shared/components/Roller/Roller.mjs +122 -0
- package/dist/shared/components/Roller/RollerBlock/RollerBlock.d.ts +4 -0
- package/dist/shared/components/Roller/RollerBlock/RollerBlock.mjs +8 -0
- package/dist/shared/components/Roller/RollerBlock/index.d.ts +3 -0
- package/dist/shared/components/Roller/RollerBlock/index.mjs +4 -0
- package/dist/shared/components/Roller/index.d.ts +4 -0
- package/dist/shared/components/Roller/index.mjs +6 -0
- package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.d.ts +7 -0
- package/dist/shared/components/Scheduler/ScheduleBlock/ScheduleBlock.mjs +31 -0
- package/dist/shared/components/Scheduler/ScheduleBlock/index.d.ts +3 -0
- package/dist/shared/components/Scheduler/ScheduleBlock/index.mjs +4 -0
- package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.d.ts +9 -0
- package/dist/shared/components/Scheduler/ScheduleEvent/ScheduleEvent.mjs +36 -0
- package/dist/shared/components/Scheduler/ScheduleEvent/index.d.ts +3 -0
- package/dist/shared/components/Scheduler/ScheduleEvent/index.mjs +4 -0
- package/dist/shared/components/Scheduler/Scheduler.d.ts +15 -0
- package/dist/shared/components/Scheduler/Scheduler.mjs +552 -0
- package/dist/shared/components/Scheduler/Scheduler.utils.d.ts +32 -0
- package/dist/shared/components/Scheduler/Scheduler.utils.mjs +92 -0
- package/dist/shared/components/Scheduler/index.d.ts +6 -0
- package/dist/shared/components/Scheduler/index.mjs +10 -0
- package/dist/shared/components/Swiper/Swiper.d.ts +25 -0
- package/dist/shared/components/Swiper/Swiper.mjs +274 -0
- package/dist/shared/components/Swiper/Swiper.utils.d.ts +13 -0
- package/dist/shared/components/Swiper/Swiper.utils.mjs +25 -0
- package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.d.ts +4 -0
- package/dist/shared/components/Swiper/SwiperBlock/SwiperBlock.mjs +19 -0
- package/dist/shared/components/Swiper/SwiperBlock/index.d.ts +3 -0
- package/dist/shared/components/Swiper/SwiperBlock/index.mjs +4 -0
- package/dist/shared/components/Swiper/index.d.ts +4 -0
- package/dist/shared/components/Swiper/index.mjs +6 -0
- package/dist/shared/components/TimePicker/TimePicker.d.ts +23 -0
- package/dist/shared/components/TimePicker/TimePicker.mjs +122 -0
- package/dist/shared/components/TimePicker/index.d.ts +3 -0
- package/dist/shared/components/TimePicker/index.mjs +4 -0
- package/dist/shared/components/index.d.ts +7 -0
- package/dist/shared/components/index.mjs +30 -0
- package/dist/shared/hooks/index.d.ts +1 -0
- package/dist/shared/hooks/index.mjs +4 -0
- package/dist/shared/hooks/useIsomorphicLayoutEffect/index.d.ts +2 -0
- package/dist/shared/hooks/useIsomorphicLayoutEffect/index.mjs +4 -0
- package/dist/shared/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/shared/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs +6 -0
- package/dist/shared/utils/birthDateToAge/birthDateToAge.d.ts +1 -0
- package/dist/shared/utils/birthDateToAge/birthDateToAge.mjs +11 -0
- package/dist/shared/utils/birthDateToAge/birthDateToAge.test.d.ts +1 -0
- package/dist/shared/utils/birthDateToAge/birthDateToAge.test.mjs +12 -0
- package/dist/shared/utils/birthDateToAge/index.d.ts +2 -0
- package/dist/shared/utils/birthDateToAge/index.mjs +4 -0
- package/dist/shared/utils/getDateRange/getDateRange.d.ts +11 -0
- package/dist/shared/utils/getDateRange/getDateRange.mjs +21 -0
- package/dist/shared/utils/getDateRange/getDateRange.test.d.ts +1 -0
- package/dist/shared/utils/getDateRange/getDateRange.test.mjs +61 -0
- package/dist/shared/utils/getDateRange/index.d.ts +2 -0
- package/dist/shared/utils/getDateRange/index.mjs +4 -0
- package/dist/shared/utils/getImageUrl/getImageUrl.d.ts +3 -0
- package/dist/shared/utils/getImageUrl/getImageUrl.mjs +17 -0
- package/dist/shared/utils/getImageUrl/getImageUrl.test.d.ts +1 -0
- package/dist/shared/utils/getImageUrl/getImageUrl.test.mjs +28 -0
- package/dist/shared/utils/getImageUrl/index.d.ts +3 -0
- package/dist/shared/utils/getImageUrl/index.mjs +6 -0
- package/dist/shared/utils/getTimeRange/getTimeRange.d.ts +12 -0
- package/dist/shared/utils/getTimeRange/getTimeRange.mjs +22 -0
- package/dist/shared/utils/getTimeRange/getTimeRange.test.d.ts +1 -0
- package/dist/shared/utils/getTimeRange/getTimeRange.test.mjs +76 -0
- package/dist/shared/utils/getTimeRange/index.d.ts +2 -0
- package/dist/shared/utils/getTimeRange/index.mjs +4 -0
- package/dist/shared/utils/getVimeoId/getVimeoId.d.ts +1 -0
- package/dist/shared/utils/getVimeoId/getVimeoId.mjs +12 -0
- package/dist/shared/utils/getVimeoId/getVimeoId.test.d.ts +1 -0
- package/dist/shared/utils/getVimeoId/getVimeoId.test.mjs +15 -0
- package/dist/shared/utils/getVimeoId/index.d.ts +2 -0
- package/dist/shared/utils/getVimeoId/index.mjs +4 -0
- package/dist/shared/utils/index.d.ts +11 -0
- package/dist/shared/utils/index.mjs +24 -0
- package/dist/shared/utils/isAndroid/index.d.ts +2 -0
- package/dist/shared/utils/isAndroid/index.mjs +4 -0
- package/dist/shared/utils/isAndroid/isAndroid.d.ts +1 -0
- package/dist/shared/utils/isAndroid/isAndroid.mjs +6 -0
- package/dist/shared/utils/isAndroid/isAndroid.test.d.ts +1 -0
- package/dist/shared/utils/isAndroid/isAndroid.test.mjs +13 -0
- package/dist/shared/utils/isApp/index.d.ts +2 -0
- package/dist/shared/utils/isApp/index.mjs +4 -0
- package/dist/shared/utils/isApp/isApp.d.ts +1 -0
- package/dist/shared/utils/isApp/isApp.mjs +6 -0
- package/dist/shared/utils/isApp/isApp.test.d.ts +1 -0
- package/dist/shared/utils/isApp/isApp.test.mjs +23 -0
- package/dist/shared/utils/isDesktop/index.d.ts +2 -0
- package/dist/shared/utils/isDesktop/index.mjs +4 -0
- package/dist/shared/utils/isDesktop/isDesktop.d.ts +1 -0
- package/dist/shared/utils/isDesktop/isDesktop.mjs +16 -0
- package/dist/shared/utils/isDesktop/isDesktop.test.d.ts +1 -0
- package/dist/shared/utils/isDesktop/isDesktop.test.mjs +11 -0
- package/dist/shared/utils/isServer/index.d.ts +2 -0
- package/dist/shared/utils/isServer/index.mjs +4 -0
- package/dist/shared/utils/isServer/isServer.d.ts +1 -0
- package/dist/shared/utils/isServer/isServer.mjs +6 -0
- package/dist/shared/utils/isServer/isServer.test.d.ts +1 -0
- package/dist/shared/utils/isServer/isServer.test.mjs +13 -0
- package/dist/shared/utils/objectToQueryString/index.d.ts +2 -0
- package/dist/shared/utils/objectToQueryString/index.mjs +4 -0
- package/dist/shared/utils/objectToQueryString/objectToQueryString.d.ts +1 -0
- package/dist/shared/utils/objectToQueryString/objectToQueryString.mjs +9 -0
- package/dist/shared/utils/objectToQueryString/objectToQueryString.test.d.ts +1 -0
- package/dist/shared/utils/objectToQueryString/objectToQueryString.test.mjs +11 -0
- package/dist/shared/utils/parseQueryString/index.d.ts +2 -0
- package/dist/shared/utils/parseQueryString/index.mjs +4 -0
- package/dist/shared/utils/parseQueryString/parseQueryString.d.ts +4 -0
- package/dist/shared/utils/parseQueryString/parseQueryString.mjs +6 -0
- package/dist/shared/utils/parseQueryString/parseQueryString.test.d.ts +1 -0
- package/dist/shared/utils/parseQueryString/parseQueryString.test.mjs +16 -0
- package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.d.ts +2 -0
- package/dist/teacher/profile/components/ProfileSummary/ProfileSummary.mjs +8 -0
- package/dist/teacher/profile/components/ProfileSummary/index.d.ts +2 -0
- package/dist/teacher/profile/components/ProfileSummary/index.mjs +4 -0
- package/package.json +100 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { jsx as E } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as a, Children as k, isValidElement as x, useEffect as g, cloneElement as F } from "react";
|
|
3
|
+
import { Flexbox as I } from "@thedotscorp/ui";
|
|
4
|
+
import T from "./RollerBlock/RollerBlock.mjs";
|
|
5
|
+
function P({ children: L, spacing: A = 2, edgeSpacing: m = 4, rowCount: o = 1, inlineCSS: M }) {
|
|
6
|
+
const n = a(null), l = a(!1), i = a(!0), b = a(0), f = a(0), c = a(0), d = k.toArray(L).filter(x).filter((r) => r.type === T).filter(Boolean), u = d.length, R = (r) => {
|
|
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
|
+
}
|
|
120
|
+
export {
|
|
121
|
+
P as default
|
|
122
|
+
};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FlexboxProps } from 'node_modules/@thedotscorp/ui/Flexbox/Flexbox';
|
|
2
|
+
export type RollerBlockProps = FlexboxProps;
|
|
3
|
+
declare function RollerBlock({ children, ...props }: RollerBlockProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
export default RollerBlock;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FlexboxProps } from 'node_modules/@thedotscorp/ui/Flexbox/Flexbox';
|
|
2
|
+
export interface ScheduleBlockProps extends FlexboxProps {
|
|
3
|
+
date: string;
|
|
4
|
+
time: string;
|
|
5
|
+
}
|
|
6
|
+
declare function ScheduleBlock({ children, style, ...props }: ScheduleBlockProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ScheduleBlock;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Flexbox as o, Typography as a } from "@thedotscorp/ui";
|
|
3
|
+
function x({ children: r, style: t, ...l }) {
|
|
4
|
+
return /* @__PURE__ */ e(
|
|
5
|
+
o,
|
|
6
|
+
{
|
|
7
|
+
p: 0.5,
|
|
8
|
+
flex: 1,
|
|
9
|
+
flexWrap: "wrap",
|
|
10
|
+
...l,
|
|
11
|
+
style: {
|
|
12
|
+
overflowX: "auto",
|
|
13
|
+
...t
|
|
14
|
+
},
|
|
15
|
+
children: /* @__PURE__ */ e(
|
|
16
|
+
a,
|
|
17
|
+
{
|
|
18
|
+
variant: "c5M",
|
|
19
|
+
textAlign: "center",
|
|
20
|
+
style: {
|
|
21
|
+
flex: 1
|
|
22
|
+
},
|
|
23
|
+
children: r
|
|
24
|
+
}
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
x as default
|
|
31
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FlexboxProps } from 'node_modules/@thedotscorp/ui/Flexbox/Flexbox';
|
|
3
|
+
export interface ScheduleEventProps extends FlexboxProps {
|
|
4
|
+
startDate: string;
|
|
5
|
+
endDate: string;
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare function ScheduleEvent({ children, style, startDate, endDate, ...props }: ScheduleEventProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default ScheduleEvent;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Flexbox as l, Typography as n } from "@thedotscorp/ui";
|
|
3
|
+
import p from "@thedotscorp/ui/core/useTheme";
|
|
4
|
+
function s({ children: r, style: t, startDate: f, endDate: i, ...o }) {
|
|
5
|
+
const {
|
|
6
|
+
palette: { brand: a }
|
|
7
|
+
} = p();
|
|
8
|
+
return /* @__PURE__ */ e(
|
|
9
|
+
l,
|
|
10
|
+
{
|
|
11
|
+
p: 0.5,
|
|
12
|
+
flex: 1,
|
|
13
|
+
flexWrap: "wrap",
|
|
14
|
+
...o,
|
|
15
|
+
style: {
|
|
16
|
+
backgroundColor: a.primary.main,
|
|
17
|
+
overflowX: "auto",
|
|
18
|
+
...t
|
|
19
|
+
},
|
|
20
|
+
children: /* @__PURE__ */ e(
|
|
21
|
+
n,
|
|
22
|
+
{
|
|
23
|
+
variant: "c5M",
|
|
24
|
+
textAlign: "center",
|
|
25
|
+
style: {
|
|
26
|
+
flex: 1
|
|
27
|
+
},
|
|
28
|
+
children: r
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
s as default
|
|
36
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReactNode, RefObject } from 'react';
|
|
2
|
+
import { Dayjs } from 'dayjs';
|
|
3
|
+
import { FlexboxProps } from 'node_modules/@thedotscorp/ui/Flexbox/Flexbox';
|
|
4
|
+
export interface SchedulerProps extends FlexboxProps {
|
|
5
|
+
date?: Dayjs;
|
|
6
|
+
containerRef?: RefObject<HTMLElement | null>;
|
|
7
|
+
legend?: {
|
|
8
|
+
text: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
}[];
|
|
11
|
+
renderScheduleBlock?: (date: string, time: string) => ReactNode;
|
|
12
|
+
onDateChange?: (date: Dayjs) => void;
|
|
13
|
+
}
|
|
14
|
+
declare function Scheduler({ children, date, legend, containerRef, renderScheduleBlock, onDateChange, ...props }: SchedulerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default Scheduler;
|