@tipp/ui 2.3.10 → 2.3.12
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 +46 -42
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +88 -88
- package/dist/app/platform/coach-question-list.js +31 -31
- package/dist/app/platform/contents-card.js +31 -31
- package/dist/app/platform/curriculum-card.js +5 -5
- package/dist/app/platform/edit-coaching-time.cjs +19 -15
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +70 -70
- package/dist/app/platform/edit-service-type.cjs +14 -10
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +71 -71
- package/dist/app/platform/goal-manage-card-edit.cjs +16 -12
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +70 -70
- package/dist/app/platform/goal-manage-card-read.js +31 -31
- package/dist/app/platform/on-offline-radio-card.cjs +111 -107
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +70 -70
- package/dist/app/platform/report-card.js +31 -31
- package/dist/app/platform/reservation-card.cjs +21 -17
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +71 -71
- package/dist/app/platform/session-card.cjs +25 -21
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +73 -73
- package/dist/app/platform/session-review-simple-read.js +31 -31
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +36 -36
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +31 -31
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +31 -31
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +31 -31
- package/dist/app/platform/userInfos/session-user-info-detail.js +31 -31
- package/dist/app/platform/userInfos/utils.js +30 -30
- package/dist/atoms/bullet-text.js +2 -2
- package/dist/atoms/dialog.js +2 -2
- package/dist/atoms/field-error-wrapper.js +2 -2
- package/dist/atoms/index.js +62 -62
- package/dist/atoms/list.js +2 -2
- package/dist/atoms/pagination.js +3 -3
- package/dist/chunk-2QFLNAGL.js +100 -0
- package/dist/chunk-2QFLNAGL.js.map +1 -0
- package/dist/chunk-3FKAH2RB.js +105 -0
- package/dist/chunk-3FKAH2RB.js.map +1 -0
- package/dist/chunk-3OCAVV5Z.js +151 -0
- package/dist/chunk-3OCAVV5Z.js.map +1 -0
- package/dist/chunk-3PE6OFB3.js +70 -0
- package/dist/chunk-3PE6OFB3.js.map +1 -0
- package/dist/chunk-3QNIJCKK.js +98 -0
- package/dist/chunk-3QNIJCKK.js.map +1 -0
- package/dist/chunk-4OFVNWKB.js +100 -0
- package/dist/chunk-4OFVNWKB.js.map +1 -0
- package/dist/chunk-4SSWZQPC.js +89 -0
- package/dist/chunk-4SSWZQPC.js.map +1 -0
- package/dist/chunk-5JUYOJVM.js +77 -0
- package/dist/chunk-5JUYOJVM.js.map +1 -0
- package/dist/chunk-5SECMWKA.js +196 -0
- package/dist/chunk-5SECMWKA.js.map +1 -0
- package/dist/chunk-65FJZWXV.js +49 -0
- package/dist/chunk-65FJZWXV.js.map +1 -0
- package/dist/chunk-7UUHYDMJ.js +43 -0
- package/dist/chunk-7UUHYDMJ.js.map +1 -0
- package/dist/chunk-B5W5HY62.js +196 -0
- package/dist/chunk-B5W5HY62.js.map +1 -0
- package/dist/chunk-B63TOIOA.js +29 -0
- package/dist/chunk-B63TOIOA.js.map +1 -0
- package/dist/chunk-DTUYT5S2.js +98 -0
- package/dist/chunk-DTUYT5S2.js.map +1 -0
- package/dist/chunk-EI232M7E.js +196 -0
- package/dist/chunk-EI232M7E.js.map +1 -0
- package/dist/chunk-FDJPEXOU.js +222 -0
- package/dist/chunk-FDJPEXOU.js.map +1 -0
- package/dist/chunk-FGBFER5X.js +196 -0
- package/dist/chunk-FGBFER5X.js.map +1 -0
- package/dist/chunk-FNRYQLCC.js +64 -0
- package/dist/chunk-FNRYQLCC.js.map +1 -0
- package/dist/chunk-G7EN5QQR.js +64 -0
- package/dist/chunk-G7EN5QQR.js.map +1 -0
- package/dist/chunk-GDCDEPJO.js +64 -0
- package/dist/chunk-GDCDEPJO.js.map +1 -0
- package/dist/chunk-HHZ4HLP6.js +221 -0
- package/dist/chunk-HHZ4HLP6.js.map +1 -0
- package/dist/chunk-I4OEBZDH.js +64 -0
- package/dist/chunk-I4OEBZDH.js.map +1 -0
- package/dist/chunk-I5NKMQOT.js +64 -0
- package/dist/chunk-I5NKMQOT.js.map +1 -0
- package/dist/chunk-J5IKAPJM.js +69 -0
- package/dist/chunk-J5IKAPJM.js.map +1 -0
- package/dist/chunk-JJQM3MW3.js +98 -0
- package/dist/chunk-JJQM3MW3.js.map +1 -0
- package/dist/chunk-JKJUBJ65.js +70 -0
- package/dist/chunk-JKJUBJ65.js.map +1 -0
- package/dist/chunk-KLIEFXWN.js +100 -0
- package/dist/chunk-KLIEFXWN.js.map +1 -0
- package/dist/chunk-NDC72OWR.js +37 -0
- package/dist/chunk-NDC72OWR.js.map +1 -0
- package/dist/chunk-NMGLSEZ3.js +152 -0
- package/dist/chunk-NMGLSEZ3.js.map +1 -0
- package/dist/chunk-NMKIFFKE.js +63 -0
- package/dist/chunk-NMKIFFKE.js.map +1 -0
- package/dist/chunk-NMRNR5OA.js +221 -0
- package/dist/chunk-NMRNR5OA.js.map +1 -0
- package/dist/chunk-OX4OPOPI.js +82 -0
- package/dist/chunk-OX4OPOPI.js.map +1 -0
- package/dist/chunk-POFUBAXM.js +77 -0
- package/dist/chunk-POFUBAXM.js.map +1 -0
- package/dist/chunk-QBBF5V24.js +70 -0
- package/dist/chunk-QBBF5V24.js.map +1 -0
- package/dist/chunk-QMPSKZJ2.js +221 -0
- package/dist/chunk-QMPSKZJ2.js.map +1 -0
- package/dist/chunk-QPTWBPAQ.js +87 -0
- package/dist/chunk-QPTWBPAQ.js.map +1 -0
- package/dist/chunk-R7NTFLYB.js +98 -0
- package/dist/chunk-R7NTFLYB.js.map +1 -0
- package/dist/chunk-RAK5LEBO.js +70 -0
- package/dist/chunk-RAK5LEBO.js.map +1 -0
- package/dist/chunk-RWXNQPE7.js +151 -0
- package/dist/chunk-RWXNQPE7.js.map +1 -0
- package/dist/chunk-SGJFPJMV.js +100 -0
- package/dist/chunk-SGJFPJMV.js.map +1 -0
- package/dist/chunk-SYUWHIFX.js +98 -0
- package/dist/chunk-SYUWHIFX.js.map +1 -0
- package/dist/chunk-TDBCQSTJ.js +61 -0
- package/dist/chunk-TDBCQSTJ.js.map +1 -0
- package/dist/chunk-TGCLWLPY.js +51 -0
- package/dist/chunk-TGCLWLPY.js.map +1 -0
- package/dist/chunk-UFWZAT6E.js +89 -0
- package/dist/chunk-UFWZAT6E.js.map +1 -0
- package/dist/chunk-VN7IU4XW.js +64 -0
- package/dist/chunk-VN7IU4XW.js.map +1 -0
- package/dist/chunk-W3NTNHA4.js +196 -0
- package/dist/chunk-W3NTNHA4.js.map +1 -0
- package/dist/chunk-WGQGVPGZ.js +222 -0
- package/dist/chunk-WGQGVPGZ.js.map +1 -0
- package/dist/chunk-XDPRIBTV.js +101 -0
- package/dist/chunk-XDPRIBTV.js.map +1 -0
- package/dist/chunk-XU7H43IG.js +196 -0
- package/dist/chunk-XU7H43IG.js.map +1 -0
- package/dist/chunk-YEGT662X.js +221 -0
- package/dist/chunk-YEGT662X.js.map +1 -0
- package/dist/chunk-ZBZ7IGBT.js +222 -0
- package/dist/chunk-ZBZ7IGBT.js.map +1 -0
- package/dist/chunk-ZFWZAZPG.js +153 -0
- package/dist/chunk-ZFWZAZPG.js.map +1 -0
- package/dist/context/index.js +5 -5
- package/dist/index.cjs +148 -100
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +17 -11
- package/dist/index.js +137 -137
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +18 -18
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +11 -11
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +6 -6
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +21 -21
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +6 -6
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +24 -24
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +28 -28
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +4 -4
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs +54 -17
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +8 -8
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +5 -5
- package/dist/molecules/curriculumV2/curriculum-context.cjs +29 -21
- package/dist/molecules/curriculumV2/curriculum-context.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-context.d.cts +7 -1
- package/dist/molecules/curriculumV2/curriculum-context.d.ts +7 -1
- package/dist/molecules/curriculumV2/curriculum-context.js +1 -1
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +5 -5
- package/dist/molecules/curriculumV2/curriculum-v2-layout.js +2 -2
- package/dist/molecules/curriculumV2/index.cjs +85 -38
- 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 +6 -6
- package/dist/molecules/date-picker/index.js +5 -5
- package/dist/molecules/download-card.js +2 -2
- package/dist/molecules/dynamic-field.js +5 -5
- package/dist/molecules/dynamic-form.js +6 -6
- package/dist/molecules/expand-table/index.cjs +4 -3
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +5 -5
- package/dist/molecules/force-refresh.js +2 -2
- package/dist/molecules/ghost-post.js +4 -4
- package/dist/molecules/index.cjs +253 -205
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +65 -65
- package/dist/molecules/learning-post.js +6 -6
- package/dist/molecules/navigation.js +3 -3
- package/dist/molecules/one-on-one-guide-list.js +3 -3
- package/dist/molecules/stepper.js +4 -4
- package/dist/molecules/tag-selector.js +5 -5
- package/package.json +3 -3
- package/src/molecules/curriculumV2/CurriculumSidebar/index.tsx +47 -13
- package/src/molecules/curriculumV2/curriculum-context.tsx +62 -39
- package/src/molecules/expand-table/index.tsx +13 -12
package/dist/molecules/index.cjs
CHANGED
|
@@ -912,6 +912,7 @@ function Row(props) {
|
|
|
912
912
|
}
|
|
913
913
|
|
|
914
914
|
// src/molecules/expand-table/index.tsx
|
|
915
|
+
var import_themes5 = require("@radix-ui/themes");
|
|
915
916
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
916
917
|
var sortButtonColorMapper = {
|
|
917
918
|
card: {
|
|
@@ -1060,15 +1061,15 @@ function ExpandTable(props) {
|
|
|
1060
1061
|
}
|
|
1061
1062
|
) }, header.id);
|
|
1062
1063
|
}
|
|
1063
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1064
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
|
|
1064
1065
|
header.column.columnDef.header,
|
|
1065
1066
|
header.getContext()
|
|
1066
|
-
) }) }
|
|
1067
|
+
) }) }, header.id);
|
|
1067
1068
|
})
|
|
1068
1069
|
},
|
|
1069
1070
|
headerGroup.id
|
|
1070
1071
|
)) }),
|
|
1071
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1072
|
+
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes5.ScrollArea, { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
|
|
1072
1073
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1073
1074
|
Row,
|
|
1074
1075
|
{
|
|
@@ -1098,7 +1099,7 @@ function ExpandTable(props) {
|
|
|
1098
1099
|
|
|
1099
1100
|
// src/atoms/button.tsx
|
|
1100
1101
|
var import_react7 = require("react");
|
|
1101
|
-
var
|
|
1102
|
+
var import_themes6 = require("@radix-ui/themes");
|
|
1102
1103
|
var import_clsx2 = require("clsx");
|
|
1103
1104
|
|
|
1104
1105
|
// src/utils/convert-button-size.ts
|
|
@@ -1148,7 +1149,7 @@ var Button = (0, import_react7.forwardRef)(
|
|
|
1148
1149
|
return (0, import_clsx2.clsx)(props.className, { transparent: variant === "transparent" });
|
|
1149
1150
|
}, [props.className, variant]);
|
|
1150
1151
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1151
|
-
|
|
1152
|
+
import_themes6.Button,
|
|
1152
1153
|
__spreadProps(__spreadValues({
|
|
1153
1154
|
style,
|
|
1154
1155
|
type: "button",
|
|
@@ -1218,15 +1219,15 @@ var import_react_datepicker = __toESM(require("react-datepicker"), 1);
|
|
|
1218
1219
|
var import_locale = require("date-fns/locale");
|
|
1219
1220
|
|
|
1220
1221
|
// src/atoms/box.tsx
|
|
1221
|
-
var
|
|
1222
|
+
var import_themes7 = require("@radix-ui/themes");
|
|
1222
1223
|
|
|
1223
1224
|
// src/atoms/popover.tsx
|
|
1224
|
-
var
|
|
1225
|
+
var import_themes8 = require("@radix-ui/themes");
|
|
1225
1226
|
|
|
1226
1227
|
// src/atoms/heading.tsx
|
|
1227
|
-
var import_themes8 = require("@radix-ui/themes");
|
|
1228
|
-
var import_react8 = require("react");
|
|
1229
1228
|
var import_themes9 = require("@radix-ui/themes");
|
|
1229
|
+
var import_react8 = require("react");
|
|
1230
|
+
var import_themes10 = require("@radix-ui/themes");
|
|
1230
1231
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1231
1232
|
var mapVariant = (variant) => {
|
|
1232
1233
|
switch (variant) {
|
|
@@ -1252,7 +1253,7 @@ function Heading2(props) {
|
|
|
1252
1253
|
mapFn: mapVariant
|
|
1253
1254
|
}) : size;
|
|
1254
1255
|
}, [size, variant]);
|
|
1255
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_themes9.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
1256
1257
|
}
|
|
1257
1258
|
|
|
1258
1259
|
// src/molecules/date-picker/index.tsx
|
|
@@ -1335,13 +1336,13 @@ function DropdownSelector({
|
|
|
1335
1336
|
});
|
|
1336
1337
|
}
|
|
1337
1338
|
}, [isOpen]);
|
|
1338
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1339
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1339
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_themes8.Popover.Root, { modal: true, onOpenChange, open: isOpen, children: [
|
|
1340
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_themes8.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Button, { className: "react-datepicker_dropdown_header", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1340
1341
|
selectedValue,
|
|
1341
1342
|
suffix
|
|
1342
1343
|
] }) }) }),
|
|
1343
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1344
|
-
|
|
1344
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_themes8.Popover.Content, { side: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1345
|
+
import_themes7.Box,
|
|
1345
1346
|
{
|
|
1346
1347
|
maxHeight: "200px",
|
|
1347
1348
|
overflowY: "auto",
|
|
@@ -1501,10 +1502,10 @@ function DotNavigation(props) {
|
|
|
1501
1502
|
|
|
1502
1503
|
// src/molecules/stepper.tsx
|
|
1503
1504
|
var import_react12 = require("react");
|
|
1504
|
-
var
|
|
1505
|
+
var import_themes12 = require("@radix-ui/themes");
|
|
1505
1506
|
|
|
1506
1507
|
// src/atoms/avatar.tsx
|
|
1507
|
-
var
|
|
1508
|
+
var import_themes11 = require("@radix-ui/themes");
|
|
1508
1509
|
var import_react11 = require("react");
|
|
1509
1510
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1510
1511
|
var Avatar = (0, import_react11.forwardRef)(
|
|
@@ -1537,7 +1538,7 @@ var Avatar = (0, import_react11.forwardRef)(
|
|
|
1537
1538
|
return map;
|
|
1538
1539
|
}
|
|
1539
1540
|
}, [getOriginalSize, size]);
|
|
1540
|
-
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1541
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes11.Avatar, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, variant, children }));
|
|
1541
1542
|
}
|
|
1542
1543
|
);
|
|
1543
1544
|
Avatar.displayName = "Avatar";
|
|
@@ -1593,7 +1594,7 @@ function Step(props) {
|
|
|
1593
1594
|
direction = "vertical"
|
|
1594
1595
|
} = (0, import_react12.useContext)(StepContext);
|
|
1595
1596
|
const connector = index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1596
|
-
|
|
1597
|
+
import_themes12.Separator,
|
|
1597
1598
|
{
|
|
1598
1599
|
style: {
|
|
1599
1600
|
width: `calc(100% - 40px)`,
|
|
@@ -1697,7 +1698,7 @@ var import_react15 = require("react");
|
|
|
1697
1698
|
var import_react_icons3 = require("@radix-ui/react-icons");
|
|
1698
1699
|
|
|
1699
1700
|
// src/atoms/auto-sizing-input.tsx
|
|
1700
|
-
var
|
|
1701
|
+
var import_themes13 = require("@radix-ui/themes");
|
|
1701
1702
|
var import_react13 = require("react");
|
|
1702
1703
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1703
1704
|
var useTextWidth = (text, font) => {
|
|
@@ -1800,7 +1801,7 @@ var AutoSizingInput = (0, import_react13.forwardRef)(
|
|
|
1800
1801
|
}
|
|
1801
1802
|
}, [inputRef]);
|
|
1802
1803
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1803
|
-
|
|
1804
|
+
import_themes13.Box,
|
|
1804
1805
|
{
|
|
1805
1806
|
className: "auto-sizing-input wrapper",
|
|
1806
1807
|
maxWidth,
|
|
@@ -1815,7 +1816,7 @@ var AutoSizingInput = (0, import_react13.forwardRef)(
|
|
|
1815
1816
|
AutoSizingInput.displayName = "AutoSizingInput";
|
|
1816
1817
|
|
|
1817
1818
|
// src/atoms/badge.tsx
|
|
1818
|
-
var
|
|
1819
|
+
var import_themes14 = require("@radix-ui/themes");
|
|
1819
1820
|
var import_react14 = require("react");
|
|
1820
1821
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1821
1822
|
var Badge = (0, import_react14.forwardRef)(
|
|
@@ -1846,16 +1847,16 @@ var Badge = (0, import_react14.forwardRef)(
|
|
|
1846
1847
|
return void 0;
|
|
1847
1848
|
}
|
|
1848
1849
|
}, [color]);
|
|
1849
|
-
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1850
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_themes14.Badge, __spreadProps(__spreadValues({}, rest), { color: radixColor, ref, size: radixSize }));
|
|
1850
1851
|
}
|
|
1851
1852
|
);
|
|
1852
1853
|
Badge.displayName = "Badge";
|
|
1853
1854
|
|
|
1854
1855
|
// src/atoms/scroll-area.tsx
|
|
1855
|
-
var
|
|
1856
|
+
var import_themes15 = require("@radix-ui/themes");
|
|
1856
1857
|
|
|
1857
1858
|
// src/atoms/grid.tsx
|
|
1858
|
-
var
|
|
1859
|
+
var import_themes16 = require("@radix-ui/themes");
|
|
1859
1860
|
|
|
1860
1861
|
// src/molecules/tag-selector.tsx
|
|
1861
1862
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
@@ -2095,9 +2096,9 @@ function TagSelector(props) {
|
|
|
2095
2096
|
),
|
|
2096
2097
|
focus ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_icons3.MagnifyingGlassIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_icons3.ChevronRightIcon, {})
|
|
2097
2098
|
] });
|
|
2098
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2099
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2100
|
-
|
|
2099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_themes8.Popover.Root, { open: Boolean(filteredOptions.length) && propsOpen || open, children: [
|
|
2100
|
+
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_themes8.Popover.Trigger, { style: { position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2101
|
+
import_themes16.Grid,
|
|
2101
2102
|
{
|
|
2102
2103
|
align: "center",
|
|
2103
2104
|
className: `tag-selector ${size} ${focusClassName}${readOnlyClassName}${errorClassName}`,
|
|
@@ -2111,7 +2112,7 @@ function TagSelector(props) {
|
|
|
2111
2112
|
}
|
|
2112
2113
|
) }),
|
|
2113
2114
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2114
|
-
|
|
2115
|
+
import_themes8.Popover.Content,
|
|
2115
2116
|
{
|
|
2116
2117
|
onOpenAutoFocus: preventDefault,
|
|
2117
2118
|
onTouchMove: stopPropagationTouch,
|
|
@@ -2126,7 +2127,7 @@ function TagSelector(props) {
|
|
|
2126
2127
|
currentItem: filteredOptions[focusIndex || 0],
|
|
2127
2128
|
items: filteredOptions,
|
|
2128
2129
|
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2129
|
-
|
|
2130
|
+
import_themes15.ScrollArea,
|
|
2130
2131
|
{
|
|
2131
2132
|
ref: scrollRef,
|
|
2132
2133
|
scrollbars: "vertical",
|
|
@@ -2177,14 +2178,14 @@ var preventDefault = (e) => {
|
|
|
2177
2178
|
};
|
|
2178
2179
|
|
|
2179
2180
|
// src/theme/theme-provider.tsx
|
|
2180
|
-
var
|
|
2181
|
+
var import_themes17 = require("@radix-ui/themes");
|
|
2181
2182
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2182
2183
|
function ThemeProvider(props) {
|
|
2183
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_themes17.Theme, __spreadValues({ accentColor: "iris", radius: "medium" }, props));
|
|
2184
2185
|
}
|
|
2185
2186
|
|
|
2186
2187
|
// src/atoms/aspect-ratio.tsx
|
|
2187
|
-
var
|
|
2188
|
+
var import_themes18 = require("@radix-ui/themes");
|
|
2188
2189
|
|
|
2189
2190
|
// src/molecules/learning-post.tsx
|
|
2190
2191
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
@@ -2206,7 +2207,7 @@ function LearningPost(props) {
|
|
|
2206
2207
|
scaling: "110%",
|
|
2207
2208
|
style: {},
|
|
2208
2209
|
children: html ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2209
|
-
|
|
2210
|
+
import_themes16.Grid,
|
|
2210
2211
|
{
|
|
2211
2212
|
columns: { initial: "1", md: "130px 1fr 130px" },
|
|
2212
2213
|
gap: { initial: "2", md: "5" },
|
|
@@ -2228,9 +2229,9 @@ function LearningPost(props) {
|
|
|
2228
2229
|
overflow: "hidden",
|
|
2229
2230
|
width: "100%",
|
|
2230
2231
|
children: [
|
|
2231
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2232
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_themes16.Grid, { align: "start", columns: { initial: "1", sm: "2" }, gap: "2", children: [
|
|
2232
2233
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2233
|
-
|
|
2234
|
+
import_themes16.Grid,
|
|
2234
2235
|
{
|
|
2235
2236
|
gap: "3",
|
|
2236
2237
|
mb: { initial: "4", sm: "0" },
|
|
@@ -2258,7 +2259,7 @@ function LearningPost(props) {
|
|
|
2258
2259
|
}
|
|
2259
2260
|
),
|
|
2260
2261
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2261
|
-
|
|
2262
|
+
import_themes18.AspectRatio,
|
|
2262
2263
|
{
|
|
2263
2264
|
ratio: 5 / 3,
|
|
2264
2265
|
style: {
|
|
@@ -2270,7 +2271,7 @@ function LearningPost(props) {
|
|
|
2270
2271
|
}
|
|
2271
2272
|
)
|
|
2272
2273
|
] }),
|
|
2273
|
-
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2274
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_themes7.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2274
2275
|
"div",
|
|
2275
2276
|
{
|
|
2276
2277
|
className: "gh-content",
|
|
@@ -2317,16 +2318,16 @@ function LearningPost(props) {
|
|
|
2317
2318
|
var import_react_icons4 = require("@radix-ui/react-icons");
|
|
2318
2319
|
|
|
2319
2320
|
// src/atoms/code.tsx
|
|
2320
|
-
var
|
|
2321
|
+
var import_themes19 = require("@radix-ui/themes");
|
|
2321
2322
|
|
|
2322
2323
|
// src/atoms/kbd.tsx
|
|
2323
|
-
var
|
|
2324
|
+
var import_themes20 = require("@radix-ui/themes");
|
|
2324
2325
|
|
|
2325
2326
|
// src/molecules/force-refresh.tsx
|
|
2326
2327
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2327
2328
|
function CodeSize3(props) {
|
|
2328
2329
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2329
|
-
|
|
2330
|
+
import_themes19.Code,
|
|
2330
2331
|
{
|
|
2331
2332
|
style: {
|
|
2332
2333
|
display: "inline-flex",
|
|
@@ -2360,15 +2361,15 @@ function ForceRefresh() {
|
|
|
2360
2361
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_themes.Flex, { direction: "column", gap: "3", p: "0", pl: "3", children: [
|
|
2361
2362
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Typo, { children: [
|
|
2362
2363
|
"a. \uC708\uB3C4\uC6B0 \uB2E8\uCD95\uD0A4: ",
|
|
2363
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2364
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_themes20.Kbd, { children: "F12" })
|
|
2364
2365
|
] }),
|
|
2365
2366
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Typo, { children: [
|
|
2366
2367
|
"b. \uB9E5 \uB2E8\uCD95\uD0A4: ",
|
|
2367
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2368
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_themes20.Kbd, { children: "Option" }),
|
|
2368
2369
|
" + ",
|
|
2369
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2370
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_themes20.Kbd, { children: "Command" }),
|
|
2370
2371
|
" + ",
|
|
2371
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2372
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_themes20.Kbd, { children: "I" })
|
|
2372
2373
|
] })
|
|
2373
2374
|
] }),
|
|
2374
2375
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Typo, { children: [
|
|
@@ -2394,7 +2395,7 @@ var import_date_fns = require("date-fns");
|
|
|
2394
2395
|
var import_clsx3 = require("clsx");
|
|
2395
2396
|
|
|
2396
2397
|
// src/atoms/text-field.tsx
|
|
2397
|
-
var
|
|
2398
|
+
var import_themes21 = require("@radix-ui/themes");
|
|
2398
2399
|
var import_react16 = require("react");
|
|
2399
2400
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2400
2401
|
var Root2 = (0, import_react16.forwardRef)((props, ref) => {
|
|
@@ -2408,7 +2409,7 @@ var Root2 = (0, import_react16.forwardRef)((props, ref) => {
|
|
|
2408
2409
|
}, [error, style]);
|
|
2409
2410
|
const classNameStr = error ? `error ${className}` : className;
|
|
2410
2411
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2411
|
-
|
|
2412
|
+
import_themes21.TextField.Root,
|
|
2412
2413
|
__spreadValues({
|
|
2413
2414
|
className: classNameStr,
|
|
2414
2415
|
ref,
|
|
@@ -2417,7 +2418,7 @@ var Root2 = (0, import_react16.forwardRef)((props, ref) => {
|
|
|
2417
2418
|
);
|
|
2418
2419
|
});
|
|
2419
2420
|
Root2.displayName = "TextField.Root";
|
|
2420
|
-
var TextField = { Root: Root2, Slot:
|
|
2421
|
+
var TextField = { Root: Root2, Slot: import_themes21.TextField.Slot };
|
|
2421
2422
|
|
|
2422
2423
|
// src/molecules/date-picker/date-picker-button.tsx
|
|
2423
2424
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
@@ -2444,7 +2445,7 @@ function DatePickerButton(props) {
|
|
|
2444
2445
|
const placeholderVisible = (0, import_react17.useMemo)(() => {
|
|
2445
2446
|
return rest.selected ? "" : "placeholder-visible";
|
|
2446
2447
|
}, [rest.selected]);
|
|
2447
|
-
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2448
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes7.Box, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2448
2449
|
DatePicker,
|
|
2449
2450
|
__spreadProps(__spreadValues({
|
|
2450
2451
|
customInput: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button, __spreadProps(__spreadValues({ asChild: true, className, type: "button" }, buttonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
@@ -2471,7 +2472,7 @@ var import_react19 = require("react");
|
|
|
2471
2472
|
var import_date_fns2 = require("date-fns");
|
|
2472
2473
|
|
|
2473
2474
|
// src/atoms/select.tsx
|
|
2474
|
-
var
|
|
2475
|
+
var import_themes22 = require("@radix-ui/themes");
|
|
2475
2476
|
var import_react18 = require("react");
|
|
2476
2477
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2477
2478
|
var SelectContext = (0, import_react18.createContext)({
|
|
@@ -2486,7 +2487,7 @@ var Content = (0, import_react18.forwardRef)((props, ref) => {
|
|
|
2486
2487
|
return [etc, errorCls, className].join(" ");
|
|
2487
2488
|
}, [className, error, isNavigation]);
|
|
2488
2489
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2489
|
-
|
|
2490
|
+
import_themes22.Select.Content,
|
|
2490
2491
|
__spreadProps(__spreadValues({
|
|
2491
2492
|
position: "popper"
|
|
2492
2493
|
}, rest), {
|
|
@@ -2504,16 +2505,16 @@ var Trigger = (0, import_react18.forwardRef)(
|
|
|
2504
2505
|
const errorCls = error ? "error" : "";
|
|
2505
2506
|
return [errorCls, className].join(" ");
|
|
2506
2507
|
}, [className, error]);
|
|
2507
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_themes22.Select.Trigger, __spreadProps(__spreadValues({}, rest), { className: cls, ref }));
|
|
2508
2509
|
}
|
|
2509
2510
|
);
|
|
2510
2511
|
Trigger.displayName = "Select.Trigger";
|
|
2511
2512
|
function Root3(props) {
|
|
2512
2513
|
const _a = props, { error } = _a, rest = __objRest(_a, ["error"]);
|
|
2513
|
-
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectContext.Provider, { value: { error }, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2514
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(SelectContext.Provider, { value: { error }, children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_themes22.Select.Root, __spreadValues({}, rest)) });
|
|
2514
2515
|
}
|
|
2515
2516
|
Root3.displayName = "Select.Root";
|
|
2516
|
-
var Select = __spreadProps(__spreadValues({},
|
|
2517
|
+
var Select = __spreadProps(__spreadValues({}, import_themes22.Select), {
|
|
2517
2518
|
Root: Root3,
|
|
2518
2519
|
Trigger,
|
|
2519
2520
|
Content
|
|
@@ -2573,10 +2574,10 @@ function TimeSelect(_a) {
|
|
|
2573
2574
|
var import_react20 = require("react");
|
|
2574
2575
|
|
|
2575
2576
|
// src/atoms/radio-cards.tsx
|
|
2576
|
-
var
|
|
2577
|
+
var import_themes23 = require("@radix-ui/themes");
|
|
2577
2578
|
|
|
2578
2579
|
// src/atoms/radio.tsx
|
|
2579
|
-
var
|
|
2580
|
+
var import_themes24 = require("@radix-ui/themes");
|
|
2580
2581
|
|
|
2581
2582
|
// src/molecules/radio-button-card.tsx
|
|
2582
2583
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
@@ -2591,7 +2592,7 @@ function Root4(props) {
|
|
|
2591
2592
|
},
|
|
2592
2593
|
[props]
|
|
2593
2594
|
);
|
|
2594
|
-
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(RadioCardContext.Provider, { value: __spreadProps(__spreadValues({}, props), { value }), children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(RadioCardContext.Provider, { value: __spreadProps(__spreadValues({}, props), { value }), children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes23.RadioCards.Root, __spreadProps(__spreadValues({}, props), { onValueChange })) });
|
|
2595
2596
|
}
|
|
2596
2597
|
function Item(_a) {
|
|
2597
2598
|
var _b = _a, {
|
|
@@ -2608,10 +2609,10 @@ function Item(_a) {
|
|
|
2608
2609
|
"justify",
|
|
2609
2610
|
"RadioWrapper"
|
|
2610
2611
|
]);
|
|
2611
|
-
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes23.RadioCards.Item, __spreadProps(__spreadValues({}, itemRest), { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_themes.Flex, { align: "center", justify: justify || "between", width: "100%", children: [
|
|
2612
2613
|
children,
|
|
2613
2614
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(RadioWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2614
|
-
|
|
2615
|
+
import_themes24.Radio,
|
|
2615
2616
|
{
|
|
2616
2617
|
checked: itemRest.value === value,
|
|
2617
2618
|
disabled: rootRest.disabled,
|
|
@@ -2629,9 +2630,9 @@ var RadioButtonCard = {
|
|
|
2629
2630
|
var import_react_icons5 = require("@radix-ui/react-icons");
|
|
2630
2631
|
|
|
2631
2632
|
// src/atoms/link.tsx
|
|
2632
|
-
var import_themes24 = require("@radix-ui/themes");
|
|
2633
|
-
var import_react21 = require("react");
|
|
2634
2633
|
var import_themes25 = require("@radix-ui/themes");
|
|
2634
|
+
var import_react21 = require("react");
|
|
2635
|
+
var import_themes26 = require("@radix-ui/themes");
|
|
2635
2636
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2636
2637
|
function Link(props) {
|
|
2637
2638
|
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
@@ -2647,7 +2648,7 @@ function Link(props) {
|
|
|
2647
2648
|
return size;
|
|
2648
2649
|
}
|
|
2649
2650
|
}, [size, variant]);
|
|
2650
|
-
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2651
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes25.Link, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
2651
2652
|
}
|
|
2652
2653
|
|
|
2653
2654
|
// src/molecules/download-card.tsx
|
|
@@ -2695,7 +2696,7 @@ function GhostPost(props) {
|
|
|
2695
2696
|
accentColor: "iris",
|
|
2696
2697
|
scaling: "110%",
|
|
2697
2698
|
style: {},
|
|
2698
|
-
children: html ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2699
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes7.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
2699
2700
|
"div",
|
|
2700
2701
|
{
|
|
2701
2702
|
className: "gh-content",
|
|
@@ -2748,7 +2749,8 @@ function CurriculumProvider(props) {
|
|
|
2748
2749
|
curriculumCompleteMap,
|
|
2749
2750
|
onChangeSelectedContent,
|
|
2750
2751
|
onActionButtonClick,
|
|
2751
|
-
initialSelectedIndex
|
|
2752
|
+
initialSelectedIndex,
|
|
2753
|
+
customTabs
|
|
2752
2754
|
} = props;
|
|
2753
2755
|
const sidebarRef = (0, import_react22.useRef)(null);
|
|
2754
2756
|
const scrollNavItem = (0, import_react22.useCallback)((index) => {
|
|
@@ -2833,26 +2835,33 @@ function CurriculumProvider(props) {
|
|
|
2833
2835
|
(0, import_react22.useEffect)(() => {
|
|
2834
2836
|
onChangeSelectedContent == null ? void 0 : onChangeSelectedContent(selectedItem);
|
|
2835
2837
|
}, [selectedItem]);
|
|
2836
|
-
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2838
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2839
|
+
CurriculumContext.Provider,
|
|
2840
|
+
{
|
|
2841
|
+
value: {
|
|
2842
|
+
curriculum,
|
|
2843
|
+
scrollNavItem,
|
|
2844
|
+
selectedIndex: selectedIndexState,
|
|
2845
|
+
setSelectedIndex,
|
|
2846
|
+
selectedId,
|
|
2847
|
+
hasPrev,
|
|
2848
|
+
hasNext,
|
|
2849
|
+
selectPrev,
|
|
2850
|
+
selectNext,
|
|
2851
|
+
selectedSectionTitle,
|
|
2852
|
+
selectedItem,
|
|
2853
|
+
scrollAreaRef: sidebarRef,
|
|
2854
|
+
onReviewSubmit,
|
|
2855
|
+
onReviewValueChange,
|
|
2856
|
+
curriculumReviewAnswers,
|
|
2857
|
+
tempCurriculumReviewAnswers,
|
|
2858
|
+
curriculumCompleteMap,
|
|
2859
|
+
onActionButtonClick,
|
|
2860
|
+
customTabs
|
|
2861
|
+
},
|
|
2862
|
+
children
|
|
2863
|
+
}
|
|
2864
|
+
);
|
|
2856
2865
|
}
|
|
2857
2866
|
function useCurriculumContext() {
|
|
2858
2867
|
const ctx = (0, import_react22.useContext)(CurriculumContext);
|
|
@@ -2887,7 +2896,7 @@ function CurriculumSubNav() {
|
|
|
2887
2896
|
});
|
|
2888
2897
|
}, [selectNext, scrollNavItem]);
|
|
2889
2898
|
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2890
|
-
|
|
2899
|
+
import_themes16.Grid,
|
|
2891
2900
|
{
|
|
2892
2901
|
align: "center",
|
|
2893
2902
|
columns: { initial: "32px 1fr 32px", md: "48px 1fr 48px" },
|
|
@@ -2905,10 +2914,10 @@ function CurriculumSubNav() {
|
|
|
2905
2914
|
variant: "ghost",
|
|
2906
2915
|
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react_icons.ChevronLeftIcon, { height: "16px", width: "16px" })
|
|
2907
2916
|
}
|
|
2908
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2909
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2910
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2911
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2917
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes7.Box, {}),
|
|
2918
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_themes7.Box, { width: "100%", children: [
|
|
2919
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes7.Box, { display: { initial: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Heading2, { style: { textOverflow: "ellipsis" }, variant: "heading5", children: selectedItem.title }) }),
|
|
2920
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes7.Box, { display: { initial: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Typo, { weight: "bold", children: selectedItem.title }) }),
|
|
2912
2921
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2913
2922
|
Typo,
|
|
2914
2923
|
{
|
|
@@ -2930,7 +2939,7 @@ function CurriculumSubNav() {
|
|
|
2930
2939
|
variant: "ghost",
|
|
2931
2940
|
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react_icons.ChevronRightIcon, { height: "16px", width: "16px" })
|
|
2932
2941
|
}
|
|
2933
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2942
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes7.Box, {})
|
|
2934
2943
|
]
|
|
2935
2944
|
}
|
|
2936
2945
|
);
|
|
@@ -3001,7 +3010,7 @@ var import_react_icons7 = require("@radix-ui/react-icons");
|
|
|
3001
3010
|
// src/atoms/dialog.tsx
|
|
3002
3011
|
var RadixDialog = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
3003
3012
|
var import_react_icons6 = require("@radix-ui/react-icons");
|
|
3004
|
-
var
|
|
3013
|
+
var import_themes27 = require("@radix-ui/themes");
|
|
3005
3014
|
var import_react26 = require("react");
|
|
3006
3015
|
|
|
3007
3016
|
// src/theme/portal-provider.tsx
|
|
@@ -3055,7 +3064,7 @@ function Content3(props) {
|
|
|
3055
3064
|
"className"
|
|
3056
3065
|
]);
|
|
3057
3066
|
const { dialogContainerRef } = usePortalContainer();
|
|
3058
|
-
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(RadixDialog.Portal, { container: dialogContainerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3067
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(RadixDialog.Portal, { container: dialogContainerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes27.Theme, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(RadixDialog.Overlay, { className: "rt-BaseDialogScroll rt-DialogScroll DialogOverlay", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
3059
3068
|
RadixDialog.Content,
|
|
3060
3069
|
__spreadProps(__spreadValues({
|
|
3061
3070
|
className: `DialogContent ${className || ""} rt-BaseDialogContent rt-DialogContent rt-r-size-${size || "3"}`,
|
|
@@ -3070,12 +3079,12 @@ function Content3(props) {
|
|
|
3070
3079
|
}, style)
|
|
3071
3080
|
}, rest), {
|
|
3072
3081
|
children: [
|
|
3073
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
3082
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_themes27.Flex, { gap: "2", justify: "between", width: "100%", children: [
|
|
3074
3083
|
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(RadixDialog.Title, { asChild: true, children: typeof title === "string" && title !== "" ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Heading2, { mb: "2", variant: "heading3", children: title }) : title }),
|
|
3075
3084
|
!hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_react_icons6.Cross1Icon, {}) }) })
|
|
3076
3085
|
] }),
|
|
3077
3086
|
children,
|
|
3078
|
-
buttons ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3087
|
+
buttons ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes27.Flex, { gap: "3", justify: "end", mt: "3", width: "100%", children: buttons }) : null
|
|
3079
3088
|
]
|
|
3080
3089
|
})
|
|
3081
3090
|
) }) }) });
|
|
@@ -3304,7 +3313,7 @@ function useCurriculumReviewContext() {
|
|
|
3304
3313
|
}
|
|
3305
3314
|
|
|
3306
3315
|
// src/atoms/separator.tsx
|
|
3307
|
-
var
|
|
3316
|
+
var import_themes28 = require("@radix-ui/themes");
|
|
3308
3317
|
|
|
3309
3318
|
// src/utils/curriculum.utils.ts
|
|
3310
3319
|
var CurriculumListIcons = {
|
|
@@ -3398,7 +3407,7 @@ var renderPreviewContent = (args) => {
|
|
|
3398
3407
|
].filter(Boolean).join(" | ");
|
|
3399
3408
|
};
|
|
3400
3409
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3401
|
-
|
|
3410
|
+
import_themes16.Grid,
|
|
3402
3411
|
{
|
|
3403
3412
|
columns: "16px 1fr",
|
|
3404
3413
|
gap: "2",
|
|
@@ -3406,8 +3415,8 @@ var renderPreviewContent = (args) => {
|
|
|
3406
3415
|
py: "2",
|
|
3407
3416
|
width: "100%",
|
|
3408
3417
|
children: [
|
|
3409
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3410
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3418
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes7.Box, { mt: "1", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icon, { color: getCurriculumQuestionIconColor(question.type) }) }),
|
|
3419
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes7.Box, { children: [
|
|
3411
3420
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { as: "p", color: "gray", weight: "bold", children: question.title }),
|
|
3412
3421
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { color: "gray", children: getDescription() })
|
|
3413
3422
|
] })
|
|
@@ -3433,7 +3442,7 @@ var renderReviewContent = (args) => {
|
|
|
3433
3442
|
const badgeColor = ["question_radio", "question_satisfaction_option"].includes(question.type) ? "accent" : "neutral";
|
|
3434
3443
|
const value = getReviewContentValue(question, answer);
|
|
3435
3444
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3436
|
-
|
|
3445
|
+
import_themes16.Grid,
|
|
3437
3446
|
{
|
|
3438
3447
|
columns: "16px 1fr",
|
|
3439
3448
|
gap: "2",
|
|
@@ -3441,8 +3450,8 @@ var renderReviewContent = (args) => {
|
|
|
3441
3450
|
py: "2",
|
|
3442
3451
|
width: "100%",
|
|
3443
3452
|
children: [
|
|
3444
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3445
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3453
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes7.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icon, { color }) }),
|
|
3454
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes7.Box, { children: [
|
|
3446
3455
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { as: "p", color: "gray", mb: "2", weight: "bold", children: question.title }),
|
|
3447
3456
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Badge, { color: badgeColor, size: "large", style: { whiteSpace: "break-spaces", lineBreak: "anywhere" }, children: value || "(\uBBF8 \uC751\uB2F5)" })
|
|
3448
3457
|
] })
|
|
@@ -3476,13 +3485,13 @@ function StartReview({ onStart }) {
|
|
|
3476
3485
|
children: [
|
|
3477
3486
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { color: "gray", mb: "1", children: curriculum.title }),
|
|
3478
3487
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Heading2, { variant: "heading3", children: reviewContents.title }),
|
|
3479
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3488
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes28.Separator, { my: "4", style: { width: 100 } }),
|
|
3480
3489
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(Typo, { align: "left", as: "p", color: "gray", mb: "4", children: [
|
|
3481
3490
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { as: "span", weight: "bold", children: sectionTitle }),
|
|
3482
3491
|
" ",
|
|
3483
3492
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { children: reviewContents.description })
|
|
3484
3493
|
] }),
|
|
3485
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3494
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes7.Box, { mb: "5", overflowY: "auto", width: "100%", children: reviewContents.questions.map((question) => {
|
|
3486
3495
|
if (done) {
|
|
3487
3496
|
return renderReviewContent({ question, answer: formik.values.answers[question.uuid] });
|
|
3488
3497
|
}
|
|
@@ -3533,7 +3542,7 @@ function CompleteReview(props) {
|
|
|
3533
3542
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Typo, { align: "center", color: "gray", mt: "6", children: (reviewMeta == null ? void 0 : reviewMeta.endReviewDescription) || `\uC774\uBC88 \uD559\uC2B5\uC774 \uB9AC\uB354\uC2ED\uC5D0 \uB3C4\uC6C0\uC774 \uB418\uC5C8\uAE30\uB97C \uBC14\uB78D\uB2C8\uB2E4.
|
|
3534
3543
|
\uC55E\uC73C\uB85C \uC788\uC744 \uB9AC\uB354\uB2D8\uC758 \uC131\uC7A5\uC744 \uAE30\uB300\uD569\uB2C8\uB2E4.` })
|
|
3535
3544
|
] }),
|
|
3536
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
3545
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_themes16.Grid, { columns: { initial: "1fr", md: "2" }, gap: "3", width: "100%", children: [
|
|
3537
3546
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Button, { onClick: onClickReviewMyAnswer, variant: "outline", children: [
|
|
3538
3547
|
(reviewMeta == null ? void 0 : reviewMeta.endReviewBackButtonTitle) || "\uB098\uC758 \uC751\uB2F5 \uB2E4\uC2DC \uBCF4\uAE30",
|
|
3539
3548
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react_icons.ResetIcon, {})
|
|
@@ -3568,7 +3577,7 @@ function ReviewQuestionLayout({
|
|
|
3568
3577
|
Footer
|
|
3569
3578
|
}) {
|
|
3570
3579
|
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
3571
|
-
|
|
3580
|
+
import_themes16.Grid,
|
|
3572
3581
|
{
|
|
3573
3582
|
align: "center",
|
|
3574
3583
|
columns: "1fr",
|
|
@@ -3580,18 +3589,18 @@ function ReviewQuestionLayout({
|
|
|
3580
3589
|
},
|
|
3581
3590
|
width: "100%",
|
|
3582
3591
|
children: [
|
|
3583
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(AlignCenter, { pb: "3", pt: "4", px: "4", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3584
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3592
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(AlignCenter, { pb: "3", pt: "4", px: "4", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes7.Box, { maxWidth: "650px", width: "100%", children: Header }) }),
|
|
3593
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes28.Separator, { size: "4" }),
|
|
3585
3594
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3586
3595
|
AlignCenter,
|
|
3587
3596
|
{
|
|
3588
3597
|
p: "3",
|
|
3589
3598
|
style: { backgroundColor: "var(--gray-2)", zIndex: 0 },
|
|
3590
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3599
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes7.Box, { height: "100%", maxWidth: "650px", width: "100%", children: Body })
|
|
3591
3600
|
}
|
|
3592
3601
|
),
|
|
3593
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3594
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(AlignCenter, { px: "4", py: "3", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3602
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes28.Separator, { size: "4" }),
|
|
3603
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(AlignCenter, { px: "4", py: "3", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes7.Box, { maxWidth: "650px", width: "100%", children: Footer }) })
|
|
3595
3604
|
]
|
|
3596
3605
|
}
|
|
3597
3606
|
);
|
|
@@ -3599,7 +3608,7 @@ function ReviewQuestionLayout({
|
|
|
3599
3608
|
var review_question_layout_default = ReviewQuestionLayout;
|
|
3600
3609
|
|
|
3601
3610
|
// src/atoms/progress.tsx
|
|
3602
|
-
var
|
|
3611
|
+
var import_themes29 = require("@radix-ui/themes");
|
|
3603
3612
|
|
|
3604
3613
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.tsx
|
|
3605
3614
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
@@ -3608,8 +3617,8 @@ function ReviewQuestionHeader({
|
|
|
3608
3617
|
total
|
|
3609
3618
|
}) {
|
|
3610
3619
|
const { reviewContents } = useCurriculumReviewContext();
|
|
3611
|
-
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
3612
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3620
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_themes7.Box, { height: "100%", width: "100%", children: [
|
|
3621
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes16.Grid, { columns: "1fr 40px", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3613
3622
|
Heading2,
|
|
3614
3623
|
{
|
|
3615
3624
|
mb: "3",
|
|
@@ -3627,7 +3636,7 @@ function ReviewQuestionHeader({
|
|
|
3627
3636
|
" \uC644\uB8CC"
|
|
3628
3637
|
] })
|
|
3629
3638
|
] }),
|
|
3630
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3639
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes29.Progress, { color: "iris", max: total, value: index + 1 })
|
|
3631
3640
|
] });
|
|
3632
3641
|
}
|
|
3633
3642
|
var review_question_header_default = ReviewQuestionHeader;
|
|
@@ -3643,11 +3652,11 @@ function ReviewQuestionFooter({
|
|
|
3643
3652
|
onSubmit,
|
|
3644
3653
|
isLoading
|
|
3645
3654
|
}) {
|
|
3646
|
-
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
3655
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_themes16.Grid, { columns: "1fr 1fr", gap: "3", children: [
|
|
3647
3656
|
index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Button, { onClick: onPrev, variant: "outline", children: [
|
|
3648
3657
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_icons.ChevronLeftIcon, {}),
|
|
3649
3658
|
"\uC774\uC804\uC73C\uB85C"
|
|
3650
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
3659
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes7.Box, {}),
|
|
3651
3660
|
isLast ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Button, { disabled: isNextButtonDisabled, loading: isLoading, onClick: onSubmit, children: [
|
|
3652
3661
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_icons.PaperPlaneIcon, {}),
|
|
3653
3662
|
"\uC81C\uCD9C\uD558\uAE30"
|
|
@@ -3672,7 +3681,7 @@ var import_react29 = require("react");
|
|
|
3672
3681
|
|
|
3673
3682
|
// src/atoms/card.tsx
|
|
3674
3683
|
var import_react28 = require("react");
|
|
3675
|
-
var
|
|
3684
|
+
var import_themes30 = require("@radix-ui/themes");
|
|
3676
3685
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
3677
3686
|
var Card = (0, import_react28.forwardRef)(
|
|
3678
3687
|
(props, forwardedRef) => {
|
|
@@ -3691,7 +3700,7 @@ var Card = (0, import_react28.forwardRef)(
|
|
|
3691
3700
|
return error ? " error" : "";
|
|
3692
3701
|
}, [error]);
|
|
3693
3702
|
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3694
|
-
|
|
3703
|
+
import_themes30.Card,
|
|
3695
3704
|
__spreadProps(__spreadValues({
|
|
3696
3705
|
variant: "surface"
|
|
3697
3706
|
}, rest), {
|
|
@@ -3713,9 +3722,9 @@ function ReviewQuestionContentHeader({
|
|
|
3713
3722
|
icon
|
|
3714
3723
|
}) {
|
|
3715
3724
|
const Icon = getCurriculumIcon({ type, icon });
|
|
3716
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
3725
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes7.Box, { children: [
|
|
3717
3726
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes.Flex, { gap: "2", mb: "3", children: [
|
|
3718
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
3727
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes7.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
3719
3728
|
Icon,
|
|
3720
3729
|
{
|
|
3721
3730
|
color: getCurriculumQuestionIconColor(type),
|
|
@@ -3747,7 +3756,7 @@ function ReviewQuestionRadio(props) {
|
|
|
3747
3756
|
if (isWrong) return "red";
|
|
3748
3757
|
return void 0;
|
|
3749
3758
|
}, [isCorrect, isWrong]);
|
|
3750
|
-
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes16.Grid, { height: "100%", rows: "auto 1fr", width: "100%", children: [
|
|
3751
3760
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Card, { mb: "4", size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3752
3761
|
ReviewQuestionContentHeader,
|
|
3753
3762
|
{
|
|
@@ -3757,8 +3766,8 @@ function ReviewQuestionRadio(props) {
|
|
|
3757
3766
|
type: question.type
|
|
3758
3767
|
}
|
|
3759
3768
|
) }),
|
|
3760
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3761
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3769
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes16.Grid, { height: "100%", rows: "1fr auto", width: "100%", children: [
|
|
3770
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes7.Box, { position: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3762
3771
|
RadioButtonCard.Root,
|
|
3763
3772
|
{
|
|
3764
3773
|
color: radioColor,
|
|
@@ -3783,7 +3792,7 @@ function ReviewQuestionRadio(props) {
|
|
|
3783
3792
|
{
|
|
3784
3793
|
style,
|
|
3785
3794
|
value: i.toString(),
|
|
3786
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3795
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes7.Box, { children: [
|
|
3787
3796
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Typo, { as: "p", children: option.label }),
|
|
3788
3797
|
isThisOptionCorrect ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Typo, { color: "green", children: "\uC815\uB2F5\uC785\uB2C8\uB2E4" }) : null,
|
|
3789
3798
|
isThisOptionWrong ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Typo, { color: "red", children: "\uC815\uB2F5\uC774 \uC544\uB2D9\uB2C8\uB2E4" }) : null
|
|
@@ -3801,7 +3810,7 @@ function ReviewQuestionRadio(props) {
|
|
|
3801
3810
|
var review_question_radio_default = ReviewQuestionRadio;
|
|
3802
3811
|
|
|
3803
3812
|
// src/atoms/text-area.tsx
|
|
3804
|
-
var
|
|
3813
|
+
var import_themes31 = require("@radix-ui/themes");
|
|
3805
3814
|
var import_react30 = require("react");
|
|
3806
3815
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
3807
3816
|
var TextArea = (0, import_react30.forwardRef)(
|
|
@@ -3816,7 +3825,7 @@ var TextArea = (0, import_react30.forwardRef)(
|
|
|
3816
3825
|
}, [error, style]);
|
|
3817
3826
|
const classNameStr = error ? `error ${className}` : className;
|
|
3818
3827
|
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
3819
|
-
|
|
3828
|
+
import_themes31.TextArea,
|
|
3820
3829
|
__spreadProps(__spreadValues({}, rest), {
|
|
3821
3830
|
className: classNameStr,
|
|
3822
3831
|
ref,
|
|
@@ -3828,7 +3837,7 @@ var TextArea = (0, import_react30.forwardRef)(
|
|
|
3828
3837
|
TextArea.displayName = "TextArea";
|
|
3829
3838
|
|
|
3830
3839
|
// src/atoms/call-out.tsx
|
|
3831
|
-
var
|
|
3840
|
+
var import_themes32 = require("@radix-ui/themes");
|
|
3832
3841
|
|
|
3833
3842
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.tsx
|
|
3834
3843
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
@@ -3844,8 +3853,8 @@ function ReviewQuestionText(props) {
|
|
|
3844
3853
|
width: "100%",
|
|
3845
3854
|
height: "100%"
|
|
3846
3855
|
},
|
|
3847
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3848
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3856
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes16.Grid, { height: "100%", rows: "1fr auto", children: [
|
|
3857
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes16.Grid, { height: "100%", rows: "auto 1fr", width: "100%", children: [
|
|
3849
3858
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3850
3859
|
ReviewQuestionContentHeader,
|
|
3851
3860
|
{
|
|
@@ -3867,17 +3876,17 @@ function ReviewQuestionText(props) {
|
|
|
3867
3876
|
}
|
|
3868
3877
|
)
|
|
3869
3878
|
] }),
|
|
3870
|
-
minLengthNotMet ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3879
|
+
minLengthNotMet ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes7.Box, { mt: "2", children: [
|
|
3871
3880
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typo, { align: "right", as: "p", color: "red", variant: "caption", children: `${remainingLength}\uC790 \uB354 \uC791\uC131\uD574\uC8FC\uC138\uC694.` }),
|
|
3872
3881
|
question.minLengthInfoMessage ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3873
|
-
|
|
3882
|
+
import_themes32.Callout.Root,
|
|
3874
3883
|
{
|
|
3875
3884
|
color: "iris",
|
|
3876
3885
|
mt: "2",
|
|
3877
3886
|
style: { alignItems: "center" },
|
|
3878
3887
|
children: [
|
|
3879
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3880
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3888
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes32.Callout.Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react_icons.BellIcon, {}) }),
|
|
3889
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes32.Callout.Text, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typo, { as: "p", variant: "caption", children: question.minLengthInfoMessage }) })
|
|
3881
3890
|
]
|
|
3882
3891
|
}
|
|
3883
3892
|
) : null
|
|
@@ -3889,7 +3898,7 @@ function ReviewQuestionText(props) {
|
|
|
3889
3898
|
var review_question_text_default = ReviewQuestionText;
|
|
3890
3899
|
|
|
3891
3900
|
// src/atoms/radio-group.tsx
|
|
3892
|
-
var
|
|
3901
|
+
var import_themes33 = require("@radix-ui/themes");
|
|
3893
3902
|
|
|
3894
3903
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.tsx
|
|
3895
3904
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
@@ -3906,7 +3915,7 @@ function ReviewQuestionSatisfisRadio(props) {
|
|
|
3906
3915
|
type: question.type
|
|
3907
3916
|
}
|
|
3908
3917
|
) }),
|
|
3909
|
-
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
3918
|
+
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes33.RadioGroup.Root, { color: "iris", mt: "3", onValueChange: onChange, value: answer, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes.Flex, { direction: "column", gap: "2", children: (_c = question.options) == null ? void 0 : _c.map((option) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_themes33.RadioGroup.Item, { value: String(option.value), children: option.label }, option.value)) }) })
|
|
3910
3919
|
] });
|
|
3911
3920
|
}
|
|
3912
3921
|
var review_question_satisfaction_option_default = ReviewQuestionSatisfisRadio;
|
|
@@ -3916,7 +3925,7 @@ var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
|
3916
3925
|
function ReviewQuestionSatisfisText(props) {
|
|
3917
3926
|
var _a, _b;
|
|
3918
3927
|
const { question, answer, onChange } = props;
|
|
3919
|
-
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Card, { size: "2", style: { height: "100%", width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
3928
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Card, { size: "2", style: { height: "100%", width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes16.Grid, { height: "100%", rows: "auto 1fr", children: [
|
|
3920
3929
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
3921
3930
|
ReviewQuestionContentHeader,
|
|
3922
3931
|
{
|
|
@@ -4242,15 +4251,15 @@ function CurriculumReview(props) {
|
|
|
4242
4251
|
title: sectionTitle
|
|
4243
4252
|
}
|
|
4244
4253
|
),
|
|
4245
|
-
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4254
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes7.Box, { position: "absolute", right: "16px", top: "16px", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
4246
4255
|
IconButton,
|
|
4247
4256
|
{
|
|
4248
4257
|
color: "gray",
|
|
4249
4258
|
onClick: onClickCloseDrawer,
|
|
4250
4259
|
variant: "ghost",
|
|
4251
4260
|
children: [
|
|
4252
|
-
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4253
|
-
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4261
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes7.Box, { display: { initial: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react_icons7.Cross1Icon, { height: 20, width: 20 }) }),
|
|
4262
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes7.Box, { display: { initial: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react_icons7.Cross1Icon, { height: 16, width: 16 }) })
|
|
4254
4263
|
]
|
|
4255
4264
|
}
|
|
4256
4265
|
) }),
|
|
@@ -4362,14 +4371,17 @@ function CurriculumBody() {
|
|
|
4362
4371
|
}
|
|
4363
4372
|
}
|
|
4364
4373
|
|
|
4374
|
+
// src/molecules/curriculumV2/CurriculumSidebar/index.tsx
|
|
4375
|
+
var import_react33 = require("react");
|
|
4376
|
+
|
|
4365
4377
|
// src/atoms/tabs.tsx
|
|
4366
|
-
var
|
|
4378
|
+
var import_themes34 = require("@radix-ui/themes");
|
|
4367
4379
|
|
|
4368
4380
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/section-title.tsx
|
|
4369
4381
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
4370
4382
|
function SectionTitle(props) {
|
|
4371
4383
|
const { title, duration } = props;
|
|
4372
|
-
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
4384
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_themes16.Grid, { align: "center", columns: "1fr auto", px: "3", py: "2", children: [
|
|
4373
4385
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Typo, { color: "gray", children: title }),
|
|
4374
4386
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
4375
4387
|
duration,
|
|
@@ -4388,7 +4400,7 @@ function CurriculumSidebarItemWrapper({
|
|
|
4388
4400
|
index
|
|
4389
4401
|
}) {
|
|
4390
4402
|
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
4391
|
-
|
|
4403
|
+
import_themes16.Grid,
|
|
4392
4404
|
{
|
|
4393
4405
|
align: "center",
|
|
4394
4406
|
columns: "auto 1fr",
|
|
@@ -4404,7 +4416,7 @@ function CurriculumSidebarItemWrapper({
|
|
|
4404
4416
|
},
|
|
4405
4417
|
children: [
|
|
4406
4418
|
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4407
|
-
|
|
4419
|
+
import_themes28.Separator,
|
|
4408
4420
|
{
|
|
4409
4421
|
color: "yellow",
|
|
4410
4422
|
orientation: "vertical",
|
|
@@ -4491,34 +4503,70 @@ var TAB_LIST = [
|
|
|
4491
4503
|
value: "curriculum"
|
|
4492
4504
|
}
|
|
4493
4505
|
];
|
|
4506
|
+
var TABS_LIST_STYLE = {
|
|
4507
|
+
padding: "0 var(--space-3)"
|
|
4508
|
+
};
|
|
4509
|
+
var TABS_CONTENT_STYLE = {
|
|
4510
|
+
position: "absolute",
|
|
4511
|
+
height: "100%",
|
|
4512
|
+
width: "100%"
|
|
4513
|
+
};
|
|
4494
4514
|
function CurriculumSidebar() {
|
|
4495
|
-
const {
|
|
4515
|
+
const {
|
|
4516
|
+
curriculum,
|
|
4517
|
+
selectedIndex,
|
|
4518
|
+
setSelectedIndex,
|
|
4519
|
+
scrollAreaRef,
|
|
4520
|
+
curriculumCompleteMap,
|
|
4521
|
+
customTabs
|
|
4522
|
+
} = useCurriculumContext();
|
|
4496
4523
|
const list = curriculum.contents.list;
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4524
|
+
const tabList = (0, import_react33.useMemo)(() => {
|
|
4525
|
+
return [...TAB_LIST, ...customTabs != null ? customTabs : []];
|
|
4526
|
+
}, [customTabs]);
|
|
4527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes34.Tabs.Root, { asChild: true, defaultValue: TAB_LIST[0].value, children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_themes16.Grid, { height: "100%", overflowY: "auto", rows: "auto 1fr ", width: "100%", children: [
|
|
4528
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes34.Tabs.List, { style: TABS_LIST_STYLE, children: tabList.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes34.Tabs.Trigger, { value: tab.value, children: tab.label }, tab.value)) }),
|
|
4529
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
|
|
4530
|
+
import_themes7.Box,
|
|
4501
4531
|
{
|
|
4502
4532
|
height: "100%",
|
|
4503
4533
|
overflowY: "auto",
|
|
4504
4534
|
position: "relative",
|
|
4505
4535
|
ref: scrollAreaRef,
|
|
4506
4536
|
width: "100%",
|
|
4507
|
-
children:
|
|
4508
|
-
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4537
|
+
children: [
|
|
4538
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
|
|
4539
|
+
import_themes34.Tabs.Content,
|
|
4540
|
+
{
|
|
4541
|
+
style: TABS_CONTENT_STYLE,
|
|
4542
|
+
value: TAB_LIST[0].value,
|
|
4543
|
+
children: [
|
|
4544
|
+
list.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4545
|
+
sidebar_item_default,
|
|
4546
|
+
{
|
|
4547
|
+
done: curriculumCompleteMap[item.uuid],
|
|
4548
|
+
index,
|
|
4549
|
+
item,
|
|
4550
|
+
selectedIndex,
|
|
4551
|
+
setSelectedIndex
|
|
4552
|
+
},
|
|
4553
|
+
item.uuid
|
|
4554
|
+
)),
|
|
4555
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes7.Box, { height: "150px" })
|
|
4556
|
+
]
|
|
4514
4557
|
},
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4521
|
-
|
|
4558
|
+
TAB_LIST[0].value
|
|
4559
|
+
),
|
|
4560
|
+
customTabs == null ? void 0 : customTabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4561
|
+
import_themes34.Tabs.Content,
|
|
4562
|
+
{
|
|
4563
|
+
style: TABS_CONTENT_STYLE,
|
|
4564
|
+
value: tab.value,
|
|
4565
|
+
children: tab.content
|
|
4566
|
+
},
|
|
4567
|
+
tab.value
|
|
4568
|
+
))
|
|
4569
|
+
]
|
|
4522
4570
|
}
|
|
4523
4571
|
)
|
|
4524
4572
|
] }) });
|
|
@@ -4528,7 +4576,7 @@ function CurriculumSidebar() {
|
|
|
4528
4576
|
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
4529
4577
|
function CurriculumV2Layout(props) {
|
|
4530
4578
|
const { NavBar, Contents, SideBar, SideNav, style } = props;
|
|
4531
|
-
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
4579
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_themes16.Grid, { align: "center", height: "100%", rows: "auto 1px 1fr", style, width: "100%", children: [
|
|
4532
4580
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4533
4581
|
import_themes.Flex,
|
|
4534
4582
|
{
|
|
@@ -4538,7 +4586,7 @@ function CurriculumV2Layout(props) {
|
|
|
4538
4586
|
children: NavBar
|
|
4539
4587
|
}
|
|
4540
4588
|
),
|
|
4541
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4589
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes28.Separator, { size: "4" }),
|
|
4542
4590
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4543
4591
|
import_themes.Flex,
|
|
4544
4592
|
{
|
|
@@ -4548,7 +4596,7 @@ function CurriculumV2Layout(props) {
|
|
|
4548
4596
|
overflow: "hidden",
|
|
4549
4597
|
width: "100%",
|
|
4550
4598
|
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
4551
|
-
|
|
4599
|
+
import_themes16.Grid,
|
|
4552
4600
|
{
|
|
4553
4601
|
columns: { initial: "1", md: "1fr 340px" },
|
|
4554
4602
|
height: "100%",
|
|
@@ -4556,8 +4604,8 @@ function CurriculumV2Layout(props) {
|
|
|
4556
4604
|
rows: { initial: "auto 1fr", md: "auto" },
|
|
4557
4605
|
width: "100%",
|
|
4558
4606
|
children: [
|
|
4559
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
4560
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4607
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_themes7.Box, { height: "100%", width: "100%", children: [
|
|
4608
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes18.AspectRatio, { ratio: 16 / 9, children: Contents }),
|
|
4561
4609
|
SideNav
|
|
4562
4610
|
] }),
|
|
4563
4611
|
SideBar
|
|
@@ -4570,19 +4618,19 @@ function CurriculumV2Layout(props) {
|
|
|
4570
4618
|
}
|
|
4571
4619
|
|
|
4572
4620
|
// src/molecules/dynamic-form.tsx
|
|
4573
|
-
var
|
|
4621
|
+
var import_react38 = require("react");
|
|
4574
4622
|
var import_formik2 = require("formik");
|
|
4575
4623
|
var Yup2 = __toESM(require("yup"), 1);
|
|
4576
|
-
var
|
|
4624
|
+
var import_themes37 = require("@radix-ui/themes");
|
|
4577
4625
|
|
|
4578
4626
|
// src/context/dynamic-form-context.tsx
|
|
4579
|
-
var
|
|
4627
|
+
var import_react35 = require("react");
|
|
4580
4628
|
|
|
4581
4629
|
// src/molecules/form/form.tsx
|
|
4582
4630
|
var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
|
|
4583
|
-
var
|
|
4631
|
+
var import_react34 = require("react");
|
|
4584
4632
|
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
4585
|
-
var Root8 = (0,
|
|
4633
|
+
var Root8 = (0, import_react34.forwardRef)(
|
|
4586
4634
|
(_a, ref) => {
|
|
4587
4635
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
4588
4636
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
@@ -4596,10 +4644,10 @@ var Root8 = (0, import_react33.forwardRef)(
|
|
|
4596
4644
|
}
|
|
4597
4645
|
);
|
|
4598
4646
|
Root8.displayName = "FORM_ROOT";
|
|
4599
|
-
var FieldContext = (0,
|
|
4647
|
+
var FieldContext = (0, import_react34.createContext)({
|
|
4600
4648
|
name: ""
|
|
4601
4649
|
});
|
|
4602
|
-
var Field2 = (0,
|
|
4650
|
+
var Field2 = (0, import_react34.forwardRef)(
|
|
4603
4651
|
(_a, ref) => {
|
|
4604
4652
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
4605
4653
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
@@ -4619,10 +4667,10 @@ function HeadingLabel(props) {
|
|
|
4619
4667
|
function CaptionLabel(props) {
|
|
4620
4668
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(Typo, __spreadProps(__spreadValues({ color: "gray", variant: "caption" }, props), { children: props.children }));
|
|
4621
4669
|
}
|
|
4622
|
-
var Label2 = (0,
|
|
4670
|
+
var Label2 = (0, import_react34.forwardRef)(
|
|
4623
4671
|
(_a, ref) => {
|
|
4624
4672
|
var _b = _a, { children, className, variant } = _b, rest = __objRest(_b, ["children", "className", "variant"]);
|
|
4625
|
-
const Comp = (0,
|
|
4673
|
+
const Comp = (0, import_react34.useMemo)(() => {
|
|
4626
4674
|
switch (variant) {
|
|
4627
4675
|
case "title":
|
|
4628
4676
|
return HeadingLabel;
|
|
@@ -4633,7 +4681,7 @@ var Label2 = (0, import_react33.forwardRef)(
|
|
|
4633
4681
|
return Typo;
|
|
4634
4682
|
}
|
|
4635
4683
|
}, [variant]);
|
|
4636
|
-
const fieldProps = (0,
|
|
4684
|
+
const fieldProps = (0, import_react34.useContext)(FieldContext);
|
|
4637
4685
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4638
4686
|
RadixForm.Label,
|
|
4639
4687
|
__spreadProps(__spreadValues({}, rest), {
|
|
@@ -4649,7 +4697,7 @@ var Label2 = (0, import_react33.forwardRef)(
|
|
|
4649
4697
|
}
|
|
4650
4698
|
);
|
|
4651
4699
|
Label2.displayName = "FORM_Label";
|
|
4652
|
-
var Message2 = (0,
|
|
4700
|
+
var Message2 = (0, import_react34.forwardRef)(
|
|
4653
4701
|
(_a, ref) => {
|
|
4654
4702
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
4655
4703
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
@@ -4664,10 +4712,10 @@ var Message2 = (0, import_react33.forwardRef)(
|
|
|
4664
4712
|
}
|
|
4665
4713
|
);
|
|
4666
4714
|
Message2.displayName = "FORM_Message";
|
|
4667
|
-
var Control2 = (0,
|
|
4715
|
+
var Control2 = (0, import_react34.forwardRef)(
|
|
4668
4716
|
(_a, ref) => {
|
|
4669
4717
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
|
4670
|
-
const fieldProps = (0,
|
|
4718
|
+
const fieldProps = (0, import_react34.useContext)(FieldContext);
|
|
4671
4719
|
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4672
4720
|
RadixForm.Control,
|
|
4673
4721
|
__spreadProps(__spreadValues({}, rest), {
|
|
@@ -4709,7 +4757,7 @@ var Form = {
|
|
|
4709
4757
|
|
|
4710
4758
|
// src/context/dynamic-form-context.tsx
|
|
4711
4759
|
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
4712
|
-
var DynamicFormContext = (0,
|
|
4760
|
+
var DynamicFormContext = (0, import_react35.createContext)(null);
|
|
4713
4761
|
function DynamicFormProvider({
|
|
4714
4762
|
children,
|
|
4715
4763
|
fields,
|
|
@@ -4736,7 +4784,7 @@ function DynamicFormProvider({
|
|
|
4736
4784
|
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(DynamicFormContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(Form.Root, { onSubmit: formik.handleSubmit, children }) });
|
|
4737
4785
|
}
|
|
4738
4786
|
function useDynamicForm() {
|
|
4739
|
-
const context = (0,
|
|
4787
|
+
const context = (0, import_react35.useContext)(DynamicFormContext);
|
|
4740
4788
|
if (!context) {
|
|
4741
4789
|
throw new Error("useDynamicForm must be used within a DynamicFormProvider");
|
|
4742
4790
|
}
|
|
@@ -4744,12 +4792,12 @@ function useDynamicForm() {
|
|
|
4744
4792
|
}
|
|
4745
4793
|
|
|
4746
4794
|
// src/atoms/check-box-group.tsx
|
|
4747
|
-
var
|
|
4748
|
-
var
|
|
4795
|
+
var import_themes35 = require("@radix-ui/themes");
|
|
4796
|
+
var import_react36 = require("react");
|
|
4749
4797
|
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4750
|
-
var Root9 = (0,
|
|
4798
|
+
var Root9 = (0, import_react36.forwardRef)((props, ref) => {
|
|
4751
4799
|
const _a = props, { children, size = "medium" } = _a, rest = __objRest(_a, ["children", "size"]);
|
|
4752
|
-
const groupSize = (0,
|
|
4800
|
+
const groupSize = (0, import_react36.useMemo)(() => {
|
|
4753
4801
|
switch (size) {
|
|
4754
4802
|
case "small":
|
|
4755
4803
|
return "1";
|
|
@@ -4760,22 +4808,22 @@ var Root9 = (0, import_react35.forwardRef)((props, ref) => {
|
|
|
4760
4808
|
return "2";
|
|
4761
4809
|
}
|
|
4762
4810
|
}, [size]);
|
|
4763
|
-
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes35.CheckboxGroup.Root, __spreadProps(__spreadValues({}, rest), { ref, size: groupSize, children }));
|
|
4764
4812
|
});
|
|
4765
4813
|
Root9.displayName = "CheckboxGroup.Root";
|
|
4766
4814
|
var CheckboxGroup = {
|
|
4767
4815
|
Root: Root9,
|
|
4768
|
-
Item:
|
|
4816
|
+
Item: import_themes35.CheckboxGroup.Item
|
|
4769
4817
|
};
|
|
4770
4818
|
|
|
4771
4819
|
// src/atoms/check-box.tsx
|
|
4772
|
-
var
|
|
4773
|
-
var
|
|
4820
|
+
var import_themes36 = require("@radix-ui/themes");
|
|
4821
|
+
var import_react37 = require("react");
|
|
4774
4822
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
4775
|
-
var Checkbox = (0,
|
|
4823
|
+
var Checkbox = (0, import_react37.forwardRef)(
|
|
4776
4824
|
(props, ref) => {
|
|
4777
4825
|
const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
|
|
4778
|
-
const radixSize = (0,
|
|
4826
|
+
const radixSize = (0, import_react37.useMemo)(() => {
|
|
4779
4827
|
switch (size) {
|
|
4780
4828
|
case "small":
|
|
4781
4829
|
return "1";
|
|
@@ -4785,7 +4833,7 @@ var Checkbox = (0, import_react36.forwardRef)(
|
|
|
4785
4833
|
return "3";
|
|
4786
4834
|
}
|
|
4787
4835
|
}, [size]);
|
|
4788
|
-
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4836
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_themes36.Checkbox, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize }));
|
|
4789
4837
|
}
|
|
4790
4838
|
);
|
|
4791
4839
|
Checkbox.displayName = "Checkbox";
|
|
@@ -4856,7 +4904,7 @@ function DynamicFormField({
|
|
|
4856
4904
|
);
|
|
4857
4905
|
case "choice":
|
|
4858
4906
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4859
|
-
|
|
4907
|
+
import_themes33.RadioGroup.Root,
|
|
4860
4908
|
{
|
|
4861
4909
|
onValueChange: readonly ? void 0 : (newValue) => {
|
|
4862
4910
|
void setFieldValue(name, newValue);
|
|
@@ -4864,7 +4912,7 @@ function DynamicFormField({
|
|
|
4864
4912
|
orientation: field.orientation,
|
|
4865
4913
|
value: String(value || ""),
|
|
4866
4914
|
disabled: readonly,
|
|
4867
|
-
children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4915
|
+
children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(import_themes33.RadioGroup.Item, { value: String(option.value), children: option.label }, option.value))
|
|
4868
4916
|
}
|
|
4869
4917
|
);
|
|
4870
4918
|
case "choices":
|
|
@@ -4925,7 +4973,7 @@ function DynamicFormRoot({
|
|
|
4925
4973
|
children,
|
|
4926
4974
|
readonly = false
|
|
4927
4975
|
}) {
|
|
4928
|
-
const validationSchema = (0,
|
|
4976
|
+
const validationSchema = (0, import_react38.useMemo)(() => {
|
|
4929
4977
|
const schema = {};
|
|
4930
4978
|
fields.forEach((field) => {
|
|
4931
4979
|
if (field.validation) {
|
|
@@ -4947,7 +4995,7 @@ function DynamicFormRoot({
|
|
|
4947
4995
|
});
|
|
4948
4996
|
return Object.keys(schema).length > 0 ? Yup2.object(schema) : void 0;
|
|
4949
4997
|
}, [fields]);
|
|
4950
|
-
const handleSubmit = (0,
|
|
4998
|
+
const handleSubmit = (0, import_react38.useCallback)((values) => __async(null, null, function* () {
|
|
4951
4999
|
yield onSubmit(values);
|
|
4952
5000
|
}), [onSubmit]);
|
|
4953
5001
|
const formik = (0, import_formik2.useFormik)({
|
|
@@ -4966,7 +5014,7 @@ function DynamicFormRoot({
|
|
|
4966
5014
|
validateOnChange: true,
|
|
4967
5015
|
onSubmit: handleSubmit
|
|
4968
5016
|
});
|
|
4969
|
-
(0,
|
|
5017
|
+
(0, import_react38.useEffect)(() => {
|
|
4970
5018
|
if (formik.submitCount > 0 && Object.keys(formik.errors).length > 0) {
|
|
4971
5019
|
const timeoutId = setTimeout(() => {
|
|
4972
5020
|
scrollToFirstError(formik.errors, fields);
|
|
@@ -4987,7 +5035,7 @@ function DynamicFormFieldList({
|
|
|
4987
5035
|
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_jsx_runtime77.Fragment, { children: fields.map((field) => {
|
|
4988
5036
|
const errorMessage = !readonly && formik.touched[field.name] && formik.errors[field.name] ? String(formik.errors[field.name]) : void 0;
|
|
4989
5037
|
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
4990
|
-
|
|
5038
|
+
import_themes37.Box,
|
|
4991
5039
|
{
|
|
4992
5040
|
"data-error-field": errorMessage ? field.name : void 0,
|
|
4993
5041
|
"data-field-name": field.name,
|
|
@@ -5158,10 +5206,10 @@ function DynamicFormResponseItem({
|
|
|
5158
5206
|
}
|
|
5159
5207
|
|
|
5160
5208
|
// src/molecules/one-on-one-guide-list.tsx
|
|
5161
|
-
var
|
|
5209
|
+
var import_react40 = require("react");
|
|
5162
5210
|
|
|
5163
5211
|
// src/atoms/list.tsx
|
|
5164
|
-
var
|
|
5212
|
+
var import_react39 = require("react");
|
|
5165
5213
|
var import_clsx4 = require("clsx");
|
|
5166
5214
|
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
5167
5215
|
function Root10(props) {
|
|
@@ -5179,7 +5227,7 @@ function Root10(props) {
|
|
|
5179
5227
|
"className"
|
|
5180
5228
|
]);
|
|
5181
5229
|
const Comp = variant === "ol" ? "ol" : "ul";
|
|
5182
|
-
const className = (0,
|
|
5230
|
+
const className = (0, import_react39.useMemo)(
|
|
5183
5231
|
() => (0, import_clsx4.clsx)(
|
|
5184
5232
|
{
|
|
5185
5233
|
"pre-space-small": preSpace === "small"
|
|
@@ -5193,7 +5241,7 @@ function Root10(props) {
|
|
|
5193
5241
|
function Item2(props) {
|
|
5194
5242
|
const { children } = props;
|
|
5195
5243
|
const { size } = useList();
|
|
5196
|
-
const variant = (0,
|
|
5244
|
+
const variant = (0, import_react39.useMemo)(() => {
|
|
5197
5245
|
return mapWithResponsive({
|
|
5198
5246
|
value: size,
|
|
5199
5247
|
mapFn: (sizeValue) => {
|
|
@@ -5203,11 +5251,11 @@ function Item2(props) {
|
|
|
5203
5251
|
}, [size]);
|
|
5204
5252
|
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(Typo, { asChild: true, variant, children: /* @__PURE__ */ (0, import_jsx_runtime78.jsx)("li", { children }) });
|
|
5205
5253
|
}
|
|
5206
|
-
var ListContext = (0,
|
|
5254
|
+
var ListContext = (0, import_react39.createContext)({
|
|
5207
5255
|
size: "large"
|
|
5208
5256
|
});
|
|
5209
5257
|
function useList() {
|
|
5210
|
-
return (0,
|
|
5258
|
+
return (0, import_react39.useContext)(ListContext);
|
|
5211
5259
|
}
|
|
5212
5260
|
var List = {
|
|
5213
5261
|
Root: Root10,
|
|
@@ -5222,7 +5270,7 @@ var oneOnOneNoteTextReplacer = (args) => {
|
|
|
5222
5270
|
};
|
|
5223
5271
|
function OneOnOneGuideList(props) {
|
|
5224
5272
|
const { data, relacements, guideTitle, guideDescription } = props;
|
|
5225
|
-
const groupedData = (0,
|
|
5273
|
+
const groupedData = (0, import_react40.useMemo)(() => {
|
|
5226
5274
|
return data == null ? void 0 : data.reduce(
|
|
5227
5275
|
(acc, item) => {
|
|
5228
5276
|
if (item.type === "title") {
|