@dotss/tictoccroc 0.2.0 → 0.3.1
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 +2 -0
- package/dist/index.mjs +143 -122
- package/dist/parent/b2b/components/ActionButtons/ActionButtons.d.ts +13 -0
- package/dist/parent/b2b/components/ActionButtons/ActionButtons.mjs +30 -0
- package/dist/parent/b2b/components/ActionButtons/index.d.ts +3 -0
- package/dist/parent/b2b/components/ActionButtons/index.mjs +4 -0
- package/dist/parent/b2b/components/BottomNotes/BottomNotes.d.ts +6 -0
- package/dist/parent/b2b/components/BottomNotes/BottomNotes.mjs +37 -0
- package/dist/parent/b2b/components/BottomNotes/index.d.ts +3 -0
- package/dist/parent/b2b/components/BottomNotes/index.mjs +4 -0
- package/dist/parent/b2b/components/EmployeeNumberField/EmployeeNumberField.d.ts +4 -0
- package/dist/parent/b2b/components/EmployeeNumberField/EmployeeNumberField.mjs +16 -0
- package/dist/parent/b2b/components/EmployeeNumberField/index.d.ts +3 -0
- package/dist/parent/b2b/components/EmployeeNumberField/index.mjs +4 -0
- package/dist/parent/b2b/components/NameField/NameField.d.ts +4 -0
- package/dist/parent/b2b/components/NameField/NameField.mjs +8 -0
- package/dist/parent/b2b/components/NameField/index.d.ts +3 -0
- package/dist/parent/b2b/components/NameField/index.mjs +4 -0
- package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.d.ts +4 -0
- package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.mjs +31 -0
- package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.utils.d.ts +2 -0
- package/dist/parent/b2b/components/PhoneNumberField/PhoneNumberField.utils.mjs +10 -0
- package/dist/parent/b2b/components/PhoneNumberField/index.d.ts +4 -0
- package/dist/parent/b2b/components/PhoneNumberField/index.mjs +7 -0
- package/dist/parent/b2b/components/Title/Title.d.ts +4 -0
- package/dist/parent/b2b/components/Title/Title.mjs +19 -0
- package/dist/parent/b2b/components/Title/index.d.ts +3 -0
- package/dist/parent/b2b/components/Title/index.mjs +4 -0
- package/dist/parent/b2b/components/TopLogo/TopLogo.d.ts +11 -0
- package/dist/parent/b2b/components/TopLogo/TopLogo.mjs +94 -0
- package/dist/parent/b2b/components/TopLogo/index.d.ts +3 -0
- package/dist/parent/b2b/components/TopLogo/index.mjs +4 -0
- package/dist/parent/b2b/components/index.d.ts +14 -0
- package/dist/parent/b2b/components/index.mjs +19 -0
- package/dist/parent/b2b/utils/convertMdToHtml/convertMdToHtml.d.ts +1 -0
- package/dist/parent/b2b/utils/convertMdToHtml/convertMdToHtml.mjs +1692 -0
- package/dist/parent/b2b/utils/convertMdToHtml/convertMdToHtml.test.d.ts +1 -0
- package/dist/parent/b2b/utils/index.d.ts +1 -0
- package/dist/parent/b2b/utils/index.mjs +4 -0
- package/dist/shared/components/Calendar/Calendar.d.ts +1 -1
- package/dist/shared/components/Image/Image.d.ts +1 -1
- package/dist/shared/components/Masonry/Masonry.utils.d.ts +1 -1
- package/dist/shared/components/Masonry/MasonryBlock/MasonryBlock.d.ts +1 -1
- package/dist/shared/components/TextField/TextField.d.ts +14 -0
- package/dist/shared/components/TextField/TextField.mjs +56 -0
- package/dist/shared/components/TextField/index.d.ts +3 -0
- package/dist/shared/components/TextField/index.mjs +4 -0
- package/dist/shared/components/TimePicker/TimePicker.d.ts +1 -1
- package/dist/shared/components/TimePicker/TimePicker.mjs +48 -50
- package/dist/shared/components/index.d.ts +2 -0
- package/dist/shared/components/index.mjs +8 -6
- package/dist/shared/hooks/useInView/useInView.d.ts +1 -1
- package/dist/shared/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +2 -1
- package/dist/teacher/home/components/BannerAccount/BannerAccount.mjs +6 -7
- package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.d.ts +1 -1
- package/dist/teacher/profile/components/CareNoteSection/CareNoteSection.d.ts +1 -1
- package/dist/teacher/profile/components/ParentReviewSection/ParentReviewSection.d.ts +1 -1
- package/package.json +27 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as convertMdToHtml } from './convertMdToHtml/convertMdToHtml';
|
|
@@ -7,5 +7,5 @@ export interface CalendarProps extends Omit<FlexboxProps, 'onChange' | 'value'>,
|
|
|
7
7
|
weekHeadInlineCSS?: FlexboxProps['inlineCSS'];
|
|
8
8
|
datePickerProps?: Omit<DatePickerProps, 'onChange' | 'value' | 'date'>;
|
|
9
9
|
}
|
|
10
|
-
declare const Calendar:
|
|
10
|
+
declare const Calendar: import('react').ForwardRefExoticComponent<Omit<CalendarProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
11
|
export default Calendar;
|
|
@@ -20,5 +20,5 @@ export interface ImageProps extends Omit<HTMLProps<HTMLImageElement>, 'onError'>
|
|
|
20
20
|
enableErrorFallback?: boolean;
|
|
21
21
|
renderErrorFallback?: () => ReactNode;
|
|
22
22
|
}
|
|
23
|
-
declare const Image:
|
|
23
|
+
declare const Image: import('react').ForwardRefExoticComponent<Omit<ImageProps, "ref"> & import('react').RefAttributes<HTMLImageElement>>;
|
|
24
24
|
export default Image;
|
|
@@ -7,7 +7,7 @@ export declare function getHorizontalLayoutRows(images: {
|
|
|
7
7
|
originalWidth?: number;
|
|
8
8
|
width: number;
|
|
9
9
|
height: number;
|
|
10
|
-
}[], blocks: ReactElement<MasonryBlockProps>[], rowCount: number, fallbackWidth: number): ReactElement<MasonryBlockProps
|
|
10
|
+
}[], blocks: ReactElement<MasonryBlockProps>[], rowCount: number, fallbackWidth: number): ReactElement<MasonryBlockProps, string | import('react').JSXElementConstructor<any>>[][];
|
|
11
11
|
export declare function findNextFocusableElement(currentElement: HTMLDivElement, keyDirection: 'left' | 'right' | 'up' | 'down', candidates: (HTMLDivElement | null)[]): HTMLDivElement | null;
|
|
12
12
|
export declare function getNextIndexHorizontalFromRows(rows: HTMLDivElement[][], currentIndex: number, keyDirection: 'up' | 'down' | 'left' | 'right'): number | null;
|
|
13
13
|
export declare function findImageInChildren(children: ReactNode): ReactElement<ImageProps> | null;
|
|
@@ -17,5 +17,5 @@ export interface MasonryBlockProps extends FlexboxProps {
|
|
|
17
17
|
}>;
|
|
18
18
|
setInnerRef?: (ref: HTMLDivElement | null) => void;
|
|
19
19
|
}
|
|
20
|
-
declare const MasonryBlock:
|
|
20
|
+
declare const MasonryBlock: import('react').ForwardRefExoticComponent<Omit<MasonryBlockProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
21
21
|
export default MasonryBlock;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import { FlexboxProps } from 'node_modules/@dotss/ui/Flexbox/Flexbox';
|
|
3
|
+
import { TextFieldProps as DotssTextFieldProps } from 'node_modules/@dotss/ui/TextField/TextField';
|
|
4
|
+
export interface TextFieldProps extends Omit<FlexboxProps, 'onChange'> {
|
|
5
|
+
id: string;
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
value: string;
|
|
8
|
+
onChange: (value: string, e: Event) => void;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
labelProps?: HTMLAttributes<HTMLLabelElement>;
|
|
11
|
+
textFieldProps?: DotssTextFieldProps;
|
|
12
|
+
}
|
|
13
|
+
declare function TextField({ id, label, value, onChange, labelProps, placeholder, textFieldProps, ...props }: TextFieldProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default TextField;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsxs as x, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as g } from "react";
|
|
3
|
+
import C from "@dotss/ui/core/useTheme";
|
|
4
|
+
import m from "@dotss/ui/Flexbox";
|
|
5
|
+
import F from "@dotss/ui/IconButton";
|
|
6
|
+
import b from "@dotss/ui/TextField";
|
|
7
|
+
import S from "@dotss/ui/Typography";
|
|
8
|
+
function w({
|
|
9
|
+
id: o,
|
|
10
|
+
label: a,
|
|
11
|
+
value: r,
|
|
12
|
+
onChange: l,
|
|
13
|
+
labelProps: s,
|
|
14
|
+
placeholder: c,
|
|
15
|
+
textFieldProps: f,
|
|
16
|
+
...d
|
|
17
|
+
}) {
|
|
18
|
+
const { palette: p } = C(), n = g(null), u = (e) => {
|
|
19
|
+
l(e.target.value, e);
|
|
20
|
+
}, h = (e) => {
|
|
21
|
+
var i;
|
|
22
|
+
(i = n.current) == null || i.focus(), l("", e);
|
|
23
|
+
};
|
|
24
|
+
return /* @__PURE__ */ x(m, { flexDirection: "column", gap: 1, inlineCSS: { width: "100%" }, ...d, children: [
|
|
25
|
+
/* @__PURE__ */ t(m, { children: /* @__PURE__ */ t(S, { tag: "label", htmlFor: o, variant: "b4M", ...s, children: a }) }),
|
|
26
|
+
/* @__PURE__ */ t(
|
|
27
|
+
b,
|
|
28
|
+
{
|
|
29
|
+
ref: n,
|
|
30
|
+
id: o,
|
|
31
|
+
value: r,
|
|
32
|
+
onChange: u,
|
|
33
|
+
fullWidth: !0,
|
|
34
|
+
placeholder: c,
|
|
35
|
+
endAdornment: r && /* @__PURE__ */ t(
|
|
36
|
+
F,
|
|
37
|
+
{
|
|
38
|
+
name: "CloseLine",
|
|
39
|
+
size: "small",
|
|
40
|
+
onClick: h,
|
|
41
|
+
"aria-label": "지우기",
|
|
42
|
+
inlineCSS: {
|
|
43
|
+
"& svg": {
|
|
44
|
+
color: p.grey[60]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
),
|
|
49
|
+
...f
|
|
50
|
+
}
|
|
51
|
+
)
|
|
52
|
+
] });
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
w as default
|
|
56
|
+
};
|
|
@@ -19,5 +19,5 @@ export interface TimePickerProps extends Omit<FlexboxProps, 'onChange'> {
|
|
|
19
19
|
renderStartTimeLabel?: (item: TimePickerItem, isSelected: boolean) => ReactNode;
|
|
20
20
|
renderEndTimeLabel?: (item: TimePickerItem, isSelected: boolean) => ReactNode;
|
|
21
21
|
}
|
|
22
|
-
declare const TimePicker:
|
|
22
|
+
declare const TimePicker: import('react').ForwardRefExoticComponent<Omit<TimePickerProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
23
23
|
export default TimePicker;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as R, jsx as c } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as O, useState as j, useRef as w, useEffect as r } from "react";
|
|
3
|
-
import {
|
|
2
|
+
import { forwardRef as O, useState as j, useRef as w, useCallback as Q, useEffect as r } from "react";
|
|
3
|
+
import { Flexbox as U, Typography as S, ChainPicker as I } from "@dotss/ui";
|
|
4
4
|
import z from "@emotion/styled";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import x from "../../utils/getTimeRange/getTimeRange.mjs";
|
|
6
|
+
const V = z.div`
|
|
7
7
|
position: relative;
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
@@ -11,36 +11,36 @@ const U = z.div`
|
|
|
11
11
|
gap: ${({ theme: { spacing: o } }) => o.content(7)}px;
|
|
12
12
|
width: 100%;
|
|
13
13
|
padding: ${({ theme: { spacing: o } }) => o.content(2)}px 0;
|
|
14
|
-
`,
|
|
14
|
+
`, W = z.div`
|
|
15
15
|
position: absolute;
|
|
16
16
|
width: 100%;
|
|
17
17
|
height: 54px;
|
|
18
18
|
background: ${({ theme: o }) => o.palette.background.primary};
|
|
19
19
|
border-radius: 12px;
|
|
20
|
-
`,
|
|
20
|
+
`, C = O(function({
|
|
21
21
|
onChange: F,
|
|
22
22
|
onChangeStartTime: p,
|
|
23
23
|
onChangeEndTime: s,
|
|
24
24
|
startTime: l = 9,
|
|
25
|
-
endTime:
|
|
26
|
-
range:
|
|
25
|
+
endTime: t = 12,
|
|
26
|
+
range: n = [0, 24],
|
|
27
27
|
step: i = 1,
|
|
28
|
-
startTimeChainPickerProps:
|
|
29
|
-
endTimeChainPickerProps:
|
|
28
|
+
startTimeChainPickerProps: u,
|
|
29
|
+
endTimeChainPickerProps: d,
|
|
30
30
|
timePickerHighlightProps: H,
|
|
31
31
|
renderStartTimeLabel: N,
|
|
32
32
|
renderEndTimeLabel: q,
|
|
33
33
|
inlineCSS: A,
|
|
34
34
|
...B
|
|
35
35
|
}, D) {
|
|
36
|
-
const [
|
|
37
|
-
|
|
38
|
-
),
|
|
39
|
-
|
|
40
|
-
),
|
|
36
|
+
const [f, y] = j(l), [m, b] = j(t), E = w(
|
|
37
|
+
x(0, 24, { minTime: n[0], maxTime: n[1] - i })
|
|
38
|
+
), a = w(
|
|
39
|
+
x(0, 24, { minTime: l + i, maxTime: n[1] })
|
|
40
|
+
), h = Q((e, $) => {
|
|
41
41
|
const [v, M] = e.label.split(":").map(Number), K = v >= 12, g = v % 12 || 12, L = K ? "오후" : "오전";
|
|
42
42
|
return /* @__PURE__ */ R(
|
|
43
|
-
|
|
43
|
+
U,
|
|
44
44
|
{
|
|
45
45
|
gap: 1,
|
|
46
46
|
alignItems: "center",
|
|
@@ -48,75 +48,73 @@ const U = z.div`
|
|
|
48
48
|
"aria-label": `${L} ${g}시 ${M}분`,
|
|
49
49
|
inlineCSS: { width: "82px" },
|
|
50
50
|
children: [
|
|
51
|
-
/* @__PURE__ */ c(S, { tag: "span", variant:
|
|
52
|
-
/* @__PURE__ */ c(S, { tag: "span", variant:
|
|
51
|
+
/* @__PURE__ */ c(S, { tag: "span", variant: $ ? "h5M" : "b5M", children: L }),
|
|
52
|
+
/* @__PURE__ */ c(S, { tag: "span", variant: $ ? "h2M" : "h4M", children: `${g}:${M.toString().padStart(2, "0")}` })
|
|
53
53
|
]
|
|
54
54
|
}
|
|
55
55
|
);
|
|
56
|
-
}, G = (e) => {
|
|
57
|
-
y(e),
|
|
58
|
-
minTime: e + i >
|
|
59
|
-
maxTime:
|
|
60
|
-
}), e >=
|
|
56
|
+
}, []), G = (e) => {
|
|
57
|
+
y(e), a.current = x(0, 24, {
|
|
58
|
+
minTime: e + i > n[1] ? n[1] : e + i,
|
|
59
|
+
maxTime: n[1]
|
|
60
|
+
}), e >= t - 0.5 && b(a.current[0].value);
|
|
61
61
|
}, J = (e) => {
|
|
62
|
-
|
|
62
|
+
b(e);
|
|
63
63
|
};
|
|
64
64
|
return r(() => {
|
|
65
|
-
|
|
66
|
-
minTime: l + i >
|
|
67
|
-
maxTime:
|
|
65
|
+
a.current = x(0, 24, {
|
|
66
|
+
minTime: l + i > n[1] ? n[1] : l + i,
|
|
67
|
+
maxTime: n[1]
|
|
68
68
|
});
|
|
69
|
-
}, [l,
|
|
69
|
+
}, [l, t, n, i]), r(() => {
|
|
70
70
|
y(l);
|
|
71
71
|
}, [l]), r(() => {
|
|
72
|
-
l >=
|
|
73
|
-
}, [l,
|
|
74
|
-
F(
|
|
75
|
-
}, [
|
|
76
|
-
p == null || p(
|
|
77
|
-
}, [
|
|
78
|
-
s == null || s(
|
|
79
|
-
}, [
|
|
80
|
-
/* @__PURE__ */ c(
|
|
72
|
+
l >= t - 0.5 ? b(a.current[0].value) : b(t);
|
|
73
|
+
}, [l, t]), r(() => {
|
|
74
|
+
F(f, m);
|
|
75
|
+
}, [f, m]), r(() => {
|
|
76
|
+
p == null || p(f);
|
|
77
|
+
}, [f]), r(() => {
|
|
78
|
+
s == null || s(m);
|
|
79
|
+
}, [m]), /* @__PURE__ */ R(V, { ref: D, css: A, role: "group", "aria-label": "시간 선택", ...B, children: [
|
|
80
|
+
/* @__PURE__ */ c(W, { ...H, "aria-hidden": !0 }),
|
|
81
81
|
/* @__PURE__ */ c(
|
|
82
82
|
I,
|
|
83
83
|
{
|
|
84
84
|
column: E.current,
|
|
85
85
|
value: l,
|
|
86
86
|
onChange: G,
|
|
87
|
-
renderLabel: N ||
|
|
87
|
+
renderLabel: N || h,
|
|
88
88
|
"aria-label": "시작 시간 선택",
|
|
89
89
|
inlineCSS: {
|
|
90
90
|
"& > li": {
|
|
91
91
|
padding: 0
|
|
92
92
|
},
|
|
93
|
-
...
|
|
93
|
+
...u == null ? void 0 : u.inlineCSS
|
|
94
94
|
},
|
|
95
|
-
...
|
|
96
|
-
}
|
|
97
|
-
`start-time-${a}`
|
|
95
|
+
...u
|
|
96
|
+
}
|
|
98
97
|
),
|
|
99
98
|
/* @__PURE__ */ c(S, { variant: "h5M", color: "grey.50", "aria-hidden": !0, inlineCSS: { zIndex: 1 }, children: "부터" }),
|
|
100
99
|
/* @__PURE__ */ c(
|
|
101
100
|
I,
|
|
102
101
|
{
|
|
103
|
-
column:
|
|
104
|
-
value:
|
|
102
|
+
column: a.current,
|
|
103
|
+
value: t,
|
|
105
104
|
onChange: J,
|
|
106
|
-
renderLabel: q ||
|
|
105
|
+
renderLabel: q || h,
|
|
107
106
|
"aria-label": "종료 시간 선택",
|
|
108
107
|
inlineCSS: {
|
|
109
108
|
"& > li": {
|
|
110
109
|
padding: 0
|
|
111
110
|
},
|
|
112
|
-
...
|
|
111
|
+
...d == null ? void 0 : d.inlineCSS
|
|
113
112
|
},
|
|
114
|
-
...
|
|
115
|
-
}
|
|
116
|
-
`end-time-${u}`
|
|
113
|
+
...d
|
|
114
|
+
}
|
|
117
115
|
)
|
|
118
116
|
] });
|
|
119
117
|
});
|
|
120
118
|
export {
|
|
121
|
-
|
|
119
|
+
C as default
|
|
122
120
|
};
|
|
@@ -9,6 +9,7 @@ export { default as Calendar } from './Calendar';
|
|
|
9
9
|
export { default as Masonry } from './Masonry';
|
|
10
10
|
export { default as LoadingAnnouncer } from './LoadingAnnouncer';
|
|
11
11
|
export { Message, SystemMessage, BotMessage, InputBar, Seperator, UnreadMessagePill } from './ChatKit';
|
|
12
|
+
export { default as TextField } from './TextField';
|
|
12
13
|
export * from './Scheduler';
|
|
13
14
|
export * from './MediaDialog';
|
|
14
15
|
export * from './Swiper';
|
|
@@ -20,3 +21,4 @@ export * from './Calendar';
|
|
|
20
21
|
export * from './Masonry';
|
|
21
22
|
export * from './LoadingAnnouncer';
|
|
22
23
|
export * from './ChatKit';
|
|
24
|
+
export * from './TextField';
|
|
@@ -10,9 +10,9 @@ import { default as B } from "./MediaDialog/MediaDialogToolbar/MediaDialogToolba
|
|
|
10
10
|
import { default as S } from "./Swiper/Swiper.mjs";
|
|
11
11
|
import { default as C } from "./Swiper/SwiperBlock/SwiperBlock.mjs";
|
|
12
12
|
import { default as I } from "./Carousel/Carousel.mjs";
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
13
|
+
import { default as h } from "./Carousel/CarouselSlide/CarouselSlide.mjs";
|
|
14
|
+
import { default as F } from "./TimePicker/TimePicker.mjs";
|
|
15
|
+
import { default as R } from "./Roller/Roller.mjs";
|
|
16
16
|
import { default as w } from "./Roller/RollerBlock/RollerBlock.mjs";
|
|
17
17
|
import { default as E } from "./Image/Image.mjs";
|
|
18
18
|
import { default as G } from "./Image/Image.error.mjs";
|
|
@@ -32,11 +32,12 @@ import { default as pe } from "./ChatKit/InputBar/InputBar.mjs";
|
|
|
32
32
|
import { default as ge } from "./ChatKit/InputBar/InputBar.fallback.mjs";
|
|
33
33
|
import { default as ne } from "./ChatKit/Seperator/Seperator.mjs";
|
|
34
34
|
import { default as ce } from "./ChatKit/UnreadMessagePill/UnreadMessagePill.mjs";
|
|
35
|
+
import { default as ke } from "./TextField/TextField.mjs";
|
|
35
36
|
export {
|
|
36
37
|
fe as BotMessage,
|
|
37
38
|
j as Calendar,
|
|
38
39
|
I as Carousel,
|
|
39
|
-
|
|
40
|
+
h as CarouselSlide,
|
|
40
41
|
ae as DirectTradeRiskInfoBottomSheet,
|
|
41
42
|
E as Image,
|
|
42
43
|
G as ImageError,
|
|
@@ -52,7 +53,7 @@ export {
|
|
|
52
53
|
B as MediaDialogToolbar,
|
|
53
54
|
Q as Message,
|
|
54
55
|
W as MessageFallback,
|
|
55
|
-
|
|
56
|
+
R as Roller,
|
|
56
57
|
w as RollerBlock,
|
|
57
58
|
l as ScheduleBlock,
|
|
58
59
|
t as ScheduleEvent,
|
|
@@ -61,7 +62,8 @@ export {
|
|
|
61
62
|
S as Swiper,
|
|
62
63
|
C as SwiperBlock,
|
|
63
64
|
$ as SystemMessage,
|
|
64
|
-
|
|
65
|
+
ke as TextField,
|
|
66
|
+
F as TimePicker,
|
|
65
67
|
ce as UnreadMessagePill,
|
|
66
68
|
d as getAvailableDateRange,
|
|
67
69
|
se as getBotMessageLabel,
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { jsxs as c, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import f from "@dotss/ui/core/useTheme";
|
|
2
3
|
import n from "@dotss/ui/Flexbox";
|
|
3
|
-
import
|
|
4
|
-
import { useTheme as g } from "@emotion/react";
|
|
4
|
+
import g from "@dotss/ui/Typography";
|
|
5
5
|
import S from "../../../../shared/components/Image/Image.mjs";
|
|
6
6
|
import "@dotss/ui";
|
|
7
|
-
import "@dotss/ui/core/useTheme";
|
|
8
7
|
import w from "../../../../shared/components/Swiper/Swiper.mjs";
|
|
9
8
|
import y from "../../../../shared/components/Swiper/SwiperBlock/SwiperBlock.mjs";
|
|
10
|
-
function
|
|
9
|
+
function I({
|
|
11
10
|
id: a,
|
|
12
11
|
banners: l,
|
|
13
12
|
onClickBanner: o,
|
|
@@ -15,7 +14,7 @@ function H({
|
|
|
15
14
|
swiperProps: p,
|
|
16
15
|
...h
|
|
17
16
|
}) {
|
|
18
|
-
const { palette: m } =
|
|
17
|
+
const { palette: m } = f(), s = (e, r) => (t) => {
|
|
19
18
|
o && typeof o == "function" && (t.stopPropagation(), t.preventDefault(), o(e, r, t));
|
|
20
19
|
}, u = ({ page: e, totalPages: r }) => r <= 1 ? null : /* @__PURE__ */ i(
|
|
21
20
|
n,
|
|
@@ -36,7 +35,7 @@ function H({
|
|
|
36
35
|
backgroundColor: m.etc.dimmed02
|
|
37
36
|
},
|
|
38
37
|
children: /* @__PURE__ */ c(
|
|
39
|
-
|
|
38
|
+
g,
|
|
40
39
|
{
|
|
41
40
|
tag: "p",
|
|
42
41
|
variant: "c5R",
|
|
@@ -97,5 +96,5 @@ function H({
|
|
|
97
96
|
] });
|
|
98
97
|
}
|
|
99
98
|
export {
|
|
100
|
-
|
|
99
|
+
I as default
|
|
101
100
|
};
|
package/dist/teacher/profile/components/AvailableScheduleSection/AvailableScheduleSection.d.ts
CHANGED
|
@@ -18,5 +18,5 @@ export interface AvailableScheduleSectionProps extends FlexboxProps {
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
declare const AvailableScheduleSection:
|
|
21
|
+
declare const AvailableScheduleSection: import('react').ForwardRefExoticComponent<Omit<AvailableScheduleSectionProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
22
22
|
export default AvailableScheduleSection;
|
|
@@ -3,5 +3,5 @@ export interface CareNoteSectionProps extends FlexboxProps {
|
|
|
3
3
|
totalCount: number;
|
|
4
4
|
onClickViewAll?: () => void;
|
|
5
5
|
}
|
|
6
|
-
declare const CareNoteSection:
|
|
6
|
+
declare const CareNoteSection: import('react').ForwardRefExoticComponent<Omit<CareNoteSectionProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
7
|
export default CareNoteSection;
|
|
@@ -3,5 +3,5 @@ export interface ParentReviewSectionProps extends FlexboxProps {
|
|
|
3
3
|
totalCount: number;
|
|
4
4
|
onClickViewAll?: () => void;
|
|
5
5
|
}
|
|
6
|
-
declare const ParentReviewSection:
|
|
6
|
+
declare const ParentReviewSection: import('react').ForwardRefExoticComponent<Omit<ParentReviewSectionProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
7
|
export default ParentReviewSection;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dotss/tictoccroc",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.1",
|
|
5
5
|
"description": "Tictoccroc shared components, hooks, utils, and APIs for Dotss",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -82,11 +82,28 @@
|
|
|
82
82
|
"./shared/typings/*": {
|
|
83
83
|
"import": "./dist/shared/typings/*/index.mjs",
|
|
84
84
|
"types": "./dist/shared/typings/*/index.d.ts"
|
|
85
|
+
},
|
|
86
|
+
"./parent/b2b/components": {
|
|
87
|
+
"import": "./dist/parent/b2b/components/index.mjs",
|
|
88
|
+
"types": "./dist/parent/b2b/components/index.d.ts"
|
|
89
|
+
},
|
|
90
|
+
"./parent/b2b/components/*": {
|
|
91
|
+
"import": "./dist/parent/b2b/components/*/index.mjs",
|
|
92
|
+
"types": "./dist/parent/b2b/components/*/index.d.ts"
|
|
93
|
+
},
|
|
94
|
+
"./parent/b2b/utils": {
|
|
95
|
+
"import": "./dist/parent/b2b/utils/index.mjs",
|
|
96
|
+
"types": "./dist/parent/b2b/utils/index.d.ts"
|
|
97
|
+
},
|
|
98
|
+
"./parent/b2b/utils/*": {
|
|
99
|
+
"import": "./dist/parent/b2b/utils/*/index.mjs",
|
|
100
|
+
"types": "./dist/parent/b2b/utils/*/index.d.ts"
|
|
85
101
|
}
|
|
86
102
|
},
|
|
87
103
|
"devDependencies": {
|
|
88
104
|
"@emotion/react": "^11.14.0",
|
|
89
105
|
"@emotion/styled": "^11.14.0",
|
|
106
|
+
"@storybook/addon-docs": "^9.0.4",
|
|
90
107
|
"@storybook/addon-onboarding": "^9.0.4",
|
|
91
108
|
"@storybook/react-vite": "^9.0.4",
|
|
92
109
|
"@types/node": "^22.15.29",
|
|
@@ -95,16 +112,22 @@
|
|
|
95
112
|
"glob": "^10.4.2",
|
|
96
113
|
"storybook": "^9.0.4",
|
|
97
114
|
"vite-plugin-dts": "^4.5.4",
|
|
98
|
-
"vitest": "^1.6.0"
|
|
115
|
+
"vitest": "^1.6.0",
|
|
116
|
+
"react": "^18.0.0",
|
|
117
|
+
"react-dom": "^18.0.0",
|
|
118
|
+
"@types/react": "^18.0.0",
|
|
119
|
+
"@types/react-dom": "^18.0.0"
|
|
99
120
|
},
|
|
100
121
|
"peerDependencies": {
|
|
101
122
|
"@dotss/ui": ">=1.0.3",
|
|
102
123
|
"@emotion/react": "^11.14.0",
|
|
103
124
|
"@emotion/styled": "^11.14.0",
|
|
104
125
|
"dayjs": "^1.11.13",
|
|
126
|
+
"heic2any": "^0.0.4",
|
|
127
|
+
"dompurify": "^3.3.1",
|
|
128
|
+
"marked": "^17.0.3",
|
|
105
129
|
"react": "^18.0.0 || ^19.0.0",
|
|
106
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
107
|
-
"heic2any": "^0.0.4"
|
|
130
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
108
131
|
},
|
|
109
132
|
"publishConfig": {
|
|
110
133
|
"access": "public"
|