@dotss/tictoccroc 0.0.23 → 0.0.24
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/shared/components/ChatKit/BotMessage/BotMessage.d.ts +6 -4
- package/dist/shared/components/ChatKit/BotMessage/BotMessage.mjs +39 -31
- package/dist/shared/components/ChatKit/BotMessage/index.d.ts +2 -2
- package/dist/shared/components/ChatKit/Message/Message.mjs +21 -20
- package/dist/shared/components/Image/Image.d.ts +1 -0
- package/dist/shared/components/Image/Image.mjs +162 -98
- package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.mjs +86 -89
- package/dist/shared/components/Scheduler/Scheduler.d.ts +4 -1
- package/dist/shared/components/Scheduler/Scheduler.mjs +220 -196
- package/dist/shared/components/Scheduler/Scheduler.utils.d.ts +4 -0
- package/dist/shared/components/Scheduler/Scheduler.utils.mjs +61 -57
- package/dist/shared/utils/dayFlagToDay/dayFlagToDay.d.ts +1 -1
- package/dist/shared/utils/getImageUrl/getImageUrl.d.ts +3 -1
- package/dist/shared/utils/getImageUrl/getImageUrl.mjs +14 -13
- package/dist/teacher/profile/components/ActivityGallery/ActivityGallery.mjs +41 -42
- package/dist/teacher/profile/components/CareerSection/CareerItem/CareerItem.mjs +28 -30
- package/dist/teacher/profile/components/CareerSection/CareerSection.mjs +9 -7
- package/package.json +1 -1
|
@@ -1,116 +1,158 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Flexbox as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
const
|
|
1
|
+
import { jsxs as T, jsx as s, Fragment as p } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as P, useRef as W, useImperativeHandle as tt, useState as I, useEffect as G } from "react";
|
|
3
|
+
import { Flexbox as J, Skeleton as K } from "@dotss/ui";
|
|
4
|
+
import et from "../../hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.mjs";
|
|
5
|
+
import N from "../../utils/getImageUrl/getImageUrl.mjs";
|
|
6
|
+
import Q from "./Image.error.mjs";
|
|
7
|
+
const nt = 100, ct = P(
|
|
8
8
|
({
|
|
9
|
-
src:
|
|
9
|
+
src: j,
|
|
10
10
|
width: n,
|
|
11
|
-
height:
|
|
12
|
-
fit:
|
|
13
|
-
position:
|
|
14
|
-
alt:
|
|
15
|
-
scale:
|
|
16
|
-
onLoad:
|
|
17
|
-
onLazyLoad:
|
|
18
|
-
lazy:
|
|
19
|
-
borderRadius:
|
|
20
|
-
disabledResizing:
|
|
21
|
-
withIntrinsicRatio:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
11
|
+
height: i,
|
|
12
|
+
fit: h = "cover",
|
|
13
|
+
position: E = "center",
|
|
14
|
+
alt: H,
|
|
15
|
+
scale: X = 2,
|
|
16
|
+
onLoad: $,
|
|
17
|
+
onLazyLoad: x,
|
|
18
|
+
lazy: O = !1,
|
|
19
|
+
borderRadius: f,
|
|
20
|
+
disabledResizing: z = !1,
|
|
21
|
+
withIntrinsicRatio: M = !1,
|
|
22
|
+
enableBlurPlaceholder: c = !1,
|
|
23
|
+
enableFallback: R = !1,
|
|
24
|
+
enableErrorFallback: U = !0,
|
|
25
|
+
renderErrorFallback: a,
|
|
25
26
|
wrapperProps: e = {},
|
|
26
|
-
onError:
|
|
27
|
-
...
|
|
28
|
-
},
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
const [
|
|
32
|
-
|
|
27
|
+
onError: V,
|
|
28
|
+
...u
|
|
29
|
+
}, Y) => {
|
|
30
|
+
const m = W(null), _ = W(!1), y = W(null);
|
|
31
|
+
tt(Y, () => y.current);
|
|
32
|
+
const [d, Z] = I(!1), [g, v] = I(!1), [S, r] = I(!1), [L, b] = I(!1), q = N({
|
|
33
|
+
mode: "original",
|
|
34
|
+
src: j,
|
|
35
|
+
width: n,
|
|
36
|
+
height: i,
|
|
37
|
+
fit: h,
|
|
38
|
+
position: E,
|
|
39
|
+
scale: X,
|
|
40
|
+
disabledResizing: z
|
|
41
|
+
}), C = c ? N({
|
|
42
|
+
mode: "blur",
|
|
43
|
+
src: j,
|
|
44
|
+
width: n,
|
|
45
|
+
fit: h,
|
|
46
|
+
position: E,
|
|
47
|
+
scale: 1 / 3,
|
|
48
|
+
disabledResizing: z
|
|
49
|
+
}) : null, A = (t) => {
|
|
50
|
+
v(!0), r(!1), typeof $ == "function" && $(t);
|
|
33
51
|
}, B = (t) => {
|
|
34
|
-
|
|
35
|
-
};
|
|
36
|
-
return
|
|
37
|
-
if (
|
|
38
|
-
const t =
|
|
52
|
+
r(!0), v(!1), typeof V == "function" && V(t.nativeEvent);
|
|
53
|
+
}, D = () => b(!0);
|
|
54
|
+
return G(() => {
|
|
55
|
+
if (O && m.current) {
|
|
56
|
+
const t = m.current, F = () => {
|
|
39
57
|
if (!t) return !1;
|
|
40
|
-
const
|
|
41
|
-
return
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
var
|
|
46
|
-
(
|
|
47
|
-
},
|
|
48
|
-
var
|
|
49
|
-
(
|
|
58
|
+
const o = t.getBoundingClientRect();
|
|
59
|
+
return o.bottom >= 0 && o.top <= (window.innerHeight || document.documentElement.clientHeight) + nt;
|
|
60
|
+
}, l = () => {
|
|
61
|
+
F() && Z(!0);
|
|
62
|
+
}, w = () => {
|
|
63
|
+
var o;
|
|
64
|
+
(o = window.appScreenContent) == null || o.addEventListener("scroll", l), window.addEventListener("resize", l), window.addEventListener("orientationchange", l);
|
|
65
|
+
}, k = () => {
|
|
66
|
+
var o;
|
|
67
|
+
(o = window.appScreenContent) == null || o.removeEventListener("scroll", l), window.removeEventListener("resize", l), window.removeEventListener("orientationchange", l);
|
|
50
68
|
};
|
|
51
|
-
return
|
|
69
|
+
return l(), w(), k;
|
|
52
70
|
}
|
|
53
|
-
}),
|
|
54
|
-
typeof
|
|
55
|
-
}, [
|
|
56
|
-
const t =
|
|
57
|
-
return t != null && t.complete ? t.naturalWidth > 0 ? (t.style.transition = "none", t.style.opacity = "1",
|
|
58
|
-
t.style.opacity = "1",
|
|
71
|
+
}), G(() => {
|
|
72
|
+
typeof x == "function" && d && !_.current && (_.current = !0, x());
|
|
73
|
+
}, [x, d]), et(() => {
|
|
74
|
+
const t = y.current;
|
|
75
|
+
return t != null && t.complete ? t.naturalWidth > 0 ? (t.style.transition = "none", t.style.opacity = "1", v(!0)) : (t.style.opacity = "0", r(!0)) : t && (t.style.transition = "opacity 0.3s", t.style.opacity = "0", t.onload = () => {
|
|
76
|
+
t.style.opacity = "1", v(!0), t.onload = null;
|
|
59
77
|
}, t.onerror = () => {
|
|
60
|
-
|
|
78
|
+
r(!0), t.onerror = null;
|
|
61
79
|
}), () => {
|
|
62
80
|
t && (t.onload = null, t.onerror = null);
|
|
63
81
|
};
|
|
64
|
-
}, [
|
|
65
|
-
|
|
82
|
+
}, [d]), O ? /* @__PURE__ */ T(
|
|
83
|
+
J,
|
|
66
84
|
{
|
|
67
85
|
...e,
|
|
68
|
-
ref:
|
|
69
|
-
inlineCSS:
|
|
86
|
+
ref: m,
|
|
87
|
+
inlineCSS: M ? {
|
|
70
88
|
position: "relative",
|
|
71
|
-
paddingTop: `calc(100% / ${n} * ${
|
|
89
|
+
paddingTop: `calc(100% / ${n} * ${i})`,
|
|
72
90
|
minWidth: "100%",
|
|
73
|
-
borderRadius:
|
|
91
|
+
borderRadius: f,
|
|
74
92
|
overflow: "hidden",
|
|
75
93
|
...e == null ? void 0 : e.inlineCSS
|
|
76
94
|
} : {
|
|
77
95
|
position: "relative",
|
|
78
96
|
width: n,
|
|
79
97
|
minWidth: n,
|
|
80
|
-
height:
|
|
81
|
-
borderRadius:
|
|
98
|
+
height: i,
|
|
99
|
+
borderRadius: f,
|
|
82
100
|
overflow: "hidden",
|
|
83
101
|
...e == null ? void 0 : e.inlineCSS
|
|
84
102
|
},
|
|
85
103
|
children: [
|
|
86
|
-
|
|
87
|
-
|
|
104
|
+
R && /* @__PURE__ */ s(
|
|
105
|
+
K,
|
|
88
106
|
{
|
|
89
107
|
width: "100%",
|
|
90
108
|
height: "100%",
|
|
91
|
-
borderRadius:
|
|
109
|
+
borderRadius: f || 0,
|
|
92
110
|
inlineCSS: {
|
|
93
111
|
position: "absolute",
|
|
94
112
|
top: 0,
|
|
95
113
|
left: 0,
|
|
96
|
-
opacity:
|
|
114
|
+
opacity: g || c && L ? 0 : 1,
|
|
97
115
|
transition: "opacity 0.3s"
|
|
98
116
|
}
|
|
99
117
|
}
|
|
100
118
|
),
|
|
101
|
-
|
|
102
|
-
|
|
119
|
+
c && C && d && /* @__PURE__ */ s(
|
|
120
|
+
"img",
|
|
121
|
+
{
|
|
122
|
+
src: C,
|
|
123
|
+
alt: "",
|
|
124
|
+
width: n,
|
|
125
|
+
height: i,
|
|
126
|
+
onLoad: D,
|
|
127
|
+
draggable: !1,
|
|
128
|
+
style: {
|
|
129
|
+
position: "absolute",
|
|
130
|
+
top: 0,
|
|
131
|
+
left: 0,
|
|
132
|
+
width: "100%",
|
|
133
|
+
height: "100%",
|
|
134
|
+
filter: "blur(5px)",
|
|
135
|
+
opacity: L && !g ? 1 : 0,
|
|
136
|
+
transition: "opacity 0.3s",
|
|
137
|
+
objectFit: h,
|
|
138
|
+
objectPosition: E
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
),
|
|
142
|
+
d && /* @__PURE__ */ T(p, { children: [
|
|
143
|
+
/* @__PURE__ */ s(
|
|
103
144
|
"img",
|
|
104
145
|
{
|
|
105
|
-
ref:
|
|
106
|
-
src:
|
|
107
|
-
alt:
|
|
146
|
+
ref: y,
|
|
147
|
+
src: q,
|
|
148
|
+
alt: H,
|
|
108
149
|
width: n,
|
|
109
|
-
height:
|
|
110
|
-
onLoad:
|
|
150
|
+
height: i,
|
|
151
|
+
onLoad: A,
|
|
111
152
|
onError: B,
|
|
112
|
-
"aria-hidden":
|
|
113
|
-
|
|
153
|
+
"aria-hidden": S,
|
|
154
|
+
draggable: !1,
|
|
155
|
+
...u,
|
|
114
156
|
style: {
|
|
115
157
|
position: "absolute",
|
|
116
158
|
top: 0,
|
|
@@ -118,64 +160,86 @@ const k = 100, ot = Z(
|
|
|
118
160
|
width: "100%",
|
|
119
161
|
height: "100%",
|
|
120
162
|
transition: "opacity 0.3s",
|
|
121
|
-
...
|
|
163
|
+
...u.style
|
|
122
164
|
}
|
|
123
165
|
}
|
|
124
166
|
),
|
|
125
|
-
|
|
167
|
+
U && S && ((a == null ? void 0 : a()) || /* @__PURE__ */ s(Q, {}))
|
|
126
168
|
] })
|
|
127
169
|
]
|
|
128
170
|
}
|
|
129
|
-
) : /* @__PURE__ */
|
|
130
|
-
|
|
171
|
+
) : /* @__PURE__ */ T(
|
|
172
|
+
J,
|
|
131
173
|
{
|
|
132
174
|
...e,
|
|
133
|
-
ref:
|
|
134
|
-
inlineCSS:
|
|
175
|
+
ref: m,
|
|
176
|
+
inlineCSS: M ? {
|
|
135
177
|
position: "relative",
|
|
136
|
-
paddingTop: `calc(100% / ${n} * ${
|
|
178
|
+
paddingTop: `calc(100% / ${n} * ${i})`,
|
|
137
179
|
minWidth: "100%",
|
|
138
180
|
transition: "padding-top 0.2s",
|
|
139
|
-
borderRadius:
|
|
181
|
+
borderRadius: f,
|
|
140
182
|
overflow: "hidden",
|
|
141
183
|
...e == null ? void 0 : e.inlineCSS
|
|
142
184
|
} : {
|
|
143
185
|
position: "relative",
|
|
144
186
|
width: n,
|
|
145
187
|
minWidth: n,
|
|
146
|
-
height:
|
|
147
|
-
borderRadius:
|
|
188
|
+
height: i,
|
|
189
|
+
borderRadius: f,
|
|
148
190
|
overflow: "hidden",
|
|
149
191
|
...e == null ? void 0 : e.inlineCSS
|
|
150
192
|
},
|
|
151
193
|
children: [
|
|
152
|
-
|
|
153
|
-
|
|
194
|
+
R && /* @__PURE__ */ s(
|
|
195
|
+
K,
|
|
154
196
|
{
|
|
155
197
|
width: "100%",
|
|
156
198
|
height: "100%",
|
|
157
|
-
borderRadius:
|
|
199
|
+
borderRadius: f || 0,
|
|
158
200
|
inlineCSS: {
|
|
159
201
|
position: "absolute",
|
|
160
202
|
top: 0,
|
|
161
203
|
left: 0,
|
|
162
|
-
opacity:
|
|
204
|
+
opacity: g || c && L ? 0 : 1,
|
|
205
|
+
transition: "opacity 0.3s"
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
),
|
|
209
|
+
c && C && /* @__PURE__ */ s(
|
|
210
|
+
"img",
|
|
211
|
+
{
|
|
212
|
+
src: C,
|
|
213
|
+
alt: "",
|
|
214
|
+
width: n,
|
|
215
|
+
height: i,
|
|
216
|
+
onLoad: D,
|
|
217
|
+
draggable: !1,
|
|
218
|
+
style: {
|
|
219
|
+
position: "absolute",
|
|
220
|
+
top: 0,
|
|
221
|
+
left: 0,
|
|
222
|
+
width: "100%",
|
|
223
|
+
height: "100%",
|
|
224
|
+
filter: "blur(5px)",
|
|
225
|
+
opacity: L && !g ? 1 : 0,
|
|
163
226
|
transition: "opacity 0.3s"
|
|
164
227
|
}
|
|
165
228
|
}
|
|
166
229
|
),
|
|
167
|
-
/* @__PURE__ */
|
|
230
|
+
/* @__PURE__ */ s(
|
|
168
231
|
"img",
|
|
169
232
|
{
|
|
170
|
-
ref:
|
|
171
|
-
src:
|
|
172
|
-
alt:
|
|
233
|
+
ref: y,
|
|
234
|
+
src: q,
|
|
235
|
+
alt: H,
|
|
173
236
|
width: n,
|
|
174
|
-
height:
|
|
175
|
-
onLoad:
|
|
237
|
+
height: i,
|
|
238
|
+
onLoad: A,
|
|
176
239
|
onError: B,
|
|
177
|
-
"aria-hidden":
|
|
178
|
-
|
|
240
|
+
"aria-hidden": S,
|
|
241
|
+
draggable: !1,
|
|
242
|
+
...u,
|
|
179
243
|
style: {
|
|
180
244
|
position: "absolute",
|
|
181
245
|
top: 0,
|
|
@@ -183,16 +247,16 @@ const k = 100, ot = Z(
|
|
|
183
247
|
width: "100%",
|
|
184
248
|
height: "100%",
|
|
185
249
|
transition: "opacity 0.3s",
|
|
186
|
-
...
|
|
250
|
+
...u.style
|
|
187
251
|
}
|
|
188
252
|
}
|
|
189
253
|
),
|
|
190
|
-
|
|
254
|
+
U && S && ((a == null ? void 0 : a()) || /* @__PURE__ */ s(Q, {}))
|
|
191
255
|
]
|
|
192
256
|
}
|
|
193
257
|
);
|
|
194
258
|
}
|
|
195
259
|
);
|
|
196
260
|
export {
|
|
197
|
-
|
|
261
|
+
ct as default
|
|
198
262
|
};
|
|
@@ -1,40 +1,38 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { Flexbox as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { findImageInChildren as
|
|
7
|
-
const
|
|
1
|
+
import { jsxs as w, jsx as u } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as H, useState as S, useRef as I, useImperativeHandle as A, useEffect as m, Children as B, isValidElement as F, cloneElement as W } from "react";
|
|
3
|
+
import { Flexbox as s, Skeleton as z } from "@dotss/ui";
|
|
4
|
+
import D from "@dotss/ui/core/useTheme";
|
|
5
|
+
import L from "../../Image/Image.mjs";
|
|
6
|
+
import { findImageInChildren as V } from "../Masonry.utils.mjs";
|
|
7
|
+
const O = H(
|
|
8
8
|
({
|
|
9
|
-
children:
|
|
10
|
-
width:
|
|
11
|
-
height:
|
|
12
|
-
spacing:
|
|
13
|
-
borderRadius:
|
|
14
|
-
direction:
|
|
15
|
-
setInnerRef:
|
|
16
|
-
sourceMetadata:
|
|
9
|
+
children: b,
|
|
10
|
+
width: c = 0,
|
|
11
|
+
height: d = 0,
|
|
12
|
+
spacing: C = 2,
|
|
13
|
+
borderRadius: t = 0,
|
|
14
|
+
direction: v = "vertical",
|
|
15
|
+
setInnerRef: o,
|
|
16
|
+
sourceMetadata: f,
|
|
17
17
|
...e
|
|
18
|
-
},
|
|
19
|
-
var
|
|
20
|
-
const { spacing:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const i = setTimeout(() => {
|
|
27
|
-
k(!0);
|
|
18
|
+
}, x) => {
|
|
19
|
+
var k;
|
|
20
|
+
const { spacing: a } = D(), h = V(b), y = (k = h == null ? void 0 : h.props) == null ? void 0 : k.src, i = f == null ? void 0 : f.find((n) => n.src === y), [l, j] = S((i == null ? void 0 : i.width) ?? c ?? 0), [r, T] = S((i == null ? void 0 : i.height) ?? d ?? 0), [g, E] = S(!1), p = I(null);
|
|
21
|
+
return A(x, () => p.current), m(() => {
|
|
22
|
+
j((i == null ? void 0 : i.width) ?? c ?? 0), T((i == null ? void 0 : i.height) ?? d ?? 0);
|
|
23
|
+
}, [c, d, i == null ? void 0 : i.width, i == null ? void 0 : i.height]), m(() => {
|
|
24
|
+
const n = setTimeout(() => {
|
|
25
|
+
E(!0);
|
|
28
26
|
}, 500);
|
|
29
27
|
return () => {
|
|
30
|
-
clearTimeout(
|
|
28
|
+
clearTimeout(n);
|
|
31
29
|
};
|
|
32
|
-
}, []),
|
|
33
|
-
|
|
34
|
-
}, [
|
|
35
|
-
|
|
30
|
+
}, [l, r]), m(() => {
|
|
31
|
+
o == null || o(p.current);
|
|
32
|
+
}, [o]), /* @__PURE__ */ w(
|
|
33
|
+
s,
|
|
36
34
|
{
|
|
37
|
-
ref:
|
|
35
|
+
ref: p,
|
|
38
36
|
flexDirection: "column",
|
|
39
37
|
...e,
|
|
40
38
|
inlineCSS: {
|
|
@@ -42,18 +40,17 @@ const Z = W(
|
|
|
42
40
|
...e == null ? void 0 : e.inlineCSS
|
|
43
41
|
},
|
|
44
42
|
children: [
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
v === "vertical" && /* @__PURE__ */ u(
|
|
44
|
+
s,
|
|
47
45
|
{
|
|
48
46
|
inlineCSS: {
|
|
49
|
-
minHeight:
|
|
47
|
+
minHeight: a.content(C)
|
|
50
48
|
}
|
|
51
49
|
}
|
|
52
50
|
),
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
|
|
51
|
+
/* @__PURE__ */ u(
|
|
52
|
+
s,
|
|
55
53
|
{
|
|
56
|
-
onTransitionEnd: A,
|
|
57
54
|
inlineCSS: {
|
|
58
55
|
position: "relative",
|
|
59
56
|
overflow: "hidden",
|
|
@@ -64,64 +61,64 @@ const Z = W(
|
|
|
64
61
|
},
|
|
65
62
|
...e == null ? void 0 : e.inlineCSS
|
|
66
63
|
},
|
|
67
|
-
style:
|
|
68
|
-
borderRadius:
|
|
69
|
-
paddingTop: `calc(${
|
|
70
|
-
transition: "
|
|
64
|
+
style: v === "vertical" ? {
|
|
65
|
+
borderRadius: t,
|
|
66
|
+
paddingTop: `calc(${r / l} * 100%)`,
|
|
67
|
+
transition: "padding-top 0.3s 0.1s"
|
|
71
68
|
} : {
|
|
72
|
-
borderRadius:
|
|
73
|
-
paddingLeft:
|
|
74
|
-
paddingTop:
|
|
75
|
-
transition: "
|
|
69
|
+
borderRadius: t,
|
|
70
|
+
paddingLeft: l,
|
|
71
|
+
paddingTop: r,
|
|
72
|
+
transition: "padding-top 0.3s 0.1s, padding-left 0.3s 0.1s"
|
|
76
73
|
},
|
|
77
|
-
children:
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
{
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
74
|
+
children: /* @__PURE__ */ w(
|
|
75
|
+
s,
|
|
76
|
+
{
|
|
77
|
+
inlineCSS: {
|
|
78
|
+
position: "absolute",
|
|
79
|
+
top: 0,
|
|
80
|
+
left: 0,
|
|
81
|
+
width: "100%",
|
|
82
|
+
height: "100%",
|
|
83
|
+
overflow: "hidden",
|
|
84
|
+
transform: "translate3d(0, 0, 0)",
|
|
85
|
+
borderRadius: t + (g ? 0 : 2),
|
|
86
|
+
transition: "border-radius 0.3s 0.1s",
|
|
87
|
+
zIndex: 1
|
|
88
|
+
},
|
|
89
|
+
children: [
|
|
90
|
+
/* @__PURE__ */ u(
|
|
91
|
+
z,
|
|
92
|
+
{
|
|
93
|
+
borderRadius: t,
|
|
94
|
+
inlineCSS: {
|
|
95
|
+
position: "absolute",
|
|
96
|
+
top: 0,
|
|
97
|
+
left: 0,
|
|
98
|
+
width: "100%",
|
|
99
|
+
height: "100%",
|
|
100
|
+
opacity: !y || g ? 0 : 1,
|
|
101
|
+
transition: "opacity 0.3s 0.1s",
|
|
102
|
+
pointerEvents: g ? "none" : void 0,
|
|
103
|
+
zIndex: 2
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
B.toArray(b).filter(F).map((n) => n.type === L || n.type === "img" ? W(n, {
|
|
108
|
+
width: l,
|
|
109
|
+
height: r,
|
|
95
110
|
draggable: !1,
|
|
96
111
|
style: {
|
|
97
112
|
overflow: "hidden",
|
|
98
113
|
objectFit: "cover",
|
|
99
|
-
...
|
|
114
|
+
...n.props.style
|
|
100
115
|
},
|
|
101
|
-
...
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
/* @__PURE__ */ b(
|
|
108
|
-
q,
|
|
109
|
-
{
|
|
110
|
-
borderRadius: o,
|
|
111
|
-
inlineCSS: {
|
|
112
|
-
position: "absolute",
|
|
113
|
-
top: 0,
|
|
114
|
-
left: 0,
|
|
115
|
-
width: "100%",
|
|
116
|
-
height: "100%",
|
|
117
|
-
zIndex: 2,
|
|
118
|
-
opacity: m && u ? 0 : 1,
|
|
119
|
-
transition: "opacity 0.3s 0.1s",
|
|
120
|
-
pointerEvents: m && u ? "none" : void 0
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
)
|
|
124
|
-
]
|
|
116
|
+
...n.props,
|
|
117
|
+
enableFallback: !0
|
|
118
|
+
}) : n)
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
)
|
|
125
122
|
}
|
|
126
123
|
)
|
|
127
124
|
]
|
|
@@ -130,5 +127,5 @@ const Z = W(
|
|
|
130
127
|
}
|
|
131
128
|
);
|
|
132
129
|
export {
|
|
133
|
-
|
|
130
|
+
O as default
|
|
134
131
|
};
|
|
@@ -7,10 +7,13 @@ export interface SchedulerProps extends FlexboxProps {
|
|
|
7
7
|
text: string;
|
|
8
8
|
color?: string;
|
|
9
9
|
}[];
|
|
10
|
+
minDate?: Dayjs;
|
|
11
|
+
maxDate?: Dayjs;
|
|
10
12
|
minScheduleBlockHeight?: number;
|
|
11
13
|
maxScheduleBlockHeight?: number;
|
|
12
14
|
renderScheduleBlock?: (date: string, time: string) => ReactNode;
|
|
13
15
|
onDateChange?: (date: Dayjs) => void;
|
|
16
|
+
onDateChangeCanceled?: (date: Dayjs, direction: 'prev' | 'next') => void;
|
|
14
17
|
}
|
|
15
|
-
declare function Scheduler({ children, date, legend, minScheduleBlockHeight, maxScheduleBlockHeight, renderScheduleBlock, onDateChange, ...props }: SchedulerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function Scheduler({ children, date, legend, minDate, maxDate, minScheduleBlockHeight, maxScheduleBlockHeight, renderScheduleBlock, onDateChange, onDateChangeCanceled, ...props }: SchedulerProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
19
|
export default Scheduler;
|