@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/index.cjs
CHANGED
|
@@ -117,24 +117,24 @@ __export(src_exports, {
|
|
|
117
117
|
EditCoachingTime: () => EditCoachingTime,
|
|
118
118
|
EditServiceType: () => EditServiceType,
|
|
119
119
|
EllipsisTooltip: () => EllipsisTooltip,
|
|
120
|
-
Em: () =>
|
|
120
|
+
Em: () => import_themes21.Em,
|
|
121
121
|
ExclamationTriangleIcon: () => import_react_icons3.ExclamationTriangleIcon,
|
|
122
122
|
ExitIcon: () => import_react_icons3.ExitIcon,
|
|
123
123
|
ExpandTable: () => ExpandTable,
|
|
124
124
|
FieldErrorWrapper: () => FieldErrorWrapper,
|
|
125
125
|
FileIcon: () => import_react_icons3.FileIcon,
|
|
126
|
-
Flex: () =>
|
|
126
|
+
Flex: () => import_themes22.Flex,
|
|
127
127
|
ForceRefresh: () => ForceRefresh,
|
|
128
128
|
Form: () => Form,
|
|
129
129
|
GearIcon: () => import_react_icons3.GearIcon,
|
|
130
130
|
GlobeIcon: () => import_react_icons3.GlobeIcon,
|
|
131
131
|
GoalManageCardEdit: () => GoalManageCardEdit,
|
|
132
132
|
GoalManageCardRead: () => GoalManageCardRead,
|
|
133
|
-
Grid: () =>
|
|
133
|
+
Grid: () => import_themes23.Grid,
|
|
134
134
|
Heading: () => Heading2,
|
|
135
135
|
HorizontalBarChart: () => HorizontalBarChart,
|
|
136
|
-
HoverCard: () =>
|
|
137
|
-
IconButton: () =>
|
|
136
|
+
HoverCard: () => import_themes24.HoverCard,
|
|
137
|
+
IconButton: () => import_themes18.IconButton,
|
|
138
138
|
InfoCircledIcon: () => import_react_icons3.InfoCircledIcon,
|
|
139
139
|
Inset: () => import_themes25.Inset,
|
|
140
140
|
Kbd: () => import_themes26.Kbd,
|
|
@@ -446,7 +446,8 @@ var import_themes15 = require("@radix-ui/themes");
|
|
|
446
446
|
// src/atoms/dialog.tsx
|
|
447
447
|
var RadixDialog = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
448
448
|
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
449
|
-
var
|
|
449
|
+
var import_themes19 = require("@radix-ui/themes");
|
|
450
|
+
var import_react8 = require("react");
|
|
450
451
|
|
|
451
452
|
// src/atoms/toast.tsx
|
|
452
453
|
var import_react_icons = require("@radix-ui/react-icons");
|
|
@@ -476,8 +477,37 @@ function ToastContainer(props) {
|
|
|
476
477
|
);
|
|
477
478
|
}
|
|
478
479
|
|
|
479
|
-
// src/atoms/
|
|
480
|
+
// src/atoms/heading.tsx
|
|
481
|
+
var import_themes16 = require("@radix-ui/themes");
|
|
482
|
+
var import_react7 = require("react");
|
|
483
|
+
var import_themes17 = require("@radix-ui/themes");
|
|
480
484
|
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
485
|
+
function Heading2(props) {
|
|
486
|
+
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
487
|
+
const radixSize = (0, import_react7.useMemo)(() => {
|
|
488
|
+
switch (variant) {
|
|
489
|
+
case "heading1":
|
|
490
|
+
return "7";
|
|
491
|
+
case "heading2":
|
|
492
|
+
return "6";
|
|
493
|
+
case "heading3":
|
|
494
|
+
return "5";
|
|
495
|
+
case "heading4":
|
|
496
|
+
return "4";
|
|
497
|
+
case "heading5":
|
|
498
|
+
return "3";
|
|
499
|
+
default:
|
|
500
|
+
return size;
|
|
501
|
+
}
|
|
502
|
+
}, [size, variant]);
|
|
503
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes16.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
// src/atoms/icon-button.tsx
|
|
507
|
+
var import_themes18 = require("@radix-ui/themes");
|
|
508
|
+
|
|
509
|
+
// src/atoms/dialog.tsx
|
|
510
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
481
511
|
var preventDefault = (e) => {
|
|
482
512
|
e.preventDefault();
|
|
483
513
|
};
|
|
@@ -490,7 +520,9 @@ function Content2(props) {
|
|
|
490
520
|
minWidth,
|
|
491
521
|
maxHeight,
|
|
492
522
|
height,
|
|
493
|
-
minHeight
|
|
523
|
+
minHeight,
|
|
524
|
+
title,
|
|
525
|
+
buttons
|
|
494
526
|
} = _a, rest = __objRest(_a, [
|
|
495
527
|
"children",
|
|
496
528
|
"style",
|
|
@@ -499,10 +531,17 @@ function Content2(props) {
|
|
|
499
531
|
"minWidth",
|
|
500
532
|
"maxHeight",
|
|
501
533
|
"height",
|
|
502
|
-
"minHeight"
|
|
534
|
+
"minHeight",
|
|
535
|
+
"title",
|
|
536
|
+
"buttons"
|
|
503
537
|
]);
|
|
504
|
-
|
|
505
|
-
|
|
538
|
+
const containerRef = (0, import_react8.useRef)(null);
|
|
539
|
+
if (typeof document !== "undefined") {
|
|
540
|
+
const container = document.getElementsByClassName("radix-themes")[0];
|
|
541
|
+
containerRef.current = container;
|
|
542
|
+
}
|
|
543
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Portal, { container: containerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes19.Theme, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(RadixDialog.Overlay, { className: "DialogOverlay", children: [
|
|
544
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
|
|
506
545
|
RadixDialog.Content,
|
|
507
546
|
__spreadProps(__spreadValues({
|
|
508
547
|
className: "DialogContent",
|
|
@@ -516,13 +555,17 @@ function Content2(props) {
|
|
|
516
555
|
minHeight
|
|
517
556
|
}, style)
|
|
518
557
|
}, rest), {
|
|
519
|
-
children:
|
|
520
|
-
/* @__PURE__ */ (0,
|
|
521
|
-
|
|
522
|
-
|
|
558
|
+
children: [
|
|
559
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_themes19.Flex, { gap: "2", justify: "between", children: [
|
|
560
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Title, { asChild: true, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Heading2, { variant: "heading3", children: title }) : title }),
|
|
561
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes18.IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_icons2.Cross1Icon, {}) }) })
|
|
562
|
+
] }),
|
|
563
|
+
children,
|
|
564
|
+
buttons ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes19.Flex, { gap: "3", justify: "end", mt: "3", children: buttons }) : null
|
|
565
|
+
]
|
|
523
566
|
})
|
|
524
567
|
),
|
|
525
|
-
/* @__PURE__ */ (0,
|
|
568
|
+
/* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ToastContainer, {})
|
|
526
569
|
] }) }) });
|
|
527
570
|
}
|
|
528
571
|
function Close2(_a) {
|
|
@@ -531,7 +574,7 @@ function Close2(_a) {
|
|
|
531
574
|
} = _b, rest = __objRest(_b, [
|
|
532
575
|
"children"
|
|
533
576
|
]);
|
|
534
|
-
return /* @__PURE__ */ (0,
|
|
577
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
535
578
|
}
|
|
536
579
|
function Trigger2(_a) {
|
|
537
580
|
var _b = _a, {
|
|
@@ -539,7 +582,7 @@ function Trigger2(_a) {
|
|
|
539
582
|
} = _b, rest = __objRest(_b, [
|
|
540
583
|
"children"
|
|
541
584
|
]);
|
|
542
|
-
return /* @__PURE__ */ (0,
|
|
585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
543
586
|
}
|
|
544
587
|
var Dialog = {
|
|
545
588
|
Root: RadixDialog.Root,
|
|
@@ -551,17 +594,17 @@ var Dialog = {
|
|
|
551
594
|
};
|
|
552
595
|
|
|
553
596
|
// src/atoms/dropdown-menu.tsx
|
|
554
|
-
var
|
|
555
|
-
var
|
|
556
|
-
var
|
|
557
|
-
var Content3 = (0,
|
|
597
|
+
var import_themes20 = require("@radix-ui/themes");
|
|
598
|
+
var import_react9 = require("react");
|
|
599
|
+
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
600
|
+
var Content3 = (0, import_react9.forwardRef)((props, ref) => {
|
|
558
601
|
const _a = props, { isNavigation, className } = _a, rest = __objRest(_a, ["isNavigation", "className"]);
|
|
559
|
-
const contentClassName = (0,
|
|
602
|
+
const contentClassName = (0, import_react9.useMemo)(() => {
|
|
560
603
|
const cls = isNavigation ? "dropdown-navigation" : "";
|
|
561
604
|
return [cls, className].join(" ");
|
|
562
605
|
}, [isNavigation, className]);
|
|
563
|
-
return /* @__PURE__ */ (0,
|
|
564
|
-
|
|
606
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
607
|
+
import_themes20.DropdownMenu.Content,
|
|
565
608
|
__spreadProps(__spreadValues({
|
|
566
609
|
ref
|
|
567
610
|
}, rest), {
|
|
@@ -570,49 +613,20 @@ var Content3 = (0, import_react7.forwardRef)((props, ref) => {
|
|
|
570
613
|
);
|
|
571
614
|
});
|
|
572
615
|
Content3.displayName = "DropdownMenu.Content";
|
|
573
|
-
var DropdownMenu = __spreadProps(__spreadValues({},
|
|
616
|
+
var DropdownMenu = __spreadProps(__spreadValues({}, import_themes20.DropdownMenu), {
|
|
574
617
|
Content: Content3
|
|
575
618
|
});
|
|
576
619
|
|
|
577
620
|
// src/atoms/em.tsx
|
|
578
|
-
var
|
|
621
|
+
var import_themes21 = require("@radix-ui/themes");
|
|
579
622
|
|
|
580
623
|
// src/atoms/flex.tsx
|
|
581
|
-
var import_themes19 = require("@radix-ui/themes");
|
|
582
|
-
|
|
583
|
-
// src/atoms/grid.tsx
|
|
584
|
-
var import_themes20 = require("@radix-ui/themes");
|
|
585
|
-
|
|
586
|
-
// src/atoms/heading.tsx
|
|
587
|
-
var import_themes21 = require("@radix-ui/themes");
|
|
588
|
-
var import_react8 = require("react");
|
|
589
624
|
var import_themes22 = require("@radix-ui/themes");
|
|
590
|
-
var import_jsx_runtime10 = require("react/jsx-runtime");
|
|
591
|
-
function Heading2(props) {
|
|
592
|
-
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
593
|
-
const radixSize = (0, import_react8.useMemo)(() => {
|
|
594
|
-
switch (variant) {
|
|
595
|
-
case "heading1":
|
|
596
|
-
return "7";
|
|
597
|
-
case "heading2":
|
|
598
|
-
return "6";
|
|
599
|
-
case "heading3":
|
|
600
|
-
return "5";
|
|
601
|
-
case "heading4":
|
|
602
|
-
return "4";
|
|
603
|
-
case "heading5":
|
|
604
|
-
return "3";
|
|
605
|
-
default:
|
|
606
|
-
return size;
|
|
607
|
-
}
|
|
608
|
-
}, [size, variant]);
|
|
609
|
-
return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes21.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
610
|
-
}
|
|
611
625
|
|
|
612
|
-
// src/atoms/
|
|
626
|
+
// src/atoms/grid.tsx
|
|
613
627
|
var import_themes23 = require("@radix-ui/themes");
|
|
614
628
|
|
|
615
|
-
// src/atoms/
|
|
629
|
+
// src/atoms/hover-card.tsx
|
|
616
630
|
var import_themes24 = require("@radix-ui/themes");
|
|
617
631
|
|
|
618
632
|
// src/atoms/inset.tsx
|
|
@@ -623,12 +637,12 @@ var import_themes26 = require("@radix-ui/themes");
|
|
|
623
637
|
|
|
624
638
|
// src/atoms/link.tsx
|
|
625
639
|
var import_themes27 = require("@radix-ui/themes");
|
|
626
|
-
var
|
|
640
|
+
var import_react10 = require("react");
|
|
627
641
|
var import_themes28 = require("@radix-ui/themes");
|
|
628
642
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
629
643
|
function Link(props) {
|
|
630
644
|
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
631
|
-
const radixSize = (0,
|
|
645
|
+
const radixSize = (0, import_react10.useMemo)(() => {
|
|
632
646
|
switch (variant) {
|
|
633
647
|
case "caption":
|
|
634
648
|
return "1";
|
|
@@ -672,15 +686,15 @@ var import_themes37 = require("@radix-ui/themes");
|
|
|
672
686
|
|
|
673
687
|
// src/atoms/select.tsx
|
|
674
688
|
var import_themes38 = require("@radix-ui/themes");
|
|
675
|
-
var
|
|
689
|
+
var import_react11 = require("react");
|
|
676
690
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
677
|
-
var SelectContext = (0,
|
|
691
|
+
var SelectContext = (0, import_react11.createContext)({
|
|
678
692
|
error: false
|
|
679
693
|
});
|
|
680
|
-
var Content4 = (0,
|
|
694
|
+
var Content4 = (0, import_react11.forwardRef)((props, ref) => {
|
|
681
695
|
const _a = props, { className, isNavigation } = _a, rest = __objRest(_a, ["className", "isNavigation"]);
|
|
682
|
-
const { error } = (0,
|
|
683
|
-
const cls = (0,
|
|
696
|
+
const { error } = (0, import_react11.useContext)(SelectContext);
|
|
697
|
+
const cls = (0, import_react11.useMemo)(() => {
|
|
684
698
|
const etc = isNavigation ? "nav-select" : "";
|
|
685
699
|
const errorCls = error ? "tipp-error" : "";
|
|
686
700
|
return [etc, errorCls, className].join(" ");
|
|
@@ -696,11 +710,11 @@ var Content4 = (0, import_react10.forwardRef)((props, ref) => {
|
|
|
696
710
|
);
|
|
697
711
|
});
|
|
698
712
|
Content4.displayName = "Select.Content";
|
|
699
|
-
var Trigger3 = (0,
|
|
713
|
+
var Trigger3 = (0, import_react11.forwardRef)(
|
|
700
714
|
(props, ref) => {
|
|
701
715
|
const _a = props, { className } = _a, rest = __objRest(_a, ["className"]);
|
|
702
|
-
const { error } = (0,
|
|
703
|
-
const cls = (0,
|
|
716
|
+
const { error } = (0, import_react11.useContext)(SelectContext);
|
|
717
|
+
const cls = (0, import_react11.useMemo)(() => {
|
|
704
718
|
const errorCls = error ? "error" : "";
|
|
705
719
|
return [errorCls, className].join(" ");
|
|
706
720
|
}, [className, error]);
|
|
@@ -739,12 +753,12 @@ var import_themes44 = require("@radix-ui/themes");
|
|
|
739
753
|
|
|
740
754
|
// src/atoms/text-area.tsx
|
|
741
755
|
var import_themes45 = require("@radix-ui/themes");
|
|
742
|
-
var
|
|
756
|
+
var import_react12 = require("react");
|
|
743
757
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
744
|
-
var TextArea = (0,
|
|
758
|
+
var TextArea = (0, import_react12.forwardRef)(
|
|
745
759
|
(props, ref) => {
|
|
746
760
|
const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
|
|
747
|
-
const fieldStyle = (0,
|
|
761
|
+
const fieldStyle = (0, import_react12.useMemo)(() => {
|
|
748
762
|
if (!error)
|
|
749
763
|
return style;
|
|
750
764
|
const errorStyle = {
|
|
@@ -767,12 +781,12 @@ TextArea.displayName = "TextArea";
|
|
|
767
781
|
|
|
768
782
|
// src/atoms/typo.tsx
|
|
769
783
|
var import_themes46 = require("@radix-ui/themes");
|
|
770
|
-
var
|
|
784
|
+
var import_react13 = require("react");
|
|
771
785
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
772
|
-
var Typo = (0,
|
|
786
|
+
var Typo = (0, import_react13.forwardRef)(
|
|
773
787
|
(props, ref) => {
|
|
774
788
|
const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
|
|
775
|
-
const radixSize = (0,
|
|
789
|
+
const radixSize = (0, import_react13.useMemo)(() => {
|
|
776
790
|
if (size !== void 0)
|
|
777
791
|
return size;
|
|
778
792
|
switch (variant) {
|
|
@@ -792,11 +806,11 @@ Typo.displayName = "Typo";
|
|
|
792
806
|
|
|
793
807
|
// src/atoms/text-field.tsx
|
|
794
808
|
var import_themes47 = require("@radix-ui/themes");
|
|
795
|
-
var
|
|
809
|
+
var import_react14 = require("react");
|
|
796
810
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
797
|
-
var Root4 = (0,
|
|
811
|
+
var Root4 = (0, import_react14.forwardRef)((props, ref) => {
|
|
798
812
|
const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
|
|
799
|
-
const fieldStyle = (0,
|
|
813
|
+
const fieldStyle = (0, import_react14.useMemo)(() => {
|
|
800
814
|
if (!error)
|
|
801
815
|
return style;
|
|
802
816
|
const errorStyle = {
|
|
@@ -821,20 +835,20 @@ var TextField = { Root: Root4, Slot: import_themes47.TextField.Slot };
|
|
|
821
835
|
var import_themes48 = require("@radix-ui/themes");
|
|
822
836
|
|
|
823
837
|
// src/atoms/collapse.tsx
|
|
824
|
-
var
|
|
838
|
+
var import_react15 = require("react");
|
|
825
839
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
826
840
|
function Collapse(props) {
|
|
827
841
|
const { children, closedHeight = "0" } = props;
|
|
828
|
-
const [open, setOpen] = (0,
|
|
842
|
+
const [open, setOpen] = (0, import_react15.useState)(() => {
|
|
829
843
|
return props.open || props.defaultOpen || false;
|
|
830
844
|
});
|
|
831
|
-
(0,
|
|
845
|
+
(0, import_react15.useEffect)(() => {
|
|
832
846
|
if (props.open === void 0)
|
|
833
847
|
return;
|
|
834
848
|
setOpen(props.open);
|
|
835
849
|
}, [props.open]);
|
|
836
|
-
const ref = (0,
|
|
837
|
-
(0,
|
|
850
|
+
const ref = (0, import_react15.useRef)(null);
|
|
851
|
+
(0, import_react15.useEffect)(() => {
|
|
838
852
|
if (!ref.current)
|
|
839
853
|
return;
|
|
840
854
|
ref.current.style.maxHeight = open ? `${ref.current.scrollHeight}px` : closedHeight;
|
|
@@ -846,7 +860,7 @@ function Collapse(props) {
|
|
|
846
860
|
var import_themes49 = require("@radix-ui/themes");
|
|
847
861
|
|
|
848
862
|
// src/atoms/pagination.tsx
|
|
849
|
-
var
|
|
863
|
+
var import_react16 = require("react");
|
|
850
864
|
|
|
851
865
|
// src/icon.ts
|
|
852
866
|
var import_react_icons3 = require("@radix-ui/react-icons");
|
|
@@ -855,8 +869,8 @@ var import_react_icons3 = require("@radix-ui/react-icons");
|
|
|
855
869
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
856
870
|
function Pagination(props) {
|
|
857
871
|
const { onChange, count = 0, siblingCount = 2 } = props;
|
|
858
|
-
const [page, setPage] = (0,
|
|
859
|
-
const visibleItems = (0,
|
|
872
|
+
const [page, setPage] = (0, import_react16.useState)(() => props.page || props.defaultPage || 1);
|
|
873
|
+
const visibleItems = (0, import_react16.useMemo)(() => {
|
|
860
874
|
let start = Math.max(1, page - siblingCount);
|
|
861
875
|
let end = Math.min(count, page + siblingCount);
|
|
862
876
|
if (page - siblingCount <= 0 && end < count) {
|
|
@@ -866,37 +880,37 @@ function Pagination(props) {
|
|
|
866
880
|
}
|
|
867
881
|
return Array.from({ length: end - start + 1 }, (_, i) => i + start);
|
|
868
882
|
}, [count, page, siblingCount]);
|
|
869
|
-
(0,
|
|
883
|
+
(0, import_react16.useEffect)(() => {
|
|
870
884
|
onChange == null ? void 0 : onChange(page);
|
|
871
885
|
}, [onChange, page]);
|
|
872
|
-
(0,
|
|
886
|
+
(0, import_react16.useEffect)(() => {
|
|
873
887
|
if (props.page) {
|
|
874
888
|
setPage(props.page);
|
|
875
889
|
}
|
|
876
890
|
}, [props.page]);
|
|
877
|
-
const prev = (0,
|
|
891
|
+
const prev = (0, import_react16.useMemo)(() => {
|
|
878
892
|
const p = page - 1;
|
|
879
893
|
return p < 1 ? void 0 : p;
|
|
880
894
|
}, [page]);
|
|
881
|
-
const next = (0,
|
|
895
|
+
const next = (0, import_react16.useMemo)(() => {
|
|
882
896
|
const n = page + 1;
|
|
883
897
|
return n > count ? void 0 : n;
|
|
884
898
|
}, [count, page]);
|
|
885
|
-
const onClickPrev = (0,
|
|
899
|
+
const onClickPrev = (0, import_react16.useCallback)(() => {
|
|
886
900
|
prev && setPage(prev);
|
|
887
901
|
}, [prev]);
|
|
888
|
-
const onClickNext = (0,
|
|
902
|
+
const onClickNext = (0, import_react16.useCallback)(() => {
|
|
889
903
|
next && setPage(next);
|
|
890
904
|
}, [next]);
|
|
891
|
-
const doublePrev = (0,
|
|
905
|
+
const doublePrev = (0, import_react16.useMemo)(() => {
|
|
892
906
|
if (!visibleItems.length)
|
|
893
907
|
return;
|
|
894
908
|
return Math.max(0, visibleItems[0] - 1);
|
|
895
909
|
}, [visibleItems]);
|
|
896
|
-
const onClickDoublePrev = (0,
|
|
910
|
+
const onClickDoublePrev = (0, import_react16.useCallback)(() => {
|
|
897
911
|
doublePrev && setPage(doublePrev);
|
|
898
912
|
}, [doublePrev]);
|
|
899
|
-
const doubleNext = (0,
|
|
913
|
+
const doubleNext = (0, import_react16.useMemo)(() => {
|
|
900
914
|
if (!visibleItems.length)
|
|
901
915
|
return;
|
|
902
916
|
const n = visibleItems[visibleItems.length - 1] + 1;
|
|
@@ -904,7 +918,7 @@ function Pagination(props) {
|
|
|
904
918
|
return;
|
|
905
919
|
return Math.min(count, n);
|
|
906
920
|
}, [count, visibleItems]);
|
|
907
|
-
const onClickDoubleNext = (0,
|
|
921
|
+
const onClickDoubleNext = (0, import_react16.useCallback)(() => {
|
|
908
922
|
doubleNext && setPage(doubleNext);
|
|
909
923
|
}, [doubleNext]);
|
|
910
924
|
const iconSize = {
|
|
@@ -916,9 +930,9 @@ function Pagination(props) {
|
|
|
916
930
|
size: "3",
|
|
917
931
|
style: { borderRadius: "50%" }
|
|
918
932
|
};
|
|
919
|
-
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
|
|
933
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_themes22.Flex, { align: "center", className: "tipp-pagination", gap: "4", children: [
|
|
920
934
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
921
|
-
|
|
935
|
+
import_themes18.IconButton,
|
|
922
936
|
__spreadProps(__spreadValues({
|
|
923
937
|
disabled: !doublePrev,
|
|
924
938
|
onClick: onClickDoublePrev
|
|
@@ -926,8 +940,8 @@ function Pagination(props) {
|
|
|
926
940
|
children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_icons3.DoubleArrowLeftIcon, __spreadValues({}, iconSize))
|
|
927
941
|
})
|
|
928
942
|
),
|
|
929
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
930
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
943
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes18.IconButton, __spreadProps(__spreadValues({ disabled: !prev, onClick: onClickPrev }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_icons3.ChevronLeftIcon, __spreadValues({}, iconSize)) })),
|
|
944
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes22.Flex, { gap: "1", children: visibleItems.map((item) => {
|
|
931
945
|
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
932
946
|
"button",
|
|
933
947
|
{
|
|
@@ -941,9 +955,9 @@ function Pagination(props) {
|
|
|
941
955
|
item
|
|
942
956
|
);
|
|
943
957
|
}) }),
|
|
944
|
-
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
958
|
+
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes18.IconButton, __spreadProps(__spreadValues({ disabled: !next, onClick: onClickNext }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_icons3.ChevronRightIcon, __spreadValues({}, iconSize)) })),
|
|
945
959
|
/* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
|
|
946
|
-
|
|
960
|
+
import_themes18.IconButton,
|
|
947
961
|
__spreadProps(__spreadValues({
|
|
948
962
|
disabled: !doubleNext,
|
|
949
963
|
onClick: onClickDoubleNext
|
|
@@ -960,22 +974,22 @@ function FieldErrorWrapper({
|
|
|
960
974
|
children,
|
|
961
975
|
error
|
|
962
976
|
}) {
|
|
963
|
-
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
|
|
977
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_themes22.Flex, { direction: "column", gap: "1", children: [
|
|
964
978
|
children,
|
|
965
979
|
error ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Typo, { color: "red", variant: "caption", children: error }) : null
|
|
966
980
|
] });
|
|
967
981
|
}
|
|
968
982
|
|
|
969
983
|
// src/atoms/ellipsis-tooltip.tsx
|
|
970
|
-
var
|
|
984
|
+
var import_react17 = require("react");
|
|
971
985
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
972
986
|
function EllipsisTooltip(props) {
|
|
973
987
|
const _a = props, { children, style, lineClamp = 2 } = _a, rest = __objRest(_a, ["children", "style", "lineClamp"]);
|
|
974
|
-
const ref = (0,
|
|
975
|
-
const [tooltipDisplay, setTooltipDisplay] = (0,
|
|
988
|
+
const ref = (0, import_react17.useRef)(null);
|
|
989
|
+
const [tooltipDisplay, setTooltipDisplay] = (0, import_react17.useState)(
|
|
976
990
|
"none"
|
|
977
991
|
);
|
|
978
|
-
(0,
|
|
992
|
+
(0, import_react17.useEffect)(() => {
|
|
979
993
|
if (ref.current) {
|
|
980
994
|
const typo = ref.current;
|
|
981
995
|
const mouseOver = () => {
|
|
@@ -1009,7 +1023,7 @@ function EllipsisTooltip(props) {
|
|
|
1009
1023
|
}
|
|
1010
1024
|
|
|
1011
1025
|
// src/atoms/drawer.tsx
|
|
1012
|
-
var
|
|
1026
|
+
var import_react18 = require("react");
|
|
1013
1027
|
var Dialog2 = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
1014
1028
|
var import_themes50 = require("@radix-ui/themes");
|
|
1015
1029
|
|
|
@@ -1065,8 +1079,8 @@ var preventDefault2 = (e) => {
|
|
|
1065
1079
|
};
|
|
1066
1080
|
function Content6(props) {
|
|
1067
1081
|
const _a = props, { position = "right", className, children } = _a, rest = __objRest(_a, ["position", "className", "children"]);
|
|
1068
|
-
const containerRef = (0,
|
|
1069
|
-
(0,
|
|
1082
|
+
const containerRef = (0, import_react18.useRef)(null);
|
|
1083
|
+
(0, import_react18.useEffect)(() => {
|
|
1070
1084
|
containerRef.current = document.getElementsByClassName("radix-themes")[0];
|
|
1071
1085
|
}, []);
|
|
1072
1086
|
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Dialog2.Portal, { container: containerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_themes50.Theme, { children: [
|
|
@@ -1079,12 +1093,12 @@ function Content6(props) {
|
|
|
1079
1093
|
}, rest), {
|
|
1080
1094
|
children: [
|
|
1081
1095
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1082
|
-
|
|
1096
|
+
import_themes22.Flex,
|
|
1083
1097
|
{
|
|
1084
1098
|
align: "center",
|
|
1085
1099
|
px: { initial: "4", md: "6" },
|
|
1086
1100
|
py: { initial: "2", md: "4" },
|
|
1087
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Dialog2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1101
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Dialog2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes18.IconButton, { color: "gray", variant: "outline", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ClosePanelArrowIcon, {}) }) })
|
|
1088
1102
|
}
|
|
1089
1103
|
),
|
|
1090
1104
|
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes39.Separator, { orientation: "horizontal", size: "4" }),
|
|
@@ -1108,9 +1122,9 @@ var Drawer = {
|
|
|
1108
1122
|
|
|
1109
1123
|
// src/molecules/form.tsx
|
|
1110
1124
|
var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
|
|
1111
|
-
var
|
|
1125
|
+
var import_react19 = require("react");
|
|
1112
1126
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1113
|
-
var Root8 = (0,
|
|
1127
|
+
var Root8 = (0, import_react19.forwardRef)(
|
|
1114
1128
|
(_a, ref) => {
|
|
1115
1129
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1116
1130
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
@@ -1124,10 +1138,10 @@ var Root8 = (0, import_react18.forwardRef)(
|
|
|
1124
1138
|
}
|
|
1125
1139
|
);
|
|
1126
1140
|
Root8.displayName = "FORM_ROOT";
|
|
1127
|
-
var FieldContext = (0,
|
|
1141
|
+
var FieldContext = (0, import_react19.createContext)({
|
|
1128
1142
|
name: ""
|
|
1129
1143
|
});
|
|
1130
|
-
var Field2 = (0,
|
|
1144
|
+
var Field2 = (0, import_react19.forwardRef)(
|
|
1131
1145
|
(_a, ref) => {
|
|
1132
1146
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1133
1147
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
@@ -1147,10 +1161,10 @@ function HeadingLabel(props) {
|
|
|
1147
1161
|
function CaptionLabel(props) {
|
|
1148
1162
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(Typo, __spreadProps(__spreadValues({ color: "gray", variant: "caption" }, props), { children: props.children }));
|
|
1149
1163
|
}
|
|
1150
|
-
var Label2 = (0,
|
|
1164
|
+
var Label2 = (0, import_react19.forwardRef)(
|
|
1151
1165
|
(_a, ref) => {
|
|
1152
1166
|
var _b = _a, { children, className, variant } = _b, rest = __objRest(_b, ["children", "className", "variant"]);
|
|
1153
|
-
const Comp = (0,
|
|
1167
|
+
const Comp = (0, import_react19.useMemo)(() => {
|
|
1154
1168
|
switch (variant) {
|
|
1155
1169
|
case "title":
|
|
1156
1170
|
return HeadingLabel;
|
|
@@ -1161,7 +1175,7 @@ var Label2 = (0, import_react18.forwardRef)(
|
|
|
1161
1175
|
return Typo;
|
|
1162
1176
|
}
|
|
1163
1177
|
}, [variant]);
|
|
1164
|
-
const fieldProps = (0,
|
|
1178
|
+
const fieldProps = (0, import_react19.useContext)(FieldContext);
|
|
1165
1179
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1166
1180
|
RadixForm.Label,
|
|
1167
1181
|
__spreadProps(__spreadValues({}, rest), {
|
|
@@ -1177,7 +1191,7 @@ var Label2 = (0, import_react18.forwardRef)(
|
|
|
1177
1191
|
}
|
|
1178
1192
|
);
|
|
1179
1193
|
Label2.displayName = "FORM_Label";
|
|
1180
|
-
var Message2 = (0,
|
|
1194
|
+
var Message2 = (0, import_react19.forwardRef)(
|
|
1181
1195
|
(_a, ref) => {
|
|
1182
1196
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
1183
1197
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
@@ -1192,10 +1206,10 @@ var Message2 = (0, import_react18.forwardRef)(
|
|
|
1192
1206
|
}
|
|
1193
1207
|
);
|
|
1194
1208
|
Message2.displayName = "FORM_Message";
|
|
1195
|
-
var Control2 = (0,
|
|
1209
|
+
var Control2 = (0, import_react19.forwardRef)(
|
|
1196
1210
|
(_a, ref) => {
|
|
1197
1211
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
|
1198
|
-
const fieldProps = (0,
|
|
1212
|
+
const fieldProps = (0, import_react19.useContext)(FieldContext);
|
|
1199
1213
|
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1200
1214
|
RadixForm.Control,
|
|
1201
1215
|
__spreadProps(__spreadValues({}, rest), {
|
|
@@ -1217,28 +1231,28 @@ var Form = {
|
|
|
1217
1231
|
};
|
|
1218
1232
|
|
|
1219
1233
|
// src/atoms/auto-sizing-input.tsx
|
|
1220
|
-
var
|
|
1234
|
+
var import_react20 = require("react");
|
|
1221
1235
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1222
|
-
var AutoSizingInput = (0,
|
|
1236
|
+
var AutoSizingInput = (0, import_react20.forwardRef)(
|
|
1223
1237
|
(_a, ref) => {
|
|
1224
1238
|
var _b = _a, { value: _value, onChangeValue, onChange } = _b, rest = __objRest(_b, ["value", "onChangeValue", "onChange"]);
|
|
1225
|
-
const [value, setValue] = (0,
|
|
1226
|
-
const [width, setWidth] = (0,
|
|
1227
|
-
const span = (0,
|
|
1228
|
-
(0,
|
|
1239
|
+
const [value, setValue] = (0, import_react20.useState)(_value);
|
|
1240
|
+
const [width, setWidth] = (0, import_react20.useState)(0);
|
|
1241
|
+
const span = (0, import_react20.useRef)(null);
|
|
1242
|
+
(0, import_react20.useEffect)(() => {
|
|
1229
1243
|
span.current && setWidth(span.current.offsetWidth);
|
|
1230
1244
|
}, [value]);
|
|
1231
|
-
const changeHandler = (0,
|
|
1245
|
+
const changeHandler = (0, import_react20.useCallback)(
|
|
1232
1246
|
(evt) => {
|
|
1233
1247
|
onChange == null ? void 0 : onChange(evt);
|
|
1234
1248
|
setValue(evt.target.value);
|
|
1235
1249
|
},
|
|
1236
1250
|
[onChange]
|
|
1237
1251
|
);
|
|
1238
|
-
(0,
|
|
1252
|
+
(0, import_react20.useEffect)(() => {
|
|
1239
1253
|
setValue(_value || "");
|
|
1240
1254
|
}, [_value]);
|
|
1241
|
-
(0,
|
|
1255
|
+
(0, import_react20.useEffect)(() => {
|
|
1242
1256
|
onChangeValue == null ? void 0 : onChangeValue(value || "");
|
|
1243
1257
|
}, [value, onChangeValue]);
|
|
1244
1258
|
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "auto-sizing-input wrapper", style: { width: width + 24 }, children: [
|
|
@@ -1257,7 +1271,7 @@ function BulletText(_a) {
|
|
|
1257
1271
|
} = _b, rest = __objRest(_b, [
|
|
1258
1272
|
"children"
|
|
1259
1273
|
]);
|
|
1260
|
-
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
|
|
1274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes22.Flex, { gap: "1", ml: "2", children: [
|
|
1261
1275
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, __spreadProps(__spreadValues({}, rest), { children: "\u2022" })),
|
|
1262
1276
|
/* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, __spreadProps(__spreadValues({}, rest), { children }))
|
|
1263
1277
|
] });
|
|
@@ -1265,7 +1279,7 @@ function BulletText(_a) {
|
|
|
1265
1279
|
|
|
1266
1280
|
// src/molecules/expand-table/index.tsx
|
|
1267
1281
|
var import_react_table2 = require("@tanstack/react-table");
|
|
1268
|
-
var
|
|
1282
|
+
var import_react22 = require("react");
|
|
1269
1283
|
|
|
1270
1284
|
// src/icons/down.tsx
|
|
1271
1285
|
var React10 = __toESM(require("react"), 1);
|
|
@@ -1327,17 +1341,17 @@ TriangleArrowUpIcon.displayName = "ArrowUpIcon";
|
|
|
1327
1341
|
|
|
1328
1342
|
// src/molecules/expand-table/row.tsx
|
|
1329
1343
|
var import_react_table = require("@tanstack/react-table");
|
|
1330
|
-
var
|
|
1344
|
+
var import_react21 = require("react");
|
|
1331
1345
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1332
1346
|
function Row(props) {
|
|
1333
1347
|
const { row, ExpandComp, gridTemplateColumns, getRowStyle, getCellStyle } = props;
|
|
1334
|
-
const [open, setOpen] = (0,
|
|
1335
|
-
const onClickRow = (0,
|
|
1348
|
+
const [open, setOpen] = (0, import_react21.useState)(false);
|
|
1349
|
+
const onClickRow = (0, import_react21.useCallback)(() => {
|
|
1336
1350
|
var _a;
|
|
1337
1351
|
(_a = props.onRowClick) == null ? void 0 : _a.call(props, row.original);
|
|
1338
1352
|
setOpen((prev) => !prev);
|
|
1339
1353
|
}, [props, row.original]);
|
|
1340
|
-
const rowClassName = (0,
|
|
1354
|
+
const rowClassName = (0, import_react21.useMemo)(() => {
|
|
1341
1355
|
const baseCls = ["tr-wrapper"];
|
|
1342
1356
|
if (ExpandComp) {
|
|
1343
1357
|
baseCls.push("expandable");
|
|
@@ -1411,11 +1425,11 @@ function ExpandTable(props) {
|
|
|
1411
1425
|
getCellStyle
|
|
1412
1426
|
} = props;
|
|
1413
1427
|
const defaultAlign = "left";
|
|
1414
|
-
const [pagination, setPagination] = (0,
|
|
1428
|
+
const [pagination, setPagination] = (0, import_react22.useState)({
|
|
1415
1429
|
pageIndex: pageIndex || 0,
|
|
1416
1430
|
pageSize: pageSize || 9999
|
|
1417
1431
|
});
|
|
1418
|
-
const [sorting, setSorting] = (0,
|
|
1432
|
+
const [sorting, setSorting] = (0, import_react22.useState)([]);
|
|
1419
1433
|
const { getRowModel, getHeaderGroups, setPageIndex } = (0, import_react_table2.useReactTable)({
|
|
1420
1434
|
data: data || [],
|
|
1421
1435
|
columns,
|
|
@@ -1429,7 +1443,7 @@ function ExpandTable(props) {
|
|
|
1429
1443
|
getPaginationRowModel: (0, import_react_table2.getPaginationRowModel)(),
|
|
1430
1444
|
onPaginationChange: setPagination
|
|
1431
1445
|
});
|
|
1432
|
-
const gridTemplateColumns = (0,
|
|
1446
|
+
const gridTemplateColumns = (0, import_react22.useMemo)(() => {
|
|
1433
1447
|
return columns.map((col) => {
|
|
1434
1448
|
var _a;
|
|
1435
1449
|
if ((_a = col.meta) == null ? void 0 : _a.autoSize)
|
|
@@ -1438,17 +1452,17 @@ function ExpandTable(props) {
|
|
|
1438
1452
|
}).join(" ");
|
|
1439
1453
|
}, [columns]);
|
|
1440
1454
|
const rowModels = getRowModel();
|
|
1441
|
-
const onChangePagination = (0,
|
|
1455
|
+
const onChangePagination = (0, import_react22.useCallback)(
|
|
1442
1456
|
(page) => {
|
|
1443
1457
|
setPageIndex(page - 1);
|
|
1444
1458
|
},
|
|
1445
1459
|
[setPageIndex]
|
|
1446
1460
|
);
|
|
1447
|
-
const helpCompRender = (0,
|
|
1461
|
+
const helpCompRender = (0, import_react22.useCallback)(
|
|
1448
1462
|
(rowLength) => {
|
|
1449
1463
|
if (isLoading) {
|
|
1450
1464
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1451
|
-
|
|
1465
|
+
import_themes22.Flex,
|
|
1452
1466
|
{
|
|
1453
1467
|
align: "center",
|
|
1454
1468
|
height: "100%",
|
|
@@ -1460,13 +1474,13 @@ function ExpandTable(props) {
|
|
|
1460
1474
|
);
|
|
1461
1475
|
}
|
|
1462
1476
|
if (rowLength === 0) {
|
|
1463
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1477
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_themes22.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder");
|
|
1464
1478
|
}
|
|
1465
1479
|
return null;
|
|
1466
1480
|
},
|
|
1467
1481
|
[isLoading, placeholder]
|
|
1468
1482
|
);
|
|
1469
|
-
const pageCount = (0,
|
|
1483
|
+
const pageCount = (0, import_react22.useMemo)(() => {
|
|
1470
1484
|
if (!data)
|
|
1471
1485
|
return 0;
|
|
1472
1486
|
return Math.ceil(data.length / pageSize);
|
|
@@ -1494,7 +1508,7 @@ function ExpandTable(props) {
|
|
|
1494
1508
|
header.getContext()
|
|
1495
1509
|
) }),
|
|
1496
1510
|
sortable ? /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1497
|
-
|
|
1511
|
+
import_themes22.Flex,
|
|
1498
1512
|
{
|
|
1499
1513
|
direction: "column",
|
|
1500
1514
|
style: { marginLeft: "var(--space-2)" },
|
|
@@ -1536,7 +1550,7 @@ function ExpandTable(props) {
|
|
|
1536
1550
|
`row_${row.id}`
|
|
1537
1551
|
);
|
|
1538
1552
|
}) }),
|
|
1539
|
-
showPagination ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1553
|
+
showPagination ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_themes22.Flex, { justify: "end", pt: "3", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1540
1554
|
Pagination,
|
|
1541
1555
|
{
|
|
1542
1556
|
count: pageCount,
|
|
@@ -1557,7 +1571,7 @@ function Navigation({
|
|
|
1557
1571
|
activeKey
|
|
1558
1572
|
}) {
|
|
1559
1573
|
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1560
|
-
|
|
1574
|
+
import_themes22.Flex,
|
|
1561
1575
|
{
|
|
1562
1576
|
direction: "column",
|
|
1563
1577
|
gap: "4",
|
|
@@ -1568,8 +1582,8 @@ function Navigation({
|
|
|
1568
1582
|
},
|
|
1569
1583
|
children: items == null ? void 0 : items.map((item) => {
|
|
1570
1584
|
const { key, title, icon, itemRender, onClick, children } = item;
|
|
1571
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1572
|
-
itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
1585
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_themes22.Flex, { direction: "column", onClick, children: [
|
|
1586
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_themes22.Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
|
|
1573
1587
|
icon,
|
|
1574
1588
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Typo, { variant: "subtitle", children: title })
|
|
1575
1589
|
] }),
|
|
@@ -1598,7 +1612,7 @@ function Navigation({
|
|
|
1598
1612
|
}
|
|
1599
1613
|
|
|
1600
1614
|
// src/molecules/date-picker/index.tsx
|
|
1601
|
-
var
|
|
1615
|
+
var import_react23 = require("react");
|
|
1602
1616
|
var RDP = __toESM(require("react-datepicker"), 1);
|
|
1603
1617
|
var import_react_datepicker = require("react-datepicker");
|
|
1604
1618
|
var import_locale = require("date-fns/locale");
|
|
@@ -1606,11 +1620,11 @@ var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
|
1606
1620
|
(0, import_react_datepicker.registerLocale)("ko", import_locale.ko);
|
|
1607
1621
|
(0, import_react_datepicker.setDefaultLocale)("ko");
|
|
1608
1622
|
var ReactDatePicker = RDP.default.default || RDP.default || RDP;
|
|
1609
|
-
var DatePicker = (0,
|
|
1623
|
+
var DatePicker = (0, import_react23.forwardRef)(
|
|
1610
1624
|
(props, ref) => {
|
|
1611
1625
|
const _a = props, { fullWidth } = _a, rest = __objRest(_a, ["fullWidth"]);
|
|
1612
1626
|
const fullWidthClassName = fullWidth ? "full-width" : "";
|
|
1613
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1627
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_themes22.Flex, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1614
1628
|
ReactDatePicker,
|
|
1615
1629
|
__spreadProps(__spreadValues({
|
|
1616
1630
|
dateFormat: "YYYY/MM/dd",
|
|
@@ -1641,9 +1655,9 @@ var renderCustomHeader = (props) => {
|
|
|
1641
1655
|
} = props;
|
|
1642
1656
|
const year = date ? date.getFullYear() : "-";
|
|
1643
1657
|
const month = date ? date.getMonth() + 1 : "-";
|
|
1644
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
1658
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_themes22.Flex, { align: "center", justify: "between", pb: "2", pl: "2", pr: "2", children: [
|
|
1645
1659
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1646
|
-
|
|
1660
|
+
import_themes18.IconButton,
|
|
1647
1661
|
{
|
|
1648
1662
|
disabled: prevMonthButtonDisabled,
|
|
1649
1663
|
onClick: decreaseMonth,
|
|
@@ -1652,7 +1666,7 @@ var renderCustomHeader = (props) => {
|
|
|
1652
1666
|
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_icons3.ChevronLeftIcon, {})
|
|
1653
1667
|
}
|
|
1654
1668
|
),
|
|
1655
|
-
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
1669
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_themes22.Flex, { gap: "3", children: [
|
|
1656
1670
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1657
1671
|
year,
|
|
1658
1672
|
"\uB144"
|
|
@@ -1663,7 +1677,7 @@ var renderCustomHeader = (props) => {
|
|
|
1663
1677
|
] })
|
|
1664
1678
|
] }),
|
|
1665
1679
|
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
1666
|
-
|
|
1680
|
+
import_themes18.IconButton,
|
|
1667
1681
|
{
|
|
1668
1682
|
disabled: nextMonthButtonDisabled,
|
|
1669
1683
|
onClick: increaseMonth,
|
|
@@ -1676,18 +1690,18 @@ var renderCustomHeader = (props) => {
|
|
|
1676
1690
|
};
|
|
1677
1691
|
|
|
1678
1692
|
// src/molecules/dot-navigation.tsx
|
|
1679
|
-
var
|
|
1693
|
+
var import_react24 = require("react");
|
|
1680
1694
|
var import_react_icons4 = require("@radix-ui/react-icons");
|
|
1681
1695
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1682
1696
|
function DotNavigation(props) {
|
|
1683
1697
|
const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } = props;
|
|
1684
|
-
const [currentDot, setCurrentDot] = (0,
|
|
1698
|
+
const [currentDot, setCurrentDot] = (0, import_react24.useState)(
|
|
1685
1699
|
() => {
|
|
1686
1700
|
var _a;
|
|
1687
1701
|
return (_a = defaultDotIndex != null ? defaultDotIndex : dotIndex) != null ? _a : 0;
|
|
1688
1702
|
}
|
|
1689
1703
|
);
|
|
1690
|
-
const onClickDot = (0,
|
|
1704
|
+
const onClickDot = (0, import_react24.useCallback)(
|
|
1691
1705
|
(i) => {
|
|
1692
1706
|
if (onClick) {
|
|
1693
1707
|
onClick(i);
|
|
@@ -1697,15 +1711,15 @@ function DotNavigation(props) {
|
|
|
1697
1711
|
},
|
|
1698
1712
|
[onClick]
|
|
1699
1713
|
);
|
|
1700
|
-
(0,
|
|
1714
|
+
(0, import_react24.useEffect)(() => {
|
|
1701
1715
|
onChangeDotIndex == null ? void 0 : onChangeDotIndex(currentDot);
|
|
1702
1716
|
}, [currentDot, onChangeDotIndex]);
|
|
1703
|
-
(0,
|
|
1717
|
+
(0, import_react24.useEffect)(() => {
|
|
1704
1718
|
if (typeof dotIndex === "undefined")
|
|
1705
1719
|
return;
|
|
1706
1720
|
setCurrentDot(dotIndex);
|
|
1707
1721
|
}, [dotIndex]);
|
|
1708
|
-
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1722
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_themes22.Flex, { children: dotCount ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {
|
|
1709
1723
|
const isSelected = currentDot === index;
|
|
1710
1724
|
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
1711
1725
|
import_react_icons4.DotFilledIcon,
|
|
@@ -1726,10 +1740,10 @@ function DotNavigation(props) {
|
|
|
1726
1740
|
}
|
|
1727
1741
|
|
|
1728
1742
|
// src/molecules/stepper.tsx
|
|
1729
|
-
var
|
|
1743
|
+
var import_react25 = require("react");
|
|
1730
1744
|
var import_themes51 = require("@radix-ui/themes");
|
|
1731
1745
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
1732
|
-
var StepContext = (0,
|
|
1746
|
+
var StepContext = (0, import_react25.createContext)({
|
|
1733
1747
|
active: false,
|
|
1734
1748
|
completed: false,
|
|
1735
1749
|
index: 0
|
|
@@ -1744,7 +1758,7 @@ function Root9(props) {
|
|
|
1744
1758
|
direction = "vertical"
|
|
1745
1759
|
} = props;
|
|
1746
1760
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1747
|
-
|
|
1761
|
+
import_themes22.Flex,
|
|
1748
1762
|
{
|
|
1749
1763
|
gap: "3",
|
|
1750
1764
|
style: {
|
|
@@ -1752,7 +1766,7 @@ function Root9(props) {
|
|
|
1752
1766
|
minWidth,
|
|
1753
1767
|
maxWidth
|
|
1754
1768
|
},
|
|
1755
|
-
children:
|
|
1769
|
+
children: import_react25.Children.map(children, (child, index) => {
|
|
1756
1770
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1757
1771
|
StepContext.Provider,
|
|
1758
1772
|
{
|
|
@@ -1776,7 +1790,7 @@ function Step(props) {
|
|
|
1776
1790
|
completed,
|
|
1777
1791
|
index,
|
|
1778
1792
|
direction = "vertical"
|
|
1779
|
-
} = (0,
|
|
1793
|
+
} = (0, import_react25.useContext)(StepContext);
|
|
1780
1794
|
const connector = index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
1781
1795
|
import_themes51.Separator,
|
|
1782
1796
|
{
|
|
@@ -1788,7 +1802,7 @@ function Step(props) {
|
|
|
1788
1802
|
}
|
|
1789
1803
|
}
|
|
1790
1804
|
) : null;
|
|
1791
|
-
const InnerStep = (0,
|
|
1805
|
+
const InnerStep = (0, import_react25.useMemo)(() => {
|
|
1792
1806
|
if (active) {
|
|
1793
1807
|
return ActiveStep;
|
|
1794
1808
|
}
|
|
@@ -1798,7 +1812,7 @@ function Step(props) {
|
|
|
1798
1812
|
return IncompleteStep;
|
|
1799
1813
|
}, [completed, active]);
|
|
1800
1814
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(
|
|
1801
|
-
|
|
1815
|
+
import_themes22.Flex,
|
|
1802
1816
|
{
|
|
1803
1817
|
align: "center",
|
|
1804
1818
|
direction: direction === "horizontal" ? "row" : "column",
|
|
@@ -1814,7 +1828,7 @@ function Step(props) {
|
|
|
1814
1828
|
}
|
|
1815
1829
|
function CompleteStep(props) {
|
|
1816
1830
|
const { Icon, children } = props;
|
|
1817
|
-
const { completed, active } = (0,
|
|
1831
|
+
const { completed, active } = (0, import_react25.useContext)(StepContext);
|
|
1818
1832
|
const background = "var(--accent-a4)";
|
|
1819
1833
|
const border = "1px solid var(--accent-7)";
|
|
1820
1834
|
const color = "var(--accent-contrast)";
|
|
@@ -1836,7 +1850,7 @@ function CompleteStep(props) {
|
|
|
1836
1850
|
}
|
|
1837
1851
|
function IncompleteStep(props) {
|
|
1838
1852
|
const { Icon, children } = props;
|
|
1839
|
-
const { completed, active, index } = (0,
|
|
1853
|
+
const { completed, active, index } = (0, import_react25.useContext)(StepContext);
|
|
1840
1854
|
const background = "var(--gray-5)";
|
|
1841
1855
|
const color = "var(--gray-a11)";
|
|
1842
1856
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
|
|
@@ -1856,7 +1870,7 @@ function IncompleteStep(props) {
|
|
|
1856
1870
|
}
|
|
1857
1871
|
function ActiveStep(props) {
|
|
1858
1872
|
const { Icon, children } = props;
|
|
1859
|
-
const { completed, active, index } = (0,
|
|
1873
|
+
const { completed, active, index } = (0, import_react25.useContext)(StepContext);
|
|
1860
1874
|
const background = "var(--accent-10)";
|
|
1861
1875
|
const color = "var(--accent-contrast)";
|
|
1862
1876
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_jsx_runtime32.Fragment, { children: [
|
|
@@ -1878,7 +1892,7 @@ var Stepper = {
|
|
|
1878
1892
|
};
|
|
1879
1893
|
|
|
1880
1894
|
// src/molecules/tag-selector.tsx
|
|
1881
|
-
var
|
|
1895
|
+
var import_react26 = require("react");
|
|
1882
1896
|
var import_react_icons5 = require("@radix-ui/react-icons");
|
|
1883
1897
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
1884
1898
|
var OPTION_HEIGHT = 32;
|
|
@@ -1896,22 +1910,22 @@ function TagSelector(props) {
|
|
|
1896
1910
|
readOnly,
|
|
1897
1911
|
error
|
|
1898
1912
|
} = props;
|
|
1899
|
-
const [_selected, _setSelected] = (0,
|
|
1913
|
+
const [_selected, _setSelected] = (0, import_react26.useState)(props.selected || []);
|
|
1900
1914
|
const selected = props.selected || _selected;
|
|
1901
1915
|
const setSelected = props.onChange || _setSelected;
|
|
1902
|
-
const [value, setValue] = (0,
|
|
1903
|
-
const [focusIndex, setFocusIndex] = (0,
|
|
1904
|
-
const [open, setOpen] = (0,
|
|
1905
|
-
const [focus, setFocus] = (0,
|
|
1906
|
-
const fieldRef = (0,
|
|
1907
|
-
const scrollRef = (0,
|
|
1908
|
-
const closeRef = (0,
|
|
1909
|
-
const onFocus = (0,
|
|
1916
|
+
const [value, setValue] = (0, import_react26.useState)("");
|
|
1917
|
+
const [focusIndex, setFocusIndex] = (0, import_react26.useState)(null);
|
|
1918
|
+
const [open, setOpen] = (0, import_react26.useState)(false);
|
|
1919
|
+
const [focus, setFocus] = (0, import_react26.useState)(false);
|
|
1920
|
+
const fieldRef = (0, import_react26.useRef)(null);
|
|
1921
|
+
const scrollRef = (0, import_react26.useRef)(null);
|
|
1922
|
+
const closeRef = (0, import_react26.useRef)();
|
|
1923
|
+
const onFocus = (0, import_react26.useCallback)(() => {
|
|
1910
1924
|
clearTimeout(closeRef.current);
|
|
1911
1925
|
setFocus(true);
|
|
1912
1926
|
setOpen(true);
|
|
1913
1927
|
}, []);
|
|
1914
|
-
const onBlur = (0,
|
|
1928
|
+
const onBlur = (0, import_react26.useCallback)(() => {
|
|
1915
1929
|
closeRef.current = setTimeout(() => {
|
|
1916
1930
|
setFocus(false);
|
|
1917
1931
|
setOpen(false);
|
|
@@ -1920,18 +1934,18 @@ function TagSelector(props) {
|
|
|
1920
1934
|
}, 100);
|
|
1921
1935
|
}, 300);
|
|
1922
1936
|
}, []);
|
|
1923
|
-
const onChangeValue = (0,
|
|
1937
|
+
const onChangeValue = (0, import_react26.useCallback)(
|
|
1924
1938
|
(e) => {
|
|
1925
1939
|
setValue(e.target.value);
|
|
1926
1940
|
},
|
|
1927
1941
|
[]
|
|
1928
1942
|
);
|
|
1929
|
-
const filteredOptions = (0,
|
|
1943
|
+
const filteredOptions = (0, import_react26.useMemo)(() => {
|
|
1930
1944
|
return options.filter((option) => {
|
|
1931
1945
|
return option.name.includes(value);
|
|
1932
1946
|
});
|
|
1933
1947
|
}, [options, value]);
|
|
1934
|
-
const selectedItem = (0,
|
|
1948
|
+
const selectedItem = (0, import_react26.useMemo)(() => {
|
|
1935
1949
|
const result = [];
|
|
1936
1950
|
selected.forEach((id) => {
|
|
1937
1951
|
const maybeItem = options.find((option) => option.id === id);
|
|
@@ -1940,13 +1954,13 @@ function TagSelector(props) {
|
|
|
1940
1954
|
});
|
|
1941
1955
|
return result;
|
|
1942
1956
|
}, [options, selected]);
|
|
1943
|
-
const onDelete = (0,
|
|
1957
|
+
const onDelete = (0, import_react26.useCallback)(
|
|
1944
1958
|
(id) => {
|
|
1945
1959
|
setSelected(selected.filter((el) => el !== id));
|
|
1946
1960
|
},
|
|
1947
1961
|
[selected, setSelected]
|
|
1948
1962
|
);
|
|
1949
|
-
const onSelect = (0,
|
|
1963
|
+
const onSelect = (0, import_react26.useCallback)(
|
|
1950
1964
|
(id) => {
|
|
1951
1965
|
if (maxCount && selected.length + 1 > maxCount)
|
|
1952
1966
|
return;
|
|
@@ -1954,7 +1968,7 @@ function TagSelector(props) {
|
|
|
1954
1968
|
},
|
|
1955
1969
|
[maxCount, selected, setSelected]
|
|
1956
1970
|
);
|
|
1957
|
-
const toggleItem = (0,
|
|
1971
|
+
const toggleItem = (0, import_react26.useCallback)(
|
|
1958
1972
|
(id) => {
|
|
1959
1973
|
if (selected.includes(id)) {
|
|
1960
1974
|
onDelete(id);
|
|
@@ -1964,7 +1978,7 @@ function TagSelector(props) {
|
|
|
1964
1978
|
},
|
|
1965
1979
|
[onDelete, onSelect, selected]
|
|
1966
1980
|
);
|
|
1967
|
-
const setScroll = (0,
|
|
1981
|
+
const setScroll = (0, import_react26.useCallback)((index) => {
|
|
1968
1982
|
if (scrollRef.current) {
|
|
1969
1983
|
const scrollTop = scrollRef.current.scrollTop;
|
|
1970
1984
|
const clientHeight = scrollRef.current.clientHeight;
|
|
@@ -1976,7 +1990,7 @@ function TagSelector(props) {
|
|
|
1976
1990
|
}
|
|
1977
1991
|
}
|
|
1978
1992
|
}, []);
|
|
1979
|
-
const handleKeyDown = (0,
|
|
1993
|
+
const handleKeyDown = (0, import_react26.useCallback)(
|
|
1980
1994
|
(e) => {
|
|
1981
1995
|
var _a;
|
|
1982
1996
|
const key = e.key;
|
|
@@ -2028,7 +2042,7 @@ function TagSelector(props) {
|
|
|
2028
2042
|
selected
|
|
2029
2043
|
]
|
|
2030
2044
|
);
|
|
2031
|
-
const placeholderVisible = (0,
|
|
2045
|
+
const placeholderVisible = (0, import_react26.useMemo)(() => {
|
|
2032
2046
|
if (selectedItem.length)
|
|
2033
2047
|
return false;
|
|
2034
2048
|
if (value)
|
|
@@ -2037,13 +2051,13 @@ function TagSelector(props) {
|
|
|
2037
2051
|
return false;
|
|
2038
2052
|
return true;
|
|
2039
2053
|
}, [focus, selectedItem.length, value]);
|
|
2040
|
-
(0,
|
|
2054
|
+
(0, import_react26.useEffect)(() => {
|
|
2041
2055
|
setFocusIndex(null);
|
|
2042
2056
|
}, [open]);
|
|
2043
|
-
(0,
|
|
2057
|
+
(0, import_react26.useEffect)(() => {
|
|
2044
2058
|
setFocusIndex(0);
|
|
2045
2059
|
}, [filteredOptions]);
|
|
2046
|
-
const badgeSize = (0,
|
|
2060
|
+
const badgeSize = (0, import_react26.useMemo)(() => {
|
|
2047
2061
|
switch (size) {
|
|
2048
2062
|
case "large":
|
|
2049
2063
|
return "large";
|
|
@@ -2053,7 +2067,7 @@ function TagSelector(props) {
|
|
|
2053
2067
|
return "small";
|
|
2054
2068
|
}
|
|
2055
2069
|
}, [size]);
|
|
2056
|
-
const placeholderVariant = (0,
|
|
2070
|
+
const placeholderVariant = (0, import_react26.useMemo)(() => {
|
|
2057
2071
|
switch (size) {
|
|
2058
2072
|
case "large":
|
|
2059
2073
|
return "subtitle";
|
|
@@ -2065,12 +2079,12 @@ function TagSelector(props) {
|
|
|
2065
2079
|
const focusClassName = focus ? " focused" : "";
|
|
2066
2080
|
const readOnlyClassName = readOnly ? " read-only" : "";
|
|
2067
2081
|
const errorClassName = error ? " error" : "";
|
|
2068
|
-
const readonlyContent = /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2082
|
+
const readonlyContent = /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_themes22.Flex, { gap: "1", children: selectedItem.map((item) => {
|
|
2069
2083
|
return tagRender ? tagRender(item) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Badge, { size: badgeSize, children: item.name }, item.id);
|
|
2070
2084
|
}) });
|
|
2071
2085
|
const editContent = /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_jsx_runtime33.Fragment, { children: [
|
|
2072
2086
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2073
|
-
|
|
2087
|
+
import_themes22.Flex,
|
|
2074
2088
|
{
|
|
2075
2089
|
align: "center",
|
|
2076
2090
|
gap: "1",
|
|
@@ -2112,7 +2126,7 @@ function TagSelector(props) {
|
|
|
2112
2126
|
] });
|
|
2113
2127
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_themes29.Popover.Root, { open: Boolean(filteredOptions.length) && open, children: [
|
|
2114
2128
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_themes29.Popover.Trigger, { style: { position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2115
|
-
|
|
2129
|
+
import_themes23.Grid,
|
|
2116
2130
|
{
|
|
2117
2131
|
align: "center",
|
|
2118
2132
|
className: `tag-selector ${size} ${focusClassName}${readOnlyClassName}${errorClassName}`,
|
|
@@ -2143,7 +2157,7 @@ function TagSelector(props) {
|
|
|
2143
2157
|
scrollbars: "vertical",
|
|
2144
2158
|
style: { height: OPTION_HEIGHT * 8 },
|
|
2145
2159
|
type: "auto",
|
|
2146
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2160
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_themes22.Flex, { direction: "column", children: filteredOptions.map((item, i) => {
|
|
2147
2161
|
const isSelected = Boolean(
|
|
2148
2162
|
selected.find((el) => el === item.id)
|
|
2149
2163
|
);
|
|
@@ -2168,7 +2182,7 @@ function TagSelector(props) {
|
|
|
2168
2182
|
boxShadow: "none"
|
|
2169
2183
|
},
|
|
2170
2184
|
variant: isSelected ? "soft" : "outline",
|
|
2171
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2185
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_themes22.Flex, { justify: "between", width: "100%", children: [
|
|
2172
2186
|
item.name,
|
|
2173
2187
|
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react_icons3.CheckIcon, {}) : null
|
|
2174
2188
|
] })
|
|
@@ -2212,7 +2226,7 @@ function LearningPost(props) {
|
|
|
2212
2226
|
scaling: "110%",
|
|
2213
2227
|
style: {},
|
|
2214
2228
|
children: html ? /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2215
|
-
|
|
2229
|
+
import_themes23.Grid,
|
|
2216
2230
|
{
|
|
2217
2231
|
columns: { initial: "1", md: "130px 1fr 130px" },
|
|
2218
2232
|
gap: { initial: "2", md: "5" },
|
|
@@ -2225,7 +2239,7 @@ function LearningPost(props) {
|
|
|
2225
2239
|
children: [
|
|
2226
2240
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", {}),
|
|
2227
2241
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2228
|
-
|
|
2242
|
+
import_themes22.Flex,
|
|
2229
2243
|
{
|
|
2230
2244
|
align: "center",
|
|
2231
2245
|
direction: "column",
|
|
@@ -2234,9 +2248,9 @@ function LearningPost(props) {
|
|
|
2234
2248
|
overflow: "hidden",
|
|
2235
2249
|
width: "100%",
|
|
2236
2250
|
children: [
|
|
2237
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2251
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_themes23.Grid, { align: "start", columns: { initial: "1", sm: "2" }, gap: "2", children: [
|
|
2238
2252
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2239
|
-
|
|
2253
|
+
import_themes23.Grid,
|
|
2240
2254
|
{
|
|
2241
2255
|
gap: "3",
|
|
2242
2256
|
mb: { initial: "4", sm: "0" },
|
|
@@ -2255,7 +2269,7 @@ function LearningPost(props) {
|
|
|
2255
2269
|
}
|
|
2256
2270
|
),
|
|
2257
2271
|
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Typo, { children: metaDescription }),
|
|
2258
|
-
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2272
|
+
/* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_themes22.Flex, { gap: "1", wrap: "wrap", children: tags == null ? void 0 : tags.map((el) => {
|
|
2259
2273
|
var _a;
|
|
2260
2274
|
if ((_a = el.name) == null ? void 0 : _a.startsWith("filter"))
|
|
2261
2275
|
return;
|
|
@@ -2291,7 +2305,7 @@ function LearningPost(props) {
|
|
|
2291
2305
|
]
|
|
2292
2306
|
}
|
|
2293
2307
|
) : /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
|
|
2294
|
-
|
|
2308
|
+
import_themes22.Flex,
|
|
2295
2309
|
{
|
|
2296
2310
|
align: "center",
|
|
2297
2311
|
direction: "column",
|
|
@@ -2337,7 +2351,7 @@ function CodeSize3(props) {
|
|
|
2337
2351
|
);
|
|
2338
2352
|
}
|
|
2339
2353
|
function ForceRefresh() {
|
|
2340
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2354
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_themes22.Flex, { direction: "column", gap: "2", children: [
|
|
2341
2355
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Typo, { children: [
|
|
2342
2356
|
"1. \uD06C\uB86C \uBE0C\uB77C\uC6B0\uC800 \uC624\uB978\uCABD \uC0C1\uB2E8\uC758",
|
|
2343
2357
|
" ",
|
|
@@ -2356,7 +2370,7 @@ function ForceRefresh() {
|
|
|
2356
2370
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(CodeSize3, { children: "\uAC1C\uBC1C\uC790 \uB3C4\uAD6C" }),
|
|
2357
2371
|
" \uBA54\uB274\uB97C \uC120\uD0DD\uD569\uB2C8\uB2E4. (\uB610\uB294 \uC544\uB798\uC758 \uB2E8\uCD95\uD0A4\uB97C \uC0AC\uC6A9 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.)"
|
|
2358
2372
|
] }),
|
|
2359
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2373
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", p: "0", pl: "3", children: [
|
|
2360
2374
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(Typo, { children: [
|
|
2361
2375
|
"a. \uC708\uB3C4\uC6B0 \uB2E8\uCD95\uD0A4: ",
|
|
2362
2376
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes26.Kbd, { children: "F12" })
|
|
@@ -2388,7 +2402,7 @@ function ForceRefresh() {
|
|
|
2388
2402
|
}
|
|
2389
2403
|
|
|
2390
2404
|
// src/molecules/date-picker/date-picker-button.tsx
|
|
2391
|
-
var
|
|
2405
|
+
var import_react27 = require("react");
|
|
2392
2406
|
var import_date_fns = require("date-fns");
|
|
2393
2407
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
2394
2408
|
function DatePickerButton(props) {
|
|
@@ -2400,7 +2414,7 @@ function DatePickerButton(props) {
|
|
|
2400
2414
|
width: "100%"
|
|
2401
2415
|
};
|
|
2402
2416
|
const buttonProps = { size, color, style, variant };
|
|
2403
|
-
const selectFormat = (0,
|
|
2417
|
+
const selectFormat = (0, import_react27.useMemo)(() => {
|
|
2404
2418
|
if (formatProps)
|
|
2405
2419
|
return formatProps;
|
|
2406
2420
|
return (date) => date ? (0, import_date_fns.format)(date, "yyyy\uB144 MM\uC6D4 dd\uC77C") : placeholder;
|
|
@@ -2408,7 +2422,7 @@ function DatePickerButton(props) {
|
|
|
2408
2422
|
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes6.Box, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2409
2423
|
DatePicker,
|
|
2410
2424
|
__spreadProps(__spreadValues({
|
|
2411
|
-
customInput: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Button, __spreadProps(__spreadValues({ type: "button" }, buttonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
|
|
2425
|
+
customInput: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Button, __spreadProps(__spreadValues({ type: "button" }, buttonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "between", width: "100%", children: [
|
|
2412
2426
|
rest.selected ? selectFormat(rest.selected) : placeholder,
|
|
2413
2427
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react_icons3.CalendarIcon, {})
|
|
2414
2428
|
] }) })),
|
|
@@ -2420,7 +2434,7 @@ function DatePickerButton(props) {
|
|
|
2420
2434
|
}
|
|
2421
2435
|
|
|
2422
2436
|
// src/molecules/time-select.tsx
|
|
2423
|
-
var
|
|
2437
|
+
var import_react28 = require("react");
|
|
2424
2438
|
|
|
2425
2439
|
// src/utils/get-cell-align.ts
|
|
2426
2440
|
var getCellAlign = (type) => {
|
|
@@ -2499,22 +2513,22 @@ function TimeSelect(_a) {
|
|
|
2499
2513
|
} = _b, rest = __objRest(_b, [
|
|
2500
2514
|
"value"
|
|
2501
2515
|
]);
|
|
2502
|
-
const timeOptions = (0,
|
|
2516
|
+
const timeOptions = (0, import_react28.useMemo)(() => {
|
|
2503
2517
|
return getTimeOptions();
|
|
2504
2518
|
}, []);
|
|
2505
2519
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Select.Root, __spreadProps(__spreadValues({ value }, rest), { children: [
|
|
2506
|
-
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2520
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes22.Flex, { direction: "column", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Select.Trigger, { placeholder: "- ", style: { minWidth: "100px" } }) }),
|
|
2507
2521
|
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Select.Content, { children: timeOptions.map((time) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Select.Item, { value: time, children: time }, time)) })
|
|
2508
2522
|
] }));
|
|
2509
2523
|
}
|
|
2510
2524
|
|
|
2511
2525
|
// src/molecules/radio-button-card.tsx
|
|
2512
|
-
var
|
|
2526
|
+
var import_react29 = require("react");
|
|
2513
2527
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2514
|
-
var RadioCardContext = (0,
|
|
2528
|
+
var RadioCardContext = (0, import_react29.createContext)({});
|
|
2515
2529
|
function Root10(props) {
|
|
2516
|
-
const [value, setValue] = (0,
|
|
2517
|
-
const onValueChange = (0,
|
|
2530
|
+
const [value, setValue] = (0, import_react29.useState)(props.value || props.defaultValue);
|
|
2531
|
+
const onValueChange = (0, import_react29.useCallback)(
|
|
2518
2532
|
(v) => {
|
|
2519
2533
|
var _a;
|
|
2520
2534
|
setValue(v);
|
|
@@ -2537,16 +2551,16 @@ function Item(_a) {
|
|
|
2537
2551
|
} = _b, itemRest = __objRest(_b, [
|
|
2538
2552
|
"children"
|
|
2539
2553
|
]);
|
|
2540
|
-
const _a2 = (0,
|
|
2554
|
+
const _a2 = (0, import_react29.useContext)(RadioCardContext), {
|
|
2541
2555
|
value,
|
|
2542
2556
|
justify,
|
|
2543
|
-
RadioWrapper =
|
|
2557
|
+
RadioWrapper = import_react29.Fragment
|
|
2544
2558
|
} = _a2, rootRest = __objRest(_a2, [
|
|
2545
2559
|
"value",
|
|
2546
2560
|
"justify",
|
|
2547
2561
|
"RadioWrapper"
|
|
2548
2562
|
]);
|
|
2549
|
-
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_themes33.RadioCards.Item, __spreadProps(__spreadValues({}, itemRest), { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
2563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_themes33.RadioCards.Item, __spreadProps(__spreadValues({}, itemRest), { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_themes22.Flex, { align: "center", justify: justify || "between", width: "100%", children: [
|
|
2550
2564
|
children,
|
|
2551
2565
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(RadioWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2552
2566
|
import_themes32.Radio,
|
|
@@ -2604,12 +2618,12 @@ var import_themes53 = require("@radix-ui/themes");
|
|
|
2604
2618
|
|
|
2605
2619
|
// dist/chunk-52MVZ6AN.js
|
|
2606
2620
|
var import_themes54 = require("@radix-ui/themes");
|
|
2607
|
-
var
|
|
2621
|
+
var import_react30 = require("react");
|
|
2608
2622
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2609
|
-
var Typo2 = (0,
|
|
2623
|
+
var Typo2 = (0, import_react30.forwardRef)(
|
|
2610
2624
|
(props, ref) => {
|
|
2611
2625
|
const _a = props, { size, variant, children } = _a, rest = __objRest2(_a, ["size", "variant", "children"]);
|
|
2612
|
-
const radixSize = (0,
|
|
2626
|
+
const radixSize = (0, import_react30.useMemo)(() => {
|
|
2613
2627
|
if (size !== void 0)
|
|
2614
2628
|
return size;
|
|
2615
2629
|
switch (variant) {
|
|
@@ -2843,7 +2857,7 @@ var EchartDefaultProps = {
|
|
|
2843
2857
|
};
|
|
2844
2858
|
|
|
2845
2859
|
// src/app/platform/userInfos/coaching-customer-info/small.tsx
|
|
2846
|
-
var
|
|
2860
|
+
var import_react31 = require("react");
|
|
2847
2861
|
var import_biz_utils = require("@tipp/biz-utils");
|
|
2848
2862
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2849
2863
|
function CoachingCustomerInfoSmall({
|
|
@@ -2851,20 +2865,20 @@ function CoachingCustomerInfoSmall({
|
|
|
2851
2865
|
session,
|
|
2852
2866
|
children
|
|
2853
2867
|
}) {
|
|
2854
|
-
const badgeColor = (0,
|
|
2868
|
+
const badgeColor = (0, import_react31.useMemo)(() => {
|
|
2855
2869
|
return (0, import_biz_utils.getColorFromProjectState)(session == null ? void 0 : session.state);
|
|
2856
2870
|
}, [session == null ? void 0 : session.state]);
|
|
2857
|
-
const sessionText = (0,
|
|
2871
|
+
const sessionText = (0, import_react31.useMemo)(() => {
|
|
2858
2872
|
return (0, import_biz_utils.getTextFromProjectState)(session == null ? void 0 : session.state);
|
|
2859
2873
|
}, [session == null ? void 0 : session.state]);
|
|
2860
2874
|
return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
2861
|
-
|
|
2875
|
+
import_themes22.Flex,
|
|
2862
2876
|
{
|
|
2863
2877
|
direction: { initial: "column", xs: "row" },
|
|
2864
2878
|
gap: "3",
|
|
2865
2879
|
justify: "between",
|
|
2866
2880
|
children: [
|
|
2867
|
-
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
|
|
2881
|
+
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_themes23.Grid, { align: "center", columns: "auto auto 1fr", gapX: "3", children: [
|
|
2868
2882
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Heading2, { variant: "heading3", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
2869
2883
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Typo, { color: "gray", truncate: true, variant: "body", children: customer == null ? void 0 : customer.company }),
|
|
2870
2884
|
/* @__PURE__ */ (0, import_jsx_runtime43.jsx)(Badge, { color: badgeColor, children: sessionText })
|
|
@@ -2876,7 +2890,7 @@ function CoachingCustomerInfoSmall({
|
|
|
2876
2890
|
}
|
|
2877
2891
|
|
|
2878
2892
|
// src/app/platform/userInfos/coaching-customer-info/medium.tsx
|
|
2879
|
-
var
|
|
2893
|
+
var import_react32 = require("react");
|
|
2880
2894
|
var import_biz_utils2 = require("@tipp/biz-utils");
|
|
2881
2895
|
|
|
2882
2896
|
// src/app/platform/userInfos/utils.tsx
|
|
@@ -2954,15 +2968,15 @@ function CoachingCustomerInfoMedium({
|
|
|
2954
2968
|
session,
|
|
2955
2969
|
children
|
|
2956
2970
|
}) {
|
|
2957
|
-
const badgeColor = (0,
|
|
2971
|
+
const badgeColor = (0, import_react32.useMemo)(() => {
|
|
2958
2972
|
return (0, import_biz_utils2.getColorFromProjectState)(session == null ? void 0 : session.state);
|
|
2959
2973
|
}, [session == null ? void 0 : session.state]);
|
|
2960
|
-
const sessionText = (0,
|
|
2974
|
+
const sessionText = (0, import_react32.useMemo)(() => {
|
|
2961
2975
|
return (0, import_biz_utils2.getTextFromProjectState)(session == null ? void 0 : session.state);
|
|
2962
2976
|
}, [session == null ? void 0 : session.state]);
|
|
2963
|
-
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
2977
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
2964
2978
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_themes6.Box, { children: [
|
|
2965
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
2979
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
2966
2980
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
2967
2981
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Badge, { color: badgeColor, children: sessionText })
|
|
2968
2982
|
] }),
|
|
@@ -2970,18 +2984,18 @@ function CoachingCustomerInfoMedium({
|
|
|
2970
2984
|
] }),
|
|
2971
2985
|
children,
|
|
2972
2986
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes15.DataList.Root, { orientation: "vertical", children: sessionList.map((el) => renderDataListItem(el, session)) }) }),
|
|
2973
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
2987
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", children: [
|
|
2974
2988
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Heading2, { variant: "heading5", children: "\uACE0\uAC1D \uC815\uBCF4" }),
|
|
2975
2989
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes39.Separator, { size: "4" })
|
|
2976
2990
|
] }),
|
|
2977
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
2991
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes22.Flex, { direction: "column", gap: "4", children: infoList.map((el) => {
|
|
2978
2992
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Typo, { children: renderItem(el, customer) }, el.label);
|
|
2979
2993
|
}) })
|
|
2980
2994
|
] });
|
|
2981
2995
|
}
|
|
2982
2996
|
|
|
2983
2997
|
// src/app/platform/userInfos/coaching-customer-info/large.tsx
|
|
2984
|
-
var
|
|
2998
|
+
var import_react33 = require("react");
|
|
2985
2999
|
var import_biz_utils3 = require("@tipp/biz-utils");
|
|
2986
3000
|
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
2987
3001
|
function CoachingCustomerInfoLarge({
|
|
@@ -2989,15 +3003,15 @@ function CoachingCustomerInfoLarge({
|
|
|
2989
3003
|
session,
|
|
2990
3004
|
children
|
|
2991
3005
|
}) {
|
|
2992
|
-
const badgeColor = (0,
|
|
3006
|
+
const badgeColor = (0, import_react33.useMemo)(() => {
|
|
2993
3007
|
return (0, import_biz_utils3.getColorFromProjectState)(session == null ? void 0 : session.state);
|
|
2994
3008
|
}, [session == null ? void 0 : session.state]);
|
|
2995
|
-
const sessionText = (0,
|
|
3009
|
+
const sessionText = (0, import_react33.useMemo)(() => {
|
|
2996
3010
|
return (0, import_biz_utils3.getTextFromProjectState)(session == null ? void 0 : session.state);
|
|
2997
3011
|
}, [session == null ? void 0 : session.state]);
|
|
2998
|
-
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
3012
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
2999
3013
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_themes6.Box, { children: [
|
|
3000
|
-
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
|
|
3014
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_themes22.Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
3001
3015
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Heading2, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
3002
3016
|
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)(Badge, { color: badgeColor, children: sessionText })
|
|
3003
3017
|
] }),
|
|
@@ -3021,7 +3035,7 @@ function CoachingCustomerInfo(props) {
|
|
|
3021
3035
|
}
|
|
3022
3036
|
|
|
3023
3037
|
// src/app/platform/goal-manage-card-read.tsx
|
|
3024
|
-
var
|
|
3038
|
+
var import_react34 = require("react");
|
|
3025
3039
|
var import_date_fns3 = require("date-fns");
|
|
3026
3040
|
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
3027
3041
|
function GoalManageCardRead(props) {
|
|
@@ -3036,12 +3050,12 @@ function GoalManageCardRead(props) {
|
|
|
3036
3050
|
defaultOpen,
|
|
3037
3051
|
onCompleteChange
|
|
3038
3052
|
} = props;
|
|
3039
|
-
const [open, setOpen] = (0,
|
|
3040
|
-
const onClickOpen = (0,
|
|
3053
|
+
const [open, setOpen] = (0, import_react34.useState)(Boolean(defaultOpen));
|
|
3054
|
+
const onClickOpen = (0, import_react34.useCallback)(() => {
|
|
3041
3055
|
setOpen((p) => !p);
|
|
3042
3056
|
}, []);
|
|
3043
3057
|
const icon = open ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react_icons3.ChevronUpIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react_icons3.ChevronDownIcon, {});
|
|
3044
|
-
const status = (0,
|
|
3058
|
+
const status = (0, import_react34.useMemo)(() => {
|
|
3045
3059
|
if (completed)
|
|
3046
3060
|
return;
|
|
3047
3061
|
if (!dueDate)
|
|
@@ -3050,19 +3064,19 @@ function GoalManageCardRead(props) {
|
|
|
3050
3064
|
return "\uBBF8\uB2EC\uC131";
|
|
3051
3065
|
return "\uC9C4\uD589 \uC911";
|
|
3052
3066
|
}, [completed, dueDate]);
|
|
3053
|
-
const statusColor = (0,
|
|
3067
|
+
const statusColor = (0, import_react34.useMemo)(() => {
|
|
3054
3068
|
if (status === "\uC9C4\uD589 \uC911")
|
|
3055
3069
|
return "success";
|
|
3056
3070
|
if (status === "\uBBF8\uB2EC\uC131")
|
|
3057
3071
|
return "error";
|
|
3058
3072
|
}, [status]);
|
|
3059
|
-
const renderSubTitle = (0,
|
|
3073
|
+
const renderSubTitle = (0, import_react34.useCallback)((subTitle) => {
|
|
3060
3074
|
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Heading2, { mb: "2", variant: "heading5", children: subTitle });
|
|
3061
3075
|
}, []);
|
|
3062
|
-
const renderSubContent = (0,
|
|
3076
|
+
const renderSubContent = (0, import_react34.useCallback)((content) => {
|
|
3063
3077
|
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Typo, { as: "p", color: "gray", children: content });
|
|
3064
3078
|
}, []);
|
|
3065
|
-
const renderCompleteButton = (0,
|
|
3079
|
+
const renderCompleteButton = (0, import_react34.useCallback)(() => {
|
|
3066
3080
|
if (completed) {
|
|
3067
3081
|
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_themes29.Popover.Root, { children: [
|
|
3068
3082
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes29.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Button, { size: "small", children: [
|
|
@@ -3071,7 +3085,7 @@ function GoalManageCardRead(props) {
|
|
|
3071
3085
|
] }) }),
|
|
3072
3086
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_themes29.Popover.Content, { children: [
|
|
3073
3087
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Typo, { color: "gray", children: "\uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?" }),
|
|
3074
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
3088
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: "3", children: [
|
|
3075
3089
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Button, { color: "gray", size: "small", variant: "outline", children: "\uC544\uB2C8\uC694" }) }),
|
|
3076
3090
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes29.Popover.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Button, { onClick: props.onClickComplete, size: "small", children: "\uC608" }) })
|
|
3077
3091
|
] })
|
|
@@ -3088,11 +3102,11 @@ function GoalManageCardRead(props) {
|
|
|
3088
3102
|
}
|
|
3089
3103
|
);
|
|
3090
3104
|
}, [completed, onCompleteChange, props.onClickComplete]);
|
|
3091
|
-
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
3092
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3105
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Card, { children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gapX: "3", children: [
|
|
3106
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes18.IconButton, { onClick: onClickOpen, variant: "ghost", children: icon }),
|
|
3093
3107
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
3094
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
3095
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
3108
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_themes22.Flex, { align: "center", gridColumnStart: "2", justify: "between", mt: "2", children: [
|
|
3109
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_themes22.Flex, { align: "center", gap: "3", children: [
|
|
3096
3110
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Badge, { color: statusColor, children: status }),
|
|
3097
3111
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Typo, { color: "gray", children: dueDate ? (0, import_date_fns3.format)(dueDate, "yyyy\uB144 MM\uC6D4 dd\uC77C") : null })
|
|
3098
3112
|
] }),
|
|
@@ -3108,7 +3122,7 @@ function GoalManageCardRead(props) {
|
|
|
3108
3122
|
}
|
|
3109
3123
|
) : null,
|
|
3110
3124
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_themes6.Box, { gridColumnStart: "2", p: "0", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Collapse, { open, children: [
|
|
3111
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
3125
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
3112
3126
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_themes6.Box, { children: [
|
|
3113
3127
|
renderSubTitle(
|
|
3114
3128
|
"\uD574\uB2F9 \uBAA9\uD45C\uB97C \uB2EC\uC131\uD558\uBA74, \uC544\uB798\uC640 \uAC19\uC740 \uACB0\uACFC\uB97C \uC5BB\uC744 \uC218 \uC788\uC2B5\uB2C8\uB2E4"
|
|
@@ -3120,7 +3134,7 @@ function GoalManageCardRead(props) {
|
|
|
3120
3134
|
renderSubContent(huddle)
|
|
3121
3135
|
] })
|
|
3122
3136
|
] }),
|
|
3123
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
3137
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "end", mt: "3", children: [
|
|
3124
3138
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
3125
3139
|
Button,
|
|
3126
3140
|
{
|
|
@@ -3144,7 +3158,7 @@ function GoalManageCardRead(props) {
|
|
|
3144
3158
|
}
|
|
3145
3159
|
|
|
3146
3160
|
// src/app/platform/goal-manage-card-edit.tsx
|
|
3147
|
-
var
|
|
3161
|
+
var import_react35 = require("react");
|
|
3148
3162
|
var import_date_fns4 = require("date-fns");
|
|
3149
3163
|
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
3150
3164
|
var initialValues = {
|
|
@@ -3157,8 +3171,8 @@ var dummyFn = () => {
|
|
|
3157
3171
|
};
|
|
3158
3172
|
function GoalManageCardEdit(props) {
|
|
3159
3173
|
const { defaultValues, errors } = props;
|
|
3160
|
-
const [values, setValues] = (0,
|
|
3161
|
-
const onChange = (0,
|
|
3174
|
+
const [values, setValues] = (0, import_react35.useState)(defaultValues || initialValues);
|
|
3175
|
+
const onChange = (0, import_react35.useCallback)(
|
|
3162
3176
|
(v) => {
|
|
3163
3177
|
var _a;
|
|
3164
3178
|
setValues((prev) => __spreadValues(__spreadValues({}, prev), v));
|
|
@@ -3166,17 +3180,17 @@ function GoalManageCardEdit(props) {
|
|
|
3166
3180
|
},
|
|
3167
3181
|
[props]
|
|
3168
3182
|
);
|
|
3169
|
-
const onClickInit = (0,
|
|
3183
|
+
const onClickInit = (0, import_react35.useCallback)(() => {
|
|
3170
3184
|
var _a;
|
|
3171
3185
|
setValues(initialValues);
|
|
3172
3186
|
(_a = props.onChange) == null ? void 0 : _a.call(props, defaultValues || initialValues);
|
|
3173
3187
|
}, [defaultValues, props]);
|
|
3174
|
-
const onClickSubmit = (0,
|
|
3188
|
+
const onClickSubmit = (0, import_react35.useCallback)(() => {
|
|
3175
3189
|
var _a;
|
|
3176
3190
|
(_a = props.onSubmit) == null ? void 0 : _a.call(props, values);
|
|
3177
3191
|
}, [props, values]);
|
|
3178
3192
|
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Card, { style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Form.Root, { onSubmit: dummyFn, children: [
|
|
3179
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
3193
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
3180
3194
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Form.Field, { name: "title", children: [
|
|
3181
3195
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Form.Label, { children: "\uC774\uBC88 \uCF54\uCE6D\uC758 \uBAA9\uD45C\uB294 \uC544\uB798\uC640 \uAC19\uC2B5\uB2C8\uB2E4" }),
|
|
3182
3196
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
@@ -3242,7 +3256,7 @@ function GoalManageCardEdit(props) {
|
|
|
3242
3256
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.dueDate), children: errors == null ? void 0 : errors.dueDate })
|
|
3243
3257
|
] })
|
|
3244
3258
|
] }),
|
|
3245
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
3259
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", width: "100%", children: [
|
|
3246
3260
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3247
3261
|
Button,
|
|
3248
3262
|
{
|
|
@@ -3260,11 +3274,11 @@ function GoalManageCardEdit(props) {
|
|
|
3260
3274
|
}
|
|
3261
3275
|
|
|
3262
3276
|
// src/app/platform/session-card.tsx
|
|
3263
|
-
var
|
|
3277
|
+
var import_react38 = require("react");
|
|
3264
3278
|
var import_date_fns5 = require("date-fns");
|
|
3265
3279
|
|
|
3266
3280
|
// src/app/platform/edit-coaching-time.tsx
|
|
3267
|
-
var
|
|
3281
|
+
var import_react36 = require("react");
|
|
3268
3282
|
|
|
3269
3283
|
// src/layouts/response-display.tsx
|
|
3270
3284
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
@@ -3325,14 +3339,14 @@ var getDateFromValue = (date, time) => {
|
|
|
3325
3339
|
};
|
|
3326
3340
|
function EditCoachingTime(props) {
|
|
3327
3341
|
const { defaultEndAt, defaultStartAt, onClickCancel, sessionNumber } = props;
|
|
3328
|
-
const [values, setValues] = (0,
|
|
3342
|
+
const [values, setValues] = (0, import_react36.useState)(() => {
|
|
3329
3343
|
return getValueFromDefaultValue({
|
|
3330
3344
|
startAt: defaultStartAt,
|
|
3331
3345
|
endAt: defaultEndAt
|
|
3332
3346
|
});
|
|
3333
3347
|
});
|
|
3334
|
-
const [timeError, setTimeError] = (0,
|
|
3335
|
-
const checkTimeError = (0,
|
|
3348
|
+
const [timeError, setTimeError] = (0, import_react36.useState)("");
|
|
3349
|
+
const checkTimeError = (0, import_react36.useCallback)(
|
|
3336
3350
|
(startTime, endTime) => {
|
|
3337
3351
|
const error = startTime >= endTime ? "\uC2DC\uC791\uC2DC\uAC04\uC744 \uC885\uB8CC\uC2DC\uAC04\uBCF4\uB2E4 \uBE60\uB974\uAC8C \uC120\uD0DD\uD574\uC8FC\uC138\uC694." : "";
|
|
3338
3352
|
if (error) {
|
|
@@ -3343,7 +3357,7 @@ function EditCoachingTime(props) {
|
|
|
3343
3357
|
},
|
|
3344
3358
|
[]
|
|
3345
3359
|
);
|
|
3346
|
-
const onChangeStartTime = (0,
|
|
3360
|
+
const onChangeStartTime = (0, import_react36.useCallback)(
|
|
3347
3361
|
(v) => {
|
|
3348
3362
|
checkTimeError(v, values.endTime);
|
|
3349
3363
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -3352,7 +3366,7 @@ function EditCoachingTime(props) {
|
|
|
3352
3366
|
},
|
|
3353
3367
|
[checkTimeError, values.endTime]
|
|
3354
3368
|
);
|
|
3355
|
-
const onChangeEndTime = (0,
|
|
3369
|
+
const onChangeEndTime = (0, import_react36.useCallback)(
|
|
3356
3370
|
(v) => {
|
|
3357
3371
|
checkTimeError(values.startTime, v);
|
|
3358
3372
|
setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
@@ -3361,12 +3375,12 @@ function EditCoachingTime(props) {
|
|
|
3361
3375
|
},
|
|
3362
3376
|
[checkTimeError, values.startTime]
|
|
3363
3377
|
);
|
|
3364
|
-
const onChangeDate = (0,
|
|
3378
|
+
const onChangeDate = (0, import_react36.useCallback)((date) => {
|
|
3365
3379
|
date && setValues((prev) => __spreadProps(__spreadValues({}, prev), {
|
|
3366
3380
|
date
|
|
3367
3381
|
}));
|
|
3368
3382
|
}, []);
|
|
3369
|
-
const onClickSave = (0,
|
|
3383
|
+
const onClickSave = (0, import_react36.useCallback)(() => {
|
|
3370
3384
|
if (checkTimeError(values.startTime, values.endTime)) {
|
|
3371
3385
|
const startAt = getDateFromValue(values.date, values.startTime);
|
|
3372
3386
|
const endAt = getDateFromValue(values.date, values.endTime);
|
|
@@ -3397,7 +3411,7 @@ function EditCoachingTime(props) {
|
|
|
3397
3411
|
)
|
|
3398
3412
|
] }),
|
|
3399
3413
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
3400
|
-
|
|
3414
|
+
import_themes23.Grid,
|
|
3401
3415
|
{
|
|
3402
3416
|
align: "center",
|
|
3403
3417
|
columns: {
|
|
@@ -3435,7 +3449,7 @@ function EditCoachingTime(props) {
|
|
|
3435
3449
|
]
|
|
3436
3450
|
}
|
|
3437
3451
|
),
|
|
3438
|
-
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
3452
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", children: [
|
|
3439
3453
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
3440
3454
|
Button,
|
|
3441
3455
|
{
|
|
@@ -3461,7 +3475,7 @@ function EditCoachingTime(props) {
|
|
|
3461
3475
|
}
|
|
3462
3476
|
|
|
3463
3477
|
// src/app/platform/edit-service-type.tsx
|
|
3464
|
-
var
|
|
3478
|
+
var import_react37 = require("react");
|
|
3465
3479
|
|
|
3466
3480
|
// src/app/platform/on-offline-radio-card.tsx
|
|
3467
3481
|
var import_react_icons9 = require("@radix-ui/react-icons");
|
|
@@ -3487,11 +3501,11 @@ function OnOfflineRadioCard(props) {
|
|
|
3487
3501
|
justify
|
|
3488
3502
|
}, props), {
|
|
3489
3503
|
children: [
|
|
3490
|
-
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.onlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
3504
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.onlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
3491
3505
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_icons9.GlobeIcon, {}) }),
|
|
3492
3506
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Typo, { children: "\uC628\uB77C\uC778" })
|
|
3493
3507
|
] }) }),
|
|
3494
|
-
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.offlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
|
|
3508
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(RadioButtonCard.Item, { value: SERVICE_TYPE.offlineCoaching, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_themes22.Flex, { align: "center", gap: "2", children: [
|
|
3495
3509
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react_icons9.BackpackIcon, {}) }),
|
|
3496
3510
|
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Typo, { children: "\uC624\uD504\uB77C\uC778" })
|
|
3497
3511
|
] }) })
|
|
@@ -3504,10 +3518,10 @@ function OnOfflineRadioCard(props) {
|
|
|
3504
3518
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
3505
3519
|
function EditServiceType(props) {
|
|
3506
3520
|
const { sessionNumber, defaultServiceType, onClickCancel } = props;
|
|
3507
|
-
const [sessionType, setSessionType] = (0,
|
|
3521
|
+
const [sessionType, setSessionType] = (0, import_react37.useState)(
|
|
3508
3522
|
defaultServiceType
|
|
3509
3523
|
);
|
|
3510
|
-
const onClickSave = (0,
|
|
3524
|
+
const onClickSave = (0, import_react37.useCallback)(() => {
|
|
3511
3525
|
var _a;
|
|
3512
3526
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, sessionType);
|
|
3513
3527
|
}, [props, sessionType]);
|
|
@@ -3531,7 +3545,7 @@ function EditServiceType(props) {
|
|
|
3531
3545
|
}
|
|
3532
3546
|
),
|
|
3533
3547
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(OnOfflineRadioCard, { onValueChange: setSessionType, value: sessionType }),
|
|
3534
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
3548
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes22.Flex, { gap: "3", justify: "end", mt: { initial: "6", xs: "3" }, children: [
|
|
3535
3549
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
3536
3550
|
Button,
|
|
3537
3551
|
{
|
|
@@ -3578,16 +3592,16 @@ function SessionCard(props) {
|
|
|
3578
3592
|
"endAt",
|
|
3579
3593
|
"sessionType"
|
|
3580
3594
|
]);
|
|
3581
|
-
const renderEditButton = (0,
|
|
3595
|
+
const renderEditButton = (0, import_react38.useCallback)(() => {
|
|
3582
3596
|
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Button, { color: "gray", ml: "2", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_react_icons3.Pencil1Icon, {}) });
|
|
3583
3597
|
}, []);
|
|
3584
|
-
const sessionTimeStr = (0,
|
|
3598
|
+
const sessionTimeStr = (0, import_react38.useMemo)(() => {
|
|
3585
3599
|
if (!startAt || !endAt)
|
|
3586
3600
|
return "\uC54C \uC218 \uC5C6\uC74C";
|
|
3587
3601
|
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")}`;
|
|
3588
3602
|
}, [startAt, endAt]);
|
|
3589
|
-
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Card, __spreadProps(__spreadValues({ error: Boolean(error) }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3590
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Card, __spreadProps(__spreadValues({ error: Boolean(error) }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes22.Flex, { direction: "column", gap: "3", children: [
|
|
3604
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes22.Flex, { align: "center", width: "100%", children: [
|
|
3591
3605
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Heading2, { variant: "heading4", children: `${userName || "\uC54C \uC218 \uC5C6\uC74C"}\uB2D8 ${sessionNumber || "-"}\uD68C\uCC28` }),
|
|
3592
3606
|
TitleExtra,
|
|
3593
3607
|
error ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(BulletText, { as: "p", color: "red", variant: "caption", children: error }) : null
|
|
@@ -3617,7 +3631,7 @@ function SessionCard(props) {
|
|
|
3617
3631
|
] }) : null
|
|
3618
3632
|
] })
|
|
3619
3633
|
] }),
|
|
3620
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3634
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes23.Grid, { columns: { initial: "1", xs: "2" }, style: { gap: "inherit" }, children: [
|
|
3621
3635
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes15.DataList.Item, { children: [
|
|
3622
3636
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes15.DataList.Label, { children: "\uC138\uC158 \uCC38\uC5EC \uBC29\uC2DD" }),
|
|
3623
3637
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes15.DataList.Value, { children: [
|
|
@@ -3634,7 +3648,7 @@ function SessionCard(props) {
|
|
|
3634
3648
|
] }) : null
|
|
3635
3649
|
] })
|
|
3636
3650
|
] }),
|
|
3637
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3651
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes22.Flex, { gap: "2", justify: "end", children: ExtraButtons })
|
|
3638
3652
|
] })
|
|
3639
3653
|
] })
|
|
3640
3654
|
] }) }));
|
|
@@ -3651,13 +3665,13 @@ function QuestionItem({ question, answer }) {
|
|
|
3651
3665
|
function CoachQuestionList({
|
|
3652
3666
|
questions
|
|
3653
3667
|
}) {
|
|
3654
|
-
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
3668
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes22.Flex, { direction: "column", gap: "8", children: questions.map((question) => {
|
|
3655
3669
|
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(QuestionItem, __spreadValues({}, question), question.question);
|
|
3656
3670
|
}) });
|
|
3657
3671
|
}
|
|
3658
3672
|
|
|
3659
3673
|
// src/app/platform/reservation-card.tsx
|
|
3660
|
-
var
|
|
3674
|
+
var import_react39 = require("react");
|
|
3661
3675
|
var import_date_fns6 = require("date-fns");
|
|
3662
3676
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
3663
3677
|
function ReservationCard(props) {
|
|
@@ -3672,30 +3686,30 @@ function ReservationCard(props) {
|
|
|
3672
3686
|
onClickCancel,
|
|
3673
3687
|
onClickCompleteSession
|
|
3674
3688
|
} = props;
|
|
3675
|
-
const [editValues, setEditValues] = (0,
|
|
3689
|
+
const [editValues, setEditValues] = (0, import_react39.useState)({
|
|
3676
3690
|
date: props.defaultTime,
|
|
3677
3691
|
type: props.defaultType
|
|
3678
3692
|
});
|
|
3679
3693
|
const date = readonly ? defaultTime : editValues.date;
|
|
3680
3694
|
const type = readonly ? defaultType : editValues.type;
|
|
3681
3695
|
const time = date && getTimeOption(date);
|
|
3682
|
-
const onClickSave = (0,
|
|
3696
|
+
const onClickSave = (0, import_react39.useCallback)(() => {
|
|
3683
3697
|
var _a;
|
|
3684
3698
|
(_a = props.onClickSave) == null ? void 0 : _a.call(props, editValues);
|
|
3685
3699
|
}, [editValues, props]);
|
|
3686
|
-
const onClickReset = (0,
|
|
3700
|
+
const onClickReset = (0, import_react39.useCallback)(() => {
|
|
3687
3701
|
setEditValues({
|
|
3688
3702
|
date: defaultTime,
|
|
3689
3703
|
type: defaultType
|
|
3690
3704
|
});
|
|
3691
3705
|
}, [defaultTime, defaultType]);
|
|
3692
|
-
const ActionButtons = (0,
|
|
3706
|
+
const ActionButtons = (0, import_react39.useMemo)(() => {
|
|
3693
3707
|
if (readonly) {
|
|
3694
3708
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Button, { onClick: onClickReserve, size: "small", variant: "surface", children: "\uC608\uC57D\uD558\uAE30" });
|
|
3695
3709
|
}
|
|
3696
3710
|
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Button, { color: "gray", onClick: onClickCancel, variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react_icons3.Cross1Icon, {}) });
|
|
3697
3711
|
}, [onClickCancel, onClickReserve, readonly]);
|
|
3698
|
-
const onChangeDate = (0,
|
|
3712
|
+
const onChangeDate = (0, import_react39.useCallback)(
|
|
3699
3713
|
(newDate) => {
|
|
3700
3714
|
if (!newDate)
|
|
3701
3715
|
return;
|
|
@@ -3708,14 +3722,14 @@ function ReservationCard(props) {
|
|
|
3708
3722
|
},
|
|
3709
3723
|
[time]
|
|
3710
3724
|
);
|
|
3711
|
-
const onChangeType = (0,
|
|
3725
|
+
const onChangeType = (0, import_react39.useCallback)((newType) => {
|
|
3712
3726
|
setEditValues((prev) => {
|
|
3713
3727
|
return __spreadProps(__spreadValues({}, prev), {
|
|
3714
3728
|
type: newType
|
|
3715
3729
|
});
|
|
3716
3730
|
});
|
|
3717
3731
|
}, []);
|
|
3718
|
-
const onChangeTime = (0,
|
|
3732
|
+
const onChangeTime = (0, import_react39.useCallback)(
|
|
3719
3733
|
(v) => {
|
|
3720
3734
|
const { hour, minute } = parseTimeOption(v);
|
|
3721
3735
|
setEditValues((prev) => {
|
|
@@ -3733,15 +3747,15 @@ function ReservationCard(props) {
|
|
|
3733
3747
|
size: "3",
|
|
3734
3748
|
style: { overflow: "visible", contain: "initial" },
|
|
3735
3749
|
children: [
|
|
3736
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3750
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "between", mb: "5", children: [
|
|
3737
3751
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3738
|
-
|
|
3752
|
+
import_themes23.Grid,
|
|
3739
3753
|
{
|
|
3740
3754
|
align: "center",
|
|
3741
3755
|
columns: { initial: "1", xs: "auto 1fr" },
|
|
3742
3756
|
gapY: "2",
|
|
3743
3757
|
children: [
|
|
3744
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3758
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes22.Flex, { align: "center", children: [
|
|
3745
3759
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Heading2, { variant: "heading4", children: [
|
|
3746
3760
|
customerName || "-",
|
|
3747
3761
|
"\uB2D8 ",
|
|
@@ -3754,7 +3768,7 @@ function ReservationCard(props) {
|
|
|
3754
3768
|
]
|
|
3755
3769
|
}
|
|
3756
3770
|
),
|
|
3757
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3771
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes22.Flex, { children: ActionButtons })
|
|
3758
3772
|
] }),
|
|
3759
3773
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3760
3774
|
Form.Root,
|
|
@@ -3762,10 +3776,10 @@ function ReservationCard(props) {
|
|
|
3762
3776
|
onSubmit: (e) => {
|
|
3763
3777
|
e.preventDefault();
|
|
3764
3778
|
},
|
|
3765
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3779
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
3766
3780
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Form.Field, { name: "date", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Form.Label, { asChild: true, children: [
|
|
3767
3781
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: "\uC138\uC158 \uC77C\uC790\uC640 \uC2DC\uAC01" }),
|
|
3768
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3782
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes23.Grid, { columns: "1fr auto", gap: "4", children: [
|
|
3769
3783
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3770
3784
|
DatePickerButton,
|
|
3771
3785
|
{
|
|
@@ -3799,7 +3813,7 @@ function ReservationCard(props) {
|
|
|
3799
3813
|
}
|
|
3800
3814
|
) })
|
|
3801
3815
|
] }),
|
|
3802
|
-
readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3816
|
+
readonly ? null : /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes22.Flex, { align: "center", gap: "3", justify: "end", children: [
|
|
3803
3817
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3804
3818
|
Button,
|
|
3805
3819
|
{
|
|
@@ -3823,7 +3837,7 @@ function ReservationCard(props) {
|
|
|
3823
3837
|
py: "4",
|
|
3824
3838
|
style: { backgroundColor: "var(--accent-a3)" },
|
|
3825
3839
|
width: "100%",
|
|
3826
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3840
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes22.Flex, { align: "center", gap: "4", justify: "center", children: [
|
|
3827
3841
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(Typo, { children: [
|
|
3828
3842
|
sessionNumber || "-",
|
|
3829
3843
|
"\uD68C\uCC28 \uC138\uC158\uC744 \uC644\uB8CC\uD558\uC168\uB098\uC694?"
|
|
@@ -3841,13 +3855,13 @@ function ReservationCard(props) {
|
|
|
3841
3855
|
}
|
|
3842
3856
|
|
|
3843
3857
|
// src/app/platform/session-review-simple-read.tsx
|
|
3844
|
-
var
|
|
3858
|
+
var import_react40 = require("react");
|
|
3845
3859
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
3846
3860
|
function SubTitleWrapper({
|
|
3847
3861
|
children,
|
|
3848
3862
|
title
|
|
3849
3863
|
}) {
|
|
3850
|
-
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
3864
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes22.Flex, { direction: "column", gap: "2", children: [
|
|
3851
3865
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Heading2, { mb: "2", variant: "heading5", weight: "regular", children: title }),
|
|
3852
3866
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes6.Box, { children })
|
|
3853
3867
|
] });
|
|
@@ -3858,7 +3872,7 @@ function SessionReviewSimpleRead({
|
|
|
3858
3872
|
sessionNumber,
|
|
3859
3873
|
customerName
|
|
3860
3874
|
}) {
|
|
3861
|
-
const helpfulnessMeta = (0,
|
|
3875
|
+
const helpfulnessMeta = (0, import_react40.useMemo)(() => {
|
|
3862
3876
|
if (helpfulness) {
|
|
3863
3877
|
return {
|
|
3864
3878
|
text: "\uB124",
|
|
@@ -3883,7 +3897,7 @@ function SessionReviewSimpleRead({
|
|
|
3883
3897
|
sessionNumber || "-",
|
|
3884
3898
|
"\uD68C\uCC28 \uC138\uC158 \uD6C4\uAE30"
|
|
3885
3899
|
] }),
|
|
3886
|
-
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
3900
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes22.Flex, { direction: "column", gap: "5", children: [
|
|
3887
3901
|
/* @__PURE__ */ (0, import_jsx_runtime57.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_runtime57.jsx)(Badge, { color: helpfulnessMeta.color, children: helpfulnessMeta.text }) }),
|
|
3888
3902
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SubTitleWrapper, { title: "\uC138\uC158 \uD6C4\uAE30", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Card, { children: review ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Typo, { as: "p", children: review }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Typo, { color: "gray", children: "\uC785\uB825\uB41C \uD6C4\uAE30\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) }) })
|
|
3889
3903
|
] })
|
|
@@ -3897,7 +3911,7 @@ function SectionWrapper({
|
|
|
3897
3911
|
children
|
|
3898
3912
|
}) {
|
|
3899
3913
|
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes6.Box, { children: [
|
|
3900
|
-
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
3914
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes23.Grid, { align: "center", columns: "auto 1fr", gap: "3", mb: "5", children: [
|
|
3901
3915
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Heading2, { variant: "heading5", children: title }),
|
|
3902
3916
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes39.Separator, { size: "4" })
|
|
3903
3917
|
] }),
|
|
@@ -3908,7 +3922,7 @@ function SessionUserInfoDetail({
|
|
|
3908
3922
|
customer,
|
|
3909
3923
|
session
|
|
3910
3924
|
}) {
|
|
3911
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
3925
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes22.Flex, { direction: "column", gap: "6", children: [
|
|
3912
3926
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SectionWrapper, { title: "\uC138\uC158 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes15.DataList.Root, { children: sessionList.map((info) => renderDataListItem(info, session)) }) }),
|
|
3913
3927
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SectionWrapper, { title: "\uD68C\uC6D0 \uC815\uBCF4", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes15.DataList.Root, { children: infoList.map((info) => renderDataListItem(info, customer)) }) })
|
|
3914
3928
|
] });
|
|
@@ -3919,7 +3933,7 @@ var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
|
3919
3933
|
function ReportCard(props) {
|
|
3920
3934
|
const { title, file, status } = props;
|
|
3921
3935
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Card, { children: [
|
|
3922
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
|
|
3936
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_themes22.Flex, { align: "center", justify: "between", children: [
|
|
3923
3937
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Heading2, { variant: "heading4", children: title }),
|
|
3924
3938
|
status
|
|
3925
3939
|
] }),
|