@tipp/ui 2.3.9 → 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 +20 -20
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +1 -1
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +1 -1
- 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 +17 -17
- 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 +17 -17
- 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 +17 -17
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +1 -1
- 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 +17 -17
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +1 -1
- 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 +17 -17
- 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 +17 -17
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +1 -1
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +1 -1
- package/dist/atoms/index.cjs +1 -1
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +1 -1
- package/dist/atoms/pagination.cjs +1 -1
- package/dist/atoms/pagination.cjs.map +1 -1
- package/dist/atoms/pagination.js +1 -1
- package/dist/chunk-26O2ATMO.js +196 -0
- package/dist/chunk-26O2ATMO.js.map +1 -0
- package/dist/chunk-2HNIO3ZS.js +174 -0
- package/dist/chunk-2HNIO3ZS.js.map +1 -0
- package/dist/chunk-3IH2QVBB.js +37 -0
- package/dist/chunk-3IH2QVBB.js.map +1 -0
- package/dist/chunk-3PE6JQJD.js +199 -0
- package/dist/chunk-3PE6JQJD.js.map +1 -0
- package/dist/chunk-3ZWQBI3C.js +228 -0
- package/dist/chunk-3ZWQBI3C.js.map +1 -0
- package/dist/chunk-565LGGCZ.js +198 -0
- package/dist/chunk-565LGGCZ.js.map +1 -0
- package/dist/chunk-5ALF4QOO.js +51 -0
- package/dist/chunk-5ALF4QOO.js.map +1 -0
- package/dist/chunk-5I2YBHKM.js +209 -0
- package/dist/chunk-5I2YBHKM.js.map +1 -0
- package/dist/chunk-5OTWI6C5.js +124 -0
- package/dist/chunk-5OTWI6C5.js.map +1 -0
- package/dist/chunk-5QWMYOYQ.js +101 -0
- package/dist/chunk-5QWMYOYQ.js.map +1 -0
- package/dist/chunk-6MXZLFKB.js +215 -0
- package/dist/chunk-6MXZLFKB.js.map +1 -0
- package/dist/chunk-7EDFQO6G.js +145 -0
- package/dist/chunk-7EDFQO6G.js.map +1 -0
- package/dist/chunk-AE37PV3K.js +64 -0
- package/dist/chunk-AE37PV3K.js.map +1 -0
- package/dist/chunk-AWLRACTU.js +217 -0
- package/dist/chunk-AWLRACTU.js.map +1 -0
- package/dist/chunk-BAS5S6ZI.js +144 -0
- package/dist/chunk-BAS5S6ZI.js.map +1 -0
- package/dist/chunk-BBEGVL2S.js +69 -0
- package/dist/chunk-BBEGVL2S.js.map +1 -0
- package/dist/chunk-C2KPQPFR.js +209 -0
- package/dist/chunk-C2KPQPFR.js.map +1 -0
- package/dist/chunk-C3GC2Y34.js +209 -0
- package/dist/chunk-C3GC2Y34.js.map +1 -0
- package/dist/chunk-CRPH7YI5.js +221 -0
- package/dist/chunk-CRPH7YI5.js.map +1 -0
- package/dist/chunk-D7DI7CJ5.js +63 -0
- package/dist/chunk-D7DI7CJ5.js.map +1 -0
- package/dist/chunk-DG5A2RUZ.js +215 -0
- package/dist/chunk-DG5A2RUZ.js.map +1 -0
- package/dist/chunk-DLFBF5KJ.js +217 -0
- package/dist/chunk-DLFBF5KJ.js.map +1 -0
- package/dist/chunk-E2ISFADW.js +196 -0
- package/dist/chunk-E2ISFADW.js.map +1 -0
- package/dist/chunk-E3E6FV2T.js +64 -0
- package/dist/chunk-E3E6FV2T.js.map +1 -0
- package/dist/chunk-EBMQ6DIV.js +89 -0
- package/dist/chunk-EBMQ6DIV.js.map +1 -0
- package/dist/chunk-EWIRNKMR.js +49 -0
- package/dist/chunk-EWIRNKMR.js.map +1 -0
- package/dist/chunk-FG3WT6OL.js +125 -0
- package/dist/chunk-FG3WT6OL.js.map +1 -0
- package/dist/chunk-FRKPPLQP.js +223 -0
- package/dist/chunk-FRKPPLQP.js.map +1 -0
- package/dist/chunk-G6ZWPY57.js +99 -0
- package/dist/chunk-G6ZWPY57.js.map +1 -0
- package/dist/chunk-GCDGKRQQ.js +117 -0
- package/dist/chunk-GCDGKRQQ.js.map +1 -0
- package/dist/chunk-GROWIYD2.js +169 -0
- package/dist/chunk-GROWIYD2.js.map +1 -0
- package/dist/chunk-HHZ4HLP6.js +221 -0
- package/dist/chunk-HHZ4HLP6.js.map +1 -0
- package/dist/chunk-HPG6F7VM.js +165 -0
- package/dist/chunk-HPG6F7VM.js.map +1 -0
- package/dist/chunk-HQPSFOVV.js +43 -0
- package/dist/chunk-HQPSFOVV.js.map +1 -0
- package/dist/chunk-I7M6TY5G.js +64 -0
- package/dist/chunk-I7M6TY5G.js.map +1 -0
- package/dist/chunk-IFY3MMGL.js +144 -0
- package/dist/chunk-IFY3MMGL.js.map +1 -0
- package/dist/chunk-JWT2CPYX.js +221 -0
- package/dist/chunk-JWT2CPYX.js.map +1 -0
- package/dist/chunk-KTXRU3WQ.js +196 -0
- package/dist/chunk-KTXRU3WQ.js.map +1 -0
- package/dist/chunk-LVPXFDRY.js +145 -0
- package/dist/chunk-LVPXFDRY.js.map +1 -0
- package/dist/chunk-LWM3GQX2.js +89 -0
- package/dist/chunk-LWM3GQX2.js.map +1 -0
- package/dist/chunk-MCI6Y2QP.js +61 -0
- package/dist/chunk-MCI6Y2QP.js.map +1 -0
- package/dist/chunk-NMRNR5OA.js +221 -0
- package/dist/chunk-NMRNR5OA.js.map +1 -0
- package/dist/chunk-NQLHTDVA.js +209 -0
- package/dist/chunk-NQLHTDVA.js.map +1 -0
- package/dist/chunk-ODYLHCQD.js +87 -0
- package/dist/chunk-ODYLHCQD.js.map +1 -0
- package/dist/chunk-OJOTDNKG.js +69 -0
- package/dist/chunk-OJOTDNKG.js.map +1 -0
- package/dist/chunk-OVYSIME4.js +63 -0
- package/dist/chunk-OVYSIME4.js.map +1 -0
- package/dist/chunk-PNXD4FUW.js +199 -0
- package/dist/chunk-PNXD4FUW.js.map +1 -0
- package/dist/chunk-PQ7EVMOK.js +209 -0
- package/dist/chunk-PQ7EVMOK.js.map +1 -0
- package/dist/chunk-PT5BQZPO.js +124 -0
- package/dist/chunk-PT5BQZPO.js.map +1 -0
- package/dist/chunk-PV45TKNY.js +217 -0
- package/dist/chunk-PV45TKNY.js.map +1 -0
- package/dist/chunk-QMPSKZJ2.js +221 -0
- package/dist/chunk-QMPSKZJ2.js.map +1 -0
- package/dist/chunk-RDCEN45M.js +89 -0
- package/dist/chunk-RDCEN45M.js.map +1 -0
- package/dist/chunk-RYBQ4OMI.js +199 -0
- package/dist/chunk-RYBQ4OMI.js.map +1 -0
- package/dist/chunk-SBJOKO35.js +125 -0
- package/dist/chunk-SBJOKO35.js.map +1 -0
- package/dist/chunk-SPB56SRF.js +199 -0
- package/dist/chunk-SPB56SRF.js.map +1 -0
- package/dist/chunk-VGDK7BHK.js +198 -0
- package/dist/chunk-VGDK7BHK.js.map +1 -0
- package/dist/chunk-WGQGVPGZ.js +222 -0
- package/dist/chunk-WGQGVPGZ.js.map +1 -0
- package/dist/chunk-WQEMCAKF.js +198 -0
- package/dist/chunk-WQEMCAKF.js.map +1 -0
- package/dist/chunk-XK3725XB.js +87 -0
- package/dist/chunk-XK3725XB.js.map +1 -0
- package/dist/chunk-XQUM7KZW.js +29 -0
- package/dist/chunk-XQUM7KZW.js.map +1 -0
- package/dist/chunk-XXSZHE7S.js +217 -0
- package/dist/chunk-XXSZHE7S.js.map +1 -0
- package/dist/chunk-XYJ6JLAZ.js +124 -0
- package/dist/chunk-XYJ6JLAZ.js.map +1 -0
- package/dist/chunk-YEGT662X.js +221 -0
- package/dist/chunk-YEGT662X.js.map +1 -0
- package/dist/chunk-YLFGGCST.js +68 -0
- package/dist/chunk-YLFGGCST.js.map +1 -0
- package/dist/chunk-YXPMFEO5.js +151 -0
- package/dist/chunk-YXPMFEO5.js.map +1 -0
- package/dist/chunk-ZBN7YZEV.js +215 -0
- package/dist/chunk-ZBN7YZEV.js.map +1 -0
- package/dist/chunk-ZBZ7IGBT.js +222 -0
- package/dist/chunk-ZBZ7IGBT.js.map +1 -0
- package/dist/chunk-ZS44RD54.js +363 -0
- package/dist/chunk-ZS44RD54.js.map +1 -0
- package/dist/index.cjs +43 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +77 -38
- package/dist/index.js +34 -34
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +2 -2
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +5 -5
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +3 -3
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +2 -2
- package/dist/molecules/curriculumV2/index.js +13 -13
- package/dist/molecules/expand-table/index.cjs +35 -11
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.d.cts +2 -0
- package/dist/molecules/expand-table/index.d.ts +2 -0
- package/dist/molecules/expand-table/index.js +2 -2
- package/dist/molecules/index.cjs +172 -148
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +26 -26
- package/dist/molecules/time-select.js +1 -1
- package/dist/utils/index.js +3 -3
- package/package.json +1 -1
- package/src/atoms/pagination.tsx +1 -1
- package/src/molecules/expand-table/index.tsx +108 -85
package/dist/molecules/index.cjs
CHANGED
|
@@ -781,7 +781,7 @@ function Pagination(props) {
|
|
|
781
781
|
size: "large",
|
|
782
782
|
style: { borderRadius: "50%" }
|
|
783
783
|
};
|
|
784
|
-
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_themes.Flex, { align: "center", className: "tipp-pagination",
|
|
784
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_themes.Flex, { align: "center", className: "tipp-pagination", children: [
|
|
785
785
|
/* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
786
786
|
IconButton,
|
|
787
787
|
__spreadProps(__spreadValues({
|
|
@@ -912,7 +912,24 @@ 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");
|
|
917
|
+
var sortButtonColorMapper = {
|
|
918
|
+
card: {
|
|
919
|
+
selected: "var(--iris-10)",
|
|
920
|
+
unselected: "var(--iris-6)"
|
|
921
|
+
},
|
|
922
|
+
sprite: {
|
|
923
|
+
// selected: 'var(--gray-a12)',
|
|
924
|
+
// unselected: 'var(--gray-a6)',
|
|
925
|
+
selected: "var(--iris-10)",
|
|
926
|
+
unselected: "var(--iris-6)"
|
|
927
|
+
},
|
|
928
|
+
"sprite-border": {
|
|
929
|
+
selected: "var(--iris-10)",
|
|
930
|
+
unselected: "var(--iris-6)"
|
|
931
|
+
}
|
|
932
|
+
};
|
|
916
933
|
function ExpandTable(props) {
|
|
917
934
|
const {
|
|
918
935
|
data,
|
|
@@ -927,7 +944,8 @@ function ExpandTable(props) {
|
|
|
927
944
|
pageSize = 10,
|
|
928
945
|
siblingCount = 2,
|
|
929
946
|
getRowStyle,
|
|
930
|
-
getCellStyle
|
|
947
|
+
getCellStyle,
|
|
948
|
+
variant = "card"
|
|
931
949
|
} = props;
|
|
932
950
|
const defaultAlign = "left";
|
|
933
951
|
const [pagination, setPagination] = (0, import_react6.useState)({
|
|
@@ -988,7 +1006,7 @@ function ExpandTable(props) {
|
|
|
988
1006
|
if (!data) return 0;
|
|
989
1007
|
return Math.ceil(data.length / pageSize);
|
|
990
1008
|
}, [data, pageSize]);
|
|
991
|
-
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className:
|
|
1009
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: `expand-table-wrapper ${variant}`, children: [
|
|
992
1010
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "expand-table", style: tableStyle, children: [
|
|
993
1011
|
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
994
1012
|
"div",
|
|
@@ -1018,16 +1036,22 @@ function ExpandTable(props) {
|
|
|
1018
1036
|
direction: "column",
|
|
1019
1037
|
style: { marginLeft: "var(--space-2)" },
|
|
1020
1038
|
children: [
|
|
1021
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1039
|
+
sortedState === false && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1040
|
+
TriangleArrowDownIcon,
|
|
1041
|
+
{
|
|
1042
|
+
color: sortButtonColorMapper[variant].unselected
|
|
1043
|
+
}
|
|
1044
|
+
),
|
|
1045
|
+
sortedState === "asc" && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1022
1046
|
TriangleArrowUpIcon,
|
|
1023
1047
|
{
|
|
1024
|
-
color:
|
|
1048
|
+
color: sortButtonColorMapper[variant].selected
|
|
1025
1049
|
}
|
|
1026
1050
|
),
|
|
1027
|
-
/* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1051
|
+
sortedState === "desc" && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1028
1052
|
TriangleArrowDownIcon,
|
|
1029
1053
|
{
|
|
1030
|
-
color:
|
|
1054
|
+
color: sortButtonColorMapper[variant].selected
|
|
1031
1055
|
}
|
|
1032
1056
|
)
|
|
1033
1057
|
]
|
|
@@ -1037,15 +1061,15 @@ function ExpandTable(props) {
|
|
|
1037
1061
|
}
|
|
1038
1062
|
) }, header.id);
|
|
1039
1063
|
}
|
|
1040
|
-
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)(
|
|
1041
1065
|
header.column.columnDef.header,
|
|
1042
1066
|
header.getContext()
|
|
1043
|
-
) }) }
|
|
1067
|
+
) }) }, header.id);
|
|
1044
1068
|
})
|
|
1045
1069
|
},
|
|
1046
1070
|
headerGroup.id
|
|
1047
1071
|
)) }),
|
|
1048
|
-
/* @__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) => {
|
|
1049
1073
|
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1050
1074
|
Row,
|
|
1051
1075
|
{
|
|
@@ -1061,7 +1085,7 @@ function ExpandTable(props) {
|
|
|
1061
1085
|
);
|
|
1062
1086
|
}) })
|
|
1063
1087
|
] }),
|
|
1064
|
-
showPagination ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes.Flex, { justify: "end", pt: "
|
|
1088
|
+
showPagination ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_themes.Flex, { justify: "end", pt: "4", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
|
|
1065
1089
|
Pagination,
|
|
1066
1090
|
{
|
|
1067
1091
|
count: pageCount,
|
|
@@ -1075,7 +1099,7 @@ function ExpandTable(props) {
|
|
|
1075
1099
|
|
|
1076
1100
|
// src/atoms/button.tsx
|
|
1077
1101
|
var import_react7 = require("react");
|
|
1078
|
-
var
|
|
1102
|
+
var import_themes6 = require("@radix-ui/themes");
|
|
1079
1103
|
var import_clsx2 = require("clsx");
|
|
1080
1104
|
|
|
1081
1105
|
// src/utils/convert-button-size.ts
|
|
@@ -1125,7 +1149,7 @@ var Button = (0, import_react7.forwardRef)(
|
|
|
1125
1149
|
return (0, import_clsx2.clsx)(props.className, { transparent: variant === "transparent" });
|
|
1126
1150
|
}, [props.className, variant]);
|
|
1127
1151
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
1128
|
-
|
|
1152
|
+
import_themes6.Button,
|
|
1129
1153
|
__spreadProps(__spreadValues({
|
|
1130
1154
|
style,
|
|
1131
1155
|
type: "button",
|
|
@@ -1195,15 +1219,15 @@ var import_react_datepicker = __toESM(require("react-datepicker"), 1);
|
|
|
1195
1219
|
var import_locale = require("date-fns/locale");
|
|
1196
1220
|
|
|
1197
1221
|
// src/atoms/box.tsx
|
|
1198
|
-
var
|
|
1222
|
+
var import_themes7 = require("@radix-ui/themes");
|
|
1199
1223
|
|
|
1200
1224
|
// src/atoms/popover.tsx
|
|
1201
|
-
var
|
|
1225
|
+
var import_themes8 = require("@radix-ui/themes");
|
|
1202
1226
|
|
|
1203
1227
|
// src/atoms/heading.tsx
|
|
1204
|
-
var import_themes8 = require("@radix-ui/themes");
|
|
1205
|
-
var import_react8 = require("react");
|
|
1206
1228
|
var import_themes9 = require("@radix-ui/themes");
|
|
1229
|
+
var import_react8 = require("react");
|
|
1230
|
+
var import_themes10 = require("@radix-ui/themes");
|
|
1207
1231
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1208
1232
|
var mapVariant = (variant) => {
|
|
1209
1233
|
switch (variant) {
|
|
@@ -1229,7 +1253,7 @@ function Heading2(props) {
|
|
|
1229
1253
|
mapFn: mapVariant
|
|
1230
1254
|
}) : size;
|
|
1231
1255
|
}, [size, variant]);
|
|
1232
|
-
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1256
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_themes9.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
1233
1257
|
}
|
|
1234
1258
|
|
|
1235
1259
|
// src/molecules/date-picker/index.tsx
|
|
@@ -1312,13 +1336,13 @@ function DropdownSelector({
|
|
|
1312
1336
|
});
|
|
1313
1337
|
}
|
|
1314
1338
|
}, [isOpen]);
|
|
1315
|
-
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
|
|
1316
|
-
/* @__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: [
|
|
1317
1341
|
selectedValue,
|
|
1318
1342
|
suffix
|
|
1319
1343
|
] }) }) }),
|
|
1320
|
-
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1321
|
-
|
|
1344
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_themes8.Popover.Content, { side: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1345
|
+
import_themes7.Box,
|
|
1322
1346
|
{
|
|
1323
1347
|
maxHeight: "200px",
|
|
1324
1348
|
overflowY: "auto",
|
|
@@ -1478,10 +1502,10 @@ function DotNavigation(props) {
|
|
|
1478
1502
|
|
|
1479
1503
|
// src/molecules/stepper.tsx
|
|
1480
1504
|
var import_react12 = require("react");
|
|
1481
|
-
var
|
|
1505
|
+
var import_themes12 = require("@radix-ui/themes");
|
|
1482
1506
|
|
|
1483
1507
|
// src/atoms/avatar.tsx
|
|
1484
|
-
var
|
|
1508
|
+
var import_themes11 = require("@radix-ui/themes");
|
|
1485
1509
|
var import_react11 = require("react");
|
|
1486
1510
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1487
1511
|
var Avatar = (0, import_react11.forwardRef)(
|
|
@@ -1514,7 +1538,7 @@ var Avatar = (0, import_react11.forwardRef)(
|
|
|
1514
1538
|
return map;
|
|
1515
1539
|
}
|
|
1516
1540
|
}, [getOriginalSize, size]);
|
|
1517
|
-
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 }));
|
|
1518
1542
|
}
|
|
1519
1543
|
);
|
|
1520
1544
|
Avatar.displayName = "Avatar";
|
|
@@ -1570,7 +1594,7 @@ function Step(props) {
|
|
|
1570
1594
|
direction = "vertical"
|
|
1571
1595
|
} = (0, import_react12.useContext)(StepContext);
|
|
1572
1596
|
const connector = index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1573
|
-
|
|
1597
|
+
import_themes12.Separator,
|
|
1574
1598
|
{
|
|
1575
1599
|
style: {
|
|
1576
1600
|
width: `calc(100% - 40px)`,
|
|
@@ -1674,7 +1698,7 @@ var import_react15 = require("react");
|
|
|
1674
1698
|
var import_react_icons3 = require("@radix-ui/react-icons");
|
|
1675
1699
|
|
|
1676
1700
|
// src/atoms/auto-sizing-input.tsx
|
|
1677
|
-
var
|
|
1701
|
+
var import_themes13 = require("@radix-ui/themes");
|
|
1678
1702
|
var import_react13 = require("react");
|
|
1679
1703
|
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1680
1704
|
var useTextWidth = (text, font) => {
|
|
@@ -1777,7 +1801,7 @@ var AutoSizingInput = (0, import_react13.forwardRef)(
|
|
|
1777
1801
|
}
|
|
1778
1802
|
}, [inputRef]);
|
|
1779
1803
|
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1780
|
-
|
|
1804
|
+
import_themes13.Box,
|
|
1781
1805
|
{
|
|
1782
1806
|
className: "auto-sizing-input wrapper",
|
|
1783
1807
|
maxWidth,
|
|
@@ -1792,7 +1816,7 @@ var AutoSizingInput = (0, import_react13.forwardRef)(
|
|
|
1792
1816
|
AutoSizingInput.displayName = "AutoSizingInput";
|
|
1793
1817
|
|
|
1794
1818
|
// src/atoms/badge.tsx
|
|
1795
|
-
var
|
|
1819
|
+
var import_themes14 = require("@radix-ui/themes");
|
|
1796
1820
|
var import_react14 = require("react");
|
|
1797
1821
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1798
1822
|
var Badge = (0, import_react14.forwardRef)(
|
|
@@ -1823,16 +1847,16 @@ var Badge = (0, import_react14.forwardRef)(
|
|
|
1823
1847
|
return void 0;
|
|
1824
1848
|
}
|
|
1825
1849
|
}, [color]);
|
|
1826
|
-
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 }));
|
|
1827
1851
|
}
|
|
1828
1852
|
);
|
|
1829
1853
|
Badge.displayName = "Badge";
|
|
1830
1854
|
|
|
1831
1855
|
// src/atoms/scroll-area.tsx
|
|
1832
|
-
var
|
|
1856
|
+
var import_themes15 = require("@radix-ui/themes");
|
|
1833
1857
|
|
|
1834
1858
|
// src/atoms/grid.tsx
|
|
1835
|
-
var
|
|
1859
|
+
var import_themes16 = require("@radix-ui/themes");
|
|
1836
1860
|
|
|
1837
1861
|
// src/molecules/tag-selector.tsx
|
|
1838
1862
|
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
@@ -2072,9 +2096,9 @@ function TagSelector(props) {
|
|
|
2072
2096
|
),
|
|
2073
2097
|
focus ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_icons3.MagnifyingGlassIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_icons3.ChevronRightIcon, {})
|
|
2074
2098
|
] });
|
|
2075
|
-
return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
|
|
2076
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2077
|
-
|
|
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,
|
|
2078
2102
|
{
|
|
2079
2103
|
align: "center",
|
|
2080
2104
|
className: `tag-selector ${size} ${focusClassName}${readOnlyClassName}${errorClassName}`,
|
|
@@ -2088,7 +2112,7 @@ function TagSelector(props) {
|
|
|
2088
2112
|
}
|
|
2089
2113
|
) }),
|
|
2090
2114
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2091
|
-
|
|
2115
|
+
import_themes8.Popover.Content,
|
|
2092
2116
|
{
|
|
2093
2117
|
onOpenAutoFocus: preventDefault,
|
|
2094
2118
|
onTouchMove: stopPropagationTouch,
|
|
@@ -2103,7 +2127,7 @@ function TagSelector(props) {
|
|
|
2103
2127
|
currentItem: filteredOptions[focusIndex || 0],
|
|
2104
2128
|
items: filteredOptions,
|
|
2105
2129
|
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
2106
|
-
|
|
2130
|
+
import_themes15.ScrollArea,
|
|
2107
2131
|
{
|
|
2108
2132
|
ref: scrollRef,
|
|
2109
2133
|
scrollbars: "vertical",
|
|
@@ -2154,14 +2178,14 @@ var preventDefault = (e) => {
|
|
|
2154
2178
|
};
|
|
2155
2179
|
|
|
2156
2180
|
// src/theme/theme-provider.tsx
|
|
2157
|
-
var
|
|
2181
|
+
var import_themes17 = require("@radix-ui/themes");
|
|
2158
2182
|
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
2159
2183
|
function ThemeProvider(props) {
|
|
2160
|
-
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
2184
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_themes17.Theme, __spreadValues({ accentColor: "iris", radius: "medium" }, props));
|
|
2161
2185
|
}
|
|
2162
2186
|
|
|
2163
2187
|
// src/atoms/aspect-ratio.tsx
|
|
2164
|
-
var
|
|
2188
|
+
var import_themes18 = require("@radix-ui/themes");
|
|
2165
2189
|
|
|
2166
2190
|
// src/molecules/learning-post.tsx
|
|
2167
2191
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
@@ -2183,7 +2207,7 @@ function LearningPost(props) {
|
|
|
2183
2207
|
scaling: "110%",
|
|
2184
2208
|
style: {},
|
|
2185
2209
|
children: html ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2186
|
-
|
|
2210
|
+
import_themes16.Grid,
|
|
2187
2211
|
{
|
|
2188
2212
|
columns: { initial: "1", md: "130px 1fr 130px" },
|
|
2189
2213
|
gap: { initial: "2", md: "5" },
|
|
@@ -2205,9 +2229,9 @@ function LearningPost(props) {
|
|
|
2205
2229
|
overflow: "hidden",
|
|
2206
2230
|
width: "100%",
|
|
2207
2231
|
children: [
|
|
2208
|
-
/* @__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: [
|
|
2209
2233
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2210
|
-
|
|
2234
|
+
import_themes16.Grid,
|
|
2211
2235
|
{
|
|
2212
2236
|
gap: "3",
|
|
2213
2237
|
mb: { initial: "4", sm: "0" },
|
|
@@ -2235,7 +2259,7 @@ function LearningPost(props) {
|
|
|
2235
2259
|
}
|
|
2236
2260
|
),
|
|
2237
2261
|
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2238
|
-
|
|
2262
|
+
import_themes18.AspectRatio,
|
|
2239
2263
|
{
|
|
2240
2264
|
ratio: 5 / 3,
|
|
2241
2265
|
style: {
|
|
@@ -2247,7 +2271,7 @@ function LearningPost(props) {
|
|
|
2247
2271
|
}
|
|
2248
2272
|
)
|
|
2249
2273
|
] }),
|
|
2250
|
-
/* @__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)(
|
|
2251
2275
|
"div",
|
|
2252
2276
|
{
|
|
2253
2277
|
className: "gh-content",
|
|
@@ -2294,16 +2318,16 @@ function LearningPost(props) {
|
|
|
2294
2318
|
var import_react_icons4 = require("@radix-ui/react-icons");
|
|
2295
2319
|
|
|
2296
2320
|
// src/atoms/code.tsx
|
|
2297
|
-
var
|
|
2321
|
+
var import_themes19 = require("@radix-ui/themes");
|
|
2298
2322
|
|
|
2299
2323
|
// src/atoms/kbd.tsx
|
|
2300
|
-
var
|
|
2324
|
+
var import_themes20 = require("@radix-ui/themes");
|
|
2301
2325
|
|
|
2302
2326
|
// src/molecules/force-refresh.tsx
|
|
2303
2327
|
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2304
2328
|
function CodeSize3(props) {
|
|
2305
2329
|
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2306
|
-
|
|
2330
|
+
import_themes19.Code,
|
|
2307
2331
|
{
|
|
2308
2332
|
style: {
|
|
2309
2333
|
display: "inline-flex",
|
|
@@ -2337,15 +2361,15 @@ function ForceRefresh() {
|
|
|
2337
2361
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_themes.Flex, { direction: "column", gap: "3", p: "0", pl: "3", children: [
|
|
2338
2362
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Typo, { children: [
|
|
2339
2363
|
"a. \uC708\uB3C4\uC6B0 \uB2E8\uCD95\uD0A4: ",
|
|
2340
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2364
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_themes20.Kbd, { children: "F12" })
|
|
2341
2365
|
] }),
|
|
2342
2366
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Typo, { children: [
|
|
2343
2367
|
"b. \uB9E5 \uB2E8\uCD95\uD0A4: ",
|
|
2344
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2368
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_themes20.Kbd, { children: "Option" }),
|
|
2345
2369
|
" + ",
|
|
2346
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2370
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_themes20.Kbd, { children: "Command" }),
|
|
2347
2371
|
" + ",
|
|
2348
|
-
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
|
|
2372
|
+
/* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_themes20.Kbd, { children: "I" })
|
|
2349
2373
|
] })
|
|
2350
2374
|
] }),
|
|
2351
2375
|
/* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(Typo, { children: [
|
|
@@ -2371,7 +2395,7 @@ var import_date_fns = require("date-fns");
|
|
|
2371
2395
|
var import_clsx3 = require("clsx");
|
|
2372
2396
|
|
|
2373
2397
|
// src/atoms/text-field.tsx
|
|
2374
|
-
var
|
|
2398
|
+
var import_themes21 = require("@radix-ui/themes");
|
|
2375
2399
|
var import_react16 = require("react");
|
|
2376
2400
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2377
2401
|
var Root2 = (0, import_react16.forwardRef)((props, ref) => {
|
|
@@ -2385,7 +2409,7 @@ var Root2 = (0, import_react16.forwardRef)((props, ref) => {
|
|
|
2385
2409
|
}, [error, style]);
|
|
2386
2410
|
const classNameStr = error ? `error ${className}` : className;
|
|
2387
2411
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2388
|
-
|
|
2412
|
+
import_themes21.TextField.Root,
|
|
2389
2413
|
__spreadValues({
|
|
2390
2414
|
className: classNameStr,
|
|
2391
2415
|
ref,
|
|
@@ -2394,7 +2418,7 @@ var Root2 = (0, import_react16.forwardRef)((props, ref) => {
|
|
|
2394
2418
|
);
|
|
2395
2419
|
});
|
|
2396
2420
|
Root2.displayName = "TextField.Root";
|
|
2397
|
-
var TextField = { Root: Root2, Slot:
|
|
2421
|
+
var TextField = { Root: Root2, Slot: import_themes21.TextField.Slot };
|
|
2398
2422
|
|
|
2399
2423
|
// src/molecules/date-picker/date-picker-button.tsx
|
|
2400
2424
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
@@ -2421,7 +2445,7 @@ function DatePickerButton(props) {
|
|
|
2421
2445
|
const placeholderVisible = (0, import_react17.useMemo)(() => {
|
|
2422
2446
|
return rest.selected ? "" : "placeholder-visible";
|
|
2423
2447
|
}, [rest.selected]);
|
|
2424
|
-
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)(
|
|
2425
2449
|
DatePicker,
|
|
2426
2450
|
__spreadProps(__spreadValues({
|
|
2427
2451
|
customInput: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button, __spreadProps(__spreadValues({ asChild: true, className, type: "button" }, buttonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
|
|
@@ -2448,7 +2472,7 @@ var import_react19 = require("react");
|
|
|
2448
2472
|
var import_date_fns2 = require("date-fns");
|
|
2449
2473
|
|
|
2450
2474
|
// src/atoms/select.tsx
|
|
2451
|
-
var
|
|
2475
|
+
var import_themes22 = require("@radix-ui/themes");
|
|
2452
2476
|
var import_react18 = require("react");
|
|
2453
2477
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2454
2478
|
var SelectContext = (0, import_react18.createContext)({
|
|
@@ -2463,7 +2487,7 @@ var Content = (0, import_react18.forwardRef)((props, ref) => {
|
|
|
2463
2487
|
return [etc, errorCls, className].join(" ");
|
|
2464
2488
|
}, [className, error, isNavigation]);
|
|
2465
2489
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2466
|
-
|
|
2490
|
+
import_themes22.Select.Content,
|
|
2467
2491
|
__spreadProps(__spreadValues({
|
|
2468
2492
|
position: "popper"
|
|
2469
2493
|
}, rest), {
|
|
@@ -2481,16 +2505,16 @@ var Trigger = (0, import_react18.forwardRef)(
|
|
|
2481
2505
|
const errorCls = error ? "error" : "";
|
|
2482
2506
|
return [errorCls, className].join(" ");
|
|
2483
2507
|
}, [className, error]);
|
|
2484
|
-
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 }));
|
|
2485
2509
|
}
|
|
2486
2510
|
);
|
|
2487
2511
|
Trigger.displayName = "Select.Trigger";
|
|
2488
2512
|
function Root3(props) {
|
|
2489
2513
|
const _a = props, { error } = _a, rest = __objRest(_a, ["error"]);
|
|
2490
|
-
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)) });
|
|
2491
2515
|
}
|
|
2492
2516
|
Root3.displayName = "Select.Root";
|
|
2493
|
-
var Select = __spreadProps(__spreadValues({},
|
|
2517
|
+
var Select = __spreadProps(__spreadValues({}, import_themes22.Select), {
|
|
2494
2518
|
Root: Root3,
|
|
2495
2519
|
Trigger,
|
|
2496
2520
|
Content
|
|
@@ -2550,10 +2574,10 @@ function TimeSelect(_a) {
|
|
|
2550
2574
|
var import_react20 = require("react");
|
|
2551
2575
|
|
|
2552
2576
|
// src/atoms/radio-cards.tsx
|
|
2553
|
-
var
|
|
2577
|
+
var import_themes23 = require("@radix-ui/themes");
|
|
2554
2578
|
|
|
2555
2579
|
// src/atoms/radio.tsx
|
|
2556
|
-
var
|
|
2580
|
+
var import_themes24 = require("@radix-ui/themes");
|
|
2557
2581
|
|
|
2558
2582
|
// src/molecules/radio-button-card.tsx
|
|
2559
2583
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
@@ -2568,7 +2592,7 @@ function Root4(props) {
|
|
|
2568
2592
|
},
|
|
2569
2593
|
[props]
|
|
2570
2594
|
);
|
|
2571
|
-
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 })) });
|
|
2572
2596
|
}
|
|
2573
2597
|
function Item(_a) {
|
|
2574
2598
|
var _b = _a, {
|
|
@@ -2585,10 +2609,10 @@ function Item(_a) {
|
|
|
2585
2609
|
"justify",
|
|
2586
2610
|
"RadioWrapper"
|
|
2587
2611
|
]);
|
|
2588
|
-
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: [
|
|
2589
2613
|
children,
|
|
2590
2614
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)(RadioWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2591
|
-
|
|
2615
|
+
import_themes24.Radio,
|
|
2592
2616
|
{
|
|
2593
2617
|
checked: itemRest.value === value,
|
|
2594
2618
|
disabled: rootRest.disabled,
|
|
@@ -2606,9 +2630,9 @@ var RadioButtonCard = {
|
|
|
2606
2630
|
var import_react_icons5 = require("@radix-ui/react-icons");
|
|
2607
2631
|
|
|
2608
2632
|
// src/atoms/link.tsx
|
|
2609
|
-
var import_themes24 = require("@radix-ui/themes");
|
|
2610
|
-
var import_react21 = require("react");
|
|
2611
2633
|
var import_themes25 = require("@radix-ui/themes");
|
|
2634
|
+
var import_react21 = require("react");
|
|
2635
|
+
var import_themes26 = require("@radix-ui/themes");
|
|
2612
2636
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2613
2637
|
function Link(props) {
|
|
2614
2638
|
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
@@ -2624,7 +2648,7 @@ function Link(props) {
|
|
|
2624
2648
|
return size;
|
|
2625
2649
|
}
|
|
2626
2650
|
}, [size, variant]);
|
|
2627
|
-
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
2651
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes25.Link, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
2628
2652
|
}
|
|
2629
2653
|
|
|
2630
2654
|
// src/molecules/download-card.tsx
|
|
@@ -2672,7 +2696,7 @@ function GhostPost(props) {
|
|
|
2672
2696
|
accentColor: "iris",
|
|
2673
2697
|
scaling: "110%",
|
|
2674
2698
|
style: {},
|
|
2675
|
-
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)(
|
|
2676
2700
|
"div",
|
|
2677
2701
|
{
|
|
2678
2702
|
className: "gh-content",
|
|
@@ -2864,7 +2888,7 @@ function CurriculumSubNav() {
|
|
|
2864
2888
|
});
|
|
2865
2889
|
}, [selectNext, scrollNavItem]);
|
|
2866
2890
|
return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2867
|
-
|
|
2891
|
+
import_themes16.Grid,
|
|
2868
2892
|
{
|
|
2869
2893
|
align: "center",
|
|
2870
2894
|
columns: { initial: "32px 1fr 32px", md: "48px 1fr 48px" },
|
|
@@ -2882,10 +2906,10 @@ function CurriculumSubNav() {
|
|
|
2882
2906
|
variant: "ghost",
|
|
2883
2907
|
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react_icons.ChevronLeftIcon, { height: "16px", width: "16px" })
|
|
2884
2908
|
}
|
|
2885
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2886
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2887
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2888
|
-
/* @__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 }) }),
|
|
2889
2913
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2890
2914
|
Typo,
|
|
2891
2915
|
{
|
|
@@ -2907,7 +2931,7 @@ function CurriculumSubNav() {
|
|
|
2907
2931
|
variant: "ghost",
|
|
2908
2932
|
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_react_icons.ChevronRightIcon, { height: "16px", width: "16px" })
|
|
2909
2933
|
}
|
|
2910
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2934
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes7.Box, {})
|
|
2911
2935
|
]
|
|
2912
2936
|
}
|
|
2913
2937
|
);
|
|
@@ -2978,7 +3002,7 @@ var import_react_icons7 = require("@radix-ui/react-icons");
|
|
|
2978
3002
|
// src/atoms/dialog.tsx
|
|
2979
3003
|
var RadixDialog = __toESM(require("@radix-ui/react-dialog"), 1);
|
|
2980
3004
|
var import_react_icons6 = require("@radix-ui/react-icons");
|
|
2981
|
-
var
|
|
3005
|
+
var import_themes27 = require("@radix-ui/themes");
|
|
2982
3006
|
var import_react26 = require("react");
|
|
2983
3007
|
|
|
2984
3008
|
// src/theme/portal-provider.tsx
|
|
@@ -3032,7 +3056,7 @@ function Content3(props) {
|
|
|
3032
3056
|
"className"
|
|
3033
3057
|
]);
|
|
3034
3058
|
const { dialogContainerRef } = usePortalContainer();
|
|
3035
|
-
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)(
|
|
3036
3060
|
RadixDialog.Content,
|
|
3037
3061
|
__spreadProps(__spreadValues({
|
|
3038
3062
|
className: `DialogContent ${className || ""} rt-BaseDialogContent rt-DialogContent rt-r-size-${size || "3"}`,
|
|
@@ -3047,12 +3071,12 @@ function Content3(props) {
|
|
|
3047
3071
|
}, style)
|
|
3048
3072
|
}, rest), {
|
|
3049
3073
|
children: [
|
|
3050
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
3074
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_themes27.Flex, { gap: "2", justify: "between", width: "100%", children: [
|
|
3051
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 }),
|
|
3052
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, {}) }) })
|
|
3053
3077
|
] }),
|
|
3054
3078
|
children,
|
|
3055
|
-
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
|
|
3056
3080
|
]
|
|
3057
3081
|
})
|
|
3058
3082
|
) }) }) });
|
|
@@ -3281,7 +3305,7 @@ function useCurriculumReviewContext() {
|
|
|
3281
3305
|
}
|
|
3282
3306
|
|
|
3283
3307
|
// src/atoms/separator.tsx
|
|
3284
|
-
var
|
|
3308
|
+
var import_themes28 = require("@radix-ui/themes");
|
|
3285
3309
|
|
|
3286
3310
|
// src/utils/curriculum.utils.ts
|
|
3287
3311
|
var CurriculumListIcons = {
|
|
@@ -3375,7 +3399,7 @@ var renderPreviewContent = (args) => {
|
|
|
3375
3399
|
].filter(Boolean).join(" | ");
|
|
3376
3400
|
};
|
|
3377
3401
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3378
|
-
|
|
3402
|
+
import_themes16.Grid,
|
|
3379
3403
|
{
|
|
3380
3404
|
columns: "16px 1fr",
|
|
3381
3405
|
gap: "2",
|
|
@@ -3383,8 +3407,8 @@ var renderPreviewContent = (args) => {
|
|
|
3383
3407
|
py: "2",
|
|
3384
3408
|
width: "100%",
|
|
3385
3409
|
children: [
|
|
3386
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3387
|
-
/* @__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: [
|
|
3388
3412
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { as: "p", color: "gray", weight: "bold", children: question.title }),
|
|
3389
3413
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { color: "gray", children: getDescription() })
|
|
3390
3414
|
] })
|
|
@@ -3410,7 +3434,7 @@ var renderReviewContent = (args) => {
|
|
|
3410
3434
|
const badgeColor = ["question_radio", "question_satisfaction_option"].includes(question.type) ? "accent" : "neutral";
|
|
3411
3435
|
const value = getReviewContentValue(question, answer);
|
|
3412
3436
|
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3413
|
-
|
|
3437
|
+
import_themes16.Grid,
|
|
3414
3438
|
{
|
|
3415
3439
|
columns: "16px 1fr",
|
|
3416
3440
|
gap: "2",
|
|
@@ -3418,8 +3442,8 @@ var renderReviewContent = (args) => {
|
|
|
3418
3442
|
py: "2",
|
|
3419
3443
|
width: "100%",
|
|
3420
3444
|
children: [
|
|
3421
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3422
|
-
/* @__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: [
|
|
3423
3447
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { as: "p", color: "gray", mb: "2", weight: "bold", children: question.title }),
|
|
3424
3448
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Badge, { color: badgeColor, size: "large", style: { whiteSpace: "break-spaces", lineBreak: "anywhere" }, children: value || "(\uBBF8 \uC751\uB2F5)" })
|
|
3425
3449
|
] })
|
|
@@ -3453,13 +3477,13 @@ function StartReview({ onStart }) {
|
|
|
3453
3477
|
children: [
|
|
3454
3478
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { color: "gray", mb: "1", children: curriculum.title }),
|
|
3455
3479
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Heading2, { variant: "heading3", children: reviewContents.title }),
|
|
3456
|
-
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
3480
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes28.Separator, { my: "4", style: { width: 100 } }),
|
|
3457
3481
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(Typo, { align: "left", as: "p", color: "gray", mb: "4", children: [
|
|
3458
3482
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { as: "span", weight: "bold", children: sectionTitle }),
|
|
3459
3483
|
" ",
|
|
3460
3484
|
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Typo, { children: reviewContents.description })
|
|
3461
3485
|
] }),
|
|
3462
|
-
/* @__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) => {
|
|
3463
3487
|
if (done) {
|
|
3464
3488
|
return renderReviewContent({ question, answer: formik.values.answers[question.uuid] });
|
|
3465
3489
|
}
|
|
@@ -3510,7 +3534,7 @@ function CompleteReview(props) {
|
|
|
3510
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.
|
|
3511
3535
|
\uC55E\uC73C\uB85C \uC788\uC744 \uB9AC\uB354\uB2D8\uC758 \uC131\uC7A5\uC744 \uAE30\uB300\uD569\uB2C8\uB2E4.` })
|
|
3512
3536
|
] }),
|
|
3513
|
-
/* @__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: [
|
|
3514
3538
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Button, { onClick: onClickReviewMyAnswer, variant: "outline", children: [
|
|
3515
3539
|
(reviewMeta == null ? void 0 : reviewMeta.endReviewBackButtonTitle) || "\uB098\uC758 \uC751\uB2F5 \uB2E4\uC2DC \uBCF4\uAE30",
|
|
3516
3540
|
/* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react_icons.ResetIcon, {})
|
|
@@ -3545,7 +3569,7 @@ function ReviewQuestionLayout({
|
|
|
3545
3569
|
Footer
|
|
3546
3570
|
}) {
|
|
3547
3571
|
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
3548
|
-
|
|
3572
|
+
import_themes16.Grid,
|
|
3549
3573
|
{
|
|
3550
3574
|
align: "center",
|
|
3551
3575
|
columns: "1fr",
|
|
@@ -3557,18 +3581,18 @@ function ReviewQuestionLayout({
|
|
|
3557
3581
|
},
|
|
3558
3582
|
width: "100%",
|
|
3559
3583
|
children: [
|
|
3560
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(AlignCenter, { pb: "3", pt: "4", px: "4", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3561
|
-
/* @__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" }),
|
|
3562
3586
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3563
3587
|
AlignCenter,
|
|
3564
3588
|
{
|
|
3565
3589
|
p: "3",
|
|
3566
3590
|
style: { backgroundColor: "var(--gray-2)", zIndex: 0 },
|
|
3567
|
-
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 })
|
|
3568
3592
|
}
|
|
3569
3593
|
),
|
|
3570
|
-
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3571
|
-
/* @__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 }) })
|
|
3572
3596
|
]
|
|
3573
3597
|
}
|
|
3574
3598
|
);
|
|
@@ -3576,7 +3600,7 @@ function ReviewQuestionLayout({
|
|
|
3576
3600
|
var review_question_layout_default = ReviewQuestionLayout;
|
|
3577
3601
|
|
|
3578
3602
|
// src/atoms/progress.tsx
|
|
3579
|
-
var
|
|
3603
|
+
var import_themes29 = require("@radix-ui/themes");
|
|
3580
3604
|
|
|
3581
3605
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.tsx
|
|
3582
3606
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
@@ -3585,8 +3609,8 @@ function ReviewQuestionHeader({
|
|
|
3585
3609
|
total
|
|
3586
3610
|
}) {
|
|
3587
3611
|
const { reviewContents } = useCurriculumReviewContext();
|
|
3588
|
-
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
3589
|
-
/* @__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)(
|
|
3590
3614
|
Heading2,
|
|
3591
3615
|
{
|
|
3592
3616
|
mb: "3",
|
|
@@ -3604,7 +3628,7 @@ function ReviewQuestionHeader({
|
|
|
3604
3628
|
" \uC644\uB8CC"
|
|
3605
3629
|
] })
|
|
3606
3630
|
] }),
|
|
3607
|
-
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3631
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_themes29.Progress, { color: "iris", max: total, value: index + 1 })
|
|
3608
3632
|
] });
|
|
3609
3633
|
}
|
|
3610
3634
|
var review_question_header_default = ReviewQuestionHeader;
|
|
@@ -3620,11 +3644,11 @@ function ReviewQuestionFooter({
|
|
|
3620
3644
|
onSubmit,
|
|
3621
3645
|
isLoading
|
|
3622
3646
|
}) {
|
|
3623
|
-
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
3647
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_themes16.Grid, { columns: "1fr 1fr", gap: "3", children: [
|
|
3624
3648
|
index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Button, { onClick: onPrev, variant: "outline", children: [
|
|
3625
3649
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_icons.ChevronLeftIcon, {}),
|
|
3626
3650
|
"\uC774\uC804\uC73C\uB85C"
|
|
3627
|
-
] }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
3651
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes7.Box, {}),
|
|
3628
3652
|
isLast ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(Button, { disabled: isNextButtonDisabled, loading: isLoading, onClick: onSubmit, children: [
|
|
3629
3653
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react_icons.PaperPlaneIcon, {}),
|
|
3630
3654
|
"\uC81C\uCD9C\uD558\uAE30"
|
|
@@ -3649,7 +3673,7 @@ var import_react29 = require("react");
|
|
|
3649
3673
|
|
|
3650
3674
|
// src/atoms/card.tsx
|
|
3651
3675
|
var import_react28 = require("react");
|
|
3652
|
-
var
|
|
3676
|
+
var import_themes30 = require("@radix-ui/themes");
|
|
3653
3677
|
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
3654
3678
|
var Card = (0, import_react28.forwardRef)(
|
|
3655
3679
|
(props, forwardedRef) => {
|
|
@@ -3668,7 +3692,7 @@ var Card = (0, import_react28.forwardRef)(
|
|
|
3668
3692
|
return error ? " error" : "";
|
|
3669
3693
|
}, [error]);
|
|
3670
3694
|
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3671
|
-
|
|
3695
|
+
import_themes30.Card,
|
|
3672
3696
|
__spreadProps(__spreadValues({
|
|
3673
3697
|
variant: "surface"
|
|
3674
3698
|
}, rest), {
|
|
@@ -3690,9 +3714,9 @@ function ReviewQuestionContentHeader({
|
|
|
3690
3714
|
icon
|
|
3691
3715
|
}) {
|
|
3692
3716
|
const Icon = getCurriculumIcon({ type, icon });
|
|
3693
|
-
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
3717
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes7.Box, { children: [
|
|
3694
3718
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes.Flex, { gap: "2", mb: "3", children: [
|
|
3695
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
3719
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes7.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
3696
3720
|
Icon,
|
|
3697
3721
|
{
|
|
3698
3722
|
color: getCurriculumQuestionIconColor(type),
|
|
@@ -3724,7 +3748,7 @@ function ReviewQuestionRadio(props) {
|
|
|
3724
3748
|
if (isWrong) return "red";
|
|
3725
3749
|
return void 0;
|
|
3726
3750
|
}, [isCorrect, isWrong]);
|
|
3727
|
-
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: [
|
|
3728
3752
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Card, { mb: "4", size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3729
3753
|
ReviewQuestionContentHeader,
|
|
3730
3754
|
{
|
|
@@ -3734,8 +3758,8 @@ function ReviewQuestionRadio(props) {
|
|
|
3734
3758
|
type: question.type
|
|
3735
3759
|
}
|
|
3736
3760
|
) }),
|
|
3737
|
-
/* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3738
|
-
/* @__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)(
|
|
3739
3763
|
RadioButtonCard.Root,
|
|
3740
3764
|
{
|
|
3741
3765
|
color: radioColor,
|
|
@@ -3760,7 +3784,7 @@ function ReviewQuestionRadio(props) {
|
|
|
3760
3784
|
{
|
|
3761
3785
|
style,
|
|
3762
3786
|
value: i.toString(),
|
|
3763
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
|
|
3787
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(import_themes7.Box, { children: [
|
|
3764
3788
|
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Typo, { as: "p", children: option.label }),
|
|
3765
3789
|
isThisOptionCorrect ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Typo, { color: "green", children: "\uC815\uB2F5\uC785\uB2C8\uB2E4" }) : null,
|
|
3766
3790
|
isThisOptionWrong ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Typo, { color: "red", children: "\uC815\uB2F5\uC774 \uC544\uB2D9\uB2C8\uB2E4" }) : null
|
|
@@ -3778,7 +3802,7 @@ function ReviewQuestionRadio(props) {
|
|
|
3778
3802
|
var review_question_radio_default = ReviewQuestionRadio;
|
|
3779
3803
|
|
|
3780
3804
|
// src/atoms/text-area.tsx
|
|
3781
|
-
var
|
|
3805
|
+
var import_themes31 = require("@radix-ui/themes");
|
|
3782
3806
|
var import_react30 = require("react");
|
|
3783
3807
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
3784
3808
|
var TextArea = (0, import_react30.forwardRef)(
|
|
@@ -3793,7 +3817,7 @@ var TextArea = (0, import_react30.forwardRef)(
|
|
|
3793
3817
|
}, [error, style]);
|
|
3794
3818
|
const classNameStr = error ? `error ${className}` : className;
|
|
3795
3819
|
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
3796
|
-
|
|
3820
|
+
import_themes31.TextArea,
|
|
3797
3821
|
__spreadProps(__spreadValues({}, rest), {
|
|
3798
3822
|
className: classNameStr,
|
|
3799
3823
|
ref,
|
|
@@ -3805,7 +3829,7 @@ var TextArea = (0, import_react30.forwardRef)(
|
|
|
3805
3829
|
TextArea.displayName = "TextArea";
|
|
3806
3830
|
|
|
3807
3831
|
// src/atoms/call-out.tsx
|
|
3808
|
-
var
|
|
3832
|
+
var import_themes32 = require("@radix-ui/themes");
|
|
3809
3833
|
|
|
3810
3834
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.tsx
|
|
3811
3835
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
@@ -3821,8 +3845,8 @@ function ReviewQuestionText(props) {
|
|
|
3821
3845
|
width: "100%",
|
|
3822
3846
|
height: "100%"
|
|
3823
3847
|
},
|
|
3824
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3825
|
-
/* @__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: [
|
|
3826
3850
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3827
3851
|
ReviewQuestionContentHeader,
|
|
3828
3852
|
{
|
|
@@ -3844,17 +3868,17 @@ function ReviewQuestionText(props) {
|
|
|
3844
3868
|
}
|
|
3845
3869
|
)
|
|
3846
3870
|
] }),
|
|
3847
|
-
minLengthNotMet ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3871
|
+
minLengthNotMet ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes7.Box, { mt: "2", children: [
|
|
3848
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.` }),
|
|
3849
3873
|
question.minLengthInfoMessage ? /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
3850
|
-
|
|
3874
|
+
import_themes32.Callout.Root,
|
|
3851
3875
|
{
|
|
3852
3876
|
color: "iris",
|
|
3853
3877
|
mt: "2",
|
|
3854
3878
|
style: { alignItems: "center" },
|
|
3855
3879
|
children: [
|
|
3856
|
-
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3857
|
-
/* @__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 }) })
|
|
3858
3882
|
]
|
|
3859
3883
|
}
|
|
3860
3884
|
) : null
|
|
@@ -3866,7 +3890,7 @@ function ReviewQuestionText(props) {
|
|
|
3866
3890
|
var review_question_text_default = ReviewQuestionText;
|
|
3867
3891
|
|
|
3868
3892
|
// src/atoms/radio-group.tsx
|
|
3869
|
-
var
|
|
3893
|
+
var import_themes33 = require("@radix-ui/themes");
|
|
3870
3894
|
|
|
3871
3895
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.tsx
|
|
3872
3896
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
@@ -3883,7 +3907,7 @@ function ReviewQuestionSatisfisRadio(props) {
|
|
|
3883
3907
|
type: question.type
|
|
3884
3908
|
}
|
|
3885
3909
|
) }),
|
|
3886
|
-
/* @__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)) }) })
|
|
3887
3911
|
] });
|
|
3888
3912
|
}
|
|
3889
3913
|
var review_question_satisfaction_option_default = ReviewQuestionSatisfisRadio;
|
|
@@ -3893,7 +3917,7 @@ var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
|
3893
3917
|
function ReviewQuestionSatisfisText(props) {
|
|
3894
3918
|
var _a, _b;
|
|
3895
3919
|
const { question, answer, onChange } = props;
|
|
3896
|
-
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: [
|
|
3897
3921
|
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
3898
3922
|
ReviewQuestionContentHeader,
|
|
3899
3923
|
{
|
|
@@ -4219,15 +4243,15 @@ function CurriculumReview(props) {
|
|
|
4219
4243
|
title: sectionTitle
|
|
4220
4244
|
}
|
|
4221
4245
|
),
|
|
4222
|
-
/* @__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)(
|
|
4223
4247
|
IconButton,
|
|
4224
4248
|
{
|
|
4225
4249
|
color: "gray",
|
|
4226
4250
|
onClick: onClickCloseDrawer,
|
|
4227
4251
|
variant: "ghost",
|
|
4228
4252
|
children: [
|
|
4229
|
-
/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4230
|
-
/* @__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 }) })
|
|
4231
4255
|
]
|
|
4232
4256
|
}
|
|
4233
4257
|
) }),
|
|
@@ -4340,13 +4364,13 @@ function CurriculumBody() {
|
|
|
4340
4364
|
}
|
|
4341
4365
|
|
|
4342
4366
|
// src/atoms/tabs.tsx
|
|
4343
|
-
var
|
|
4367
|
+
var import_themes34 = require("@radix-ui/themes");
|
|
4344
4368
|
|
|
4345
4369
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/section-title.tsx
|
|
4346
4370
|
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
4347
4371
|
function SectionTitle(props) {
|
|
4348
4372
|
const { title, duration } = props;
|
|
4349
|
-
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: [
|
|
4350
4374
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Typo, { color: "gray", children: title }),
|
|
4351
4375
|
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
4352
4376
|
duration,
|
|
@@ -4365,7 +4389,7 @@ function CurriculumSidebarItemWrapper({
|
|
|
4365
4389
|
index
|
|
4366
4390
|
}) {
|
|
4367
4391
|
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
4368
|
-
|
|
4392
|
+
import_themes16.Grid,
|
|
4369
4393
|
{
|
|
4370
4394
|
align: "center",
|
|
4371
4395
|
columns: "auto 1fr",
|
|
@@ -4381,7 +4405,7 @@ function CurriculumSidebarItemWrapper({
|
|
|
4381
4405
|
},
|
|
4382
4406
|
children: [
|
|
4383
4407
|
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4384
|
-
|
|
4408
|
+
import_themes28.Separator,
|
|
4385
4409
|
{
|
|
4386
4410
|
color: "yellow",
|
|
4387
4411
|
orientation: "vertical",
|
|
@@ -4471,10 +4495,10 @@ var TAB_LIST = [
|
|
|
4471
4495
|
function CurriculumSidebar() {
|
|
4472
4496
|
const { curriculum, selectedIndex, setSelectedIndex, scrollAreaRef, curriculumCompleteMap } = useCurriculumContext();
|
|
4473
4497
|
const list = curriculum.contents.list;
|
|
4474
|
-
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4475
|
-
/* @__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)) }),
|
|
4476
4500
|
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4477
|
-
|
|
4501
|
+
import_themes7.Box,
|
|
4478
4502
|
{
|
|
4479
4503
|
height: "100%",
|
|
4480
4504
|
overflowY: "auto",
|
|
@@ -4482,7 +4506,7 @@ function CurriculumSidebar() {
|
|
|
4482
4506
|
ref: scrollAreaRef,
|
|
4483
4507
|
width: "100%",
|
|
4484
4508
|
children: /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(
|
|
4485
|
-
|
|
4509
|
+
import_themes34.Tabs.Content,
|
|
4486
4510
|
{
|
|
4487
4511
|
style: {
|
|
4488
4512
|
position: "absolute",
|
|
@@ -4492,7 +4516,7 @@ function CurriculumSidebar() {
|
|
|
4492
4516
|
value: TAB_LIST[0].value,
|
|
4493
4517
|
children: [
|
|
4494
4518
|
list.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime70.jsx)(sidebar_item_default, { done: curriculumCompleteMap[item.uuid], index, item, selectedIndex, setSelectedIndex }, item.uuid)),
|
|
4495
|
-
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(
|
|
4519
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(import_themes7.Box, { height: "150px" })
|
|
4496
4520
|
]
|
|
4497
4521
|
}
|
|
4498
4522
|
)
|
|
@@ -4505,7 +4529,7 @@ function CurriculumSidebar() {
|
|
|
4505
4529
|
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
4506
4530
|
function CurriculumV2Layout(props) {
|
|
4507
4531
|
const { NavBar, Contents, SideBar, SideNav, style } = props;
|
|
4508
|
-
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: [
|
|
4509
4533
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4510
4534
|
import_themes.Flex,
|
|
4511
4535
|
{
|
|
@@ -4515,7 +4539,7 @@ function CurriculumV2Layout(props) {
|
|
|
4515
4539
|
children: NavBar
|
|
4516
4540
|
}
|
|
4517
4541
|
),
|
|
4518
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4542
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(import_themes28.Separator, { size: "4" }),
|
|
4519
4543
|
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(
|
|
4520
4544
|
import_themes.Flex,
|
|
4521
4545
|
{
|
|
@@ -4525,7 +4549,7 @@ function CurriculumV2Layout(props) {
|
|
|
4525
4549
|
overflow: "hidden",
|
|
4526
4550
|
width: "100%",
|
|
4527
4551
|
children: /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
4528
|
-
|
|
4552
|
+
import_themes16.Grid,
|
|
4529
4553
|
{
|
|
4530
4554
|
columns: { initial: "1", md: "1fr 340px" },
|
|
4531
4555
|
height: "100%",
|
|
@@ -4533,8 +4557,8 @@ function CurriculumV2Layout(props) {
|
|
|
4533
4557
|
rows: { initial: "auto 1fr", md: "auto" },
|
|
4534
4558
|
width: "100%",
|
|
4535
4559
|
children: [
|
|
4536
|
-
/* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(
|
|
4537
|
-
/* @__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 }),
|
|
4538
4562
|
SideNav
|
|
4539
4563
|
] }),
|
|
4540
4564
|
SideBar
|
|
@@ -4550,7 +4574,7 @@ function CurriculumV2Layout(props) {
|
|
|
4550
4574
|
var import_react37 = require("react");
|
|
4551
4575
|
var import_formik2 = require("formik");
|
|
4552
4576
|
var Yup2 = __toESM(require("yup"), 1);
|
|
4553
|
-
var
|
|
4577
|
+
var import_themes37 = require("@radix-ui/themes");
|
|
4554
4578
|
|
|
4555
4579
|
// src/context/dynamic-form-context.tsx
|
|
4556
4580
|
var import_react34 = require("react");
|
|
@@ -4721,7 +4745,7 @@ function useDynamicForm() {
|
|
|
4721
4745
|
}
|
|
4722
4746
|
|
|
4723
4747
|
// src/atoms/check-box-group.tsx
|
|
4724
|
-
var
|
|
4748
|
+
var import_themes35 = require("@radix-ui/themes");
|
|
4725
4749
|
var import_react35 = require("react");
|
|
4726
4750
|
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4727
4751
|
var Root9 = (0, import_react35.forwardRef)((props, ref) => {
|
|
@@ -4737,16 +4761,16 @@ var Root9 = (0, import_react35.forwardRef)((props, ref) => {
|
|
|
4737
4761
|
return "2";
|
|
4738
4762
|
}
|
|
4739
4763
|
}, [size]);
|
|
4740
|
-
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 }));
|
|
4741
4765
|
});
|
|
4742
4766
|
Root9.displayName = "CheckboxGroup.Root";
|
|
4743
4767
|
var CheckboxGroup = {
|
|
4744
4768
|
Root: Root9,
|
|
4745
|
-
Item:
|
|
4769
|
+
Item: import_themes35.CheckboxGroup.Item
|
|
4746
4770
|
};
|
|
4747
4771
|
|
|
4748
4772
|
// src/atoms/check-box.tsx
|
|
4749
|
-
var
|
|
4773
|
+
var import_themes36 = require("@radix-ui/themes");
|
|
4750
4774
|
var import_react36 = require("react");
|
|
4751
4775
|
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
4752
4776
|
var Checkbox = (0, import_react36.forwardRef)(
|
|
@@ -4762,7 +4786,7 @@ var Checkbox = (0, import_react36.forwardRef)(
|
|
|
4762
4786
|
return "3";
|
|
4763
4787
|
}
|
|
4764
4788
|
}, [size]);
|
|
4765
|
-
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4789
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(import_themes36.Checkbox, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize }));
|
|
4766
4790
|
}
|
|
4767
4791
|
);
|
|
4768
4792
|
Checkbox.displayName = "Checkbox";
|
|
@@ -4833,7 +4857,7 @@ function DynamicFormField({
|
|
|
4833
4857
|
);
|
|
4834
4858
|
case "choice":
|
|
4835
4859
|
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(
|
|
4836
|
-
|
|
4860
|
+
import_themes33.RadioGroup.Root,
|
|
4837
4861
|
{
|
|
4838
4862
|
onValueChange: readonly ? void 0 : (newValue) => {
|
|
4839
4863
|
void setFieldValue(name, newValue);
|
|
@@ -4841,7 +4865,7 @@ function DynamicFormField({
|
|
|
4841
4865
|
orientation: field.orientation,
|
|
4842
4866
|
value: String(value || ""),
|
|
4843
4867
|
disabled: readonly,
|
|
4844
|
-
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))
|
|
4845
4869
|
}
|
|
4846
4870
|
);
|
|
4847
4871
|
case "choices":
|
|
@@ -4964,7 +4988,7 @@ function DynamicFormFieldList({
|
|
|
4964
4988
|
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_jsx_runtime77.Fragment, { children: fields.map((field) => {
|
|
4965
4989
|
const errorMessage = !readonly && formik.touched[field.name] && formik.errors[field.name] ? String(formik.errors[field.name]) : void 0;
|
|
4966
4990
|
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(
|
|
4967
|
-
|
|
4991
|
+
import_themes37.Box,
|
|
4968
4992
|
{
|
|
4969
4993
|
"data-error-field": errorMessage ? field.name : void 0,
|
|
4970
4994
|
"data-field-name": field.name,
|