@tipp/ui 2.0.2 → 2.0.4
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/app/index.cjs +2 -7
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +7 -7
- package/dist/app/platform/edit-coaching-time.cjs +2 -7
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +4 -4
- package/dist/app/platform/edit-service-type.cjs +2 -7
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +3 -3
- package/dist/app/platform/goal-manage-card-edit.cjs +2 -7
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +4 -4
- package/dist/app/platform/on-offline-radio-card.cjs +2 -7
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +3 -3
- package/dist/app/platform/reservation-card.cjs +2 -7
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +4 -4
- package/dist/app/platform/session-card.cjs +2 -7
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +5 -5
- package/dist/{chunk-VTWZCX6H.js → chunk-A2NYBAVH.js} +11 -11
- package/dist/{chunk-ESHEHOVH.js → chunk-GLRDUHQR.js} +2 -2
- package/dist/{chunk-CQSOA3HY.js → chunk-JPZNEPCW.js} +5 -5
- package/dist/{chunk-L44AC52S.js → chunk-KDEUSAQW.js} +2 -2
- package/dist/{chunk-GSU262TZ.js → chunk-QOUGBWAQ.js} +2 -7
- package/dist/chunk-QOUGBWAQ.js.map +1 -0
- package/dist/{chunk-UVACR5CC.js → chunk-TF3Q4TQM.js} +2 -2
- package/dist/index.cjs +2 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -9
- package/dist/molecules/date-picker/date-picker-button.cjs +2 -7
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +2 -2
- package/dist/molecules/date-picker/index.cjs +2 -7
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.d.cts +2 -3
- package/dist/molecules/date-picker/index.d.ts +2 -3
- package/dist/molecules/date-picker/index.js +1 -1
- package/dist/molecules/index.cjs +2 -7
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +5 -5
- package/package.json +12 -16
- package/src/molecules/date-picker/index.tsx +1 -10
- package/dist/chunk-2K4GU6TT.js +0 -174
- package/dist/chunk-3CVQG5IO.js +0 -54
- package/dist/chunk-3CVQG5IO.js.map +0 -1
- package/dist/chunk-3FEMWCWV.js +0 -23
- package/dist/chunk-3FEMWCWV.js.map +0 -1
- package/dist/chunk-3UJOUGH3.js +0 -169
- package/dist/chunk-3UJOUGH3.js.map +0 -1
- package/dist/chunk-4LYUNBCH.js +0 -174
- package/dist/chunk-4LYUNBCH.js.map +0 -1
- package/dist/chunk-4NBRGUIC.js +0 -144
- package/dist/chunk-4YKESXWQ.js +0 -68
- package/dist/chunk-4YKESXWQ.js.map +0 -1
- package/dist/chunk-54C63CWN.js +0 -74
- package/dist/chunk-54C63CWN.js.map +0 -1
- package/dist/chunk-5DTCJF6D.js +0 -144
- package/dist/chunk-5DTCJF6D.js.map +0 -1
- package/dist/chunk-6OQQUSCX.js +0 -281
- package/dist/chunk-75ENC5RS.js +0 -30
- package/dist/chunk-75ENC5RS.js.map +0 -1
- package/dist/chunk-7IX5IEPU.js +0 -63
- package/dist/chunk-7IX5IEPU.js.map +0 -1
- package/dist/chunk-7VJB7OZ3.js +0 -145
- package/dist/chunk-ACG3G2CH.js +0 -31
- package/dist/chunk-ACG3G2CH.js.map +0 -1
- package/dist/chunk-AEPCBZF7.js +0 -30
- package/dist/chunk-AEPCBZF7.js.map +0 -1
- package/dist/chunk-AJU5NJ2C.js +0 -97
- package/dist/chunk-AJU5NJ2C.js.map +0 -1
- package/dist/chunk-BFLGQQJZ.js +0 -30
- package/dist/chunk-BFLGQQJZ.js.map +0 -1
- package/dist/chunk-BZVP23R4.js +0 -145
- package/dist/chunk-BZVP23R4.js.map +0 -1
- package/dist/chunk-CQSOA3HY.js.map +0 -1
- package/dist/chunk-D6WG5BHL.js +0 -39
- package/dist/chunk-D6WG5BHL.js.map +0 -1
- package/dist/chunk-DFXO2GOC.js +0 -144
- package/dist/chunk-DFXO2GOC.js.map +0 -1
- package/dist/chunk-DQGB3JQA.js +0 -63
- package/dist/chunk-DQGB3JQA.js.map +0 -1
- package/dist/chunk-E3T66HOA.js +0 -106
- package/dist/chunk-E3T66HOA.js.map +0 -1
- package/dist/chunk-EJ3JNXLY.js +0 -99
- package/dist/chunk-EJ3JNXLY.js.map +0 -1
- package/dist/chunk-F5MKSWHL.js +0 -163
- package/dist/chunk-F5MKSWHL.js.map +0 -1
- package/dist/chunk-FV26PAOO.js +0 -352
- package/dist/chunk-FV26PAOO.js.map +0 -1
- package/dist/chunk-GSU262TZ.js.map +0 -1
- package/dist/chunk-HOKENHFD.js +0 -281
- package/dist/chunk-HOKENHFD.js.map +0 -1
- package/dist/chunk-IIN3YNMK.js +0 -281
- package/dist/chunk-IIN3YNMK.js.map +0 -1
- package/dist/chunk-JDE7356R.js +0 -64
- package/dist/chunk-JDE7356R.js.map +0 -1
- package/dist/chunk-JKNCADEB.js +0 -74
- package/dist/chunk-JKNCADEB.js.map +0 -1
- package/dist/chunk-JLT3GUBP.js +0 -144
- package/dist/chunk-JLT3GUBP.js.map +0 -1
- package/dist/chunk-JMS4TRIK.js +0 -64
- package/dist/chunk-JMS4TRIK.js.map +0 -1
- package/dist/chunk-KXEHA6WD.js +0 -63
- package/dist/chunk-KXEHA6WD.js.map +0 -1
- package/dist/chunk-L44AC52S.js.map +0 -1
- package/dist/chunk-LFZ22PRA.js +0 -281
- package/dist/chunk-LFZ22PRA.js.map +0 -1
- package/dist/chunk-NBPRKG6W.js +0 -106
- package/dist/chunk-NBPRKG6W.js.map +0 -1
- package/dist/chunk-NJ4N3VCI.js +0 -174
- package/dist/chunk-NJ4N3VCI.js.map +0 -1
- package/dist/chunk-NNPT6BV4.js +0 -117
- package/dist/chunk-NNPT6BV4.js.map +0 -1
- package/dist/chunk-NVIBNWII.js +0 -57
- package/dist/chunk-NVIBNWII.js.map +0 -1
- package/dist/chunk-OHIU6IRT.js +0 -174
- package/dist/chunk-OHIU6IRT.js.map +0 -1
- package/dist/chunk-PE4V3SCZ.js +0 -145
- package/dist/chunk-PE4V3SCZ.js.map +0 -1
- package/dist/chunk-PEIOKCXD.js +0 -144
- package/dist/chunk-PEIOKCXD.js.map +0 -1
- package/dist/chunk-PLAQRGID.js +0 -281
- package/dist/chunk-PLAQRGID.js.map +0 -1
- package/dist/chunk-PWXFETED.js +0 -146
- package/dist/chunk-PWXFETED.js.map +0 -1
- package/dist/chunk-QMT5IFKD.js +0 -64
- package/dist/chunk-QMT5IFKD.js.map +0 -1
- package/dist/chunk-RIGG6NNZ.js +0 -74
- package/dist/chunk-RIGG6NNZ.js.map +0 -1
- package/dist/chunk-S52LOF3I.js +0 -354
- package/dist/chunk-S52LOF3I.js.map +0 -1
- package/dist/chunk-S6DQEDBV.js +0 -145
- package/dist/chunk-S6DQEDBV.js.map +0 -1
- package/dist/chunk-UVACR5CC.js.map +0 -1
- package/dist/chunk-VTWZCX6H.js.map +0 -1
- package/dist/chunk-X2Q6QPMS.js +0 -165
- package/dist/chunk-X2Q6QPMS.js.map +0 -1
- package/dist/chunk-YAKVZPPI.js +0 -39
- package/dist/chunk-YAKVZPPI.js.map +0 -1
- package/dist/chunk-ZEAJABLA.js +0 -146
- package/dist/chunk-ZEAJABLA.js.map +0 -1
- package/dist/chunk-ZJTONHYI.js +0 -144
- package/dist/chunk-ZJTONHYI.js.map +0 -1
- package/dist/chunk-ZN52UBYA.js +0 -39
- package/dist/chunk-ZN52UBYA.js.map +0 -1
- /package/dist/{chunk-6OQQUSCX.js.map → chunk-A2NYBAVH.js.map} +0 -0
- /package/dist/{chunk-ESHEHOVH.js.map → chunk-GLRDUHQR.js.map} +0 -0
- /package/dist/{chunk-4NBRGUIC.js.map → chunk-JPZNEPCW.js.map} +0 -0
- /package/dist/{chunk-7VJB7OZ3.js.map → chunk-KDEUSAQW.js.map} +0 -0
- /package/dist/{chunk-2K4GU6TT.js.map → chunk-TF3Q4TQM.js.map} +0 -0
package/dist/chunk-6OQQUSCX.js
DELETED
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
OnOfflineRadioCard
|
|
3
|
-
} from "./chunk-4QWYV2QX.js";
|
|
4
|
-
import {
|
|
5
|
-
DatePickerButton
|
|
6
|
-
} from "./chunk-ESHEHOVH.js";
|
|
7
|
-
import {
|
|
8
|
-
TimeSelect
|
|
9
|
-
} from "./chunk-5VWEW4M2.js";
|
|
10
|
-
import {
|
|
11
|
-
getTimeOption,
|
|
12
|
-
parseTimeOption
|
|
13
|
-
} from "./chunk-NWJSLIQ3.js";
|
|
14
|
-
import {
|
|
15
|
-
Form
|
|
16
|
-
} from "./chunk-ECLZ3IGO.js";
|
|
17
|
-
import {
|
|
18
|
-
toast
|
|
19
|
-
} from "./chunk-IFRA465K.js";
|
|
20
|
-
import {
|
|
21
|
-
Grid
|
|
22
|
-
} from "./chunk-EGEQY3KT.js";
|
|
23
|
-
import {
|
|
24
|
-
Inset
|
|
25
|
-
} from "./chunk-XQOL7UBI.js";
|
|
26
|
-
import {
|
|
27
|
-
Heading
|
|
28
|
-
} from "./chunk-3IT3NVK6.js";
|
|
29
|
-
import {
|
|
30
|
-
Card
|
|
31
|
-
} from "./chunk-HEDMSFPW.js";
|
|
32
|
-
import {
|
|
33
|
-
Badge
|
|
34
|
-
} from "./chunk-FCIHNIOH.js";
|
|
35
|
-
import {
|
|
36
|
-
Box
|
|
37
|
-
} from "./chunk-4Y5BEXVN.js";
|
|
38
|
-
import {
|
|
39
|
-
BulletText
|
|
40
|
-
} from "./chunk-LMWTEDYS.js";
|
|
41
|
-
import {
|
|
42
|
-
Typo
|
|
43
|
-
} from "./chunk-LH57PIY2.js";
|
|
44
|
-
import {
|
|
45
|
-
Flex
|
|
46
|
-
} from "./chunk-25HMMI7R.js";
|
|
47
|
-
import {
|
|
48
|
-
Button
|
|
49
|
-
} from "./chunk-AFPH32MF.js";
|
|
50
|
-
import {
|
|
51
|
-
ArrowRightIcon,
|
|
52
|
-
Cross1Icon
|
|
53
|
-
} from "./chunk-HLFG5ZTU.js";
|
|
54
|
-
import {
|
|
55
|
-
__spreadProps,
|
|
56
|
-
__spreadValues
|
|
57
|
-
} from "./chunk-2NMEKWO5.js";
|
|
58
|
-
|
|
59
|
-
// src/app/platform/reservation-card.tsx
|
|
60
|
-
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
61
|
-
import { setHours, setMinutes } from "date-fns";
|
|
62
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
63
|
-
function ReservationCard(props) {
|
|
64
|
-
const {
|
|
65
|
-
sessionNumber,
|
|
66
|
-
customerName,
|
|
67
|
-
readonly,
|
|
68
|
-
defaultTime,
|
|
69
|
-
defaultType,
|
|
70
|
-
error,
|
|
71
|
-
minTime,
|
|
72
|
-
maxTime,
|
|
73
|
-
onClickReserve,
|
|
74
|
-
onClickCancel,
|
|
75
|
-
onClickCompleteSession
|
|
76
|
-
} = props;
|
|
77
|
-
const [editValues, setEditValues] = useState({
|
|
78
|
-
date: props.defaultTime,
|
|
79
|
-
type: props.defaultType
|
|
80
|
-
});
|
|
81
|
-
const date = readonly ? defaultTime : editValues.date;
|
|
82
|
-
const type = readonly ? defaultType : editValues.type;
|
|
83
|
-
const time = date && getTimeOption(date);
|
|
84
|
-
const onClickSave = useCallback(() => {
|
|
85
|
-
var _a;
|
|
86
|
-
(_a = props.onClickSave) == null ? void 0 : _a.call(props, editValues);
|
|
87
|
-
}, [editValues, props]);
|
|
88
|
-
const onClickReset = useCallback(() => {
|
|
89
|
-
setEditValues({
|
|
90
|
-
date: defaultTime,
|
|
91
|
-
type: defaultType
|
|
92
|
-
});
|
|
93
|
-
}, [defaultTime, defaultType]);
|
|
94
|
-
const ActionButtons = useMemo(() => {
|
|
95
|
-
if (readonly) {
|
|
96
|
-
return /* @__PURE__ */ jsx(Button, { onClick: onClickReserve, size: "small", variant: "surface", children: defaultTime && defaultType ? "\uC608\uC57D \uC218\uC815\uD558\uAE30" : "\uC608\uC57D\uD558\uAE30" });
|
|
97
|
-
}
|
|
98
|
-
return /* @__PURE__ */ jsx(Button, { color: "gray", onClick: onClickCancel, variant: "transparent", children: /* @__PURE__ */ jsx(Cross1Icon, {}) });
|
|
99
|
-
}, [defaultTime, defaultType, onClickCancel, onClickReserve, readonly]);
|
|
100
|
-
const onChangeDate = useCallback(
|
|
101
|
-
(newDate) => {
|
|
102
|
-
if (!newDate) return;
|
|
103
|
-
const { hour = 0, minute = 0 } = time ? parseTimeOption(time) : {};
|
|
104
|
-
setEditValues((prev) => {
|
|
105
|
-
return __spreadProps(__spreadValues({}, prev), {
|
|
106
|
-
date: setMinutes(setHours(newDate, hour), minute)
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
},
|
|
110
|
-
[time]
|
|
111
|
-
);
|
|
112
|
-
const onChangeType = useCallback((newType) => {
|
|
113
|
-
setEditValues((prev) => {
|
|
114
|
-
return __spreadProps(__spreadValues({}, prev), {
|
|
115
|
-
type: newType
|
|
116
|
-
});
|
|
117
|
-
});
|
|
118
|
-
}, []);
|
|
119
|
-
const onChangeTime = useCallback(
|
|
120
|
-
(v) => {
|
|
121
|
-
const { hour, minute } = parseTimeOption(v);
|
|
122
|
-
if (typeof v === "undefined") {
|
|
123
|
-
setEditValues((prev) => {
|
|
124
|
-
return __spreadProps(__spreadValues({}, prev), {
|
|
125
|
-
date: v
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
setEditValues((prev) => {
|
|
130
|
-
return __spreadProps(__spreadValues({}, prev), {
|
|
131
|
-
date: setMinutes(setHours(date || /* @__PURE__ */ new Date(), hour), minute)
|
|
132
|
-
});
|
|
133
|
-
});
|
|
134
|
-
},
|
|
135
|
-
[date]
|
|
136
|
-
);
|
|
137
|
-
useEffect(() => {
|
|
138
|
-
if (!minTime || !editValues.date || readonly) return;
|
|
139
|
-
if (editValues.date < minTime) {
|
|
140
|
-
toast.warn("\uC120\uD0DD \uAC00\uB2A5\uD55C \uC2DC\uAC04\uB300\uB85C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
|
|
141
|
-
setEditValues((prev) => {
|
|
142
|
-
return __spreadProps(__spreadValues({}, prev), {
|
|
143
|
-
date: minTime
|
|
144
|
-
});
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
}, [editValues, minTime, readonly]);
|
|
148
|
-
useEffect(() => {
|
|
149
|
-
if (!maxTime || !editValues.date || readonly) return;
|
|
150
|
-
if (editValues.date > maxTime) {
|
|
151
|
-
toast.warn("\uC120\uD0DD \uAC00\uB2A5\uD55C \uC2DC\uAC04\uB300\uB85C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
|
|
152
|
-
setEditValues((prev) => {
|
|
153
|
-
return __spreadProps(__spreadValues({}, prev), {
|
|
154
|
-
date: maxTime
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
}
|
|
158
|
-
}, [editValues, maxTime, readonly]);
|
|
159
|
-
return /* @__PURE__ */ jsxs(
|
|
160
|
-
Card,
|
|
161
|
-
{
|
|
162
|
-
error: Boolean(error),
|
|
163
|
-
size: "3",
|
|
164
|
-
style: { overflow: "visible", contain: "initial" },
|
|
165
|
-
children: [
|
|
166
|
-
/* @__PURE__ */ jsxs(Flex, { gap: "3", justify: "between", mb: "5", children: [
|
|
167
|
-
/* @__PURE__ */ jsxs(
|
|
168
|
-
Grid,
|
|
169
|
-
{
|
|
170
|
-
align: "center",
|
|
171
|
-
columns: { initial: "1", xs: "auto 1fr" },
|
|
172
|
-
gapY: "2",
|
|
173
|
-
children: [
|
|
174
|
-
/* @__PURE__ */ jsxs(Flex, { align: "center", children: [
|
|
175
|
-
/* @__PURE__ */ jsxs(Heading, { variant: "heading4", children: [
|
|
176
|
-
customerName || "-",
|
|
177
|
-
"\uB2D8 ",
|
|
178
|
-
sessionNumber || "-",
|
|
179
|
-
"\uD68C\uCC28 \uC138\uC158"
|
|
180
|
-
] }),
|
|
181
|
-
/* @__PURE__ */ jsx(Badge, { ml: "2", children: "\uB2E4\uC74C \uC138\uC158" })
|
|
182
|
-
] }),
|
|
183
|
-
error ? /* @__PURE__ */ jsx(BulletText, { color: "red", variant: "caption", children: error }) : null
|
|
184
|
-
]
|
|
185
|
-
}
|
|
186
|
-
),
|
|
187
|
-
/* @__PURE__ */ jsx(Flex, { children: ActionButtons })
|
|
188
|
-
] }),
|
|
189
|
-
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
190
|
-
Form.Root,
|
|
191
|
-
{
|
|
192
|
-
onSubmit: (e) => {
|
|
193
|
-
e.preventDefault();
|
|
194
|
-
},
|
|
195
|
-
children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "5", children: [
|
|
196
|
-
/* @__PURE__ */ jsx(Form.Field, { name: "date", children: /* @__PURE__ */ jsxs(Form.Label, { asChild: true, children: [
|
|
197
|
-
/* @__PURE__ */ jsx(Heading, { mb: "2", variant: "heading5", weight: "regular", children: "\uC138\uC158 \uC77C\uC790\uC640 \uC2DC\uAC01" }),
|
|
198
|
-
/* @__PURE__ */ jsxs(Grid, { columns: "1fr auto", gap: "4", children: [
|
|
199
|
-
/* @__PURE__ */ jsx(
|
|
200
|
-
DatePickerButton,
|
|
201
|
-
{
|
|
202
|
-
disabled: readonly,
|
|
203
|
-
maxDate: maxTime,
|
|
204
|
-
minDate: minTime,
|
|
205
|
-
onChange: onChangeDate,
|
|
206
|
-
placeholder: "\uC77C\uC790\uB97C \uC120\uD0DD\uD574\uC8FC\uC138\uC694",
|
|
207
|
-
selected: date,
|
|
208
|
-
size: "large"
|
|
209
|
-
}
|
|
210
|
-
),
|
|
211
|
-
/* @__PURE__ */ jsx(
|
|
212
|
-
TimeSelect,
|
|
213
|
-
{
|
|
214
|
-
disabled: readonly,
|
|
215
|
-
maxTime,
|
|
216
|
-
minTime,
|
|
217
|
-
onValueChange: onChangeTime,
|
|
218
|
-
size: "3",
|
|
219
|
-
time: date,
|
|
220
|
-
value: time
|
|
221
|
-
}
|
|
222
|
-
)
|
|
223
|
-
] })
|
|
224
|
-
] }) }),
|
|
225
|
-
/* @__PURE__ */ jsxs(Form.Field, { name: "type", children: [
|
|
226
|
-
/* @__PURE__ */ jsx(Form.Label, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { mb: "2", variant: "heading5", weight: "regular", children: "\uC628/\uC624\uD504\uB77C\uC778 \uC9C4\uD589 \uC5EC\uBD80" }) }),
|
|
227
|
-
/* @__PURE__ */ jsx(Form.Control, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
228
|
-
OnOfflineRadioCard,
|
|
229
|
-
{
|
|
230
|
-
disabled: readonly,
|
|
231
|
-
onValueChange: onChangeType,
|
|
232
|
-
size: "1",
|
|
233
|
-
value: type
|
|
234
|
-
}
|
|
235
|
-
) })
|
|
236
|
-
] }),
|
|
237
|
-
readonly ? null : /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "3", justify: "end", children: [
|
|
238
|
-
/* @__PURE__ */ jsx(
|
|
239
|
-
Button,
|
|
240
|
-
{
|
|
241
|
-
color: "gray",
|
|
242
|
-
onClick: onClickReset,
|
|
243
|
-
size: "small",
|
|
244
|
-
variant: "transparent",
|
|
245
|
-
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
246
|
-
}
|
|
247
|
-
),
|
|
248
|
-
/* @__PURE__ */ jsx(Button, { onClick: onClickSave, size: "small", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
249
|
-
] })
|
|
250
|
-
] })
|
|
251
|
-
}
|
|
252
|
-
) }),
|
|
253
|
-
readonly ? /* @__PURE__ */ jsx(Inset, { clip: "border-box", side: "bottom", children: /* @__PURE__ */ jsx(
|
|
254
|
-
Box,
|
|
255
|
-
{
|
|
256
|
-
mt: "5",
|
|
257
|
-
px: "5",
|
|
258
|
-
py: "4",
|
|
259
|
-
style: { backgroundColor: "var(--accent-a3)" },
|
|
260
|
-
width: "100%",
|
|
261
|
-
children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "4", justify: "center", children: [
|
|
262
|
-
/* @__PURE__ */ jsxs(Typo, { children: [
|
|
263
|
-
sessionNumber || "-",
|
|
264
|
-
"\uD68C\uCC28 \uC138\uC158\uC744 \uC644\uB8CC\uD558\uC168\uB098\uC694?"
|
|
265
|
-
] }),
|
|
266
|
-
/* @__PURE__ */ jsxs(Button, { onClick: onClickCompleteSession, size: "small", children: [
|
|
267
|
-
"\uC138\uC158 \uC885\uB8CC\uD558\uAE30",
|
|
268
|
-
/* @__PURE__ */ jsx(ArrowRightIcon, {})
|
|
269
|
-
] })
|
|
270
|
-
] })
|
|
271
|
-
}
|
|
272
|
-
) }) : null
|
|
273
|
-
]
|
|
274
|
-
}
|
|
275
|
-
);
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
export {
|
|
279
|
-
ReservationCard
|
|
280
|
-
};
|
|
281
|
-
//# sourceMappingURL=chunk-6OQQUSCX.js.map
|
package/dist/chunk-75ENC5RS.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CoachingCustomerInfoLarge
|
|
3
|
-
} from "./chunk-JDE7356R.js";
|
|
4
|
-
import {
|
|
5
|
-
CoachingCustomerInfoMedium
|
|
6
|
-
} from "./chunk-54C63CWN.js";
|
|
7
|
-
import {
|
|
8
|
-
CoachingCustomerInfoSmall
|
|
9
|
-
} from "./chunk-M7C3ID36.js";
|
|
10
|
-
import {
|
|
11
|
-
Box
|
|
12
|
-
} from "./chunk-4Y5BEXVN.js";
|
|
13
|
-
import {
|
|
14
|
-
__spreadValues
|
|
15
|
-
} from "./chunk-2NMEKWO5.js";
|
|
16
|
-
|
|
17
|
-
// src/app/platform/userInfos/coaching-customer-info/index.tsx
|
|
18
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
function CoachingCustomerInfo(props) {
|
|
20
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
21
|
-
/* @__PURE__ */ jsx(Box, { display: { initial: "block", sm: "none", md: "none" }, children: /* @__PURE__ */ jsx(CoachingCustomerInfoSmall, __spreadValues({}, props)) }),
|
|
22
|
-
/* @__PURE__ */ jsx(Box, { display: { initial: "none", sm: "block", md: "none" }, children: /* @__PURE__ */ jsx(CoachingCustomerInfoMedium, __spreadValues({}, props)) }),
|
|
23
|
-
/* @__PURE__ */ jsx(Box, { display: { initial: "none", sm: "none", md: "block" }, children: /* @__PURE__ */ jsx(CoachingCustomerInfoLarge, __spreadValues({}, props)) })
|
|
24
|
-
] });
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
CoachingCustomerInfo
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=chunk-75ENC5RS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/app/platform/userInfos/coaching-customer-info/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Box } from '../../../../atoms';\nimport type { CoachingCustomerInfoProps } from '../utils';\nimport { CoachingCustomerInfoSmall } from './small';\nimport { CoachingCustomerInfoMedium } from './medium';\nimport { CoachingCustomerInfoLarge } from './large';\n\nexport {\n CoachingCustomerInfoLarge,\n CoachingCustomerInfoMedium,\n CoachingCustomerInfoSmall,\n};\n\nexport { type CoachingCustomerInfoProps };\n\nexport function CoachingCustomerInfo(\n props: CoachingCustomerInfoProps\n): React.ReactNode {\n return (\n <>\n <Box display={{ initial: 'block', sm: 'none', md: 'none' }}>\n <CoachingCustomerInfoSmall {...props} />\n </Box>\n <Box display={{ initial: 'none', sm: 'block', md: 'none' }}>\n <CoachingCustomerInfoMedium {...props} />\n </Box>\n <Box display={{ initial: 'none', sm: 'none', md: 'block' }}>\n <CoachingCustomerInfoLarge {...props} />\n </Box>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAmBI,mBAEI,KAFJ;AAJG,SAAS,qBACd,OACiB;AACjB,SACE,iCACE;AAAA,wBAAC,OAAI,SAAS,EAAE,SAAS,SAAS,IAAI,QAAQ,IAAI,OAAO,GACvD,8BAAC,8CAA8B,MAAO,GACxC;AAAA,IACA,oBAAC,OAAI,SAAS,EAAE,SAAS,QAAQ,IAAI,SAAS,IAAI,OAAO,GACvD,8BAAC,+CAA+B,MAAO,GACzC;AAAA,IACA,oBAAC,OAAI,SAAS,EAAE,SAAS,QAAQ,IAAI,QAAQ,IAAI,QAAQ,GACvD,8BAAC,8CAA8B,MAAO,GACxC;AAAA,KACF;AAEJ;","names":[]}
|
package/dist/chunk-7IX5IEPU.js
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Heading
|
|
3
|
-
} from "./chunk-3IT3NVK6.js";
|
|
4
|
-
import {
|
|
5
|
-
Card
|
|
6
|
-
} from "./chunk-HEDMSFPW.js";
|
|
7
|
-
import {
|
|
8
|
-
Badge
|
|
9
|
-
} from "./chunk-FCIHNIOH.js";
|
|
10
|
-
import {
|
|
11
|
-
Box
|
|
12
|
-
} from "./chunk-4Y5BEXVN.js";
|
|
13
|
-
import {
|
|
14
|
-
Typo
|
|
15
|
-
} from "./chunk-LH57PIY2.js";
|
|
16
|
-
import {
|
|
17
|
-
Flex
|
|
18
|
-
} from "./chunk-25HMMI7R.js";
|
|
19
|
-
|
|
20
|
-
// src/app/platform/session-review-simple-read.tsx
|
|
21
|
-
import { useMemo } from "react";
|
|
22
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
-
function SubTitleWrapper({
|
|
24
|
-
children,
|
|
25
|
-
title
|
|
26
|
-
}) {
|
|
27
|
-
return /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "2", children: [
|
|
28
|
-
/* @__PURE__ */ jsx(Heading, { mb: "2", variant: "heading5", weight: "regular", children: title }),
|
|
29
|
-
/* @__PURE__ */ jsx(Box, { children })
|
|
30
|
-
] });
|
|
31
|
-
}
|
|
32
|
-
function SessionReviewSimpleRead({
|
|
33
|
-
helpfulness,
|
|
34
|
-
review
|
|
35
|
-
}) {
|
|
36
|
-
const helpfulnessMeta = useMemo(() => {
|
|
37
|
-
if (helpfulness) {
|
|
38
|
-
return {
|
|
39
|
-
text: "\uB124",
|
|
40
|
-
color: "success"
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
if (typeof helpfulness === "undefined") {
|
|
44
|
-
return {
|
|
45
|
-
text: "-",
|
|
46
|
-
color: "neutral"
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
return {
|
|
50
|
-
text: "\uC544\uB2C8\uC694",
|
|
51
|
-
color: "error"
|
|
52
|
-
};
|
|
53
|
-
}, [helpfulness]);
|
|
54
|
-
return /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "5", children: [
|
|
55
|
-
/* @__PURE__ */ jsx(SubTitleWrapper, { title: "\uC774\uBC88 \uCF54\uCE6D\uC774 \uBAA9\uD45C \uB2EC\uC131\uC5D0 \uB3C4\uC6C0\uC774 \uB418\uC5C8\uB098\uC694?", children: /* @__PURE__ */ jsx(Badge, { color: helpfulnessMeta.color, children: helpfulnessMeta.text }) }),
|
|
56
|
-
/* @__PURE__ */ jsx(SubTitleWrapper, { title: "\uC138\uC158 \uD6C4\uAE30", children: /* @__PURE__ */ jsx(Card, { children: review ? /* @__PURE__ */ jsx(Typo, { as: "p", children: review }) : /* @__PURE__ */ jsx(Typo, { color: "gray", children: "\uC785\uB825\uB41C \uD6C4\uAE30\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) }) })
|
|
57
|
-
] }) });
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export {
|
|
61
|
-
SessionReviewSimpleRead
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=chunk-7IX5IEPU.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/app/platform/session-review-simple-read.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport type { BadgeProps } from '../../atoms';\nimport { Badge, Box, Card, Flex, Heading, Typo } from '../../atoms';\n\nexport interface SessionReviewSimpleReadProps {\n helpfulness?: boolean;\n review?: string;\n}\n\nfunction SubTitleWrapper({\n children,\n title,\n}: {\n children: React.ReactNode;\n title: string;\n}): JSX.Element {\n return (\n <Flex direction=\"column\" gap=\"2\">\n <Heading mb=\"2\" variant=\"heading5\" weight=\"regular\">\n {title}\n </Heading>\n\n <Box>{children}</Box>\n </Flex>\n );\n}\n\nexport function SessionReviewSimpleRead({\n helpfulness,\n review,\n}: SessionReviewSimpleReadProps): React.ReactNode {\n const helpfulnessMeta = useMemo<{\n text: string;\n color: BadgeProps['color'];\n }>(() => {\n if (helpfulness) {\n return {\n text: '네',\n color: 'success',\n };\n }\n if (typeof helpfulness === 'undefined') {\n return {\n text: '-',\n color: 'neutral',\n };\n }\n return {\n text: '아니요',\n color: 'error',\n };\n }, [helpfulness]);\n\n return (\n <Box>\n <Flex direction=\"column\" gap=\"5\">\n <SubTitleWrapper title=\"이번 코칭이 목표 달성에 도움이 되었나요?\">\n <Badge color={helpfulnessMeta.color}>{helpfulnessMeta.text}</Badge>\n </SubTitleWrapper>\n <SubTitleWrapper title=\"세션 후기\">\n <Card>\n {review ? (\n <Typo as=\"p\">{review}</Typo>\n ) : (\n <Typo color=\"gray\">입력된 후기가 없습니다.</Typo>\n )}\n </Card>\n </SubTitleWrapper>\n </Flex>\n </Box>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,eAAe;AAiB3B,SACE,KADF;AARJ,SAAS,gBAAgB;AAAA,EACvB;AAAA,EACA;AACF,GAGgB;AACd,SACE,qBAAC,QAAK,WAAU,UAAS,KAAI,KAC3B;AAAA,wBAAC,WAAQ,IAAG,KAAI,SAAQ,YAAW,QAAO,WACvC,iBACH;AAAA,IAEA,oBAAC,OAAK,UAAS;AAAA,KACjB;AAEJ;AAEO,SAAS,wBAAwB;AAAA,EACtC;AAAA,EACA;AACF,GAAkD;AAChD,QAAM,kBAAkB,QAGrB,MAAM;AACP,QAAI,aAAa;AACf,aAAO;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF;AACA,QAAI,OAAO,gBAAgB,aAAa;AACtC,aAAO;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF;AACA,WAAO;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,IACT;AAAA,EACF,GAAG,CAAC,WAAW,CAAC;AAEhB,SACE,oBAAC,OACC,+BAAC,QAAK,WAAU,UAAS,KAAI,KAC3B;AAAA,wBAAC,mBAAgB,OAAM,gHACrB,8BAAC,SAAM,OAAO,gBAAgB,OAAQ,0BAAgB,MAAK,GAC7D;AAAA,IACA,oBAAC,mBAAgB,OAAM,6BACrB,8BAAC,QACE,mBACC,oBAAC,QAAK,IAAG,KAAK,kBAAO,IAErB,oBAAC,QAAK,OAAM,QAAO,6EAAa,GAEpC,GACF;AAAA,KACF,GACF;AAEJ;","names":[]}
|
package/dist/chunk-7VJB7OZ3.js
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DatePickerButton
|
|
3
|
-
} from "./chunk-ESHEHOVH.js";
|
|
4
|
-
import {
|
|
5
|
-
Form
|
|
6
|
-
} from "./chunk-PWXFETED.js";
|
|
7
|
-
import {
|
|
8
|
-
TextField
|
|
9
|
-
} from "./chunk-5KDNSBO5.js";
|
|
10
|
-
import {
|
|
11
|
-
TextArea
|
|
12
|
-
} from "./chunk-3F45OPXG.js";
|
|
13
|
-
import {
|
|
14
|
-
Flex
|
|
15
|
-
} from "./chunk-25HMMI7R.js";
|
|
16
|
-
import {
|
|
17
|
-
Button
|
|
18
|
-
} from "./chunk-AFPH32MF.js";
|
|
19
|
-
import {
|
|
20
|
-
Card
|
|
21
|
-
} from "./chunk-HEDMSFPW.js";
|
|
22
|
-
import {
|
|
23
|
-
__spreadValues
|
|
24
|
-
} from "./chunk-2NMEKWO5.js";
|
|
25
|
-
|
|
26
|
-
// src/app/platform/goal-manage-card-edit.tsx
|
|
27
|
-
import { useCallback, useState } from "react";
|
|
28
|
-
import { format } from "date-fns";
|
|
29
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
30
|
-
var initialValues = {
|
|
31
|
-
goal: "",
|
|
32
|
-
effect: "",
|
|
33
|
-
huddle: "",
|
|
34
|
-
dueDate: void 0
|
|
35
|
-
};
|
|
36
|
-
var dummyFn = () => {
|
|
37
|
-
};
|
|
38
|
-
function GoalManageCardEdit(props) {
|
|
39
|
-
const { defaultValues, errors } = props;
|
|
40
|
-
const [values, setValues] = useState(defaultValues || initialValues);
|
|
41
|
-
const onChange = useCallback(
|
|
42
|
-
(v) => {
|
|
43
|
-
var _a;
|
|
44
|
-
setValues((prev) => __spreadValues(__spreadValues({}, prev), v));
|
|
45
|
-
(_a = props.onChange) == null ? void 0 : _a.call(props, v);
|
|
46
|
-
},
|
|
47
|
-
[props]
|
|
48
|
-
);
|
|
49
|
-
const onClickInit = useCallback(() => {
|
|
50
|
-
var _a;
|
|
51
|
-
setValues(initialValues);
|
|
52
|
-
(_a = props.onChange) == null ? void 0 : _a.call(props, defaultValues || initialValues);
|
|
53
|
-
}, [defaultValues, props]);
|
|
54
|
-
const onClickSubmit = useCallback(() => {
|
|
55
|
-
var _a;
|
|
56
|
-
(_a = props.onSubmit) == null ? void 0 : _a.call(props, values);
|
|
57
|
-
}, [props, values]);
|
|
58
|
-
return /* @__PURE__ */ jsx(Card, { style: { width: "100%" }, children: /* @__PURE__ */ jsxs(Form.Root, { onSubmit: dummyFn, children: [
|
|
59
|
-
/* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "5", children: [
|
|
60
|
-
/* @__PURE__ */ jsxs(Form.Field, { name: "title", children: [
|
|
61
|
-
/* @__PURE__ */ jsx(Form.Label, { children: "\uC774\uBC88 \uCF54\uCE6D\uC758 \uBAA9\uD45C\uB294 \uC544\uB798\uC640 \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
62
|
-
/* @__PURE__ */ jsx(
|
|
63
|
-
TextField.Root,
|
|
64
|
-
{
|
|
65
|
-
error: Boolean(errors == null ? void 0 : errors.goal),
|
|
66
|
-
onChange: (e) => {
|
|
67
|
-
onChange({ goal: e.target.value });
|
|
68
|
-
},
|
|
69
|
-
placeholder: "\uC774\uBC88 \uCF54\uCE6D \uACFC\uC815\uC758 \uBAA9\uD45C\uB97C \uD55C \uBB38\uC7A5\uC73C\uB85C \uC801\uC5B4\uC8FC\uC138\uC694",
|
|
70
|
-
value: values.goal
|
|
71
|
-
}
|
|
72
|
-
),
|
|
73
|
-
/* @__PURE__ */ jsx(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.goal), children: errors == null ? void 0 : errors.goal })
|
|
74
|
-
] }),
|
|
75
|
-
/* @__PURE__ */ jsxs(Form.Field, { name: "effect", children: [
|
|
76
|
-
/* @__PURE__ */ jsx(Form.Label, { children: "\uAE30\uB300\uD6A8\uACFC" }),
|
|
77
|
-
/* @__PURE__ */ jsx(
|
|
78
|
-
TextArea,
|
|
79
|
-
{
|
|
80
|
-
error: Boolean(errors == null ? void 0 : errors.effect),
|
|
81
|
-
onChange: (e) => {
|
|
82
|
-
onChange({ effect: e.target.value });
|
|
83
|
-
},
|
|
84
|
-
placeholder: "\uC608\uC2DC : \uD300\uC6D0\uB4E4\uACFC \uB354 \uCE5C\uBC00\uD574\uC9C0\uACE0, \uD300\uC6D0\uB4E4\uC5D0 \uB300\uD55C \uC774\uD574\uB3C4\uAC00 \uC313\uC774\uBA70 \uB354 \uD6A8\uC728\uC801\uC778 \uC778\uC7AC\uAD00\uB9AC\uB97C \uC704\uD55C \uAD00\uACC4\uD615\uC131\uC774 \uAC00\uB2A5\uD574\uC9D1\uB2C8\uB2E4.",
|
|
85
|
-
resize: "vertical",
|
|
86
|
-
value: values.effect
|
|
87
|
-
}
|
|
88
|
-
),
|
|
89
|
-
/* @__PURE__ */ jsx(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.effect), children: errors == null ? void 0 : errors.effect })
|
|
90
|
-
] }),
|
|
91
|
-
/* @__PURE__ */ jsxs(Form.Field, { name: "huddle", children: [
|
|
92
|
-
/* @__PURE__ */ jsx(Form.Label, { children: "\uBC29\uD574\uC694\uC18C" }),
|
|
93
|
-
/* @__PURE__ */ jsx(
|
|
94
|
-
TextArea,
|
|
95
|
-
{
|
|
96
|
-
error: Boolean(errors == null ? void 0 : errors.huddle),
|
|
97
|
-
onChange: (e) => {
|
|
98
|
-
onChange({ huddle: e.target.value });
|
|
99
|
-
},
|
|
100
|
-
placeholder: `- \uAC11\uC790\uAE30 \uC7A1\uD788\uB294 \uBBF8\uD305\uB4E4
|
|
101
|
-
- MZ \uC138\uB300\uC640\uC758 \uC790\uC5F0\uC2A4\uB7FD\uC9C0 \uC54A\uC740 \uC18C\uD1B5
|
|
102
|
-
- \uB300\uD654\uC5D0\uC11C \uCC38\uC744\uC131 \uBD80\uC871`,
|
|
103
|
-
resize: "vertical",
|
|
104
|
-
value: values.huddle
|
|
105
|
-
}
|
|
106
|
-
),
|
|
107
|
-
/* @__PURE__ */ jsx(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.huddle), children: errors == null ? void 0 : errors.huddle })
|
|
108
|
-
] }),
|
|
109
|
-
/* @__PURE__ */ jsxs(Form.Field, { name: "dueDate", children: [
|
|
110
|
-
/* @__PURE__ */ jsx(Form.Label, { children: "\uBAA9\uD45C \uB2EC\uC131 \uAE30\uD55C\uC740 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
111
|
-
/* @__PURE__ */ jsx(
|
|
112
|
-
DatePickerButton,
|
|
113
|
-
{
|
|
114
|
-
format: (v) => format(v, "yyyy\uB144 MM\uC6D4 dd\uC77C"),
|
|
115
|
-
onChange: (date) => {
|
|
116
|
-
date && onChange({ dueDate: date });
|
|
117
|
-
},
|
|
118
|
-
placeholder: "YYYY\uB144 MM\uC6D4 DD\uC77C",
|
|
119
|
-
selected: values.dueDate
|
|
120
|
-
}
|
|
121
|
-
),
|
|
122
|
-
/* @__PURE__ */ jsx(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.dueDate), children: errors == null ? void 0 : errors.dueDate })
|
|
123
|
-
] })
|
|
124
|
-
] }),
|
|
125
|
-
/* @__PURE__ */ jsxs(Flex, { gap: "3", justify: "end", width: "100%", children: [
|
|
126
|
-
/* @__PURE__ */ jsx(
|
|
127
|
-
Button,
|
|
128
|
-
{
|
|
129
|
-
color: "gray",
|
|
130
|
-
onClick: onClickInit,
|
|
131
|
-
size: "small",
|
|
132
|
-
type: "button",
|
|
133
|
-
variant: "outline",
|
|
134
|
-
children: "\uCD08\uAE30\uD654\uD558\uAE30"
|
|
135
|
-
}
|
|
136
|
-
),
|
|
137
|
-
/* @__PURE__ */ jsx(Button, { onClick: onClickSubmit, size: "small", type: "button", children: "\uC800\uC7A5\uD558\uAE30" })
|
|
138
|
-
] })
|
|
139
|
-
] }) });
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export {
|
|
143
|
-
GoalManageCardEdit
|
|
144
|
-
};
|
|
145
|
-
//# sourceMappingURL=chunk-7VJB7OZ3.js.map
|
package/dist/chunk-ACG3G2CH.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// src/theme/portal-provider.tsx
|
|
2
|
-
import { createContext, useContext, useRef } from "react";
|
|
3
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
-
var PortalContext = createContext(
|
|
5
|
-
null
|
|
6
|
-
);
|
|
7
|
-
function PortalProvider({ children }) {
|
|
8
|
-
const dialogContainerRef = useRef(null);
|
|
9
|
-
const drawerContainerRef = useRef(null);
|
|
10
|
-
return /* @__PURE__ */ jsxs(PortalContext.Provider, { value: { dialogContainerRef, drawerContainerRef }, children: [
|
|
11
|
-
children,
|
|
12
|
-
/* @__PURE__ */ jsx("div", { className: "drawer-portal-container", ref: drawerContainerRef }),
|
|
13
|
-
/* @__PURE__ */ jsx("div", { className: "dialog-portal-container", ref: dialogContainerRef })
|
|
14
|
-
] });
|
|
15
|
-
}
|
|
16
|
-
var usePortalContainer = () => {
|
|
17
|
-
try {
|
|
18
|
-
const state = useContext(PortalContext);
|
|
19
|
-
return state;
|
|
20
|
-
} catch (error) {
|
|
21
|
-
throw new Error("PortalProvider not found");
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
var portal_provider_default = PortalProvider;
|
|
25
|
-
|
|
26
|
-
export {
|
|
27
|
-
PortalProvider,
|
|
28
|
-
usePortalContainer,
|
|
29
|
-
portal_provider_default
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=chunk-ACG3G2CH.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/theme/portal-provider.tsx"],"sourcesContent":["import React, { createContext, useContext, useRef } from 'react';\n\ninterface PortalProviderProps {\n children: React.ReactNode;\n}\n\ninterface PortalState {\n dialogContainerRef: React.RefObject<HTMLDivElement>;\n drawerContainerRef: React.RefObject<HTMLDivElement>;\n}\n\nconst PortalContext = createContext<PortalState>(\n null as unknown as PortalState\n);\n\nexport function PortalProvider({ children }: PortalProviderProps): JSX.Element {\n const dialogContainerRef = useRef<HTMLDivElement | null>(null);\n const drawerContainerRef = useRef<HTMLDivElement | null>(null);\n\n return (\n <PortalContext.Provider value={{ dialogContainerRef, drawerContainerRef }}>\n {children}\n <div className=\"drawer-portal-container\" ref={drawerContainerRef} />\n <div className=\"dialog-portal-container\" ref={dialogContainerRef} />\n </PortalContext.Provider>\n );\n}\n\nexport const usePortalContainer = (): PortalState => {\n try {\n const state = useContext(PortalContext);\n return state;\n } catch (error) {\n throw new Error('PortalProvider not found');\n }\n};\n\nexport default PortalProvider;\n"],"mappings":";AAAA,SAAgB,eAAe,YAAY,cAAc;AAoBrD,SAEE,KAFF;AATJ,IAAM,gBAAgB;AAAA,EACpB;AACF;AAEO,SAAS,eAAe,EAAE,SAAS,GAAqC;AAC7E,QAAM,qBAAqB,OAA8B,IAAI;AAC7D,QAAM,qBAAqB,OAA8B,IAAI;AAE7D,SACE,qBAAC,cAAc,UAAd,EAAuB,OAAO,EAAE,oBAAoB,mBAAmB,GACrE;AAAA;AAAA,IACD,oBAAC,SAAI,WAAU,2BAA0B,KAAK,oBAAoB;AAAA,IAClE,oBAAC,SAAI,WAAU,2BAA0B,KAAK,oBAAoB;AAAA,KACpE;AAEJ;AAEO,IAAM,qBAAqB,MAAmB;AACnD,MAAI;AACF,UAAM,QAAQ,WAAW,aAAa;AACtC,WAAO;AAAA,EACT,SAAS,OAAO;AACd,UAAM,IAAI,MAAM,0BAA0B;AAAA,EAC5C;AACF;AAEA,IAAO,0BAAQ;","names":[]}
|
package/dist/chunk-AEPCBZF7.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
CoachingCustomerInfoLarge
|
|
3
|
-
} from "./chunk-QMT5IFKD.js";
|
|
4
|
-
import {
|
|
5
|
-
CoachingCustomerInfoMedium
|
|
6
|
-
} from "./chunk-JKNCADEB.js";
|
|
7
|
-
import {
|
|
8
|
-
CoachingCustomerInfoSmall
|
|
9
|
-
} from "./chunk-M7C3ID36.js";
|
|
10
|
-
import {
|
|
11
|
-
Box
|
|
12
|
-
} from "./chunk-4Y5BEXVN.js";
|
|
13
|
-
import {
|
|
14
|
-
__spreadValues
|
|
15
|
-
} from "./chunk-2NMEKWO5.js";
|
|
16
|
-
|
|
17
|
-
// src/app/platform/userInfos/coaching-customer-info/index.tsx
|
|
18
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
19
|
-
function CoachingCustomerInfo(props) {
|
|
20
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
21
|
-
/* @__PURE__ */ jsx(Box, { display: { initial: "block", sm: "none", md: "none" }, children: /* @__PURE__ */ jsx(CoachingCustomerInfoSmall, __spreadValues({}, props)) }),
|
|
22
|
-
/* @__PURE__ */ jsx(Box, { display: { initial: "none", sm: "block", md: "none" }, children: /* @__PURE__ */ jsx(CoachingCustomerInfoMedium, __spreadValues({}, props)) }),
|
|
23
|
-
/* @__PURE__ */ jsx(Box, { display: { initial: "none", sm: "none", md: "block" }, children: /* @__PURE__ */ jsx(CoachingCustomerInfoLarge, __spreadValues({}, props)) })
|
|
24
|
-
] });
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
CoachingCustomerInfo
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=chunk-AEPCBZF7.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/app/platform/userInfos/coaching-customer-info/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Box } from '../../../../atoms';\nimport type { CoachingCustomerInfoProps } from '../utils';\nimport { CoachingCustomerInfoSmall } from './small';\nimport { CoachingCustomerInfoMedium } from './medium';\nimport { CoachingCustomerInfoLarge } from './large';\n\nexport {\n CoachingCustomerInfoLarge,\n CoachingCustomerInfoMedium,\n CoachingCustomerInfoSmall,\n};\n\nexport { type CoachingCustomerInfoProps };\n\nexport function CoachingCustomerInfo(\n props: CoachingCustomerInfoProps\n): React.ReactNode {\n return (\n <>\n <Box display={{ initial: 'block', sm: 'none', md: 'none' }}>\n <CoachingCustomerInfoSmall {...props} />\n </Box>\n <Box display={{ initial: 'none', sm: 'block', md: 'none' }}>\n <CoachingCustomerInfoMedium {...props} />\n </Box>\n <Box display={{ initial: 'none', sm: 'none', md: 'block' }}>\n <CoachingCustomerInfoLarge {...props} />\n </Box>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAmBI,mBAEI,KAFJ;AAJG,SAAS,qBACd,OACiB;AACjB,SACE,iCACE;AAAA,wBAAC,OAAI,SAAS,EAAE,SAAS,SAAS,IAAI,QAAQ,IAAI,OAAO,GACvD,8BAAC,8CAA8B,MAAO,GACxC;AAAA,IACA,oBAAC,OAAI,SAAS,EAAE,SAAS,QAAQ,IAAI,SAAS,IAAI,OAAO,GACvD,8BAAC,+CAA+B,MAAO,GACzC;AAAA,IACA,oBAAC,OAAI,SAAS,EAAE,SAAS,QAAQ,IAAI,QAAQ,IAAI,QAAQ,GACvD,8BAAC,8CAA8B,MAAO,GACxC;AAAA,KACF;AAEJ;","names":[]}
|