@tipp/ui 2.0.3 → 2.0.5

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.
Files changed (122) hide show
  1. package/dist/app/index.js +41 -41
  2. package/dist/app/platform/coach-question-list.js +27 -27
  3. package/dist/app/platform/contents-card.js +27 -27
  4. package/dist/app/platform/curriculum-card.js +2 -2
  5. package/dist/app/platform/edit-coaching-time.js +29 -29
  6. package/dist/app/platform/edit-service-type.js +29 -29
  7. package/dist/app/platform/goal-manage-card-edit.js +30 -30
  8. package/dist/app/platform/goal-manage-card-read.js +27 -27
  9. package/dist/app/platform/on-offline-radio-card.js +29 -29
  10. package/dist/app/platform/report-card.js +27 -27
  11. package/dist/app/platform/reservation-card.js +30 -30
  12. package/dist/app/platform/session-card.js +30 -30
  13. package/dist/app/platform/session-review-simple-read.js +27 -27
  14. package/dist/app/platform/userInfos/coaching-customer-info/index.js +29 -29
  15. package/dist/app/platform/userInfos/coaching-customer-info/large.js +27 -27
  16. package/dist/app/platform/userInfos/coaching-customer-info/medium.js +27 -27
  17. package/dist/app/platform/userInfos/coaching-customer-info/small.js +26 -26
  18. package/dist/app/platform/userInfos/session-user-info-detail.js +26 -26
  19. package/dist/app/platform/userInfos/utils.js +26 -26
  20. package/dist/atoms/index.js +62 -62
  21. package/dist/{chunk-L44AC52S.js → chunk-2NPJVXPG.js} +7 -7
  22. package/dist/{chunk-VTWZCX6H.js → chunk-5KZGH6FB.js} +2 -2
  23. package/dist/{chunk-CQSOA3HY.js → chunk-LI5NKNUK.js} +2 -2
  24. package/dist/index.js +89 -89
  25. package/dist/molecules/date-picker/date-picker-button.js +26 -26
  26. package/dist/molecules/expand-table/index.js +26 -26
  27. package/dist/molecules/expand-table/row.js +26 -26
  28. package/dist/molecules/index.js +29 -29
  29. package/dist/molecules/learning-post.js +2 -2
  30. package/dist/molecules/navigation.js +26 -26
  31. package/dist/molecules/radio-button-card.js +26 -26
  32. package/dist/molecules/stepper.js +2 -2
  33. package/dist/molecules/tag-selector.js +27 -27
  34. package/dist/molecules/time-select.js +26 -26
  35. package/package.json +3 -4
  36. package/dist/chunk-2K4GU6TT.js +0 -174
  37. package/dist/chunk-2K4GU6TT.js.map +0 -1
  38. package/dist/chunk-3CVQG5IO.js +0 -54
  39. package/dist/chunk-3CVQG5IO.js.map +0 -1
  40. package/dist/chunk-3FEMWCWV.js +0 -23
  41. package/dist/chunk-3FEMWCWV.js.map +0 -1
  42. package/dist/chunk-4LYUNBCH.js +0 -174
  43. package/dist/chunk-4LYUNBCH.js.map +0 -1
  44. package/dist/chunk-4NBRGUIC.js +0 -144
  45. package/dist/chunk-54C63CWN.js +0 -74
  46. package/dist/chunk-54C63CWN.js.map +0 -1
  47. package/dist/chunk-5DTCJF6D.js +0 -144
  48. package/dist/chunk-5DTCJF6D.js.map +0 -1
  49. package/dist/chunk-6OQQUSCX.js +0 -281
  50. package/dist/chunk-75ENC5RS.js +0 -30
  51. package/dist/chunk-75ENC5RS.js.map +0 -1
  52. package/dist/chunk-7IX5IEPU.js +0 -63
  53. package/dist/chunk-7IX5IEPU.js.map +0 -1
  54. package/dist/chunk-7VJB7OZ3.js +0 -145
  55. package/dist/chunk-ACG3G2CH.js +0 -31
  56. package/dist/chunk-ACG3G2CH.js.map +0 -1
  57. package/dist/chunk-AEPCBZF7.js +0 -30
  58. package/dist/chunk-AEPCBZF7.js.map +0 -1
  59. package/dist/chunk-AJU5NJ2C.js +0 -97
  60. package/dist/chunk-AJU5NJ2C.js.map +0 -1
  61. package/dist/chunk-BZVP23R4.js +0 -145
  62. package/dist/chunk-BZVP23R4.js.map +0 -1
  63. package/dist/chunk-CQSOA3HY.js.map +0 -1
  64. package/dist/chunk-DFXO2GOC.js +0 -144
  65. package/dist/chunk-DFXO2GOC.js.map +0 -1
  66. package/dist/chunk-DQGB3JQA.js +0 -63
  67. package/dist/chunk-DQGB3JQA.js.map +0 -1
  68. package/dist/chunk-E3T66HOA.js +0 -106
  69. package/dist/chunk-E3T66HOA.js.map +0 -1
  70. package/dist/chunk-ESHEHOVH.js +0 -63
  71. package/dist/chunk-ESHEHOVH.js.map +0 -1
  72. package/dist/chunk-FV26PAOO.js +0 -352
  73. package/dist/chunk-FV26PAOO.js.map +0 -1
  74. package/dist/chunk-GSU262TZ.js +0 -101
  75. package/dist/chunk-GSU262TZ.js.map +0 -1
  76. package/dist/chunk-HOKENHFD.js +0 -281
  77. package/dist/chunk-HOKENHFD.js.map +0 -1
  78. package/dist/chunk-IIN3YNMK.js +0 -281
  79. package/dist/chunk-IIN3YNMK.js.map +0 -1
  80. package/dist/chunk-JDE7356R.js +0 -64
  81. package/dist/chunk-JDE7356R.js.map +0 -1
  82. package/dist/chunk-JKNCADEB.js +0 -74
  83. package/dist/chunk-JKNCADEB.js.map +0 -1
  84. package/dist/chunk-JLT3GUBP.js +0 -144
  85. package/dist/chunk-JLT3GUBP.js.map +0 -1
  86. package/dist/chunk-L44AC52S.js.map +0 -1
  87. package/dist/chunk-LFZ22PRA.js +0 -281
  88. package/dist/chunk-LFZ22PRA.js.map +0 -1
  89. package/dist/chunk-NBPRKG6W.js +0 -106
  90. package/dist/chunk-NBPRKG6W.js.map +0 -1
  91. package/dist/chunk-NJ4N3VCI.js +0 -174
  92. package/dist/chunk-NJ4N3VCI.js.map +0 -1
  93. package/dist/chunk-NVIBNWII.js +0 -57
  94. package/dist/chunk-NVIBNWII.js.map +0 -1
  95. package/dist/chunk-OHIU6IRT.js +0 -174
  96. package/dist/chunk-OHIU6IRT.js.map +0 -1
  97. package/dist/chunk-PE4V3SCZ.js +0 -145
  98. package/dist/chunk-PE4V3SCZ.js.map +0 -1
  99. package/dist/chunk-PEIOKCXD.js +0 -144
  100. package/dist/chunk-PEIOKCXD.js.map +0 -1
  101. package/dist/chunk-PLAQRGID.js +0 -281
  102. package/dist/chunk-PLAQRGID.js.map +0 -1
  103. package/dist/chunk-PWXFETED.js +0 -146
  104. package/dist/chunk-PWXFETED.js.map +0 -1
  105. package/dist/chunk-QMT5IFKD.js +0 -64
  106. package/dist/chunk-QMT5IFKD.js.map +0 -1
  107. package/dist/chunk-S6DQEDBV.js +0 -145
  108. package/dist/chunk-S6DQEDBV.js.map +0 -1
  109. package/dist/chunk-UVACR5CC.js +0 -174
  110. package/dist/chunk-UVACR5CC.js.map +0 -1
  111. package/dist/chunk-VTWZCX6H.js.map +0 -1
  112. package/dist/chunk-YAKVZPPI.js +0 -39
  113. package/dist/chunk-YAKVZPPI.js.map +0 -1
  114. package/dist/chunk-ZEAJABLA.js +0 -146
  115. package/dist/chunk-ZEAJABLA.js.map +0 -1
  116. package/dist/chunk-ZJTONHYI.js +0 -144
  117. package/dist/chunk-ZJTONHYI.js.map +0 -1
  118. package/dist/chunk-ZN52UBYA.js +0 -39
  119. package/dist/chunk-ZN52UBYA.js.map +0 -1
  120. /package/dist/{chunk-7VJB7OZ3.js.map → chunk-2NPJVXPG.js.map} +0 -0
  121. /package/dist/{chunk-6OQQUSCX.js.map → chunk-5KZGH6FB.js.map} +0 -0
  122. /package/dist/{chunk-4NBRGUIC.js.map → chunk-LI5NKNUK.js.map} +0 -0
@@ -1,74 +0,0 @@
1
- import {
2
- infoList,
3
- renderDataListItem,
4
- renderItem,
5
- sessionList
6
- } from "./chunk-E3T66HOA.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-3IT3NVK6.js";
16
- import {
17
- Separator
18
- } from "./chunk-HYITAA4J.js";
19
- import {
20
- Box
21
- } from "./chunk-4Y5BEXVN.js";
22
- import {
23
- Typo
24
- } from "./chunk-LH57PIY2.js";
25
- import {
26
- Flex
27
- } from "./chunk-25HMMI7R.js";
28
- import {
29
- Card
30
- } from "./chunk-HEDMSFPW.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-54C63CWN.js.map
@@ -1 +0,0 @@
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.ReactNode {\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,GAA+C;AAC7C,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":[]}
@@ -1,144 +0,0 @@
1
- import {
2
- EditCoachingTime
3
- } from "./chunk-2K4GU6TT.js";
4
- import {
5
- EditServiceType
6
- } from "./chunk-3CVQG5IO.js";
7
- import {
8
- Grid
9
- } from "./chunk-EGEQY3KT.js";
10
- import {
11
- DataList
12
- } from "./chunk-VTJZMOSP.js";
13
- import {
14
- Dialog
15
- } from "./chunk-NBPRKG6W.js";
16
- import {
17
- Heading
18
- } from "./chunk-3IT3NVK6.js";
19
- import {
20
- Card
21
- } from "./chunk-HEDMSFPW.js";
22
- import {
23
- BulletText
24
- } from "./chunk-LMWTEDYS.js";
25
- import {
26
- Flex
27
- } from "./chunk-25HMMI7R.js";
28
- import {
29
- Button
30
- } from "./chunk-AFPH32MF.js";
31
- import {
32
- Pencil1Icon
33
- } from "./chunk-HLFG5ZTU.js";
34
- import {
35
- __objRest,
36
- __spreadProps,
37
- __spreadValues
38
- } from "./chunk-2NMEKWO5.js";
39
-
40
- // src/app/platform/session-card.tsx
41
- import { useCallback, useMemo } from "react";
42
- import { format } from "date-fns";
43
- import { jsx, jsxs } from "react/jsx-runtime";
44
- var preventDefault = (e) => {
45
- e.preventDefault();
46
- };
47
- function SessionCard(props) {
48
- const _a = props, {
49
- sessionNumber,
50
- userName,
51
- error,
52
- ExtraButtons,
53
- TitleExtra,
54
- editable,
55
- onSaveDate,
56
- onSaveSessionType,
57
- startAt,
58
- endAt,
59
- sessionType
60
- } = _a, rest = __objRest(_a, [
61
- "sessionNumber",
62
- "userName",
63
- "error",
64
- "ExtraButtons",
65
- "TitleExtra",
66
- "editable",
67
- "onSaveDate",
68
- "onSaveSessionType",
69
- "startAt",
70
- "endAt",
71
- "sessionType"
72
- ]);
73
- const renderEditButton = useCallback(() => {
74
- return /* @__PURE__ */ jsx(Button, { color: "gray", ml: "2", variant: "transparent", children: /* @__PURE__ */ jsx(Pencil1Icon, {}) });
75
- }, []);
76
- const sessionTimeStr = useMemo(() => {
77
- if (!startAt || !endAt) return "\uC54C \uC218 \uC5C6\uC74C";
78
- return `${format(startAt, "yyyy\uB144 MM\uC6D4 dd\uC77C HH\uC2DC mm\uBD84")} ~ ${format(endAt, "HH\uC2DC mm\uBD84")}`;
79
- }, [startAt, endAt]);
80
- return /* @__PURE__ */ jsx(Card, __spreadProps(__spreadValues({ error: Boolean(error) }, rest), { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "3", children: [
81
- /* @__PURE__ */ jsxs(Flex, { align: "center", width: "100%", children: [
82
- /* @__PURE__ */ jsx(Heading, { variant: "heading4", children: `${userName || "\uC54C \uC218 \uC5C6\uC74C"}\uB2D8 ${sessionNumber || "-"}\uD68C\uCC28` }),
83
- TitleExtra,
84
- error ? /* @__PURE__ */ jsx(BulletText, { as: "p", color: "red", variant: "caption", children: error }) : null
85
- ] }),
86
- /* @__PURE__ */ jsxs(DataList.Root, { children: [
87
- /* @__PURE__ */ jsxs(DataList.Item, { children: [
88
- /* @__PURE__ */ jsx(DataList.Label, { children: "\uCF54\uCE6D \uC77C\uC2DC" }),
89
- /* @__PURE__ */ jsxs(DataList.Value, { children: [
90
- sessionTimeStr,
91
- editable ? /* @__PURE__ */ jsxs(Dialog.Root, { children: [
92
- /* @__PURE__ */ jsx(Dialog.Trigger, { children: renderEditButton() }),
93
- /* @__PURE__ */ jsx(
94
- Dialog.Content,
95
- {
96
- onOpenAutoFocus: preventDefault,
97
- style: { overflow: "visible" },
98
- title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC77C\uC2DC \uBCC0\uACBD\uD558\uAE30`,
99
- children: /* @__PURE__ */ jsx(
100
- EditCoachingTime,
101
- {
102
- defaultEndAt: endAt,
103
- defaultStartAt: startAt,
104
- onClickSave: onSaveDate
105
- }
106
- )
107
- }
108
- )
109
- ] }) : null
110
- ] })
111
- ] }),
112
- /* @__PURE__ */ jsxs(Grid, { columns: { initial: "1", xs: "2" }, style: { gap: "inherit" }, children: [
113
- /* @__PURE__ */ jsxs(DataList.Item, { children: [
114
- /* @__PURE__ */ jsx(DataList.Label, { children: "\uC138\uC158 \uCC38\uC5EC \uBC29\uC2DD" }),
115
- /* @__PURE__ */ jsxs(DataList.Value, { children: [
116
- sessionType === "offlineCoaching" ? "\uC624\uD504\uB77C\uC778" : "\uC628\uB77C\uC778",
117
- editable ? /* @__PURE__ */ jsxs(Dialog.Root, { children: [
118
- /* @__PURE__ */ jsx(Dialog.Trigger, { children: renderEditButton() }),
119
- /* @__PURE__ */ jsx(
120
- Dialog.Content,
121
- {
122
- title: `${sessionNumber}\uD68C\uCC28 \uC138\uC158 \uC9C4\uD589 \uBC29\uC2DD \uBCC0\uACBD\uD558\uAE30`,
123
- children: /* @__PURE__ */ jsx(
124
- EditServiceType,
125
- {
126
- defaultServiceType: sessionType,
127
- onClickSave: onSaveSessionType
128
- }
129
- )
130
- }
131
- )
132
- ] }) : null
133
- ] })
134
- ] }),
135
- /* @__PURE__ */ jsx(Flex, { gap: "2", justify: "end", children: ExtraButtons })
136
- ] })
137
- ] })
138
- ] }) }));
139
- }
140
-
141
- export {
142
- SessionCard
143
- };
144
- //# sourceMappingURL=chunk-5DTCJF6D.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/app/platform/session-card.tsx"],"sourcesContent":["import React, { useCallback, useMemo } from 'react';\nimport { format } from 'date-fns';\nimport type { ServiceType } from '@/types/biz.type';\nimport type { CardProps } from '../../atoms';\nimport {\n BulletText,\n Button,\n Card,\n DataList,\n Dialog,\n Flex,\n Grid,\n Heading,\n} from '../../atoms';\nimport { Pencil1Icon } from '../../icon';\nimport { EditCoachingTime } from './edit-coaching-time';\nimport { EditServiceType } from './edit-service-type';\n\nconst preventDefault = (e: Event): void => {\n e.preventDefault();\n};\nexport type SessionCardProps = Omit<CardProps, 'error'> & {\n error?: string;\n startAt?: Date;\n endAt?: Date;\n sessionType?: ServiceType;\n userName?: string;\n sessionNumber?: number;\n ExtraButtons?: React.ReactNode;\n editable?: boolean;\n TitleExtra?: React.ReactNode;\n onSaveDate?: (startTime: Date, endTime: Date) => void;\n onSaveSessionType?: (sessionType: string) => void;\n};\n\nexport function SessionCard(props: SessionCardProps): React.ReactNode {\n const {\n sessionNumber,\n userName,\n error,\n ExtraButtons,\n TitleExtra,\n editable,\n onSaveDate,\n onSaveSessionType,\n startAt,\n endAt,\n sessionType,\n ...rest\n } = props;\n\n const renderEditButton = useCallback((): JSX.Element => {\n return (\n <Button color=\"gray\" ml=\"2\" variant=\"transparent\">\n <Pencil1Icon />\n </Button>\n );\n }, []);\n\n const sessionTimeStr = useMemo(() => {\n if (!startAt || !endAt) return '알 수 없음';\n\n return `${format(startAt, 'yyyy년 MM월 dd일 HH시 mm분')} ~ ${format(endAt, 'HH시 mm분')}`;\n }, [startAt, endAt]);\n\n return (\n <Card error={Boolean(error)} {...rest}>\n <Flex direction=\"column\" gap=\"3\">\n <Flex align=\"center\" width=\"100%\">\n <Heading variant=\"heading4\">\n {`${userName || '알 수 없음'}님 ${sessionNumber || '-'}회차`}\n </Heading>\n {TitleExtra}\n {error ? (\n <BulletText as=\"p\" color=\"red\" variant=\"caption\">\n {error}\n </BulletText>\n ) : null}\n </Flex>\n <DataList.Root>\n <DataList.Item>\n <DataList.Label>코칭 일시</DataList.Label>\n <DataList.Value>\n {sessionTimeStr}\n {editable ? (\n <Dialog.Root>\n <Dialog.Trigger>{renderEditButton()}</Dialog.Trigger>\n <Dialog.Content\n onOpenAutoFocus={preventDefault}\n style={{ overflow: 'visible' }}\n title={`${sessionNumber}회차 세션 일시 변경하기`}\n >\n <EditCoachingTime\n defaultEndAt={endAt}\n defaultStartAt={startAt}\n onClickSave={onSaveDate}\n />\n </Dialog.Content>\n </Dialog.Root>\n ) : null}\n </DataList.Value>\n </DataList.Item>\n <Grid columns={{ initial: '1', xs: '2' }} style={{ gap: 'inherit' }}>\n <DataList.Item>\n <DataList.Label>세션 참여 방식</DataList.Label>\n <DataList.Value>\n {sessionType === 'offlineCoaching' ? '오프라인' : '온라인'}\n {editable ? (\n <Dialog.Root>\n <Dialog.Trigger>{renderEditButton()}</Dialog.Trigger>\n <Dialog.Content\n title={`${sessionNumber}회차 세션 진행 방식 변경하기`}\n >\n <EditServiceType\n defaultServiceType={sessionType}\n onClickSave={onSaveSessionType}\n />\n </Dialog.Content>\n </Dialog.Root>\n ) : null}\n </DataList.Value>\n </DataList.Item>\n\n <Flex gap=\"2\" justify=\"end\">\n {ExtraButtons}\n </Flex>\n </Grid>\n </DataList.Root>\n </Flex>\n </Card>\n );\n}\n"],"mappings":"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","names":[]}
@@ -1,281 +0,0 @@
1
- import {
2
- OnOfflineRadioCard
3
- } from "./chunk-4QWYV2QX.js";
4
- import {
5
- DatePickerButton
6
- } from "./chunk-ESHEHOVH.js";
7
- import {
8
- TimeSelect
9
- } from "./chunk-5VWEW4M2.js";
10
- import {
11
- getTimeOption,
12
- parseTimeOption
13
- } from "./chunk-NWJSLIQ3.js";
14
- import {
15
- Form
16
- } from "./chunk-ECLZ3IGO.js";
17
- import {
18
- toast
19
- } from "./chunk-IFRA465K.js";
20
- import {
21
- Grid
22
- } from "./chunk-EGEQY3KT.js";
23
- import {
24
- Inset
25
- } from "./chunk-XQOL7UBI.js";
26
- import {
27
- Heading
28
- } from "./chunk-3IT3NVK6.js";
29
- import {
30
- Card
31
- } from "./chunk-HEDMSFPW.js";
32
- import {
33
- Badge
34
- } from "./chunk-FCIHNIOH.js";
35
- import {
36
- Box
37
- } from "./chunk-4Y5BEXVN.js";
38
- import {
39
- BulletText
40
- } from "./chunk-LMWTEDYS.js";
41
- import {
42
- Typo
43
- } from "./chunk-LH57PIY2.js";
44
- import {
45
- Flex
46
- } from "./chunk-25HMMI7R.js";
47
- import {
48
- Button
49
- } from "./chunk-AFPH32MF.js";
50
- import {
51
- ArrowRightIcon,
52
- Cross1Icon
53
- } from "./chunk-HLFG5ZTU.js";
54
- import {
55
- __spreadProps,
56
- __spreadValues
57
- } from "./chunk-2NMEKWO5.js";
58
-
59
- // src/app/platform/reservation-card.tsx
60
- import { useCallback, useEffect, useMemo, useState } from "react";
61
- import { setHours, setMinutes } from "date-fns";
62
- import { jsx, jsxs } from "react/jsx-runtime";
63
- function ReservationCard(props) {
64
- const {
65
- sessionNumber,
66
- customerName,
67
- readonly,
68
- defaultTime,
69
- defaultType,
70
- error,
71
- minTime,
72
- maxTime,
73
- onClickReserve,
74
- onClickCancel,
75
- onClickCompleteSession
76
- } = props;
77
- const [editValues, setEditValues] = useState({
78
- date: props.defaultTime,
79
- type: props.defaultType
80
- });
81
- const date = readonly ? defaultTime : editValues.date;
82
- const type = readonly ? defaultType : editValues.type;
83
- const time = date && getTimeOption(date);
84
- const onClickSave = useCallback(() => {
85
- var _a;
86
- (_a = props.onClickSave) == null ? void 0 : _a.call(props, editValues);
87
- }, [editValues, props]);
88
- const onClickReset = useCallback(() => {
89
- setEditValues({
90
- date: defaultTime,
91
- type: defaultType
92
- });
93
- }, [defaultTime, defaultType]);
94
- const ActionButtons = useMemo(() => {
95
- if (readonly) {
96
- return /* @__PURE__ */ jsx(Button, { onClick: onClickReserve, size: "small", variant: "surface", children: defaultTime && defaultType ? "\uC608\uC57D \uC218\uC815\uD558\uAE30" : "\uC608\uC57D\uD558\uAE30" });
97
- }
98
- return /* @__PURE__ */ jsx(Button, { color: "gray", onClick: onClickCancel, variant: "transparent", children: /* @__PURE__ */ jsx(Cross1Icon, {}) });
99
- }, [defaultTime, defaultType, onClickCancel, onClickReserve, readonly]);
100
- const onChangeDate = useCallback(
101
- (newDate) => {
102
- if (!newDate) return;
103
- const { hour = 0, minute = 0 } = time ? parseTimeOption(time) : {};
104
- setEditValues((prev) => {
105
- return __spreadProps(__spreadValues({}, prev), {
106
- date: setMinutes(setHours(newDate, hour), minute)
107
- });
108
- });
109
- },
110
- [time]
111
- );
112
- const onChangeType = useCallback((newType) => {
113
- setEditValues((prev) => {
114
- return __spreadProps(__spreadValues({}, prev), {
115
- type: newType
116
- });
117
- });
118
- }, []);
119
- const onChangeTime = useCallback(
120
- (v) => {
121
- const { hour, minute } = parseTimeOption(v);
122
- if (typeof v === "undefined") {
123
- setEditValues((prev) => {
124
- return __spreadProps(__spreadValues({}, prev), {
125
- date: v
126
- });
127
- });
128
- }
129
- setEditValues((prev) => {
130
- return __spreadProps(__spreadValues({}, prev), {
131
- date: setMinutes(setHours(date || /* @__PURE__ */ new Date(), hour), minute)
132
- });
133
- });
134
- },
135
- [date]
136
- );
137
- useEffect(() => {
138
- if (!minTime || !editValues.date || readonly) return;
139
- if (editValues.date < minTime) {
140
- toast.warn("\uC120\uD0DD \uAC00\uB2A5\uD55C \uC2DC\uAC04\uB300\uB85C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
141
- setEditValues((prev) => {
142
- return __spreadProps(__spreadValues({}, prev), {
143
- date: minTime
144
- });
145
- });
146
- }
147
- }, [editValues, minTime, readonly]);
148
- useEffect(() => {
149
- if (!maxTime || !editValues.date || readonly) return;
150
- if (editValues.date > maxTime) {
151
- toast.warn("\uC120\uD0DD \uAC00\uB2A5\uD55C \uC2DC\uAC04\uB300\uB85C \uBCC0\uACBD\uB418\uC5C8\uC2B5\uB2C8\uB2E4.");
152
- setEditValues((prev) => {
153
- return __spreadProps(__spreadValues({}, prev), {
154
- date: maxTime
155
- });
156
- });
157
- }
158
- }, [editValues, maxTime, readonly]);
159
- return /* @__PURE__ */ jsxs(
160
- Card,
161
- {
162
- error: Boolean(error),
163
- size: "3",
164
- style: { overflow: "visible", contain: "initial" },
165
- children: [
166
- /* @__PURE__ */ jsxs(Flex, { gap: "3", justify: "between", mb: "5", children: [
167
- /* @__PURE__ */ jsxs(
168
- Grid,
169
- {
170
- align: "center",
171
- columns: { initial: "1", xs: "auto 1fr" },
172
- gapY: "2",
173
- children: [
174
- /* @__PURE__ */ jsxs(Flex, { align: "center", children: [
175
- /* @__PURE__ */ jsxs(Heading, { variant: "heading4", children: [
176
- customerName || "-",
177
- "\uB2D8 ",
178
- sessionNumber || "-",
179
- "\uD68C\uCC28 \uC138\uC158"
180
- ] }),
181
- /* @__PURE__ */ jsx(Badge, { ml: "2", children: "\uB2E4\uC74C \uC138\uC158" })
182
- ] }),
183
- error ? /* @__PURE__ */ jsx(BulletText, { color: "red", variant: "caption", children: error }) : null
184
- ]
185
- }
186
- ),
187
- /* @__PURE__ */ jsx(Flex, { children: ActionButtons })
188
- ] }),
189
- /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
190
- Form.Root,
191
- {
192
- onSubmit: (e) => {
193
- e.preventDefault();
194
- },
195
- children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "5", children: [
196
- /* @__PURE__ */ jsx(Form.Field, { name: "date", children: /* @__PURE__ */ jsxs(Form.Label, { asChild: true, children: [
197
- /* @__PURE__ */ jsx(Heading, { mb: "2", variant: "heading5", weight: "regular", children: "\uC138\uC158 \uC77C\uC790\uC640 \uC2DC\uAC01" }),
198
- /* @__PURE__ */ jsxs(Grid, { columns: "1fr auto", gap: "4", children: [
199
- /* @__PURE__ */ jsx(
200
- DatePickerButton,
201
- {
202
- disabled: readonly,
203
- maxDate: maxTime,
204
- minDate: minTime,
205
- onChange: onChangeDate,
206
- placeholder: "\uC77C\uC790\uB97C \uC120\uD0DD\uD574\uC8FC\uC138\uC694",
207
- selected: date,
208
- size: "large"
209
- }
210
- ),
211
- /* @__PURE__ */ jsx(
212
- TimeSelect,
213
- {
214
- disabled: readonly,
215
- maxTime,
216
- minTime,
217
- onValueChange: onChangeTime,
218
- size: "3",
219
- time: date,
220
- value: time
221
- }
222
- )
223
- ] })
224
- ] }) }),
225
- /* @__PURE__ */ jsxs(Form.Field, { name: "type", children: [
226
- /* @__PURE__ */ jsx(Form.Label, { asChild: true, children: /* @__PURE__ */ jsx(Heading, { mb: "2", variant: "heading5", weight: "regular", children: "\uC628/\uC624\uD504\uB77C\uC778 \uC9C4\uD589 \uC5EC\uBD80" }) }),
227
- /* @__PURE__ */ jsx(Form.Control, { asChild: true, children: /* @__PURE__ */ jsx(
228
- OnOfflineRadioCard,
229
- {
230
- disabled: readonly,
231
- onValueChange: onChangeType,
232
- size: "1",
233
- value: type
234
- }
235
- ) })
236
- ] }),
237
- readonly ? null : /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "3", justify: "end", children: [
238
- /* @__PURE__ */ jsx(
239
- Button,
240
- {
241
- color: "gray",
242
- onClick: onClickReset,
243
- size: "small",
244
- variant: "transparent",
245
- children: "\uCD08\uAE30\uD654\uD558\uAE30"
246
- }
247
- ),
248
- /* @__PURE__ */ jsx(Button, { onClick: onClickSave, size: "small", children: "\uC800\uC7A5\uD558\uAE30" })
249
- ] })
250
- ] })
251
- }
252
- ) }),
253
- readonly ? /* @__PURE__ */ jsx(Inset, { clip: "border-box", side: "bottom", children: /* @__PURE__ */ jsx(
254
- Box,
255
- {
256
- mt: "5",
257
- px: "5",
258
- py: "4",
259
- style: { backgroundColor: "var(--accent-a3)" },
260
- width: "100%",
261
- children: /* @__PURE__ */ jsxs(Flex, { align: "center", gap: "4", justify: "center", children: [
262
- /* @__PURE__ */ jsxs(Typo, { children: [
263
- sessionNumber || "-",
264
- "\uD68C\uCC28 \uC138\uC158\uC744 \uC644\uB8CC\uD558\uC168\uB098\uC694?"
265
- ] }),
266
- /* @__PURE__ */ jsxs(Button, { onClick: onClickCompleteSession, size: "small", children: [
267
- "\uC138\uC158 \uC885\uB8CC\uD558\uAE30",
268
- /* @__PURE__ */ jsx(ArrowRightIcon, {})
269
- ] })
270
- ] })
271
- }
272
- ) }) : null
273
- ]
274
- }
275
- );
276
- }
277
-
278
- export {
279
- ReservationCard
280
- };
281
- //# sourceMappingURL=chunk-6OQQUSCX.js.map
@@ -1,30 +0,0 @@
1
- import {
2
- CoachingCustomerInfoLarge
3
- } from "./chunk-JDE7356R.js";
4
- import {
5
- CoachingCustomerInfoMedium
6
- } from "./chunk-54C63CWN.js";
7
- import {
8
- CoachingCustomerInfoSmall
9
- } from "./chunk-M7C3ID36.js";
10
- import {
11
- Box
12
- } from "./chunk-4Y5BEXVN.js";
13
- import {
14
- __spreadValues
15
- } from "./chunk-2NMEKWO5.js";
16
-
17
- // src/app/platform/userInfos/coaching-customer-info/index.tsx
18
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
19
- function CoachingCustomerInfo(props) {
20
- return /* @__PURE__ */ jsxs(Fragment, { children: [
21
- /* @__PURE__ */ jsx(Box, { display: { initial: "block", sm: "none", md: "none" }, children: /* @__PURE__ */ jsx(CoachingCustomerInfoSmall, __spreadValues({}, props)) }),
22
- /* @__PURE__ */ jsx(Box, { display: { initial: "none", sm: "block", md: "none" }, children: /* @__PURE__ */ jsx(CoachingCustomerInfoMedium, __spreadValues({}, props)) }),
23
- /* @__PURE__ */ jsx(Box, { display: { initial: "none", sm: "none", md: "block" }, children: /* @__PURE__ */ jsx(CoachingCustomerInfoLarge, __spreadValues({}, props)) })
24
- ] });
25
- }
26
-
27
- export {
28
- CoachingCustomerInfo
29
- };
30
- //# sourceMappingURL=chunk-75ENC5RS.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/app/platform/userInfos/coaching-customer-info/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Box } from '../../../../atoms';\nimport type { CoachingCustomerInfoProps } from '../utils';\nimport { CoachingCustomerInfoSmall } from './small';\nimport { CoachingCustomerInfoMedium } from './medium';\nimport { CoachingCustomerInfoLarge } from './large';\n\nexport {\n CoachingCustomerInfoLarge,\n CoachingCustomerInfoMedium,\n CoachingCustomerInfoSmall,\n};\n\nexport { type CoachingCustomerInfoProps };\n\nexport function CoachingCustomerInfo(\n props: CoachingCustomerInfoProps\n): React.ReactNode {\n return (\n <>\n <Box display={{ initial: 'block', sm: 'none', md: 'none' }}>\n <CoachingCustomerInfoSmall {...props} />\n </Box>\n <Box display={{ initial: 'none', sm: 'block', md: 'none' }}>\n <CoachingCustomerInfoMedium {...props} />\n </Box>\n <Box display={{ initial: 'none', sm: 'none', md: 'block' }}>\n <CoachingCustomerInfoLarge {...props} />\n </Box>\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAmBI,mBAEI,KAFJ;AAJG,SAAS,qBACd,OACiB;AACjB,SACE,iCACE;AAAA,wBAAC,OAAI,SAAS,EAAE,SAAS,SAAS,IAAI,QAAQ,IAAI,OAAO,GACvD,8BAAC,8CAA8B,MAAO,GACxC;AAAA,IACA,oBAAC,OAAI,SAAS,EAAE,SAAS,QAAQ,IAAI,SAAS,IAAI,OAAO,GACvD,8BAAC,+CAA+B,MAAO,GACzC;AAAA,IACA,oBAAC,OAAI,SAAS,EAAE,SAAS,QAAQ,IAAI,QAAQ,IAAI,QAAQ,GACvD,8BAAC,8CAA8B,MAAO,GACxC;AAAA,KACF;AAEJ;","names":[]}
@@ -1,63 +0,0 @@
1
- import {
2
- Heading
3
- } from "./chunk-3IT3NVK6.js";
4
- import {
5
- Card
6
- } from "./chunk-HEDMSFPW.js";
7
- import {
8
- Badge
9
- } from "./chunk-FCIHNIOH.js";
10
- import {
11
- Box
12
- } from "./chunk-4Y5BEXVN.js";
13
- import {
14
- Typo
15
- } from "./chunk-LH57PIY2.js";
16
- import {
17
- Flex
18
- } from "./chunk-25HMMI7R.js";
19
-
20
- // src/app/platform/session-review-simple-read.tsx
21
- import { useMemo } from "react";
22
- import { jsx, jsxs } from "react/jsx-runtime";
23
- function SubTitleWrapper({
24
- children,
25
- title
26
- }) {
27
- return /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "2", children: [
28
- /* @__PURE__ */ jsx(Heading, { mb: "2", variant: "heading5", weight: "regular", children: title }),
29
- /* @__PURE__ */ jsx(Box, { children })
30
- ] });
31
- }
32
- function SessionReviewSimpleRead({
33
- helpfulness,
34
- review
35
- }) {
36
- const helpfulnessMeta = useMemo(() => {
37
- if (helpfulness) {
38
- return {
39
- text: "\uB124",
40
- color: "success"
41
- };
42
- }
43
- if (typeof helpfulness === "undefined") {
44
- return {
45
- text: "-",
46
- color: "neutral"
47
- };
48
- }
49
- return {
50
- text: "\uC544\uB2C8\uC694",
51
- color: "error"
52
- };
53
- }, [helpfulness]);
54
- return /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "5", children: [
55
- /* @__PURE__ */ jsx(SubTitleWrapper, { title: "\uC774\uBC88 \uCF54\uCE6D\uC774 \uBAA9\uD45C \uB2EC\uC131\uC5D0 \uB3C4\uC6C0\uC774 \uB418\uC5C8\uB098\uC694?", children: /* @__PURE__ */ jsx(Badge, { color: helpfulnessMeta.color, children: helpfulnessMeta.text }) }),
56
- /* @__PURE__ */ jsx(SubTitleWrapper, { title: "\uC138\uC158 \uD6C4\uAE30", children: /* @__PURE__ */ jsx(Card, { children: review ? /* @__PURE__ */ jsx(Typo, { as: "p", children: review }) : /* @__PURE__ */ jsx(Typo, { color: "gray", children: "\uC785\uB825\uB41C \uD6C4\uAE30\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) }) })
57
- ] }) });
58
- }
59
-
60
- export {
61
- SessionReviewSimpleRead
62
- };
63
- //# sourceMappingURL=chunk-7IX5IEPU.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/app/platform/session-review-simple-read.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport type { BadgeProps } from '../../atoms';\nimport { Badge, Box, Card, Flex, Heading, Typo } from '../../atoms';\n\nexport interface SessionReviewSimpleReadProps {\n helpfulness?: boolean;\n review?: string;\n}\n\nfunction SubTitleWrapper({\n children,\n title,\n}: {\n children: React.ReactNode;\n title: string;\n}): JSX.Element {\n return (\n <Flex direction=\"column\" gap=\"2\">\n <Heading mb=\"2\" variant=\"heading5\" weight=\"regular\">\n {title}\n </Heading>\n\n <Box>{children}</Box>\n </Flex>\n );\n}\n\nexport function SessionReviewSimpleRead({\n helpfulness,\n review,\n}: SessionReviewSimpleReadProps): React.ReactNode {\n const helpfulnessMeta = useMemo<{\n text: string;\n color: BadgeProps['color'];\n }>(() => {\n if (helpfulness) {\n return {\n text: '네',\n color: 'success',\n };\n }\n if (typeof helpfulness === 'undefined') {\n return {\n text: '-',\n color: 'neutral',\n };\n }\n return {\n text: '아니요',\n color: 'error',\n };\n }, [helpfulness]);\n\n return (\n <Box>\n <Flex direction=\"column\" gap=\"5\">\n <SubTitleWrapper title=\"이번 코칭이 목표 달성에 도움이 되었나요?\">\n <Badge color={helpfulnessMeta.color}>{helpfulnessMeta.text}</Badge>\n </SubTitleWrapper>\n <SubTitleWrapper title=\"세션 후기\">\n <Card>\n {review ? (\n <Typo as=\"p\">{review}</Typo>\n ) : (\n <Typo color=\"gray\">입력된 후기가 없습니다.</Typo>\n )}\n </Card>\n </SubTitleWrapper>\n </Flex>\n </Box>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,eAAe;AAiB3B,SACE,KADF;AARJ,SAAS,gBAAgB;AAAA,EACvB;AAAA,EACA;AACF,GAGgB;AACd,SACE,qBAAC,QAAK,WAAU,UAAS,KAAI,KAC3B;AAAA,wBAAC,WAAQ,IAAG,KAAI,SAAQ,YAAW,QAAO,WACvC,iBACH;AAAA,IAEA,oBAAC,OAAK,UAAS;AAAA,KACjB;AAEJ;AAEO,SAAS,wBAAwB;AAAA,EACtC;AAAA,EACA;AACF,GAAkD;AAChD,QAAM,kBAAkB,QAGrB,MAAM;AACP,QAAI,aAAa;AACf,aAAO;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF;AACA,QAAI,OAAO,gBAAgB,aAAa;AACtC,aAAO;AAAA,QACL,MAAM;AAAA,QACN,OAAO;AAAA,MACT;AAAA,IACF;AACA,WAAO;AAAA,MACL,MAAM;AAAA,MACN,OAAO;AAAA,IACT;AAAA,EACF,GAAG,CAAC,WAAW,CAAC;AAEhB,SACE,oBAAC,OACC,+BAAC,QAAK,WAAU,UAAS,KAAI,KAC3B;AAAA,wBAAC,mBAAgB,OAAM,gHACrB,8BAAC,SAAM,OAAO,gBAAgB,OAAQ,0BAAgB,MAAK,GAC7D;AAAA,IACA,oBAAC,mBAAgB,OAAM,6BACrB,8BAAC,QACE,mBACC,oBAAC,QAAK,IAAG,KAAK,kBAAO,IAErB,oBAAC,QAAK,OAAM,QAAO,6EAAa,GAEpC,GACF;AAAA,KACF,GACF;AAEJ;","names":[]}