@tipp/ui 2.3.10 → 2.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/index.cjs +4 -3
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +85 -85
- 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 +4 -3
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +69 -69
- package/dist/app/platform/edit-service-type.cjs +4 -3
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +70 -70
- package/dist/app/platform/goal-manage-card-edit.cjs +4 -3
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +69 -69
- package/dist/app/platform/goal-manage-card-read.js +31 -31
- package/dist/app/platform/on-offline-radio-card.cjs +77 -76
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +69 -69
- package/dist/app/platform/report-card.js +31 -31
- package/dist/app/platform/reservation-card.cjs +4 -3
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +70 -70
- package/dist/app/platform/session-card.cjs +4 -3
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +72 -72
- package/dist/app/platform/session-review-simple-read.js +31 -31
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +34 -34
- 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-HHZ4HLP6.js +221 -0
- package/dist/chunk-HHZ4HLP6.js.map +1 -0
- package/dist/chunk-NMRNR5OA.js +221 -0
- package/dist/chunk-NMRNR5OA.js.map +1 -0
- package/dist/chunk-QMPSKZJ2.js +221 -0
- package/dist/chunk-QMPSKZJ2.js.map +1 -0
- package/dist/chunk-WGQGVPGZ.js +222 -0
- package/dist/chunk-WGQGVPGZ.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/context/index.js +5 -5
- package/dist/index.cjs +12 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +13 -9
- package/dist/index.js +127 -127
- 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.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +23 -23
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +26 -26
- 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.js +7 -7
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +5 -5
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +4 -4
- package/dist/molecules/curriculumV2/curriculum-v2-layout.js +2 -2
- package/dist/molecules/curriculumV2/index.js +33 -33
- 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 +141 -140
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +61 -61
- 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 +1 -1
- 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",
|
|
@@ -2887,7 +2888,7 @@ function CurriculumSubNav() {
|
|
|
2887
2888
|
});
|
|
2888
2889
|
}, [selectNext, scrollNavItem]);
|
|
2889
2890
|
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2890
|
-
|
|
2891
|
+
import_themes16.Grid,
|
|
2891
2892
|
{
|
|
2892
2893
|
align: "center",
|
|
2893
2894
|
columns: { initial: "32px 1fr 32px", md: "48px 1fr 48px" },
|
|
@@ -2905,10 +2906,10 @@ function CurriculumSubNav() {
|
|
|
2905
2906
|
variant: "ghost",
|
|
2906
2907
|
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react_icons.ChevronLeftIcon, { height: "16px", width: "16px" })
|
|
2907
2908
|
}
|
|
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)(
|
|
2909
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes7.Box, {}),
|
|
2910
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(import_themes7.Box, { width: "100%", children: [
|
|
2911
|
+
/* @__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 }) }),
|
|
2912
|
+
/* @__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
2913
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2913
2914
|
Typo,
|
|
2914
2915
|
{
|
|
@@ -2930,7 +2931,7 @@ function CurriculumSubNav() {
|
|
|
2930
2931
|
variant: "ghost",
|
|
2931
2932
|
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react_icons.ChevronRightIcon, { height: "16px", width: "16px" })
|
|
2932
2933
|
}
|
|
2933
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2934
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes7.Box, {})
|
|
2934
2935
|
]
|
|
2935
2936
|
}
|
|
2936
2937
|
);
|
|
@@ -3001,7 +3002,7 @@ var import_react_icons7 = require("@radix-ui/react-icons");
|
|
|
3001
3002
|
// src/atoms/dialog.tsx
|
|
3002
3003
|
var RadixDialog = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
3003
3004
|
var import_react_icons6 = require("@radix-ui/react-icons");
|
|
3004
|
-
var
|
|
3005
|
+
var import_themes27 = require("@radix-ui/themes");
|
|
3005
3006
|
var import_react26 = require("react");
|
|
3006
3007
|
|
|
3007
3008
|
// src/theme/portal-provider.tsx
|
|
@@ -3055,7 +3056,7 @@ function Content3(props) {
|
|
|
3055
3056
|
"className"
|
|
3056
3057
|
]);
|
|
3057
3058
|
const { dialogContainerRef } = usePortalContainer();
|
|
3058
|
-
return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(RadixDialog.Portal, { container: dialogContainerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3059
|
+
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
3060
|
RadixDialog.Content,
|
|
3060
3061
|
__spreadProps(__spreadValues({
|
|
3061
3062
|
className: `DialogContent ${className || ""} rt-BaseDialogContent rt-DialogContent rt-r-size-${size || "3"}`,
|
|
@@ -3070,12 +3071,12 @@ function Content3(props) {
|
|
|
3070
3071
|
}, style)
|
|
3071
3072
|
}, rest), {
|
|
3072
3073
|
children: [
|
|
3073
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
3074
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_themes27.Flex, { gap: "2", justify: "between", width: "100%", children: [
|
|
3074
3075
|
/* @__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
3076
|
!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
3077
|
] }),
|
|
3077
3078
|
children,
|
|
3078
|
-
buttons ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3079
|
+
buttons ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes27.Flex, { gap: "3", justify: "end", mt: "3", width: "100%", children: buttons }) : null
|
|
3079
3080
|
]
|
|
3080
3081
|
})
|
|
3081
3082
|
) }) }) });
|
|
@@ -3304,7 +3305,7 @@ function useCurriculumReviewContext() {
|
|
|
3304
3305
|
}
|
|
3305
3306
|
|
|
3306
3307
|
// src/atoms/separator.tsx
|
|
3307
|
-
var
|
|
3308
|
+
var import_themes28 = require("@radix-ui/themes");
|
|
3308
3309
|
|
|
3309
3310
|
// src/utils/curriculum.utils.ts
|
|
3310
3311
|
var CurriculumListIcons = {
|
|
@@ -3398,7 +3399,7 @@ var renderPreviewContent = (args) => {
|
|
|
3398
3399
|
].filter(Boolean).join(" | ");
|
|
3399
3400
|
};
|
|
3400
3401
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3401
|
-
|
|
3402
|
+
import_themes16.Grid,
|
|
3402
3403
|
{
|
|
3403
3404
|
columns: "16px 1fr",
|
|
3404
3405
|
gap: "2",
|
|
@@ -3406,8 +3407,8 @@ var renderPreviewContent = (args) => {
|
|
|
3406
3407
|
py: "2",
|
|
3407
3408
|
width: "100%",
|
|
3408
3409
|
children: [
|
|
3409
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3410
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3410
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes7.Box, { mt: "1", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icon, { color: getCurriculumQuestionIconColor(question.type) }) }),
|
|
3411
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes7.Box, { children: [
|
|
3411
3412
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { as: "p", color: "gray", weight: "bold", children: question.title }),
|
|
3412
3413
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { color: "gray", children: getDescription() })
|
|
3413
3414
|
] })
|
|
@@ -3433,7 +3434,7 @@ var renderReviewContent = (args) => {
|
|
|
3433
3434
|
const badgeColor = ["question_radio", "question_satisfaction_option"].includes(question.type) ? "accent" : "neutral";
|
|
3434
3435
|
const value = getReviewContentValue(question, answer);
|
|
3435
3436
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3436
|
-
|
|
3437
|
+
import_themes16.Grid,
|
|
3437
3438
|
{
|
|
3438
3439
|
columns: "16px 1fr",
|
|
3439
3440
|
gap: "2",
|
|
@@ -3441,8 +3442,8 @@ var renderReviewContent = (args) => {
|
|
|
3441
3442
|
py: "2",
|
|
3442
3443
|
width: "100%",
|
|
3443
3444
|
children: [
|
|
3444
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3445
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3445
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes7.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Icon, { color }) }),
|
|
3446
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes7.Box, { children: [
|
|
3446
3447
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { as: "p", color: "gray", mb: "2", weight: "bold", children: question.title }),
|
|
3447
3448
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Badge, { color: badgeColor, size: "large", style: { whiteSpace: "break-spaces", lineBreak: "anywhere" }, children: value || "(\uBBF8 \uC751\uB2F5)" })
|
|
3448
3449
|
] })
|
|
@@ -3476,13 +3477,13 @@ function StartReview({ onStart }) {
|
|
|
3476
3477
|
children: [
|
|
3477
3478
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { color: "gray", mb: "1", children: curriculum.title }),
|
|
3478
3479
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Heading2, { variant: "heading3", children: reviewContents.title }),
|
|
3479
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3480
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes28.Separator, { my: "4", style: { width: 100 } }),
|
|
3480
3481
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(Typo, { align: "left", as: "p", color: "gray", mb: "4", children: [
|
|
3481
3482
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { as: "span", weight: "bold", children: sectionTitle }),
|
|
3482
3483
|
" ",
|
|
3483
3484
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { children: reviewContents.description })
|
|
3484
3485
|
] }),
|
|
3485
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3486
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes7.Box, { mb: "5", overflowY: "auto", width: "100%", children: reviewContents.questions.map((question) => {
|
|
3486
3487
|
if (done) {
|
|
3487
3488
|
return renderReviewContent({ question, answer: formik.values.answers[question.uuid] });
|
|
3488
3489
|
}
|
|
@@ -3533,7 +3534,7 @@ function CompleteReview(props) {
|
|
|
3533
3534
|
/* @__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
3535
|
\uC55E\uC73C\uB85C \uC788\uC744 \uB9AC\uB354\uB2D8\uC758 \uC131\uC7A5\uC744 \uAE30\uB300\uD569\uB2C8\uB2E4.` })
|
|
3535
3536
|
] }),
|
|
3536
|
-
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
|
|
3537
|
+
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(import_themes16.Grid, { columns: { initial: "1fr", md: "2" }, gap: "3", width: "100%", children: [
|
|
3537
3538
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Button, { onClick: onClickReviewMyAnswer, variant: "outline", children: [
|
|
3538
3539
|
(reviewMeta == null ? void 0 : reviewMeta.endReviewBackButtonTitle) || "\uB098\uC758 \uC751\uB2F5 \uB2E4\uC2DC \uBCF4\uAE30",
|
|
3539
3540
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react_icons.ResetIcon, {})
|
|
@@ -3568,7 +3569,7 @@ function ReviewQuestionLayout({
|
|
|
3568
3569
|
Footer
|
|
3569
3570
|
}) {
|
|
3570
3571
|
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
3571
|
-
|
|
3572
|
+
import_themes16.Grid,
|
|
3572
3573
|
{
|
|
3573
3574
|
align: "center",
|
|
3574
3575
|
columns: "1fr",
|
|
@@ -3580,18 +3581,18 @@ function ReviewQuestionLayout({
|
|
|
3580
3581
|
},
|
|
3581
3582
|
width: "100%",
|
|
3582
3583
|
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)(
|
|
3584
|
+
/* @__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 }) }),
|
|
3585
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes28.Separator, { size: "4" }),
|
|
3585
3586
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3586
3587
|
AlignCenter,
|
|
3587
3588
|
{
|
|
3588
3589
|
p: "3",
|
|
3589
3590
|
style: { backgroundColor: "var(--gray-2)", zIndex: 0 },
|
|
3590
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3591
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes7.Box, { height: "100%", maxWidth: "650px", width: "100%", children: Body })
|
|
3591
3592
|
}
|
|
3592
3593
|
),
|
|
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)(
|
|
3594
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes28.Separator, { size: "4" }),
|
|
3595
|
+
/* @__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
3596
|
]
|
|
3596
3597
|
}
|
|
3597
3598
|
);
|
|
@@ -3599,7 +3600,7 @@ function ReviewQuestionLayout({
|
|
|
3599
3600
|
var review_question_layout_default = ReviewQuestionLayout;
|
|
3600
3601
|
|
|
3601
3602
|
// src/atoms/progress.tsx
|
|
3602
|
-
var
|
|
3603
|
+
var import_themes29 = require("@radix-ui/themes");
|
|
3603
3604
|
|
|
3604
3605
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.tsx
|
|
3605
3606
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
@@ -3608,8 +3609,8 @@ function ReviewQuestionHeader({
|
|
|
3608
3609
|
total
|
|
3609
3610
|
}) {
|
|
3610
3611
|
const { reviewContents } = useCurriculumReviewContext();
|
|
3611
|
-
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
3612
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3612
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_themes7.Box, { height: "100%", width: "100%", children: [
|
|
3613
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes16.Grid, { columns: "1fr 40px", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3613
3614
|
Heading2,
|
|
3614
3615
|
{
|
|
3615
3616
|
mb: "3",
|
|
@@ -3627,7 +3628,7 @@ function ReviewQuestionHeader({
|
|
|
3627
3628
|
" \uC644\uB8CC"
|
|
3628
3629
|
] })
|
|
3629
3630
|
] }),
|
|
3630
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3631
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes29.Progress, { color: "iris", max: total, value: index + 1 })
|
|
3631
3632
|
] });
|
|
3632
3633
|
}
|
|
3633
3634
|
var review_question_header_default = ReviewQuestionHeader;
|
|
@@ -3643,11 +3644,11 @@ function ReviewQuestionFooter({
|
|
|
3643
3644
|
onSubmit,
|
|
3644
3645
|
isLoading
|
|
3645
3646
|
}) {
|
|
3646
|
-
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
3647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_themes16.Grid, { columns: "1fr 1fr", gap: "3", children: [
|
|
3647
3648
|
index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Button, { onClick: onPrev, variant: "outline", children: [
|
|
3648
3649
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_icons.ChevronLeftIcon, {}),
|
|
3649
3650
|
"\uC774\uC804\uC73C\uB85C"
|
|
3650
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
3651
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes7.Box, {}),
|
|
3651
3652
|
isLast ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Button, { disabled: isNextButtonDisabled, loading: isLoading, onClick: onSubmit, children: [
|
|
3652
3653
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_icons.PaperPlaneIcon, {}),
|
|
3653
3654
|
"\uC81C\uCD9C\uD558\uAE30"
|
|
@@ -3672,7 +3673,7 @@ var import_react29 = require("react");
|
|
|
3672
3673
|
|
|
3673
3674
|
// src/atoms/card.tsx
|
|
3674
3675
|
var import_react28 = require("react");
|
|
3675
|
-
var
|
|
3676
|
+
var import_themes30 = require("@radix-ui/themes");
|
|
3676
3677
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
3677
3678
|
var Card = (0, import_react28.forwardRef)(
|
|
3678
3679
|
(props, forwardedRef) => {
|
|
@@ -3691,7 +3692,7 @@ var Card = (0, import_react28.forwardRef)(
|
|
|
3691
3692
|
return error ? " error" : "";
|
|
3692
3693
|
}, [error]);
|
|
3693
3694
|
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3694
|
-
|
|
3695
|
+
import_themes30.Card,
|
|
3695
3696
|
__spreadProps(__spreadValues({
|
|
3696
3697
|
variant: "surface"
|
|
3697
3698
|
}, rest), {
|
|
@@ -3713,9 +3714,9 @@ function ReviewQuestionContentHeader({
|
|
|
3713
3714
|
icon
|
|
3714
3715
|
}) {
|
|
3715
3716
|
const Icon = getCurriculumIcon({ type, icon });
|
|
3716
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
3717
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes7.Box, { children: [
|
|
3717
3718
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes.Flex, { gap: "2", mb: "3", children: [
|
|
3718
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
3719
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes7.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
3719
3720
|
Icon,
|
|
3720
3721
|
{
|
|
3721
3722
|
color: getCurriculumQuestionIconColor(type),
|
|
@@ -3747,7 +3748,7 @@ function ReviewQuestionRadio(props) {
|
|
|
3747
3748
|
if (isWrong) return "red";
|
|
3748
3749
|
return void 0;
|
|
3749
3750
|
}, [isCorrect, isWrong]);
|
|
3750
|
-
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3751
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes16.Grid, { height: "100%", rows: "auto 1fr", width: "100%", children: [
|
|
3751
3752
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Card, { mb: "4", size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3752
3753
|
ReviewQuestionContentHeader,
|
|
3753
3754
|
{
|
|
@@ -3757,8 +3758,8 @@ function ReviewQuestionRadio(props) {
|
|
|
3757
3758
|
type: question.type
|
|
3758
3759
|
}
|
|
3759
3760
|
) }),
|
|
3760
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3761
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3761
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes16.Grid, { height: "100%", rows: "1fr auto", width: "100%", children: [
|
|
3762
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(import_themes7.Box, { position: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3762
3763
|
RadioButtonCard.Root,
|
|
3763
3764
|
{
|
|
3764
3765
|
color: radioColor,
|
|
@@ -3783,7 +3784,7 @@ function ReviewQuestionRadio(props) {
|
|
|
3783
3784
|
{
|
|
3784
3785
|
style,
|
|
3785
3786
|
value: i.toString(),
|
|
3786
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3787
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes7.Box, { children: [
|
|
3787
3788
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Typo, { as: "p", children: option.label }),
|
|
3788
3789
|
isThisOptionCorrect ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Typo, { color: "green", children: "\uC815\uB2F5\uC785\uB2C8\uB2E4" }) : null,
|
|
3789
3790
|
isThisOptionWrong ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Typo, { color: "red", children: "\uC815\uB2F5\uC774 \uC544\uB2D9\uB2C8\uB2E4" }) : null
|
|
@@ -3801,7 +3802,7 @@ function ReviewQuestionRadio(props) {
|
|
|
3801
3802
|
var review_question_radio_default = ReviewQuestionRadio;
|
|
3802
3803
|
|
|
3803
3804
|
// src/atoms/text-area.tsx
|
|
3804
|
-
var
|
|
3805
|
+
var import_themes31 = require("@radix-ui/themes");
|
|
3805
3806
|
var import_react30 = require("react");
|
|
3806
3807
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
3807
3808
|
var TextArea = (0, import_react30.forwardRef)(
|
|
@@ -3816,7 +3817,7 @@ var TextArea = (0, import_react30.forwardRef)(
|
|
|
3816
3817
|
}, [error, style]);
|
|
3817
3818
|
const classNameStr = error ? `error ${className}` : className;
|
|
3818
3819
|
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
3819
|
-
|
|
3820
|
+
import_themes31.TextArea,
|
|
3820
3821
|
__spreadProps(__spreadValues({}, rest), {
|
|
3821
3822
|
className: classNameStr,
|
|
3822
3823
|
ref,
|
|
@@ -3828,7 +3829,7 @@ var TextArea = (0, import_react30.forwardRef)(
|
|
|
3828
3829
|
TextArea.displayName = "TextArea";
|
|
3829
3830
|
|
|
3830
3831
|
// src/atoms/call-out.tsx
|
|
3831
|
-
var
|
|
3832
|
+
var import_themes32 = require("@radix-ui/themes");
|
|
3832
3833
|
|
|
3833
3834
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.tsx
|
|
3834
3835
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
@@ -3844,8 +3845,8 @@ function ReviewQuestionText(props) {
|
|
|
3844
3845
|
width: "100%",
|
|
3845
3846
|
height: "100%"
|
|
3846
3847
|
},
|
|
3847
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3848
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3848
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes16.Grid, { height: "100%", rows: "1fr auto", children: [
|
|
3849
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes16.Grid, { height: "100%", rows: "auto 1fr", width: "100%", children: [
|
|
3849
3850
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3850
3851
|
ReviewQuestionContentHeader,
|
|
3851
3852
|
{
|
|
@@ -3867,17 +3868,17 @@ function ReviewQuestionText(props) {
|
|
|
3867
3868
|
}
|
|
3868
3869
|
)
|
|
3869
3870
|
] }),
|
|
3870
|
-
minLengthNotMet ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3871
|
+
minLengthNotMet ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes7.Box, { mt: "2", children: [
|
|
3871
3872
|
/* @__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
3873
|
question.minLengthInfoMessage ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3873
|
-
|
|
3874
|
+
import_themes32.Callout.Root,
|
|
3874
3875
|
{
|
|
3875
3876
|
color: "iris",
|
|
3876
3877
|
mt: "2",
|
|
3877
3878
|
style: { alignItems: "center" },
|
|
3878
3879
|
children: [
|
|
3879
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3880
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3880
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes32.Callout.Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_react_icons.BellIcon, {}) }),
|
|
3881
|
+
/* @__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
3882
|
]
|
|
3882
3883
|
}
|
|
3883
3884
|
) : null
|
|
@@ -3889,7 +3890,7 @@ function ReviewQuestionText(props) {
|
|
|
3889
3890
|
var review_question_text_default = ReviewQuestionText;
|
|
3890
3891
|
|
|
3891
3892
|
// src/atoms/radio-group.tsx
|
|
3892
|
-
var
|
|
3893
|
+
var import_themes33 = require("@radix-ui/themes");
|
|
3893
3894
|
|
|
3894
3895
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.tsx
|
|
3895
3896
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
@@ -3906,7 +3907,7 @@ function ReviewQuestionSatisfisRadio(props) {
|
|
|
3906
3907
|
type: question.type
|
|
3907
3908
|
}
|
|
3908
3909
|
) }),
|
|
3909
|
-
/* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
3910
|
+
/* @__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
3911
|
] });
|
|
3911
3912
|
}
|
|
3912
3913
|
var review_question_satisfaction_option_default = ReviewQuestionSatisfisRadio;
|
|
@@ -3916,7 +3917,7 @@ var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
|
3916
3917
|
function ReviewQuestionSatisfisText(props) {
|
|
3917
3918
|
var _a, _b;
|
|
3918
3919
|
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)(
|
|
3920
|
+
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
3921
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
3921
3922
|
ReviewQuestionContentHeader,
|
|
3922
3923
|
{
|
|
@@ -4242,15 +4243,15 @@ function CurriculumReview(props) {
|
|
|
4242
4243
|
title: sectionTitle
|
|
4243
4244
|
}
|
|
4244
4245
|
),
|
|
4245
|
-
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4246
|
+
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_themes7.Box, { position: "absolute", right: "16px", top: "16px", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(
|
|
4246
4247
|
IconButton,
|
|
4247
4248
|
{
|
|
4248
4249
|
color: "gray",
|
|
4249
4250
|
onClick: onClickCloseDrawer,
|
|
4250
4251
|
variant: "ghost",
|
|
4251
4252
|
children: [
|
|
4252
|
-
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4253
|
-
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4253
|
+
/* @__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 }) }),
|
|
4254
|
+
/* @__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
4255
|
]
|
|
4255
4256
|
}
|
|
4256
4257
|
) }),
|
|
@@ -4363,13 +4364,13 @@ function CurriculumBody() {
|
|
|
4363
4364
|
}
|
|
4364
4365
|
|
|
4365
4366
|
// src/atoms/tabs.tsx
|
|
4366
|
-
var
|
|
4367
|
+
var import_themes34 = require("@radix-ui/themes");
|
|
4367
4368
|
|
|
4368
4369
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/section-title.tsx
|
|
4369
4370
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
4370
4371
|
function SectionTitle(props) {
|
|
4371
4372
|
const { title, duration } = props;
|
|
4372
|
-
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
4373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_themes16.Grid, { align: "center", columns: "1fr auto", px: "3", py: "2", children: [
|
|
4373
4374
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Typo, { color: "gray", children: title }),
|
|
4374
4375
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
4375
4376
|
duration,
|
|
@@ -4388,7 +4389,7 @@ function CurriculumSidebarItemWrapper({
|
|
|
4388
4389
|
index
|
|
4389
4390
|
}) {
|
|
4390
4391
|
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
4391
|
-
|
|
4392
|
+
import_themes16.Grid,
|
|
4392
4393
|
{
|
|
4393
4394
|
align: "center",
|
|
4394
4395
|
columns: "auto 1fr",
|
|
@@ -4404,7 +4405,7 @@ function CurriculumSidebarItemWrapper({
|
|
|
4404
4405
|
},
|
|
4405
4406
|
children: [
|
|
4406
4407
|
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4407
|
-
|
|
4408
|
+
import_themes28.Separator,
|
|
4408
4409
|
{
|
|
4409
4410
|
color: "yellow",
|
|
4410
4411
|
orientation: "vertical",
|
|
@@ -4494,10 +4495,10 @@ var TAB_LIST = [
|
|
|
4494
4495
|
function CurriculumSidebar() {
|
|
4495
4496
|
const { curriculum, selectedIndex, setSelectedIndex, scrollAreaRef, curriculumCompleteMap } = useCurriculumContext();
|
|
4496
4497
|
const list = curriculum.contents.list;
|
|
4497
|
-
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4498
|
-
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4498
|
+
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: [
|
|
4499
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes34.Tabs.List, { style: { padding: "0 var(--space-3)" }, children: TAB_LIST.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes34.Tabs.Trigger, { value: tab.value, children: tab.label }, tab.value)) }),
|
|
4499
4500
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4500
|
-
|
|
4501
|
+
import_themes7.Box,
|
|
4501
4502
|
{
|
|
4502
4503
|
height: "100%",
|
|
4503
4504
|
overflowY: "auto",
|
|
@@ -4505,7 +4506,7 @@ function CurriculumSidebar() {
|
|
|
4505
4506
|
ref: scrollAreaRef,
|
|
4506
4507
|
width: "100%",
|
|
4507
4508
|
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
|
|
4508
|
-
|
|
4509
|
+
import_themes34.Tabs.Content,
|
|
4509
4510
|
{
|
|
4510
4511
|
style: {
|
|
4511
4512
|
position: "absolute",
|
|
@@ -4515,7 +4516,7 @@ function CurriculumSidebar() {
|
|
|
4515
4516
|
value: TAB_LIST[0].value,
|
|
4516
4517
|
children: [
|
|
4517
4518
|
list.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(sidebar_item_default, { done: curriculumCompleteMap[item.uuid], index, item, selectedIndex, setSelectedIndex }, item.uuid)),
|
|
4518
|
-
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4519
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes7.Box, { height: "150px" })
|
|
4519
4520
|
]
|
|
4520
4521
|
}
|
|
4521
4522
|
)
|
|
@@ -4528,7 +4529,7 @@ function CurriculumSidebar() {
|
|
|
4528
4529
|
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
4529
4530
|
function CurriculumV2Layout(props) {
|
|
4530
4531
|
const { NavBar, Contents, SideBar, SideNav, style } = props;
|
|
4531
|
-
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
4532
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_themes16.Grid, { align: "center", height: "100%", rows: "auto 1px 1fr", style, width: "100%", children: [
|
|
4532
4533
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4533
4534
|
import_themes.Flex,
|
|
4534
4535
|
{
|
|
@@ -4538,7 +4539,7 @@ function CurriculumV2Layout(props) {
|
|
|
4538
4539
|
children: NavBar
|
|
4539
4540
|
}
|
|
4540
4541
|
),
|
|
4541
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4542
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes28.Separator, { size: "4" }),
|
|
4542
4543
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4543
4544
|
import_themes.Flex,
|
|
4544
4545
|
{
|
|
@@ -4548,7 +4549,7 @@ function CurriculumV2Layout(props) {
|
|
|
4548
4549
|
overflow: "hidden",
|
|
4549
4550
|
width: "100%",
|
|
4550
4551
|
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
4551
|
-
|
|
4552
|
+
import_themes16.Grid,
|
|
4552
4553
|
{
|
|
4553
4554
|
columns: { initial: "1", md: "1fr 340px" },
|
|
4554
4555
|
height: "100%",
|
|
@@ -4556,8 +4557,8 @@ function CurriculumV2Layout(props) {
|
|
|
4556
4557
|
rows: { initial: "auto 1fr", md: "auto" },
|
|
4557
4558
|
width: "100%",
|
|
4558
4559
|
children: [
|
|
4559
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
4560
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4560
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_themes7.Box, { height: "100%", width: "100%", children: [
|
|
4561
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes18.AspectRatio, { ratio: 16 / 9, children: Contents }),
|
|
4561
4562
|
SideNav
|
|
4562
4563
|
] }),
|
|
4563
4564
|
SideBar
|
|
@@ -4573,7 +4574,7 @@ function CurriculumV2Layout(props) {
|
|
|
4573
4574
|
var import_react37 = require("react");
|
|
4574
4575
|
var import_formik2 = require("formik");
|
|
4575
4576
|
var Yup2 = __toESM(require("yup"), 1);
|
|
4576
|
-
var
|
|
4577
|
+
var import_themes37 = require("@radix-ui/themes");
|
|
4577
4578
|
|
|
4578
4579
|
// src/context/dynamic-form-context.tsx
|
|
4579
4580
|
var import_react34 = require("react");
|
|
@@ -4744,7 +4745,7 @@ function useDynamicForm() {
|
|
|
4744
4745
|
}
|
|
4745
4746
|
|
|
4746
4747
|
// src/atoms/check-box-group.tsx
|
|
4747
|
-
var
|
|
4748
|
+
var import_themes35 = require("@radix-ui/themes");
|
|
4748
4749
|
var import_react35 = require("react");
|
|
4749
4750
|
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4750
4751
|
var Root9 = (0, import_react35.forwardRef)((props, ref) => {
|
|
@@ -4760,16 +4761,16 @@ var Root9 = (0, import_react35.forwardRef)((props, ref) => {
|
|
|
4760
4761
|
return "2";
|
|
4761
4762
|
}
|
|
4762
4763
|
}, [size]);
|
|
4763
|
-
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes35.CheckboxGroup.Root, __spreadProps(__spreadValues({}, rest), { ref, size: groupSize, children }));
|
|
4764
4765
|
});
|
|
4765
4766
|
Root9.displayName = "CheckboxGroup.Root";
|
|
4766
4767
|
var CheckboxGroup = {
|
|
4767
4768
|
Root: Root9,
|
|
4768
|
-
Item:
|
|
4769
|
+
Item: import_themes35.CheckboxGroup.Item
|
|
4769
4770
|
};
|
|
4770
4771
|
|
|
4771
4772
|
// src/atoms/check-box.tsx
|
|
4772
|
-
var
|
|
4773
|
+
var import_themes36 = require("@radix-ui/themes");
|
|
4773
4774
|
var import_react36 = require("react");
|
|
4774
4775
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
4775
4776
|
var Checkbox = (0, import_react36.forwardRef)(
|
|
@@ -4785,7 +4786,7 @@ var Checkbox = (0, import_react36.forwardRef)(
|
|
|
4785
4786
|
return "3";
|
|
4786
4787
|
}
|
|
4787
4788
|
}, [size]);
|
|
4788
|
-
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4789
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_themes36.Checkbox, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize }));
|
|
4789
4790
|
}
|
|
4790
4791
|
);
|
|
4791
4792
|
Checkbox.displayName = "Checkbox";
|
|
@@ -4856,7 +4857,7 @@ function DynamicFormField({
|
|
|
4856
4857
|
);
|
|
4857
4858
|
case "choice":
|
|
4858
4859
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4859
|
-
|
|
4860
|
+
import_themes33.RadioGroup.Root,
|
|
4860
4861
|
{
|
|
4861
4862
|
onValueChange: readonly ? void 0 : (newValue) => {
|
|
4862
4863
|
void setFieldValue(name, newValue);
|
|
@@ -4864,7 +4865,7 @@ function DynamicFormField({
|
|
|
4864
4865
|
orientation: field.orientation,
|
|
4865
4866
|
value: String(value || ""),
|
|
4866
4867
|
disabled: readonly,
|
|
4867
|
-
children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4868
|
+
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
4869
|
}
|
|
4869
4870
|
);
|
|
4870
4871
|
case "choices":
|
|
@@ -4987,7 +4988,7 @@ function DynamicFormFieldList({
|
|
|
4987
4988
|
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_jsx_runtime77.Fragment, { children: fields.map((field) => {
|
|
4988
4989
|
const errorMessage = !readonly && formik.touched[field.name] && formik.errors[field.name] ? String(formik.errors[field.name]) : void 0;
|
|
4989
4990
|
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
4990
|
-
|
|
4991
|
+
import_themes37.Box,
|
|
4991
4992
|
{
|
|
4992
4993
|
"data-error-field": errorMessage ? field.name : void 0,
|
|
4993
4994
|
"data-field-name": field.name,
|