catchup-library-web 1.15.7 → 1.15.8
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/index.js +14 -12
- package/dist/index.mjs +15 -13
- package/package.json +1 -1
- package/src/components/activities/ActivityPreviewByAnswerData.tsx +20 -19
package/dist/index.js
CHANGED
|
@@ -7290,20 +7290,22 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7290
7290
|
};
|
|
7291
7291
|
if (!data) return null;
|
|
7292
7292
|
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { children: [
|
|
7293
|
-
showType && optionList.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7293
|
+
showType && optionList.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
|
|
7294
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "mb-4", children: [
|
|
7295
|
+
showDescription ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "my-2", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
7296
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
7297
|
+
SelectionBox_default,
|
|
7298
|
+
{
|
|
7299
|
+
optionList,
|
|
7300
|
+
selectedId: selectedType,
|
|
7301
|
+
handleSelectOnClick: (itemId) => {
|
|
7302
|
+
setSelectedType(itemId);
|
|
7303
|
+
}
|
|
7302
7304
|
}
|
|
7303
|
-
|
|
7304
|
-
)
|
|
7305
|
+
)
|
|
7306
|
+
] }),
|
|
7307
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DividerLine_default, {})
|
|
7305
7308
|
] }) : null,
|
|
7306
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(DividerLine_default, {}),
|
|
7307
7309
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-col my-2 w-full p-5", children: [
|
|
7308
7310
|
((_a = answer == null ? void 0 : answer.data[0]) == null ? void 0 : _a.isEmpty) ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ActivityEmptyContent_default, {}) : null,
|
|
7309
7311
|
selectedType ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { children: RenderSelectedActivityContent() }, selectedType) : null
|
package/dist/index.mjs
CHANGED
|
@@ -6944,7 +6944,7 @@ var ActivityPreviewByData_default = ActivityPreviewByData;
|
|
|
6944
6944
|
|
|
6945
6945
|
// src/components/activities/ActivityPreviewByAnswerData.tsx
|
|
6946
6946
|
import { useEffect as useEffect15, useState as useState25 } from "react";
|
|
6947
|
-
import { jsx as jsx49, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6947
|
+
import { Fragment as Fragment10, jsx as jsx49, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
6948
6948
|
var ActivityPreviewByAnswerData = ({
|
|
6949
6949
|
data,
|
|
6950
6950
|
showType = true,
|
|
@@ -7080,20 +7080,22 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7080
7080
|
};
|
|
7081
7081
|
if (!data) return null;
|
|
7082
7082
|
return /* @__PURE__ */ jsxs37("div", { children: [
|
|
7083
|
-
showType && optionList.length > 0 ? /* @__PURE__ */ jsxs37(
|
|
7084
|
-
|
|
7085
|
-
|
|
7086
|
-
|
|
7087
|
-
|
|
7088
|
-
|
|
7089
|
-
|
|
7090
|
-
|
|
7091
|
-
|
|
7083
|
+
showType && optionList.length > 0 ? /* @__PURE__ */ jsxs37(Fragment10, { children: [
|
|
7084
|
+
/* @__PURE__ */ jsxs37("div", { className: "mb-4", children: [
|
|
7085
|
+
showDescription ? /* @__PURE__ */ jsx49("div", { className: "my-2", children: /* @__PURE__ */ jsx49("p", { className: "font-semibold text-lg", children: i18n_default.t("activity_template") }) }) : null,
|
|
7086
|
+
/* @__PURE__ */ jsx49(
|
|
7087
|
+
SelectionBox_default,
|
|
7088
|
+
{
|
|
7089
|
+
optionList,
|
|
7090
|
+
selectedId: selectedType,
|
|
7091
|
+
handleSelectOnClick: (itemId) => {
|
|
7092
|
+
setSelectedType(itemId);
|
|
7093
|
+
}
|
|
7092
7094
|
}
|
|
7093
|
-
|
|
7094
|
-
)
|
|
7095
|
+
)
|
|
7096
|
+
] }),
|
|
7097
|
+
/* @__PURE__ */ jsx49(DividerLine_default, {})
|
|
7095
7098
|
] }) : null,
|
|
7096
|
-
/* @__PURE__ */ jsx49(DividerLine_default, {}),
|
|
7097
7099
|
/* @__PURE__ */ jsxs37("div", { className: "flex flex-col my-2 w-full p-5", children: [
|
|
7098
7100
|
((_a = answer == null ? void 0 : answer.data[0]) == null ? void 0 : _a.isEmpty) ? /* @__PURE__ */ jsx49(ActivityEmptyContent_default, {}) : null,
|
|
7099
7101
|
selectedType ? /* @__PURE__ */ jsx49("div", { children: RenderSelectedActivityContent() }, selectedType) : null
|
package/package.json
CHANGED
|
@@ -218,27 +218,28 @@ const ActivityPreviewByAnswerData = ({
|
|
|
218
218
|
return (
|
|
219
219
|
<div key={key}>
|
|
220
220
|
{showType && optionList.length > 0 ? (
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
<
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
221
|
+
<>
|
|
222
|
+
<div className="mb-4">
|
|
223
|
+
{showDescription ? (
|
|
224
|
+
<div className="my-2">
|
|
225
|
+
<p className="font-semibold text-lg">
|
|
226
|
+
{i18n.t("activity_template")}
|
|
227
|
+
</p>
|
|
228
|
+
</div>
|
|
229
|
+
) : null}
|
|
230
|
+
|
|
231
|
+
<SelectionBox
|
|
232
|
+
optionList={optionList}
|
|
233
|
+
selectedId={selectedType}
|
|
234
|
+
handleSelectOnClick={(itemId) => {
|
|
235
|
+
setSelectedType(itemId);
|
|
236
|
+
}}
|
|
237
|
+
/>
|
|
238
|
+
</div>
|
|
239
|
+
<DividerLine />
|
|
240
|
+
</>
|
|
238
241
|
) : null}
|
|
239
242
|
|
|
240
|
-
<DividerLine />
|
|
241
|
-
|
|
242
243
|
<div className="flex flex-col my-2 w-full p-5">
|
|
243
244
|
{answer?.data[0]?.isEmpty ? <ActivityEmptyContent /> : null}
|
|
244
245
|
|