@tipp/ui 2.1.10 → 2.1.11
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.map +1 -1
- package/dist/app/index.js +12 -12
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +8 -8
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +8 -8
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +8 -8
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +8 -8
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +8 -8
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +8 -8
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +4 -4
- package/dist/chunk-3H5JZH44.js +192 -0
- package/dist/chunk-3H5JZH44.js.map +1 -0
- package/dist/chunk-3RNLOJ3Z.js +63 -0
- package/dist/chunk-3RNLOJ3Z.js.map +1 -0
- package/dist/chunk-535PWEKB.js +192 -0
- package/dist/chunk-535PWEKB.js.map +1 -0
- package/dist/chunk-B36RAS3U.js +37 -0
- package/dist/chunk-B36RAS3U.js.map +1 -0
- package/dist/chunk-BX5F5FIY.js +51 -0
- package/dist/chunk-BX5F5FIY.js.map +1 -0
- package/dist/chunk-CPH6OVGY.js +63 -0
- package/dist/chunk-CPH6OVGY.js.map +1 -0
- package/dist/chunk-ECOW2GOO.js +98 -0
- package/dist/chunk-ECOW2GOO.js.map +1 -0
- package/dist/chunk-GIRU6LCT.js +123 -0
- package/dist/chunk-GIRU6LCT.js.map +1 -0
- package/dist/chunk-JXNELVQI.js +144 -0
- package/dist/chunk-JXNELVQI.js.map +1 -0
- package/dist/chunk-K2MWDCUN.js +61 -0
- package/dist/chunk-K2MWDCUN.js.map +1 -0
- package/dist/chunk-K43UQM5K.js +29 -0
- package/dist/chunk-K43UQM5K.js.map +1 -0
- package/dist/chunk-K5YEAJYF.js +174 -0
- package/dist/chunk-K5YEAJYF.js.map +1 -0
- package/dist/chunk-LYSC27W7.js +145 -0
- package/dist/chunk-LYSC27W7.js.map +1 -0
- package/dist/chunk-MHQTP5GH.js +150 -0
- package/dist/chunk-MHQTP5GH.js.map +1 -0
- package/dist/chunk-OBR3PYFG.js +89 -0
- package/dist/chunk-OBR3PYFG.js.map +1 -0
- package/dist/chunk-OY7YLOWY.js +69 -0
- package/dist/chunk-OY7YLOWY.js.map +1 -0
- package/dist/chunk-SPKSNWII.js +101 -0
- package/dist/chunk-SPKSNWII.js.map +1 -0
- package/dist/chunk-VVMUR24Y.js +281 -0
- package/dist/chunk-VVMUR24Y.js.map +1 -0
- package/dist/chunk-WPLJHMMO.js +87 -0
- package/dist/chunk-WPLJHMMO.js.map +1 -0
- package/dist/chunk-WRTFAPEW.js +49 -0
- package/dist/chunk-WRTFAPEW.js.map +1 -0
- package/dist/chunk-WZBMMXTJ.js +59 -0
- package/dist/chunk-WZBMMXTJ.js.map +1 -0
- package/dist/chunk-XDVRMLAH.js +42 -0
- package/dist/chunk-XDVRMLAH.js.map +1 -0
- package/dist/chunk-XPKOBDJ7.js +43 -0
- package/dist/chunk-XPKOBDJ7.js.map +1 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -0
- package/dist/index.js +19 -19
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +4 -4
- package/dist/molecules/curriculumV2/index.js +4 -4
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +1 -1
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +15 -15
- package/package.json +3 -3
- package/src/molecules/expand-table/index.tsx +1 -1
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import {
|
|
2
|
+
curriculum_review_default
|
|
3
|
+
} from "./chunk-GIRU6LCT.js";
|
|
4
|
+
import {
|
|
5
|
+
curriculum_video_default
|
|
6
|
+
} from "./chunk-HYMGXDPL.js";
|
|
7
|
+
import {
|
|
8
|
+
useCurriculumContext
|
|
9
|
+
} from "./chunk-YN4SHJ2O.js";
|
|
10
|
+
import {
|
|
11
|
+
Typo
|
|
12
|
+
} from "./chunk-LH57PIY2.js";
|
|
13
|
+
import {
|
|
14
|
+
Flex
|
|
15
|
+
} from "./chunk-25HMMI7R.js";
|
|
16
|
+
import {
|
|
17
|
+
InfoCircledIcon
|
|
18
|
+
} from "./chunk-53ZVUOHV.js";
|
|
19
|
+
|
|
20
|
+
// src/molecules/curriculumV2/CurriculumContents/index.tsx
|
|
21
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
22
|
+
function CurriculumBody() {
|
|
23
|
+
const { selectedItem, selectedSectionTitle } = useCurriculumContext();
|
|
24
|
+
switch (selectedItem.type) {
|
|
25
|
+
case "video":
|
|
26
|
+
return /* @__PURE__ */ jsx(curriculum_video_default, { item: selectedItem });
|
|
27
|
+
case "review":
|
|
28
|
+
return /* @__PURE__ */ jsx(
|
|
29
|
+
curriculum_review_default,
|
|
30
|
+
{
|
|
31
|
+
item: selectedItem,
|
|
32
|
+
sectionTitle: selectedSectionTitle == null ? void 0 : selectedSectionTitle.title
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
default:
|
|
36
|
+
return /* @__PURE__ */ jsxs(
|
|
37
|
+
Flex,
|
|
38
|
+
{
|
|
39
|
+
align: "center",
|
|
40
|
+
direction: "column",
|
|
41
|
+
gap: "2",
|
|
42
|
+
height: "100%",
|
|
43
|
+
justify: "center",
|
|
44
|
+
width: "100%",
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ jsx(InfoCircledIcon, { height: 24, width: 24 }),
|
|
47
|
+
/* @__PURE__ */ jsx(Typo, { children: "\uCEE8\uD150\uCE20\uB97C \uB85C\uB529 \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4" }),
|
|
48
|
+
/* @__PURE__ */ jsx(Typo, { align: "center", color: "gray", variant: "caption", children: `[debug info]
|
|
49
|
+
${JSON.stringify(selectedItem)}` })
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export {
|
|
57
|
+
CurriculumBody
|
|
58
|
+
};
|
|
59
|
+
//# sourceMappingURL=chunk-WZBMMXTJ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/curriculumV2/CurriculumContents/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex, Typo } from '@/atoms';\nimport { InfoCircledIcon } from '@/icon';\nimport { useCurriculumContext } from '../curriculum-context';\nimport CurriculumVideo from './curriculum-video';\nimport CurriculumReview from './curriculum-review';\n\nexport function CurriculumBody(): React.ReactNode {\n const { selectedItem, selectedSectionTitle } = useCurriculumContext();\n\n switch (selectedItem.type) {\n case 'video':\n return <CurriculumVideo item={selectedItem} />;\n case 'review':\n return (\n <CurriculumReview\n item={selectedItem}\n sectionTitle={selectedSectionTitle?.title}\n />\n );\n default:\n return (\n <Flex\n align=\"center\"\n direction=\"column\"\n gap=\"2\"\n height=\"100%\"\n justify=\"center\"\n width=\"100%\"\n >\n <InfoCircledIcon height={24} width={24} />\n <Typo>컨텐츠를 로딩 할 수 없습니다</Typo>\n <Typo align=\"center\" color=\"gray\" variant=\"caption\">\n {`[debug info]\n ${JSON.stringify(selectedItem)}`}\n </Typo>\n </Flex>\n );\n }\n} "],"mappings":";;;;;;;;;;;;;;;;;;;;AAYa,cAUL,YAVK;AALN,SAAS,iBAAkC;AAChD,QAAM,EAAE,cAAc,qBAAqB,IAAI,qBAAqB;AAEpE,UAAQ,aAAa,MAAM;AAAA,IACzB,KAAK;AACH,aAAO,oBAAC,4BAAgB,MAAM,cAAc;AAAA,IAC9C,KAAK;AACH,aACE;AAAA,QAAC;AAAA;AAAA,UACC,MAAM;AAAA,UACN,cAAc,6DAAsB;AAAA;AAAA,MACtC;AAAA,IAEJ;AACE,aACE;AAAA,QAAC;AAAA;AAAA,UACC,OAAM;AAAA,UACN,WAAU;AAAA,UACV,KAAI;AAAA,UACJ,QAAO;AAAA,UACP,SAAQ;AAAA,UACR,OAAM;AAAA,UAEN;AAAA,gCAAC,mBAAgB,QAAQ,IAAI,OAAO,IAAI;AAAA,YACxC,oBAAC,QAAK,0FAAgB;AAAA,YACtB,oBAAC,QAAK,OAAM,UAAS,OAAM,QAAO,SAAQ,WACvC;AAAA,cACC,KAAK,UAAU,YAAY,CAAC,IAChC;AAAA;AAAA;AAAA,MACF;AAAA,EAEN;AACF;","names":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Flex
|
|
3
|
+
} from "./chunk-25HMMI7R.js";
|
|
4
|
+
import {
|
|
5
|
+
__objRest,
|
|
6
|
+
__spreadProps,
|
|
7
|
+
__spreadValues
|
|
8
|
+
} from "./chunk-2NMEKWO5.js";
|
|
9
|
+
|
|
10
|
+
// src/molecules/date-picker/index.tsx
|
|
11
|
+
import { forwardRef } from "react";
|
|
12
|
+
import ReactDatePicker from "react-datepicker";
|
|
13
|
+
import { jsx } from "react/jsx-runtime";
|
|
14
|
+
var DatePicker = forwardRef(
|
|
15
|
+
(props, ref) => {
|
|
16
|
+
const _a = props, { fullWidth } = _a, rest = __objRest(_a, ["fullWidth"]);
|
|
17
|
+
const fullWidthClassName = fullWidth ? "full-width" : "";
|
|
18
|
+
return /* @__PURE__ */ jsx(Flex, { p: "0", width: "100%", children: /* @__PURE__ */ jsx(
|
|
19
|
+
ReactDatePicker,
|
|
20
|
+
__spreadProps(__spreadValues({
|
|
21
|
+
dateFormat: "YYYY/MM/dd",
|
|
22
|
+
nextMonthButtonLabel: "\uB2E4\uC74C \uB2EC",
|
|
23
|
+
placeholderText: "YYYY/mm/dd",
|
|
24
|
+
popperProps: { strategy: "fixed" },
|
|
25
|
+
previousMonthButtonLabel: "\uC774\uC804 \uB2EC",
|
|
26
|
+
ref,
|
|
27
|
+
showPopperArrow: false,
|
|
28
|
+
timeIntervals: 10
|
|
29
|
+
}, rest), {
|
|
30
|
+
calendarClassName: `tipp_datePicker_calendar ${rest.calendarClassName || ""}`,
|
|
31
|
+
timeCaption: "\uC2DC\uAC04",
|
|
32
|
+
wrapperClassName: `tipp_datePicker ${fullWidthClassName} ${rest.wrapperClassName || ""}`
|
|
33
|
+
})
|
|
34
|
+
) });
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
DatePicker.displayName = "DatePicker";
|
|
38
|
+
|
|
39
|
+
export {
|
|
40
|
+
DatePicker
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=chunk-XDVRMLAH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/date-picker/index.tsx"],"sourcesContent":["import type { ElementRef } from 'react';\nimport React, { forwardRef } from 'react';\nimport type { DatePickerProps as ReactDatePickerProps } from 'react-datepicker';\nimport ReactDatePicker from 'react-datepicker';\nimport { IconButton } from '../../atoms/icon-button';\nimport { Flex } from '../../atoms/flex';\nimport { ChevronLeftIcon, ChevronRightIcon } from '../../icon';\nimport { Heading } from '../../atoms/heading';\n\nexport type DatePickerProps = ReactDatePickerProps & {\n fullWidth?: boolean;\n};\ntype DatePickerRef = ElementRef<typeof ReactDatePicker>;\n\nexport const DatePicker = forwardRef<DatePickerRef, DatePickerProps>(\n (props, ref): React.ReactNode => {\n const { fullWidth, ...rest } = props;\n const fullWidthClassName = fullWidth ? 'full-width' : '';\n return (\n <Flex p=\"0\" width=\"100%\">\n <ReactDatePicker\n dateFormat=\"YYYY/MM/dd\"\n nextMonthButtonLabel=\"다음 달\"\n placeholderText=\"YYYY/mm/dd\"\n popperProps={{ strategy: 'fixed' }}\n previousMonthButtonLabel=\"이전 달\"\n ref={ref}\n // renderCustomHeader={renderCustomHeader}\n showPopperArrow={false}\n timeIntervals={10}\n {...rest}\n calendarClassName={`tipp_datePicker_calendar ${rest.calendarClassName || ''}`}\n timeCaption=\"시간\"\n wrapperClassName={`tipp_datePicker ${fullWidthClassName} ${rest.wrapperClassName || ''}`}\n />\n </Flex>\n );\n }\n);\n\nDatePicker.displayName = 'DatePicker';\n\n// const renderCustomHeader: ReactDatePickerProps['renderCustomHeader'] = (\n// props\n// ) => {\n// const {\n// date,\n// decreaseMonth,\n// increaseMonth,\n// prevMonthButtonDisabled,\n// nextMonthButtonDisabled,\n// } = props;\n\n// // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- date가 undefined일 수 있음\n// const year = date ? new Date(date).getFullYear() : '-';\n// // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- date가 undefined일 수 있음\n// const month = date ? new Date(date).getMonth() + 1 : '-';\n\n// return (\n// <Flex align=\"center\" justify=\"between\" pb=\"2\" pl=\"2\" pr=\"2\">\n// <IconButton\n// disabled={prevMonthButtonDisabled}\n// onClick={decreaseMonth}\n// type=\"button\"\n// variant=\"ghost\"\n// >\n// <ChevronLeftIcon />\n// </IconButton>\n// <Flex gap=\"3\">\n// <Heading variant=\"heading4\" weight=\"regular\">\n// {year}년\n// </Heading>\n// <Heading variant=\"heading4\" weight=\"regular\">\n// {month}월\n// </Heading>\n// </Flex>\n\n// <IconButton\n// disabled={nextMonthButtonDisabled}\n// onClick={increaseMonth}\n// type=\"button\"\n// variant=\"ghost\"\n// >\n// <ChevronRightIcon />\n// </IconButton>\n// </Flex>\n// );\n// };\n\n// DatePicker.displayName = 'DatePicker';\n"],"mappings":";;;;;;;;;;AACA,SAAgB,kBAAkB;AAElC,OAAO,qBAAqB;AAiBpB;AAND,IAAM,aAAa;AAAA,EACxB,CAAC,OAAO,QAAyB;AAC/B,UAA+B,YAAvB,YAhBZ,IAgBmC,IAAT,iBAAS,IAAT,CAAd;AACR,UAAM,qBAAqB,YAAY,eAAe;AACtD,WACE,oBAAC,QAAK,GAAE,KAAI,OAAM,QAChB;AAAA,MAAC;AAAA;AAAA,QACC,YAAW;AAAA,QACX,sBAAqB;AAAA,QACrB,iBAAgB;AAAA,QAChB,aAAa,EAAE,UAAU,QAAQ;AAAA,QACjC,0BAAyB;AAAA,QACzB;AAAA,QAEA,iBAAiB;AAAA,QACjB,eAAe;AAAA,SACX,OAVL;AAAA,QAWC,mBAAmB,4BAA4B,KAAK,qBAAqB,EAAE;AAAA,QAC3E,aAAY;AAAA,QACZ,kBAAkB,mBAAmB,kBAAkB,IAAI,KAAK,oBAAoB,EAAE;AAAA;AAAA,IACxF,GACF;AAAA,EAEJ;AACF;AAEA,WAAW,cAAc;","names":[]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getCurriculumIcon,
|
|
3
|
+
getCurriculumQuestionIconColor
|
|
4
|
+
} from "./chunk-ECOW2GOO.js";
|
|
5
|
+
import {
|
|
6
|
+
Box
|
|
7
|
+
} from "./chunk-4Y5BEXVN.js";
|
|
8
|
+
import {
|
|
9
|
+
Typo
|
|
10
|
+
} from "./chunk-LH57PIY2.js";
|
|
11
|
+
import {
|
|
12
|
+
Flex
|
|
13
|
+
} from "./chunk-25HMMI7R.js";
|
|
14
|
+
|
|
15
|
+
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.tsx
|
|
16
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
function ReviewQuestionContentHeader({
|
|
18
|
+
type,
|
|
19
|
+
title,
|
|
20
|
+
question,
|
|
21
|
+
icon
|
|
22
|
+
}) {
|
|
23
|
+
const Icon = getCurriculumIcon({ type, icon });
|
|
24
|
+
return /* @__PURE__ */ jsxs(Box, { children: [
|
|
25
|
+
/* @__PURE__ */ jsxs(Flex, { gap: "2", mb: "3", children: [
|
|
26
|
+
/* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsx(
|
|
27
|
+
Icon,
|
|
28
|
+
{
|
|
29
|
+
color: getCurriculumQuestionIconColor(type),
|
|
30
|
+
height: "16",
|
|
31
|
+
width: "16"
|
|
32
|
+
}
|
|
33
|
+
) }),
|
|
34
|
+
/* @__PURE__ */ jsx(Typo, { color: "gray", weight: "bold", children: title })
|
|
35
|
+
] }),
|
|
36
|
+
/* @__PURE__ */ jsx(Typo, { as: "p", color: "gray", children: question })
|
|
37
|
+
] });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export {
|
|
41
|
+
ReviewQuestionContentHeader
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=chunk-XPKOBDJ7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.tsx"],"sourcesContent":["import React from 'react';\nimport { Box, Flex, Typo } from '@/atoms';\nimport { getCurriculumIcon , getCurriculumQuestionIconColor } from '@/utils/curriculum.utils';\n\ninterface ReviewQuestionContentHeaderProps {\n type: string;\n title: string;\n question: string;\n icon?: string;\n}\n\nexport function ReviewQuestionContentHeader({\n type,\n title,\n question,\n icon,\n}: ReviewQuestionContentHeaderProps): React.ReactNode {\n const Icon = getCurriculumIcon({ type, icon });\n\n return (\n <Box>\n <Flex gap=\"2\" mb=\"3\">\n <Box>\n <Icon\n color={getCurriculumQuestionIconColor(type)}\n height=\"16\"\n width=\"16\"\n />\n </Box>\n <Typo color=\"gray\" weight=\"bold\">\n {title}\n </Typo>\n </Flex>\n <Typo as=\"p\" color=\"gray\">\n {question}\n </Typo>\n </Box>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;AAqBM,SAEI,KAFJ;AAVC,SAAS,4BAA4B;AAAA,EAC1C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAsD;AACpD,QAAM,OAAO,kBAAkB,EAAE,MAAM,KAAK,CAAC;AAE7C,SACE,qBAAC,OACC;AAAA,yBAAC,QAAK,KAAI,KAAI,IAAG,KACf;AAAA,0BAAC,OACC;AAAA,QAAC;AAAA;AAAA,UACC,OAAO,+BAA+B,IAAI;AAAA,UAC1C,QAAO;AAAA,UACP,OAAM;AAAA;AAAA,MACR,GACF;AAAA,MACA,oBAAC,QAAK,OAAM,QAAO,QAAO,QACvB,iBACH;AAAA,OACF;AAAA,IACA,oBAAC,QAAK,IAAG,KAAI,OAAM,QAChB,oBACH;AAAA,KACF;AAEJ;","names":[]}
|