@tipp/ui 1.6.22 → 1.6.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/index.cjs +389 -398
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +19 -18
- package/dist/app/platform/coach-question-list.cjs +78 -72
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +4 -3
- package/dist/app/platform/contents-card.cjs +63 -56
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +5 -4
- package/dist/app/platform/edit-coaching-time.cjs +155 -165
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +8 -7
- package/dist/app/platform/edit-service-type.cjs +148 -158
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +8 -7
- package/dist/app/platform/goal-manage-card-edit.cjs +124 -118
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +7 -6
- package/dist/app/platform/goal-manage-card-read.cjs +112 -106
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +4 -3
- package/dist/app/platform/on-offline-radio-card.cjs +108 -102
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +7 -6
- package/dist/app/platform/report-card.cjs +79 -73
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +4 -3
- package/dist/app/platform/reservation-card.cjs +150 -144
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +8 -7
- package/dist/app/platform/session-card.cjs +200 -210
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +10 -9
- package/dist/app/platform/session-review-simple-read.cjs +79 -73
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +4 -3
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +112 -106
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +8 -7
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +89 -83
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +4 -3
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +92 -86
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +4 -3
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +78 -72
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +4 -3
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +88 -82
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +4 -3
- package/dist/app/platform/userInfos/utils.cjs +80 -74
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +4 -3
- package/dist/atoms/dialog.cjs +41 -56
- package/dist/atoms/dialog.cjs.map +1 -1
- package/dist/atoms/dialog.js +2 -2
- package/dist/atoms/drawer.cjs +23 -41
- package/dist/atoms/drawer.cjs.map +1 -1
- package/dist/atoms/drawer.js +2 -2
- package/dist/atoms/index.cjs +159 -151
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +7 -6
- package/dist/chunk-2NQ4PYPH.js +145 -0
- package/dist/chunk-2NQ4PYPH.js.map +1 -0
- package/dist/chunk-36BWVY4R.js +30 -0
- package/dist/chunk-36BWVY4R.js.map +1 -0
- package/dist/chunk-3F6KWGBZ.js +89 -0
- package/dist/chunk-3F6KWGBZ.js.map +1 -0
- package/dist/chunk-3FNXJ35I.js +54 -0
- package/dist/chunk-3FNXJ35I.js.map +1 -0
- package/dist/chunk-3TWYP5FO.js +57 -0
- package/dist/chunk-3TWYP5FO.js.map +1 -0
- package/dist/chunk-3WEXXGSP.js +53 -0
- package/dist/chunk-3WEXXGSP.js.map +1 -0
- package/dist/chunk-3X6SIK3W.js +106 -0
- package/dist/chunk-3X6SIK3W.js.map +1 -0
- package/dist/chunk-3XMCL5X4.js +106 -0
- package/dist/chunk-3XMCL5X4.js.map +1 -0
- package/dist/chunk-42MNZ5HL.js +54 -0
- package/dist/chunk-42MNZ5HL.js.map +1 -0
- package/dist/chunk-43TEFEIM.js +63 -0
- package/dist/chunk-43TEFEIM.js.map +1 -0
- package/dist/chunk-4TI72EQY.js +54 -0
- package/dist/chunk-4TI72EQY.js.map +1 -0
- package/dist/chunk-4VRGGFOT.js +54 -0
- package/dist/chunk-4VRGGFOT.js.map +1 -0
- package/dist/chunk-57F5B7FE.js +84 -0
- package/dist/chunk-57F5B7FE.js.map +1 -0
- package/dist/chunk-5F7NVKMI.js +74 -0
- package/dist/chunk-5F7NVKMI.js.map +1 -0
- package/dist/chunk-5JJVLL2A.js +30 -0
- package/dist/chunk-5JJVLL2A.js.map +1 -0
- package/dist/chunk-5QCIYLYC.js +70 -0
- package/dist/chunk-5QCIYLYC.js.map +1 -0
- package/dist/chunk-5RXSBHAF.js +284 -0
- package/dist/chunk-5RXSBHAF.js.map +1 -0
- package/dist/chunk-64UUNUIF.js +74 -0
- package/dist/chunk-64UUNUIF.js.map +1 -0
- package/dist/chunk-6ERCSTEP.js +357 -0
- package/dist/chunk-6ERCSTEP.js.map +1 -0
- package/dist/chunk-6HY2JAC2.js +145 -0
- package/dist/chunk-6HY2JAC2.js.map +1 -0
- package/dist/chunk-6X3CZMIC.js +174 -0
- package/dist/chunk-6X3CZMIC.js.map +1 -0
- package/dist/chunk-7SWVQEY6.js +73 -0
- package/dist/chunk-7SWVQEY6.js.map +1 -0
- package/dist/chunk-7ZXUG6W4.js +145 -0
- package/dist/chunk-7ZXUG6W4.js.map +1 -0
- package/dist/chunk-APHK52I3.js +164 -0
- package/dist/chunk-APHK52I3.js.map +1 -0
- package/dist/chunk-AQXVWKH6.js +19 -0
- package/dist/chunk-AQXVWKH6.js.map +1 -0
- package/dist/chunk-B7P4NYMW.js +164 -0
- package/dist/chunk-B7P4NYMW.js.map +1 -0
- package/dist/chunk-BNB3AEFM.js +70 -0
- package/dist/chunk-BNB3AEFM.js.map +1 -0
- package/dist/chunk-BUPPCVDT.js +30 -0
- package/dist/chunk-BUPPCVDT.js.map +1 -0
- package/dist/chunk-BVNUNZXK.js +30 -0
- package/dist/chunk-BVNUNZXK.js.map +1 -0
- package/dist/chunk-CBVIUEJB.js +117 -0
- package/dist/chunk-CBVIUEJB.js.map +1 -0
- package/dist/chunk-CC7CR4NT.js +174 -0
- package/dist/chunk-CC7CR4NT.js.map +1 -0
- package/dist/chunk-CXPOD6VX.js +58 -0
- package/dist/chunk-CXPOD6VX.js.map +1 -0
- package/dist/chunk-D2GFXT7B.js +164 -0
- package/dist/chunk-D2GFXT7B.js.map +1 -0
- package/dist/chunk-DEJVT5GM.js +58 -0
- package/dist/chunk-DEJVT5GM.js.map +1 -0
- package/dist/chunk-DEQLZ43V.js +117 -0
- package/dist/chunk-DEQLZ43V.js.map +1 -0
- package/dist/chunk-DJN2IEY6.js +23 -0
- package/dist/chunk-DJN2IEY6.js.map +1 -0
- package/dist/chunk-DSVS6ALA.js +174 -0
- package/dist/chunk-DSVS6ALA.js.map +1 -0
- package/dist/chunk-E2B4MIBN.js +60 -0
- package/dist/chunk-E2B4MIBN.js.map +1 -0
- package/dist/chunk-E3YG43CK.js +70 -0
- package/dist/chunk-E3YG43CK.js.map +1 -0
- package/dist/chunk-F5JCHRHO.js +102 -0
- package/dist/chunk-F5JCHRHO.js.map +1 -0
- package/dist/chunk-FF2PTPBU.js +145 -0
- package/dist/chunk-FF2PTPBU.js.map +1 -0
- package/dist/chunk-FJP2F6IC.js +39 -0
- package/dist/chunk-FJP2F6IC.js.map +1 -0
- package/dist/chunk-FX7FMZ2U.js +15 -0
- package/dist/chunk-FX7FMZ2U.js.map +1 -0
- package/dist/chunk-G2JN23PG.js +64 -0
- package/dist/chunk-G2JN23PG.js.map +1 -0
- package/dist/chunk-GDSTYYNT.js +106 -0
- package/dist/chunk-GDSTYYNT.js.map +1 -0
- package/dist/chunk-GDZ3OYPF.js +70 -0
- package/dist/chunk-GDZ3OYPF.js.map +1 -0
- package/dist/chunk-H76H7C6P.js +284 -0
- package/dist/chunk-H76H7C6P.js.map +1 -0
- package/dist/chunk-HQSSAZHP.js +84 -0
- package/dist/chunk-HQSSAZHP.js.map +1 -0
- package/dist/chunk-HRAIZGAV.js +164 -0
- package/dist/chunk-HRAIZGAV.js.map +1 -0
- package/dist/chunk-IWW6ST7Q.js +30 -0
- package/dist/chunk-IWW6ST7Q.js.map +1 -0
- package/dist/chunk-IYJ77DVE.js +63 -0
- package/dist/chunk-IYJ77DVE.js.map +1 -0
- package/dist/chunk-IZUCJFWS.js +357 -0
- package/dist/chunk-IZUCJFWS.js.map +1 -0
- package/dist/chunk-J5675IX6.js +145 -0
- package/dist/chunk-J5675IX6.js.map +1 -0
- package/dist/chunk-JAJC7VPU.js +117 -0
- package/dist/chunk-JAJC7VPU.js.map +1 -0
- package/dist/chunk-JPKBLDEX.js +174 -0
- package/dist/chunk-JPKBLDEX.js.map +1 -0
- package/dist/chunk-K2PTIGO7.js +54 -0
- package/dist/chunk-K2PTIGO7.js.map +1 -0
- package/dist/chunk-K7ITFD4P.js +45 -0
- package/dist/chunk-K7ITFD4P.js.map +1 -0
- package/dist/chunk-LCGQYQ2Y.js +145 -0
- package/dist/chunk-LCGQYQ2Y.js.map +1 -0
- package/dist/chunk-LGF7FERG.js +23 -0
- package/dist/chunk-LGF7FERG.js.map +1 -0
- package/dist/chunk-LSYQLE32.js +19 -0
- package/dist/chunk-LSYQLE32.js.map +1 -0
- package/dist/chunk-MEA2GIR7.js +192 -0
- package/dist/chunk-MEA2GIR7.js.map +1 -0
- package/dist/chunk-MMNUPVIX.js +128 -0
- package/dist/chunk-MMNUPVIX.js.map +1 -0
- package/dist/chunk-MRSCXF6Z.js +70 -0
- package/dist/chunk-MRSCXF6Z.js.map +1 -0
- package/dist/chunk-NHOR6XDA.js +30 -0
- package/dist/chunk-NHOR6XDA.js.map +1 -0
- package/dist/chunk-NVZTJG7X.js +57 -0
- package/dist/chunk-NVZTJG7X.js.map +1 -0
- package/dist/chunk-NWF4LV6Z.js +30 -0
- package/dist/chunk-NWF4LV6Z.js.map +1 -0
- package/dist/chunk-O33F7L7R.js +165 -0
- package/dist/chunk-O33F7L7R.js.map +1 -0
- package/dist/chunk-O5EI5UQD.js +102 -0
- package/dist/chunk-O5EI5UQD.js.map +1 -0
- package/dist/chunk-OFBTS6ZD.js +145 -0
- package/dist/chunk-OFBTS6ZD.js.map +1 -0
- package/dist/chunk-ON6X4DAK.js +45 -0
- package/dist/chunk-ON6X4DAK.js.map +1 -0
- package/dist/chunk-OWSYPSKK.js +84 -0
- package/dist/chunk-OWSYPSKK.js.map +1 -0
- package/dist/chunk-Q6Q7AOOQ.js +174 -0
- package/dist/chunk-Q6Q7AOOQ.js.map +1 -0
- package/dist/chunk-QC63I2BG.js +89 -0
- package/dist/chunk-QC63I2BG.js.map +1 -0
- package/dist/chunk-QIBROLOP.js +169 -0
- package/dist/chunk-QIBROLOP.js.map +1 -0
- package/dist/chunk-QIY5KHBO.js +64 -0
- package/dist/chunk-QIY5KHBO.js.map +1 -0
- package/dist/chunk-R23QFNIZ.js +84 -0
- package/dist/chunk-R23QFNIZ.js.map +1 -0
- package/dist/chunk-RFD5H6F6.js +174 -0
- package/dist/chunk-RFD5H6F6.js.map +1 -0
- package/dist/chunk-RNGCQ6Q5.js +54 -0
- package/dist/chunk-RNGCQ6Q5.js.map +1 -0
- package/dist/chunk-S2P3RYT2.js +174 -0
- package/dist/chunk-S2P3RYT2.js.map +1 -0
- package/dist/chunk-S4UCJELU.js +64 -0
- package/dist/chunk-S4UCJELU.js.map +1 -0
- package/dist/chunk-SM5ETU3K.js +284 -0
- package/dist/chunk-SM5ETU3K.js.map +1 -0
- package/dist/chunk-SMZIRKPK.js +70 -0
- package/dist/chunk-SMZIRKPK.js.map +1 -0
- package/dist/chunk-SNHJQ4GS.js +64 -0
- package/dist/chunk-SNHJQ4GS.js.map +1 -0
- package/dist/chunk-T23U4R7A.js +84 -0
- package/dist/chunk-T23U4R7A.js.map +1 -0
- package/dist/chunk-TD45ZF7D.js +31 -0
- package/dist/chunk-TD45ZF7D.js.map +1 -0
- package/dist/chunk-TTGSVKIG.js +99 -0
- package/dist/chunk-TTGSVKIG.js.map +1 -0
- package/dist/chunk-UB44BWD3.js +54 -0
- package/dist/chunk-UB44BWD3.js.map +1 -0
- package/dist/chunk-UL52QKAX.js +106 -0
- package/dist/chunk-UL52QKAX.js.map +1 -0
- package/dist/chunk-ULK3LVLV.js +145 -0
- package/dist/chunk-ULK3LVLV.js.map +1 -0
- package/dist/chunk-UQVTXKJY.js +30 -0
- package/dist/chunk-UQVTXKJY.js.map +1 -0
- package/dist/chunk-URCFWXSS.js +145 -0
- package/dist/chunk-URCFWXSS.js.map +1 -0
- package/dist/chunk-USAO24JU.js +164 -0
- package/dist/chunk-USAO24JU.js.map +1 -0
- package/dist/chunk-V3LWCHYU.js +101 -0
- package/dist/chunk-V3LWCHYU.js.map +1 -0
- package/dist/chunk-VEHJL7YX.js +145 -0
- package/dist/chunk-VEHJL7YX.js.map +1 -0
- package/dist/chunk-VGA7OYBC.js +165 -0
- package/dist/chunk-VGA7OYBC.js.map +1 -0
- package/dist/chunk-VHFAY5XN.js +146 -0
- package/dist/chunk-VHFAY5XN.js.map +1 -0
- package/dist/chunk-W3WQTY36.js +99 -0
- package/dist/chunk-W3WQTY36.js.map +1 -0
- package/dist/chunk-WL6DTHGM.js +164 -0
- package/dist/chunk-WL6DTHGM.js.map +1 -0
- package/dist/chunk-WLQ43ESH.js +89 -0
- package/dist/chunk-WLQ43ESH.js.map +1 -0
- package/dist/chunk-WNEXIUQ7.js +63 -0
- package/dist/chunk-WNEXIUQ7.js.map +1 -0
- package/dist/chunk-WW753CRQ.js +145 -0
- package/dist/chunk-WW753CRQ.js.map +1 -0
- package/dist/chunk-X3Z66RK2.js +85 -0
- package/dist/chunk-X3Z66RK2.js.map +1 -0
- package/dist/chunk-XD7T627Q.js +174 -0
- package/dist/chunk-XD7T627Q.js.map +1 -0
- package/dist/chunk-Y6WM6YGH.js +117 -0
- package/dist/chunk-Y6WM6YGH.js.map +1 -0
- package/dist/chunk-YFWG4PQ3.js +39 -0
- package/dist/chunk-YFWG4PQ3.js.map +1 -0
- package/dist/chunk-ZIB6X7QU.js +284 -0
- package/dist/chunk-ZIB6X7QU.js.map +1 -0
- package/dist/chunk-ZWYM5QVI.js +63 -0
- package/dist/chunk-ZWYM5QVI.js.map +1 -0
- package/dist/index.cjs +612 -590
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +120 -75
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +29 -23
- package/dist/molecules/date-picker/date-picker-button.cjs +86 -80
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +4 -3
- package/dist/molecules/expand-table/index.cjs +112 -106
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +4 -3
- package/dist/molecules/expand-table/row.cjs +82 -76
- package/dist/molecules/expand-table/row.cjs.map +1 -1
- package/dist/molecules/expand-table/row.js +4 -3
- package/dist/molecules/ghost-post.cjs.map +1 -1
- package/dist/molecules/ghost-post.js +2 -2
- package/dist/molecules/index.cjs +237 -231
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +7 -6
- package/dist/molecules/learning-post.cjs.map +1 -1
- package/dist/molecules/learning-post.js +2 -2
- package/dist/molecules/navigation.cjs +78 -72
- package/dist/molecules/navigation.cjs.map +1 -1
- package/dist/molecules/navigation.js +4 -3
- package/dist/molecules/radio-button-card.cjs +76 -70
- package/dist/molecules/radio-button-card.cjs.map +1 -1
- package/dist/molecules/radio-button-card.js +4 -3
- package/dist/molecules/tag-selector.cjs +77 -71
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +4 -3
- package/dist/molecules/time-select.cjs +77 -71
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +4 -3
- package/dist/theme/portal-provider.cjs +56 -0
- package/dist/theme/portal-provider.cjs.map +1 -0
- package/dist/theme/portal-provider.d.cts +13 -0
- package/dist/theme/portal-provider.d.ts +13 -0
- package/dist/theme/portal-provider.js +12 -0
- package/dist/theme/portal-provider.js.map +1 -0
- package/dist/theme/theme-provider.cjs.map +1 -1
- package/dist/theme/theme-provider.d.cts +1 -1
- package/dist/theme/theme-provider.d.ts +1 -1
- package/dist/theme/theme-provider.js +1 -1
- package/package.json +4 -4
- package/src/app/platform/contents-card.tsx +1 -0
- package/src/atoms/dialog.tsx +3 -3
- package/src/atoms/drawer.tsx +4 -9
- package/src/index.ts +1 -0
- package/src/theme/portal-provider.tsx +38 -0
- package/src/theme/theme-provider.tsx +1 -1
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Heading
|
|
3
|
+
} from "./chunk-HJB3AASV.js";
|
|
4
|
+
import {
|
|
5
|
+
usePortalContainer
|
|
6
|
+
} from "./chunk-TD45ZF7D.js";
|
|
7
|
+
import {
|
|
8
|
+
IconButton
|
|
9
|
+
} from "./chunk-O3DNDMV3.js";
|
|
10
|
+
import {
|
|
11
|
+
__objRest,
|
|
12
|
+
__spreadProps,
|
|
13
|
+
__spreadValues
|
|
14
|
+
} from "./chunk-N552FDTV.js";
|
|
15
|
+
|
|
16
|
+
// src/atoms/dialog.tsx
|
|
17
|
+
import * as RadixDialog from "@radix-ui/react-dialog";
|
|
18
|
+
import { Cross1Icon } from "@radix-ui/react-icons";
|
|
19
|
+
import { Flex, Theme } from "@radix-ui/themes";
|
|
20
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
21
|
+
var preventDefault = (e) => {
|
|
22
|
+
e.preventDefault();
|
|
23
|
+
};
|
|
24
|
+
function Content2(props) {
|
|
25
|
+
const _a = props, {
|
|
26
|
+
children,
|
|
27
|
+
style = {},
|
|
28
|
+
width,
|
|
29
|
+
maxWidth,
|
|
30
|
+
minWidth,
|
|
31
|
+
maxHeight,
|
|
32
|
+
height,
|
|
33
|
+
minHeight,
|
|
34
|
+
title,
|
|
35
|
+
buttons,
|
|
36
|
+
hideCloseButton,
|
|
37
|
+
className
|
|
38
|
+
} = _a, rest = __objRest(_a, [
|
|
39
|
+
"children",
|
|
40
|
+
"style",
|
|
41
|
+
"width",
|
|
42
|
+
"maxWidth",
|
|
43
|
+
"minWidth",
|
|
44
|
+
"maxHeight",
|
|
45
|
+
"height",
|
|
46
|
+
"minHeight",
|
|
47
|
+
"title",
|
|
48
|
+
"buttons",
|
|
49
|
+
"hideCloseButton",
|
|
50
|
+
"className"
|
|
51
|
+
]);
|
|
52
|
+
const { dialogContainerRef } = usePortalContainer();
|
|
53
|
+
return /* @__PURE__ */ jsx(RadixDialog.Portal, { container: dialogContainerRef.current, children: /* @__PURE__ */ jsx(Theme, { asChild: true, children: /* @__PURE__ */ jsx(RadixDialog.Overlay, { className: "DialogOverlay", children: /* @__PURE__ */ jsxs(
|
|
54
|
+
RadixDialog.Content,
|
|
55
|
+
__spreadProps(__spreadValues({
|
|
56
|
+
className: `DialogContent ${className || ""}`,
|
|
57
|
+
onPointerDownOutside: preventDefault,
|
|
58
|
+
style: __spreadValues({
|
|
59
|
+
width,
|
|
60
|
+
maxWidth,
|
|
61
|
+
minWidth,
|
|
62
|
+
maxHeight,
|
|
63
|
+
height,
|
|
64
|
+
minHeight
|
|
65
|
+
}, style)
|
|
66
|
+
}, rest), {
|
|
67
|
+
children: [
|
|
68
|
+
/* @__PURE__ */ jsxs(Flex, { gap: "2", justify: "between", children: [
|
|
69
|
+
/* @__PURE__ */ jsx(RadixDialog.Title, { asChild: true, children: typeof title === "string" ? /* @__PURE__ */ jsx(Heading, { align: "center", mb: "2", variant: "heading3", children: title }) : title }),
|
|
70
|
+
!hideCloseButton && /* @__PURE__ */ jsx(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ jsx(IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ jsx(Cross1Icon, {}) }) })
|
|
71
|
+
] }),
|
|
72
|
+
children,
|
|
73
|
+
buttons ? /* @__PURE__ */ jsx(Flex, { gap: "3", justify: "end", mt: "3", children: buttons }) : null
|
|
74
|
+
]
|
|
75
|
+
})
|
|
76
|
+
) }) }) });
|
|
77
|
+
}
|
|
78
|
+
function Close2(_a) {
|
|
79
|
+
var _b = _a, {
|
|
80
|
+
children
|
|
81
|
+
} = _b, rest = __objRest(_b, [
|
|
82
|
+
"children"
|
|
83
|
+
]);
|
|
84
|
+
return /* @__PURE__ */ jsx(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
85
|
+
}
|
|
86
|
+
function Trigger2(_a) {
|
|
87
|
+
var _b = _a, {
|
|
88
|
+
children
|
|
89
|
+
} = _b, rest = __objRest(_b, [
|
|
90
|
+
"children"
|
|
91
|
+
]);
|
|
92
|
+
return /* @__PURE__ */ jsx(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
93
|
+
}
|
|
94
|
+
var Dialog = {
|
|
95
|
+
Root: RadixDialog.Root,
|
|
96
|
+
Trigger: Trigger2,
|
|
97
|
+
Content: Content2,
|
|
98
|
+
Close: Close2,
|
|
99
|
+
Description: RadixDialog.Description,
|
|
100
|
+
Title: RadixDialog.Title
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
export {
|
|
104
|
+
Dialog
|
|
105
|
+
};
|
|
106
|
+
//# sourceMappingURL=chunk-3XMCL5X4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/atoms/dialog.tsx"],"sourcesContent":["import * as RadixDialog from '@radix-ui/react-dialog';\nimport { Cross1Icon } from '@radix-ui/react-icons';\nimport { Flex, Theme } from '@radix-ui/themes';\nimport { ToastContainer } from './toast';\nimport { Heading } from './heading';\nimport { IconButton } from './icon-button';\nimport { usePortalContainer } from '@/theme/portal-provider';\n\ntype ContentProps = RadixDialog.DialogContentProps & {\n width?: string;\n maxWidth?: string;\n minWidth?: string;\n height?: string;\n maxHeight?: string;\n minHeight?: string;\n title?: string;\n hideCloseButton?: boolean;\n buttons?: React.ReactElement;\n};\n\nconst preventDefault: RadixDialog.DialogContentProps['onPointerDownOutside'] = (\n e\n) => {\n e.preventDefault();\n};\n\nfunction Content(props: ContentProps): React.ReactElement {\n const {\n children,\n style = {},\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n title,\n buttons,\n hideCloseButton,\n className,\n ...rest\n } = props;\n const { dialogContainerRef } = usePortalContainer();\n\n return (\n <RadixDialog.Portal container={dialogContainerRef.current}>\n <Theme asChild>\n <RadixDialog.Overlay className=\"DialogOverlay\">\n <RadixDialog.Content\n className={`DialogContent ${className || ''}`}\n onPointerDownOutside={preventDefault}\n style={{\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n ...style,\n }}\n {...rest}\n >\n <Flex gap=\"2\" justify=\"between\">\n <RadixDialog.Title asChild>\n {typeof title === 'string' ? (\n <Heading align=\"center\" mb=\"2\" variant=\"heading3\">\n {title}\n </Heading>\n ) : (\n title\n )}\n </RadixDialog.Title>\n {!hideCloseButton && (\n <RadixDialog.Close asChild className=\"DialogClose\">\n <IconButton color=\"gray\" variant=\"ghost\">\n <Cross1Icon />\n </IconButton>\n </RadixDialog.Close>\n )}\n </Flex>\n {children}\n {buttons ? (\n <Flex gap=\"3\" justify=\"end\" mt=\"3\">\n {buttons}\n </Flex>\n ) : null}\n </RadixDialog.Content>\n </RadixDialog.Overlay>\n </Theme>\n </RadixDialog.Portal>\n );\n}\n\nfunction Close({\n children,\n ...rest\n}: RadixDialog.DialogCloseProps): React.ReactElement {\n return (\n <RadixDialog.Close asChild {...rest}>\n {children}\n </RadixDialog.Close>\n );\n}\n\nfunction Trigger({\n children,\n ...rest\n}: RadixDialog.DialogTriggerProps): React.ReactElement {\n return (\n <RadixDialog.Trigger asChild {...rest}>\n {children}\n </RadixDialog.Trigger>\n );\n}\n\nexport const Dialog = {\n Root: RadixDialog.Root,\n Trigger,\n Content,\n Close,\n Description: RadixDialog.Description,\n Title: RadixDialog.Title,\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,YAAY,iBAAiB;AAC7B,SAAS,kBAAkB;AAC3B,SAAS,MAAM,aAAa;AA4DhB,SAGM,KAHN;AA1CZ,IAAM,iBAAyE,CAC7E,MACG;AACH,IAAE,eAAe;AACnB;AAEA,SAASA,SAAQ,OAAyC;AACxD,QAcI,YAbF;AAAA;AAAA,IACA,QAAQ,CAAC;AAAA,IACT;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAvCJ,IAyCM,IADC,iBACD,IADC;AAAA,IAZH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA;AAGF,QAAM,EAAE,mBAAmB,IAAI,mBAAmB;AAElD,SACE,oBAAa,oBAAZ,EAAmB,WAAW,mBAAmB,SAChD,8BAAC,SAAM,SAAO,MACZ,8BAAa,qBAAZ,EAAoB,WAAU,iBAC7B;AAAA,IAAa;AAAA,IAAZ;AAAA,MACC,WAAW,iBAAiB,aAAa,EAAE;AAAA,MAC3C,sBAAsB;AAAA,MACtB,OAAO;AAAA,QACL;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,SACG;AAAA,OAED,OAZL;AAAA,MAcC;AAAA,6BAAC,QAAK,KAAI,KAAI,SAAQ,WACpB;AAAA,8BAAa,mBAAZ,EAAkB,SAAO,MACvB,iBAAO,UAAU,WAChB,oBAAC,WAAQ,OAAM,UAAS,IAAG,KAAI,SAAQ,YACpC,iBACH,IAEA,OAEJ;AAAA,UACC,CAAC,mBACA,oBAAa,mBAAZ,EAAkB,SAAO,MAAC,WAAU,eACnC,8BAAC,cAAW,OAAM,QAAO,SAAQ,SAC/B,8BAAC,cAAW,GACd,GACF;AAAA,WAEJ;AAAA,QACC;AAAA,QACA,UACC,oBAAC,QAAK,KAAI,KAAI,SAAQ,OAAM,IAAG,KAC5B,mBACH,IACE;AAAA;AAAA;AAAA,EACN,GACF,GACF,GACF;AAEJ;AAEA,SAASC,OAAM,IAGsC;AAHtC,eACb;AAAA;AAAA,EA9FF,IA6Fe,IAEV,iBAFU,IAEV;AAAA,IADH;AAAA;AAGA,SACE,oBAAa,mBAAZ,+BAAkB,SAAO,QAAK,OAA9B,EACE,WACH;AAEJ;AAEA,SAASC,SAAQ,IAGsC;AAHtC,eACf;AAAA;AAAA,EAzGF,IAwGiB,IAEZ,iBAFY,IAEZ;AAAA,IADH;AAAA;AAGA,SACE,oBAAa,qBAAZ,+BAAoB,SAAO,QAAK,OAAhC,EACE,WACH;AAEJ;AAEO,IAAM,SAAS;AAAA,EACpB,MAAkB;AAAA,EAClB,SAAAA;AAAA,EACA,SAAAF;AAAA,EACA,OAAAC;AAAA,EACA,aAAyB;AAAA,EACzB,OAAmB;AACrB;","names":["Content","Close","Trigger"]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OnOfflineRadioCard
|
|
3
|
+
} from "./chunk-CXPOD6VX.js";
|
|
4
|
+
import {
|
|
5
|
+
Dialog
|
|
6
|
+
} from "./chunk-2GVQIRVC.js";
|
|
7
|
+
import {
|
|
8
|
+
Flex
|
|
9
|
+
} from "./chunk-25HMMI7R.js";
|
|
10
|
+
import {
|
|
11
|
+
Typo
|
|
12
|
+
} from "./chunk-52MVZ6AN.js";
|
|
13
|
+
import {
|
|
14
|
+
Button
|
|
15
|
+
} from "./chunk-Q5AFRGVP.js";
|
|
16
|
+
import {
|
|
17
|
+
Box
|
|
18
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
19
|
+
|
|
20
|
+
// src/app/platform/edit-service-type.tsx
|
|
21
|
+
import { useCallback, useState } from "react";
|
|
22
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
+
function EditServiceType(props) {
|
|
24
|
+
const { defaultServiceType, onClickCancel } = props;
|
|
25
|
+
const [sessionType, setSessionType] = useState(
|
|
26
|
+
defaultServiceType
|
|
27
|
+
);
|
|
28
|
+
const onClickSave = useCallback(() => {
|
|
29
|
+
var _a;
|
|
30
|
+
(_a = props.onClickSave) == null ? void 0 : _a.call(props, sessionType);
|
|
31
|
+
}, [props, sessionType]);
|
|
32
|
+
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
33
|
+
/* @__PURE__ */ jsx(
|
|
34
|
+
Typo,
|
|
35
|
+
{
|
|
36
|
+
as: "p",
|
|
37
|
+
color: "gray",
|
|
38
|
+
mb: { initial: "5", xs: "3" },
|
|
39
|
+
variant: "caption",
|
|
40
|
+
children: "\uC138\uC158 \uC720\uD615\uC5D0 \uB530\uB77C \uCC45\uC815\uB418\uB294 \uCF54\uCE6D \uAE08\uC561\uC774 \uB2EC\uB77C\uC9C0\uBBC0\uB85C, \uC815\uD655\uD558\uAC8C \uC120\uD0DD\uD574\uC8FC\uC138\uC694"
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ jsx(OnOfflineRadioCard, { onValueChange: setSessionType, value: sessionType }),
|
|
44
|
+
/* @__PURE__ */ jsxs(Flex, { gap: "3", justify: "end", mt: { initial: "6", xs: "3" }, children: [
|
|
45
|
+
/* @__PURE__ */ jsx(Dialog.Close, { children: /* @__PURE__ */ jsx(Button, { color: "gray", onClick: onClickCancel, variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
46
|
+
/* @__PURE__ */ jsx(Dialog.Close, { children: /* @__PURE__ */ jsx(Button, { onClick: onClickSave, children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
47
|
+
] })
|
|
48
|
+
] });
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
EditServiceType
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=chunk-42MNZ5HL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/edit-service-type.tsx"],"sourcesContent":["import React, { useCallback, useState } from 'react';\nimport { Box, Button, Dialog, Flex, Typo } from '@/atoms';\nimport type { ServiceType } from '@/types/biz.type';\nimport { OnOfflineRadioCard } from './on-offline-radio-card';\n\nexport interface EditServiceTypeProps {\n defaultServiceType?: ServiceType;\n onClickSave?: (serviceType: ServiceType) => void;\n onClickCancel?: () => void;\n}\n\nexport function EditServiceType(\n props: EditServiceTypeProps\n): React.ReactElement {\n const { defaultServiceType, onClickCancel } = props;\n const [sessionType, setSessionType] = useState<string | undefined>(\n defaultServiceType\n );\n\n const onClickSave = useCallback(() => {\n props.onClickSave?.(sessionType as ServiceType);\n }, [props, sessionType]);\n\n return (\n <Box>\n <Typo\n as=\"p\"\n color=\"gray\"\n mb={{ initial: '5', xs: '3' }}\n variant=\"caption\"\n >\n 세션 유형에 따라 책정되는 코칭 금액이 달라지므로, 정확하게 선택해주세요\n </Typo>\n <OnOfflineRadioCard onValueChange={setSessionType} value={sessionType} />\n <Flex gap=\"3\" justify=\"end\" mt={{ initial: '6', xs: '3' }}>\n <Dialog.Close>\n <Button color=\"gray\" onClick={onClickCancel} variant=\"outline\">\n 취소하기\n </Button>\n </Dialog.Close>\n <Dialog.Close>\n <Button onClick={onClickSave}>저장하기</Button>\n </Dialog.Close>\n </Flex>\n </Box>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,aAAa,gBAAgB;AAyBvC,cASA,YATA;AAdC,SAAS,gBACd,OACoB;AACpB,QAAM,EAAE,oBAAoB,cAAc,IAAI;AAC9C,QAAM,CAAC,aAAa,cAAc,IAAI;AAAA,IACpC;AAAA,EACF;AAEA,QAAM,cAAc,YAAY,MAAM;AAnBxC;AAoBI,gBAAM,gBAAN,+BAAoB;AAAA,EACtB,GAAG,CAAC,OAAO,WAAW,CAAC;AAEvB,SACE,qBAAC,OACC;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH,OAAM;AAAA,QACN,IAAI,EAAE,SAAS,KAAK,IAAI,IAAI;AAAA,QAC5B,SAAQ;AAAA,QACT;AAAA;AAAA,IAED;AAAA,IACA,oBAAC,sBAAmB,eAAe,gBAAgB,OAAO,aAAa;AAAA,IACvE,qBAAC,QAAK,KAAI,KAAI,SAAQ,OAAM,IAAI,EAAE,SAAS,KAAK,IAAI,IAAI,GACtD;AAAA,0BAAC,OAAO,OAAP,EACC,8BAAC,UAAO,OAAM,QAAO,SAAS,eAAe,SAAQ,WAAU,sCAE/D,GACF;AAAA,MACA,oBAAC,OAAO,OAAP,EACC,8BAAC,UAAO,SAAS,aAAa,sCAAI,GACpC;AAAA,OACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Card
|
|
3
|
+
} from "./chunk-2ZQK7NTN.js";
|
|
4
|
+
import {
|
|
5
|
+
Badge
|
|
6
|
+
} from "./chunk-EWD4AO5N.js";
|
|
7
|
+
import {
|
|
8
|
+
Typo
|
|
9
|
+
} from "./chunk-52MVZ6AN.js";
|
|
10
|
+
import {
|
|
11
|
+
Heading
|
|
12
|
+
} from "./chunk-HJB3AASV.js";
|
|
13
|
+
import {
|
|
14
|
+
Box
|
|
15
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
16
|
+
import {
|
|
17
|
+
Flex
|
|
18
|
+
} from "./chunk-25HMMI7R.js";
|
|
19
|
+
|
|
20
|
+
// src/app/platform/session-review-simple-read.tsx
|
|
21
|
+
import { useMemo } from "react";
|
|
22
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
+
function SubTitleWrapper({
|
|
24
|
+
children,
|
|
25
|
+
title
|
|
26
|
+
}) {
|
|
27
|
+
return /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "2", children: [
|
|
28
|
+
/* @__PURE__ */ jsx(Heading, { mb: "2", variant: "heading5", weight: "regular", children: title }),
|
|
29
|
+
/* @__PURE__ */ jsx(Box, { children })
|
|
30
|
+
] });
|
|
31
|
+
}
|
|
32
|
+
function SessionReviewSimpleRead({
|
|
33
|
+
helpfulness,
|
|
34
|
+
review
|
|
35
|
+
}) {
|
|
36
|
+
const helpfulnessMeta = useMemo(() => {
|
|
37
|
+
if (helpfulness) {
|
|
38
|
+
return {
|
|
39
|
+
text: "\uB124",
|
|
40
|
+
color: "success"
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
if (typeof helpfulness === "undefined") {
|
|
44
|
+
return {
|
|
45
|
+
text: "-",
|
|
46
|
+
color: "neutral"
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
text: "\uC544\uB2C8\uC694",
|
|
51
|
+
color: "error"
|
|
52
|
+
};
|
|
53
|
+
}, [helpfulness]);
|
|
54
|
+
return /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "5", children: [
|
|
55
|
+
/* @__PURE__ */ jsx(SubTitleWrapper, { title: "\uC774\uBC88 \uCF54\uCE6D\uC774 \uBAA9\uD45C \uB2EC\uC131\uC5D0 \uB3C4\uC6C0\uC774 \uB418\uC5C8\uB098\uC694?", children: /* @__PURE__ */ jsx(Badge, { color: helpfulnessMeta.color, children: helpfulnessMeta.text }) }),
|
|
56
|
+
/* @__PURE__ */ jsx(SubTitleWrapper, { title: "\uC138\uC158 \uD6C4\uAE30", children: /* @__PURE__ */ jsx(Card, { children: review ? /* @__PURE__ */ jsx(Typo, { as: "p", children: review }) : /* @__PURE__ */ jsx(Typo, { color: "gray", children: "\uC785\uB825\uB41C \uD6C4\uAE30\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) }) })
|
|
57
|
+
] }) });
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export {
|
|
61
|
+
SessionReviewSimpleRead
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=chunk-43TEFEIM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/session-review-simple-read.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport type { BadgeProps } from '../../atoms';\nimport { Badge, Box, Card, Flex, Heading, Typo } from '../../atoms';\n\nexport interface SessionReviewSimpleReadProps {\n helpfulness?: boolean;\n review?: string;\n}\n\nfunction SubTitleWrapper({\n children,\n title,\n}: {\n children: React.ReactNode;\n title: string;\n}): JSX.Element {\n return (\n <Flex direction=\"column\" gap=\"2\">\n <Heading mb=\"2\" variant=\"heading5\" weight=\"regular\">\n {title}\n </Heading>\n\n <Box>{children}</Box>\n </Flex>\n );\n}\n\nexport function SessionReviewSimpleRead({\n helpfulness,\n review,\n}: SessionReviewSimpleReadProps): React.ReactElement {\n const helpfulnessMeta = useMemo<{\n text: string;\n color: BadgeProps['color'];\n }>(() => {\n if (helpfulness) {\n return {\n text: '네',\n color: 'success',\n };\n }\n if (typeof helpfulness === 'undefined') {\n return {\n text: '-',\n color: 'neutral',\n };\n }\n return {\n text: '아니요',\n color: 'error',\n };\n }, [helpfulness]);\n\n return (\n <Box>\n <Flex direction=\"column\" gap=\"5\">\n <SubTitleWrapper title=\"이번 코칭이 목표 달성에 도움이 되었나요?\">\n <Badge color={helpfulnessMeta.color}>{helpfulnessMeta.text}</Badge>\n </SubTitleWrapper>\n <SubTitleWrapper title=\"세션 후기\">\n <Card>\n {review ? (\n <Typo as=\"p\">{review}</Typo>\n ) : (\n <Typo color=\"gray\">입력된 후기가 없습니다.</Typo>\n )}\n </Card>\n </SubTitleWrapper>\n </Flex>\n </Box>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,eAAe;AAiB3B,SACE,KADF;AARJ,SAAS,gBAAgB;AAAA,EACvB;AAAA,EACA;AACF,GAGgB;AACd,SACE,qBAAC,QAAK,WAAU,UAAS,KAAI,KAC3B;AAAA,wBAAC,WAAQ,IAAG,KAAI,SAAQ,YAAW,QAAO,WACvC,iBACH;AAAA,IAEA,oBAAC,OAAK,UAAS;AAAA,KACjB;AAEJ;AAEO,SAAS,wBAAwB;AAAA,EACtC;AAAA,EACA;AACF,GAAqD;AACnD,QAAM,kBAAkB,QAGrB,MAAM;AACP,QAAI,aAAa;AACf,aAAO;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF;AACA,QAAI,OAAO,gBAAgB,aAAa;AACtC,aAAO;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF;AACA,WAAO;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,IACT;AAAA,EACF,GAAG,CAAC,WAAW,CAAC;AAEhB,SACE,oBAAC,OACC,+BAAC,QAAK,WAAU,UAAS,KAAI,KAC3B;AAAA,wBAAC,mBAAgB,OAAM,gHACrB,8BAAC,SAAM,OAAO,gBAAgB,OAAQ,0BAAgB,MAAK,GAC7D;AAAA,IACA,oBAAC,mBAAgB,OAAM,6BACrB,8BAAC,QACE,mBACC,oBAAC,QAAK,IAAG,KAAK,kBAAO,IAErB,oBAAC,QAAK,OAAM,QAAO,6EAAa,GAEpC,GACF;AAAA,KACF,GACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OnOfflineRadioCard
|
|
3
|
+
} from "./chunk-4UV3GA6V.js";
|
|
4
|
+
import {
|
|
5
|
+
Dialog
|
|
6
|
+
} from "./chunk-3X6SIK3W.js";
|
|
7
|
+
import {
|
|
8
|
+
Box
|
|
9
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
10
|
+
import {
|
|
11
|
+
Typo
|
|
12
|
+
} from "./chunk-52MVZ6AN.js";
|
|
13
|
+
import {
|
|
14
|
+
Flex
|
|
15
|
+
} from "./chunk-25HMMI7R.js";
|
|
16
|
+
import {
|
|
17
|
+
Button
|
|
18
|
+
} from "./chunk-Q5AFRGVP.js";
|
|
19
|
+
|
|
20
|
+
// src/app/platform/edit-service-type.tsx
|
|
21
|
+
import { useCallback, useState } from "react";
|
|
22
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
+
function EditServiceType(props) {
|
|
24
|
+
const { defaultServiceType, onClickCancel } = props;
|
|
25
|
+
const [sessionType, setSessionType] = useState(
|
|
26
|
+
defaultServiceType
|
|
27
|
+
);
|
|
28
|
+
const onClickSave = useCallback(() => {
|
|
29
|
+
var _a;
|
|
30
|
+
(_a = props.onClickSave) == null ? void 0 : _a.call(props, sessionType);
|
|
31
|
+
}, [props, sessionType]);
|
|
32
|
+
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
33
|
+
/* @__PURE__ */ jsx(
|
|
34
|
+
Typo,
|
|
35
|
+
{
|
|
36
|
+
as: "p",
|
|
37
|
+
color: "gray",
|
|
38
|
+
mb: { initial: "5", xs: "3" },
|
|
39
|
+
variant: "caption",
|
|
40
|
+
children: "\uC138\uC158 \uC720\uD615\uC5D0 \uB530\uB77C \uCC45\uC815\uB418\uB294 \uCF54\uCE6D \uAE08\uC561\uC774 \uB2EC\uB77C\uC9C0\uBBC0\uB85C, \uC815\uD655\uD558\uAC8C \uC120\uD0DD\uD574\uC8FC\uC138\uC694"
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ jsx(OnOfflineRadioCard, { onValueChange: setSessionType, value: sessionType }),
|
|
44
|
+
/* @__PURE__ */ jsxs(Flex, { gap: "3", justify: "end", mt: { initial: "6", xs: "3" }, children: [
|
|
45
|
+
/* @__PURE__ */ jsx(Dialog.Close, { children: /* @__PURE__ */ jsx(Button, { color: "gray", onClick: onClickCancel, variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
46
|
+
/* @__PURE__ */ jsx(Dialog.Close, { children: /* @__PURE__ */ jsx(Button, { onClick: onClickSave, children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
47
|
+
] })
|
|
48
|
+
] });
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
EditServiceType
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=chunk-4TI72EQY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/edit-service-type.tsx"],"sourcesContent":["import React, { useCallback, useState } from 'react';\nimport { Box, Button, Dialog, Flex, Typo } from '@/atoms';\nimport type { ServiceType } from '@/types/biz.type';\nimport { OnOfflineRadioCard } from './on-offline-radio-card';\n\nexport interface EditServiceTypeProps {\n defaultServiceType?: ServiceType;\n onClickSave?: (serviceType: ServiceType) => void;\n onClickCancel?: () => void;\n}\n\nexport function EditServiceType(\n props: EditServiceTypeProps\n): React.ReactElement {\n const { defaultServiceType, onClickCancel } = props;\n const [sessionType, setSessionType] = useState<string | undefined>(\n defaultServiceType\n );\n\n const onClickSave = useCallback(() => {\n props.onClickSave?.(sessionType as ServiceType);\n }, [props, sessionType]);\n\n return (\n <Box>\n <Typo\n as=\"p\"\n color=\"gray\"\n mb={{ initial: '5', xs: '3' }}\n variant=\"caption\"\n >\n 세션 유형에 따라 책정되는 코칭 금액이 달라지므로, 정확하게 선택해주세요\n </Typo>\n <OnOfflineRadioCard onValueChange={setSessionType} value={sessionType} />\n <Flex gap=\"3\" justify=\"end\" mt={{ initial: '6', xs: '3' }}>\n <Dialog.Close>\n <Button color=\"gray\" onClick={onClickCancel} variant=\"outline\">\n 취소하기\n </Button>\n </Dialog.Close>\n <Dialog.Close>\n <Button onClick={onClickSave}>저장하기</Button>\n </Dialog.Close>\n </Flex>\n </Box>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,aAAa,gBAAgB;AAyBvC,cASA,YATA;AAdC,SAAS,gBACd,OACoB;AACpB,QAAM,EAAE,oBAAoB,cAAc,IAAI;AAC9C,QAAM,CAAC,aAAa,cAAc,IAAI;AAAA,IACpC;AAAA,EACF;AAEA,QAAM,cAAc,YAAY,MAAM;AAnBxC;AAoBI,gBAAM,gBAAN,+BAAoB;AAAA,EACtB,GAAG,CAAC,OAAO,WAAW,CAAC;AAEvB,SACE,qBAAC,OACC;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH,OAAM;AAAA,QACN,IAAI,EAAE,SAAS,KAAK,IAAI,IAAI;AAAA,QAC5B,SAAQ;AAAA,QACT;AAAA;AAAA,IAED;AAAA,IACA,oBAAC,sBAAmB,eAAe,gBAAgB,OAAO,aAAa;AAAA,IACvE,qBAAC,QAAK,KAAI,KAAI,SAAQ,OAAM,IAAI,EAAE,SAAS,KAAK,IAAI,IAAI,GACtD;AAAA,0BAAC,OAAO,OAAP,EACC,8BAAC,UAAO,OAAM,QAAO,SAAS,eAAe,SAAQ,WAAU,sCAE/D,GACF;AAAA,MACA,oBAAC,OAAO,OAAP,EACC,8BAAC,UAAO,SAAS,aAAa,sCAAI,GACpC;AAAA,OACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
OnOfflineRadioCard
|
|
3
|
+
} from "./chunk-CXPOD6VX.js";
|
|
4
|
+
import {
|
|
5
|
+
Dialog
|
|
6
|
+
} from "./chunk-UL52QKAX.js";
|
|
7
|
+
import {
|
|
8
|
+
Flex
|
|
9
|
+
} from "./chunk-25HMMI7R.js";
|
|
10
|
+
import {
|
|
11
|
+
Typo
|
|
12
|
+
} from "./chunk-52MVZ6AN.js";
|
|
13
|
+
import {
|
|
14
|
+
Button
|
|
15
|
+
} from "./chunk-Q5AFRGVP.js";
|
|
16
|
+
import {
|
|
17
|
+
Box
|
|
18
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
19
|
+
|
|
20
|
+
// src/app/platform/edit-service-type.tsx
|
|
21
|
+
import { useCallback, useState } from "react";
|
|
22
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
23
|
+
function EditServiceType(props) {
|
|
24
|
+
const { defaultServiceType, onClickCancel } = props;
|
|
25
|
+
const [sessionType, setSessionType] = useState(
|
|
26
|
+
defaultServiceType
|
|
27
|
+
);
|
|
28
|
+
const onClickSave = useCallback(() => {
|
|
29
|
+
var _a;
|
|
30
|
+
(_a = props.onClickSave) == null ? void 0 : _a.call(props, sessionType);
|
|
31
|
+
}, [props, sessionType]);
|
|
32
|
+
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
33
|
+
/* @__PURE__ */ jsx(
|
|
34
|
+
Typo,
|
|
35
|
+
{
|
|
36
|
+
as: "p",
|
|
37
|
+
color: "gray",
|
|
38
|
+
mb: { initial: "5", xs: "3" },
|
|
39
|
+
variant: "caption",
|
|
40
|
+
children: "\uC138\uC158 \uC720\uD615\uC5D0 \uB530\uB77C \uCC45\uC815\uB418\uB294 \uCF54\uCE6D \uAE08\uC561\uC774 \uB2EC\uB77C\uC9C0\uBBC0\uB85C, \uC815\uD655\uD558\uAC8C \uC120\uD0DD\uD574\uC8FC\uC138\uC694"
|
|
41
|
+
}
|
|
42
|
+
),
|
|
43
|
+
/* @__PURE__ */ jsx(OnOfflineRadioCard, { onValueChange: setSessionType, value: sessionType }),
|
|
44
|
+
/* @__PURE__ */ jsxs(Flex, { gap: "3", justify: "end", mt: { initial: "6", xs: "3" }, children: [
|
|
45
|
+
/* @__PURE__ */ jsx(Dialog.Close, { children: /* @__PURE__ */ jsx(Button, { color: "gray", onClick: onClickCancel, variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
|
|
46
|
+
/* @__PURE__ */ jsx(Dialog.Close, { children: /* @__PURE__ */ jsx(Button, { onClick: onClickSave, children: "\uC800\uC7A5\uD558\uAE30" }) })
|
|
47
|
+
] })
|
|
48
|
+
] });
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export {
|
|
52
|
+
EditServiceType
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=chunk-4VRGGFOT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/edit-service-type.tsx"],"sourcesContent":["import React, { useCallback, useState } from 'react';\nimport { Box, Button, Dialog, Flex, Typo } from '@/atoms';\nimport type { ServiceType } from '@/types/biz.type';\nimport { OnOfflineRadioCard } from './on-offline-radio-card';\n\nexport interface EditServiceTypeProps {\n defaultServiceType?: ServiceType;\n onClickSave?: (serviceType: ServiceType) => void;\n onClickCancel?: () => void;\n}\n\nexport function EditServiceType(\n props: EditServiceTypeProps\n): React.ReactElement {\n const { defaultServiceType, onClickCancel } = props;\n const [sessionType, setSessionType] = useState<string | undefined>(\n defaultServiceType\n );\n\n const onClickSave = useCallback(() => {\n props.onClickSave?.(sessionType as ServiceType);\n }, [props, sessionType]);\n\n return (\n <Box>\n <Typo\n as=\"p\"\n color=\"gray\"\n mb={{ initial: '5', xs: '3' }}\n variant=\"caption\"\n >\n 세션 유형에 따라 책정되는 코칭 금액이 달라지므로, 정확하게 선택해주세요\n </Typo>\n <OnOfflineRadioCard onValueChange={setSessionType} value={sessionType} />\n <Flex gap=\"3\" justify=\"end\" mt={{ initial: '6', xs: '3' }}>\n <Dialog.Close>\n <Button color=\"gray\" onClick={onClickCancel} variant=\"outline\">\n 취소하기\n </Button>\n </Dialog.Close>\n <Dialog.Close>\n <Button onClick={onClickSave}>저장하기</Button>\n </Dialog.Close>\n </Flex>\n </Box>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,aAAa,gBAAgB;AAyBvC,cASA,YATA;AAdC,SAAS,gBACd,OACoB;AACpB,QAAM,EAAE,oBAAoB,cAAc,IAAI;AAC9C,QAAM,CAAC,aAAa,cAAc,IAAI;AAAA,IACpC;AAAA,EACF;AAEA,QAAM,cAAc,YAAY,MAAM;AAnBxC;AAoBI,gBAAM,gBAAN,+BAAoB;AAAA,EACtB,GAAG,CAAC,OAAO,WAAW,CAAC;AAEvB,SACE,qBAAC,OACC;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,IAAG;AAAA,QACH,OAAM;AAAA,QACN,IAAI,EAAE,SAAS,KAAK,IAAI,IAAI;AAAA,QAC5B,SAAQ;AAAA,QACT;AAAA;AAAA,IAED;AAAA,IACA,oBAAC,sBAAmB,eAAe,gBAAgB,OAAO,aAAa;AAAA,IACvE,qBAAC,QAAK,KAAI,KAAI,SAAQ,OAAM,IAAI,EAAE,SAAS,KAAK,IAAI,IAAI,GACtD;AAAA,0BAAC,OAAO,OAAP,EACC,8BAAC,UAAO,OAAM,QAAO,SAAS,eAAe,SAAQ,WAAU,sCAE/D,GACF;AAAA,MACA,oBAAC,OAAO,OAAP,EACC,8BAAC,UAAO,SAAS,aAAa,sCAAI,GACpC;AAAA,OACF;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ClosePanelArrowIcon
|
|
3
|
+
} from "./chunk-UNTA4JJU.js";
|
|
4
|
+
import {
|
|
5
|
+
Separator
|
|
6
|
+
} from "./chunk-HYITAA4J.js";
|
|
7
|
+
import {
|
|
8
|
+
usePortalContainer
|
|
9
|
+
} from "./chunk-TD45ZF7D.js";
|
|
10
|
+
import {
|
|
11
|
+
IconButton
|
|
12
|
+
} from "./chunk-O3DNDMV3.js";
|
|
13
|
+
import {
|
|
14
|
+
Flex
|
|
15
|
+
} from "./chunk-25HMMI7R.js";
|
|
16
|
+
import {
|
|
17
|
+
__objRest,
|
|
18
|
+
__spreadProps,
|
|
19
|
+
__spreadValues
|
|
20
|
+
} from "./chunk-N552FDTV.js";
|
|
21
|
+
|
|
22
|
+
// src/atoms/drawer.tsx
|
|
23
|
+
import * as Dialog from "@radix-ui/react-dialog";
|
|
24
|
+
import { Grid, Theme } from "@radix-ui/themes";
|
|
25
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
26
|
+
function Root2(props) {
|
|
27
|
+
return /* @__PURE__ */ jsx(Dialog.Root, __spreadValues({}, props));
|
|
28
|
+
}
|
|
29
|
+
var preventDefault = (e) => {
|
|
30
|
+
e.preventDefault();
|
|
31
|
+
};
|
|
32
|
+
function Content2(props) {
|
|
33
|
+
const _a = props, { position = "right", className, children } = _a, rest = __objRest(_a, ["position", "className", "children"]);
|
|
34
|
+
const mobileHeaderSize = 48;
|
|
35
|
+
const desktopHeaderSize = 64;
|
|
36
|
+
const separatorSize = 1;
|
|
37
|
+
const { drawerContainerRef } = usePortalContainer();
|
|
38
|
+
return /* @__PURE__ */ jsx(Dialog.Portal, { container: drawerContainerRef.current, children: /* @__PURE__ */ jsxs(Theme, { children: [
|
|
39
|
+
/* @__PURE__ */ jsx(Dialog.Overlay, { className: "DrawerOverlay" }),
|
|
40
|
+
/* @__PURE__ */ jsx(
|
|
41
|
+
Dialog.Content,
|
|
42
|
+
__spreadProps(__spreadValues({
|
|
43
|
+
className: `DrawerContent ${position} ${className || ""}`,
|
|
44
|
+
onPointerDownOutside: preventDefault
|
|
45
|
+
}, rest), {
|
|
46
|
+
children: /* @__PURE__ */ jsxs(
|
|
47
|
+
Grid,
|
|
48
|
+
{
|
|
49
|
+
height: "100%",
|
|
50
|
+
overflow: "hidden",
|
|
51
|
+
rows: {
|
|
52
|
+
initial: `${mobileHeaderSize}px ${separatorSize}px calc(100% - ${mobileHeaderSize + separatorSize}px)`,
|
|
53
|
+
sm: `${desktopHeaderSize}px ${separatorSize}px calc(100% - ${desktopHeaderSize + separatorSize}px)`
|
|
54
|
+
},
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ jsx(Flex, { align: "center", px: { initial: "4", md: "6" }, children: /* @__PURE__ */ jsx(Dialog.Close, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { color: "gray", variant: "outline", children: /* @__PURE__ */ jsx(ClosePanelArrowIcon, {}) }) }) }),
|
|
57
|
+
/* @__PURE__ */ jsx(Separator, { orientation: "horizontal", size: "4" }),
|
|
58
|
+
children
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
})
|
|
63
|
+
)
|
|
64
|
+
] }) });
|
|
65
|
+
}
|
|
66
|
+
function Trigger2(props) {
|
|
67
|
+
return /* @__PURE__ */ jsx(Dialog.Trigger, __spreadValues({ asChild: true }, props));
|
|
68
|
+
}
|
|
69
|
+
var Drawer = {
|
|
70
|
+
Root: Dialog.Root,
|
|
71
|
+
Trigger: Trigger2,
|
|
72
|
+
Content: Content2,
|
|
73
|
+
Close: Dialog.Close,
|
|
74
|
+
Title: Dialog.Title,
|
|
75
|
+
Description: Dialog.Description
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export {
|
|
79
|
+
Root2 as Root,
|
|
80
|
+
Content2 as Content,
|
|
81
|
+
Trigger2 as Trigger,
|
|
82
|
+
Drawer
|
|
83
|
+
};
|
|
84
|
+
//# sourceMappingURL=chunk-57F5B7FE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/atoms/drawer.tsx"],"sourcesContent":["import React from 'react';\nimport * as Dialog from '@radix-ui/react-dialog';\nimport { Grid, Theme } from '@radix-ui/themes';\nimport { usePortalContainer } from '@/theme/portal-provider';\nimport { ClosePanelArrowIcon } from '../icons/close-panel-arrow';\nimport { Flex } from './flex';\nimport { Separator } from './separator';\nimport { IconButton } from './icon-button';\n\nexport function Root(props: Dialog.DialogProps): React.ReactNode {\n return <Dialog.Root {...props} />;\n}\n\ntype ContentProps = Dialog.DialogContentProps & {\n /** Drawer가 붙는 위치, 기본값 right */\n position?: 'left' | 'right' | 'bottom' | 'top';\n};\n\nconst preventDefault: Dialog.DialogContentProps['onPointerDownOutside'] = (\n e\n) => {\n e.preventDefault();\n};\n\nexport function Content(props: ContentProps): React.ReactElement {\n const { position = 'right', className, children, ...rest } = props;\n\n const mobileHeaderSize = 48;\n const desktopHeaderSize = 64;\n const separatorSize = 1;\n const { drawerContainerRef } = usePortalContainer();\n\n return (\n <Dialog.Portal container={drawerContainerRef.current}>\n <Theme>\n <Dialog.Overlay className=\"DrawerOverlay\" />\n <Dialog.Content\n className={`DrawerContent ${position} ${className || ''}`}\n onPointerDownOutside={preventDefault}\n {...rest}\n >\n <Grid\n height=\"100%\"\n overflow=\"hidden\"\n rows={{\n initial: `${mobileHeaderSize}px ${separatorSize}px calc(100% - ${mobileHeaderSize + separatorSize}px)`,\n sm: `${desktopHeaderSize}px ${separatorSize}px calc(100% - ${desktopHeaderSize + separatorSize}px)`,\n }}\n >\n <Flex align=\"center\" px={{ initial: '4', md: '6' }}>\n <Dialog.Close asChild>\n <IconButton color=\"gray\" variant=\"outline\">\n <ClosePanelArrowIcon />\n </IconButton>\n </Dialog.Close>\n </Flex>\n <Separator orientation=\"horizontal\" size=\"4\" />\n {children}\n </Grid>\n </Dialog.Content>\n </Theme>\n </Dialog.Portal>\n );\n}\n\nexport function Trigger(props: Dialog.DialogTriggerProps): React.ReactElement {\n return <Dialog.Trigger asChild {...props} />;\n}\n\nexport const Drawer = {\n Root: Dialog.Root,\n Trigger,\n Content,\n Close: Dialog.Close,\n Title: Dialog.Title,\n Description: Dialog.Description,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,YAAY,YAAY;AACxB,SAAS,MAAM,aAAa;AAQnB,cA+BC,YA/BD;AADF,SAASA,MAAK,OAA4C;AAC/D,SAAO,oBAAQ,aAAP,mBAAgB,MAAO;AACjC;AAOA,IAAM,iBAAoE,CACxE,MACG;AACH,IAAE,eAAe;AACnB;AAEO,SAASC,SAAQ,OAAyC;AAC/D,QAA6D,YAArD,aAAW,SAAS,WAAW,SAzBzC,IAyB+D,IAAT,iBAAS,IAAT,CAA5C,YAAoB,aAAW;AAEvC,QAAM,mBAAmB;AACzB,QAAM,oBAAoB;AAC1B,QAAM,gBAAgB;AACtB,QAAM,EAAE,mBAAmB,IAAI,mBAAmB;AAElD,SACE,oBAAQ,eAAP,EAAc,WAAW,mBAAmB,SAC3C,+BAAC,SACC;AAAA,wBAAQ,gBAAP,EAAe,WAAU,iBAAgB;AAAA,IAC1C;AAAA,MAAQ;AAAA,MAAP;AAAA,QACC,WAAW,iBAAiB,QAAQ,IAAI,aAAa,EAAE;AAAA,QACvD,sBAAsB;AAAA,SAClB,OAHL;AAAA,QAKC;AAAA,UAAC;AAAA;AAAA,YACC,QAAO;AAAA,YACP,UAAS;AAAA,YACT,MAAM;AAAA,cACJ,SAAS,GAAG,gBAAgB,MAAM,aAAa,kBAAkB,mBAAmB,aAAa;AAAA,cACjG,IAAI,GAAG,iBAAiB,MAAM,aAAa,kBAAkB,oBAAoB,aAAa;AAAA,YAChG;AAAA,YAEA;AAAA,kCAAC,QAAK,OAAM,UAAS,IAAI,EAAE,SAAS,KAAK,IAAI,IAAI,GAC/C,8BAAQ,cAAP,EAAa,SAAO,MACnB,8BAAC,cAAW,OAAM,QAAO,SAAQ,WAC/B,8BAAC,uBAAoB,GACvB,GACF,GACF;AAAA,cACA,oBAAC,aAAU,aAAY,cAAa,MAAK,KAAI;AAAA,cAC5C;AAAA;AAAA;AAAA,QACH;AAAA;AAAA,IACF;AAAA,KACF,GACF;AAEJ;AAEO,SAASC,SAAQ,OAAsD;AAC5E,SAAO,oBAAQ,gBAAP,iBAAe,SAAO,QAAK,MAAO;AAC5C;AAEO,IAAM,SAAS;AAAA,EACpB,MAAa;AAAA,EACb,SAAAA;AAAA,EACA,SAAAD;AAAA,EACA,OAAc;AAAA,EACd,OAAc;AAAA,EACd,aAAoB;AACtB;","names":["Root","Content","Trigger"]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import {
|
|
2
|
+
infoList,
|
|
3
|
+
renderDataListItem,
|
|
4
|
+
renderItem,
|
|
5
|
+
sessionList
|
|
6
|
+
} from "./chunk-QUHTO7MY.js";
|
|
7
|
+
import {
|
|
8
|
+
Grid
|
|
9
|
+
} from "./chunk-EGEQY3KT.js";
|
|
10
|
+
import {
|
|
11
|
+
DataList
|
|
12
|
+
} from "./chunk-VTJZMOSP.js";
|
|
13
|
+
import {
|
|
14
|
+
Heading
|
|
15
|
+
} from "./chunk-HJB3AASV.js";
|
|
16
|
+
import {
|
|
17
|
+
Separator
|
|
18
|
+
} from "./chunk-HYITAA4J.js";
|
|
19
|
+
import {
|
|
20
|
+
Flex
|
|
21
|
+
} from "./chunk-25HMMI7R.js";
|
|
22
|
+
import {
|
|
23
|
+
Typo
|
|
24
|
+
} from "./chunk-52MVZ6AN.js";
|
|
25
|
+
import {
|
|
26
|
+
Card
|
|
27
|
+
} from "./chunk-2ZQK7NTN.js";
|
|
28
|
+
import {
|
|
29
|
+
Box
|
|
30
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
31
|
+
|
|
32
|
+
// src/app/platform/userInfos/coaching-customer-info/medium.tsx
|
|
33
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
34
|
+
function CoachingCustomerInfoMedium({
|
|
35
|
+
customer,
|
|
36
|
+
session,
|
|
37
|
+
children,
|
|
38
|
+
badge,
|
|
39
|
+
onClickCopy
|
|
40
|
+
}) {
|
|
41
|
+
return /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "5", children: [
|
|
42
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
43
|
+
/* @__PURE__ */ jsxs(Flex, { align: "center", justify: "between", mb: "1", width: "100%", children: [
|
|
44
|
+
/* @__PURE__ */ jsx(Heading, { variant: "heading2", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
|
|
45
|
+
badge
|
|
46
|
+
] }),
|
|
47
|
+
/* @__PURE__ */ jsx(Heading, { truncate: true, variant: "heading4", weight: "regular", children: customer == null ? void 0 : customer.company })
|
|
48
|
+
] }),
|
|
49
|
+
children,
|
|
50
|
+
/* @__PURE__ */ jsx(Card, { size: "2", children: /* @__PURE__ */ jsx(DataList.Root, { orientation: "vertical", children: sessionList.map(
|
|
51
|
+
(el) => renderDataListItem({
|
|
52
|
+
info: el,
|
|
53
|
+
data: session,
|
|
54
|
+
onClickCopy
|
|
55
|
+
})
|
|
56
|
+
) }) }),
|
|
57
|
+
/* @__PURE__ */ jsxs(Grid, { align: "center", columns: "auto 1fr", gap: "3", children: [
|
|
58
|
+
/* @__PURE__ */ jsx(Heading, { variant: "heading5", children: "\uACE0\uAC1D \uC815\uBCF4" }),
|
|
59
|
+
/* @__PURE__ */ jsx(Separator, { size: "4" })
|
|
60
|
+
] }),
|
|
61
|
+
/* @__PURE__ */ jsx(Flex, { direction: "column", gap: "4", children: infoList.map((el) => {
|
|
62
|
+
return /* @__PURE__ */ jsx(Typo, { children: renderItem({
|
|
63
|
+
info: el,
|
|
64
|
+
data: customer,
|
|
65
|
+
onClickCopy
|
|
66
|
+
}) }, el.label);
|
|
67
|
+
}) })
|
|
68
|
+
] });
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export {
|
|
72
|
+
CoachingCustomerInfoMedium
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=chunk-5F7NVKMI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/app/platform/userInfos/coaching-customer-info/medium.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Box,\n Card,\n DataList,\n Flex,\n Grid,\n Heading,\n Separator,\n Typo,\n} from '../../../../atoms';\nimport type { CoachingCustomerInfoProps } from '../utils';\nimport {\n infoList,\n renderDataListItem,\n renderItem,\n sessionList,\n} from '../utils';\n\nexport function CoachingCustomerInfoMedium({\n customer,\n session,\n children,\n badge,\n onClickCopy,\n}: CoachingCustomerInfoProps): React.ReactElement {\n return (\n <Flex direction=\"column\" gap=\"5\">\n {/* 이름, 사명 */}\n <Box>\n <Flex align=\"center\" justify=\"between\" mb=\"1\" width=\"100%\">\n <Heading variant=\"heading2\">\n {customer?.username || '이름 없음'}\n </Heading>\n {badge}\n </Flex>\n <Heading truncate variant=\"heading4\" weight=\"regular\">\n {customer?.company}\n </Heading>\n </Box>\n\n {children}\n\n {/* 세션 정보 */}\n <Card size=\"2\">\n <DataList.Root orientation=\"vertical\">\n {sessionList.map((el) =>\n renderDataListItem({\n info: el,\n data: session,\n onClickCopy,\n })\n )}\n </DataList.Root>\n </Card>\n\n {/* 회원 정보 */}\n <Grid align=\"center\" columns=\"auto 1fr\" gap=\"3\">\n <Heading variant=\"heading5\">고객 정보</Heading>\n <Separator size=\"4\" />\n </Grid>\n <Flex direction=\"column\" gap=\"4\">\n {infoList.map((el) => {\n return (\n <Typo key={el.label}>\n {renderItem({\n info: el,\n data: customer,\n onClickCopy,\n })}\n </Typo>\n );\n })}\n </Flex>\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BQ,SACE,KADF;AAXD,SAAS,2BAA2B;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAkD;AAChD,SACE,qBAAC,QAAK,WAAU,UAAS,KAAI,KAE3B;AAAA,yBAAC,OACC;AAAA,2BAAC,QAAK,OAAM,UAAS,SAAQ,WAAU,IAAG,KAAI,OAAM,QAClD;AAAA,4BAAC,WAAQ,SAAQ,YACd,gDAAU,aAAY,6BACzB;AAAA,QACC;AAAA,SACH;AAAA,MACA,oBAAC,WAAQ,UAAQ,MAAC,SAAQ,YAAW,QAAO,WACzC,+CAAU,SACb;AAAA,OACF;AAAA,IAEC;AAAA,IAGD,oBAAC,QAAK,MAAK,KACT,8BAAC,SAAS,MAAT,EAAc,aAAY,YACxB,sBAAY;AAAA,MAAI,CAAC,OAChB,mBAAmB;AAAA,QACjB,MAAM;AAAA,QACN,MAAM;AAAA,QACN;AAAA,MACF,CAAC;AAAA,IACH,GACF,GACF;AAAA,IAGA,qBAAC,QAAK,OAAM,UAAS,SAAQ,YAAW,KAAI,KAC1C;AAAA,0BAAC,WAAQ,SAAQ,YAAW,uCAAK;AAAA,MACjC,oBAAC,aAAU,MAAK,KAAI;AAAA,OACtB;AAAA,IACA,oBAAC,QAAK,WAAU,UAAS,KAAI,KAC1B,mBAAS,IAAI,CAAC,OAAO;AACpB,aACE,oBAAC,QACE,qBAAW;AAAA,QACV,MAAM;AAAA,QACN,MAAM;AAAA,QACN;AAAA,MACF,CAAC,KALQ,GAAG,KAMd;AAAA,IAEJ,CAAC,GACH;AAAA,KACF;AAEJ;","names":[]}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// src/theme/portal-provider.tsx
|
|
2
|
+
import { createContext, useContext, useRef } from "react";
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
var PortalContext = createContext(
|
|
5
|
+
null
|
|
6
|
+
);
|
|
7
|
+
function PortalProvider({ children }) {
|
|
8
|
+
const dialogContainerRef = useRef(null);
|
|
9
|
+
const drawerContainerRef = useRef(null);
|
|
10
|
+
return /* @__PURE__ */ jsxs(PortalContext.Provider, { value: { dialogContainerRef, drawerContainerRef }, children: [
|
|
11
|
+
children,
|
|
12
|
+
/* @__PURE__ */ jsx("div", { ref: drawerContainerRef }),
|
|
13
|
+
/* @__PURE__ */ jsx("div", { ref: dialogContainerRef })
|
|
14
|
+
] });
|
|
15
|
+
}
|
|
16
|
+
var usePortalContainer = () => {
|
|
17
|
+
try {
|
|
18
|
+
const state = useContext(PortalContext);
|
|
19
|
+
return state;
|
|
20
|
+
} catch (error) {
|
|
21
|
+
throw new Error("PortalProvider not found");
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
var portal_provider_default = PortalProvider;
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
usePortalContainer,
|
|
28
|
+
portal_provider_default
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=chunk-5JJVLL2A.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/theme/portal-provider.tsx"],"sourcesContent":["import React, { createContext, useContext, useRef } from 'react';\n\ninterface PortalProviderProps {\n children: React.ReactElement;\n}\n\ninterface PortalState {\n dialogContainerRef: React.RefObject<HTMLDivElement>;\n drawerContainerRef: React.RefObject<HTMLDivElement>;\n}\n\nconst PortalContext = createContext<PortalState>(\n null as unknown as PortalState\n);\n\nfunction PortalProvider({ children }: PortalProviderProps): JSX.Element {\n const dialogContainerRef = useRef<HTMLDivElement | null>(null);\n const drawerContainerRef = useRef<HTMLDivElement | null>(null);\n\n return (\n <PortalContext.Provider value={{ dialogContainerRef, drawerContainerRef }}>\n {children}\n <div ref={drawerContainerRef} />\n <div ref={dialogContainerRef} />\n </PortalContext.Provider>\n );\n}\n\nexport const usePortalContainer = (): PortalState => {\n try {\n const state = useContext(PortalContext);\n return state;\n } catch (error) {\n throw new Error('PortalProvider not found');\n }\n};\nexport default PortalProvider;\n"],"mappings":";AAAA,SAAgB,eAAe,YAAY,cAAc;AAoBrD,SAEE,KAFF;AATJ,IAAM,gBAAgB;AAAA,EACpB;AACF;AAEA,SAAS,eAAe,EAAE,SAAS,GAAqC;AACtE,QAAM,qBAAqB,OAA8B,IAAI;AAC7D,QAAM,qBAAqB,OAA8B,IAAI;AAE7D,SACE,qBAAC,cAAc,UAAd,EAAuB,OAAO,EAAE,oBAAoB,mBAAmB,GACrE;AAAA;AAAA,IACD,oBAAC,SAAI,KAAK,oBAAoB;AAAA,IAC9B,oBAAC,SAAI,KAAK,oBAAoB;AAAA,KAChC;AAEJ;AAEO,IAAM,qBAAqB,MAAmB;AACnD,MAAI;AACF,UAAM,QAAQ,WAAW,aAAa;AACtC,WAAO;AAAA,EACT,SAAS,OAAO;AACd,UAAM,IAAI,MAAM,0BAA0B;AAAA,EAC5C;AACF;AACA,IAAO,0BAAQ;","names":[]}
|