@tipp/ui 2.1.8 → 2.1.10
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 +57 -57
- package/dist/app/platform/coach-question-list.js +27 -27
- package/dist/app/platform/contents-card.js +27 -27
- package/dist/app/platform/curriculum-card.js +2 -2
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +42 -42
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +42 -42
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +43 -43
- package/dist/app/platform/goal-manage-card-read.js +27 -27
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +42 -42
- package/dist/app/platform/report-card.js +27 -27
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +43 -43
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +43 -43
- package/dist/app/platform/session-review-simple-read.js +27 -27
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +32 -32
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +27 -27
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +27 -27
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +26 -26
- package/dist/app/platform/userInfos/session-user-info-detail.js +26 -26
- package/dist/app/platform/userInfos/utils.js +26 -26
- package/dist/atoms/index.js +62 -62
- package/dist/chunk-2T7JCRER.js +30 -0
- package/dist/chunk-2T7JCRER.js.map +1 -0
- package/dist/chunk-EFB4UO4F.js +123 -0
- package/dist/chunk-EFB4UO4F.js.map +1 -0
- package/dist/chunk-GJQDFBAF.js +150 -0
- package/dist/chunk-GJQDFBAF.js.map +1 -0
- package/dist/chunk-HNO5SCLZ.js +192 -0
- package/dist/chunk-HNO5SCLZ.js.map +1 -0
- package/dist/chunk-HQGFHFGR.js +123 -0
- package/dist/chunk-HQGFHFGR.js.map +1 -0
- package/dist/chunk-I6NVQV5Q.js +59 -0
- package/dist/chunk-I6NVQV5Q.js.map +1 -0
- package/dist/chunk-J27CSA2I.js +59 -0
- package/dist/chunk-J27CSA2I.js.map +1 -0
- package/dist/chunk-J52WPSWU.js +150 -0
- package/dist/chunk-J52WPSWU.js.map +1 -0
- package/dist/chunk-LPLXVTDP.js +192 -0
- package/dist/chunk-LPLXVTDP.js.map +1 -0
- package/dist/chunk-MZ3VW66Q.js +89 -0
- package/dist/chunk-MZ3VW66Q.js.map +1 -0
- package/dist/chunk-NXECPRLF.js +192 -0
- package/dist/chunk-NXECPRLF.js.map +1 -0
- package/dist/chunk-O5VFW7GH.js +59 -0
- package/dist/chunk-O5VFW7GH.js.map +1 -0
- package/dist/chunk-POJT5P6J.js +59 -0
- package/dist/chunk-POJT5P6J.js.map +1 -0
- package/dist/chunk-QQ5DIV3E.js +89 -0
- package/dist/chunk-QQ5DIV3E.js.map +1 -0
- package/dist/chunk-QTUOT7HX.js +59 -0
- package/dist/chunk-QTUOT7HX.js.map +1 -0
- package/dist/chunk-TN63T2TG.js +89 -0
- package/dist/chunk-TN63T2TG.js.map +1 -0
- package/dist/chunk-TNMIE7WN.js +192 -0
- package/dist/chunk-TNMIE7WN.js.map +1 -0
- package/dist/chunk-VTNGVFOL.js +123 -0
- package/dist/chunk-VTNGVFOL.js.map +1 -0
- package/dist/chunk-WNFEYK6I.js +123 -0
- package/dist/chunk-WNFEYK6I.js.map +1 -0
- package/dist/chunk-WNYT4BQZ.js +89 -0
- package/dist/chunk-WNYT4BQZ.js.map +1 -0
- package/dist/chunk-YDNYSZ4R.js +89 -0
- package/dist/chunk-YDNYSZ4R.js.map +1 -0
- package/dist/chunk-ZS32P3T5.js +123 -0
- package/dist/chunk-ZS32P3T5.js.map +1 -0
- package/dist/index.cjs +69 -70
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +45 -21
- package/dist/index.js +110 -110
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +31 -31
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +30 -30
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +27 -27
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +27 -27
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +27 -27
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs +3 -6
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +33 -33
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs +3 -6
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +27 -27
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs +3 -6
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +34 -34
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-video.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs +3 -6
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +35 -35
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-title.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +26 -26
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +26 -26
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +26 -26
- package/dist/molecules/curriculumV2/curriculum-v2-layout.js +26 -26
- package/dist/molecules/curriculumV2/index.cjs +3 -6
- package/dist/molecules/curriculumV2/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/index.js +35 -35
- package/dist/molecules/date-picker/date-picker-button.js +26 -26
- package/dist/molecules/expand-table/index.cjs +66 -64
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +27 -27
- package/dist/molecules/expand-table/row.js +26 -26
- package/dist/molecules/index.cjs +69 -70
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +49 -49
- package/dist/molecules/learning-post.js +2 -2
- package/dist/molecules/navigation.js +26 -26
- package/dist/molecules/radio-button-card.js +26 -26
- package/dist/molecules/stepper.js +2 -2
- package/dist/molecules/tag-selector.js +27 -27
- package/dist/molecules/time-select.js +26 -26
- package/package.json +3 -3
- package/src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.tsx +2 -5
- package/src/molecules/expand-table/index.tsx +13 -12
package/dist/index.cjs
CHANGED
|
@@ -1982,7 +1982,7 @@ function ExpandTable(props) {
|
|
|
1982
1982
|
const gridTemplateColumns = (0, import_react21.useMemo)(() => {
|
|
1983
1983
|
return columns.map((col) => {
|
|
1984
1984
|
var _a;
|
|
1985
|
-
if ((_a = col.meta) == null ? void 0 : _a.autoSize) return
|
|
1985
|
+
if ((_a = col.meta) == null ? void 0 : _a.autoSize) return `minmax(${col.size || 50}px, 1fr)`;
|
|
1986
1986
|
return `${col.size || 150}px`;
|
|
1987
1987
|
}).join(" ");
|
|
1988
1988
|
}, [columns]);
|
|
@@ -2019,71 +2019,73 @@ function ExpandTable(props) {
|
|
|
2019
2019
|
if (!data) return 0;
|
|
2020
2020
|
return Math.ceil(data.length / pageSize);
|
|
2021
2021
|
}, [data, pageSize]);
|
|
2022
|
-
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "expand-table",
|
|
2023
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.
|
|
2024
|
-
"div",
|
|
2025
|
-
|
|
2026
|
-
className: "tr",
|
|
2027
|
-
style: { gridTemplateColumns },
|
|
2028
|
-
children: headerGroup.headers.map((header) => {
|
|
2029
|
-
var _a;
|
|
2030
|
-
const sortable = header.column.getCanSort();
|
|
2031
|
-
const sortedState = header.column.getIsSorted();
|
|
2032
|
-
const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
|
|
2033
|
-
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
2034
|
-
"button",
|
|
2035
|
-
{
|
|
2036
|
-
onClick: header.column.getToggleSortingHandler(),
|
|
2037
|
-
style: sortable ? { cursor: "pointer" } : { cursor: "default" },
|
|
2038
|
-
type: "button",
|
|
2039
|
-
children: [
|
|
2040
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
|
|
2041
|
-
header.column.columnDef.header,
|
|
2042
|
-
header.getContext()
|
|
2043
|
-
) }),
|
|
2044
|
-
sortable ? /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
2045
|
-
import_themes22.Flex,
|
|
2046
|
-
{
|
|
2047
|
-
direction: "column",
|
|
2048
|
-
style: { marginLeft: "var(--space-2)" },
|
|
2049
|
-
children: [
|
|
2050
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2051
|
-
TriangleArrowUpIcon,
|
|
2052
|
-
{
|
|
2053
|
-
color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
2054
|
-
}
|
|
2055
|
-
),
|
|
2056
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2057
|
-
TriangleArrowDownIcon,
|
|
2058
|
-
{
|
|
2059
|
-
color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
2060
|
-
}
|
|
2061
|
-
)
|
|
2062
|
-
]
|
|
2063
|
-
}
|
|
2064
|
-
) : null
|
|
2065
|
-
]
|
|
2066
|
-
}
|
|
2067
|
-
) }, header.id);
|
|
2068
|
-
})
|
|
2069
|
-
},
|
|
2070
|
-
headerGroup.id
|
|
2071
|
-
)) }),
|
|
2072
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
|
|
2073
|
-
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2074
|
-
Row,
|
|
2022
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "expand-table-wrapper", children: [
|
|
2023
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "expand-table", style: tableStyle, children: [
|
|
2024
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2025
|
+
"div",
|
|
2075
2026
|
{
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2027
|
+
className: "tr",
|
|
2028
|
+
style: { gridTemplateColumns },
|
|
2029
|
+
children: headerGroup.headers.map((header) => {
|
|
2030
|
+
var _a;
|
|
2031
|
+
const sortable = header.column.getCanSort();
|
|
2032
|
+
const sortedState = header.column.getIsSorted();
|
|
2033
|
+
const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
|
|
2034
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
2035
|
+
"button",
|
|
2036
|
+
{
|
|
2037
|
+
onClick: header.column.getToggleSortingHandler(),
|
|
2038
|
+
style: sortable ? { cursor: "pointer" } : { cursor: "default" },
|
|
2039
|
+
type: "button",
|
|
2040
|
+
children: [
|
|
2041
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
|
|
2042
|
+
header.column.columnDef.header,
|
|
2043
|
+
header.getContext()
|
|
2044
|
+
) }),
|
|
2045
|
+
sortable ? /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
2046
|
+
import_themes22.Flex,
|
|
2047
|
+
{
|
|
2048
|
+
direction: "column",
|
|
2049
|
+
style: { marginLeft: "var(--space-2)" },
|
|
2050
|
+
children: [
|
|
2051
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2052
|
+
TriangleArrowUpIcon,
|
|
2053
|
+
{
|
|
2054
|
+
color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
2055
|
+
}
|
|
2056
|
+
),
|
|
2057
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2058
|
+
TriangleArrowDownIcon,
|
|
2059
|
+
{
|
|
2060
|
+
color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
|
|
2061
|
+
}
|
|
2062
|
+
)
|
|
2063
|
+
]
|
|
2064
|
+
}
|
|
2065
|
+
) : null
|
|
2066
|
+
]
|
|
2067
|
+
}
|
|
2068
|
+
) }, header.id);
|
|
2069
|
+
})
|
|
2083
2070
|
},
|
|
2084
|
-
|
|
2085
|
-
)
|
|
2086
|
-
|
|
2071
|
+
headerGroup.id
|
|
2072
|
+
)) }),
|
|
2073
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
|
|
2074
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2075
|
+
Row,
|
|
2076
|
+
{
|
|
2077
|
+
ExpandComp,
|
|
2078
|
+
defaultAlign,
|
|
2079
|
+
getCellStyle,
|
|
2080
|
+
getRowStyle,
|
|
2081
|
+
gridTemplateColumns,
|
|
2082
|
+
onRowClick,
|
|
2083
|
+
row
|
|
2084
|
+
},
|
|
2085
|
+
`row_${row.id}`
|
|
2086
|
+
);
|
|
2087
|
+
}) })
|
|
2088
|
+
] }),
|
|
2087
2089
|
showPagination ? /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_themes22.Flex, { justify: "end", pt: "3", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2088
2090
|
Pagination,
|
|
2089
2091
|
{
|
|
@@ -3742,12 +3744,9 @@ var renderPreviewContent = (args) => {
|
|
|
3742
3744
|
);
|
|
3743
3745
|
};
|
|
3744
3746
|
var getReviewContentValue = (question, answer) => {
|
|
3745
|
-
var _a, _b, _c
|
|
3747
|
+
var _a, _b, _c;
|
|
3746
3748
|
if (question.type === "question_satisfaction_option") {
|
|
3747
|
-
|
|
3748
|
-
console.log(Number(answer));
|
|
3749
|
-
console.log((_a = question.options) == null ? void 0 : _a.find((option) => option.value === Number(answer)));
|
|
3750
|
-
return (_d = (_c = (_b = question.options) == null ? void 0 : _b.find((option) => option.value === Number(answer))) == null ? void 0 : _c.label) != null ? _d : "";
|
|
3749
|
+
return (_c = (_b = (_a = question.options) == null ? void 0 : _a.find((option) => option.value === Number(answer))) == null ? void 0 : _b.label) != null ? _c : "";
|
|
3751
3750
|
}
|
|
3752
3751
|
return answer;
|
|
3753
3752
|
};
|
|
@@ -3772,7 +3771,7 @@ var renderReviewContent = (args) => {
|
|
|
3772
3771
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes6.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Icon, { color }) }),
|
|
3773
3772
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_themes6.Box, { children: [
|
|
3774
3773
|
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Typo, { as: "p", color: "gray", mb: "2", weight: "bold", children: question.title }),
|
|
3775
|
-
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Badge, { color: badgeColor, size: "large", style: { whiteSpace: "break-spaces" }, children: value })
|
|
3774
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Badge, { color: badgeColor, size: "large", style: { whiteSpace: "break-spaces" }, children: value || "(\uBBF8 \uC751\uB2F5)" })
|
|
3776
3775
|
] })
|
|
3777
3776
|
]
|
|
3778
3777
|
},
|