@tipp/ui 1.5.7 → 1.5.9

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 (121) hide show
  1. package/dist/app/index.cjs +18 -4
  2. package/dist/app/index.cjs.map +1 -1
  3. package/dist/app/index.d.cts +2 -2
  4. package/dist/app/index.d.ts +2 -2
  5. package/dist/app/index.js +55 -55
  6. package/dist/app/platform/coach-question-list.js +26 -26
  7. package/dist/app/platform/edit-coaching-time.js +30 -30
  8. package/dist/app/platform/edit-service-type.js +30 -30
  9. package/dist/app/platform/goal-manage-card-edit.js +31 -31
  10. package/dist/app/platform/goal-manage-card-read.js +26 -26
  11. package/dist/app/platform/on-offline-radio-card.js +30 -30
  12. package/dist/app/platform/report-card.js +26 -26
  13. package/dist/app/platform/reservation-card.js +31 -31
  14. package/dist/app/platform/session-card.js +31 -31
  15. package/dist/app/platform/session-review-simple-read.js +26 -26
  16. package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +18 -4
  17. package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
  18. package/dist/app/platform/userInfos/coaching-customer-info/index.d.cts +1 -1
  19. package/dist/app/platform/userInfos/coaching-customer-info/index.d.ts +1 -1
  20. package/dist/app/platform/userInfos/coaching-customer-info/index.js +30 -30
  21. package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +17 -3
  22. package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
  23. package/dist/app/platform/userInfos/coaching-customer-info/large.js +27 -27
  24. package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +17 -3
  25. package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
  26. package/dist/app/platform/userInfos/coaching-customer-info/medium.js +27 -27
  27. package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +1 -1
  28. package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
  29. package/dist/app/platform/userInfos/coaching-customer-info/small.js +26 -26
  30. package/dist/app/platform/userInfos/session-user-info-detail.cjs +17 -3
  31. package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
  32. package/dist/app/platform/userInfos/session-user-info-detail.js +27 -27
  33. package/dist/app/platform/userInfos/utils.cjs +17 -3
  34. package/dist/app/platform/userInfos/utils.cjs.map +1 -1
  35. package/dist/app/platform/userInfos/utils.js +26 -26
  36. package/dist/atoms/index.js +64 -64
  37. package/dist/chunk-3BIESZCA.js +59 -0
  38. package/dist/chunk-3BIESZCA.js.map +1 -0
  39. package/dist/chunk-3BWQX4DB.js +30 -0
  40. package/dist/chunk-3BWQX4DB.js.map +1 -0
  41. package/dist/chunk-3LP4EQXB.js +243 -0
  42. package/dist/chunk-3LP4EQXB.js.map +1 -0
  43. package/dist/chunk-3TRGVGKR.js +59 -0
  44. package/dist/chunk-3TRGVGKR.js.map +1 -0
  45. package/dist/chunk-5ITTKDJS.js +145 -0
  46. package/dist/chunk-5ITTKDJS.js.map +1 -0
  47. package/dist/chunk-6POW72FZ.js +176 -0
  48. package/dist/chunk-6POW72FZ.js.map +1 -0
  49. package/dist/chunk-7AWHIUAV.js +30 -0
  50. package/dist/chunk-7AWHIUAV.js.map +1 -0
  51. package/dist/chunk-7B53ZFJ4.js +30 -0
  52. package/dist/chunk-7B53ZFJ4.js.map +1 -0
  53. package/dist/chunk-7OPEKI24.js +30 -0
  54. package/dist/chunk-7OPEKI24.js.map +1 -0
  55. package/dist/chunk-ADAAUSOW.js +59 -0
  56. package/dist/chunk-ADAAUSOW.js.map +1 -0
  57. package/dist/chunk-ANQDN6SW.js +30 -0
  58. package/dist/chunk-ANQDN6SW.js.map +1 -0
  59. package/dist/chunk-CAUI37PO.js +145 -0
  60. package/dist/chunk-CAUI37PO.js.map +1 -0
  61. package/dist/chunk-DUKKMCFP.js +30 -0
  62. package/dist/chunk-DUKKMCFP.js.map +1 -0
  63. package/dist/chunk-HDJWUUAZ.js +59 -0
  64. package/dist/chunk-HDJWUUAZ.js.map +1 -0
  65. package/dist/chunk-HZWC2D42.js +57 -0
  66. package/dist/chunk-HZWC2D42.js.map +1 -0
  67. package/dist/chunk-I5XSLBW2.js +103 -0
  68. package/dist/chunk-I5XSLBW2.js.map +1 -0
  69. package/dist/chunk-K7PSBABU.js +64 -0
  70. package/dist/chunk-K7PSBABU.js.map +1 -0
  71. package/dist/chunk-LQIM6OYL.js +163 -0
  72. package/dist/chunk-LQIM6OYL.js.map +1 -0
  73. package/dist/chunk-MVM2SUG6.js +59 -0
  74. package/dist/chunk-MVM2SUG6.js.map +1 -0
  75. package/dist/chunk-PAGVOUG2.js +64 -0
  76. package/dist/chunk-PAGVOUG2.js.map +1 -0
  77. package/dist/chunk-PEE4A2AC.js +76 -0
  78. package/dist/chunk-PEE4A2AC.js.map +1 -0
  79. package/dist/chunk-PXMZ2IX2.js +145 -0
  80. package/dist/chunk-PXMZ2IX2.js.map +1 -0
  81. package/dist/chunk-Q3Y3VR33.js +60 -0
  82. package/dist/chunk-Q3Y3VR33.js.map +1 -0
  83. package/dist/chunk-QFCBTWC2.js +145 -0
  84. package/dist/chunk-QFCBTWC2.js.map +1 -0
  85. package/dist/chunk-QOXOH3D7.js +243 -0
  86. package/dist/chunk-QOXOH3D7.js.map +1 -0
  87. package/dist/chunk-SVR5RJQJ.js +52 -0
  88. package/dist/chunk-SVR5RJQJ.js.map +1 -0
  89. package/dist/chunk-TH33IQIY.js +350 -0
  90. package/dist/chunk-TH33IQIY.js.map +1 -0
  91. package/dist/chunk-TZ5SCDQF.js +176 -0
  92. package/dist/chunk-TZ5SCDQF.js.map +1 -0
  93. package/dist/chunk-UXAD2OSK.js +30 -0
  94. package/dist/chunk-UXAD2OSK.js.map +1 -0
  95. package/dist/chunk-X2BBSDMW.js +192 -0
  96. package/dist/chunk-X2BBSDMW.js.map +1 -0
  97. package/dist/chunk-X3P223HR.js +76 -0
  98. package/dist/chunk-X3P223HR.js.map +1 -0
  99. package/dist/chunk-XZ7LMG6V.js +30 -0
  100. package/dist/chunk-XZ7LMG6V.js.map +1 -0
  101. package/dist/index.cjs +18 -4
  102. package/dist/index.cjs.map +1 -1
  103. package/dist/index.d.cts +2 -2
  104. package/dist/index.d.ts +2 -2
  105. package/dist/index.js +101 -101
  106. package/dist/layouts/index.js +25 -25
  107. package/dist/layouts/response-display.js +25 -25
  108. package/dist/molecules/date-picker/date-picker-button.js +25 -25
  109. package/dist/molecules/expand-table/index.js +25 -25
  110. package/dist/molecules/expand-table/row.js +25 -25
  111. package/dist/molecules/index.js +30 -30
  112. package/dist/molecules/learning-post.js +2 -2
  113. package/dist/molecules/navigation.js +25 -25
  114. package/dist/molecules/radio-button-card.js +25 -25
  115. package/dist/molecules/stepper.js +2 -2
  116. package/dist/molecules/tag-selector.js +26 -26
  117. package/dist/molecules/time-select.js +25 -25
  118. package/package.json +2 -2
  119. package/src/app/platform/userInfos/coaching-customer-info/index.tsx +2 -0
  120. package/src/app/platform/userInfos/coaching-customer-info/small.tsx +3 -1
  121. package/src/app/platform/userInfos/utils.tsx +21 -6
@@ -0,0 +1,176 @@
1
+ import {
2
+ TimeSelect
3
+ } from "./chunk-K55LGP5B.js";
4
+ import {
5
+ getTimeOption,
6
+ parseTimeOption
7
+ } from "./chunk-VAXB7NV2.js";
8
+ import {
9
+ DatePickerButton
10
+ } from "./chunk-DQHF6RPE.js";
11
+ import {
12
+ ResponseDisplay
13
+ } from "./chunk-O4ZX5Z2J.js";
14
+ import {
15
+ Form
16
+ } from "./chunk-SRZ6X74X.js";
17
+ import {
18
+ Separator
19
+ } from "./chunk-HYITAA4J.js";
20
+ import {
21
+ Grid
22
+ } from "./chunk-EGEQY3KT.js";
23
+ import {
24
+ Dialog
25
+ } from "./chunk-WRQLM673.js";
26
+ import {
27
+ toast
28
+ } from "./chunk-CYYWMYE7.js";
29
+ import {
30
+ Box
31
+ } from "./chunk-4Y5BEXVN.js";
32
+ import {
33
+ Flex
34
+ } from "./chunk-25HMMI7R.js";
35
+ import {
36
+ Button
37
+ } from "./chunk-U7JPP7WJ.js";
38
+ import {
39
+ __spreadProps,
40
+ __spreadValues
41
+ } from "./chunk-N552FDTV.js";
42
+
43
+ // src/app/platform/edit-coaching-time.tsx
44
+ import { useCallback, useState } from "react";
45
+ import { jsx, jsxs } from "react/jsx-runtime";
46
+ var getValueFromDefaultValue = (args) => {
47
+ return {
48
+ startTime: args.startAt ? getTimeOption(args.startAt) : "00:00",
49
+ endTime: args.endAt ? getTimeOption(args.endAt) : "00:00",
50
+ date: args.startAt || /* @__PURE__ */ new Date()
51
+ };
52
+ };
53
+ var getDateFromValue = (date, time) => {
54
+ const { hour, minute } = parseTimeOption(time);
55
+ return new Date(
56
+ date.getFullYear(),
57
+ date.getMonth(),
58
+ date.getDate(),
59
+ hour,
60
+ minute
61
+ );
62
+ };
63
+ function EditCoachingTime(props) {
64
+ const { defaultEndAt, defaultStartAt, onClickCancel } = props;
65
+ const [values, setValues] = useState(() => {
66
+ return getValueFromDefaultValue({
67
+ startAt: defaultStartAt,
68
+ endAt: defaultEndAt
69
+ });
70
+ });
71
+ const [timeError, setTimeError] = useState("");
72
+ const checkTimeError = useCallback(
73
+ (startTime, endTime) => {
74
+ const error = startTime >= endTime ? "\uC2DC\uC791\uC2DC\uAC04\uC744 \uC885\uB8CC\uC2DC\uAC04\uBCF4\uB2E4 \uBE60\uB974\uAC8C \uC120\uD0DD\uD574\uC8FC\uC138\uC694." : "";
75
+ if (error) {
76
+ setTimeError(error);
77
+ return false;
78
+ }
79
+ return true;
80
+ },
81
+ []
82
+ );
83
+ const onChangeStartTime = useCallback(
84
+ (v) => {
85
+ checkTimeError(v, values.endTime);
86
+ setValues((prev) => __spreadProps(__spreadValues({}, prev), {
87
+ startTime: v
88
+ }));
89
+ },
90
+ [checkTimeError, values.endTime]
91
+ );
92
+ const onChangeEndTime = useCallback(
93
+ (v) => {
94
+ checkTimeError(values.startTime, v);
95
+ setValues((prev) => __spreadProps(__spreadValues({}, prev), {
96
+ endTime: v
97
+ }));
98
+ },
99
+ [checkTimeError, values.startTime]
100
+ );
101
+ const onChangeDate = useCallback((date) => {
102
+ date && setValues((prev) => __spreadProps(__spreadValues({}, prev), {
103
+ date
104
+ }));
105
+ }, []);
106
+ const onClickSave = useCallback(() => {
107
+ if (checkTimeError(values.startTime, values.endTime)) {
108
+ const startAt = getDateFromValue(values.date, values.startTime);
109
+ const endAt = getDateFromValue(values.date, values.endTime);
110
+ props.onClickSave && props.onClickSave(startAt, endAt);
111
+ } else {
112
+ toast.error("\uC785\uB825 \uAC12\uC774 \uC720\uD6A8\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4.");
113
+ }
114
+ }, [checkTimeError, props, values.date, values.endTime, values.startTime]);
115
+ return /* @__PURE__ */ jsx(Box, { width: { initial: "100%" }, children: /* @__PURE__ */ jsxs(Form.Root, { children: [
116
+ /* @__PURE__ */ jsxs(Form.Field, { name: "date", children: [
117
+ /* @__PURE__ */ jsx(Form.Label, { variant: "caption", children: "\uB0A0\uC9DC" }),
118
+ /* @__PURE__ */ jsx(
119
+ DatePickerButton,
120
+ {
121
+ onChange: onChangeDate,
122
+ selected: values.date,
123
+ size: { initial: "large", xs: "medium" }
124
+ }
125
+ )
126
+ ] }),
127
+ /* @__PURE__ */ jsxs(
128
+ Grid,
129
+ {
130
+ align: "center",
131
+ columns: {
132
+ initial: "1fr 0 1fr",
133
+ xs: "1fr auto 1fr"
134
+ },
135
+ gapX: "3",
136
+ gapY: "2",
137
+ justify: "center",
138
+ mb: { initial: "5", xs: "4" },
139
+ mt: "5",
140
+ width: "100%",
141
+ children: [
142
+ /* @__PURE__ */ jsx(Form.Field, { name: "startTime", children: /* @__PURE__ */ jsx(Form.Label, { variant: "caption", children: "\uC2DC\uC791 \uC2DC\uAC04" }) }),
143
+ /* @__PURE__ */ jsx("div", {}),
144
+ /* @__PURE__ */ jsx(Form.Field, { name: "endTime", children: /* @__PURE__ */ jsx(Form.Label, { variant: "caption", children: "\uC885\uB8CC \uC2DC\uAC04" }) }),
145
+ /* @__PURE__ */ jsx(
146
+ TimeSelect,
147
+ {
148
+ onValueChange: onChangeStartTime,
149
+ size: { initial: "3", xs: "2" },
150
+ value: values.startTime
151
+ }
152
+ ),
153
+ /* @__PURE__ */ jsx(ResponseDisplay, { initial: /* @__PURE__ */ jsx("div", {}), xs: /* @__PURE__ */ jsx(Separator, {}) }),
154
+ /* @__PURE__ */ jsx(
155
+ TimeSelect,
156
+ {
157
+ onValueChange: onChangeEndTime,
158
+ size: { initial: "3", xs: "2" },
159
+ value: values.endTime
160
+ }
161
+ ),
162
+ /* @__PURE__ */ jsx(Form.Field, { name: "startEndTime", style: { gridColumn: "1/span 3" }, children: /* @__PURE__ */ jsx(Form.Message, { forceMatch: Boolean(timeError), children: timeError }) })
163
+ ]
164
+ }
165
+ ),
166
+ /* @__PURE__ */ jsxs(Flex, { gap: "3", justify: "end", children: [
167
+ /* @__PURE__ */ jsx(Dialog.Close, { children: /* @__PURE__ */ jsx(Button, { onClick: onClickCancel, type: "button", variant: "outline", children: "\uCDE8\uC18C\uD558\uAE30" }) }),
168
+ /* @__PURE__ */ jsx(Dialog.Close, { children: /* @__PURE__ */ jsx(Button, { onClick: onClickSave, type: "button", children: "\uC800\uC7A5\uD558\uAE30" }) })
169
+ ] })
170
+ ] }) });
171
+ }
172
+
173
+ export {
174
+ EditCoachingTime
175
+ };
176
+ //# sourceMappingURL=chunk-6POW72FZ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/app/platform/edit-coaching-time.tsx"],"sourcesContent":["import React, { useCallback, useState } from 'react';\nimport {\n Button,\n Flex,\n Form,\n Grid,\n Separator,\n Box,\n toast,\n Dialog,\n} from '../../atoms';\nimport { DatePickerButton, TimeSelect } from '../../molecules';\nimport { getTimeOption, parseTimeOption } from '../../utils';\nimport { ResponseDisplay } from '../../layouts';\n\nexport interface EditCoachingTimeProps {\n defaultStartAt?: Date;\n defaultEndAt?: Date;\n onClickSave?: (startAt: Date, endAt: Date) => void;\n onClickCancel?: () => void;\n sessionNumber?: number;\n}\n\ninterface Values {\n startTime: string;\n endTime: string;\n date: Date;\n}\n\nconst getValueFromDefaultValue = (args: {\n startAt?: Date;\n endAt?: Date;\n}): Values => {\n return {\n startTime: args.startAt ? getTimeOption(args.startAt) : '00:00',\n endTime: args.endAt ? getTimeOption(args.endAt) : '00:00',\n date: args.startAt || new Date(),\n };\n};\n\nconst getDateFromValue = (date: Date, time: string): Date => {\n const { hour, minute } = parseTimeOption(time);\n return new Date(\n date.getFullYear(),\n date.getMonth(),\n date.getDate(),\n hour,\n minute\n );\n};\n\nexport function EditCoachingTime(\n props: EditCoachingTimeProps\n): React.ReactElement {\n const { defaultEndAt, defaultStartAt, onClickCancel } = props;\n\n const [values, setValues] = useState<Values>(() => {\n return getValueFromDefaultValue({\n startAt: defaultStartAt,\n endAt: defaultEndAt,\n });\n });\n\n const [timeError, setTimeError] = useState('');\n\n const checkTimeError = useCallback(\n (startTime: string, endTime: string): boolean => {\n const error =\n startTime >= endTime\n ? '시작시간을 종료시간보다 빠르게 선택해주세요.'\n : '';\n if (error) {\n setTimeError(error);\n return false;\n }\n return true;\n },\n []\n );\n\n const onChangeStartTime = useCallback(\n (v: string) => {\n checkTimeError(v, values.endTime);\n setValues((prev) => ({\n ...prev,\n startTime: v,\n }));\n },\n [checkTimeError, values.endTime]\n );\n\n const onChangeEndTime = useCallback(\n (v: string) => {\n checkTimeError(values.startTime, v);\n setValues((prev) => ({\n ...prev,\n endTime: v,\n }));\n },\n [checkTimeError, values.startTime]\n );\n\n const onChangeDate = useCallback((date: Date | null) => {\n date &&\n setValues((prev) => ({\n ...prev,\n date,\n }));\n }, []);\n\n const onClickSave = useCallback(() => {\n if (checkTimeError(values.startTime, values.endTime)) {\n const startAt = getDateFromValue(values.date, values.startTime);\n const endAt = getDateFromValue(values.date, values.endTime);\n props.onClickSave && props.onClickSave(startAt, endAt);\n } else {\n toast.error('입력 값이 유효하지 않습니다.');\n }\n }, [checkTimeError, props, values.date, values.endTime, values.startTime]);\n\n return (\n <Box width={{ initial: '100%' }}>\n <Form.Root>\n <Form.Field name=\"date\">\n <Form.Label variant=\"caption\">날짜</Form.Label>\n <DatePickerButton\n onChange={onChangeDate}\n selected={values.date}\n size={{ initial: 'large', xs: 'medium' }}\n />\n </Form.Field>\n <Grid\n align=\"center\"\n columns={{\n initial: '1fr 0 1fr',\n xs: '1fr auto 1fr',\n }}\n gapX=\"3\"\n gapY=\"2\"\n justify=\"center\"\n mb={{ initial: '5', xs: '4' }}\n mt=\"5\"\n width=\"100%\"\n >\n <Form.Field name=\"startTime\">\n <Form.Label variant=\"caption\">시작 시간</Form.Label>\n </Form.Field>\n <div />\n <Form.Field name=\"endTime\">\n <Form.Label variant=\"caption\">종료 시간</Form.Label>\n </Form.Field>\n <TimeSelect\n onValueChange={onChangeStartTime}\n size={{ initial: '3', xs: '2' }}\n value={values.startTime}\n />\n <ResponseDisplay initial={<div />} xs={<Separator />} />\n\n <TimeSelect\n onValueChange={onChangeEndTime}\n size={{ initial: '3', xs: '2' }}\n value={values.endTime}\n />\n <Form.Field name=\"startEndTime\" style={{ gridColumn: '1/span 3' }}>\n <Form.Message forceMatch={Boolean(timeError)}>\n {timeError}\n </Form.Message>\n </Form.Field>\n </Grid>\n <Flex gap=\"3\" justify=\"end\">\n <Dialog.Close>\n <Button onClick={onClickCancel} type=\"button\" variant=\"outline\">\n 취소하기\n </Button>\n </Dialog.Close>\n <Dialog.Close>\n <Button onClick={onClickSave} type=\"button\">\n 저장하기\n </Button>\n </Dialog.Close>\n </Flex>\n </Form.Root>\n </Box>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,aAAa,gBAAgB;AA2HrC,SACE,KADF;AA9FR,IAAM,2BAA2B,CAAC,SAGpB;AACZ,SAAO;AAAA,IACL,WAAW,KAAK,UAAU,cAAc,KAAK,OAAO,IAAI;AAAA,IACxD,SAAS,KAAK,QAAQ,cAAc,KAAK,KAAK,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A,YAAC;AAAA;AAAA,cACC,eAAe;AAAA,cACf,MAAM,EAAE,SAAS,KAAK,IAAI,IAAI;AAAA,cAC9B,OAAO,OAAO;AAAA;AAAA,UAChB;AAAA,UACA,oBAAC,mBAAgB,SAAS,oBAAC,SAAI,GAAI,IAAI,oBAAC,aAAU,GAAI;AAAA,UAEtD;AAAA,YAAC;AAAA;AAAA,cACC,eAAe;AAAA,cACf,MAAM,EAAE,SAAS,KAAK,IAAI,IAAI;AAAA,cAC9B,OAAO,OAAO;AAAA;AAAA,UAChB;AAAA,UACA,oBAAC,KAAK,OAAL,EAAW,MAAK,gBAAe,OAAO,EAAE,YAAY,WAAW,GAC9D,8BAAC,KAAK,SAAL,EAAa,YAAY,QAAQ,SAAS,GACxC,qBACH,GACF;AAAA;AAAA;AAAA,IACF;AAAA,IACA,qBAAC,QAAK,KAAI,KAAI,SAAQ,OACpB;AAAA,0BAAC,OAAO,OAAP,EACC,8BAAC,UAAO,SAAS,eAAe,MAAK,UAAS,SAAQ,WAAU,sCAEhE,GACF;AAAA,MACA,oBAAC,OAAO,OAAP,EACC,8BAAC,UAAO,SAAS,aAAa,MAAK,UAAS,sCAE5C,GACF;AAAA,OACF;AAAA,KACF,GACF;AAEJ;","names":[]}
@@ -0,0 +1,30 @@
1
+ import {
2
+ CoachingCustomerInfoLarge
3
+ } from "./chunk-NPQVP3W3.js";
4
+ import {
5
+ CoachingCustomerInfoMedium
6
+ } from "./chunk-L33PIKUA.js";
7
+ import {
8
+ CoachingCustomerInfoSmall
9
+ } from "./chunk-MVM2SUG6.js";
10
+ import {
11
+ Box
12
+ } from "./chunk-4Y5BEXVN.js";
13
+ import {
14
+ __spreadValues
15
+ } from "./chunk-N552FDTV.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-7AWHIUAV.js.map
@@ -0,0 +1 @@
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};\nexport { type CoachingCustomerInfoProps };\n\nexport function CoachingCustomerInfo(\n props: CoachingCustomerInfoProps\n): React.ReactElement {\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":";;;;;;;;;;;;;;;;;AAkBI,mBAEI,KAFJ;AAJG,SAAS,qBACd,OACoB;AACpB,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":[]}
@@ -0,0 +1,30 @@
1
+ import {
2
+ CoachingCustomerInfoLarge
3
+ } from "./chunk-NPQVP3W3.js";
4
+ import {
5
+ CoachingCustomerInfoMedium
6
+ } from "./chunk-L33PIKUA.js";
7
+ import {
8
+ CoachingCustomerInfoSmall
9
+ } from "./chunk-MVM2SUG6.js";
10
+ import {
11
+ Box
12
+ } from "./chunk-4Y5BEXVN.js";
13
+ import {
14
+ __spreadValues
15
+ } from "./chunk-N552FDTV.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-7B53ZFJ4.js.map
@@ -0,0 +1 @@
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 function CoachingCustomerInfo(\n props: CoachingCustomerInfoProps\n): React.ReactElement {\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":";;;;;;;;;;;;;;;;;AAiBI,mBAEI,KAFJ;AAJG,SAAS,qBACd,OACoB;AACpB,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":[]}
@@ -0,0 +1,30 @@
1
+ import {
2
+ CoachingCustomerInfoLarge
3
+ } from "./chunk-NPQVP3W3.js";
4
+ import {
5
+ CoachingCustomerInfoMedium
6
+ } from "./chunk-L33PIKUA.js";
7
+ import {
8
+ CoachingCustomerInfoSmall
9
+ } from "./chunk-ADAAUSOW.js";
10
+ import {
11
+ Box
12
+ } from "./chunk-4Y5BEXVN.js";
13
+ import {
14
+ __spreadValues
15
+ } from "./chunk-N552FDTV.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-7OPEKI24.js.map
@@ -0,0 +1 @@
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 function CoachingCustomerInfo(\n props: CoachingCustomerInfoProps\n): React.ReactElement {\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":";;;;;;;;;;;;;;;;;AAiBI,mBAEI,KAFJ;AAJG,SAAS,qBACd,OACoB;AACpB,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":[]}
@@ -0,0 +1,59 @@
1
+ import {
2
+ Grid
3
+ } from "./chunk-EGEQY3KT.js";
4
+ import {
5
+ Heading
6
+ } from "./chunk-HK224ADT.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
+ Badge
18
+ } from "./chunk-EWD4AO5N.js";
19
+
20
+ // src/app/platform/userInfos/coaching-customer-info/small.tsx
21
+ import { useMemo } from "react";
22
+ import {
23
+ getColorFromProjectState,
24
+ getTextFromProjectState
25
+ } from "@tipp/biz-utils";
26
+ import { jsx, jsxs } from "react/jsx-runtime";
27
+ function CoachingCustomerInfoSmall({
28
+ customer,
29
+ session,
30
+ children
31
+ }) {
32
+ const badgeColor = useMemo(() => {
33
+ return getColorFromProjectState(session == null ? void 0 : session.state);
34
+ }, [session == null ? void 0 : session.state]);
35
+ const sessionText = useMemo(() => {
36
+ return getTextFromProjectState(session == null ? void 0 : session.state);
37
+ }, [session == null ? void 0 : session.state]);
38
+ return /* @__PURE__ */ jsxs(
39
+ Flex,
40
+ {
41
+ direction: { initial: "column", xs: "row" },
42
+ gap: "3",
43
+ justify: "between",
44
+ children: [
45
+ /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(Grid, { align: "center", columns: "auto auto 1fr", gapX: "3", children: [
46
+ /* @__PURE__ */ jsx(Heading, { variant: "heading3", children: (customer == null ? void 0 : customer.username) || "\uC774\uB984 \uC5C6\uC74C" }),
47
+ /* @__PURE__ */ jsx(Typo, { color: "gray", truncate: true, variant: "body", children: customer == null ? void 0 : customer.company }),
48
+ /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(Badge, { style: { marginLeft: "auto" }, color: badgeColor, children: sessionText }) })
49
+ ] }) }),
50
+ children
51
+ ]
52
+ }
53
+ );
54
+ }
55
+
56
+ export {
57
+ CoachingCustomerInfoSmall
58
+ };
59
+ //# sourceMappingURL=chunk-ADAAUSOW.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/app/platform/userInfos/coaching-customer-info/small.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport {\n getColorFromProjectState,\n getTextFromProjectState,\n} from '@tipp/biz-utils';\nimport { Badge, Box, Flex, Grid, Heading, Typo } from '../../../../atoms';\nimport type { CoachingCustomerInfoProps } from '../utils';\n\nexport function CoachingCustomerInfoSmall({\n customer,\n session,\n children,\n}: CoachingCustomerInfoProps): React.ReactElement {\n const badgeColor = useMemo(() => {\n return getColorFromProjectState(session?.state);\n }, [session?.state]);\n\n const sessionText = useMemo(() => {\n return getTextFromProjectState(session?.state);\n }, [session?.state]);\n\n return (\n <Flex\n direction={{ initial: 'column', xs: 'row' }}\n gap=\"3\"\n justify=\"between\"\n >\n {/* 이름, 사명 */}\n <Box>\n <Grid align=\"center\" columns=\"auto auto 1fr\" gapX=\"3\">\n <Heading variant=\"heading3\">\n {customer?.username || '이름 없음'}\n </Heading>\n <Typo color=\"gray\" truncate variant=\"body\">\n {customer?.company}\n </Typo>\n <Box>\n <Badge style={{ marginLeft: 'auto' }} color={badgeColor}>\n {sessionText}\n </Badge>\n </Box>\n </Grid>\n </Box>\n {children}\n </Flex>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,eAAe;AAC/B;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAyBC,SACE,KADF;AArBD,SAAS,0BAA0B;AAAA,EACxC;AAAA,EACA;AAAA,EACA;AACF,GAAkD;AAChD,QAAM,aAAa,QAAQ,MAAM;AAC/B,WAAO,yBAAyB,mCAAS,KAAK;AAAA,EAChD,GAAG,CAAC,mCAAS,KAAK,CAAC;AAEnB,QAAM,cAAc,QAAQ,MAAM;AAChC,WAAO,wBAAwB,mCAAS,KAAK;AAAA,EAC/C,GAAG,CAAC,mCAAS,KAAK,CAAC;AAEnB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,WAAW,EAAE,SAAS,UAAU,IAAI,MAAM;AAAA,MAC1C,KAAI;AAAA,MACJ,SAAQ;AAAA,MAGR;AAAA,4BAAC,OACC,+BAAC,QAAK,OAAM,UAAS,SAAQ,iBAAgB,MAAK,KAChD;AAAA,8BAAC,WAAQ,SAAQ,YACd,gDAAU,aAAY,6BACzB;AAAA,UACA,oBAAC,QAAK,OAAM,QAAO,UAAQ,MAAC,SAAQ,QACjC,+CAAU,SACb;AAAA,UACA,oBAAC,OACC,8BAAC,SAAM,OAAO,EAAE,YAAY,OAAO,GAAG,OAAO,YAC1C,uBACH,GACF;AAAA,WACF,GACF;AAAA,QACC;AAAA;AAAA;AAAA,EACH;AAEJ;","names":[]}
@@ -0,0 +1,30 @@
1
+ import {
2
+ CoachingCustomerInfoLarge
3
+ } from "./chunk-K7PSBABU.js";
4
+ import {
5
+ CoachingCustomerInfoMedium
6
+ } from "./chunk-PEE4A2AC.js";
7
+ import {
8
+ CoachingCustomerInfoSmall
9
+ } from "./chunk-3TRGVGKR.js";
10
+ import {
11
+ Box
12
+ } from "./chunk-4Y5BEXVN.js";
13
+ import {
14
+ __spreadValues
15
+ } from "./chunk-N552FDTV.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-ANQDN6SW.js.map
@@ -0,0 +1 @@
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.ReactElement {\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,OACoB;AACpB,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":[]}
@@ -0,0 +1,145 @@
1
+ import {
2
+ DatePickerButton
3
+ } from "./chunk-HZWC2D42.js";
4
+ import {
5
+ TextArea
6
+ } from "./chunk-EW6OPYEW.js";
7
+ import {
8
+ TextField
9
+ } from "./chunk-VOQU7ZOV.js";
10
+ import {
11
+ Card
12
+ } from "./chunk-2ZQK7NTN.js";
13
+ import {
14
+ Button
15
+ } from "./chunk-U7JPP7WJ.js";
16
+ import {
17
+ Flex
18
+ } from "./chunk-25HMMI7R.js";
19
+ import {
20
+ Form
21
+ } from "./chunk-SRZ6X74X.js";
22
+ import {
23
+ __spreadValues
24
+ } from "./chunk-N552FDTV.js";
25
+
26
+ // src/app/platform/goal-manage-card-edit.tsx
27
+ import { useCallback, useState } from "react";
28
+ import { format } from "date-fns";
29
+ import { jsx, jsxs } from "react/jsx-runtime";
30
+ var initialValues = {
31
+ goal: "",
32
+ effect: "",
33
+ huddle: "",
34
+ dueDate: void 0
35
+ };
36
+ var dummyFn = () => {
37
+ };
38
+ function GoalManageCardEdit(props) {
39
+ const { defaultValues, errors } = props;
40
+ const [values, setValues] = useState(defaultValues || initialValues);
41
+ const onChange = useCallback(
42
+ (v) => {
43
+ var _a;
44
+ setValues((prev) => __spreadValues(__spreadValues({}, prev), v));
45
+ (_a = props.onChange) == null ? void 0 : _a.call(props, v);
46
+ },
47
+ [props]
48
+ );
49
+ const onClickInit = useCallback(() => {
50
+ var _a;
51
+ setValues(initialValues);
52
+ (_a = props.onChange) == null ? void 0 : _a.call(props, defaultValues || initialValues);
53
+ }, [defaultValues, props]);
54
+ const onClickSubmit = useCallback(() => {
55
+ var _a;
56
+ (_a = props.onSubmit) == null ? void 0 : _a.call(props, values);
57
+ }, [props, values]);
58
+ return /* @__PURE__ */ jsx(Card, { style: { width: "100%" }, children: /* @__PURE__ */ jsxs(Form.Root, { onSubmit: dummyFn, children: [
59
+ /* @__PURE__ */ jsxs(Flex, { direction: "column", gap: "5", children: [
60
+ /* @__PURE__ */ jsxs(Form.Field, { name: "title", children: [
61
+ /* @__PURE__ */ jsx(Form.Label, { children: "\uC774\uBC88 \uCF54\uCE6D\uC758 \uBAA9\uD45C\uB294 \uC544\uB798\uC640 \uAC19\uC2B5\uB2C8\uB2E4" }),
62
+ /* @__PURE__ */ jsx(
63
+ TextField.Root,
64
+ {
65
+ error: Boolean(errors == null ? void 0 : errors.goal),
66
+ onChange: (e) => {
67
+ onChange({ goal: e.target.value });
68
+ },
69
+ placeholder: "\uC774\uBC88 \uCF54\uCE6D \uACFC\uC815\uC758 \uBAA9\uD45C\uB97C \uD55C \uBB38\uC7A5\uC73C\uB85C \uC801\uC5B4\uC8FC\uC138\uC694",
70
+ value: values.goal
71
+ }
72
+ ),
73
+ /* @__PURE__ */ jsx(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.goal), children: errors == null ? void 0 : errors.goal })
74
+ ] }),
75
+ /* @__PURE__ */ jsxs(Form.Field, { name: "effect", children: [
76
+ /* @__PURE__ */ jsx(Form.Label, { children: "\uAE30\uB300\uD6A8\uACFC" }),
77
+ /* @__PURE__ */ jsx(
78
+ TextArea,
79
+ {
80
+ error: Boolean(errors == null ? void 0 : errors.effect),
81
+ onChange: (e) => {
82
+ onChange({ effect: e.target.value });
83
+ },
84
+ placeholder: "\uC608\uC2DC : \uD300\uC6D0\uB4E4\uACFC \uB354 \uCE5C\uBC00\uD574\uC9C0\uACE0, \uD300\uC6D0\uB4E4\uC5D0 \uB300\uD55C \uC774\uD574\uB3C4\uAC00 \uC313\uC774\uBA70 \uB354 \uD6A8\uC728\uC801\uC778 \uC778\uC7AC\uAD00\uB9AC\uB97C \uC704\uD55C \uAD00\uACC4\uD615\uC131\uC774 \uAC00\uB2A5\uD574\uC9D1\uB2C8\uB2E4.",
85
+ resize: "vertical",
86
+ value: values.effect
87
+ }
88
+ ),
89
+ /* @__PURE__ */ jsx(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.effect), children: errors == null ? void 0 : errors.effect })
90
+ ] }),
91
+ /* @__PURE__ */ jsxs(Form.Field, { name: "huddle", children: [
92
+ /* @__PURE__ */ jsx(Form.Label, { children: "\uBC29\uD574\uC694\uC18C" }),
93
+ /* @__PURE__ */ jsx(
94
+ TextArea,
95
+ {
96
+ error: Boolean(errors == null ? void 0 : errors.huddle),
97
+ onChange: (e) => {
98
+ onChange({ huddle: e.target.value });
99
+ },
100
+ placeholder: `- \uAC11\uC790\uAE30 \uC7A1\uD788\uB294 \uBBF8\uD305\uB4E4
101
+ - MZ \uC138\uB300\uC640\uC758 \uC790\uC5F0\uC2A4\uB7FD\uC9C0 \uC54A\uC740 \uC18C\uD1B5
102
+ - \uB300\uD654\uC5D0\uC11C \uCC38\uC744\uC131 \uBD80\uC871`,
103
+ resize: "vertical",
104
+ value: values.huddle
105
+ }
106
+ ),
107
+ /* @__PURE__ */ jsx(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.huddle), children: errors == null ? void 0 : errors.huddle })
108
+ ] }),
109
+ /* @__PURE__ */ jsxs(Form.Field, { name: "dueDate", children: [
110
+ /* @__PURE__ */ jsx(Form.Label, { children: "\uBAA9\uD45C \uB2EC\uC131 \uAE30\uD55C\uC740 \uB2E4\uC74C\uACFC \uAC19\uC2B5\uB2C8\uB2E4" }),
111
+ /* @__PURE__ */ jsx(
112
+ DatePickerButton,
113
+ {
114
+ format: (v) => format(v, "yyyy\uB144 MM\uC6D4 dd\uC77C"),
115
+ onChange: (date) => {
116
+ date && onChange({ dueDate: date });
117
+ },
118
+ placeholder: "YYYY\uB144 MM\uC6D4 DD\uC77C",
119
+ selected: values.dueDate
120
+ }
121
+ ),
122
+ /* @__PURE__ */ jsx(Form.Message, { forceMatch: Boolean(errors == null ? void 0 : errors.dueDate), children: errors == null ? void 0 : errors.dueDate })
123
+ ] })
124
+ ] }),
125
+ /* @__PURE__ */ jsxs(Flex, { gap: "3", justify: "end", width: "100%", children: [
126
+ /* @__PURE__ */ jsx(
127
+ Button,
128
+ {
129
+ color: "gray",
130
+ onClick: onClickInit,
131
+ size: "small",
132
+ type: "button",
133
+ variant: "outline",
134
+ children: "\uCD08\uAE30\uD654\uD558\uAE30"
135
+ }
136
+ ),
137
+ /* @__PURE__ */ jsx(Button, { onClick: onClickSubmit, size: "small", type: "button", children: "\uC800\uC7A5\uD558\uAE30" })
138
+ ] })
139
+ ] }) });
140
+ }
141
+
142
+ export {
143
+ GoalManageCardEdit
144
+ };
145
+ //# sourceMappingURL=chunk-CAUI37PO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/app/platform/goal-manage-card-edit.tsx"],"sourcesContent":["import React, { useCallback, useState } from 'react';\nimport { format } from 'date-fns';\nimport { Button, Card, Flex, Form, TextArea, TextField } from '../../atoms';\nimport { DatePickerButton } from '../../molecules';\n\ninterface Values {\n goal?: string;\n effect?: string;\n huddle?: string;\n dueDate?: Date;\n}\n\ninterface GoalManageCardEditProps {\n onChange?: (values: Partial<Values>) => void;\n defaultValues?: Values;\n errors?: { [key in keyof Values]: string };\n onSubmit?: (values: Values) => void;\n}\n\nconst initialValues: Values = {\n goal: '',\n effect: '',\n huddle: '',\n dueDate: undefined,\n};\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function -- dummy용 함수\nconst dummyFn = (): void => {};\n\nexport function GoalManageCardEdit(\n props: GoalManageCardEditProps\n): React.ReactElement {\n const { defaultValues, errors } = props;\n const [values, setValues] = useState(defaultValues || initialValues);\n\n const onChange = useCallback(\n (v: Partial<Values>) => {\n setValues((prev) => ({ ...prev, ...v }));\n props.onChange?.(v);\n },\n [props]\n );\n\n const onClickInit = useCallback(() => {\n setValues(initialValues);\n props.onChange?.(defaultValues || initialValues);\n }, [defaultValues, props]);\n\n const onClickSubmit = useCallback(() => {\n props.onSubmit?.(values);\n }, [props, values]);\n\n return (\n <Card style={{ width: '100%' }}>\n <Form.Root onSubmit={dummyFn}>\n <Flex direction=\"column\" gap=\"5\">\n <Form.Field name=\"title\">\n <Form.Label>이번 코칭의 목표는 아래와 같습니다</Form.Label>\n <TextField.Root\n error={Boolean(errors?.goal)}\n onChange={(e) => {\n onChange({ goal: e.target.value });\n }}\n placeholder=\"이번 코칭 과정의 목표를 한 문장으로 적어주세요\"\n value={values.goal}\n />\n <Form.Message forceMatch={Boolean(errors?.goal)}>\n {errors?.goal}\n </Form.Message>\n </Form.Field>\n\n <Form.Field name=\"effect\">\n <Form.Label>기대효과</Form.Label>\n <TextArea\n error={Boolean(errors?.effect)}\n onChange={(e) => {\n onChange({ effect: e.target.value });\n }}\n placeholder=\"예시 : 팀원들과 더 친밀해지고, 팀원들에 대한 이해도가 쌓이며 더 효율적인 인재관리를 위한 관계형성이 가능해집니다.\"\n resize=\"vertical\"\n value={values.effect}\n />\n <Form.Message forceMatch={Boolean(errors?.effect)}>\n {errors?.effect}\n </Form.Message>\n </Form.Field>\n\n <Form.Field name=\"huddle\">\n <Form.Label>방해요소</Form.Label>\n <TextArea\n error={Boolean(errors?.huddle)}\n onChange={(e) => {\n onChange({ huddle: e.target.value });\n }}\n placeholder={`- 갑자기 잡히는 미팅들\n- MZ 세대와의 자연스럽지 않은 소통\n- 대화에서 참을성 부족`}\n resize=\"vertical\"\n value={values.huddle}\n />\n <Form.Message forceMatch={Boolean(errors?.huddle)}>\n {errors?.huddle}\n </Form.Message>\n </Form.Field>\n\n <Form.Field name=\"dueDate\">\n <Form.Label>목표 달성 기한은 다음과 같습니다</Form.Label>\n <DatePickerButton\n format={(v) => format(v, 'yyyy년 MM월 dd일')}\n onChange={(date) => {\n date && onChange({ dueDate: date });\n }}\n placeholder=\"YYYY년 MM월 DD일\"\n selected={values.dueDate}\n />\n <Form.Message forceMatch={Boolean(errors?.dueDate)}>\n {errors?.dueDate}\n </Form.Message>\n </Form.Field>\n </Flex>\n\n <Flex gap=\"3\" justify=\"end\" width=\"100%\">\n <Button\n color=\"gray\"\n onClick={onClickInit}\n size=\"small\"\n type=\"button\"\n variant=\"outline\"\n >\n 초기화하기\n </Button>\n <Button onClick={onClickSubmit} size=\"small\" type=\"button\">\n 저장하기\n </Button>\n </Flex>\n </Form.Root>\n </Card>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAgB,aAAa,gBAAgB;AAC7C,SAAS,cAAc;AAuDb,SACE,KADF;AArCV,IAAM,gBAAwB;AAAA,EAC5B,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AACX;AAGA,IAAM,UAAU,MAAY;AAAC;AAEtB,SAAS,mBACd,OACoB;AACpB,QAAM,EAAE,eAAe,OAAO,IAAI;AAClC,QAAM,CAAC,QAAQ,SAAS,IAAI,SAAS,iBAAiB,aAAa;AAEnE,QAAM,WAAW;AAAA,IACf,CAAC,MAAuB;AApC5B;AAqCM,gBAAU,CAAC,SAAU,kCAAK,OAAS,EAAI;AACvC,kBAAM,aAAN,+BAAiB;AAAA,IACnB;AAAA,IACA,CAAC,KAAK;AAAA,EACR;AAEA,QAAM,cAAc,YAAY,MAAM;AA3CxC;AA4CI,cAAU,aAAa;AACvB,gBAAM,aAAN,+BAAiB,iBAAiB;AAAA,EACpC,GAAG,CAAC,eAAe,KAAK,CAAC;AAEzB,QAAM,gBAAgB,YAAY,MAAM;AAhD1C;AAiDI,gBAAM,aAAN,+BAAiB;AAAA,EACnB,GAAG,CAAC,OAAO,MAAM,CAAC;AAElB,SACE,oBAAC,QAAK,OAAO,EAAE,OAAO,OAAO,GAC3B,+BAAC,KAAK,MAAL,EAAU,UAAU,SACnB;AAAA,yBAAC,QAAK,WAAU,UAAS,KAAI,KAC3B;AAAA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AAQ,QACX;AAAA,SACF;AAAA,MAEA,qBAAC,KAAK,OAAL,EAAW,MAAK,WACf;AAAA,4BAAC,KAAK,OAAL,EAAW,sGAAkB;AAAA,QAC9B;AAAA,UAAC;AAAA;AAAA,YACC,QAAQ,CAAC,MAAM,OAAO,GAAG,8BAAe;AAAA,YACxC,UAAU,CAAC,SAAS;AAClB,sBAAQ,SAAS,EAAE,SAAS,KAAK,CAAC;AAAA,YACpC;AAAA,YACA,aAAY;AAAA,YACZ,UAAU,OAAO;AAAA;AAAA,QACnB;AAAA,QACA,oBAAC,KAAK,SAAL,EAAa,YAAY,QAAQ,iCAAQ,OAAO,GAC9C,2CAAQ,SACX;AAAA,SACF;AAAA,OACF;AAAA,IAEA,qBAAC,QAAK,KAAI,KAAI,SAAQ,OAAM,OAAM,QAChC;AAAA;AAAA,QAAC;AAAA;AAAA,UACC,OAAM;AAAA,UACN,SAAS;AAAA,UACT,MAAK;AAAA,UACL,MAAK;AAAA,UACL,SAAQ;AAAA,UACT;AAAA;AAAA,MAED;AAAA,MACA,oBAAC,UAAO,SAAS,eAAe,MAAK,SAAQ,MAAK,UAAS,sCAE3D;AAAA,OACF;AAAA,KACF,GACF;AAEJ;","names":[]}
@@ -0,0 +1,30 @@
1
+ import {
2
+ CoachingCustomerInfoLarge
3
+ } from "./chunk-PAGVOUG2.js";
4
+ import {
5
+ CoachingCustomerInfoMedium
6
+ } from "./chunk-X3P223HR.js";
7
+ import {
8
+ CoachingCustomerInfoSmall
9
+ } from "./chunk-MVM2SUG6.js";
10
+ import {
11
+ Box
12
+ } from "./chunk-4Y5BEXVN.js";
13
+ import {
14
+ __spreadValues
15
+ } from "./chunk-N552FDTV.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-DUKKMCFP.js.map
@@ -0,0 +1 @@
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.ReactElement {\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,OACoB;AACpB,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":[]}