@tipp/ui 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/index.cjs +201 -187
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +36 -36
- package/dist/app/platform/coach-question-list.cjs +7 -7
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +16 -16
- package/dist/app/platform/edit-coaching-time.cjs +18 -18
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +26 -26
- package/dist/app/platform/edit-service-type.cjs +10 -10
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +25 -25
- package/dist/app/platform/goal-manage-card-edit.cjs +14 -14
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +24 -24
- package/dist/app/platform/goal-manage-card-read.cjs +16 -16
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +17 -17
- package/dist/app/platform/on-offline-radio-card.js +23 -23
- package/dist/app/platform/report-card.cjs +7 -7
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +23 -23
- package/dist/app/platform/reservation-card.cjs +28 -28
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +24 -24
- package/dist/app/platform/session-card.cjs +122 -108
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +27 -27
- package/dist/app/platform/session-review-simple-read.cjs +8 -8
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +17 -17
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +17 -17
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +20 -20
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +8 -8
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +17 -17
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +13 -13
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +17 -17
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +11 -11
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +17 -17
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +11 -11
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +17 -17
- package/dist/app/platform/userInfos/utils.js +16 -16
- package/dist/atoms/button.d.cts +1 -1
- package/dist/atoms/button.d.ts +1 -1
- package/dist/atoms/dialog.cjs +55 -81
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.d.cts +2 -0
- package/dist/atoms/dialog.d.ts +2 -0
- package/dist/atoms/dialog.js +3 -3
- package/dist/atoms/index.cjs +145 -131
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +39 -39
- package/dist/chunk-2M2IFCSK.js +52 -0
- package/dist/chunk-2M2IFCSK.js.map +1 -0
- package/dist/chunk-2OS7X2DG.js +138 -0
- package/dist/chunk-2OS7X2DG.js.map +1 -0
- package/dist/chunk-36JB7UOF.js +138 -0
- package/dist/chunk-36JB7UOF.js.map +1 -0
- package/dist/chunk-4T4KKREE.js +30 -0
- package/dist/chunk-4T4KKREE.js.map +1 -0
- package/dist/chunk-5327PTNJ.js +138 -0
- package/dist/chunk-5327PTNJ.js.map +1 -0
- package/dist/chunk-547DJCAJ.js +74 -0
- package/dist/chunk-547DJCAJ.js.map +1 -0
- package/dist/chunk-5AAS42YG.js +98 -0
- package/dist/chunk-5AAS42YG.js.map +1 -0
- package/dist/chunk-5E3TLMRW.js +138 -0
- package/dist/chunk-5E3TLMRW.js.map +1 -0
- package/dist/chunk-5FP6SWXJ.js +203 -0
- package/dist/chunk-5FP6SWXJ.js.map +1 -0
- package/dist/chunk-6GXQGGUZ.js +64 -0
- package/dist/chunk-6GXQGGUZ.js.map +1 -0
- package/dist/chunk-6Y3Z5OIX.js +101 -0
- package/dist/chunk-6Y3Z5OIX.js.map +1 -0
- package/dist/chunk-7EDPO2Y5.js +138 -0
- package/dist/chunk-7EDPO2Y5.js.map +1 -0
- package/dist/chunk-7OJSWKHZ.js +138 -0
- package/dist/chunk-7OJSWKHZ.js.map +1 -0
- package/dist/chunk-7TWIGS7O.js +101 -0
- package/dist/chunk-7TWIGS7O.js.map +1 -0
- package/dist/chunk-7WLDXOOO.js +350 -0
- package/dist/chunk-7WLDXOOO.js.map +1 -0
- package/dist/chunk-7ZEWNVHJ.js +192 -0
- package/dist/chunk-7ZEWNVHJ.js.map +1 -0
- package/dist/chunk-AGPJA7IM.js +110 -0
- package/dist/chunk-AGPJA7IM.js.map +1 -0
- package/dist/chunk-AKKAPBO4.js +52 -0
- package/dist/chunk-AKKAPBO4.js.map +1 -0
- package/dist/chunk-AOCMD34M.js +138 -0
- package/dist/chunk-AOCMD34M.js.map +1 -0
- package/dist/chunk-AP5ARKJL.js +138 -0
- package/dist/chunk-AP5ARKJL.js.map +1 -0
- package/dist/chunk-B6XJ2W4L.js +243 -0
- package/dist/chunk-B6XJ2W4L.js.map +1 -0
- package/dist/chunk-C24NCIRF.js +138 -0
- package/dist/chunk-C24NCIRF.js.map +1 -0
- package/dist/chunk-C3QWDJ3D.js +145 -0
- package/dist/chunk-C3QWDJ3D.js.map +1 -0
- package/dist/chunk-CCYMLZTF.js +73 -0
- package/dist/chunk-CCYMLZTF.js.map +1 -0
- package/dist/chunk-CEMVFONQ.js +104 -0
- package/dist/chunk-CEMVFONQ.js.map +1 -0
- package/dist/chunk-CJ3XXETF.js +109 -0
- package/dist/chunk-CJ3XXETF.js.map +1 -0
- package/dist/chunk-EBSM7TV4.js +101 -0
- package/dist/chunk-EBSM7TV4.js.map +1 -0
- package/dist/chunk-FMCDZEXR.js +58 -0
- package/dist/chunk-FMCDZEXR.js.map +1 -0
- package/dist/chunk-GZRUTEDV.js +101 -0
- package/dist/chunk-GZRUTEDV.js.map +1 -0
- package/dist/chunk-H623KT6H.js +138 -0
- package/dist/chunk-H623KT6H.js.map +1 -0
- package/dist/chunk-I55PKI44.js +57 -0
- package/dist/chunk-I55PKI44.js.map +1 -0
- package/dist/chunk-IE5GRQOQ.js +112 -0
- package/dist/chunk-IE5GRQOQ.js.map +1 -0
- package/dist/chunk-IFHIVCXR.js +76 -0
- package/dist/chunk-IFHIVCXR.js.map +1 -0
- package/dist/chunk-IVGPZUCB.js +203 -0
- package/dist/chunk-IVGPZUCB.js.map +1 -0
- package/dist/chunk-JTEQ25Z5.js +101 -0
- package/dist/chunk-JTEQ25Z5.js.map +1 -0
- package/dist/chunk-JXRHM4PD.js +138 -0
- package/dist/chunk-JXRHM4PD.js.map +1 -0
- package/dist/chunk-JZXYBYIV.js +39 -0
- package/dist/chunk-JZXYBYIV.js.map +1 -0
- package/dist/chunk-KJMWCR2G.js +101 -0
- package/dist/chunk-KJMWCR2G.js.map +1 -0
- package/dist/chunk-LQT6ZGLA.js +138 -0
- package/dist/chunk-LQT6ZGLA.js.map +1 -0
- package/dist/chunk-LWPBL4WG.js +243 -0
- package/dist/chunk-LWPBL4WG.js.map +1 -0
- package/dist/chunk-M5G5KMUE.js +76 -0
- package/dist/chunk-M5G5KMUE.js.map +1 -0
- package/dist/chunk-MI2LODDO.js +138 -0
- package/dist/chunk-MI2LODDO.js.map +1 -0
- package/dist/chunk-MODBHLOL.js +138 -0
- package/dist/chunk-MODBHLOL.js.map +1 -0
- package/dist/chunk-MOZLM3CP.js +171 -0
- package/dist/chunk-MOZLM3CP.js.map +1 -0
- package/dist/chunk-MR4FQ4H6.js +93 -0
- package/dist/chunk-MR4FQ4H6.js.map +1 -0
- package/dist/chunk-NFTADDQN.js +138 -0
- package/dist/chunk-NFTADDQN.js.map +1 -0
- package/dist/chunk-NHC6ZFBA.js +138 -0
- package/dist/chunk-NHC6ZFBA.js.map +1 -0
- package/dist/chunk-NPSJEUC6.js +138 -0
- package/dist/chunk-NPSJEUC6.js.map +1 -0
- package/dist/chunk-OUZT3SDR.js +59 -0
- package/dist/chunk-OUZT3SDR.js.map +1 -0
- package/dist/chunk-PMLOM6GM.js +138 -0
- package/dist/chunk-PMLOM6GM.js.map +1 -0
- package/dist/chunk-PWD34ME3.js +76 -0
- package/dist/chunk-PWD34ME3.js.map +1 -0
- package/dist/chunk-PWPVK2HB.js +112 -0
- package/dist/chunk-PWPVK2HB.js.map +1 -0
- package/dist/chunk-Q64HDW6R.js +109 -0
- package/dist/chunk-Q64HDW6R.js.map +1 -0
- package/dist/chunk-QJ4FYN6G.js +76 -0
- package/dist/chunk-QJ4FYN6G.js.map +1 -0
- package/dist/chunk-QLPJXYNG.js +30 -0
- package/dist/chunk-QLPJXYNG.js.map +1 -0
- package/dist/chunk-QNYWSY5P.js +164 -0
- package/dist/chunk-QNYWSY5P.js.map +1 -0
- package/dist/chunk-R255GZPB.js +35 -0
- package/dist/chunk-R255GZPB.js.map +1 -0
- package/dist/chunk-RGH3ADLO.js +101 -0
- package/dist/chunk-RGH3ADLO.js.map +1 -0
- package/dist/chunk-RLFG5TCU.js +98 -0
- package/dist/chunk-RLFG5TCU.js.map +1 -0
- package/dist/chunk-STD6C6HS.js +52 -0
- package/dist/chunk-STD6C6HS.js.map +1 -0
- package/dist/chunk-TCF7B3N3.js +101 -0
- package/dist/chunk-TCF7B3N3.js.map +1 -0
- package/dist/chunk-TJ564MUO.js +145 -0
- package/dist/chunk-TJ564MUO.js.map +1 -0
- package/dist/chunk-TJSCVJT2.js +138 -0
- package/dist/chunk-TJSCVJT2.js.map +1 -0
- package/dist/chunk-TMDNIBIV.js +64 -0
- package/dist/chunk-TMDNIBIV.js.map +1 -0
- package/dist/chunk-TW5EULWR.js +93 -0
- package/dist/chunk-TW5EULWR.js.map +1 -0
- package/dist/chunk-UB6KOKKQ.js +138 -0
- package/dist/chunk-UB6KOKKQ.js.map +1 -0
- package/dist/chunk-UDV652HT.js +145 -0
- package/dist/chunk-UDV652HT.js.map +1 -0
- package/dist/chunk-UVJASJN4.js +64 -0
- package/dist/chunk-UVJASJN4.js.map +1 -0
- package/dist/chunk-VXTOWVUI.js +203 -0
- package/dist/chunk-VXTOWVUI.js.map +1 -0
- package/dist/chunk-VYGMNI7T.js +138 -0
- package/dist/chunk-VYGMNI7T.js.map +1 -0
- package/dist/chunk-W4QKUPPN.js +138 -0
- package/dist/chunk-W4QKUPPN.js.map +1 -0
- package/dist/chunk-WOVEXBEW.js +64 -0
- package/dist/chunk-WOVEXBEW.js.map +1 -0
- package/dist/chunk-WVBFSWKT.js +104 -0
- package/dist/chunk-WVBFSWKT.js.map +1 -0
- package/dist/chunk-X3SEOKG4.js +243 -0
- package/dist/chunk-X3SEOKG4.js.map +1 -0
- package/dist/chunk-XBYZM24U.js +112 -0
- package/dist/chunk-XBYZM24U.js.map +1 -0
- package/dist/chunk-XEJG52Y3.js +112 -0
- package/dist/chunk-XEJG52Y3.js.map +1 -0
- package/dist/chunk-XEJNYJF6.js +80 -0
- package/dist/chunk-XEJNYJF6.js.map +1 -0
- package/dist/chunk-XGFGTMZU.js +350 -0
- package/dist/chunk-XGFGTMZU.js.map +1 -0
- package/dist/chunk-XKB7JSXW.js +171 -0
- package/dist/chunk-XKB7JSXW.js.map +1 -0
- package/dist/chunk-XNOQPF6O.js +171 -0
- package/dist/chunk-XNOQPF6O.js.map +1 -0
- package/dist/chunk-Y2MNPJCI.js +73 -0
- package/dist/chunk-Y2MNPJCI.js.map +1 -0
- package/dist/chunk-Y2TFOMTA.js +30 -0
- package/dist/chunk-Y2TFOMTA.js.map +1 -0
- package/dist/chunk-YHW5PCCE.js +57 -0
- package/dist/chunk-YHW5PCCE.js.map +1 -0
- package/dist/chunk-YK2IAHKI.js +138 -0
- package/dist/chunk-YK2IAHKI.js.map +1 -0
- package/dist/chunk-YVWOLJ44.js +101 -0
- package/dist/chunk-YVWOLJ44.js.map +1 -0
- package/dist/chunk-ZAQQ6H6W.js +30 -0
- package/dist/chunk-ZAQQ6H6W.js.map +1 -0
- package/dist/chunk-ZUL5FOQW.js +203 -0
- package/dist/chunk-ZUL5FOQW.js.map +1 -0
- package/dist/chunk-ZW34437K.js +138 -0
- package/dist/chunk-ZW34437K.js.map +1 -0
- package/dist/chunk-ZW37CDPD.js +243 -0
- package/dist/chunk-ZW37CDPD.js.map +1 -0
- package/dist/index.cjs +325 -311
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +5 -3
- package/dist/index.css.map +1 -1
- package/dist/index.js +68 -68
- package/dist/layouts/index.js +16 -16
- package/dist/layouts/response-display.js +16 -16
- package/dist/molecules/date-picker/date-picker-button.cjs +12 -12
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +18 -18
- package/dist/molecules/date-picker/index.js +2 -2
- package/dist/molecules/expand-table/index.cjs +12 -12
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +19 -19
- package/dist/molecules/expand-table/row.js +16 -16
- package/dist/molecules/index.cjs +46 -46
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +23 -23
- package/dist/molecules/learning-post.js +2 -2
- package/dist/molecules/navigation.js +16 -16
- package/dist/molecules/radio-button-card.js +16 -16
- package/dist/molecules/tag-selector.js +17 -17
- package/dist/molecules/time-select.js +16 -16
- package/package.json +3 -3
- package/src/atoms/dialog.tsx +32 -7
package/dist/app/index.cjs
CHANGED
|
@@ -227,7 +227,8 @@ var import_themes5 = require("@radix-ui/themes");
|
|
|
227
227
|
// src/atoms/dialog.tsx
|
|
228
228
|
var RadixDialog = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
229
229
|
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
230
|
-
var
|
|
230
|
+
var import_themes9 = require("@radix-ui/themes");
|
|
231
|
+
var import_react5 = require("react");
|
|
231
232
|
|
|
232
233
|
// src/atoms/toast.tsx
|
|
233
234
|
var import_react_icons = require("@radix-ui/react-icons");
|
|
@@ -257,8 +258,37 @@ function ToastContainer(props) {
|
|
|
257
258
|
);
|
|
258
259
|
}
|
|
259
260
|
|
|
260
|
-
// src/atoms/
|
|
261
|
+
// src/atoms/heading.tsx
|
|
262
|
+
var import_themes6 = require("@radix-ui/themes");
|
|
263
|
+
var import_react4 = require("react");
|
|
264
|
+
var import_themes7 = require("@radix-ui/themes");
|
|
261
265
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
266
|
+
function Heading2(props) {
|
|
267
|
+
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
268
|
+
const radixSize = (0, import_react4.useMemo)(() => {
|
|
269
|
+
switch (variant) {
|
|
270
|
+
case "heading1":
|
|
271
|
+
return "7";
|
|
272
|
+
case "heading2":
|
|
273
|
+
return "6";
|
|
274
|
+
case "heading3":
|
|
275
|
+
return "5";
|
|
276
|
+
case "heading4":
|
|
277
|
+
return "4";
|
|
278
|
+
case "heading5":
|
|
279
|
+
return "3";
|
|
280
|
+
default:
|
|
281
|
+
return size;
|
|
282
|
+
}
|
|
283
|
+
}, [size, variant]);
|
|
284
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_themes6.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
// src/atoms/icon-button.tsx
|
|
288
|
+
var import_themes8 = require("@radix-ui/themes");
|
|
289
|
+
|
|
290
|
+
// src/atoms/dialog.tsx
|
|
291
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
262
292
|
var preventDefault = (e) => {
|
|
263
293
|
e.preventDefault();
|
|
264
294
|
};
|
|
@@ -271,7 +301,9 @@ function Content2(props) {
|
|
|
271
301
|
minWidth,
|
|
272
302
|
maxHeight,
|
|
273
303
|
height,
|
|
274
|
-
minHeight
|
|
304
|
+
minHeight,
|
|
305
|
+
title,
|
|
306
|
+
buttons
|
|
275
307
|
} = _a, rest = __objRest(_a, [
|
|
276
308
|
"children",
|
|
277
309
|
"style",
|
|
@@ -280,10 +312,17 @@ function Content2(props) {
|
|
|
280
312
|
"minWidth",
|
|
281
313
|
"maxHeight",
|
|
282
314
|
"height",
|
|
283
|
-
"minHeight"
|
|
315
|
+
"minHeight",
|
|
316
|
+
"title",
|
|
317
|
+
"buttons"
|
|
284
318
|
]);
|
|
285
|
-
|
|
286
|
-
|
|
319
|
+
const containerRef = (0, import_react5.useRef)(null);
|
|
320
|
+
if (typeof document !== "undefined") {
|
|
321
|
+
const container = document.getElementsByClassName("radix-themes")[0];
|
|
322
|
+
containerRef.current = container;
|
|
323
|
+
}
|
|
324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadixDialog.Portal, { container: containerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_themes9.Theme, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(RadixDialog.Overlay, { className: "DialogOverlay", children: [
|
|
325
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
|
|
287
326
|
RadixDialog.Content,
|
|
288
327
|
__spreadProps(__spreadValues({
|
|
289
328
|
className: "DialogContent",
|
|
@@ -297,13 +336,17 @@ function Content2(props) {
|
|
|
297
336
|
minHeight
|
|
298
337
|
}, style)
|
|
299
338
|
}, rest), {
|
|
300
|
-
children:
|
|
301
|
-
/* @__PURE__ */ (0,
|
|
302
|
-
|
|
303
|
-
|
|
339
|
+
children: [
|
|
340
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_themes9.Flex, { gap: "2", justify: "between", children: [
|
|
341
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadixDialog.Title, { asChild: true, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(Heading2, { variant: "heading3", children: title }) : title }),
|
|
342
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_themes8.IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react_icons2.Cross1Icon, {}) }) })
|
|
343
|
+
] }),
|
|
344
|
+
children,
|
|
345
|
+
buttons ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_themes9.Flex, { gap: "3", justify: "end", mt: "3", children: buttons }) : null
|
|
346
|
+
]
|
|
304
347
|
})
|
|
305
348
|
),
|
|
306
|
-
/* @__PURE__ */ (0,
|
|
349
|
+
/* @__PURE__ */ (0, import_jsx_runtime6.jsx)(ToastContainer, {})
|
|
307
350
|
] }) }) });
|
|
308
351
|
}
|
|
309
352
|
function Close2(_a) {
|
|
@@ -312,7 +355,7 @@ function Close2(_a) {
|
|
|
312
355
|
} = _b, rest = __objRest(_b, [
|
|
313
356
|
"children"
|
|
314
357
|
]);
|
|
315
|
-
return /* @__PURE__ */ (0,
|
|
358
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
316
359
|
}
|
|
317
360
|
function Trigger2(_a) {
|
|
318
361
|
var _b = _a, {
|
|
@@ -320,7 +363,7 @@ function Trigger2(_a) {
|
|
|
320
363
|
} = _b, rest = __objRest(_b, [
|
|
321
364
|
"children"
|
|
322
365
|
]);
|
|
323
|
-
return /* @__PURE__ */ (0,
|
|
366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
324
367
|
}
|
|
325
368
|
var Dialog = {
|
|
326
369
|
Root: RadixDialog.Root,
|
|
@@ -332,38 +375,9 @@ var Dialog = {
|
|
|
332
375
|
};
|
|
333
376
|
|
|
334
377
|
// src/atoms/flex.tsx
|
|
335
|
-
var import_themes7 = require("@radix-ui/themes");
|
|
336
|
-
|
|
337
|
-
// src/atoms/grid.tsx
|
|
338
|
-
var import_themes8 = require("@radix-ui/themes");
|
|
339
|
-
|
|
340
|
-
// src/atoms/heading.tsx
|
|
341
|
-
var import_themes9 = require("@radix-ui/themes");
|
|
342
|
-
var import_react4 = require("react");
|
|
343
378
|
var import_themes10 = require("@radix-ui/themes");
|
|
344
|
-
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
345
|
-
function Heading2(props) {
|
|
346
|
-
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
347
|
-
const radixSize = (0, import_react4.useMemo)(() => {
|
|
348
|
-
switch (variant) {
|
|
349
|
-
case "heading1":
|
|
350
|
-
return "7";
|
|
351
|
-
case "heading2":
|
|
352
|
-
return "6";
|
|
353
|
-
case "heading3":
|
|
354
|
-
return "5";
|
|
355
|
-
case "heading4":
|
|
356
|
-
return "4";
|
|
357
|
-
case "heading5":
|
|
358
|
-
return "3";
|
|
359
|
-
default:
|
|
360
|
-
return size;
|
|
361
|
-
}
|
|
362
|
-
}, [size, variant]);
|
|
363
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_themes9.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
364
|
-
}
|
|
365
379
|
|
|
366
|
-
// src/atoms/
|
|
380
|
+
// src/atoms/grid.tsx
|
|
367
381
|
var import_themes11 = require("@radix-ui/themes");
|
|
368
382
|
|
|
369
383
|
// src/atoms/inset.tsx
|
|
@@ -371,12 +385,12 @@ var import_themes12 = require("@radix-ui/themes");
|
|
|
371
385
|
|
|
372
386
|
// src/atoms/link.tsx
|
|
373
387
|
var import_themes13 = require("@radix-ui/themes");
|
|
374
|
-
var
|
|
388
|
+
var import_react6 = require("react");
|
|
375
389
|
var import_themes14 = require("@radix-ui/themes");
|
|
376
390
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
377
391
|
function Link(props) {
|
|
378
392
|
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
379
|
-
const radixSize = (0,
|
|
393
|
+
const radixSize = (0, import_react6.useMemo)(() => {
|
|
380
394
|
switch (variant) {
|
|
381
395
|
case "caption":
|
|
382
396
|
return "1";
|
|
@@ -402,15 +416,15 @@ var import_themes17 = require("@radix-ui/themes");
|
|
|
402
416
|
|
|
403
417
|
// src/atoms/select.tsx
|
|
404
418
|
var import_themes18 = require("@radix-ui/themes");
|
|
405
|
-
var
|
|
419
|
+
var import_react7 = require("react");
|
|
406
420
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
407
|
-
var SelectContext = (0,
|
|
421
|
+
var SelectContext = (0, import_react7.createContext)({
|
|
408
422
|
error: false
|
|
409
423
|
});
|
|
410
|
-
var Content3 = (0,
|
|
424
|
+
var Content3 = (0, import_react7.forwardRef)((props, ref) => {
|
|
411
425
|
const _a = props, { className, isNavigation } = _a, rest = __objRest(_a, ["className", "isNavigation"]);
|
|
412
|
-
const { error } = (0,
|
|
413
|
-
const cls = (0,
|
|
426
|
+
const { error } = (0, import_react7.useContext)(SelectContext);
|
|
427
|
+
const cls = (0, import_react7.useMemo)(() => {
|
|
414
428
|
const etc = isNavigation ? "nav-select" : "";
|
|
415
429
|
const errorCls = error ? "tipp-error" : "";
|
|
416
430
|
return [etc, errorCls, className].join(" ");
|
|
@@ -426,11 +440,11 @@ var Content3 = (0, import_react6.forwardRef)((props, ref) => {
|
|
|
426
440
|
);
|
|
427
441
|
});
|
|
428
442
|
Content3.displayName = "Select.Content";
|
|
429
|
-
var Trigger3 = (0,
|
|
443
|
+
var Trigger3 = (0, import_react7.forwardRef)(
|
|
430
444
|
(props, ref) => {
|
|
431
445
|
const _a = props, { className } = _a, rest = __objRest(_a, ["className"]);
|
|
432
|
-
const { error } = (0,
|
|
433
|
-
const cls = (0,
|
|
446
|
+
const { error } = (0, import_react7.useContext)(SelectContext);
|
|
447
|
+
const cls = (0, import_react7.useMemo)(() => {
|
|
434
448
|
const errorCls = error ? "error" : "";
|
|
435
449
|
return [errorCls, className].join(" ");
|
|
436
450
|
}, [className, error]);
|
|
@@ -454,12 +468,12 @@ var import_themes19 = require("@radix-ui/themes");
|
|
|
454
468
|
|
|
455
469
|
// src/atoms/text-area.tsx
|
|
456
470
|
var import_themes20 = require("@radix-ui/themes");
|
|
457
|
-
var
|
|
471
|
+
var import_react8 = require("react");
|
|
458
472
|
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
459
|
-
var TextArea = (0,
|
|
473
|
+
var TextArea = (0, import_react8.forwardRef)(
|
|
460
474
|
(props, ref) => {
|
|
461
475
|
const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
|
|
462
|
-
const fieldStyle = (0,
|
|
476
|
+
const fieldStyle = (0, import_react8.useMemo)(() => {
|
|
463
477
|
if (!error)
|
|
464
478
|
return style;
|
|
465
479
|
const errorStyle = {
|
|
@@ -482,12 +496,12 @@ TextArea.displayName = "TextArea";
|
|
|
482
496
|
|
|
483
497
|
// src/atoms/typo.tsx
|
|
484
498
|
var import_themes21 = require("@radix-ui/themes");
|
|
485
|
-
var
|
|
499
|
+
var import_react9 = require("react");
|
|
486
500
|
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
487
|
-
var Typo = (0,
|
|
501
|
+
var Typo = (0, import_react9.forwardRef)(
|
|
488
502
|
(props, ref) => {
|
|
489
503
|
const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
|
|
490
|
-
const radixSize = (0,
|
|
504
|
+
const radixSize = (0, import_react9.useMemo)(() => {
|
|
491
505
|
if (size !== void 0)
|
|
492
506
|
return size;
|
|
493
507
|
switch (variant) {
|
|
@@ -507,11 +521,11 @@ Typo.displayName = "Typo";
|
|
|
507
521
|
|
|
508
522
|
// src/atoms/text-field.tsx
|
|
509
523
|
var import_themes22 = require("@radix-ui/themes");
|
|
510
|
-
var
|
|
524
|
+
var import_react10 = require("react");
|
|
511
525
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
512
|
-
var Root3 = (0,
|
|
526
|
+
var Root3 = (0, import_react10.forwardRef)((props, ref) => {
|
|
513
527
|
const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
|
|
514
|
-
const fieldStyle = (0,
|
|
528
|
+
const fieldStyle = (0, import_react10.useMemo)(() => {
|
|
515
529
|
if (!error)
|
|
516
530
|
return style;
|
|
517
531
|
const errorStyle = {
|
|
@@ -533,20 +547,20 @@ Root3.displayName = "TextField.Root";
|
|
|
533
547
|
var TextField = { Root: Root3, Slot: import_themes22.TextField.Slot };
|
|
534
548
|
|
|
535
549
|
// src/atoms/collapse.tsx
|
|
536
|
-
var
|
|
550
|
+
var import_react11 = require("react");
|
|
537
551
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
538
552
|
function Collapse(props) {
|
|
539
553
|
const { children, closedHeight = "0" } = props;
|
|
540
|
-
const [open, setOpen] = (0,
|
|
554
|
+
const [open, setOpen] = (0, import_react11.useState)(() => {
|
|
541
555
|
return props.open || props.defaultOpen || false;
|
|
542
556
|
});
|
|
543
|
-
(0,
|
|
557
|
+
(0, import_react11.useEffect)(() => {
|
|
544
558
|
if (props.open === void 0)
|
|
545
559
|
return;
|
|
546
560
|
setOpen(props.open);
|
|
547
561
|
}, [props.open]);
|
|
548
|
-
const ref = (0,
|
|
549
|
-
(0,
|
|
562
|
+
const ref = (0, import_react11.useRef)(null);
|
|
563
|
+
(0, import_react11.useEffect)(() => {
|
|
550
564
|
if (!ref.current)
|
|
551
565
|
return;
|
|
552
566
|
ref.current.style.maxHeight = open ? `${ref.current.scrollHeight}px` : closedHeight;
|
|
@@ -559,9 +573,9 @@ var import_react_icons3 = require("@radix-ui/react-icons");
|
|
|
559
573
|
|
|
560
574
|
// src/molecules/form.tsx
|
|
561
575
|
var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
|
|
562
|
-
var
|
|
576
|
+
var import_react12 = require("react");
|
|
563
577
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
564
|
-
var Root5 = (0,
|
|
578
|
+
var Root5 = (0, import_react12.forwardRef)(
|
|
565
579
|
(_a, ref) => {
|
|
566
580
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
567
581
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
@@ -575,10 +589,10 @@ var Root5 = (0, import_react11.forwardRef)(
|
|
|
575
589
|
}
|
|
576
590
|
);
|
|
577
591
|
Root5.displayName = "FORM_ROOT";
|
|
578
|
-
var FieldContext = (0,
|
|
592
|
+
var FieldContext = (0, import_react12.createContext)({
|
|
579
593
|
name: ""
|
|
580
594
|
});
|
|
581
|
-
var Field2 = (0,
|
|
595
|
+
var Field2 = (0, import_react12.forwardRef)(
|
|
582
596
|
(_a, ref) => {
|
|
583
597
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
584
598
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
@@ -598,10 +612,10 @@ function HeadingLabel(props) {
|
|
|
598
612
|
function CaptionLabel(props) {
|
|
599
613
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(Typo, __spreadProps(__spreadValues({ color: "gray", variant: "caption" }, props), { children: props.children }));
|
|
600
614
|
}
|
|
601
|
-
var Label2 = (0,
|
|
615
|
+
var Label2 = (0, import_react12.forwardRef)(
|
|
602
616
|
(_a, ref) => {
|
|
603
617
|
var _b = _a, { children, className, variant } = _b, rest = __objRest(_b, ["children", "className", "variant"]);
|
|
604
|
-
const Comp = (0,
|
|
618
|
+
const Comp = (0, import_react12.useMemo)(() => {
|
|
605
619
|
switch (variant) {
|
|
606
620
|
case "title":
|
|
607
621
|
return HeadingLabel;
|
|
@@ -612,7 +626,7 @@ var Label2 = (0, import_react11.forwardRef)(
|
|
|
612
626
|
return Typo;
|
|
613
627
|
}
|
|
614
628
|
}, [variant]);
|
|
615
|
-
const fieldProps = (0,
|
|
629
|
+
const fieldProps = (0, import_react12.useContext)(FieldContext);
|
|
616
630
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
617
631
|
RadixForm.Label,
|
|
618
632
|
__spreadProps(__spreadValues({}, rest), {
|
|
@@ -628,7 +642,7 @@ var Label2 = (0, import_react11.forwardRef)(
|
|
|
628
642
|
}
|
|
629
643
|
);
|
|
630
644
|
Label2.displayName = "FORM_Label";
|
|
631
|
-
var Message2 = (0,
|
|
645
|
+
var Message2 = (0, import_react12.forwardRef)(
|
|
632
646
|
(_a, ref) => {
|
|
633
647
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
634
648
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
@@ -643,10 +657,10 @@ var Message2 = (0, import_react11.forwardRef)(
|
|
|
643
657
|
}
|
|
644
658
|
);
|
|
645
659
|
Message2.displayName = "FORM_Message";
|
|
646
|
-
var Control2 = (0,
|
|
660
|
+
var Control2 = (0, import_react12.forwardRef)(
|
|
647
661
|
(_a, ref) => {
|
|
648
662
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
|
649
|
-
const fieldProps = (0,
|
|
663
|
+
const fieldProps = (0, import_react12.useContext)(FieldContext);
|
|
650
664
|
return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
|
|
651
665
|
RadixForm.Control,
|
|
652
666
|
__spreadProps(__spreadValues({}, rest), {
|
|
@@ -675,14 +689,14 @@ function BulletText(_a) {
|
|
|
675
689
|
} = _b, rest = __objRest(_b, [
|
|
676
690
|
"children"
|
|
677
691
|
]);
|
|
678
|
-
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
|
|
692
|
+
return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_themes10.Flex, { gap: "1", ml: "2", children: [
|
|
679
693
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Typo, __spreadProps(__spreadValues({}, rest), { children: "\u2022" })),
|
|
680
694
|
/* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Typo, __spreadProps(__spreadValues({}, rest), { children }))
|
|
681
695
|
] });
|
|
682
696
|
}
|
|
683
697
|
|
|
684
698
|
// src/app/platform/userInfos/coaching-customer-info/small.tsx
|
|
685
|
-
var
|
|
699
|
+
var import_react13 = require("react");
|
|
686
700
|
var import_biz_utils = require("@tipp/biz-utils");
|
|
687
701
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
688
702
|
function CoachingCustomerInfoSmall({
|
|
@@ -690,20 +704,20 @@ function CoachingCustomerInfoSmall({
|
|
|
690
704
|
session,
|
|
691
705
|
children
|
|
692
706
|
}) {
|
|
693
|
-
const badgeColor = (0,
|
|
707
|
+
const badgeColor = (0, import_react13.useMemo)(() => {
|
|
694
708
|
return (0, import_biz_utils.getColorFromProjectState)(session == null ? void 0 : session.state);
|
|
695
709
|
}, [session == null ? void 0 : session.state]);
|
|
696
|
-
const sessionText = (0,
|
|
710
|
+
const sessionText = (0, import_react13.useMemo)(() => {
|
|
697
711
|
return (0, import_biz_utils.getTextFromProjectState)(session == null ? void 0 : session.state);
|
|
698
712
|
}, [session == null ? void 0 : session.state]);
|
|
699
713
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
700
|
-
|
|
714
|
+
import_themes10.Flex,
|
|
701
715
|
{
|
|
702
716
|
direction: { initial: "column", xs: "row" },
|
|
703
717
|
gap: "3",
|
|
704
718
|
justify: "between",
|
|
705
719
|
children: [
|
|
706
|
-
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_themes2.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
720
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_themes2.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_themes11.Grid, { align: "center", columns: "auto auto 1fr", gapX: "3", children: [
|
|
707
721
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Heading2, { variant: "heading3", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
708
722
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Typo, { color: "gray", truncate: true, variant: "body", children: customer == null ? void 0 : customer.company }),
|
|
709
723
|
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Badge, { color: badgeColor, children: sessionText })
|
|
@@ -715,7 +729,7 @@ function CoachingCustomerInfoSmall({
|
|
|
715
729
|
}
|
|
716
730
|
|
|
717
731
|
// src/app/platform/userInfos/coaching-customer-info/medium.tsx
|
|
718
|
-
var
|
|
732
|
+
var import_react14 = require("react");
|
|
719
733
|
var import_biz_utils2 = require("@tipp/biz-utils");
|
|
720
734
|
|
|
721
735
|
// src/app/platform/userInfos/utils.tsx
|
|
@@ -793,15 +807,15 @@ function CoachingCustomerInfoMedium({
|
|
|
793
807
|
session,
|
|
794
808
|
children
|
|
795
809
|
}) {
|
|
796
|
-
const badgeColor = (0,
|
|
810
|
+
const badgeColor = (0, import_react14.useMemo)(() => {
|
|
797
811
|
return (0, import_biz_utils2.getColorFromProjectState)(session == null ? void 0 : session.state);
|
|
798
812
|
}, [session == null ? void 0 : session.state]);
|
|
799
|
-
const sessionText = (0,
|
|
813
|
+
const sessionText = (0, import_react14.useMemo)(() => {
|
|
800
814
|
return (0, import_biz_utils2.getTextFromProjectState)(session == null ? void 0 : session.state);
|
|
801
815
|
}, [session == null ? void 0 : session.state]);
|
|
802
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
816
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_themes10.Flex, { direction: "column", gap: "5", children: [
|
|
803
817
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_themes2.Box, { children: [
|
|
804
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
818
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_themes10.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
805
819
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
806
820
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Badge, { color: badgeColor, children: sessionText })
|
|
807
821
|
] }),
|
|
@@ -809,18 +823,18 @@ function CoachingCustomerInfoMedium({
|
|
|
809
823
|
] }),
|
|
810
824
|
children,
|
|
811
825
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes5.DataList.Root, { orientation: "vertical", children: sessionList.map((el) => renderDataListItem(el, session)) }) }),
|
|
812
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
826
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_themes11.Grid, { align: "center", columns: "auto 1fr", gap: "3", children: [
|
|
813
827
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Heading2, { variant: "heading5", children: "\uACE0\uAC1D \uC815\uBCF4" }),
|
|
814
828
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes19.Separator, { size: "4" })
|
|
815
829
|
] }),
|
|
816
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
830
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes10.Flex, { direction: "column", gap: "4", children: infoList.map((el) => {
|
|
817
831
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(Typo, { children: renderItem(el, customer) }, el.label);
|
|
818
832
|
}) })
|
|
819
833
|
] });
|
|
820
834
|
}
|
|
821
835
|
|
|
822
836
|
// src/app/platform/userInfos/coaching-customer-info/large.tsx
|
|
823
|
-
var
|
|
837
|
+
var import_react15 = require("react");
|
|
824
838
|
var import_biz_utils3 = require("@tipp/biz-utils");
|
|
825
839
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
826
840
|
function CoachingCustomerInfoLarge({
|
|
@@ -828,15 +842,15 @@ function CoachingCustomerInfoLarge({
|
|
|
828
842
|
session,
|
|
829
843
|
children
|
|
830
844
|
}) {
|
|
831
|
-
const badgeColor = (0,
|
|
845
|
+
const badgeColor = (0, import_react15.useMemo)(() => {
|
|
832
846
|
return (0, import_biz_utils3.getColorFromProjectState)(session == null ? void 0 : session.state);
|
|
833
847
|
}, [session == null ? void 0 : session.state]);
|
|
834
|
-
const sessionText = (0,
|
|
848
|
+
const sessionText = (0, import_react15.useMemo)(() => {
|
|
835
849
|
return (0, import_biz_utils3.getTextFromProjectState)(session == null ? void 0 : session.state);
|
|
836
850
|
}, [session == null ? void 0 : session.state]);
|
|
837
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
851
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_themes10.Flex, { direction: "column", gap: "5", children: [
|
|
838
852
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_themes2.Box, { children: [
|
|
839
|
-
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
853
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_themes10.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
840
854
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
841
855
|
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Badge, { color: badgeColor, children: sessionText })
|
|
842
856
|
] }),
|
|
@@ -860,7 +874,7 @@ function CoachingCustomerInfo(props) {
|
|
|
860
874
|
}
|
|
861
875
|
|
|
862
876
|
// src/app/platform/goal-manage-card-read.tsx
|
|
863
|
-
var
|
|
877
|
+
var import_react16 = require("react");
|
|
864
878
|
var import_date_fns2 = require("date-fns");
|
|
865
879
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
866
880
|
function GoalManageCardRead(props) {
|
|
@@ -875,12 +889,12 @@ function GoalManageCardRead(props) {
|
|
|
875
889
|
defaultOpen,
|
|
876
890
|
onCompleteChange
|
|
877
891
|
} = props;
|
|
878
|
-
const [open, setOpen] = (0,
|
|
879
|
-
const onClickOpen = (0,
|
|
892
|
+
const [open, setOpen] = (0, import_react16.useState)(Boolean(defaultOpen));
|
|
893
|
+
const onClickOpen = (0, import_react16.useCallback)(() => {
|
|
880
894
|
setOpen((p) => !p);
|
|
881
895
|
}, []);
|
|
882
896
|
const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react_icons3.ChevronUpIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_react_icons3.ChevronDownIcon, {});
|
|
883
|
-
const status = (0,
|
|
897
|
+
const status = (0, import_react16.useMemo)(() => {
|
|
884
898
|
if (completed)
|
|
885
899
|
return;
|
|
886
900
|
if (!dueDate)
|
|
@@ -889,19 +903,19 @@ function GoalManageCardRead(props) {
|
|
|
889
903
|
return "\uBBF8\uB2EC\uC131";
|
|
890
904
|
return "\uC9C4\uD589 \uC911";
|
|
891
905
|
}, [completed, dueDate]);
|
|
892
|
-
const statusColor = (0,
|
|
906
|
+
const statusColor = (0, import_react16.useMemo)(() => {
|
|
893
907
|
if (status === "\uC9C4\uD589 \uC911")
|
|
894
908
|
return "success";
|
|
895
909
|
if (status === "\uBBF8\uB2EC\uC131")
|
|
896
910
|
return "error";
|
|
897
911
|
}, [status]);
|
|
898
|
-
const renderSubTitle = (0,
|
|
912
|
+
const renderSubTitle = (0, import_react16.useCallback)((subTitle) => {
|
|
899
913
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Heading2, { mb: "2", variant: "heading5", children: subTitle });
|
|
900
914
|
}, []);
|
|
901
|
-
const renderSubContent = (0,
|
|
915
|
+
const renderSubContent = (0, import_react16.useCallback)((content) => {
|
|
902
916
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typo, { as: "p", color: "gray", children: content });
|
|
903
917
|
}, []);
|
|
904
|
-
const renderCompleteButton = (0,
|
|
918
|
+
const renderCompleteButton = (0, import_react16.useCallback)(() => {
|
|
905
919
|
if (completed) {
|
|
906
920
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_themes15.Popover.Root, { children: [
|
|
907
921
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_themes15.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(Button, { size: "small", children: [
|
|
@@ -910,7 +924,7 @@ function GoalManageCardRead(props) {
|
|
|
910
924
|
] }) }),
|
|
911
925
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_themes15.Popover.Content, { children: [
|
|
912
926
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typo, { color: "gray", children: "\uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?" }),
|
|
913
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
927
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_themes10.Flex, { gap: "3", justify: "end", mt: "3", children: [
|
|
914
928
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_themes15.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { color: "gray", size: "small", variant: "outline", children: "\uC544\uB2C8\uC694" }) }),
|
|
915
929
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_themes15.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Button, { onClick: props.onClickComplete, size: "small", children: "\uC608" }) })
|
|
916
930
|
] })
|
|
@@ -927,11 +941,11 @@ function GoalManageCardRead(props) {
|
|
|
927
941
|
}
|
|
928
942
|
);
|
|
929
943
|
}, [completed, onCompleteChange, props.onClickComplete]);
|
|
930
|
-
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
931
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_themes11.Grid, { align: "center", columns: "auto 1fr", gapX: "3", children: [
|
|
945
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_themes8.IconButton, { onClick: onClickOpen, variant: "ghost", children: icon }),
|
|
932
946
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
933
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
934
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
947
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_themes10.Flex, { align: "center", gridColumnStart: "2", justify: "between", mt: "2", children: [
|
|
948
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_themes10.Flex, { align: "center", gap: "3", children: [
|
|
935
949
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Badge, { color: statusColor, children: status }),
|
|
936
950
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Typo, { color: "gray", children: dueDate ? (0, import_date_fns2.format)(dueDate, "yyyy\uB144 MM\uC6D4 dd\uC77C") : null })
|
|
937
951
|
] }),
|
|
@@ -947,7 +961,7 @@ function GoalManageCardRead(props) {
|
|
|
947
961
|
}
|
|
948
962
|
) : null,
|
|
949
963
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_themes2.Box, { gridColumnStart: "2", p: "0", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(Collapse, { open, children: [
|
|
950
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
964
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_themes10.Flex, { direction: "column", gap: "5", children: [
|
|
951
965
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_themes2.Box, { children: [
|
|
952
966
|
renderSubTitle(
|
|
953
967
|
"\uD574\uB2F9 \uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uBA74, \uC544\uB798\uC640 \uAC19\uC740 \uACB0\uACFC\uB97C \uC5BB\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4"
|
|
@@ -959,7 +973,7 @@ function GoalManageCardRead(props) {
|
|
|
959
973
|
renderSubContent(huddle)
|
|
960
974
|
] })
|
|
961
975
|
] }),
|
|
962
|
-
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
976
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_themes10.Flex, { align: "center", gap: "3", justify: "end", mt: "3", children: [
|
|
963
977
|
/* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
964
978
|
Button,
|
|
965
979
|
{
|
|
@@ -983,11 +997,11 @@ function GoalManageCardRead(props) {
|
|
|
983
997
|
}
|
|
984
998
|
|
|
985
999
|
// src/app/platform/goal-manage-card-edit.tsx
|
|
986
|
-
var
|
|
1000
|
+
var import_react22 = require("react");
|
|
987
1001
|
var import_date_fns4 = require("date-fns");
|
|
988
1002
|
|
|
989
1003
|
// src/molecules/date-picker/index.tsx
|
|
990
|
-
var
|
|
1004
|
+
var import_react17 = require("react");
|
|
991
1005
|
var RDP = __toESM(require("react-datepicker"), 1);
|
|
992
1006
|
var import_react_datepicker = require("react-datepicker");
|
|
993
1007
|
var import_locale = require("date-fns/locale");
|
|
@@ -995,11 +1009,11 @@ var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
|
995
1009
|
(0, import_react_datepicker.registerLocale)("ko", import_locale.ko);
|
|
996
1010
|
(0, import_react_datepicker.setDefaultLocale)("ko");
|
|
997
1011
|
var ReactDatePicker = RDP.default.default || RDP.default || RDP;
|
|
998
|
-
var DatePicker = (0,
|
|
1012
|
+
var DatePicker = (0, import_react17.forwardRef)(
|
|
999
1013
|
(props, ref) => {
|
|
1000
1014
|
const _a = props, { fullWidth } = _a, rest = __objRest(_a, ["fullWidth"]);
|
|
1001
1015
|
const fullWidthClassName = fullWidth ? "full-width" : "";
|
|
1002
|
-
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes10.Flex, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1003
1017
|
ReactDatePicker,
|
|
1004
1018
|
__spreadProps(__spreadValues({
|
|
1005
1019
|
dateFormat: "YYYY/MM/dd",
|
|
@@ -1030,9 +1044,9 @@ var renderCustomHeader = (props) => {
|
|
|
1030
1044
|
} = props;
|
|
1031
1045
|
const year = date ? date.getFullYear() : "-";
|
|
1032
1046
|
const month = date ? date.getMonth() + 1 : "-";
|
|
1033
|
-
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1047
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_themes10.Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
|
|
1034
1048
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1035
|
-
|
|
1049
|
+
import_themes8.IconButton,
|
|
1036
1050
|
{
|
|
1037
1051
|
disabled: prevMonthButtonDisabled,
|
|
1038
1052
|
onClick: decreaseMonth,
|
|
@@ -1041,7 +1055,7 @@ var renderCustomHeader = (props) => {
|
|
|
1041
1055
|
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_icons3.ChevronLeftIcon, {})
|
|
1042
1056
|
}
|
|
1043
1057
|
),
|
|
1044
|
-
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1058
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_themes10.Flex, { gap: "3", children: [
|
|
1045
1059
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1046
1060
|
year,
|
|
1047
1061
|
"\uB144"
|
|
@@ -1052,7 +1066,7 @@ var renderCustomHeader = (props) => {
|
|
|
1052
1066
|
] })
|
|
1053
1067
|
] }),
|
|
1054
1068
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1055
|
-
|
|
1069
|
+
import_themes8.IconButton,
|
|
1056
1070
|
{
|
|
1057
1071
|
disabled: nextMonthButtonDisabled,
|
|
1058
1072
|
onClick: increaseMonth,
|
|
@@ -1065,7 +1079,7 @@ var renderCustomHeader = (props) => {
|
|
|
1065
1079
|
};
|
|
1066
1080
|
|
|
1067
1081
|
// src/molecules/date-picker/date-picker-button.tsx
|
|
1068
|
-
var
|
|
1082
|
+
var import_react18 = require("react");
|
|
1069
1083
|
var import_date_fns3 = require("date-fns");
|
|
1070
1084
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1071
1085
|
function DatePickerButton(props) {
|
|
@@ -1077,7 +1091,7 @@ function DatePickerButton(props) {
|
|
|
1077
1091
|
width: "100%"
|
|
1078
1092
|
};
|
|
1079
1093
|
const buttonProps = { size, color, style, variant };
|
|
1080
|
-
const selectFormat = (0,
|
|
1094
|
+
const selectFormat = (0, import_react18.useMemo)(() => {
|
|
1081
1095
|
if (formatProps)
|
|
1082
1096
|
return formatProps;
|
|
1083
1097
|
return (date) => date ? (0, import_date_fns3.format)(date, "yyyy\uB144 MM\uC6D4 dd\uC77C") : placeholder;
|
|
@@ -1085,7 +1099,7 @@ function DatePickerButton(props) {
|
|
|
1085
1099
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_themes2.Box, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1086
1100
|
DatePicker,
|
|
1087
1101
|
__spreadProps(__spreadValues({
|
|
1088
|
-
customInput: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button, __spreadProps(__spreadValues({ type: "button" }, buttonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
|
|
1102
|
+
customInput: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Button, __spreadProps(__spreadValues({ type: "button" }, buttonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_themes10.Flex, { align: "center", gap: "3", justify: "between", width: "100%", children: [
|
|
1089
1103
|
rest.selected ? selectFormat(rest.selected) : placeholder,
|
|
1090
1104
|
/* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_react_icons3.CalendarIcon, {})
|
|
1091
1105
|
] }) })),
|
|
@@ -1097,7 +1111,7 @@ function DatePickerButton(props) {
|
|
|
1097
1111
|
}
|
|
1098
1112
|
|
|
1099
1113
|
// src/molecules/time-select.tsx
|
|
1100
|
-
var
|
|
1114
|
+
var import_react19 = require("react");
|
|
1101
1115
|
|
|
1102
1116
|
// src/utils/get-time-options.ts
|
|
1103
1117
|
var getTimeOptions = () => {
|
|
@@ -1127,22 +1141,22 @@ function TimeSelect(_a) {
|
|
|
1127
1141
|
} = _b, rest = __objRest(_b, [
|
|
1128
1142
|
"value"
|
|
1129
1143
|
]);
|
|
1130
|
-
const timeOptions = (0,
|
|
1144
|
+
const timeOptions = (0, import_react19.useMemo)(() => {
|
|
1131
1145
|
return getTimeOptions();
|
|
1132
1146
|
}, []);
|
|
1133
1147
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Select.Root, __spreadProps(__spreadValues({ value }, rest), { children: [
|
|
1134
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1148
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_themes10.Flex, { direction: "column", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Select.Trigger, { placeholder: "- ", style: { minWidth: "100px" } }) }),
|
|
1135
1149
|
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Select.Content, { children: timeOptions.map((time) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Select.Item, { value: time, children: time }, time)) })
|
|
1136
1150
|
] }));
|
|
1137
1151
|
}
|
|
1138
1152
|
|
|
1139
1153
|
// src/molecules/radio-button-card.tsx
|
|
1140
|
-
var
|
|
1154
|
+
var import_react20 = require("react");
|
|
1141
1155
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1142
|
-
var RadioCardContext = (0,
|
|
1156
|
+
var RadioCardContext = (0, import_react20.createContext)({});
|
|
1143
1157
|
function Root6(props) {
|
|
1144
|
-
const [value, setValue] = (0,
|
|
1145
|
-
const onValueChange = (0,
|
|
1158
|
+
const [value, setValue] = (0, import_react20.useState)(props.value || props.defaultValue);
|
|
1159
|
+
const onValueChange = (0, import_react20.useCallback)(
|
|
1146
1160
|
(v) => {
|
|
1147
1161
|
var _a;
|
|
1148
1162
|
setValue(v);
|
|
@@ -1165,16 +1179,16 @@ function Item(_a) {
|
|
|
1165
1179
|
} = _b, itemRest = __objRest(_b, [
|
|
1166
1180
|
"children"
|
|
1167
1181
|
]);
|
|
1168
|
-
const _a2 = (0,
|
|
1182
|
+
const _a2 = (0, import_react20.useContext)(RadioCardContext), {
|
|
1169
1183
|
value,
|
|
1170
1184
|
justify,
|
|
1171
|
-
RadioWrapper =
|
|
1185
|
+
RadioWrapper = import_react20.Fragment
|
|
1172
1186
|
} = _a2, rootRest = __objRest(_a2, [
|
|
1173
1187
|
"value",
|
|
1174
1188
|
"justify",
|
|
1175
1189
|
"RadioWrapper"
|
|
1176
1190
|
]);
|
|
1177
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_themes17.RadioCards.Item, __spreadProps(__spreadValues({}, itemRest), { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1191
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_themes17.RadioCards.Item, __spreadProps(__spreadValues({}, itemRest), { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes10.Flex, { align: "center", justify: justify || "between", width: "100%", children: [
|
|
1178
1192
|
children,
|
|
1179
1193
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(RadioWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
1180
1194
|
import_themes16.Radio,
|
|
@@ -1232,12 +1246,12 @@ var import_themes23 = require("@radix-ui/themes");
|
|
|
1232
1246
|
|
|
1233
1247
|
// dist/chunk-52MVZ6AN.js
|
|
1234
1248
|
var import_themes24 = require("@radix-ui/themes");
|
|
1235
|
-
var
|
|
1249
|
+
var import_react21 = require("react");
|
|
1236
1250
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1237
|
-
var Typo2 = (0,
|
|
1251
|
+
var Typo2 = (0, import_react21.forwardRef)(
|
|
1238
1252
|
(props, ref) => {
|
|
1239
1253
|
const _a = props, { size, variant, children } = _a, rest = __objRest2(_a, ["size", "variant", "children"]);
|
|
1240
|
-
const radixSize = (0,
|
|
1254
|
+
const radixSize = (0, import_react21.useMemo)(() => {
|
|
1241
1255
|
if (size !== void 0)
|
|
1242
1256
|
return size;
|
|
1243
1257
|
switch (variant) {
|
|
@@ -1305,8 +1319,8 @@ var dummyFn = () => {
|
|
|
1305
1319
|
};
|
|
1306
1320
|
function GoalManageCardEdit(props) {
|
|
1307
1321
|
const { defaultValues, errors } = props;
|
|
1308
|
-
const [values, setValues] = (0,
|
|
1309
|
-
const onChange = (0,
|
|
1322
|
+
const [values, setValues] = (0, import_react22.useState)(defaultValues || initialValues);
|
|
1323
|
+
const onChange = (0, import_react22.useCallback)(
|
|
1310
1324
|
(v) => {
|
|
1311
1325
|
var _a;
|
|
1312
1326
|
setValues((prev) => __spreadValues(__spreadValues({}, prev), v));
|
|
@@ -1314,17 +1328,17 @@ function GoalManageCardEdit(props) {
|
|
|
1314
1328
|
},
|
|
1315
1329
|
[props]
|
|
1316
1330
|
);
|
|
1317
|
-
const onClickInit = (0,
|
|
1331
|
+
const onClickInit = (0, import_react22.useCallback)(() => {
|
|
1318
1332
|
var _a;
|
|
1319
1333
|
setValues(initialValues);
|
|
1320
1334
|
(_a = props.onChange) == null ? void 0 : _a.call(props, defaultValues || initialValues);
|
|
1321
1335
|
}, [defaultValues, props]);
|
|
1322
|
-
const onClickSubmit = (0,
|
|
1336
|
+
const onClickSubmit = (0, import_react22.useCallback)(() => {
|
|
1323
1337
|
var _a;
|
|
1324
1338
|
(_a = props.onSubmit) == null ? void 0 : _a.call(props, values);
|
|
1325
1339
|
}, [props, values]);
|
|
1326
1340
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Card, { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Form.Root, { onSubmit: dummyFn, children: [
|
|
1327
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
1341
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_themes10.Flex, { direction: "column", gap: "5", children: [
|
|
1328
1342
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(Form.Field, { name: "title", children: [
|
|
1329
1343
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Form.Label, { children: "\uC774\uBC88 \uCF54\uCE6D\uC758 \uBAA9\uD45C\uB294 \uC544\uB798\uC640 \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
1330
1344
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
@@ -1390,7 +1404,7 @@ function GoalManageCardEdit(props) {
|
|
|
1390
1404
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.dueDate), children: errors == null ? void 0 : errors.dueDate })
|
|
1391
1405
|
] })
|
|
1392
1406
|
] }),
|
|
1393
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
|
|
1407
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_themes10.Flex, { gap: "3", justify: "end", width: "100%", children: [
|
|
1394
1408
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1395
1409
|
Button,
|
|
1396
1410
|
{
|
|
@@ -1408,11 +1422,11 @@ function GoalManageCardEdit(props) {
|
|
|
1408
1422
|
}
|
|
1409
1423
|
|
|
1410
1424
|
// src/app/platform/session-card.tsx
|
|
1411
|
-
var
|
|
1425
|
+
var import_react25 = require("react");
|
|
1412
1426
|
var import_date_fns5 = require("date-fns");
|
|
1413
1427
|
|
|
1414
1428
|
// src/app/platform/edit-coaching-time.tsx
|
|
1415
|
-
var
|
|
1429
|
+
var import_react23 = require("react");
|
|
1416
1430
|
|
|
1417
1431
|
// src/layouts/response-display.tsx
|
|
1418
1432
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
@@ -1473,14 +1487,14 @@ var getDateFromValue = (date, time) => {
|
|
|
1473
1487
|
};
|
|
1474
1488
|
function EditCoachingTime(props) {
|
|
1475
1489
|
const { defaultEndAt, defaultStartAt, onClickCancel, sessionNumber } = props;
|
|
1476
|
-
const [values, setValues] = (0,
|
|
1490
|
+
const [values, setValues] = (0, import_react23.useState)(() => {
|
|
1477
1491
|
return getValueFromDefaultValue({
|
|
1478
1492
|
startAt: defaultStartAt,
|
|
1479
1493
|
endAt: defaultEndAt
|
|
1480
1494
|
});
|
|
1481
1495
|
});
|
|
1482
|
-
const [timeError, setTimeError] = (0,
|
|
1483
|
-
const checkTimeError = (0,
|
|
1496
|
+
const [timeError, setTimeError] = (0, import_react23.useState)("");
|
|
1497
|
+
const checkTimeError = (0, import_react23.useCallback)(
|
|
1484
1498
|
(startTime, endTime) => {
|
|
1485
1499
|
const error = startTime >= endTime ? "\uC2DC\uC791\uC2DC\uAC04\uC744 \uC885\uB8CC\uC2DC\uAC04\uBCF4\uB2E4 \uBE60\uB974\uAC8C \uC120\uD0DD\uD574\uC8FC\uC138\uC694." : "";
|
|
1486
1500
|
if (error) {
|
|
@@ -1491,7 +1505,7 @@ function EditCoachingTime(props) {
|
|
|
1491
1505
|
},
|
|
1492
1506
|
[]
|
|
1493
1507
|
);
|
|
1494
|
-
const onChangeStartTime = (0,
|
|
1508
|
+
const onChangeStartTime = (0, import_react23.useCallback)(
|
|
1495
1509
|
(v) => {
|
|
1496
1510
|
checkTimeError(v, values.endTime);
|
|
1497
1511
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -1500,7 +1514,7 @@ function EditCoachingTime(props) {
|
|
|
1500
1514
|
},
|
|
1501
1515
|
[checkTimeError, values.endTime]
|
|
1502
1516
|
);
|
|
1503
|
-
const onChangeEndTime = (0,
|
|
1517
|
+
const onChangeEndTime = (0, import_react23.useCallback)(
|
|
1504
1518
|
(v) => {
|
|
1505
1519
|
checkTimeError(values.startTime, v);
|
|
1506
1520
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -1509,12 +1523,12 @@ function EditCoachingTime(props) {
|
|
|
1509
1523
|
},
|
|
1510
1524
|
[checkTimeError, values.startTime]
|
|
1511
1525
|
);
|
|
1512
|
-
const onChangeDate = (0,
|
|
1526
|
+
const onChangeDate = (0, import_react23.useCallback)((date) => {
|
|
1513
1527
|
date && setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
1514
1528
|
date
|
|
1515
1529
|
}));
|
|
1516
1530
|
}, []);
|
|
1517
|
-
const onClickSave = (0,
|
|
1531
|
+
const onClickSave = (0, import_react23.useCallback)(() => {
|
|
1518
1532
|
if (checkTimeError(values.startTime, values.endTime)) {
|
|
1519
1533
|
const startAt = getDateFromValue(values.date, values.startTime);
|
|
1520
1534
|
const endAt = getDateFromValue(values.date, values.endTime);
|
|
@@ -1545,7 +1559,7 @@ function EditCoachingTime(props) {
|
|
|
1545
1559
|
)
|
|
1546
1560
|
] }),
|
|
1547
1561
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1548
|
-
|
|
1562
|
+
import_themes11.Grid,
|
|
1549
1563
|
{
|
|
1550
1564
|
align: "center",
|
|
1551
1565
|
columns: {
|
|
@@ -1583,7 +1597,7 @@ function EditCoachingTime(props) {
|
|
|
1583
1597
|
]
|
|
1584
1598
|
}
|
|
1585
1599
|
),
|
|
1586
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1600
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_themes10.Flex, { gap: "3", justify: "end", children: [
|
|
1587
1601
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1588
1602
|
Button,
|
|
1589
1603
|
{
|
|
@@ -1609,7 +1623,7 @@ function EditCoachingTime(props) {
|
|
|
1609
1623
|
}
|
|
1610
1624
|
|
|
1611
1625
|
// src/app/platform/edit-service-type.tsx
|
|
1612
|
-
var
|
|
1626
|
+
var import_react24 = require("react");
|
|
1613
1627
|
|
|
1614
1628
|
// src/app/platform/on-offline-radio-card.tsx
|
|
1615
1629
|
var import_react_icons6 = require("@radix-ui/react-icons");
|
|
@@ -1635,11 +1649,11 @@ function OnOfflineRadioCard(props) {
|
|
|
1635
1649
|
justify
|
|
1636
1650
|
}, props), {
|
|
1637
1651
|
children: [
|
|
1638
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.onlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
1652
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.onlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_themes10.Flex, { align: "center", gap: "2", children: [
|
|
1639
1653
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_icons6.GlobeIcon, {}) }),
|
|
1640
1654
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typo, { children: "\uC628\uB77C\uC778" })
|
|
1641
1655
|
] }) }),
|
|
1642
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.offlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
1656
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.offlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_themes10.Flex, { align: "center", gap: "2", children: [
|
|
1643
1657
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_icons6.BackpackIcon, {}) }),
|
|
1644
1658
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(Typo, { children: "\uC624\uD504\uB77C\uC778" })
|
|
1645
1659
|
] }) })
|
|
@@ -1652,10 +1666,10 @@ function OnOfflineRadioCard(props) {
|
|
|
1652
1666
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1653
1667
|
function EditServiceType(props) {
|
|
1654
1668
|
const { sessionNumber, defaultServiceType, onClickCancel } = props;
|
|
1655
|
-
const [sessionType, setSessionType] = (0,
|
|
1669
|
+
const [sessionType, setSessionType] = (0, import_react24.useState)(
|
|
1656
1670
|
defaultServiceType
|
|
1657
1671
|
);
|
|
1658
|
-
const onClickSave = (0,
|
|
1672
|
+
const onClickSave = (0, import_react24.useCallback)(() => {
|
|
1659
1673
|
var _a;
|
|
1660
1674
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, sessionType);
|
|
1661
1675
|
}, [props, sessionType]);
|
|
@@ -1679,7 +1693,7 @@ function EditServiceType(props) {
|
|
|
1679
1693
|
}
|
|
1680
1694
|
),
|
|
1681
1695
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(OnOfflineRadioCard, { onValueChange: setSessionType, value: sessionType }),
|
|
1682
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
1696
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_themes10.Flex, { gap: "3", justify: "end", mt: { initial: "6", xs: "3" }, children: [
|
|
1683
1697
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1684
1698
|
Button,
|
|
1685
1699
|
{
|
|
@@ -1726,16 +1740,16 @@ function SessionCard(props) {
|
|
|
1726
1740
|
"endAt",
|
|
1727
1741
|
"sessionType"
|
|
1728
1742
|
]);
|
|
1729
|
-
const renderEditButton = (0,
|
|
1743
|
+
const renderEditButton = (0, import_react25.useCallback)(() => {
|
|
1730
1744
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Button, { color: "gray", ml: "2", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react_icons3.Pencil1Icon, {}) });
|
|
1731
1745
|
}, []);
|
|
1732
|
-
const sessionTimeStr = (0,
|
|
1746
|
+
const sessionTimeStr = (0, import_react25.useMemo)(() => {
|
|
1733
1747
|
if (!startAt || !endAt)
|
|
1734
1748
|
return "\uC54C \uC218 \uC5C6\uC74C";
|
|
1735
1749
|
return `${(0, import_date_fns5.format)(startAt, "yyyy\uB144 MM\uC6D4 dd\uC77C HH\uC2DC mm\uBD84")} ~ ${(0, import_date_fns5.format)(endAt, "HH\uC2DC mm\uBD84")}`;
|
|
1736
1750
|
}, [startAt, endAt]);
|
|
1737
|
-
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Card, __spreadProps(__spreadValues({ error: Boolean(error) }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1738
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1751
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Card, __spreadProps(__spreadValues({ error: Boolean(error) }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_themes10.Flex, { direction: "column", gap: "3", children: [
|
|
1752
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_themes10.Flex, { align: "center", width: "100%", children: [
|
|
1739
1753
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Heading2, { variant: "heading4", children: `${userName || "\uC54C \uC218 \uC5C6\uC74C"}\uB2D8 ${sessionNumber || "-"}\uD68C\uCC28` }),
|
|
1740
1754
|
TitleExtra,
|
|
1741
1755
|
error ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(BulletText, { as: "p", color: "red", variant: "caption", children: error }) : null
|
|
@@ -1765,7 +1779,7 @@ function SessionCard(props) {
|
|
|
1765
1779
|
] }) : null
|
|
1766
1780
|
] })
|
|
1767
1781
|
] }),
|
|
1768
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1782
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_themes11.Grid, { columns: { initial: "1", xs: "2" }, style: { gap: "inherit" }, children: [
|
|
1769
1783
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_themes5.DataList.Item, { children: [
|
|
1770
1784
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_themes5.DataList.Label, { children: "\uC138\uC158 \uCC38\uC5EC \uBC29\uC2DD" }),
|
|
1771
1785
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_themes5.DataList.Value, { children: [
|
|
@@ -1782,7 +1796,7 @@ function SessionCard(props) {
|
|
|
1782
1796
|
] }) : null
|
|
1783
1797
|
] })
|
|
1784
1798
|
] }),
|
|
1785
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1799
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_themes10.Flex, { gap: "2", justify: "end", children: ExtraButtons })
|
|
1786
1800
|
] })
|
|
1787
1801
|
] })
|
|
1788
1802
|
] }) }));
|
|
@@ -1799,13 +1813,13 @@ function QuestionItem({ question, answer }) {
|
|
|
1799
1813
|
function CoachQuestionList({
|
|
1800
1814
|
questions
|
|
1801
1815
|
}) {
|
|
1802
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
1816
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_themes10.Flex, { direction: "column", gap: "8", children: questions.map((question) => {
|
|
1803
1817
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(QuestionItem, __spreadValues({}, question), question.question);
|
|
1804
1818
|
}) });
|
|
1805
1819
|
}
|
|
1806
1820
|
|
|
1807
1821
|
// src/app/platform/reservation-card.tsx
|
|
1808
|
-
var
|
|
1822
|
+
var import_react26 = require("react");
|
|
1809
1823
|
var import_date_fns6 = require("date-fns");
|
|
1810
1824
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
1811
1825
|
function ReservationCard(props) {
|
|
@@ -1820,30 +1834,30 @@ function ReservationCard(props) {
|
|
|
1820
1834
|
onClickCancel,
|
|
1821
1835
|
onClickCompleteSession
|
|
1822
1836
|
} = props;
|
|
1823
|
-
const [editValues, setEditValues] = (0,
|
|
1837
|
+
const [editValues, setEditValues] = (0, import_react26.useState)({
|
|
1824
1838
|
date: props.defaultTime,
|
|
1825
1839
|
type: props.defaultType
|
|
1826
1840
|
});
|
|
1827
1841
|
const date = readonly ? defaultTime : editValues.date;
|
|
1828
1842
|
const type = readonly ? defaultType : editValues.type;
|
|
1829
1843
|
const time = date && getTimeOption(date);
|
|
1830
|
-
const onClickSave = (0,
|
|
1844
|
+
const onClickSave = (0, import_react26.useCallback)(() => {
|
|
1831
1845
|
var _a;
|
|
1832
1846
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, editValues);
|
|
1833
1847
|
}, [editValues, props]);
|
|
1834
|
-
const onClickReset = (0,
|
|
1848
|
+
const onClickReset = (0, import_react26.useCallback)(() => {
|
|
1835
1849
|
setEditValues({
|
|
1836
1850
|
date: defaultTime,
|
|
1837
1851
|
type: defaultType
|
|
1838
1852
|
});
|
|
1839
1853
|
}, [defaultTime, defaultType]);
|
|
1840
|
-
const ActionButtons = (0,
|
|
1854
|
+
const ActionButtons = (0, import_react26.useMemo)(() => {
|
|
1841
1855
|
if (readonly) {
|
|
1842
1856
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button, { onClick: onClickReserve, size: "small", variant: "surface", children: "\uC608\uC57D\uD558\uAE30" });
|
|
1843
1857
|
}
|
|
1844
1858
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_icons3.Cross1Icon, {}) });
|
|
1845
1859
|
}, [onClickCancel, onClickReserve, readonly]);
|
|
1846
|
-
const onChangeDate = (0,
|
|
1860
|
+
const onChangeDate = (0, import_react26.useCallback)(
|
|
1847
1861
|
(newDate) => {
|
|
1848
1862
|
if (!newDate)
|
|
1849
1863
|
return;
|
|
@@ -1856,14 +1870,14 @@ function ReservationCard(props) {
|
|
|
1856
1870
|
},
|
|
1857
1871
|
[time]
|
|
1858
1872
|
);
|
|
1859
|
-
const onChangeType = (0,
|
|
1873
|
+
const onChangeType = (0, import_react26.useCallback)((newType) => {
|
|
1860
1874
|
setEditValues((prev) => {
|
|
1861
1875
|
return __spreadProps(__spreadValues({}, prev), {
|
|
1862
1876
|
type: newType
|
|
1863
1877
|
});
|
|
1864
1878
|
});
|
|
1865
1879
|
}, []);
|
|
1866
|
-
const onChangeTime = (0,
|
|
1880
|
+
const onChangeTime = (0, import_react26.useCallback)(
|
|
1867
1881
|
(v) => {
|
|
1868
1882
|
const { hour, minute } = parseTimeOption(v);
|
|
1869
1883
|
setEditValues((prev) => {
|
|
@@ -1881,15 +1895,15 @@ function ReservationCard(props) {
|
|
|
1881
1895
|
size: "3",
|
|
1882
1896
|
style: { overflow: "visible", contain: "initial" },
|
|
1883
1897
|
children: [
|
|
1884
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
1898
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_themes10.Flex, { align: "center", gap: "3", justify: "between", mb: "5", children: [
|
|
1885
1899
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
1886
|
-
|
|
1900
|
+
import_themes11.Grid,
|
|
1887
1901
|
{
|
|
1888
1902
|
align: "center",
|
|
1889
1903
|
columns: { initial: "1", xs: "auto 1fr" },
|
|
1890
1904
|
gapY: "2",
|
|
1891
1905
|
children: [
|
|
1892
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
1906
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_themes10.Flex, { align: "center", children: [
|
|
1893
1907
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Heading2, { variant: "heading4", children: [
|
|
1894
1908
|
customerName || "-",
|
|
1895
1909
|
"\uB2D8 ",
|
|
@@ -1902,7 +1916,7 @@ function ReservationCard(props) {
|
|
|
1902
1916
|
]
|
|
1903
1917
|
}
|
|
1904
1918
|
),
|
|
1905
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1919
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes10.Flex, { children: ActionButtons })
|
|
1906
1920
|
] }),
|
|
1907
1921
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes2.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1908
1922
|
Form.Root,
|
|
@@ -1910,10 +1924,10 @@ function ReservationCard(props) {
|
|
|
1910
1924
|
onSubmit: (e) => {
|
|
1911
1925
|
e.preventDefault();
|
|
1912
1926
|
},
|
|
1913
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
1927
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_themes10.Flex, { direction: "column", gap: "5", children: [
|
|
1914
1928
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Form.Field, { name: "date", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Form.Label, { asChild: true, children: [
|
|
1915
1929
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC138\uC158 \uC77C\uC790\uC640 \uC2DC\uAC01" }),
|
|
1916
|
-
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
1930
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_themes11.Grid, { columns: "1fr auto", gap: "4", children: [
|
|
1917
1931
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1918
1932
|
DatePickerButton,
|
|
1919
1933
|
{
|
|
@@ -1947,7 +1961,7 @@ function ReservationCard(props) {
|
|
|
1947
1961
|
}
|
|
1948
1962
|
) })
|
|
1949
1963
|
] }),
|
|
1950
|
-
readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
1964
|
+
readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_themes10.Flex, { align: "center", gap: "3", justify: "end", children: [
|
|
1951
1965
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
1952
1966
|
Button,
|
|
1953
1967
|
{
|
|
@@ -1971,7 +1985,7 @@ function ReservationCard(props) {
|
|
|
1971
1985
|
py: "4",
|
|
1972
1986
|
style: { backgroundColor: "var(--accent-a3)" },
|
|
1973
1987
|
width: "100%",
|
|
1974
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
1988
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_themes10.Flex, { align: "center", gap: "4", justify: "center", children: [
|
|
1975
1989
|
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Typo, { children: [
|
|
1976
1990
|
sessionNumber || "-",
|
|
1977
1991
|
"\uD68C\uCC28 \uC138\uC158\uC744 \uC644\uB8CC\uD558\uC168\uB098\uC694?"
|
|
@@ -1989,13 +2003,13 @@ function ReservationCard(props) {
|
|
|
1989
2003
|
}
|
|
1990
2004
|
|
|
1991
2005
|
// src/app/platform/session-review-simple-read.tsx
|
|
1992
|
-
var
|
|
2006
|
+
var import_react27 = require("react");
|
|
1993
2007
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
1994
2008
|
function SubTitleWrapper({
|
|
1995
2009
|
children,
|
|
1996
2010
|
title
|
|
1997
2011
|
}) {
|
|
1998
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2012
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_themes10.Flex, { direction: "column", gap: "2", children: [
|
|
1999
2013
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: title }),
|
|
2000
2014
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_themes2.Box, { children })
|
|
2001
2015
|
] });
|
|
@@ -2006,7 +2020,7 @@ function SessionReviewSimpleRead({
|
|
|
2006
2020
|
sessionNumber,
|
|
2007
2021
|
customerName
|
|
2008
2022
|
}) {
|
|
2009
|
-
const helpfulnessMeta = (0,
|
|
2023
|
+
const helpfulnessMeta = (0, import_react27.useMemo)(() => {
|
|
2010
2024
|
if (helpfulness) {
|
|
2011
2025
|
return {
|
|
2012
2026
|
text: "\uB124",
|
|
@@ -2031,7 +2045,7 @@ function SessionReviewSimpleRead({
|
|
|
2031
2045
|
sessionNumber || "-",
|
|
2032
2046
|
"\uD68C\uCC28 \uC138\uC158 \uD6C4\uAE30"
|
|
2033
2047
|
] }),
|
|
2034
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2048
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_themes10.Flex, { direction: "column", gap: "5", children: [
|
|
2035
2049
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SubTitleWrapper, { title: "\uC774\uBC88 \uCF54\uCE6D\uC774 \uBAA9\uD45C \uB2EC\uC131\uC5D0 \uB3C4\uC6C0\uC774 \uB418\uC5C8\uB098\uC694?", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Badge, { color: helpfulnessMeta.color, children: helpfulnessMeta.text }) }),
|
|
2036
2050
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SubTitleWrapper, { title: "\uC138\uC158 \uD6C4\uAE30", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Card, { children: review ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typo, { as: "p", children: review }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typo, { color: "gray", children: "\uC785\uB825\uB41C \uD6C4\uAE30\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) }) })
|
|
2037
2051
|
] })
|
|
@@ -2045,7 +2059,7 @@ function SectionWrapper({
|
|
|
2045
2059
|
children
|
|
2046
2060
|
}) {
|
|
2047
2061
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_themes2.Box, { children: [
|
|
2048
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2062
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_themes11.Grid, { align: "center", columns: "auto 1fr", gap: "3", mb: "5", children: [
|
|
2049
2063
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Heading2, { variant: "heading5", children: title }),
|
|
2050
2064
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes19.Separator, { size: "4" })
|
|
2051
2065
|
] }),
|
|
@@ -2056,7 +2070,7 @@ function SessionUserInfoDetail({
|
|
|
2056
2070
|
customer,
|
|
2057
2071
|
session
|
|
2058
2072
|
}) {
|
|
2059
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2073
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_themes10.Flex, { direction: "column", gap: "6", children: [
|
|
2060
2074
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SectionWrapper, { title: "\uC138\uC158 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes5.DataList.Root, { children: sessionList.map((info) => renderDataListItem(info, session)) }) }),
|
|
2061
2075
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SectionWrapper, { title: "\uD68C\uC6D0 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes5.DataList.Root, { children: infoList.map((info) => renderDataListItem(info, customer)) }) })
|
|
2062
2076
|
] });
|
|
@@ -2067,7 +2081,7 @@ var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
|
2067
2081
|
function ReportCard(props) {
|
|
2068
2082
|
const { title, file, status } = props;
|
|
2069
2083
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(Card, { children: [
|
|
2070
|
-
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
2084
|
+
/* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_themes10.Flex, { align: "center", justify: "between", children: [
|
|
2071
2085
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
2072
2086
|
status
|
|
2073
2087
|
] }),
|