@tipp/ui 2.3.38 → 2.3.40
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 +426 -365
- package/dist/app/index.cjs.map +1 -1
- package/dist/app/index.js +40 -39
- package/dist/app/platform/coach-question-list.cjs +96 -35
- package/dist/app/platform/coach-question-list.cjs.map +1 -1
- package/dist/app/platform/coach-question-list.js +2 -1
- package/dist/app/platform/contents-card.cjs +133 -72
- package/dist/app/platform/contents-card.cjs.map +1 -1
- package/dist/app/platform/contents-card.js +3 -2
- package/dist/app/platform/curriculum-card.cjs +77 -16
- package/dist/app/platform/curriculum-card.cjs.map +1 -1
- package/dist/app/platform/curriculum-card.js +2 -1
- package/dist/app/platform/edit-coaching-time.cjs +196 -135
- package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
- package/dist/app/platform/edit-coaching-time.js +23 -22
- package/dist/app/platform/edit-service-type.cjs +188 -127
- package/dist/app/platform/edit-service-type.cjs.map +1 -1
- package/dist/app/platform/edit-service-type.js +23 -22
- package/dist/app/platform/goal-manage-card-edit.cjs +198 -137
- package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-edit.js +23 -22
- package/dist/app/platform/goal-manage-card-read.cjs +126 -65
- package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
- package/dist/app/platform/goal-manage-card-read.js +2 -1
- package/dist/app/platform/on-offline-radio-card.cjs +216 -155
- package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
- package/dist/app/platform/on-offline-radio-card.js +23 -22
- package/dist/app/platform/report-card.cjs +99 -38
- package/dist/app/platform/report-card.cjs.map +1 -1
- package/dist/app/platform/report-card.js +2 -1
- package/dist/app/platform/reservation-card.cjs +212 -151
- package/dist/app/platform/reservation-card.cjs.map +1 -1
- package/dist/app/platform/reservation-card.js +23 -22
- package/dist/app/platform/session-card.cjs +241 -180
- package/dist/app/platform/session-card.cjs.map +1 -1
- package/dist/app/platform/session-card.js +23 -22
- package/dist/app/platform/session-review-simple-read.cjs +97 -36
- package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
- package/dist/app/platform/session-review-simple-read.js +2 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +130 -69
- package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/index.js +6 -5
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +107 -46
- package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/large.js +2 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +110 -49
- package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/medium.js +2 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +96 -35
- package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
- package/dist/app/platform/userInfos/coaching-customer-info/small.js +2 -1
- package/dist/app/platform/userInfos/session-user-info-detail.cjs +106 -45
- package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
- package/dist/app/platform/userInfos/session-user-info-detail.js +2 -1
- package/dist/app/platform/userInfos/utils.cjs +98 -37
- package/dist/app/platform/userInfos/utils.cjs.map +1 -1
- package/dist/app/platform/userInfos/utils.js +2 -1
- package/dist/atoms/index.cjs +120 -59
- package/dist/atoms/index.cjs.map +1 -1
- package/dist/atoms/index.js +2 -1
- package/dist/atoms/pagination.cjs +76 -15
- package/dist/atoms/pagination.cjs.map +1 -1
- package/dist/atoms/pagination.js +2 -1
- package/dist/{chunk-GGCONJ2Q.js → chunk-4UBN6JY7.js} +2 -2
- package/dist/{chunk-IO7RODN7.js → chunk-6SQZJN5Y.js} +4 -4
- package/dist/{chunk-XVCVWEWU.js → chunk-7PZPKTQ4.js} +2 -2
- package/dist/chunk-B3VSXNTH.js +71 -0
- package/dist/chunk-B3VSXNTH.js.map +1 -0
- package/dist/{chunk-4BWTMUQY.js → chunk-BYFSYL7V.js} +2 -2
- package/dist/{chunk-6MQMVYEP.js → chunk-C6ZC7TXX.js} +4 -4
- package/dist/{chunk-36VFXUXU.js → chunk-GVUXGWAM.js} +8 -8
- package/dist/chunk-GVUXGWAM.js.map +1 -0
- package/dist/chunk-JVXATVAC.js +1 -0
- package/dist/{chunk-LZWTGFMW.js → chunk-P4R5JOBT.js} +4 -4
- package/dist/{chunk-6TQGX5ZU.js → chunk-REPTW53S.js} +2 -2
- package/dist/{chunk-4PYFMD24.js → chunk-V7IC4EAC.js} +4 -4
- package/dist/{chunk-MLAQDU6U.js → chunk-XLKJYRFY.js} +37 -7
- package/dist/{chunk-MLAQDU6U.js.map → chunk-XLKJYRFY.js.map} +1 -1
- package/dist/icon.cjs +63 -0
- package/dist/icon.cjs.map +1 -1
- package/dist/icon.d.cts +1 -0
- package/dist/icon.d.ts +1 -0
- package/dist/icon.js +5 -1
- package/dist/icons/headset.cjs +128 -0
- package/dist/icons/headset.cjs.map +1 -0
- package/dist/icons/headset.d.cts +6 -0
- package/dist/icons/headset.d.ts +6 -0
- package/dist/icons/headset.js +8 -0
- package/dist/icons/headset.js.map +1 -0
- package/dist/icons/index.cjs +63 -0
- package/dist/icons/index.cjs.map +1 -1
- package/dist/icons/index.d.cts +1 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/icons/index.js +5 -1
- package/dist/index.cjs +985 -892
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +55 -51
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs +125 -64
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.js +5 -4
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs +67 -6
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.js +2 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs +105 -44
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.js +4 -3
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.cjs +70 -9
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.js +2 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs +79 -18
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.js +2 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs +71 -10
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.js +2 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs +71 -10
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.js +2 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs +78 -17
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.js +2 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs +75 -14
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.js +2 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs +181 -120
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.js +6 -5
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs +83 -22
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.js +2 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs +68 -7
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.js +2 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs +199 -138
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/curriculum-review.js +7 -6
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs +248 -187
- package/dist/molecules/curriculumV2/CurriculumContents/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumContents/index.js +11 -10
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs +71 -10
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/Items/section-item.js +2 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs +90 -29
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/index.js +5 -4
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs +82 -21
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.cjs.map +1 -1
- package/dist/molecules/curriculumV2/CurriculumSidebar/sidebar-item.js +4 -3
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs +74 -13
- package/dist/molecules/curriculumV2/curriculum-sub-nav.cjs.map +1 -1
- package/dist/molecules/curriculumV2/curriculum-sub-nav.js +2 -1
- package/dist/molecules/curriculumV2/index.cjs +290 -229
- package/dist/molecules/curriculumV2/index.cjs.map +1 -1
- package/dist/molecules/curriculumV2/index.js +19 -18
- package/dist/molecules/date-picker/date-picker-button.cjs +87 -26
- package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
- package/dist/molecules/date-picker/date-picker-button.js +2 -1
- package/dist/molecules/date-picker/index.cjs +78 -17
- package/dist/molecules/date-picker/index.cjs.map +1 -1
- package/dist/molecules/date-picker/index.js +2 -1
- package/dist/molecules/description-json-render.cjs +69 -8
- package/dist/molecules/description-json-render.cjs.map +1 -1
- package/dist/molecules/description-json-render.js +2 -1
- package/dist/molecules/dynamic-form-editor-field-editor-panel.cjs +176 -115
- package/dist/molecules/dynamic-form-editor-field-editor-panel.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor-field-editor-panel.js +2 -1
- package/dist/molecules/dynamic-form-editor.cjs +257 -196
- package/dist/molecules/dynamic-form-editor.cjs.map +1 -1
- package/dist/molecules/dynamic-form-editor.js +2 -1
- package/dist/molecules/expand-table/index.cjs +101 -40
- package/dist/molecules/expand-table/index.cjs.map +1 -1
- package/dist/molecules/expand-table/index.js +2 -1
- package/dist/molecules/index.cjs +756 -665
- package/dist/molecules/index.cjs.map +1 -1
- package/dist/molecules/index.js +34 -33
- package/dist/molecules/stepper.cjs +81 -20
- package/dist/molecules/stepper.cjs.map +1 -1
- package/dist/molecules/stepper.js +2 -1
- package/dist/molecules/tag-selector.cjs +81 -20
- package/dist/molecules/tag-selector.cjs.map +1 -1
- package/dist/molecules/tag-selector.js +2 -1
- package/dist/molecules/time-select.cjs +66 -5
- package/dist/molecules/time-select.cjs.map +1 -1
- package/dist/molecules/time-select.js +2 -1
- package/dist/molecules/training-info-guideline.cjs +36 -6
- package/dist/molecules/training-info-guideline.cjs.map +1 -1
- package/dist/molecules/training-info-guideline.js +1 -1
- package/dist/types/index.js +1 -1
- package/dist/utils/curriculum.utils.cjs +61 -0
- package/dist/utils/curriculum.utils.cjs.map +1 -1
- package/dist/utils/curriculum.utils.js +2 -1
- package/dist/utils/get-callout-icon-component.cjs +61 -0
- package/dist/utils/get-callout-icon-component.cjs.map +1 -1
- package/dist/utils/get-callout-icon-component.js +2 -1
- package/dist/utils/index.cjs +61 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.js +2 -1
- package/package.json +1 -1
- package/src/app/platform/contents-card.tsx +5 -5
- package/src/icons/headset.tsx +46 -0
- package/src/icons/index.ts +2 -1
- package/src/molecules/training-info-guideline.tsx +28 -7
- package/dist/chunk-36VFXUXU.js.map +0 -1
- package/dist/chunk-VD7AQ7HK.js +0 -1
- /package/dist/{chunk-GGCONJ2Q.js.map → chunk-4UBN6JY7.js.map} +0 -0
- /package/dist/{chunk-IO7RODN7.js.map → chunk-6SQZJN5Y.js.map} +0 -0
- /package/dist/{chunk-XVCVWEWU.js.map → chunk-7PZPKTQ4.js.map} +0 -0
- /package/dist/{chunk-4BWTMUQY.js.map → chunk-BYFSYL7V.js.map} +0 -0
- /package/dist/{chunk-6MQMVYEP.js.map → chunk-C6ZC7TXX.js.map} +0 -0
- /package/dist/{chunk-VD7AQ7HK.js.map → chunk-JVXATVAC.js.map} +0 -0
- /package/dist/{chunk-LZWTGFMW.js.map → chunk-P4R5JOBT.js.map} +0 -0
- /package/dist/{chunk-6TQGX5ZU.js.map → chunk-REPTW53S.js.map} +0 -0
- /package/dist/{chunk-4PYFMD24.js.map → chunk-V7IC4EAC.js.map} +0 -0
package/dist/molecules/index.cjs
CHANGED
|
@@ -651,6 +651,67 @@ var CircleFileIcon = React14.forwardRef(
|
|
|
651
651
|
);
|
|
652
652
|
CircleFileIcon.displayName = "CircleFileIcon";
|
|
653
653
|
|
|
654
|
+
// src/icons/headset.tsx
|
|
655
|
+
var React15 = __toESM(require("react"), 1);
|
|
656
|
+
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
657
|
+
var HeadsetIcon = React15.forwardRef(
|
|
658
|
+
(_a, forwardedRef) => {
|
|
659
|
+
var _b = _a, { color = "currentColor" } = _b, props = __objRest(_b, ["color"]);
|
|
660
|
+
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
|
|
661
|
+
"svg",
|
|
662
|
+
__spreadProps(__spreadValues({
|
|
663
|
+
fill: "none",
|
|
664
|
+
height: "16",
|
|
665
|
+
viewBox: "0 0 16 16",
|
|
666
|
+
width: "16",
|
|
667
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
668
|
+
}, props), {
|
|
669
|
+
ref: forwardedRef,
|
|
670
|
+
children: [
|
|
671
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
672
|
+
"path",
|
|
673
|
+
{
|
|
674
|
+
d: "M3.25 6C3.25 3.75 5.5 2 8 2C10.5 2 12.75 3.75 12.75 6",
|
|
675
|
+
stroke: color,
|
|
676
|
+
strokeLinecap: "round",
|
|
677
|
+
strokeWidth: "1.2"
|
|
678
|
+
}
|
|
679
|
+
),
|
|
680
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
681
|
+
"path",
|
|
682
|
+
{
|
|
683
|
+
d: "M4.75 6H3.25A1.5 1.5 0 0 0 1.75 7.5V10.75A1.5 1.5 0 0 0 3.25 12.25H4.75Z",
|
|
684
|
+
stroke: color,
|
|
685
|
+
strokeLinejoin: "round",
|
|
686
|
+
strokeWidth: "1.2"
|
|
687
|
+
}
|
|
688
|
+
),
|
|
689
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
690
|
+
"path",
|
|
691
|
+
{
|
|
692
|
+
d: "M11.25 6H12.75A1.5 1.5 0 0 1 14.25 7.5V10.75A1.5 1.5 0 0 1 12.75 12.25H11.25Z",
|
|
693
|
+
stroke: color,
|
|
694
|
+
strokeLinejoin: "round",
|
|
695
|
+
strokeWidth: "1.2"
|
|
696
|
+
}
|
|
697
|
+
),
|
|
698
|
+
/* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
|
|
699
|
+
"path",
|
|
700
|
+
{
|
|
701
|
+
d: "M4 12.25V13.25C4 13.94 4.56 14.5 5.25 14.5H8",
|
|
702
|
+
stroke: color,
|
|
703
|
+
strokeLinecap: "round",
|
|
704
|
+
strokeLinejoin: "round",
|
|
705
|
+
strokeWidth: "1.2"
|
|
706
|
+
}
|
|
707
|
+
)
|
|
708
|
+
]
|
|
709
|
+
})
|
|
710
|
+
);
|
|
711
|
+
}
|
|
712
|
+
);
|
|
713
|
+
HeadsetIcon.displayName = "HeadsetIcon";
|
|
714
|
+
|
|
654
715
|
// src/atoms/icon-button.tsx
|
|
655
716
|
var import_react = require("react");
|
|
656
717
|
var import_clsx = require("clsx");
|
|
@@ -688,7 +749,7 @@ var convertSize = (size) => {
|
|
|
688
749
|
};
|
|
689
750
|
|
|
690
751
|
// src/atoms/icon-button.tsx
|
|
691
|
-
var
|
|
752
|
+
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
692
753
|
var IconButton = (0, import_react.forwardRef)(
|
|
693
754
|
(props, ref) => {
|
|
694
755
|
const _a = props, { size, style, variant } = _a, restProps = __objRest(_a, ["size", "style", "variant"]);
|
|
@@ -702,7 +763,7 @@ var IconButton = (0, import_react.forwardRef)(
|
|
|
702
763
|
const className = (0, import_react.useMemo)(() => {
|
|
703
764
|
return (0, import_clsx.clsx)(props.className, { transparent: variant === "transparent" });
|
|
704
765
|
}, [props.className, variant]);
|
|
705
|
-
return /* @__PURE__ */ (0,
|
|
766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
706
767
|
import_themes2.IconButton,
|
|
707
768
|
__spreadProps(__spreadValues({
|
|
708
769
|
style,
|
|
@@ -741,7 +802,7 @@ var mapWithResponsive = (args) => {
|
|
|
741
802
|
};
|
|
742
803
|
|
|
743
804
|
// src/atoms/typo.tsx
|
|
744
|
-
var
|
|
805
|
+
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
745
806
|
var Typo = (0, import_react2.forwardRef)(
|
|
746
807
|
(props, ref) => {
|
|
747
808
|
const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
|
|
@@ -763,13 +824,13 @@ var Typo = (0, import_react2.forwardRef)(
|
|
|
763
824
|
}
|
|
764
825
|
});
|
|
765
826
|
}, [size, variant]);
|
|
766
|
-
return /* @__PURE__ */ (0,
|
|
827
|
+
return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes3.Text, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, children }));
|
|
767
828
|
}
|
|
768
829
|
);
|
|
769
830
|
Typo.displayName = "Typo";
|
|
770
831
|
|
|
771
832
|
// src/atoms/pagination.tsx
|
|
772
|
-
var
|
|
833
|
+
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
773
834
|
function Pagination(props) {
|
|
774
835
|
const { onChange, count = 0, siblingCount = 2 } = props;
|
|
775
836
|
const isControlled = props.page !== void 0;
|
|
@@ -833,19 +894,19 @@ function Pagination(props) {
|
|
|
833
894
|
size: "large",
|
|
834
895
|
style: { borderRadius: "50%" }
|
|
835
896
|
};
|
|
836
|
-
return /* @__PURE__ */ (0,
|
|
837
|
-
/* @__PURE__ */ (0,
|
|
897
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_themes.Flex, { align: "center", className: "tipp-pagination", children: [
|
|
898
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
838
899
|
IconButton,
|
|
839
900
|
__spreadProps(__spreadValues({
|
|
840
901
|
disabled: !doublePrev,
|
|
841
902
|
onClick: onClickDoublePrev
|
|
842
903
|
}, moveButtonProps), {
|
|
843
|
-
children: /* @__PURE__ */ (0,
|
|
904
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_icons.DoubleArrowLeftIcon, __spreadValues({}, iconSize))
|
|
844
905
|
})
|
|
845
906
|
),
|
|
846
|
-
/* @__PURE__ */ (0,
|
|
847
|
-
/* @__PURE__ */ (0,
|
|
848
|
-
return /* @__PURE__ */ (0,
|
|
907
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(IconButton, __spreadProps(__spreadValues({ disabled: !prev, onClick: onClickPrev }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_icons.ChevronLeftIcon, __spreadValues({}, iconSize)) })),
|
|
908
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_themes.Flex, { gap: "1", children: visibleItems.map((item) => {
|
|
909
|
+
return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
849
910
|
"button",
|
|
850
911
|
{
|
|
851
912
|
className: `page-button ${item === page ? "active" : ""}`,
|
|
@@ -853,19 +914,19 @@ function Pagination(props) {
|
|
|
853
914
|
goToPage(item);
|
|
854
915
|
},
|
|
855
916
|
type: "button",
|
|
856
|
-
children: /* @__PURE__ */ (0,
|
|
917
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Typo, { variant: "body", children: item })
|
|
857
918
|
},
|
|
858
919
|
item
|
|
859
920
|
);
|
|
860
921
|
}) }),
|
|
861
|
-
/* @__PURE__ */ (0,
|
|
862
|
-
/* @__PURE__ */ (0,
|
|
922
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(IconButton, __spreadProps(__spreadValues({ disabled: !next, onClick: onClickNext }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_icons.ChevronRightIcon, __spreadValues({}, iconSize)) })),
|
|
923
|
+
/* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
|
|
863
924
|
IconButton,
|
|
864
925
|
__spreadProps(__spreadValues({
|
|
865
926
|
disabled: !doubleNext,
|
|
866
927
|
onClick: onClickDoubleNext
|
|
867
928
|
}, moveButtonProps), {
|
|
868
|
-
children: /* @__PURE__ */ (0,
|
|
929
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_react_icons.DoubleArrowRightIcon, __spreadValues({}, iconSize))
|
|
869
930
|
})
|
|
870
931
|
)
|
|
871
932
|
] });
|
|
@@ -880,7 +941,7 @@ var import_react5 = require("react");
|
|
|
880
941
|
|
|
881
942
|
// src/atoms/collapse.tsx
|
|
882
943
|
var import_react4 = require("react");
|
|
883
|
-
var
|
|
944
|
+
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
884
945
|
function Collapse(props) {
|
|
885
946
|
const { children, closedHeight = "0" } = props;
|
|
886
947
|
const [open, setOpen] = (0, import_react4.useState)(() => {
|
|
@@ -895,11 +956,11 @@ function Collapse(props) {
|
|
|
895
956
|
if (!ref.current) return;
|
|
896
957
|
ref.current.style.maxHeight = open ? `${ref.current.scrollHeight}px` : closedHeight;
|
|
897
958
|
}, [closedHeight, open]);
|
|
898
|
-
return /* @__PURE__ */ (0,
|
|
959
|
+
return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "tipp-collapse", ref, children });
|
|
899
960
|
}
|
|
900
961
|
|
|
901
962
|
// src/molecules/expand-table/row.tsx
|
|
902
|
-
var
|
|
963
|
+
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
903
964
|
function Row(props) {
|
|
904
965
|
const { row, ExpandComp, gridTemplateColumns, getRowStyle, getCellStyle } = props;
|
|
905
966
|
const [open, setOpen] = (0, import_react5.useState)(false);
|
|
@@ -918,8 +979,8 @@ function Row(props) {
|
|
|
918
979
|
}
|
|
919
980
|
return baseCls.join(" ");
|
|
920
981
|
}, [ExpandComp, props.onRowClick]);
|
|
921
|
-
return /* @__PURE__ */ (0,
|
|
922
|
-
/* @__PURE__ */ (0,
|
|
982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: rowClassName, children: [
|
|
983
|
+
/* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
923
984
|
"button",
|
|
924
985
|
{
|
|
925
986
|
className: "tr",
|
|
@@ -932,7 +993,7 @@ function Row(props) {
|
|
|
932
993
|
var _a, _b, _c;
|
|
933
994
|
const autoSize = (_a = cell.column.columnDef.meta) == null ? void 0 : _a.autoSize;
|
|
934
995
|
const justifyContent = ((_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) || props.defaultAlign;
|
|
935
|
-
return /* @__PURE__ */ (0,
|
|
996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
|
|
936
997
|
"div",
|
|
937
998
|
{
|
|
938
999
|
className: "td",
|
|
@@ -943,7 +1004,7 @@ function Row(props) {
|
|
|
943
1004
|
}, (getCellStyle == null ? void 0 : getCellStyle(row.original)) || {}),
|
|
944
1005
|
children: [
|
|
945
1006
|
(0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()),
|
|
946
|
-
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0,
|
|
1007
|
+
((_c = cell.column.columnDef.meta) == null ? void 0 : _c.OpenBtn) ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
947
1008
|
cell.column.columnDef.meta.OpenBtn,
|
|
948
1009
|
{
|
|
949
1010
|
data: row.original,
|
|
@@ -959,12 +1020,12 @@ function Row(props) {
|
|
|
959
1020
|
},
|
|
960
1021
|
`tr_${row.id}`
|
|
961
1022
|
),
|
|
962
|
-
ExpandComp ? /* @__PURE__ */ (0,
|
|
1023
|
+
ExpandComp ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Collapse, { open, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "expand-comp-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ExpandComp, { row }) }) }) : null
|
|
963
1024
|
] }, `tr-wrapper_${row.id}`);
|
|
964
1025
|
}
|
|
965
1026
|
|
|
966
1027
|
// src/molecules/expand-table/index.tsx
|
|
967
|
-
var
|
|
1028
|
+
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
968
1029
|
var sortButtonColorMapper = {
|
|
969
1030
|
card: {
|
|
970
1031
|
selected: "var(--iris-10)",
|
|
@@ -1044,7 +1105,7 @@ function ExpandTable(props) {
|
|
|
1044
1105
|
const helpCompRender = (0, import_react6.useCallback)(
|
|
1045
1106
|
(rowLength) => {
|
|
1046
1107
|
if (isLoading) {
|
|
1047
|
-
return /* @__PURE__ */ (0,
|
|
1108
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1048
1109
|
import_themes.Flex,
|
|
1049
1110
|
{
|
|
1050
1111
|
align: "center",
|
|
@@ -1052,12 +1113,12 @@ function ExpandTable(props) {
|
|
|
1052
1113
|
justify: "center",
|
|
1053
1114
|
p: "5",
|
|
1054
1115
|
width: "100%",
|
|
1055
|
-
children: /* @__PURE__ */ (0,
|
|
1116
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes4.Spinner, {})
|
|
1056
1117
|
}
|
|
1057
1118
|
);
|
|
1058
1119
|
}
|
|
1059
1120
|
if (rowLength === 0) {
|
|
1060
|
-
return /* @__PURE__ */ (0,
|
|
1121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typo, { color: "gray", mb: "6", mt: "6", variant: "body", children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder");
|
|
1061
1122
|
}
|
|
1062
1123
|
return null;
|
|
1063
1124
|
},
|
|
@@ -1067,9 +1128,9 @@ function ExpandTable(props) {
|
|
|
1067
1128
|
if (!data) return 0;
|
|
1068
1129
|
return Math.ceil(data.length / pageSize);
|
|
1069
1130
|
}, [data, pageSize]);
|
|
1070
|
-
return /* @__PURE__ */ (0,
|
|
1071
|
-
/* @__PURE__ */ (0,
|
|
1072
|
-
/* @__PURE__ */ (0,
|
|
1131
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: `expand-table-wrapper ${variant}`, children: [
|
|
1132
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "expand-table", style: tableStyle, children: [
|
|
1133
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1073
1134
|
"div",
|
|
1074
1135
|
{
|
|
1075
1136
|
className: "tr",
|
|
@@ -1080,36 +1141,36 @@ function ExpandTable(props) {
|
|
|
1080
1141
|
const sortedState = header.column.getIsSorted();
|
|
1081
1142
|
const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
|
|
1082
1143
|
if (sortable) {
|
|
1083
|
-
return /* @__PURE__ */ (0,
|
|
1144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1084
1145
|
"button",
|
|
1085
1146
|
{
|
|
1086
1147
|
onClick: header.column.getToggleSortingHandler(),
|
|
1087
1148
|
style: { cursor: "pointer" },
|
|
1088
1149
|
type: "button",
|
|
1089
1150
|
children: [
|
|
1090
|
-
/* @__PURE__ */ (0,
|
|
1151
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
|
|
1091
1152
|
header.column.columnDef.header,
|
|
1092
1153
|
header.getContext()
|
|
1093
1154
|
) }),
|
|
1094
|
-
/* @__PURE__ */ (0,
|
|
1155
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
|
|
1095
1156
|
import_themes.Flex,
|
|
1096
1157
|
{
|
|
1097
1158
|
direction: "column",
|
|
1098
1159
|
style: { marginLeft: "var(--space-2)" },
|
|
1099
1160
|
children: [
|
|
1100
|
-
sortedState === false && /* @__PURE__ */ (0,
|
|
1161
|
+
sortedState === false && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1101
1162
|
TriangleArrowDownIcon,
|
|
1102
1163
|
{
|
|
1103
1164
|
color: sortButtonColorMapper[variant].unselected
|
|
1104
1165
|
}
|
|
1105
1166
|
),
|
|
1106
|
-
sortedState === "asc" && /* @__PURE__ */ (0,
|
|
1167
|
+
sortedState === "asc" && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1107
1168
|
TriangleArrowUpIcon,
|
|
1108
1169
|
{
|
|
1109
1170
|
color: sortButtonColorMapper[variant].selected
|
|
1110
1171
|
}
|
|
1111
1172
|
),
|
|
1112
|
-
sortedState === "desc" && /* @__PURE__ */ (0,
|
|
1173
|
+
sortedState === "desc" && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1113
1174
|
TriangleArrowDownIcon,
|
|
1114
1175
|
{
|
|
1115
1176
|
color: sortButtonColorMapper[variant].selected
|
|
@@ -1122,7 +1183,7 @@ function ExpandTable(props) {
|
|
|
1122
1183
|
}
|
|
1123
1184
|
) }, header.id);
|
|
1124
1185
|
}
|
|
1125
|
-
return /* @__PURE__ */ (0,
|
|
1186
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
|
|
1126
1187
|
header.column.columnDef.header,
|
|
1127
1188
|
header.getContext()
|
|
1128
1189
|
) }) }, header.id);
|
|
@@ -1130,8 +1191,8 @@ function ExpandTable(props) {
|
|
|
1130
1191
|
},
|
|
1131
1192
|
headerGroup.id
|
|
1132
1193
|
)) }),
|
|
1133
|
-
/* @__PURE__ */ (0,
|
|
1134
|
-
return /* @__PURE__ */ (0,
|
|
1194
|
+
/* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes5.ScrollArea, { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
|
|
1195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1135
1196
|
Row,
|
|
1136
1197
|
{
|
|
1137
1198
|
ExpandComp,
|
|
@@ -1146,7 +1207,7 @@ function ExpandTable(props) {
|
|
|
1146
1207
|
);
|
|
1147
1208
|
}) })
|
|
1148
1209
|
] }),
|
|
1149
|
-
showPagination ? /* @__PURE__ */ (0,
|
|
1210
|
+
showPagination ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes.Flex, { justify: "end", pt: "4", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
|
|
1150
1211
|
Pagination,
|
|
1151
1212
|
{
|
|
1152
1213
|
count: pageCount,
|
|
@@ -1195,7 +1256,7 @@ var convertSize2 = (size) => {
|
|
|
1195
1256
|
};
|
|
1196
1257
|
|
|
1197
1258
|
// src/atoms/button.tsx
|
|
1198
|
-
var
|
|
1259
|
+
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1199
1260
|
var Button = (0, import_react7.forwardRef)(
|
|
1200
1261
|
(props, ref) => {
|
|
1201
1262
|
const _a = props, { size, style, variant } = _a, restProps = __objRest(_a, ["size", "style", "variant"]);
|
|
@@ -1209,7 +1270,7 @@ var Button = (0, import_react7.forwardRef)(
|
|
|
1209
1270
|
const className = (0, import_react7.useMemo)(() => {
|
|
1210
1271
|
return (0, import_clsx2.clsx)(props.className, { transparent: variant === "transparent" });
|
|
1211
1272
|
}, [props.className, variant]);
|
|
1212
|
-
return /* @__PURE__ */ (0,
|
|
1273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
1213
1274
|
import_themes6.Button,
|
|
1214
1275
|
__spreadProps(__spreadValues({
|
|
1215
1276
|
style,
|
|
@@ -1226,14 +1287,14 @@ var Button = (0, import_react7.forwardRef)(
|
|
|
1226
1287
|
Button.displayName = "Button";
|
|
1227
1288
|
|
|
1228
1289
|
// src/molecules/navigation.tsx
|
|
1229
|
-
var
|
|
1290
|
+
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1230
1291
|
function Navigation({
|
|
1231
1292
|
items,
|
|
1232
1293
|
fontColor,
|
|
1233
1294
|
backgroundColor,
|
|
1234
1295
|
activeKey
|
|
1235
1296
|
}) {
|
|
1236
|
-
return /* @__PURE__ */ (0,
|
|
1297
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1237
1298
|
import_themes.Flex,
|
|
1238
1299
|
{
|
|
1239
1300
|
direction: "column",
|
|
@@ -1245,13 +1306,13 @@ function Navigation({
|
|
|
1245
1306
|
},
|
|
1246
1307
|
children: items == null ? void 0 : items.map((item) => {
|
|
1247
1308
|
const { key, title, icon, itemRender, onClick, children } = item;
|
|
1248
|
-
return /* @__PURE__ */ (0,
|
|
1249
|
-
itemRender ? itemRender(item) : /* @__PURE__ */ (0,
|
|
1309
|
+
return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_themes.Flex, { direction: "column", onClick, children: [
|
|
1310
|
+
itemRender ? itemRender(item) : /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_themes.Flex, { align: "center", gap: "3", height: "36px", pl: "4", pr: "4", children: [
|
|
1250
1311
|
icon,
|
|
1251
|
-
/* @__PURE__ */ (0,
|
|
1312
|
+
/* @__PURE__ */ (0, import_jsx_runtime23.jsx)(Typo, { variant: "subtitle", children: title })
|
|
1252
1313
|
] }),
|
|
1253
1314
|
children == null ? void 0 : children.map((menu) => {
|
|
1254
|
-
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0,
|
|
1315
|
+
return menu.itemRender ? menu.itemRender(menu) : /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
|
|
1255
1316
|
Button,
|
|
1256
1317
|
{
|
|
1257
1318
|
className: `tipp-navigation-button ${activeKey === menu.key ? "active" : ""}`,
|
|
@@ -1289,7 +1350,7 @@ var import_themes8 = require("@radix-ui/themes");
|
|
|
1289
1350
|
var import_themes9 = require("@radix-ui/themes");
|
|
1290
1351
|
var import_react8 = require("react");
|
|
1291
1352
|
var import_themes10 = require("@radix-ui/themes");
|
|
1292
|
-
var
|
|
1353
|
+
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1293
1354
|
var mapVariant = (variant) => {
|
|
1294
1355
|
switch (variant) {
|
|
1295
1356
|
case "heading1":
|
|
@@ -1314,11 +1375,11 @@ function Heading2(props) {
|
|
|
1314
1375
|
mapFn: mapVariant
|
|
1315
1376
|
}) : size;
|
|
1316
1377
|
}, [size, variant]);
|
|
1317
|
-
return /* @__PURE__ */ (0,
|
|
1378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_themes9.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
1318
1379
|
}
|
|
1319
1380
|
|
|
1320
1381
|
// src/molecules/date-picker/index.tsx
|
|
1321
|
-
var
|
|
1382
|
+
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1322
1383
|
var DatePicker = (0, import_react9.forwardRef)(
|
|
1323
1384
|
(props, ref) => {
|
|
1324
1385
|
const _a = props, { fullWidth } = _a, rest = __objRest(_a, ["fullWidth"]);
|
|
@@ -1349,7 +1410,7 @@ var DatePicker = (0, import_react9.forwardRef)(
|
|
|
1349
1410
|
setIsMonthDropdownOpen
|
|
1350
1411
|
}));
|
|
1351
1412
|
}, [isMonthDropdownOpen, isYearDropdownOpen, props]);
|
|
1352
|
-
return /* @__PURE__ */ (0,
|
|
1413
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes.Flex, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1353
1414
|
import_react_datepicker.default,
|
|
1354
1415
|
__spreadProps(__spreadValues({
|
|
1355
1416
|
dateFormat: "yyyy/MM/dd h:mm aa",
|
|
@@ -1397,19 +1458,19 @@ function DropdownSelector({
|
|
|
1397
1458
|
});
|
|
1398
1459
|
}
|
|
1399
1460
|
}, [isOpen]);
|
|
1400
|
-
return /* @__PURE__ */ (0,
|
|
1401
|
-
/* @__PURE__ */ (0,
|
|
1461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes8.Popover.Root, { modal: true, onOpenChange, open: isOpen, children: [
|
|
1462
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes8.Popover.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Button, { className: "react-datepicker_dropdown_header", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Heading2, { variant: "heading4", weight: "regular", children: [
|
|
1402
1463
|
selectedValue,
|
|
1403
1464
|
suffix
|
|
1404
1465
|
] }) }) }),
|
|
1405
|
-
/* @__PURE__ */ (0,
|
|
1466
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes8.Popover.Content, { side: "bottom", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1406
1467
|
import_themes7.Box,
|
|
1407
1468
|
{
|
|
1408
1469
|
maxHeight: "200px",
|
|
1409
1470
|
overflowY: "auto",
|
|
1410
1471
|
ref: scrollContainerRef,
|
|
1411
1472
|
style: { scrollbarWidth: "none" },
|
|
1412
|
-
children: /* @__PURE__ */ (0,
|
|
1473
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_themes.Flex, { direction: "column", gap: "1", children: options.map((item) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1413
1474
|
Button,
|
|
1414
1475
|
{
|
|
1415
1476
|
className: "react-datepicker_dropdown_item",
|
|
@@ -1423,7 +1484,7 @@ function DropdownSelector({
|
|
|
1423
1484
|
e.preventDefault();
|
|
1424
1485
|
},
|
|
1425
1486
|
variant: "transparent",
|
|
1426
|
-
children: /* @__PURE__ */ (0,
|
|
1487
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(Typo, { weight: item === selectedValue ? "bold" : void 0, children: [
|
|
1427
1488
|
item,
|
|
1428
1489
|
suffix
|
|
1429
1490
|
] })
|
|
@@ -1454,8 +1515,8 @@ var getRenderCustomHeader = (props) => {
|
|
|
1454
1515
|
} = props;
|
|
1455
1516
|
const year = date ? new Date(date).getFullYear() : "-";
|
|
1456
1517
|
const month = date ? new Date(date).getMonth() + 1 : "-";
|
|
1457
|
-
return /* @__PURE__ */ (0,
|
|
1458
|
-
/* @__PURE__ */ (0,
|
|
1518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes.Flex, { align: "center", justify: "between", pl: "2", pr: "2", children: [
|
|
1519
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1459
1520
|
IconButton,
|
|
1460
1521
|
{
|
|
1461
1522
|
className: "react-datepicker_dropdown_header",
|
|
@@ -1463,11 +1524,11 @@ var getRenderCustomHeader = (props) => {
|
|
|
1463
1524
|
onClick: decreaseMonth,
|
|
1464
1525
|
type: "button",
|
|
1465
1526
|
variant: "ghost",
|
|
1466
|
-
children: /* @__PURE__ */ (0,
|
|
1527
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_icons.ChevronLeftIcon, {})
|
|
1467
1528
|
}
|
|
1468
1529
|
),
|
|
1469
|
-
/* @__PURE__ */ (0,
|
|
1470
|
-
/* @__PURE__ */ (0,
|
|
1530
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_themes.Flex, { gap: "3", children: [
|
|
1531
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1471
1532
|
DropdownSelector,
|
|
1472
1533
|
{
|
|
1473
1534
|
isOpen: isYearDropdownOpen,
|
|
@@ -1481,7 +1542,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
1481
1542
|
suffix: "\uB144"
|
|
1482
1543
|
}
|
|
1483
1544
|
),
|
|
1484
|
-
/* @__PURE__ */ (0,
|
|
1545
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1485
1546
|
DropdownSelector,
|
|
1486
1547
|
{
|
|
1487
1548
|
isOpen: isMonthDropdownOpen,
|
|
@@ -1496,7 +1557,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
1496
1557
|
}
|
|
1497
1558
|
)
|
|
1498
1559
|
] }),
|
|
1499
|
-
/* @__PURE__ */ (0,
|
|
1560
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
1500
1561
|
IconButton,
|
|
1501
1562
|
{
|
|
1502
1563
|
className: "react-datepicker_dropdown_header",
|
|
@@ -1504,7 +1565,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
1504
1565
|
onClick: increaseMonth,
|
|
1505
1566
|
type: "button",
|
|
1506
1567
|
variant: "ghost",
|
|
1507
|
-
children: /* @__PURE__ */ (0,
|
|
1568
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_icons.ChevronRightIcon, {})
|
|
1508
1569
|
}
|
|
1509
1570
|
)
|
|
1510
1571
|
] });
|
|
@@ -1515,7 +1576,7 @@ var getRenderCustomHeader = (props) => {
|
|
|
1515
1576
|
// src/molecules/dot-navigation.tsx
|
|
1516
1577
|
var import_react10 = require("react");
|
|
1517
1578
|
var import_react_icons2 = require("@radix-ui/react-icons");
|
|
1518
|
-
var
|
|
1579
|
+
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1519
1580
|
function DotNavigation(props) {
|
|
1520
1581
|
const { dotCount, onClick, dotIndex, defaultDotIndex, onChangeDotIndex } = props;
|
|
1521
1582
|
const [currentDot, setCurrentDot] = (0, import_react10.useState)(
|
|
@@ -1541,9 +1602,9 @@ function DotNavigation(props) {
|
|
|
1541
1602
|
if (typeof dotIndex === "undefined") return;
|
|
1542
1603
|
setCurrentDot(dotIndex);
|
|
1543
1604
|
}, [dotIndex]);
|
|
1544
|
-
return /* @__PURE__ */ (0,
|
|
1605
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_themes.Flex, { children: dotCount ? Array.from({ length: dotCount }, (_, i) => i).map((_, index) => {
|
|
1545
1606
|
const isSelected = currentDot === index;
|
|
1546
|
-
return /* @__PURE__ */ (0,
|
|
1607
|
+
return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
|
|
1547
1608
|
import_react_icons2.DotFilledIcon,
|
|
1548
1609
|
{
|
|
1549
1610
|
height: "24px",
|
|
@@ -1568,7 +1629,7 @@ var import_themes12 = require("@radix-ui/themes");
|
|
|
1568
1629
|
// src/atoms/avatar.tsx
|
|
1569
1630
|
var import_themes11 = require("@radix-ui/themes");
|
|
1570
1631
|
var import_react11 = require("react");
|
|
1571
|
-
var
|
|
1632
|
+
var import_jsx_runtime27 = require("react/jsx-runtime");
|
|
1572
1633
|
var Avatar = (0, import_react11.forwardRef)(
|
|
1573
1634
|
(props, ref) => {
|
|
1574
1635
|
const _a = props, { children, size, variant = "soft" } = _a, rest = __objRest(_a, ["children", "size", "variant"]);
|
|
@@ -1599,13 +1660,13 @@ var Avatar = (0, import_react11.forwardRef)(
|
|
|
1599
1660
|
return map;
|
|
1600
1661
|
}
|
|
1601
1662
|
}, [getOriginalSize, size]);
|
|
1602
|
-
return /* @__PURE__ */ (0,
|
|
1663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_themes11.Avatar, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, variant, children }));
|
|
1603
1664
|
}
|
|
1604
1665
|
);
|
|
1605
1666
|
Avatar.displayName = "Avatar";
|
|
1606
1667
|
|
|
1607
1668
|
// src/molecules/stepper.tsx
|
|
1608
|
-
var
|
|
1669
|
+
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
1609
1670
|
var StepContext = (0, import_react12.createContext)({
|
|
1610
1671
|
active: false,
|
|
1611
1672
|
completed: false,
|
|
@@ -1620,7 +1681,7 @@ function Root(props) {
|
|
|
1620
1681
|
maxWidth,
|
|
1621
1682
|
direction = "vertical"
|
|
1622
1683
|
} = props;
|
|
1623
|
-
return /* @__PURE__ */ (0,
|
|
1684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1624
1685
|
import_themes.Flex,
|
|
1625
1686
|
{
|
|
1626
1687
|
gap: "3",
|
|
@@ -1630,7 +1691,7 @@ function Root(props) {
|
|
|
1630
1691
|
maxWidth
|
|
1631
1692
|
},
|
|
1632
1693
|
children: import_react12.Children.map(children, (child, index) => {
|
|
1633
|
-
return /* @__PURE__ */ (0,
|
|
1694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1634
1695
|
StepContext.Provider,
|
|
1635
1696
|
{
|
|
1636
1697
|
value: {
|
|
@@ -1654,7 +1715,7 @@ function Step(props) {
|
|
|
1654
1715
|
index,
|
|
1655
1716
|
direction = "vertical"
|
|
1656
1717
|
} = (0, import_react12.useContext)(StepContext);
|
|
1657
|
-
const connector = index > 0 ? /* @__PURE__ */ (0,
|
|
1718
|
+
const connector = index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1658
1719
|
import_themes12.Separator,
|
|
1659
1720
|
{
|
|
1660
1721
|
style: {
|
|
@@ -1674,7 +1735,7 @@ function Step(props) {
|
|
|
1674
1735
|
}
|
|
1675
1736
|
return IncompleteStep;
|
|
1676
1737
|
}, [completed, active]);
|
|
1677
|
-
return /* @__PURE__ */ (0,
|
|
1738
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
|
|
1678
1739
|
import_themes.Flex,
|
|
1679
1740
|
{
|
|
1680
1741
|
align: "center",
|
|
@@ -1684,7 +1745,7 @@ function Step(props) {
|
|
|
1684
1745
|
style: { flex: 1 },
|
|
1685
1746
|
children: [
|
|
1686
1747
|
connector,
|
|
1687
|
-
/* @__PURE__ */ (0,
|
|
1748
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(InnerStep, { Icon, children })
|
|
1688
1749
|
]
|
|
1689
1750
|
}
|
|
1690
1751
|
);
|
|
@@ -1695,11 +1756,11 @@ function CompleteStep(props) {
|
|
|
1695
1756
|
const background = "var(--accent-a4)";
|
|
1696
1757
|
const border = "1px solid var(--accent-7)";
|
|
1697
1758
|
const color = "var(--accent-contrast)";
|
|
1698
|
-
return /* @__PURE__ */ (0,
|
|
1699
|
-
Icon ? /* @__PURE__ */ (0,
|
|
1759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
1760
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1700
1761
|
Avatar,
|
|
1701
1762
|
{
|
|
1702
|
-
fallback: /* @__PURE__ */ (0,
|
|
1763
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_react_icons.CheckIcon, { fill: color, height: 16, width: 16 }),
|
|
1703
1764
|
radius: "full",
|
|
1704
1765
|
size: "medium",
|
|
1705
1766
|
style: {
|
|
@@ -1708,7 +1769,7 @@ function CompleteStep(props) {
|
|
|
1708
1769
|
}
|
|
1709
1770
|
}
|
|
1710
1771
|
),
|
|
1711
|
-
/* @__PURE__ */ (0,
|
|
1772
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { align: "center", variant: "caption", children })
|
|
1712
1773
|
] });
|
|
1713
1774
|
}
|
|
1714
1775
|
function IncompleteStep(props) {
|
|
@@ -1716,11 +1777,11 @@ function IncompleteStep(props) {
|
|
|
1716
1777
|
const { completed, active, index } = (0, import_react12.useContext)(StepContext);
|
|
1717
1778
|
const background = "var(--gray-5)";
|
|
1718
1779
|
const color = "var(--gray-a11)";
|
|
1719
|
-
return /* @__PURE__ */ (0,
|
|
1720
|
-
Icon ? /* @__PURE__ */ (0,
|
|
1780
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
1781
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1721
1782
|
Avatar,
|
|
1722
1783
|
{
|
|
1723
|
-
fallback: /* @__PURE__ */ (0,
|
|
1784
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { style: { color }, children: index + 1 }),
|
|
1724
1785
|
radius: "full",
|
|
1725
1786
|
size: "medium",
|
|
1726
1787
|
style: {
|
|
@@ -1728,7 +1789,7 @@ function IncompleteStep(props) {
|
|
|
1728
1789
|
}
|
|
1729
1790
|
}
|
|
1730
1791
|
),
|
|
1731
|
-
/* @__PURE__ */ (0,
|
|
1792
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { align: "center", style: { color }, variant: "caption", children })
|
|
1732
1793
|
] });
|
|
1733
1794
|
}
|
|
1734
1795
|
function ActiveStep(props) {
|
|
@@ -1736,17 +1797,17 @@ function ActiveStep(props) {
|
|
|
1736
1797
|
const { completed, active, index } = (0, import_react12.useContext)(StepContext);
|
|
1737
1798
|
const background = "var(--accent-10)";
|
|
1738
1799
|
const color = "var(--accent-contrast)";
|
|
1739
|
-
return /* @__PURE__ */ (0,
|
|
1740
|
-
Icon ? /* @__PURE__ */ (0,
|
|
1800
|
+
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_jsx_runtime28.Fragment, { children: [
|
|
1801
|
+
Icon ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { active, completed }) : /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
1741
1802
|
Avatar,
|
|
1742
1803
|
{
|
|
1743
|
-
fallback: /* @__PURE__ */ (0,
|
|
1804
|
+
fallback: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { style: { color }, weight: "bold", children: index + 1 }),
|
|
1744
1805
|
radius: "full",
|
|
1745
1806
|
size: "medium",
|
|
1746
1807
|
style: { background }
|
|
1747
1808
|
}
|
|
1748
1809
|
),
|
|
1749
|
-
/* @__PURE__ */ (0,
|
|
1810
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Typo, { align: "center", variant: "caption", weight: "bold", children })
|
|
1750
1811
|
] });
|
|
1751
1812
|
}
|
|
1752
1813
|
var Stepper = {
|
|
@@ -1761,7 +1822,7 @@ var import_react_icons3 = require("@radix-ui/react-icons");
|
|
|
1761
1822
|
// src/atoms/auto-sizing-input.tsx
|
|
1762
1823
|
var import_themes13 = require("@radix-ui/themes");
|
|
1763
1824
|
var import_react13 = require("react");
|
|
1764
|
-
var
|
|
1825
|
+
var import_jsx_runtime29 = require("react/jsx-runtime");
|
|
1765
1826
|
var useTextWidth = (text, font) => {
|
|
1766
1827
|
const [textWidth, setTextWidth] = (0, import_react13.useState)(0);
|
|
1767
1828
|
(0, import_react13.useEffect)(() => {
|
|
@@ -1861,7 +1922,7 @@ var AutoSizingInput = (0, import_react13.forwardRef)(
|
|
|
1861
1922
|
(_a2 = inputRef.current) == null ? void 0 : _a2.focus();
|
|
1862
1923
|
}
|
|
1863
1924
|
}, [inputRef]);
|
|
1864
|
-
return /* @__PURE__ */ (0,
|
|
1925
|
+
return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
1865
1926
|
import_themes13.Box,
|
|
1866
1927
|
{
|
|
1867
1928
|
className: "auto-sizing-input wrapper",
|
|
@@ -1869,7 +1930,7 @@ var AutoSizingInput = (0, import_react13.forwardRef)(
|
|
|
1869
1930
|
minWidth,
|
|
1870
1931
|
onClick,
|
|
1871
1932
|
style: { width: dynamicWidth },
|
|
1872
|
-
children: /* @__PURE__ */ (0,
|
|
1933
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("input", __spreadValues({ onChange: handleChange, ref: inputRef, value }, rest))
|
|
1873
1934
|
}
|
|
1874
1935
|
);
|
|
1875
1936
|
}
|
|
@@ -1879,7 +1940,7 @@ AutoSizingInput.displayName = "AutoSizingInput";
|
|
|
1879
1940
|
// src/atoms/badge.tsx
|
|
1880
1941
|
var import_themes14 = require("@radix-ui/themes");
|
|
1881
1942
|
var import_react14 = require("react");
|
|
1882
|
-
var
|
|
1943
|
+
var import_jsx_runtime30 = require("react/jsx-runtime");
|
|
1883
1944
|
var Badge = (0, import_react14.forwardRef)(
|
|
1884
1945
|
(props, ref) => {
|
|
1885
1946
|
const _a = props, { size = "small", color = "accent" } = _a, rest = __objRest(_a, ["size", "color"]);
|
|
@@ -1908,7 +1969,7 @@ var Badge = (0, import_react14.forwardRef)(
|
|
|
1908
1969
|
return void 0;
|
|
1909
1970
|
}
|
|
1910
1971
|
}, [color]);
|
|
1911
|
-
return /* @__PURE__ */ (0,
|
|
1972
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_themes14.Badge, __spreadProps(__spreadValues({}, rest), { color: radixColor, ref, size: radixSize }));
|
|
1912
1973
|
}
|
|
1913
1974
|
);
|
|
1914
1975
|
Badge.displayName = "Badge";
|
|
@@ -1920,7 +1981,7 @@ var import_themes15 = require("@radix-ui/themes");
|
|
|
1920
1981
|
var import_themes16 = require("@radix-ui/themes");
|
|
1921
1982
|
|
|
1922
1983
|
// src/molecules/tag-selector.tsx
|
|
1923
|
-
var
|
|
1984
|
+
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
1924
1985
|
var OPTION_HEIGHT = 32;
|
|
1925
1986
|
var stopDefaultEvents = (e) => {
|
|
1926
1987
|
e.preventDefault();
|
|
@@ -2110,11 +2171,11 @@ function TagSelector(props) {
|
|
|
2110
2171
|
const focusClassName = focus ? " focused" : "";
|
|
2111
2172
|
const readOnlyClassName = readOnly ? " read-only" : "";
|
|
2112
2173
|
const errorClassName = error ? " error" : "";
|
|
2113
|
-
const readonlyContent = /* @__PURE__ */ (0,
|
|
2114
|
-
return tagRender ? tagRender(item) : /* @__PURE__ */ (0,
|
|
2174
|
+
const readonlyContent = /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_themes.Flex, { gap: "1", children: selectedItem.map((item) => {
|
|
2175
|
+
return tagRender ? tagRender(item) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Badge, { size: badgeSize, children: item.name }, item.id);
|
|
2115
2176
|
}) });
|
|
2116
|
-
const editContent = /* @__PURE__ */ (0,
|
|
2117
|
-
/* @__PURE__ */ (0,
|
|
2177
|
+
const editContent = /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
|
|
2178
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
|
|
2118
2179
|
import_themes.Flex,
|
|
2119
2180
|
{
|
|
2120
2181
|
align: "center",
|
|
@@ -2126,22 +2187,22 @@ function TagSelector(props) {
|
|
|
2126
2187
|
selectedItem.map((item) => {
|
|
2127
2188
|
return tagRender ? tagRender(item, () => {
|
|
2128
2189
|
onDelete(item.id);
|
|
2129
|
-
}) : /* @__PURE__ */ (0,
|
|
2190
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(Badge, { size: badgeSize, children: [
|
|
2130
2191
|
item.name,
|
|
2131
|
-
/* @__PURE__ */ (0,
|
|
2192
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2132
2193
|
Button,
|
|
2133
2194
|
{
|
|
2134
2195
|
onClick: () => {
|
|
2135
2196
|
onDelete(item.id);
|
|
2136
2197
|
},
|
|
2137
2198
|
variant: "transparent",
|
|
2138
|
-
children: /* @__PURE__ */ (0,
|
|
2199
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_icons3.Cross1Icon, {})
|
|
2139
2200
|
}
|
|
2140
2201
|
)
|
|
2141
2202
|
] }, item.id);
|
|
2142
2203
|
}),
|
|
2143
|
-
placeholderVisible ? /* @__PURE__ */ (0,
|
|
2144
|
-
/* @__PURE__ */ (0,
|
|
2204
|
+
placeholderVisible ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Typo, { color: "gray", variant: placeholderVariant, children: placeholder }) : null,
|
|
2205
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2145
2206
|
AutoSizingInput,
|
|
2146
2207
|
{
|
|
2147
2208
|
onBlur,
|
|
@@ -2155,10 +2216,10 @@ function TagSelector(props) {
|
|
|
2155
2216
|
]
|
|
2156
2217
|
}
|
|
2157
2218
|
),
|
|
2158
|
-
focus ? /* @__PURE__ */ (0,
|
|
2219
|
+
focus ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_icons3.MagnifyingGlassIcon, {}) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_icons3.ChevronRightIcon, {})
|
|
2159
2220
|
] });
|
|
2160
|
-
return /* @__PURE__ */ (0,
|
|
2161
|
-
/* @__PURE__ */ (0,
|
|
2221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_themes8.Popover.Root, { open: Boolean(filteredOptions.length) && propsOpen || open, children: [
|
|
2222
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_themes8.Popover.Trigger, { style: { position: "relative" }, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2162
2223
|
import_themes16.Grid,
|
|
2163
2224
|
{
|
|
2164
2225
|
align: "center",
|
|
@@ -2172,7 +2233,7 @@ function TagSelector(props) {
|
|
|
2172
2233
|
children: readOnly ? readonlyContent : editContent
|
|
2173
2234
|
}
|
|
2174
2235
|
) }),
|
|
2175
|
-
/* @__PURE__ */ (0,
|
|
2236
|
+
/* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2176
2237
|
import_themes8.Popover.Content,
|
|
2177
2238
|
{
|
|
2178
2239
|
onOpenAutoFocus: preventDefault,
|
|
@@ -2182,24 +2243,24 @@ function TagSelector(props) {
|
|
|
2182
2243
|
style: {
|
|
2183
2244
|
pointerEvents: "fill"
|
|
2184
2245
|
},
|
|
2185
|
-
children: /* @__PURE__ */ (0,
|
|
2246
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2186
2247
|
DropdownContainer,
|
|
2187
2248
|
{
|
|
2188
2249
|
currentItem: filteredOptions[focusIndex || 0],
|
|
2189
2250
|
items: filteredOptions,
|
|
2190
|
-
children: /* @__PURE__ */ (0,
|
|
2251
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2191
2252
|
import_themes15.ScrollArea,
|
|
2192
2253
|
{
|
|
2193
2254
|
ref: scrollRef,
|
|
2194
2255
|
scrollbars: "vertical",
|
|
2195
2256
|
style: { height: OPTION_HEIGHT * 8 },
|
|
2196
2257
|
type: "auto",
|
|
2197
|
-
children: /* @__PURE__ */ (0,
|
|
2258
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_themes.Flex, { direction: "column", children: filteredOptions.map((item, i) => {
|
|
2198
2259
|
const isSelected = Boolean(
|
|
2199
2260
|
selected.find((el) => el === item.id)
|
|
2200
2261
|
);
|
|
2201
2262
|
const isFocus = i === focusIndex;
|
|
2202
|
-
return /* @__PURE__ */ (0,
|
|
2263
|
+
return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
|
|
2203
2264
|
Button,
|
|
2204
2265
|
{
|
|
2205
2266
|
className: `tag-selector-button ${isFocus ? "focused" : ""}`,
|
|
@@ -2212,9 +2273,9 @@ function TagSelector(props) {
|
|
|
2212
2273
|
setFocusIndex(i);
|
|
2213
2274
|
},
|
|
2214
2275
|
variant: isSelected ? "soft" : "outline",
|
|
2215
|
-
children: /* @__PURE__ */ (0,
|
|
2276
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_themes.Flex, { justify: "between", width: "100%", children: [
|
|
2216
2277
|
dropdownItemRender ? dropdownItemRender(item) : item.name,
|
|
2217
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
2278
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react_icons.CheckIcon, {}) : null
|
|
2218
2279
|
] })
|
|
2219
2280
|
},
|
|
2220
2281
|
item.id
|
|
@@ -2240,16 +2301,16 @@ var preventDefault = (e) => {
|
|
|
2240
2301
|
|
|
2241
2302
|
// src/theme/theme-provider.tsx
|
|
2242
2303
|
var import_themes17 = require("@radix-ui/themes");
|
|
2243
|
-
var
|
|
2304
|
+
var import_jsx_runtime32 = require("react/jsx-runtime");
|
|
2244
2305
|
function ThemeProvider(props) {
|
|
2245
|
-
return /* @__PURE__ */ (0,
|
|
2306
|
+
return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_themes17.Theme, __spreadValues({ accentColor: "iris", radius: "medium" }, props));
|
|
2246
2307
|
}
|
|
2247
2308
|
|
|
2248
2309
|
// src/atoms/aspect-ratio.tsx
|
|
2249
2310
|
var import_themes18 = require("@radix-ui/themes");
|
|
2250
2311
|
|
|
2251
2312
|
// src/molecules/learning-post.tsx
|
|
2252
|
-
var
|
|
2313
|
+
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
2253
2314
|
function LearningPost(props) {
|
|
2254
2315
|
const {
|
|
2255
2316
|
defaultThemeProps,
|
|
@@ -2261,13 +2322,13 @@ function LearningPost(props) {
|
|
|
2261
2322
|
onPageBack,
|
|
2262
2323
|
children
|
|
2263
2324
|
} = props;
|
|
2264
|
-
return /* @__PURE__ */ (0,
|
|
2325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2265
2326
|
ThemeProvider,
|
|
2266
2327
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
2267
2328
|
accentColor: "iris",
|
|
2268
2329
|
scaling: "110%",
|
|
2269
2330
|
style: {},
|
|
2270
|
-
children: html ? /* @__PURE__ */ (0,
|
|
2331
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2271
2332
|
import_themes16.Grid,
|
|
2272
2333
|
{
|
|
2273
2334
|
columns: { initial: "1", md: "130px 1fr 130px" },
|
|
@@ -2279,8 +2340,8 @@ function LearningPost(props) {
|
|
|
2279
2340
|
px: "4",
|
|
2280
2341
|
width: "100%",
|
|
2281
2342
|
children: [
|
|
2282
|
-
/* @__PURE__ */ (0,
|
|
2283
|
-
/* @__PURE__ */ (0,
|
|
2343
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", {}),
|
|
2344
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2284
2345
|
import_themes.Flex,
|
|
2285
2346
|
{
|
|
2286
2347
|
align: "center",
|
|
@@ -2290,15 +2351,15 @@ function LearningPost(props) {
|
|
|
2290
2351
|
overflow: "hidden",
|
|
2291
2352
|
width: "100%",
|
|
2292
2353
|
children: [
|
|
2293
|
-
/* @__PURE__ */ (0,
|
|
2294
|
-
/* @__PURE__ */ (0,
|
|
2354
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(import_themes16.Grid, { align: "start", columns: { initial: "1", sm: "2" }, gap: "2", children: [
|
|
2355
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2295
2356
|
import_themes16.Grid,
|
|
2296
2357
|
{
|
|
2297
2358
|
gap: "3",
|
|
2298
2359
|
mb: { initial: "4", sm: "0" },
|
|
2299
2360
|
style: { alignSelf: "flex-start" },
|
|
2300
2361
|
children: [
|
|
2301
|
-
/* @__PURE__ */ (0,
|
|
2362
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2302
2363
|
Heading2,
|
|
2303
2364
|
{
|
|
2304
2365
|
style: {
|
|
@@ -2310,16 +2371,16 @@ function LearningPost(props) {
|
|
|
2310
2371
|
children: title
|
|
2311
2372
|
}
|
|
2312
2373
|
),
|
|
2313
|
-
/* @__PURE__ */ (0,
|
|
2314
|
-
/* @__PURE__ */ (0,
|
|
2374
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Typo, { children: metaDescription }),
|
|
2375
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_themes.Flex, { gap: "1", wrap: "wrap", children: tags == null ? void 0 : tags.map((el) => {
|
|
2315
2376
|
var _a;
|
|
2316
2377
|
if ((_a = el.name) == null ? void 0 : _a.startsWith("filter")) return;
|
|
2317
|
-
return /* @__PURE__ */ (0,
|
|
2378
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Badge, { size: "large", variant: "solid", children: el.name }, el.id);
|
|
2318
2379
|
}) })
|
|
2319
2380
|
]
|
|
2320
2381
|
}
|
|
2321
2382
|
),
|
|
2322
|
-
/* @__PURE__ */ (0,
|
|
2383
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2323
2384
|
import_themes18.AspectRatio,
|
|
2324
2385
|
{
|
|
2325
2386
|
ratio: 5 / 3,
|
|
@@ -2332,7 +2393,7 @@ function LearningPost(props) {
|
|
|
2332
2393
|
}
|
|
2333
2394
|
)
|
|
2334
2395
|
] }),
|
|
2335
|
-
/* @__PURE__ */ (0,
|
|
2396
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_themes7.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2336
2397
|
"div",
|
|
2337
2398
|
{
|
|
2338
2399
|
className: "gh-content",
|
|
@@ -2345,7 +2406,7 @@ function LearningPost(props) {
|
|
|
2345
2406
|
children
|
|
2346
2407
|
]
|
|
2347
2408
|
}
|
|
2348
|
-
) : /* @__PURE__ */ (0,
|
|
2409
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
2349
2410
|
import_themes.Flex,
|
|
2350
2411
|
{
|
|
2351
2412
|
align: "center",
|
|
@@ -2355,8 +2416,8 @@ function LearningPost(props) {
|
|
|
2355
2416
|
justify: "center",
|
|
2356
2417
|
width: "100%",
|
|
2357
2418
|
children: [
|
|
2358
|
-
/* @__PURE__ */ (0,
|
|
2359
|
-
/* @__PURE__ */ (0,
|
|
2419
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Heading2, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
2420
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
2360
2421
|
Heading2,
|
|
2361
2422
|
{
|
|
2362
2423
|
align: "center",
|
|
@@ -2367,7 +2428,7 @@ function LearningPost(props) {
|
|
|
2367
2428
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
2368
2429
|
}
|
|
2369
2430
|
),
|
|
2370
|
-
/* @__PURE__ */ (0,
|
|
2431
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
2371
2432
|
]
|
|
2372
2433
|
}
|
|
2373
2434
|
)
|
|
@@ -2385,9 +2446,9 @@ var import_themes19 = require("@radix-ui/themes");
|
|
|
2385
2446
|
var import_themes20 = require("@radix-ui/themes");
|
|
2386
2447
|
|
|
2387
2448
|
// src/molecules/force-refresh.tsx
|
|
2388
|
-
var
|
|
2449
|
+
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
2389
2450
|
function CodeSize3(props) {
|
|
2390
|
-
return /* @__PURE__ */ (0,
|
|
2451
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
2391
2452
|
import_themes19.Code,
|
|
2392
2453
|
{
|
|
2393
2454
|
style: {
|
|
@@ -2400,51 +2461,51 @@ function CodeSize3(props) {
|
|
|
2400
2461
|
);
|
|
2401
2462
|
}
|
|
2402
2463
|
function ForceRefresh() {
|
|
2403
|
-
return /* @__PURE__ */ (0,
|
|
2404
|
-
/* @__PURE__ */ (0,
|
|
2464
|
+
return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
2465
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Typo, { children: [
|
|
2405
2466
|
"1. \uD06C\uB86C \uBE0C\uB77C\uC6B0\uC800 \uC624\uB978\uCABD \uC0C1\uB2E8\uC758",
|
|
2406
2467
|
" ",
|
|
2407
|
-
/* @__PURE__ */ (0,
|
|
2408
|
-
/* @__PURE__ */ (0,
|
|
2468
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(CodeSize3, { children: [
|
|
2469
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_icons4.DotsVerticalIcon, { height: "13px" }),
|
|
2409
2470
|
"\uB354\uBCF4\uAE30"
|
|
2410
2471
|
] }),
|
|
2411
2472
|
"\uC544\uC774\uCF58\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2412
2473
|
] }),
|
|
2413
|
-
/* @__PURE__ */ (0,
|
|
2474
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Typo, { children: [
|
|
2414
2475
|
"2. ",
|
|
2415
|
-
/* @__PURE__ */ (0,
|
|
2476
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CodeSize3, { children: "\uB3C4\uAD6C \uB354\uBCF4\uAE30" }),
|
|
2416
2477
|
" ",
|
|
2417
2478
|
">",
|
|
2418
2479
|
" ",
|
|
2419
|
-
/* @__PURE__ */ (0,
|
|
2480
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CodeSize3, { children: "\uAC1C\uBC1C\uC790 \uB3C4\uAD6C" }),
|
|
2420
2481
|
" \uBA54\uB274\uB97C \uC120\uD0DD\uD569\uB2C8\uB2E4. (\uB610\uB294 \uC544\uB798\uC758 \uB2E8\uCD95\uD0A4\uB97C \uC0AC\uC6A9 \uD560 \uC218 \uC788\uC2B5\uB2C8\uB2E4.)"
|
|
2421
2482
|
] }),
|
|
2422
|
-
/* @__PURE__ */ (0,
|
|
2423
|
-
/* @__PURE__ */ (0,
|
|
2483
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(import_themes.Flex, { direction: "column", gap: "3", p: "0", pl: "3", children: [
|
|
2484
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Typo, { children: [
|
|
2424
2485
|
"a. \uC708\uB3C4\uC6B0 \uB2E8\uCD95\uD0A4: ",
|
|
2425
|
-
/* @__PURE__ */ (0,
|
|
2486
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes20.Kbd, { children: "F12" })
|
|
2426
2487
|
] }),
|
|
2427
|
-
/* @__PURE__ */ (0,
|
|
2488
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Typo, { children: [
|
|
2428
2489
|
"b. \uB9E5 \uB2E8\uCD95\uD0A4: ",
|
|
2429
|
-
/* @__PURE__ */ (0,
|
|
2490
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes20.Kbd, { children: "Option" }),
|
|
2430
2491
|
" + ",
|
|
2431
|
-
/* @__PURE__ */ (0,
|
|
2492
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes20.Kbd, { children: "Command" }),
|
|
2432
2493
|
" + ",
|
|
2433
|
-
/* @__PURE__ */ (0,
|
|
2494
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes20.Kbd, { children: "I" })
|
|
2434
2495
|
] })
|
|
2435
2496
|
] }),
|
|
2436
|
-
/* @__PURE__ */ (0,
|
|
2497
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Typo, { children: [
|
|
2437
2498
|
"3. \uAC1C\uBC1C\uC790 \uB3C4\uAD6C\uAC00 \uC5F4\uB9AC\uBA74, \uBE0C\uB77C\uC6B0\uC800 \uC0C1\uB2E8\uC5D0 \uC788\uB294",
|
|
2438
2499
|
" ",
|
|
2439
|
-
/* @__PURE__ */ (0,
|
|
2440
|
-
/* @__PURE__ */ (0,
|
|
2500
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(CodeSize3, { children: [
|
|
2501
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_icons4.ReloadIcon, { style: { paddingRight: "5px" } }),
|
|
2441
2502
|
"\uC0C8\uB85C\uACE0\uCE68 \uBC84\uD2BC"
|
|
2442
2503
|
] }),
|
|
2443
2504
|
"\uC744 \uC6B0\uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2444
2505
|
] }),
|
|
2445
|
-
/* @__PURE__ */ (0,
|
|
2506
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(Typo, { children: [
|
|
2446
2507
|
"4. \uC0C8\uB85C\uACE0\uCE68 \uBA54\uB274\uC5D0\uC11C ",
|
|
2447
|
-
/* @__PURE__ */ (0,
|
|
2508
|
+
/* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CodeSize3, { children: "\uCE90\uC2DC \uBE44\uC6B0\uAE30 \uBC0F \uAC15\uB825 \uC0C8\uB85C\uACE0\uCE68" }),
|
|
2448
2509
|
"\uC744 \uD074\uB9AD\uD569\uB2C8\uB2E4."
|
|
2449
2510
|
] })
|
|
2450
2511
|
] });
|
|
@@ -2458,7 +2519,7 @@ var import_clsx3 = require("clsx");
|
|
|
2458
2519
|
// src/atoms/text-field.tsx
|
|
2459
2520
|
var import_themes21 = require("@radix-ui/themes");
|
|
2460
2521
|
var import_react16 = require("react");
|
|
2461
|
-
var
|
|
2522
|
+
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
2462
2523
|
var Root2 = (0, import_react16.forwardRef)((props, ref) => {
|
|
2463
2524
|
const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
|
|
2464
2525
|
const fieldStyle = (0, import_react16.useMemo)(() => {
|
|
@@ -2469,7 +2530,7 @@ var Root2 = (0, import_react16.forwardRef)((props, ref) => {
|
|
|
2469
2530
|
return __spreadValues(__spreadValues({}, style || {}), errorStyle);
|
|
2470
2531
|
}, [error, style]);
|
|
2471
2532
|
const classNameStr = error ? `error ${className}` : className;
|
|
2472
|
-
return /* @__PURE__ */ (0,
|
|
2533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
2473
2534
|
import_themes21.TextField.Root,
|
|
2474
2535
|
__spreadValues({
|
|
2475
2536
|
className: classNameStr,
|
|
@@ -2482,7 +2543,7 @@ Root2.displayName = "TextField.Root";
|
|
|
2482
2543
|
var TextField = { Root: Root2, Slot: import_themes21.TextField.Slot };
|
|
2483
2544
|
|
|
2484
2545
|
// src/molecules/date-picker/date-picker-button.tsx
|
|
2485
|
-
var
|
|
2546
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2486
2547
|
function DatePickerButton(props) {
|
|
2487
2548
|
const _a = props, { size, format: formatProps, disabled } = _a, rest = __objRest(_a, ["size", "format", "disabled"]);
|
|
2488
2549
|
const placeholder = rest.placeholder || "\uB0A0\uC9DC\uB97C \uC120\uD0DD\uD574\uC8FC\uC138\uC694";
|
|
@@ -2506,18 +2567,18 @@ function DatePickerButton(props) {
|
|
|
2506
2567
|
const placeholderVisible = (0, import_react17.useMemo)(() => {
|
|
2507
2568
|
return rest.selected ? "" : "placeholder-visible";
|
|
2508
2569
|
}, [rest.selected]);
|
|
2509
|
-
return /* @__PURE__ */ (0,
|
|
2570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_themes7.Box, { p: "0", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
2510
2571
|
DatePicker,
|
|
2511
2572
|
__spreadProps(__spreadValues({
|
|
2512
|
-
customInput: /* @__PURE__ */ (0,
|
|
2573
|
+
customInput: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Button, __spreadProps(__spreadValues({ asChild: true, className, type: "button" }, buttonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
|
|
2513
2574
|
TextField.Root,
|
|
2514
2575
|
{
|
|
2515
2576
|
className: placeholderVisible,
|
|
2516
2577
|
placeholder: placeholder || "",
|
|
2517
2578
|
value: rest.selected ? selectFormat(rest.selected) : placeholder,
|
|
2518
2579
|
children: [
|
|
2519
|
-
/* @__PURE__ */ (0,
|
|
2520
|
-
/* @__PURE__ */ (0,
|
|
2580
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TextField.Slot, { className: "hide-slot" }),
|
|
2581
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(TextField.Slot, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_icons.CalendarIcon, {}) })
|
|
2521
2582
|
]
|
|
2522
2583
|
}
|
|
2523
2584
|
) })),
|
|
@@ -2535,7 +2596,7 @@ var import_date_fns2 = require("date-fns");
|
|
|
2535
2596
|
// src/atoms/select.tsx
|
|
2536
2597
|
var import_themes22 = require("@radix-ui/themes");
|
|
2537
2598
|
var import_react18 = require("react");
|
|
2538
|
-
var
|
|
2599
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
2539
2600
|
var SelectContext = (0, import_react18.createContext)({
|
|
2540
2601
|
error: false
|
|
2541
2602
|
});
|
|
@@ -2547,7 +2608,7 @@ var Content = (0, import_react18.forwardRef)((props, ref) => {
|
|
|
2547
2608
|
const errorCls = error ? "tipp-error" : "";
|
|
2548
2609
|
return [etc, errorCls, className].join(" ");
|
|
2549
2610
|
}, [className, error, isNavigation]);
|
|
2550
|
-
return /* @__PURE__ */ (0,
|
|
2611
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
2551
2612
|
import_themes22.Select.Content,
|
|
2552
2613
|
__spreadProps(__spreadValues({
|
|
2553
2614
|
position: "popper"
|
|
@@ -2566,13 +2627,13 @@ var Trigger = (0, import_react18.forwardRef)(
|
|
|
2566
2627
|
const errorCls = error ? "error" : "";
|
|
2567
2628
|
return [errorCls, className].join(" ");
|
|
2568
2629
|
}, [className, error]);
|
|
2569
|
-
return /* @__PURE__ */ (0,
|
|
2630
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes22.Select.Trigger, __spreadProps(__spreadValues({}, rest), { className: cls, ref }));
|
|
2570
2631
|
}
|
|
2571
2632
|
);
|
|
2572
2633
|
Trigger.displayName = "Select.Trigger";
|
|
2573
2634
|
function Root3(props) {
|
|
2574
2635
|
const _a = props, { error } = _a, rest = __objRest(_a, ["error"]);
|
|
2575
|
-
return /* @__PURE__ */ (0,
|
|
2636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SelectContext.Provider, { value: { error }, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_themes22.Select.Root, __spreadValues({}, rest)) });
|
|
2576
2637
|
}
|
|
2577
2638
|
Root3.displayName = "Select.Root";
|
|
2578
2639
|
var Select = __spreadProps(__spreadValues({}, import_themes22.Select), {
|
|
@@ -2670,7 +2731,7 @@ function getDynamicFormDisplayValue(field, value) {
|
|
|
2670
2731
|
}
|
|
2671
2732
|
|
|
2672
2733
|
// src/molecules/time-select.tsx
|
|
2673
|
-
var
|
|
2734
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
2674
2735
|
var getOptionValue = (date, timeValue) => {
|
|
2675
2736
|
if (date && timeValue) {
|
|
2676
2737
|
if ((0, import_date_fns2.format)(date, "yyyyMMdd") === (0, import_date_fns2.format)(timeValue, "yyyyMMdd")) {
|
|
@@ -2696,14 +2757,14 @@ function TimeSelect(_a) {
|
|
|
2696
2757
|
const [minOption, maxOption] = (0, import_react19.useMemo)(() => {
|
|
2697
2758
|
return [getOptionValue(minTime, time), getOptionValue(maxTime, time)];
|
|
2698
2759
|
}, [maxTime, minTime, time]);
|
|
2699
|
-
return /* @__PURE__ */ (0,
|
|
2700
|
-
/* @__PURE__ */ (0,
|
|
2701
|
-
/* @__PURE__ */ (0,
|
|
2760
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(Select.Root, __spreadProps(__spreadValues({ value }, rest), { children: [
|
|
2761
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_themes.Flex, { direction: "column", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Select.Trigger, { placeholder: "- ", style: { minWidth: "100px" }, children: value }) }),
|
|
2762
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Select.Content, { children: timeOptions.map((option) => {
|
|
2702
2763
|
const visible = (!minOption || option >= minOption) && (!maxOption || option <= maxOption);
|
|
2703
2764
|
if (!visible) {
|
|
2704
2765
|
return null;
|
|
2705
2766
|
}
|
|
2706
|
-
return /* @__PURE__ */ (0,
|
|
2767
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Select.Item, { value: option, children: option }, option);
|
|
2707
2768
|
}) })
|
|
2708
2769
|
] }));
|
|
2709
2770
|
}
|
|
@@ -2718,7 +2779,7 @@ var import_themes23 = require("@radix-ui/themes");
|
|
|
2718
2779
|
var import_themes24 = require("@radix-ui/themes");
|
|
2719
2780
|
|
|
2720
2781
|
// src/molecules/radio-button-card.tsx
|
|
2721
|
-
var
|
|
2782
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
2722
2783
|
var RadioCardContext = (0, import_react20.createContext)({});
|
|
2723
2784
|
function Root4(props) {
|
|
2724
2785
|
const [value, setValue] = (0, import_react20.useState)(props.value || props.defaultValue);
|
|
@@ -2730,7 +2791,7 @@ function Root4(props) {
|
|
|
2730
2791
|
},
|
|
2731
2792
|
[props]
|
|
2732
2793
|
);
|
|
2733
|
-
return /* @__PURE__ */ (0,
|
|
2794
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(RadioCardContext.Provider, { value: __spreadProps(__spreadValues({}, props), { value }), children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_themes23.RadioCards.Root, __spreadProps(__spreadValues({}, props), { onValueChange })) });
|
|
2734
2795
|
}
|
|
2735
2796
|
function Item(_a) {
|
|
2736
2797
|
var _b = _a, {
|
|
@@ -2747,9 +2808,9 @@ function Item(_a) {
|
|
|
2747
2808
|
"justify",
|
|
2748
2809
|
"RadioWrapper"
|
|
2749
2810
|
]);
|
|
2750
|
-
return /* @__PURE__ */ (0,
|
|
2811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_themes23.RadioCards.Item, __spreadProps(__spreadValues({}, itemRest), { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_themes.Flex, { align: "center", justify: justify || "between", width: "100%", children: [
|
|
2751
2812
|
children,
|
|
2752
|
-
/* @__PURE__ */ (0,
|
|
2813
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(RadioWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
2753
2814
|
import_themes24.Radio,
|
|
2754
2815
|
{
|
|
2755
2816
|
checked: itemRest.value === value,
|
|
@@ -2771,7 +2832,7 @@ var import_react_icons5 = require("@radix-ui/react-icons");
|
|
|
2771
2832
|
var import_themes25 = require("@radix-ui/themes");
|
|
2772
2833
|
var import_react21 = require("react");
|
|
2773
2834
|
var import_themes26 = require("@radix-ui/themes");
|
|
2774
|
-
var
|
|
2835
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
2775
2836
|
function Link(props) {
|
|
2776
2837
|
const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
|
|
2777
2838
|
const radixSize = (0, import_react21.useMemo)(() => {
|
|
@@ -2786,28 +2847,28 @@ function Link(props) {
|
|
|
2786
2847
|
return size;
|
|
2787
2848
|
}
|
|
2788
2849
|
}, [size, variant]);
|
|
2789
|
-
return /* @__PURE__ */ (0,
|
|
2850
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_themes25.Link, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
|
|
2790
2851
|
}
|
|
2791
2852
|
|
|
2792
2853
|
// src/molecules/download-card.tsx
|
|
2793
|
-
var
|
|
2854
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
2794
2855
|
function DownloadCard({
|
|
2795
2856
|
fileName,
|
|
2796
2857
|
url,
|
|
2797
2858
|
createdAt,
|
|
2798
2859
|
size
|
|
2799
2860
|
}) {
|
|
2800
|
-
return /* @__PURE__ */ (0,
|
|
2861
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Link, { download: fileName, href: url, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2801
2862
|
IconButton,
|
|
2802
2863
|
{
|
|
2803
2864
|
mt: "3",
|
|
2804
2865
|
size: "large",
|
|
2805
2866
|
style: { width: "100%", height: 56 },
|
|
2806
2867
|
variant: "soft",
|
|
2807
|
-
children: /* @__PURE__ */ (0,
|
|
2808
|
-
/* @__PURE__ */ (0,
|
|
2809
|
-
/* @__PURE__ */ (0,
|
|
2810
|
-
/* @__PURE__ */ (0,
|
|
2868
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_themes.Flex, { align: "center", gap: "3", pl: "4", width: "100%", children: [
|
|
2869
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Typo, { color: "gray", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_react_icons5.DownloadIcon, { height: 20, width: 20 }) }),
|
|
2870
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_themes.Flex, { align: "start", direction: "column", gap: "1", children: [
|
|
2871
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
|
|
2811
2872
|
Typo,
|
|
2812
2873
|
{
|
|
2813
2874
|
style: {
|
|
@@ -2817,7 +2878,7 @@ function DownloadCard({
|
|
|
2817
2878
|
children: fileName
|
|
2818
2879
|
}
|
|
2819
2880
|
),
|
|
2820
|
-
/* @__PURE__ */ (0,
|
|
2881
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Typo, { color: "gray", variant: "caption", children: size })
|
|
2821
2882
|
] })
|
|
2822
2883
|
] })
|
|
2823
2884
|
}
|
|
@@ -2825,22 +2886,22 @@ function DownloadCard({
|
|
|
2825
2886
|
}
|
|
2826
2887
|
|
|
2827
2888
|
// src/molecules/ghost-post.tsx
|
|
2828
|
-
var
|
|
2889
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
2829
2890
|
function GhostPost(props) {
|
|
2830
2891
|
const { defaultThemeProps, html, onPageBack } = props;
|
|
2831
|
-
return /* @__PURE__ */ (0,
|
|
2892
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2832
2893
|
ThemeProvider,
|
|
2833
2894
|
__spreadProps(__spreadValues({}, defaultThemeProps), {
|
|
2834
2895
|
accentColor: "iris",
|
|
2835
2896
|
scaling: "110%",
|
|
2836
2897
|
style: {},
|
|
2837
|
-
children: html ? /* @__PURE__ */ (0,
|
|
2898
|
+
children: html ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_themes7.Box, { mt: "5", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2838
2899
|
"div",
|
|
2839
2900
|
{
|
|
2840
2901
|
className: "gh-content",
|
|
2841
2902
|
dangerouslySetInnerHTML: { __html: html }
|
|
2842
2903
|
}
|
|
2843
|
-
) }) : /* @__PURE__ */ (0,
|
|
2904
|
+
) }) : /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
2844
2905
|
import_themes.Flex,
|
|
2845
2906
|
{
|
|
2846
2907
|
align: "center",
|
|
@@ -2850,8 +2911,8 @@ function GhostPost(props) {
|
|
|
2850
2911
|
justify: "center",
|
|
2851
2912
|
width: "100%",
|
|
2852
2913
|
children: [
|
|
2853
|
-
/* @__PURE__ */ (0,
|
|
2854
|
-
/* @__PURE__ */ (0,
|
|
2914
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Heading2, { variant: "heading1", children: "\uCF58\uD150\uCE20\uB97C \uCC3E\uC744 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4." }),
|
|
2915
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
2855
2916
|
Heading2,
|
|
2856
2917
|
{
|
|
2857
2918
|
align: "center",
|
|
@@ -2862,7 +2923,7 @@ function GhostPost(props) {
|
|
|
2862
2923
|
\uC7A0\uC2DC \uD6C4 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694.`
|
|
2863
2924
|
}
|
|
2864
2925
|
),
|
|
2865
|
-
/* @__PURE__ */ (0,
|
|
2926
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Button, { onClick: onPageBack, size: "large", children: "\uB4A4\uB85C\uAC00\uAE30" })
|
|
2866
2927
|
]
|
|
2867
2928
|
}
|
|
2868
2929
|
)
|
|
@@ -2872,7 +2933,7 @@ function GhostPost(props) {
|
|
|
2872
2933
|
|
|
2873
2934
|
// src/molecules/curriculumV2/curriculum-context.tsx
|
|
2874
2935
|
var import_react22 = require("react");
|
|
2875
|
-
var
|
|
2936
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
2876
2937
|
var EMPTY_SELECTED_ITEM = {
|
|
2877
2938
|
uuid: "",
|
|
2878
2939
|
type: "sectionTitle",
|
|
@@ -3011,7 +3072,7 @@ function CurriculumProvider(props) {
|
|
|
3011
3072
|
if (item.type === "sectionTitle") return;
|
|
3012
3073
|
onChangeSelectedContent == null ? void 0 : onChangeSelectedContent(item);
|
|
3013
3074
|
}, [list, onChangeSelectedContent, selectedIndexState]);
|
|
3014
|
-
return /* @__PURE__ */ (0,
|
|
3075
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
3015
3076
|
CurriculumContext.Provider,
|
|
3016
3077
|
{
|
|
3017
3078
|
value: {
|
|
@@ -3051,7 +3112,7 @@ function useCurriculumContext() {
|
|
|
3051
3112
|
|
|
3052
3113
|
// src/molecules/curriculumV2/curriculum-sub-nav.tsx
|
|
3053
3114
|
var import_react23 = require("react");
|
|
3054
|
-
var
|
|
3115
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
3055
3116
|
function CurriculumSubNav() {
|
|
3056
3117
|
const {
|
|
3057
3118
|
selectedItem,
|
|
@@ -3072,7 +3133,7 @@ function CurriculumSubNav() {
|
|
|
3072
3133
|
scrollNavItem(moveIndex.toString());
|
|
3073
3134
|
});
|
|
3074
3135
|
}, [selectNext, scrollNavItem]);
|
|
3075
|
-
return /* @__PURE__ */ (0,
|
|
3136
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
|
|
3076
3137
|
import_themes16.Grid,
|
|
3077
3138
|
{
|
|
3078
3139
|
align: "center",
|
|
@@ -3082,20 +3143,20 @@ function CurriculumSubNav() {
|
|
|
3082
3143
|
py: "2",
|
|
3083
3144
|
rows: "auto",
|
|
3084
3145
|
children: [
|
|
3085
|
-
hasPrev ? /* @__PURE__ */ (0,
|
|
3146
|
+
hasPrev ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3086
3147
|
IconButton,
|
|
3087
3148
|
{
|
|
3088
3149
|
color: "gray",
|
|
3089
3150
|
onClick: onClickPrev,
|
|
3090
3151
|
size: { initial: "medium", md: "large" },
|
|
3091
3152
|
variant: "ghost",
|
|
3092
|
-
children: /* @__PURE__ */ (0,
|
|
3153
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_icons.ChevronLeftIcon, { height: "16px", width: "16px" })
|
|
3093
3154
|
}
|
|
3094
|
-
) : /* @__PURE__ */ (0,
|
|
3095
|
-
/* @__PURE__ */ (0,
|
|
3096
|
-
/* @__PURE__ */ (0,
|
|
3097
|
-
/* @__PURE__ */ (0,
|
|
3098
|
-
/* @__PURE__ */ (0,
|
|
3155
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes7.Box, {}),
|
|
3156
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_themes7.Box, { width: "100%", children: [
|
|
3157
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes7.Box, { display: { initial: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Heading2, { style: { textOverflow: "ellipsis" }, variant: "heading5", children: selectedItem.title }) }),
|
|
3158
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes7.Box, { display: { initial: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Typo, { weight: "bold", children: selectedItem.title }) }),
|
|
3159
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3099
3160
|
Typo,
|
|
3100
3161
|
{
|
|
3101
3162
|
as: "p",
|
|
@@ -3107,16 +3168,16 @@ function CurriculumSubNav() {
|
|
|
3107
3168
|
}
|
|
3108
3169
|
)
|
|
3109
3170
|
] }),
|
|
3110
|
-
hasNext ? /* @__PURE__ */ (0,
|
|
3171
|
+
hasNext ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
|
|
3111
3172
|
IconButton,
|
|
3112
3173
|
{
|
|
3113
3174
|
color: "gray",
|
|
3114
3175
|
onClick: onClickNext,
|
|
3115
3176
|
size: { initial: "medium", md: "large" },
|
|
3116
3177
|
variant: "ghost",
|
|
3117
|
-
children: /* @__PURE__ */ (0,
|
|
3178
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react_icons.ChevronRightIcon, { height: "16px", width: "16px" })
|
|
3118
3179
|
}
|
|
3119
|
-
) : /* @__PURE__ */ (0,
|
|
3180
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_themes7.Box, {})
|
|
3120
3181
|
]
|
|
3121
3182
|
}
|
|
3122
3183
|
);
|
|
@@ -3124,12 +3185,12 @@ function CurriculumSubNav() {
|
|
|
3124
3185
|
|
|
3125
3186
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-video.tsx
|
|
3126
3187
|
var import_react24 = require("react");
|
|
3127
|
-
var
|
|
3188
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
3128
3189
|
function CurriculumVideo(props) {
|
|
3129
3190
|
const { item } = props;
|
|
3130
3191
|
const { url } = item;
|
|
3131
3192
|
const [isLoading, setIsLoading] = (0, import_react24.useState)(true);
|
|
3132
|
-
return /* @__PURE__ */ (0,
|
|
3193
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
|
|
3133
3194
|
import_themes.Flex,
|
|
3134
3195
|
{
|
|
3135
3196
|
align: "center",
|
|
@@ -3141,7 +3202,7 @@ function CurriculumVideo(props) {
|
|
|
3141
3202
|
position: "relative"
|
|
3142
3203
|
},
|
|
3143
3204
|
children: [
|
|
3144
|
-
isLoading ? /* @__PURE__ */ (0,
|
|
3205
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3145
3206
|
import_themes.Flex,
|
|
3146
3207
|
{
|
|
3147
3208
|
align: "center",
|
|
@@ -3156,10 +3217,10 @@ function CurriculumVideo(props) {
|
|
|
3156
3217
|
color: "white"
|
|
3157
3218
|
},
|
|
3158
3219
|
width: "100%",
|
|
3159
|
-
children: /* @__PURE__ */ (0,
|
|
3220
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_themes4.Spinner, { size: "3", style: { width: 48, height: 48 } })
|
|
3160
3221
|
}
|
|
3161
3222
|
) : null,
|
|
3162
|
-
/* @__PURE__ */ (0,
|
|
3223
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
|
|
3163
3224
|
"iframe",
|
|
3164
3225
|
{
|
|
3165
3226
|
allowFullScreen: true,
|
|
@@ -3192,7 +3253,7 @@ var import_react26 = require("react");
|
|
|
3192
3253
|
|
|
3193
3254
|
// src/theme/portal-provider.tsx
|
|
3194
3255
|
var import_react25 = require("react");
|
|
3195
|
-
var
|
|
3256
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
3196
3257
|
var PortalContext = (0, import_react25.createContext)(
|
|
3197
3258
|
null
|
|
3198
3259
|
);
|
|
@@ -3206,7 +3267,7 @@ var usePortalContainer = () => {
|
|
|
3206
3267
|
};
|
|
3207
3268
|
|
|
3208
3269
|
// src/atoms/dialog.tsx
|
|
3209
|
-
var
|
|
3270
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
3210
3271
|
var preventDefault2 = (e) => {
|
|
3211
3272
|
e.preventDefault();
|
|
3212
3273
|
};
|
|
@@ -3241,7 +3302,7 @@ function Content3(props) {
|
|
|
3241
3302
|
"className"
|
|
3242
3303
|
]);
|
|
3243
3304
|
const { dialogContainerRef } = usePortalContainer();
|
|
3244
|
-
return /* @__PURE__ */ (0,
|
|
3305
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RadixDialog.Portal, { container: dialogContainerRef.current, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes27.Theme, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RadixDialog.Overlay, { className: "rt-BaseDialogScroll rt-DialogScroll DialogOverlay", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
|
|
3245
3306
|
RadixDialog.Content,
|
|
3246
3307
|
__spreadProps(__spreadValues({
|
|
3247
3308
|
className: `DialogContent ${className || ""} rt-BaseDialogContent rt-DialogContent rt-r-size-${size || "3"}`,
|
|
@@ -3256,12 +3317,12 @@ function Content3(props) {
|
|
|
3256
3317
|
}, style)
|
|
3257
3318
|
}, rest), {
|
|
3258
3319
|
children: [
|
|
3259
|
-
/* @__PURE__ */ (0,
|
|
3260
|
-
/* @__PURE__ */ (0,
|
|
3261
|
-
!hideCloseButton && /* @__PURE__ */ (0,
|
|
3320
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_themes27.Flex, { gap: "2", justify: "between", width: "100%", children: [
|
|
3321
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RadixDialog.Title, { asChild: true, children: typeof title === "string" && title !== "" ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Heading2, { mb: "2", variant: "heading3", children: title }) : title }),
|
|
3322
|
+
!hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_icons6.Cross1Icon, {}) }) })
|
|
3262
3323
|
] }),
|
|
3263
3324
|
children,
|
|
3264
|
-
buttons ? /* @__PURE__ */ (0,
|
|
3325
|
+
buttons ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_themes27.Flex, { gap: "3", justify: "end", mt: "3", width: "100%", children: buttons }) : null
|
|
3265
3326
|
]
|
|
3266
3327
|
})
|
|
3267
3328
|
) }) }) });
|
|
@@ -3272,7 +3333,7 @@ function Close2(_a) {
|
|
|
3272
3333
|
} = _b, rest = __objRest(_b, [
|
|
3273
3334
|
"children"
|
|
3274
3335
|
]);
|
|
3275
|
-
return /* @__PURE__ */ (0,
|
|
3336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
3276
3337
|
}
|
|
3277
3338
|
function Trigger3(_a) {
|
|
3278
3339
|
var _b = _a, {
|
|
@@ -3280,7 +3341,7 @@ function Trigger3(_a) {
|
|
|
3280
3341
|
} = _b, rest = __objRest(_b, [
|
|
3281
3342
|
"children"
|
|
3282
3343
|
]);
|
|
3283
|
-
return /* @__PURE__ */ (0,
|
|
3344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
|
|
3284
3345
|
}
|
|
3285
3346
|
function Root6(props) {
|
|
3286
3347
|
const prevOpenRef = (0, import_react26.useRef)(void 0);
|
|
@@ -3315,7 +3376,7 @@ function Root6(props) {
|
|
|
3315
3376
|
}
|
|
3316
3377
|
};
|
|
3317
3378
|
}, []);
|
|
3318
|
-
return /* @__PURE__ */ (0,
|
|
3379
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(RadixDialog.Root, __spreadValues({}, props));
|
|
3319
3380
|
}
|
|
3320
3381
|
var Dialog = {
|
|
3321
3382
|
Root: Root6,
|
|
@@ -3331,7 +3392,7 @@ var import_react27 = require("react");
|
|
|
3331
3392
|
var import_formik = require("formik");
|
|
3332
3393
|
var import_lodash_es = require("lodash-es");
|
|
3333
3394
|
var Yup = __toESM(require("yup"), 1);
|
|
3334
|
-
var
|
|
3395
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
3335
3396
|
var CurriculumReviewContext = (0, import_react27.createContext)(void 0);
|
|
3336
3397
|
function getInitialAnswers(defaultValues, questions) {
|
|
3337
3398
|
return questions.reduce((acc, q) => {
|
|
@@ -3460,7 +3521,7 @@ function CurriculumReviewProvider({
|
|
|
3460
3521
|
});
|
|
3461
3522
|
}
|
|
3462
3523
|
}, [currentQuestion == null ? void 0 : currentQuestion.uuid, currentAnswer, onReviewValueChange]);
|
|
3463
|
-
return /* @__PURE__ */ (0,
|
|
3524
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
|
|
3464
3525
|
CurriculumReviewContext.Provider,
|
|
3465
3526
|
{
|
|
3466
3527
|
value: {
|
|
@@ -3582,7 +3643,7 @@ var getCurriculumContentSubTypeText = (type) => {
|
|
|
3582
3643
|
};
|
|
3583
3644
|
|
|
3584
3645
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/start-review.tsx
|
|
3585
|
-
var
|
|
3646
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
3586
3647
|
var renderPreviewContent = (args) => {
|
|
3587
3648
|
const { question } = args;
|
|
3588
3649
|
const Icon = getCurriculumIcon({
|
|
@@ -3595,7 +3656,7 @@ var renderPreviewContent = (args) => {
|
|
|
3595
3656
|
question.duration ? `${question.duration}\uBD84` : ""
|
|
3596
3657
|
].filter(Boolean).join(" | ");
|
|
3597
3658
|
};
|
|
3598
|
-
return /* @__PURE__ */ (0,
|
|
3659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
3599
3660
|
import_themes16.Grid,
|
|
3600
3661
|
{
|
|
3601
3662
|
columns: "16px 1fr",
|
|
@@ -3604,10 +3665,10 @@ var renderPreviewContent = (args) => {
|
|
|
3604
3665
|
py: "2",
|
|
3605
3666
|
width: "100%",
|
|
3606
3667
|
children: [
|
|
3607
|
-
/* @__PURE__ */ (0,
|
|
3608
|
-
/* @__PURE__ */ (0,
|
|
3609
|
-
/* @__PURE__ */ (0,
|
|
3610
|
-
/* @__PURE__ */ (0,
|
|
3668
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes7.Box, { mt: "1", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { color: getCurriculumQuestionIconColor(question.type) }) }),
|
|
3669
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_themes7.Box, { children: [
|
|
3670
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { as: "p", color: "gray", weight: "bold", children: question.title }),
|
|
3671
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { color: "gray", children: getDescription() })
|
|
3611
3672
|
] })
|
|
3612
3673
|
]
|
|
3613
3674
|
},
|
|
@@ -3630,7 +3691,7 @@ var renderReviewContent = (args) => {
|
|
|
3630
3691
|
const color = getCurriculumQuestionIconColor(question.type);
|
|
3631
3692
|
const badgeColor = ["question_radio", "question_satisfaction_option"].includes(question.type) ? "accent" : "neutral";
|
|
3632
3693
|
const value = getReviewContentValue(question, answer);
|
|
3633
|
-
return /* @__PURE__ */ (0,
|
|
3694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
3634
3695
|
import_themes16.Grid,
|
|
3635
3696
|
{
|
|
3636
3697
|
columns: "16px 1fr",
|
|
@@ -3639,10 +3700,10 @@ var renderReviewContent = (args) => {
|
|
|
3639
3700
|
py: "2",
|
|
3640
3701
|
width: "100%",
|
|
3641
3702
|
children: [
|
|
3642
|
-
/* @__PURE__ */ (0,
|
|
3643
|
-
/* @__PURE__ */ (0,
|
|
3644
|
-
/* @__PURE__ */ (0,
|
|
3645
|
-
/* @__PURE__ */ (0,
|
|
3703
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes7.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { color }) }),
|
|
3704
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_themes7.Box, { children: [
|
|
3705
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { as: "p", color: "gray", mb: "2", weight: "bold", children: question.title }),
|
|
3706
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Badge, { color: badgeColor, size: "large", style: { whiteSpace: "break-spaces", lineBreak: "anywhere" }, children: value || "(\uBBF8 \uC751\uB2F5)" })
|
|
3646
3707
|
] })
|
|
3647
3708
|
]
|
|
3648
3709
|
},
|
|
@@ -3651,7 +3712,7 @@ var renderReviewContent = (args) => {
|
|
|
3651
3712
|
};
|
|
3652
3713
|
function StartReview({ onStart }) {
|
|
3653
3714
|
const { curriculum, reviewContents, sectionTitle, done, formik } = useCurriculumReviewContext();
|
|
3654
|
-
return /* @__PURE__ */ (0,
|
|
3715
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
3655
3716
|
import_themes.Flex,
|
|
3656
3717
|
{
|
|
3657
3718
|
align: "center",
|
|
@@ -3659,7 +3720,7 @@ function StartReview({ onStart }) {
|
|
|
3659
3720
|
height: "100%",
|
|
3660
3721
|
justify: "center",
|
|
3661
3722
|
width: "100%",
|
|
3662
|
-
children: /* @__PURE__ */ (0,
|
|
3723
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
|
|
3663
3724
|
import_themes.Flex,
|
|
3664
3725
|
{
|
|
3665
3726
|
align: "center",
|
|
@@ -3672,21 +3733,21 @@ function StartReview({ onStart }) {
|
|
|
3672
3733
|
px: { initial: "4", sm: "0" },
|
|
3673
3734
|
width: "100%",
|
|
3674
3735
|
children: [
|
|
3675
|
-
/* @__PURE__ */ (0,
|
|
3676
|
-
/* @__PURE__ */ (0,
|
|
3677
|
-
/* @__PURE__ */ (0,
|
|
3678
|
-
/* @__PURE__ */ (0,
|
|
3679
|
-
/* @__PURE__ */ (0,
|
|
3736
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { color: "gray", mb: "1", children: curriculum.title }),
|
|
3737
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Heading2, { variant: "heading3", children: reviewContents.title }),
|
|
3738
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes28.Separator, { my: "4", style: { width: 100 } }),
|
|
3739
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(Typo, { align: "left", as: "p", color: "gray", mb: "4", children: [
|
|
3740
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { as: "span", weight: "bold", children: sectionTitle }),
|
|
3680
3741
|
" ",
|
|
3681
|
-
/* @__PURE__ */ (0,
|
|
3742
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Typo, { children: reviewContents.description })
|
|
3682
3743
|
] }),
|
|
3683
|
-
/* @__PURE__ */ (0,
|
|
3744
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_themes7.Box, { mb: "5", overflowY: "auto", width: "100%", children: reviewContents.questions.map((question) => {
|
|
3684
3745
|
if (done) {
|
|
3685
3746
|
return renderReviewContent({ question, answer: formik.values.answers[question.uuid] });
|
|
3686
3747
|
}
|
|
3687
3748
|
return renderPreviewContent({ question });
|
|
3688
3749
|
}) }),
|
|
3689
|
-
/* @__PURE__ */ (0,
|
|
3750
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Button, { color: "yellow", onClick: onStart, variant: done ? "outline" : "solid", children: done ? "\uB098\uC758 \uC751\uB2F5 \uC218\uC815\uD558\uAE30" : reviewContents.buttonTitle })
|
|
3690
3751
|
]
|
|
3691
3752
|
}
|
|
3692
3753
|
)
|
|
@@ -3696,13 +3757,13 @@ function StartReview({ onStart }) {
|
|
|
3696
3757
|
var start_review_default = StartReview;
|
|
3697
3758
|
|
|
3698
3759
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/complete-review.tsx
|
|
3699
|
-
var
|
|
3760
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
3700
3761
|
var THANKS_IMAGE_S3_URL = "https://tipp-coaching-live.s3.ap-northeast-2.amazonaws.com/images/curriculum_review_thanks.svg";
|
|
3701
3762
|
function CompleteReview(props) {
|
|
3702
3763
|
const { onClickReviewMyAnswer } = props;
|
|
3703
3764
|
const { reviewContents, sectionTitle, curriculum, onClickEndReview: onClickNextContents } = useCurriculumReviewContext();
|
|
3704
3765
|
const { reviewMeta } = curriculum.contents;
|
|
3705
|
-
return /* @__PURE__ */ (0,
|
|
3766
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
3706
3767
|
import_themes.Flex,
|
|
3707
3768
|
{
|
|
3708
3769
|
align: "center",
|
|
@@ -3715,9 +3776,9 @@ function CompleteReview(props) {
|
|
|
3715
3776
|
my: "6",
|
|
3716
3777
|
width: "100%",
|
|
3717
3778
|
children: [
|
|
3718
|
-
/* @__PURE__ */ (0,
|
|
3719
|
-
/* @__PURE__ */ (0,
|
|
3720
|
-
/* @__PURE__ */ (0,
|
|
3779
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_themes.Flex, { align: "center", direction: "column", children: [
|
|
3780
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Heading2, { mb: "6", variant: "heading5", weight: "regular", children: (reviewMeta == null ? void 0 : reviewMeta.endReviewTopTitle) || "\uC751\uB2F5\uC744 \uC131\uACF5\uC801\uC73C\uB85C \uC81C\uCD9C\uD588\uC2B5\uB2C8\uB2E4" }),
|
|
3781
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
3721
3782
|
"img",
|
|
3722
3783
|
{
|
|
3723
3784
|
alt: "complete-review",
|
|
@@ -3726,19 +3787,19 @@ function CompleteReview(props) {
|
|
|
3726
3787
|
width: 118
|
|
3727
3788
|
}
|
|
3728
3789
|
),
|
|
3729
|
-
/* @__PURE__ */ (0,
|
|
3730
|
-
/* @__PURE__ */ (0,
|
|
3731
|
-
/* @__PURE__ */ (0,
|
|
3790
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Typo, { color: "gray", mt: "6", variant: "caption", children: sectionTitle }),
|
|
3791
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Heading2, { variant: "heading5", children: reviewContents.title }),
|
|
3792
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.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.
|
|
3732
3793
|
\uC55E\uC73C\uB85C \uC788\uC744 \uB9AC\uB354\uB2D8\uC758 \uC131\uC7A5\uC744 \uAE30\uB300\uD569\uB2C8\uB2E4.` })
|
|
3733
3794
|
] }),
|
|
3734
|
-
/* @__PURE__ */ (0,
|
|
3735
|
-
/* @__PURE__ */ (0,
|
|
3795
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_themes16.Grid, { columns: { initial: "1fr", md: "2" }, gap: "3", width: "100%", children: [
|
|
3796
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Button, { onClick: onClickReviewMyAnswer, variant: "outline", children: [
|
|
3736
3797
|
(reviewMeta == null ? void 0 : reviewMeta.endReviewBackButtonTitle) || "\uB098\uC758 \uC751\uB2F5 \uB2E4\uC2DC \uBCF4\uAE30",
|
|
3737
|
-
/* @__PURE__ */ (0,
|
|
3798
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_icons.ResetIcon, {})
|
|
3738
3799
|
] }),
|
|
3739
|
-
/* @__PURE__ */ (0,
|
|
3800
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Button, { onClick: onClickNextContents, children: [
|
|
3740
3801
|
"\uCEE4\uB9AC\uD058\uB7FC\uC73C\uB85C \uB3CC\uC544\uAC00\uAE30",
|
|
3741
|
-
/* @__PURE__ */ (0,
|
|
3802
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react_icons.HomeIcon, {})
|
|
3742
3803
|
] })
|
|
3743
3804
|
] })
|
|
3744
3805
|
]
|
|
@@ -3748,9 +3809,9 @@ function CompleteReview(props) {
|
|
|
3748
3809
|
var complete_review_default = CompleteReview;
|
|
3749
3810
|
|
|
3750
3811
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-layout.tsx
|
|
3751
|
-
var
|
|
3812
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
3752
3813
|
function AlignCenter(props) {
|
|
3753
|
-
return /* @__PURE__ */ (0,
|
|
3814
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
3754
3815
|
import_themes.Flex,
|
|
3755
3816
|
__spreadValues({
|
|
3756
3817
|
align: "center",
|
|
@@ -3765,7 +3826,7 @@ function ReviewQuestionLayout({
|
|
|
3765
3826
|
Body,
|
|
3766
3827
|
Footer
|
|
3767
3828
|
}) {
|
|
3768
|
-
return /* @__PURE__ */ (0,
|
|
3829
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
3769
3830
|
import_themes16.Grid,
|
|
3770
3831
|
{
|
|
3771
3832
|
align: "center",
|
|
@@ -3778,18 +3839,18 @@ function ReviewQuestionLayout({
|
|
|
3778
3839
|
},
|
|
3779
3840
|
width: "100%",
|
|
3780
3841
|
children: [
|
|
3781
|
-
/* @__PURE__ */ (0,
|
|
3782
|
-
/* @__PURE__ */ (0,
|
|
3783
|
-
/* @__PURE__ */ (0,
|
|
3842
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AlignCenter, { pb: "3", pt: "4", px: "4", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes7.Box, { maxWidth: "650px", width: "100%", children: Header }) }),
|
|
3843
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes28.Separator, { size: "4" }),
|
|
3844
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
3784
3845
|
AlignCenter,
|
|
3785
3846
|
{
|
|
3786
3847
|
p: "3",
|
|
3787
3848
|
style: { backgroundColor: "var(--gray-2)", zIndex: 0 },
|
|
3788
|
-
children: /* @__PURE__ */ (0,
|
|
3849
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes7.Box, { height: "100%", maxWidth: "650px", width: "100%", children: Body })
|
|
3789
3850
|
}
|
|
3790
3851
|
),
|
|
3791
|
-
/* @__PURE__ */ (0,
|
|
3792
|
-
/* @__PURE__ */ (0,
|
|
3852
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes28.Separator, { size: "4" }),
|
|
3853
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(AlignCenter, { px: "4", py: "3", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_themes7.Box, { maxWidth: "650px", width: "100%", children: Footer }) })
|
|
3793
3854
|
]
|
|
3794
3855
|
}
|
|
3795
3856
|
);
|
|
@@ -3800,14 +3861,14 @@ var review_question_layout_default = ReviewQuestionLayout;
|
|
|
3800
3861
|
var import_themes29 = require("@radix-ui/themes");
|
|
3801
3862
|
|
|
3802
3863
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-header.tsx
|
|
3803
|
-
var
|
|
3864
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
3804
3865
|
function ReviewQuestionHeader({
|
|
3805
3866
|
index,
|
|
3806
3867
|
total
|
|
3807
3868
|
}) {
|
|
3808
3869
|
const { reviewContents } = useCurriculumReviewContext();
|
|
3809
|
-
return /* @__PURE__ */ (0,
|
|
3810
|
-
/* @__PURE__ */ (0,
|
|
3870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_themes7.Box, { height: "100%", width: "100%", children: [
|
|
3871
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes16.Grid, { columns: "1fr 40px", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
3811
3872
|
Heading2,
|
|
3812
3873
|
{
|
|
3813
3874
|
mb: "3",
|
|
@@ -3816,22 +3877,22 @@ function ReviewQuestionHeader({
|
|
|
3816
3877
|
children: reviewContents.title
|
|
3817
3878
|
}
|
|
3818
3879
|
) }),
|
|
3819
|
-
/* @__PURE__ */ (0,
|
|
3820
|
-
/* @__PURE__ */ (0,
|
|
3821
|
-
/* @__PURE__ */ (0,
|
|
3880
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(import_themes.Flex, { justify: "between", mb: "2", width: "100%", children: [
|
|
3881
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(Typo, { color: "gray", size: { initial: "1", md: "2" }, children: "\uC9C4\uD589 \uC0C1\uD669" }),
|
|
3882
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(Typo, { color: "gray", size: { initial: "1", md: "2" }, children: [
|
|
3822
3883
|
index + 1,
|
|
3823
3884
|
" / ",
|
|
3824
3885
|
total,
|
|
3825
3886
|
" \uC644\uB8CC"
|
|
3826
3887
|
] })
|
|
3827
3888
|
] }),
|
|
3828
|
-
/* @__PURE__ */ (0,
|
|
3889
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_themes29.Progress, { color: "iris", max: total, value: index + 1 })
|
|
3829
3890
|
] });
|
|
3830
3891
|
}
|
|
3831
3892
|
var review_question_header_default = ReviewQuestionHeader;
|
|
3832
3893
|
|
|
3833
3894
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-footer.tsx
|
|
3834
|
-
var
|
|
3895
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
3835
3896
|
function ReviewQuestionFooter({
|
|
3836
3897
|
index,
|
|
3837
3898
|
onNext,
|
|
@@ -3841,22 +3902,22 @@ function ReviewQuestionFooter({
|
|
|
3841
3902
|
onSubmit,
|
|
3842
3903
|
isLoading
|
|
3843
3904
|
}) {
|
|
3844
|
-
return /* @__PURE__ */ (0,
|
|
3845
|
-
index > 0 ? /* @__PURE__ */ (0,
|
|
3846
|
-
/* @__PURE__ */ (0,
|
|
3905
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_themes16.Grid, { columns: "1fr 1fr", gap: "3", children: [
|
|
3906
|
+
index > 0 ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Button, { onClick: onPrev, variant: "outline", children: [
|
|
3907
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_icons.ChevronLeftIcon, {}),
|
|
3847
3908
|
"\uC774\uC804\uC73C\uB85C"
|
|
3848
|
-
] }) : /* @__PURE__ */ (0,
|
|
3849
|
-
isLast ? /* @__PURE__ */ (0,
|
|
3850
|
-
/* @__PURE__ */ (0,
|
|
3909
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_themes7.Box, {}),
|
|
3910
|
+
isLast ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Button, { disabled: isNextButtonDisabled, loading: isLoading, onClick: onSubmit, children: [
|
|
3911
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_icons.PaperPlaneIcon, {}),
|
|
3851
3912
|
"\uC81C\uCD9C\uD558\uAE30"
|
|
3852
|
-
] }) : /* @__PURE__ */ (0,
|
|
3913
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
3853
3914
|
Button,
|
|
3854
3915
|
{
|
|
3855
3916
|
disabled: isNextButtonDisabled,
|
|
3856
3917
|
onClick: onNext,
|
|
3857
3918
|
variant: "surface",
|
|
3858
3919
|
children: [
|
|
3859
|
-
/* @__PURE__ */ (0,
|
|
3920
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_icons.ChevronRightIcon, {}),
|
|
3860
3921
|
"\uB2E4\uC74C\uC73C\uB85C"
|
|
3861
3922
|
]
|
|
3862
3923
|
}
|
|
@@ -3871,7 +3932,7 @@ var import_react29 = require("react");
|
|
|
3871
3932
|
// src/atoms/card.tsx
|
|
3872
3933
|
var import_react28 = require("react");
|
|
3873
3934
|
var import_themes30 = require("@radix-ui/themes");
|
|
3874
|
-
var
|
|
3935
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
3875
3936
|
var Card = (0, import_react28.forwardRef)(
|
|
3876
3937
|
(props, forwardedRef) => {
|
|
3877
3938
|
const _a = props, { borderDisable, borderRadius, error } = _a, rest = __objRest(_a, ["borderDisable", "borderRadius", "error"]);
|
|
@@ -3888,7 +3949,7 @@ var Card = (0, import_react28.forwardRef)(
|
|
|
3888
3949
|
const errorClsName = (0, import_react28.useMemo)(() => {
|
|
3889
3950
|
return error ? " error" : "";
|
|
3890
3951
|
}, [error]);
|
|
3891
|
-
return /* @__PURE__ */ (0,
|
|
3952
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
3892
3953
|
import_themes30.Card,
|
|
3893
3954
|
__spreadProps(__spreadValues({
|
|
3894
3955
|
variant: "surface"
|
|
@@ -3903,7 +3964,7 @@ var Card = (0, import_react28.forwardRef)(
|
|
|
3903
3964
|
Card.displayName = "Card";
|
|
3904
3965
|
|
|
3905
3966
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-comp.tsx
|
|
3906
|
-
var
|
|
3967
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
3907
3968
|
function ReviewQuestionContentHeader({
|
|
3908
3969
|
type,
|
|
3909
3970
|
title,
|
|
@@ -3911,9 +3972,9 @@ function ReviewQuestionContentHeader({
|
|
|
3911
3972
|
icon
|
|
3912
3973
|
}) {
|
|
3913
3974
|
const Icon = getCurriculumIcon({ type, icon });
|
|
3914
|
-
return /* @__PURE__ */ (0,
|
|
3915
|
-
/* @__PURE__ */ (0,
|
|
3916
|
-
/* @__PURE__ */ (0,
|
|
3975
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes7.Box, { children: [
|
|
3976
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(import_themes.Flex, { gap: "2", mb: "3", children: [
|
|
3977
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(import_themes7.Box, { children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
3917
3978
|
Icon,
|
|
3918
3979
|
{
|
|
3919
3980
|
color: getCurriculumQuestionIconColor(type),
|
|
@@ -3921,14 +3982,14 @@ function ReviewQuestionContentHeader({
|
|
|
3921
3982
|
width: "16"
|
|
3922
3983
|
}
|
|
3923
3984
|
) }),
|
|
3924
|
-
/* @__PURE__ */ (0,
|
|
3985
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Typo, { color: "gray", weight: "bold", children: title })
|
|
3925
3986
|
] }),
|
|
3926
|
-
/* @__PURE__ */ (0,
|
|
3987
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Typo, { as: "p", color: "gray", children: question })
|
|
3927
3988
|
] });
|
|
3928
3989
|
}
|
|
3929
3990
|
|
|
3930
3991
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-radio.tsx
|
|
3931
|
-
var
|
|
3992
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
3932
3993
|
var correctAnswerStyle = {
|
|
3933
3994
|
backgroundColor: "var(--green-a2)"
|
|
3934
3995
|
};
|
|
@@ -3945,8 +4006,8 @@ function ReviewQuestionRadio(props) {
|
|
|
3945
4006
|
if (isWrong) return "red";
|
|
3946
4007
|
return void 0;
|
|
3947
4008
|
}, [isCorrect, isWrong]);
|
|
3948
|
-
return /* @__PURE__ */ (0,
|
|
3949
|
-
/* @__PURE__ */ (0,
|
|
4009
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes16.Grid, { height: "100%", rows: "auto 1fr", width: "100%", children: [
|
|
4010
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Card, { mb: "4", size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3950
4011
|
ReviewQuestionContentHeader,
|
|
3951
4012
|
{
|
|
3952
4013
|
icon: question.icon,
|
|
@@ -3955,8 +4016,8 @@ function ReviewQuestionRadio(props) {
|
|
|
3955
4016
|
type: question.type
|
|
3956
4017
|
}
|
|
3957
4018
|
) }),
|
|
3958
|
-
/* @__PURE__ */ (0,
|
|
3959
|
-
/* @__PURE__ */ (0,
|
|
4019
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes16.Grid, { height: "100%", rows: "1fr auto", width: "100%", children: [
|
|
4020
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes7.Box, { position: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3960
4021
|
RadioButtonCard.Root,
|
|
3961
4022
|
{
|
|
3962
4023
|
color: radioColor,
|
|
@@ -3968,7 +4029,7 @@ function ReviewQuestionRadio(props) {
|
|
|
3968
4029
|
position: "absolute"
|
|
3969
4030
|
},
|
|
3970
4031
|
value: answer,
|
|
3971
|
-
children: /* @__PURE__ */ (0,
|
|
4032
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes.Flex, { direction: "column", gap: "2", width: "100%", children: question.options.map((option, i) => {
|
|
3972
4033
|
const isThisOptionCorrect = isCheckAnswer && i === question.correctAnswer;
|
|
3973
4034
|
const isThisOptionSelected = isCheckAnswer && i === Number(answer);
|
|
3974
4035
|
const isThisOptionWrong = isCheckAnswer && isThisOptionSelected && i !== question.correctAnswer;
|
|
@@ -3976,15 +4037,15 @@ function ReviewQuestionRadio(props) {
|
|
|
3976
4037
|
if (isThisOptionCorrect) return correctAnswerStyle;
|
|
3977
4038
|
return {};
|
|
3978
4039
|
})();
|
|
3979
|
-
return /* @__PURE__ */ (0,
|
|
4040
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
3980
4041
|
RadioButtonCard.Item,
|
|
3981
4042
|
{
|
|
3982
4043
|
style,
|
|
3983
4044
|
value: i.toString(),
|
|
3984
|
-
children: /* @__PURE__ */ (0,
|
|
3985
|
-
/* @__PURE__ */ (0,
|
|
3986
|
-
isThisOptionCorrect ? /* @__PURE__ */ (0,
|
|
3987
|
-
isThisOptionWrong ? /* @__PURE__ */ (0,
|
|
4045
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_themes7.Box, { children: [
|
|
4046
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typo, { as: "p", children: option.label }),
|
|
4047
|
+
isThisOptionCorrect ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typo, { color: "green", children: "\uC815\uB2F5\uC785\uB2C8\uB2E4" }) : null,
|
|
4048
|
+
isThisOptionWrong ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Typo, { color: "red", children: "\uC815\uB2F5\uC774 \uC544\uB2D9\uB2C8\uB2E4" }) : null
|
|
3988
4049
|
] })
|
|
3989
4050
|
},
|
|
3990
4051
|
`${option.label}-${i}`
|
|
@@ -3992,7 +4053,7 @@ function ReviewQuestionRadio(props) {
|
|
|
3992
4053
|
}) })
|
|
3993
4054
|
}
|
|
3994
4055
|
) }),
|
|
3995
|
-
/* @__PURE__ */ (0,
|
|
4056
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_themes.Flex, { justify: "end", mt: "2", children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Button, { onClick: checkAnswer, children: "\uC815\uB2F5 \uD655\uC778" }) })
|
|
3996
4057
|
] })
|
|
3997
4058
|
] });
|
|
3998
4059
|
}
|
|
@@ -4001,7 +4062,7 @@ var review_question_radio_default = ReviewQuestionRadio;
|
|
|
4001
4062
|
// src/atoms/text-area.tsx
|
|
4002
4063
|
var import_themes31 = require("@radix-ui/themes");
|
|
4003
4064
|
var import_react30 = require("react");
|
|
4004
|
-
var
|
|
4065
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
4005
4066
|
var TextArea = (0, import_react30.forwardRef)(
|
|
4006
4067
|
(props, ref) => {
|
|
4007
4068
|
const _a = props, { error, style, className } = _a, rest = __objRest(_a, ["error", "style", "className"]);
|
|
@@ -4013,7 +4074,7 @@ var TextArea = (0, import_react30.forwardRef)(
|
|
|
4013
4074
|
return __spreadValues(__spreadValues({}, style || {}), errorStyle);
|
|
4014
4075
|
}, [error, style]);
|
|
4015
4076
|
const classNameStr = error ? `error ${className}` : className;
|
|
4016
|
-
return /* @__PURE__ */ (0,
|
|
4077
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
4017
4078
|
import_themes31.TextArea,
|
|
4018
4079
|
__spreadProps(__spreadValues({}, rest), {
|
|
4019
4080
|
className: classNameStr,
|
|
@@ -4029,12 +4090,12 @@ TextArea.displayName = "TextArea";
|
|
|
4029
4090
|
var import_themes32 = require("@radix-ui/themes");
|
|
4030
4091
|
|
|
4031
4092
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-text.tsx
|
|
4032
|
-
var
|
|
4093
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
4033
4094
|
function ReviewQuestionText(props) {
|
|
4034
4095
|
const { question, answer, onChange } = props;
|
|
4035
4096
|
const minLengthNotMet = question.minLength && answer.length < question.minLength;
|
|
4036
4097
|
const remainingLength = question.minLength && answer.length < question.minLength ? question.minLength - answer.length : 0;
|
|
4037
|
-
return /* @__PURE__ */ (0,
|
|
4098
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4038
4099
|
Card,
|
|
4039
4100
|
{
|
|
4040
4101
|
size: "2",
|
|
@@ -4042,9 +4103,9 @@ function ReviewQuestionText(props) {
|
|
|
4042
4103
|
width: "100%",
|
|
4043
4104
|
height: "100%"
|
|
4044
4105
|
},
|
|
4045
|
-
children: /* @__PURE__ */ (0,
|
|
4046
|
-
/* @__PURE__ */ (0,
|
|
4047
|
-
/* @__PURE__ */ (0,
|
|
4106
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes16.Grid, { height: "100%", rows: "1fr auto", children: [
|
|
4107
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes16.Grid, { height: "100%", rows: "auto 1fr", width: "100%", children: [
|
|
4108
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4048
4109
|
ReviewQuestionContentHeader,
|
|
4049
4110
|
{
|
|
4050
4111
|
icon: question.icon,
|
|
@@ -4053,7 +4114,7 @@ function ReviewQuestionText(props) {
|
|
|
4053
4114
|
type: question.type
|
|
4054
4115
|
}
|
|
4055
4116
|
),
|
|
4056
|
-
/* @__PURE__ */ (0,
|
|
4117
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
|
|
4057
4118
|
TextArea,
|
|
4058
4119
|
{
|
|
4059
4120
|
mt: "2",
|
|
@@ -4065,17 +4126,17 @@ function ReviewQuestionText(props) {
|
|
|
4065
4126
|
}
|
|
4066
4127
|
)
|
|
4067
4128
|
] }),
|
|
4068
|
-
minLengthNotMet ? /* @__PURE__ */ (0,
|
|
4069
|
-
/* @__PURE__ */ (0,
|
|
4070
|
-
question.minLengthInfoMessage ? /* @__PURE__ */ (0,
|
|
4129
|
+
minLengthNotMet ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_themes7.Box, { mt: "2", children: [
|
|
4130
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Typo, { align: "right", as: "p", color: "red", variant: "caption", children: `${remainingLength}\uC790 \uB354 \uC791\uC131\uD574\uC8FC\uC138\uC694.` }),
|
|
4131
|
+
question.minLengthInfoMessage ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
4071
4132
|
import_themes32.Callout.Root,
|
|
4072
4133
|
{
|
|
4073
4134
|
color: "iris",
|
|
4074
4135
|
mt: "2",
|
|
4075
4136
|
style: { alignItems: "center" },
|
|
4076
4137
|
children: [
|
|
4077
|
-
/* @__PURE__ */ (0,
|
|
4078
|
-
/* @__PURE__ */ (0,
|
|
4138
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes32.Callout.Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_icons.BellIcon, {}) }),
|
|
4139
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_themes32.Callout.Text, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Typo, { as: "p", variant: "caption", children: question.minLengthInfoMessage }) })
|
|
4079
4140
|
]
|
|
4080
4141
|
}
|
|
4081
4142
|
) : null
|
|
@@ -4090,12 +4151,12 @@ var review_question_text_default = ReviewQuestionText;
|
|
|
4090
4151
|
var import_themes33 = require("@radix-ui/themes");
|
|
4091
4152
|
|
|
4092
4153
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-option.tsx
|
|
4093
|
-
var
|
|
4154
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
4094
4155
|
function ReviewQuestionSatisfisRadio(props) {
|
|
4095
4156
|
var _a, _b, _c;
|
|
4096
4157
|
const { question, answer, onChange } = props;
|
|
4097
|
-
return /* @__PURE__ */ (0,
|
|
4098
|
-
/* @__PURE__ */ (0,
|
|
4158
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(import_jsx_runtime59.Fragment, { children: [
|
|
4159
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Card, { size: "2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
4099
4160
|
ReviewQuestionContentHeader,
|
|
4100
4161
|
{
|
|
4101
4162
|
icon: question.icon,
|
|
@@ -4104,18 +4165,18 @@ function ReviewQuestionSatisfisRadio(props) {
|
|
|
4104
4165
|
type: question.type
|
|
4105
4166
|
}
|
|
4106
4167
|
) }),
|
|
4107
|
-
/* @__PURE__ */ (0,
|
|
4168
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes33.RadioGroup.Root, { color: "iris", mt: "3", onValueChange: onChange, value: answer, children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes.Flex, { direction: "column", gap: "2", children: (_c = question.options) == null ? void 0 : _c.map((option) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_themes33.RadioGroup.Item, { value: String(option.value), children: option.label }, option.value)) }) })
|
|
4108
4169
|
] });
|
|
4109
4170
|
}
|
|
4110
4171
|
var review_question_satisfaction_option_default = ReviewQuestionSatisfisRadio;
|
|
4111
4172
|
|
|
4112
4173
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-satisfaction-text.tsx
|
|
4113
|
-
var
|
|
4174
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
4114
4175
|
function ReviewQuestionSatisfisText(props) {
|
|
4115
4176
|
var _a, _b;
|
|
4116
4177
|
const { question, answer, onChange } = props;
|
|
4117
|
-
return /* @__PURE__ */ (0,
|
|
4118
|
-
/* @__PURE__ */ (0,
|
|
4178
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Card, { size: "2", style: { height: "100%", width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_themes16.Grid, { height: "100%", rows: "auto 1fr", children: [
|
|
4179
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4119
4180
|
ReviewQuestionContentHeader,
|
|
4120
4181
|
{
|
|
4121
4182
|
icon: question.icon,
|
|
@@ -4124,7 +4185,7 @@ function ReviewQuestionSatisfisText(props) {
|
|
|
4124
4185
|
type: question.type
|
|
4125
4186
|
}
|
|
4126
4187
|
),
|
|
4127
|
-
/* @__PURE__ */ (0,
|
|
4188
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
4128
4189
|
TextArea,
|
|
4129
4190
|
{
|
|
4130
4191
|
mt: "2",
|
|
@@ -4142,11 +4203,11 @@ function ReviewQuestionSatisfisText(props) {
|
|
|
4142
4203
|
}
|
|
4143
4204
|
|
|
4144
4205
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/review-question-body.tsx
|
|
4145
|
-
var
|
|
4206
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
4146
4207
|
function ReviewQuestionBody(props) {
|
|
4147
4208
|
const { question, answer, error, onChange } = props;
|
|
4148
4209
|
if (question.type === "question_radio") {
|
|
4149
|
-
return /* @__PURE__ */ (0,
|
|
4210
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4150
4211
|
review_question_radio_default,
|
|
4151
4212
|
{
|
|
4152
4213
|
answer,
|
|
@@ -4157,7 +4218,7 @@ function ReviewQuestionBody(props) {
|
|
|
4157
4218
|
);
|
|
4158
4219
|
}
|
|
4159
4220
|
if (question.type === "question_text") {
|
|
4160
|
-
return /* @__PURE__ */ (0,
|
|
4221
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4161
4222
|
review_question_text_default,
|
|
4162
4223
|
{
|
|
4163
4224
|
answer,
|
|
@@ -4168,7 +4229,7 @@ function ReviewQuestionBody(props) {
|
|
|
4168
4229
|
);
|
|
4169
4230
|
}
|
|
4170
4231
|
if (question.type === "question_satisfaction_option") {
|
|
4171
|
-
return /* @__PURE__ */ (0,
|
|
4232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4172
4233
|
review_question_satisfaction_option_default,
|
|
4173
4234
|
{
|
|
4174
4235
|
answer,
|
|
@@ -4179,7 +4240,7 @@ function ReviewQuestionBody(props) {
|
|
|
4179
4240
|
);
|
|
4180
4241
|
}
|
|
4181
4242
|
if (question.type === "question_satisfaction_text") {
|
|
4182
|
-
return /* @__PURE__ */ (0,
|
|
4243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
4183
4244
|
ReviewQuestionSatisfisText,
|
|
4184
4245
|
{
|
|
4185
4246
|
answer,
|
|
@@ -4194,7 +4255,7 @@ function ReviewQuestionBody(props) {
|
|
|
4194
4255
|
var review_question_body_default = ReviewQuestionBody;
|
|
4195
4256
|
|
|
4196
4257
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/ReviewQuestion/index.tsx
|
|
4197
|
-
var
|
|
4258
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
4198
4259
|
function ReviewQuestion({
|
|
4199
4260
|
question,
|
|
4200
4261
|
index,
|
|
@@ -4209,10 +4270,10 @@ function ReviewQuestion({
|
|
|
4209
4270
|
onSubmit,
|
|
4210
4271
|
isLoading
|
|
4211
4272
|
}) {
|
|
4212
|
-
return /* @__PURE__ */ (0,
|
|
4273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4213
4274
|
review_question_layout_default,
|
|
4214
4275
|
{
|
|
4215
|
-
Body: /* @__PURE__ */ (0,
|
|
4276
|
+
Body: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4216
4277
|
review_question_body_default,
|
|
4217
4278
|
{
|
|
4218
4279
|
answer,
|
|
@@ -4221,7 +4282,7 @@ function ReviewQuestion({
|
|
|
4221
4282
|
question
|
|
4222
4283
|
}
|
|
4223
4284
|
),
|
|
4224
|
-
Footer: /* @__PURE__ */ (0,
|
|
4285
|
+
Footer: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
|
|
4225
4286
|
review_question_footer_default,
|
|
4226
4287
|
{
|
|
4227
4288
|
index,
|
|
@@ -4233,14 +4294,14 @@ function ReviewQuestion({
|
|
|
4233
4294
|
onSubmit
|
|
4234
4295
|
}
|
|
4235
4296
|
),
|
|
4236
|
-
Header: /* @__PURE__ */ (0,
|
|
4297
|
+
Header: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(review_question_header_default, { index, total })
|
|
4237
4298
|
}
|
|
4238
4299
|
);
|
|
4239
4300
|
}
|
|
4240
4301
|
var ReviewQuestion_default = ReviewQuestion;
|
|
4241
4302
|
|
|
4242
4303
|
// src/molecules/curriculumV2/CurriculumContents/CurriculumReviewSteps/index.tsx
|
|
4243
|
-
var
|
|
4304
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
4244
4305
|
function CurriculumReviewStepsInner() {
|
|
4245
4306
|
const {
|
|
4246
4307
|
formik,
|
|
@@ -4258,10 +4319,10 @@ function CurriculumReviewStepsInner() {
|
|
|
4258
4319
|
} = useCurriculumReviewContext();
|
|
4259
4320
|
const { questions } = reviewContents;
|
|
4260
4321
|
if (step === 0) {
|
|
4261
|
-
return /* @__PURE__ */ (0,
|
|
4322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(start_review_default, { onStart: handleStart });
|
|
4262
4323
|
}
|
|
4263
4324
|
if (step > 0 && step <= questions.length && currentQuestion) {
|
|
4264
|
-
return /* @__PURE__ */ (0,
|
|
4325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4265
4326
|
ReviewQuestion_default,
|
|
4266
4327
|
{
|
|
4267
4328
|
answer: currentAnswer,
|
|
@@ -4279,7 +4340,7 @@ function CurriculumReviewStepsInner() {
|
|
|
4279
4340
|
}
|
|
4280
4341
|
);
|
|
4281
4342
|
}
|
|
4282
|
-
return /* @__PURE__ */ (0,
|
|
4343
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(complete_review_default, { onClickReviewMyAnswer });
|
|
4283
4344
|
}
|
|
4284
4345
|
function CurriculumReviewSteps({
|
|
4285
4346
|
contents,
|
|
@@ -4292,7 +4353,7 @@ function CurriculumReviewSteps({
|
|
|
4292
4353
|
mode,
|
|
4293
4354
|
done
|
|
4294
4355
|
}) {
|
|
4295
|
-
return /* @__PURE__ */ (0,
|
|
4356
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
4296
4357
|
CurriculumReviewProvider,
|
|
4297
4358
|
{
|
|
4298
4359
|
curriculum,
|
|
@@ -4304,14 +4365,14 @@ function CurriculumReviewSteps({
|
|
|
4304
4365
|
onSubmit,
|
|
4305
4366
|
reviewContents: contents,
|
|
4306
4367
|
sectionTitle: title,
|
|
4307
|
-
children: /* @__PURE__ */ (0,
|
|
4368
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(CurriculumReviewStepsInner, {})
|
|
4308
4369
|
}
|
|
4309
4370
|
);
|
|
4310
4371
|
}
|
|
4311
4372
|
var CurriculumReviewSteps_default = CurriculumReviewSteps;
|
|
4312
4373
|
|
|
4313
4374
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-review.tsx
|
|
4314
|
-
var
|
|
4375
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
4315
4376
|
function CurriculumReview(props) {
|
|
4316
4377
|
const { item, sectionTitle } = props;
|
|
4317
4378
|
const { description, buttonTitle } = item;
|
|
@@ -4376,8 +4437,8 @@ function CurriculumReview(props) {
|
|
|
4376
4437
|
return Boolean(curriculumCompleteMap[item.uuid]);
|
|
4377
4438
|
}, [curriculumCompleteMap, item.uuid]);
|
|
4378
4439
|
const bgColor = done ? "var(--color-panel-solid)" : void 0;
|
|
4379
|
-
return /* @__PURE__ */ (0,
|
|
4380
|
-
/* @__PURE__ */ (0,
|
|
4440
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(Dialog.Root, { onOpenChange: setOpen, open, children: [
|
|
4441
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
4381
4442
|
import_themes.Flex,
|
|
4382
4443
|
{
|
|
4383
4444
|
align: "center",
|
|
@@ -4394,21 +4455,21 @@ function CurriculumReview(props) {
|
|
|
4394
4455
|
},
|
|
4395
4456
|
width: "100%",
|
|
4396
4457
|
children: [
|
|
4397
|
-
/* @__PURE__ */ (0,
|
|
4398
|
-
/* @__PURE__ */ (0,
|
|
4399
|
-
/* @__PURE__ */ (0,
|
|
4458
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Typo, { color: "gray", weight: "bold", children: curriculum.title }),
|
|
4459
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Typo, { align: "center", as: "p", color: "gray", children: description }),
|
|
4460
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Dialog.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4400
4461
|
Button,
|
|
4401
4462
|
{
|
|
4402
4463
|
mt: "3",
|
|
4403
4464
|
style: { minWidth: 232, backgroundColor: bgColor },
|
|
4404
4465
|
variant: done ? "outline" : "solid",
|
|
4405
|
-
children: /* @__PURE__ */ (0,
|
|
4466
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Typo, { truncate: true, children: done ? "\uB098\uC758 \uC751\uB2F5 \uB2E4\uC2DC\uBCF4\uAE30" : buttonTitle })
|
|
4406
4467
|
}
|
|
4407
4468
|
) })
|
|
4408
4469
|
]
|
|
4409
4470
|
}
|
|
4410
4471
|
),
|
|
4411
|
-
/* @__PURE__ */ (0,
|
|
4472
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4412
4473
|
Dialog.Content,
|
|
4413
4474
|
{
|
|
4414
4475
|
height: "100%",
|
|
@@ -4416,7 +4477,7 @@ function CurriculumReview(props) {
|
|
|
4416
4477
|
style: { borderRadius: 0, padding: 0 },
|
|
4417
4478
|
title: "",
|
|
4418
4479
|
width: "100%",
|
|
4419
|
-
children: /* @__PURE__ */ (0,
|
|
4480
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
4420
4481
|
import_themes.Flex,
|
|
4421
4482
|
{
|
|
4422
4483
|
align: "center",
|
|
@@ -4426,7 +4487,7 @@ function CurriculumReview(props) {
|
|
|
4426
4487
|
position: "relative",
|
|
4427
4488
|
width: "100%",
|
|
4428
4489
|
children: [
|
|
4429
|
-
/* @__PURE__ */ (0,
|
|
4490
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4430
4491
|
CurriculumReviewSteps_default,
|
|
4431
4492
|
{
|
|
4432
4493
|
contents: item,
|
|
@@ -4440,27 +4501,27 @@ function CurriculumReview(props) {
|
|
|
4440
4501
|
title: sectionTitle
|
|
4441
4502
|
}
|
|
4442
4503
|
),
|
|
4443
|
-
/* @__PURE__ */ (0,
|
|
4504
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes7.Box, { position: "absolute", right: "16px", top: "16px", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
4444
4505
|
IconButton,
|
|
4445
4506
|
{
|
|
4446
4507
|
color: "gray",
|
|
4447
4508
|
onClick: onClickCloseDrawer,
|
|
4448
4509
|
variant: "ghost",
|
|
4449
4510
|
children: [
|
|
4450
|
-
/* @__PURE__ */ (0,
|
|
4451
|
-
/* @__PURE__ */ (0,
|
|
4511
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes7.Box, { display: { initial: "none", md: "block" }, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_icons7.Cross1Icon, { height: 20, width: 20 }) }),
|
|
4512
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_themes7.Box, { display: { initial: "block", md: "none" }, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_icons7.Cross1Icon, { height: 16, width: 16 }) })
|
|
4452
4513
|
]
|
|
4453
4514
|
}
|
|
4454
4515
|
) }),
|
|
4455
|
-
/* @__PURE__ */ (0,
|
|
4516
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Dialog.Root, { onOpenChange: setCloseDialogOpen, open: closeDialogOpen, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
4456
4517
|
Dialog.Content,
|
|
4457
4518
|
{
|
|
4458
|
-
buttons: /* @__PURE__ */ (0,
|
|
4459
|
-
/* @__PURE__ */ (0,
|
|
4460
|
-
/* @__PURE__ */ (0,
|
|
4519
|
+
buttons: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_themes.Flex, { gap: "3", justify: "end", children: [
|
|
4520
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Dialog.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button, { color: "gray", variant: "outline", children: "\uB3CC\uC544\uAC00\uAE30" }) }),
|
|
4521
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Dialog.Close, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button, { color: "red", onClick: onClickEndReview, children: "\uB098\uAC00\uAE30" }) })
|
|
4461
4522
|
] }),
|
|
4462
4523
|
title: "\uC791\uC131\uC744 \uC911\uB2E8\uD558\uC2DC\uACA0\uC2B5\uB2C8\uAE4C?",
|
|
4463
|
-
children: /* @__PURE__ */ (0,
|
|
4524
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Typo, { children: "\uD398\uC774\uC9C0\uC5D0\uC11C \uBC97\uC5B4\uB098\uBA74 \uC791\uC131\uD55C \uB0B4\uC6A9\uC774 \uC800\uC7A5\uB418\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4." })
|
|
4464
4525
|
}
|
|
4465
4526
|
) })
|
|
4466
4527
|
]
|
|
@@ -4474,7 +4535,7 @@ var curriculum_review_default = CurriculumReview;
|
|
|
4474
4535
|
|
|
4475
4536
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-ai-traning.tsx
|
|
4476
4537
|
var import_react32 = require("react");
|
|
4477
|
-
var
|
|
4538
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
4478
4539
|
function CurriculumAiTraning({
|
|
4479
4540
|
item
|
|
4480
4541
|
}) {
|
|
@@ -4484,7 +4545,7 @@ function CurriculumAiTraning({
|
|
|
4484
4545
|
return Boolean(curriculumCompleteMap[item.uuid]);
|
|
4485
4546
|
}, [curriculumCompleteMap, item.uuid]);
|
|
4486
4547
|
const bgColor = done ? "var(--color-panel-solid)" : void 0;
|
|
4487
|
-
return /* @__PURE__ */ (0,
|
|
4548
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
4488
4549
|
import_themes.Flex,
|
|
4489
4550
|
{
|
|
4490
4551
|
align: "center",
|
|
@@ -4499,9 +4560,9 @@ function CurriculumAiTraning({
|
|
|
4499
4560
|
},
|
|
4500
4561
|
width: "100%",
|
|
4501
4562
|
children: [
|
|
4502
|
-
/* @__PURE__ */ (0,
|
|
4503
|
-
/* @__PURE__ */ (0,
|
|
4504
|
-
/* @__PURE__ */ (0,
|
|
4563
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Typo, { color: "gray", weight: "bold", children: title }),
|
|
4564
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Typo, { align: "center", as: "p", color: "gray", children: description }),
|
|
4565
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
|
|
4505
4566
|
Button,
|
|
4506
4567
|
{
|
|
4507
4568
|
mt: "3",
|
|
@@ -4512,7 +4573,7 @@ function CurriculumAiTraning({
|
|
|
4512
4573
|
variant: done ? "outline" : "solid",
|
|
4513
4574
|
children: [
|
|
4514
4575
|
done ? "\uB2E4\uC2DC \uC5F0\uC2B5\uD558\uAE30" : buttonTitle || "\uC2DC\uC791\uD558\uAE30",
|
|
4515
|
-
done ? /* @__PURE__ */ (0,
|
|
4576
|
+
done ? /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react_icons.ResetIcon, {}) : null
|
|
4516
4577
|
]
|
|
4517
4578
|
}
|
|
4518
4579
|
)
|
|
@@ -4524,7 +4585,7 @@ var curriculum_ai_traning_default = CurriculumAiTraning;
|
|
|
4524
4585
|
|
|
4525
4586
|
// src/molecules/curriculumV2/CurriculumContents/curriculum-file-download.tsx
|
|
4526
4587
|
var import_react33 = require("react");
|
|
4527
|
-
var
|
|
4588
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
4528
4589
|
function CurriculumFileDownload(props) {
|
|
4529
4590
|
const { item } = props;
|
|
4530
4591
|
const { title, description, files } = item;
|
|
@@ -4538,7 +4599,7 @@ function CurriculumFileDownload(props) {
|
|
|
4538
4599
|
}
|
|
4539
4600
|
onClickfileDownload(item, file);
|
|
4540
4601
|
};
|
|
4541
|
-
return /* @__PURE__ */ (0,
|
|
4602
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
|
|
4542
4603
|
import_themes.Flex,
|
|
4543
4604
|
{
|
|
4544
4605
|
align: "center",
|
|
@@ -4549,9 +4610,9 @@ function CurriculumFileDownload(props) {
|
|
|
4549
4610
|
py: "3",
|
|
4550
4611
|
width: "100%",
|
|
4551
4612
|
children: [
|
|
4552
|
-
/* @__PURE__ */ (0,
|
|
4553
|
-
description ? /* @__PURE__ */ (0,
|
|
4554
|
-
/* @__PURE__ */ (0,
|
|
4613
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Typo, { color: "gray", weight: "bold", children: title }),
|
|
4614
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Typo, { align: "center", as: "p", color: "gray", children: description }) : null,
|
|
4615
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4555
4616
|
import_themes.Flex,
|
|
4556
4617
|
{
|
|
4557
4618
|
direction: "column",
|
|
@@ -4559,7 +4620,7 @@ function CurriculumFileDownload(props) {
|
|
|
4559
4620
|
mt: "4",
|
|
4560
4621
|
style: { width: "100%", maxWidth: 520 },
|
|
4561
4622
|
children: files.map((file) => {
|
|
4562
|
-
return /* @__PURE__ */ (0,
|
|
4623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
4563
4624
|
Button,
|
|
4564
4625
|
{
|
|
4565
4626
|
disabled: !isCallbackReady,
|
|
@@ -4567,14 +4628,14 @@ function CurriculumFileDownload(props) {
|
|
|
4567
4628
|
handleClickFile(file);
|
|
4568
4629
|
},
|
|
4569
4630
|
variant: "outline",
|
|
4570
|
-
children: /* @__PURE__ */ (0,
|
|
4631
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Typo, { truncate: true, children: file.name })
|
|
4571
4632
|
},
|
|
4572
4633
|
file.url
|
|
4573
4634
|
);
|
|
4574
4635
|
})
|
|
4575
4636
|
}
|
|
4576
4637
|
),
|
|
4577
|
-
!isCallbackReady ? /* @__PURE__ */ (0,
|
|
4638
|
+
!isCallbackReady ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Typo, { align: "center", color: "gray", mt: "3", variant: "caption", children: "\uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC \uAE30\uB2A5\uC774 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC2B5\uB2C8\uB2E4." }) : null
|
|
4578
4639
|
]
|
|
4579
4640
|
}
|
|
4580
4641
|
);
|
|
@@ -4582,14 +4643,14 @@ function CurriculumFileDownload(props) {
|
|
|
4582
4643
|
var curriculum_file_download_default = CurriculumFileDownload;
|
|
4583
4644
|
|
|
4584
4645
|
// src/molecules/curriculumV2/CurriculumContents/index.tsx
|
|
4585
|
-
var
|
|
4646
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
4586
4647
|
function CurriculumBody() {
|
|
4587
4648
|
const { selectedItem, selectedSectionTitle } = useCurriculumContext();
|
|
4588
4649
|
switch (selectedItem.type) {
|
|
4589
4650
|
case "video":
|
|
4590
|
-
return /* @__PURE__ */ (0,
|
|
4651
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(curriculum_video_default, { item: selectedItem });
|
|
4591
4652
|
case "review":
|
|
4592
|
-
return /* @__PURE__ */ (0,
|
|
4653
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
|
|
4593
4654
|
curriculum_review_default,
|
|
4594
4655
|
{
|
|
4595
4656
|
item: selectedItem,
|
|
@@ -4597,11 +4658,11 @@ function CurriculumBody() {
|
|
|
4597
4658
|
}
|
|
4598
4659
|
);
|
|
4599
4660
|
case "aiTraining":
|
|
4600
|
-
return /* @__PURE__ */ (0,
|
|
4661
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(curriculum_ai_traning_default, { item: selectedItem });
|
|
4601
4662
|
case "fileDownload":
|
|
4602
|
-
return /* @__PURE__ */ (0,
|
|
4663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(curriculum_file_download_default, { item: selectedItem });
|
|
4603
4664
|
default:
|
|
4604
|
-
return /* @__PURE__ */ (0,
|
|
4665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)(
|
|
4605
4666
|
import_themes.Flex,
|
|
4606
4667
|
{
|
|
4607
4668
|
align: "center",
|
|
@@ -4611,9 +4672,9 @@ function CurriculumBody() {
|
|
|
4611
4672
|
justify: "center",
|
|
4612
4673
|
width: "100%",
|
|
4613
4674
|
children: [
|
|
4614
|
-
/* @__PURE__ */ (0,
|
|
4615
|
-
/* @__PURE__ */ (0,
|
|
4616
|
-
/* @__PURE__ */ (0,
|
|
4675
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(import_react_icons.InfoCircledIcon, { height: 24, width: 24 }),
|
|
4676
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Typo, { children: "\uCEE8\uD150\uCE20\uB97C \uB85C\uB529 \uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4" }),
|
|
4677
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Typo, { align: "center", color: "gray", variant: "caption", children: `[debug info]
|
|
4617
4678
|
${JSON.stringify(selectedItem)}` })
|
|
4618
4679
|
]
|
|
4619
4680
|
}
|
|
@@ -4628,12 +4689,12 @@ var import_react34 = require("react");
|
|
|
4628
4689
|
var import_themes34 = require("@radix-ui/themes");
|
|
4629
4690
|
|
|
4630
4691
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/section-title.tsx
|
|
4631
|
-
var
|
|
4692
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
4632
4693
|
function SectionTitle(props) {
|
|
4633
4694
|
const { title, duration } = props;
|
|
4634
|
-
return /* @__PURE__ */ (0,
|
|
4635
|
-
/* @__PURE__ */ (0,
|
|
4636
|
-
/* @__PURE__ */ (0,
|
|
4695
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(import_themes16.Grid, { align: "center", columns: "1fr auto", px: "3", py: "2", children: [
|
|
4696
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)(Typo, { color: "gray", children: title }),
|
|
4697
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
4637
4698
|
duration,
|
|
4638
4699
|
"\uBD84"
|
|
4639
4700
|
] })
|
|
@@ -4642,14 +4703,14 @@ function SectionTitle(props) {
|
|
|
4642
4703
|
var section_title_default = SectionTitle;
|
|
4643
4704
|
|
|
4644
4705
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-sidebar-item-wrapper.tsx
|
|
4645
|
-
var
|
|
4706
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
4646
4707
|
function CurriculumSidebarItemWrapper({
|
|
4647
4708
|
children,
|
|
4648
4709
|
isSelected,
|
|
4649
4710
|
onClick,
|
|
4650
4711
|
index
|
|
4651
4712
|
}) {
|
|
4652
|
-
return /* @__PURE__ */ (0,
|
|
4713
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(
|
|
4653
4714
|
import_themes16.Grid,
|
|
4654
4715
|
{
|
|
4655
4716
|
align: "center",
|
|
@@ -4665,7 +4726,7 @@ function CurriculumSidebarItemWrapper({
|
|
|
4665
4726
|
cursor: onClick ? "pointer" : void 0
|
|
4666
4727
|
},
|
|
4667
4728
|
children: [
|
|
4668
|
-
isSelected ? /* @__PURE__ */ (0,
|
|
4729
|
+
isSelected ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(
|
|
4669
4730
|
import_themes28.Separator,
|
|
4670
4731
|
{
|
|
4671
4732
|
color: "yellow",
|
|
@@ -4682,15 +4743,15 @@ function CurriculumSidebarItemWrapper({
|
|
|
4682
4743
|
var curriculum_sidebar_item_wrapper_default = CurriculumSidebarItemWrapper;
|
|
4683
4744
|
|
|
4684
4745
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/curriculum-item-title.tsx
|
|
4685
|
-
var
|
|
4746
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
4686
4747
|
function CurriculumItemTitle({
|
|
4687
4748
|
title,
|
|
4688
4749
|
subText,
|
|
4689
4750
|
duration
|
|
4690
4751
|
}) {
|
|
4691
|
-
return /* @__PURE__ */ (0,
|
|
4692
|
-
/* @__PURE__ */ (0,
|
|
4693
|
-
/* @__PURE__ */ (0,
|
|
4752
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(import_themes.Flex, { direction: "column", gap: "1", children: [
|
|
4753
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsx)(Typo, { color: "gray", weight: "bold", children: title }),
|
|
4754
|
+
/* @__PURE__ */ (0, import_jsx_runtime70.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
4694
4755
|
subText,
|
|
4695
4756
|
duration ? ` | ${duration}\uBD84` : ""
|
|
4696
4757
|
] })
|
|
@@ -4699,7 +4760,7 @@ function CurriculumItemTitle({
|
|
|
4699
4760
|
var curriculum_item_title_default = CurriculumItemTitle;
|
|
4700
4761
|
|
|
4701
4762
|
// src/molecules/curriculumV2/CurriculumSidebar/Items/section-item.tsx
|
|
4702
|
-
var
|
|
4763
|
+
var import_jsx_runtime71 = require("react/jsx-runtime");
|
|
4703
4764
|
function SectionCommonItem({
|
|
4704
4765
|
title,
|
|
4705
4766
|
duration,
|
|
@@ -4708,21 +4769,21 @@ function SectionCommonItem({
|
|
|
4708
4769
|
color = "gray"
|
|
4709
4770
|
}) {
|
|
4710
4771
|
const IconComp = getCurriculumIcon({ type, icon });
|
|
4711
|
-
return /* @__PURE__ */ (0,
|
|
4712
|
-
/* @__PURE__ */ (0,
|
|
4713
|
-
/* @__PURE__ */ (0,
|
|
4772
|
+
return /* @__PURE__ */ (0, import_jsx_runtime71.jsxs)(import_jsx_runtime71.Fragment, { children: [
|
|
4773
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(IconComp, { color }),
|
|
4774
|
+
/* @__PURE__ */ (0, import_jsx_runtime71.jsx)(curriculum_item_title_default, { duration, subText: getCurriculumContentSubTypeText(type), title })
|
|
4714
4775
|
] });
|
|
4715
4776
|
}
|
|
4716
4777
|
var section_item_default = SectionCommonItem;
|
|
4717
4778
|
|
|
4718
4779
|
// src/molecules/curriculumV2/CurriculumSidebar/sidebar-item.tsx
|
|
4719
|
-
var
|
|
4780
|
+
var import_jsx_runtime72 = require("react/jsx-runtime");
|
|
4720
4781
|
function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
4721
4782
|
if (item.type === "sectionTitle") {
|
|
4722
|
-
return /* @__PURE__ */ (0,
|
|
4783
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(section_title_default, __spreadValues({}, item), item.uuid);
|
|
4723
4784
|
}
|
|
4724
4785
|
const isSelected = selectedIndex === index;
|
|
4725
|
-
return /* @__PURE__ */ (0,
|
|
4786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4726
4787
|
curriculum_sidebar_item_wrapper_default,
|
|
4727
4788
|
{
|
|
4728
4789
|
index,
|
|
@@ -4730,7 +4791,7 @@ function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
|
4730
4791
|
onClick: () => {
|
|
4731
4792
|
setSelectedIndex(index);
|
|
4732
4793
|
},
|
|
4733
|
-
children: /* @__PURE__ */ (0,
|
|
4794
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime72.jsx)(
|
|
4734
4795
|
section_item_default,
|
|
4735
4796
|
__spreadProps(__spreadValues({}, item), {
|
|
4736
4797
|
color: getCurriculumIconColor({
|
|
@@ -4746,7 +4807,7 @@ function SidebarItem({ item, selectedIndex, setSelectedIndex, index, done }) {
|
|
|
4746
4807
|
var sidebar_item_default = SidebarItem;
|
|
4747
4808
|
|
|
4748
4809
|
// src/molecules/curriculumV2/CurriculumSidebar/index.tsx
|
|
4749
|
-
var
|
|
4810
|
+
var import_jsx_runtime73 = require("react/jsx-runtime");
|
|
4750
4811
|
var TAB_LIST = [
|
|
4751
4812
|
{
|
|
4752
4813
|
label: "\uAC15\uC758 \uBAA9\uCC28",
|
|
@@ -4774,9 +4835,9 @@ function CurriculumSidebar() {
|
|
|
4774
4835
|
const tabList = (0, import_react34.useMemo)(() => {
|
|
4775
4836
|
return [...TAB_LIST, ...customTabs != null ? customTabs : []];
|
|
4776
4837
|
}, [customTabs]);
|
|
4777
|
-
return /* @__PURE__ */ (0,
|
|
4778
|
-
/* @__PURE__ */ (0,
|
|
4779
|
-
/* @__PURE__ */ (0,
|
|
4838
|
+
return /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes34.Tabs.Root, { asChild: true, defaultValue: TAB_LIST[0].value, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(import_themes16.Grid, { height: "100%", overflowY: "auto", rows: "auto 1fr ", width: "100%", children: [
|
|
4839
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes34.Tabs.List, { style: TABS_LIST_STYLE, children: tabList.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes34.Tabs.Trigger, { value: tab.value, children: tab.label }, tab.value)) }),
|
|
4840
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
4780
4841
|
import_themes7.Box,
|
|
4781
4842
|
{
|
|
4782
4843
|
height: "100%",
|
|
@@ -4785,13 +4846,13 @@ function CurriculumSidebar() {
|
|
|
4785
4846
|
ref: scrollAreaRef,
|
|
4786
4847
|
width: "100%",
|
|
4787
4848
|
children: [
|
|
4788
|
-
/* @__PURE__ */ (0,
|
|
4849
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsxs)(
|
|
4789
4850
|
import_themes34.Tabs.Content,
|
|
4790
4851
|
{
|
|
4791
4852
|
style: TABS_CONTENT_STYLE,
|
|
4792
4853
|
value: TAB_LIST[0].value,
|
|
4793
4854
|
children: [
|
|
4794
|
-
list.map((item, index) => /* @__PURE__ */ (0,
|
|
4855
|
+
list.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4795
4856
|
sidebar_item_default,
|
|
4796
4857
|
{
|
|
4797
4858
|
done: curriculumCompleteMap[item.uuid],
|
|
@@ -4802,12 +4863,12 @@ function CurriculumSidebar() {
|
|
|
4802
4863
|
},
|
|
4803
4864
|
item.uuid
|
|
4804
4865
|
)),
|
|
4805
|
-
/* @__PURE__ */ (0,
|
|
4866
|
+
/* @__PURE__ */ (0, import_jsx_runtime73.jsx)(import_themes7.Box, { height: "150px" })
|
|
4806
4867
|
]
|
|
4807
4868
|
},
|
|
4808
4869
|
TAB_LIST[0].value
|
|
4809
4870
|
),
|
|
4810
|
-
customTabs == null ? void 0 : customTabs.map((tab) => /* @__PURE__ */ (0,
|
|
4871
|
+
customTabs == null ? void 0 : customTabs.map((tab) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
4811
4872
|
import_themes34.Tabs.Content,
|
|
4812
4873
|
{
|
|
4813
4874
|
style: TABS_CONTENT_STYLE,
|
|
@@ -4823,11 +4884,11 @@ function CurriculumSidebar() {
|
|
|
4823
4884
|
}
|
|
4824
4885
|
|
|
4825
4886
|
// src/molecules/curriculumV2/curriculum-v2-layout.tsx
|
|
4826
|
-
var
|
|
4887
|
+
var import_jsx_runtime74 = require("react/jsx-runtime");
|
|
4827
4888
|
function CurriculumV2Layout(props) {
|
|
4828
4889
|
const { NavBar, Contents, SideBar, SideNav, style } = props;
|
|
4829
|
-
return /* @__PURE__ */ (0,
|
|
4830
|
-
/* @__PURE__ */ (0,
|
|
4890
|
+
return /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_themes16.Grid, { align: "center", height: "100%", rows: "auto 1px 1fr", style, width: "100%", children: [
|
|
4891
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4831
4892
|
import_themes.Flex,
|
|
4832
4893
|
{
|
|
4833
4894
|
align: "center",
|
|
@@ -4836,8 +4897,8 @@ function CurriculumV2Layout(props) {
|
|
|
4836
4897
|
children: NavBar
|
|
4837
4898
|
}
|
|
4838
4899
|
),
|
|
4839
|
-
/* @__PURE__ */ (0,
|
|
4840
|
-
/* @__PURE__ */ (0,
|
|
4900
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes28.Separator, { size: "4" }),
|
|
4901
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(
|
|
4841
4902
|
import_themes.Flex,
|
|
4842
4903
|
{
|
|
4843
4904
|
align: "center",
|
|
@@ -4845,7 +4906,7 @@ function CurriculumV2Layout(props) {
|
|
|
4845
4906
|
justify: "center",
|
|
4846
4907
|
overflow: "hidden",
|
|
4847
4908
|
width: "100%",
|
|
4848
|
-
children: /* @__PURE__ */ (0,
|
|
4909
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(
|
|
4849
4910
|
import_themes16.Grid,
|
|
4850
4911
|
{
|
|
4851
4912
|
columns: { initial: "1", md: "1fr 340px" },
|
|
@@ -4854,8 +4915,8 @@ function CurriculumV2Layout(props) {
|
|
|
4854
4915
|
rows: { initial: "auto 1fr", md: "auto" },
|
|
4855
4916
|
width: "100%",
|
|
4856
4917
|
children: [
|
|
4857
|
-
/* @__PURE__ */ (0,
|
|
4858
|
-
/* @__PURE__ */ (0,
|
|
4918
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsxs)(import_themes7.Box, { height: "100%", width: "100%", children: [
|
|
4919
|
+
/* @__PURE__ */ (0, import_jsx_runtime74.jsx)(import_themes18.AspectRatio, { ratio: 16 / 9, children: Contents }),
|
|
4859
4920
|
SideNav
|
|
4860
4921
|
] }),
|
|
4861
4922
|
SideBar
|
|
@@ -4879,11 +4940,11 @@ var import_react36 = require("react");
|
|
|
4879
4940
|
// src/molecules/form/form.tsx
|
|
4880
4941
|
var RadixForm = __toESM(require("@radix-ui/react-form"), 1);
|
|
4881
4942
|
var import_react35 = require("react");
|
|
4882
|
-
var
|
|
4943
|
+
var import_jsx_runtime75 = require("react/jsx-runtime");
|
|
4883
4944
|
var Root8 = (0, import_react35.forwardRef)(
|
|
4884
4945
|
(_a, ref) => {
|
|
4885
4946
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
4886
|
-
return /* @__PURE__ */ (0,
|
|
4947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4887
4948
|
RadixForm.Root,
|
|
4888
4949
|
__spreadProps(__spreadValues({}, rest), {
|
|
4889
4950
|
className: `FormRoot ${className || ""}`,
|
|
@@ -4900,25 +4961,25 @@ var FieldContext = (0, import_react35.createContext)({
|
|
|
4900
4961
|
var Field2 = (0, import_react35.forwardRef)(
|
|
4901
4962
|
(_a, ref) => {
|
|
4902
4963
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
4903
|
-
return /* @__PURE__ */ (0,
|
|
4964
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4904
4965
|
RadixForm.Field,
|
|
4905
4966
|
__spreadProps(__spreadValues({}, rest), {
|
|
4906
4967
|
className: `FormField ${className || ""}`,
|
|
4907
4968
|
ref,
|
|
4908
|
-
children: /* @__PURE__ */ (0,
|
|
4969
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(FieldContext.Provider, { value: rest, children })
|
|
4909
4970
|
})
|
|
4910
4971
|
);
|
|
4911
4972
|
}
|
|
4912
4973
|
);
|
|
4913
4974
|
Field2.displayName = "FORM_FIELD";
|
|
4914
4975
|
function HeadingLabel(props) {
|
|
4915
|
-
return /* @__PURE__ */ (0,
|
|
4976
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Heading2, __spreadProps(__spreadValues({ variant: "heading5" }, props), { children: props.children }));
|
|
4916
4977
|
}
|
|
4917
4978
|
function CaptionLabel(props) {
|
|
4918
|
-
return /* @__PURE__ */ (0,
|
|
4979
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Typo, __spreadProps(__spreadValues({ color: "gray", variant: "caption", weight: "bold" }, props), { children: props.children }));
|
|
4919
4980
|
}
|
|
4920
4981
|
function BodyLabel(props) {
|
|
4921
|
-
return /* @__PURE__ */ (0,
|
|
4982
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Typo, __spreadProps(__spreadValues({ variant: "body", weight: "bold" }, props), { children: props.children }));
|
|
4922
4983
|
}
|
|
4923
4984
|
var Label2 = (0, import_react35.forwardRef)(
|
|
4924
4985
|
(_a, ref) => {
|
|
@@ -4935,15 +4996,15 @@ var Label2 = (0, import_react35.forwardRef)(
|
|
|
4935
4996
|
}
|
|
4936
4997
|
}, [variant]);
|
|
4937
4998
|
const fieldProps = (0, import_react35.useContext)(FieldContext);
|
|
4938
|
-
return /* @__PURE__ */ (0,
|
|
4999
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4939
5000
|
RadixForm.Label,
|
|
4940
5001
|
__spreadProps(__spreadValues({}, rest), {
|
|
4941
5002
|
asChild: true,
|
|
4942
5003
|
className: `FormLabel ${className || ""}`,
|
|
4943
5004
|
ref,
|
|
4944
|
-
children: /* @__PURE__ */ (0,
|
|
5005
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Comp, { children: [
|
|
4945
5006
|
children,
|
|
4946
|
-
fieldProps.required ? /* @__PURE__ */ (0,
|
|
5007
|
+
fieldProps.required ? /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Typo, { as: "span", color: "tomato", children: ` *` }) : null
|
|
4947
5008
|
] })
|
|
4948
5009
|
})
|
|
4949
5010
|
);
|
|
@@ -4953,13 +5014,13 @@ Label2.displayName = "FORM_Label";
|
|
|
4953
5014
|
var Message2 = (0, import_react35.forwardRef)(
|
|
4954
5015
|
(_a, ref) => {
|
|
4955
5016
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
4956
|
-
return /* @__PURE__ */ (0,
|
|
5017
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4957
5018
|
RadixForm.Message,
|
|
4958
5019
|
__spreadProps(__spreadValues({}, rest), {
|
|
4959
5020
|
asChild: true,
|
|
4960
5021
|
className: `FormMessage ${className || ""}`,
|
|
4961
5022
|
ref,
|
|
4962
|
-
children: /* @__PURE__ */ (0,
|
|
5023
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Typo, { color: "red", children })
|
|
4963
5024
|
})
|
|
4964
5025
|
);
|
|
4965
5026
|
}
|
|
@@ -4969,7 +5030,7 @@ var Control2 = (0, import_react35.forwardRef)(
|
|
|
4969
5030
|
(_a, ref) => {
|
|
4970
5031
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
|
4971
5032
|
const fieldProps = (0, import_react35.useContext)(FieldContext);
|
|
4972
|
-
return /* @__PURE__ */ (0,
|
|
5033
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
4973
5034
|
RadixForm.Control,
|
|
4974
5035
|
__spreadProps(__spreadValues({}, rest), {
|
|
4975
5036
|
className: `FormControl ${className || ""}`,
|
|
@@ -4992,10 +5053,10 @@ function FormItem(_a) {
|
|
|
4992
5053
|
"children",
|
|
4993
5054
|
"errorMessage"
|
|
4994
5055
|
]);
|
|
4995
|
-
return /* @__PURE__ */ (0,
|
|
4996
|
-
/* @__PURE__ */ (0,
|
|
5056
|
+
return /* @__PURE__ */ (0, import_jsx_runtime75.jsxs)(Form.Field, __spreadProps(__spreadValues({}, fieldProps), { children: [
|
|
5057
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Form.Label, { variant: labelVariant, children: label }),
|
|
4997
5058
|
children,
|
|
4998
|
-
/* @__PURE__ */ (0,
|
|
5059
|
+
/* @__PURE__ */ (0, import_jsx_runtime75.jsx)(Form.Message, { forceMatch: Boolean(errorMessage), children: errorMessage })
|
|
4999
5060
|
] }));
|
|
5000
5061
|
}
|
|
5001
5062
|
var Form = {
|
|
@@ -5009,7 +5070,7 @@ var Form = {
|
|
|
5009
5070
|
};
|
|
5010
5071
|
|
|
5011
5072
|
// src/context/dynamic-form-context.tsx
|
|
5012
|
-
var
|
|
5073
|
+
var import_jsx_runtime76 = require("react/jsx-runtime");
|
|
5013
5074
|
var DynamicFormContext = (0, import_react36.createContext)(null);
|
|
5014
5075
|
function DynamicFormProvider({
|
|
5015
5076
|
children,
|
|
@@ -5035,7 +5096,7 @@ function DynamicFormProvider({
|
|
|
5035
5096
|
handleChange: formik.handleChange,
|
|
5036
5097
|
handleBlur: formik.handleBlur
|
|
5037
5098
|
};
|
|
5038
|
-
return /* @__PURE__ */ (0,
|
|
5099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(DynamicFormContext.Provider, { value: contextValue, children: /* @__PURE__ */ (0, import_jsx_runtime76.jsx)(Form.Root, { onSubmit: formik.handleSubmit, style: formStyle, children }) });
|
|
5039
5100
|
}
|
|
5040
5101
|
function useDynamicForm() {
|
|
5041
5102
|
const context = (0, import_react36.useContext)(DynamicFormContext);
|
|
@@ -5048,7 +5109,7 @@ function useDynamicForm() {
|
|
|
5048
5109
|
// src/atoms/check-box-group.tsx
|
|
5049
5110
|
var import_themes35 = require("@radix-ui/themes");
|
|
5050
5111
|
var import_react37 = require("react");
|
|
5051
|
-
var
|
|
5112
|
+
var import_jsx_runtime77 = require("react/jsx-runtime");
|
|
5052
5113
|
var Root9 = (0, import_react37.forwardRef)((props, ref) => {
|
|
5053
5114
|
const _a = props, { children, size = "medium" } = _a, rest = __objRest(_a, ["children", "size"]);
|
|
5054
5115
|
const groupSize = (0, import_react37.useMemo)(() => {
|
|
@@ -5062,7 +5123,7 @@ var Root9 = (0, import_react37.forwardRef)((props, ref) => {
|
|
|
5062
5123
|
return "2";
|
|
5063
5124
|
}
|
|
5064
5125
|
}, [size]);
|
|
5065
|
-
return /* @__PURE__ */ (0,
|
|
5126
|
+
return /* @__PURE__ */ (0, import_jsx_runtime77.jsx)(import_themes35.CheckboxGroup.Root, __spreadProps(__spreadValues({}, rest), { ref, size: groupSize, children }));
|
|
5066
5127
|
});
|
|
5067
5128
|
Root9.displayName = "CheckboxGroup.Root";
|
|
5068
5129
|
var CheckboxGroup = {
|
|
@@ -5073,7 +5134,7 @@ var CheckboxGroup = {
|
|
|
5073
5134
|
// src/atoms/check-box.tsx
|
|
5074
5135
|
var import_themes36 = require("@radix-ui/themes");
|
|
5075
5136
|
var import_react38 = require("react");
|
|
5076
|
-
var
|
|
5137
|
+
var import_jsx_runtime78 = require("react/jsx-runtime");
|
|
5077
5138
|
var Checkbox = (0, import_react38.forwardRef)(
|
|
5078
5139
|
(props, ref) => {
|
|
5079
5140
|
const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
|
|
@@ -5087,7 +5148,7 @@ var Checkbox = (0, import_react38.forwardRef)(
|
|
|
5087
5148
|
return "3";
|
|
5088
5149
|
}
|
|
5089
5150
|
}, [size]);
|
|
5090
|
-
return /* @__PURE__ */ (0,
|
|
5151
|
+
return /* @__PURE__ */ (0, import_jsx_runtime78.jsx)(import_themes36.Checkbox, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize }));
|
|
5091
5152
|
}
|
|
5092
5153
|
);
|
|
5093
5154
|
Checkbox.displayName = "Checkbox";
|
|
@@ -5096,7 +5157,7 @@ Checkbox.displayName = "Checkbox";
|
|
|
5096
5157
|
var import_themes37 = require("@radix-ui/themes");
|
|
5097
5158
|
|
|
5098
5159
|
// src/molecules/dynamic-field.tsx
|
|
5099
|
-
var
|
|
5160
|
+
var import_jsx_runtime79 = require("react/jsx-runtime");
|
|
5100
5161
|
function isRecord(value) {
|
|
5101
5162
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
5102
5163
|
}
|
|
@@ -5165,7 +5226,7 @@ function DynamicFormField({
|
|
|
5165
5226
|
const selectedValue = typeof value === "string" || typeof value === "number" ? String(value) : "";
|
|
5166
5227
|
switch (field.type) {
|
|
5167
5228
|
case "short_text":
|
|
5168
|
-
return /* @__PURE__ */ (0,
|
|
5229
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5169
5230
|
TextField.Root,
|
|
5170
5231
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
5171
5232
|
placeholder: field.placeholder,
|
|
@@ -5173,7 +5234,7 @@ function DynamicFormField({
|
|
|
5173
5234
|
})
|
|
5174
5235
|
);
|
|
5175
5236
|
case "email":
|
|
5176
|
-
return /* @__PURE__ */ (0,
|
|
5237
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5177
5238
|
TextField.Root,
|
|
5178
5239
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
5179
5240
|
placeholder: field.placeholder,
|
|
@@ -5181,7 +5242,7 @@ function DynamicFormField({
|
|
|
5181
5242
|
})
|
|
5182
5243
|
);
|
|
5183
5244
|
case "number":
|
|
5184
|
-
return /* @__PURE__ */ (0,
|
|
5245
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5185
5246
|
TextField.Root,
|
|
5186
5247
|
__spreadProps(__spreadValues({}, commonProps), {
|
|
5187
5248
|
inputMode: "numeric",
|
|
@@ -5191,9 +5252,9 @@ function DynamicFormField({
|
|
|
5191
5252
|
})
|
|
5192
5253
|
);
|
|
5193
5254
|
case "long_text":
|
|
5194
|
-
return /* @__PURE__ */ (0,
|
|
5255
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(TextArea, __spreadProps(__spreadValues({ rows: 4 }, commonProps), { placeholder: field.placeholder }));
|
|
5195
5256
|
case "dropdown":
|
|
5196
|
-
return /* @__PURE__ */ (0,
|
|
5257
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(
|
|
5197
5258
|
Select.Root,
|
|
5198
5259
|
{
|
|
5199
5260
|
disabled: readonly,
|
|
@@ -5202,7 +5263,7 @@ function DynamicFormField({
|
|
|
5202
5263
|
},
|
|
5203
5264
|
value: selectedValue,
|
|
5204
5265
|
children: [
|
|
5205
|
-
/* @__PURE__ */ (0,
|
|
5266
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5206
5267
|
Select.Trigger,
|
|
5207
5268
|
{
|
|
5208
5269
|
placeholder: field.placeholder,
|
|
@@ -5214,12 +5275,12 @@ function DynamicFormField({
|
|
|
5214
5275
|
}
|
|
5215
5276
|
}
|
|
5216
5277
|
),
|
|
5217
|
-
/* @__PURE__ */ (0,
|
|
5278
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Select.Content, { children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Select.Item, { value: String(option.value), children: option.label }, option.value)) })
|
|
5218
5279
|
]
|
|
5219
5280
|
}
|
|
5220
5281
|
);
|
|
5221
5282
|
case "choice":
|
|
5222
|
-
return /* @__PURE__ */ (0,
|
|
5283
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5223
5284
|
import_themes33.RadioGroup.Root,
|
|
5224
5285
|
{
|
|
5225
5286
|
disabled: readonly,
|
|
@@ -5228,13 +5289,13 @@ function DynamicFormField({
|
|
|
5228
5289
|
},
|
|
5229
5290
|
orientation: field.orientation,
|
|
5230
5291
|
value: String(value || ""),
|
|
5231
|
-
children: field.options.map((option) => /* @__PURE__ */ (0,
|
|
5292
|
+
children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_themes33.RadioGroup.Item, { value: String(option.value), children: option.label }, option.value))
|
|
5232
5293
|
}
|
|
5233
5294
|
);
|
|
5234
5295
|
case "radio_cards": {
|
|
5235
5296
|
const options = getOptions(field);
|
|
5236
5297
|
if (!options) return null;
|
|
5237
|
-
return /* @__PURE__ */ (0,
|
|
5298
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5238
5299
|
import_themes23.RadioCards.Root,
|
|
5239
5300
|
{
|
|
5240
5301
|
disabled: readonly,
|
|
@@ -5242,12 +5303,12 @@ function DynamicFormField({
|
|
|
5242
5303
|
void setFieldValue(name, newValue);
|
|
5243
5304
|
},
|
|
5244
5305
|
value: selectedValue,
|
|
5245
|
-
children: options.map((option) => /* @__PURE__ */ (0,
|
|
5306
|
+
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_themes23.RadioCards.Item, { value: String(option.value), children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Typo, { children: option.label }) }, option.value))
|
|
5246
5307
|
}
|
|
5247
5308
|
);
|
|
5248
5309
|
}
|
|
5249
5310
|
case "choices":
|
|
5250
|
-
return /* @__PURE__ */ (0,
|
|
5311
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5251
5312
|
CheckboxGroup.Root,
|
|
5252
5313
|
{
|
|
5253
5314
|
disabled: readonly,
|
|
@@ -5256,12 +5317,12 @@ function DynamicFormField({
|
|
|
5256
5317
|
},
|
|
5257
5318
|
orientation: field.orientation,
|
|
5258
5319
|
value: Array.isArray(value) ? value.map(String) : [],
|
|
5259
|
-
children: field.options.map((option) => /* @__PURE__ */ (0,
|
|
5320
|
+
children: field.options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(CheckboxGroup.Item, { value: String(option.value), children: option.label }, option.value))
|
|
5260
5321
|
}
|
|
5261
5322
|
);
|
|
5262
5323
|
case "yes_no":
|
|
5263
|
-
return /* @__PURE__ */ (0,
|
|
5264
|
-
/* @__PURE__ */ (0,
|
|
5324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsxs)(import_themes.Flex, { gap: "2", children: [
|
|
5325
|
+
/* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5265
5326
|
Checkbox,
|
|
5266
5327
|
{
|
|
5267
5328
|
checked: Boolean(value),
|
|
@@ -5271,7 +5332,7 @@ function DynamicFormField({
|
|
|
5271
5332
|
}
|
|
5272
5333
|
}
|
|
5273
5334
|
),
|
|
5274
|
-
field.description ? /* @__PURE__ */ (0,
|
|
5335
|
+
field.description ? /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(Typo, { color: "gray", variant: "caption", children: field.description }) : null
|
|
5275
5336
|
] });
|
|
5276
5337
|
case "image_radio_card": {
|
|
5277
5338
|
const options = getImageOptions(field);
|
|
@@ -5295,23 +5356,23 @@ function DynamicFormField({
|
|
|
5295
5356
|
if (!selectedOption) return;
|
|
5296
5357
|
void setFieldValue(name, selectedOption.value);
|
|
5297
5358
|
};
|
|
5298
|
-
return /* @__PURE__ */ (0,
|
|
5359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5299
5360
|
import_themes23.RadioCards.Root,
|
|
5300
5361
|
{
|
|
5301
5362
|
disabled: readonly,
|
|
5302
5363
|
onValueChange: readonly ? void 0 : handleValueChange,
|
|
5303
5364
|
value: selectedValue,
|
|
5304
|
-
children: /* @__PURE__ */ (0,
|
|
5365
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_themes16.Grid, { columns: gridColumns, gap: gridGap, rows: gridRows, children: options.map((option) => {
|
|
5305
5366
|
const optionValue = String(option.value);
|
|
5306
5367
|
const altText = option.alt || option.label;
|
|
5307
|
-
return /* @__PURE__ */ (0,
|
|
5368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5308
5369
|
import_themes23.RadioCards.Item,
|
|
5309
5370
|
{
|
|
5310
5371
|
style: {
|
|
5311
5372
|
padding: 0
|
|
5312
5373
|
},
|
|
5313
5374
|
value: optionValue,
|
|
5314
|
-
children: /* @__PURE__ */ (0,
|
|
5375
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(import_themes37.Inset, { style: { width: "100%", height: "100%", padding: 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime79.jsx)(
|
|
5315
5376
|
"img",
|
|
5316
5377
|
{
|
|
5317
5378
|
alt: altText,
|
|
@@ -5338,7 +5399,7 @@ function DynamicFormField({
|
|
|
5338
5399
|
}
|
|
5339
5400
|
|
|
5340
5401
|
// src/molecules/dynamic-form.tsx
|
|
5341
|
-
var
|
|
5402
|
+
var import_jsx_runtime80 = require("react/jsx-runtime");
|
|
5342
5403
|
function scrollToFirstError(errors, _fields) {
|
|
5343
5404
|
const firstErrorFieldName = Object.keys(errors)[0];
|
|
5344
5405
|
if (!firstErrorFieldName) return;
|
|
@@ -5425,7 +5486,7 @@ function DynamicFormRoot({
|
|
|
5425
5486
|
};
|
|
5426
5487
|
}
|
|
5427
5488
|
}, [formik.submitCount, formik.errors, fields]);
|
|
5428
|
-
return /* @__PURE__ */ (0,
|
|
5489
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
5429
5490
|
DynamicFormProvider,
|
|
5430
5491
|
{
|
|
5431
5492
|
fields,
|
|
@@ -5442,15 +5503,15 @@ function DynamicFormFieldList({
|
|
|
5442
5503
|
}) {
|
|
5443
5504
|
const { formik, fields: fieldsFromContext, readonly } = useDynamicForm();
|
|
5444
5505
|
const fields = fieldsProp || fieldsFromContext;
|
|
5445
|
-
return /* @__PURE__ */ (0,
|
|
5506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(import_jsx_runtime80.Fragment, { children: fields.map((field) => {
|
|
5446
5507
|
const errorMessage = !readonly && formik.touched[field.name] && formik.errors[field.name] ? String(formik.errors[field.name]) : void 0;
|
|
5447
|
-
return /* @__PURE__ */ (0,
|
|
5508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(
|
|
5448
5509
|
import_themes38.Box,
|
|
5449
5510
|
{
|
|
5450
5511
|
"data-error-field": errorMessage ? field.name : void 0,
|
|
5451
5512
|
"data-field-name": field.name,
|
|
5452
5513
|
mb: "2",
|
|
5453
|
-
children: /* @__PURE__ */ (0,
|
|
5514
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime80.jsxs)(
|
|
5454
5515
|
Form.FormItem,
|
|
5455
5516
|
{
|
|
5456
5517
|
errorMessage,
|
|
@@ -5459,8 +5520,8 @@ function DynamicFormFieldList({
|
|
|
5459
5520
|
name: field.name,
|
|
5460
5521
|
required: field.required,
|
|
5461
5522
|
children: [
|
|
5462
|
-
field.description && field.type !== "yes_no" ? /* @__PURE__ */ (0,
|
|
5463
|
-
/* @__PURE__ */ (0,
|
|
5523
|
+
field.description && field.type !== "yes_no" ? /* @__PURE__ */ (0, import_jsx_runtime80.jsx)(Typo, { variant: "caption", children: field.description }) : null,
|
|
5524
|
+
/* @__PURE__ */ (0, import_jsx_runtime80.jsx)(DynamicFormField, { field })
|
|
5464
5525
|
]
|
|
5465
5526
|
}
|
|
5466
5527
|
)
|
|
@@ -5609,7 +5670,7 @@ var import_react41 = require("react");
|
|
|
5609
5670
|
// src/atoms/list.tsx
|
|
5610
5671
|
var import_react40 = require("react");
|
|
5611
5672
|
var import_clsx4 = require("clsx");
|
|
5612
|
-
var
|
|
5673
|
+
var import_jsx_runtime81 = require("react/jsx-runtime");
|
|
5613
5674
|
function Root10(props) {
|
|
5614
5675
|
const _a = props, {
|
|
5615
5676
|
variant,
|
|
@@ -5635,7 +5696,7 @@ function Root10(props) {
|
|
|
5635
5696
|
),
|
|
5636
5697
|
[preSpace, propsClassName]
|
|
5637
5698
|
);
|
|
5638
|
-
return /* @__PURE__ */ (0,
|
|
5699
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(ListContext.Provider, { value: { size }, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(import_themes.Flex, __spreadProps(__spreadValues({ asChild: true, direction: "column", gap: "1" }, rest), { className, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Comp, { children }) })) });
|
|
5639
5700
|
}
|
|
5640
5701
|
function Item2(props) {
|
|
5641
5702
|
const { children } = props;
|
|
@@ -5648,7 +5709,7 @@ function Item2(props) {
|
|
|
5648
5709
|
}
|
|
5649
5710
|
});
|
|
5650
5711
|
}, [size]);
|
|
5651
|
-
return /* @__PURE__ */ (0,
|
|
5712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime81.jsx)(Typo, { asChild: true, variant, children: /* @__PURE__ */ (0, import_jsx_runtime81.jsx)("li", { children }) });
|
|
5652
5713
|
}
|
|
5653
5714
|
var ListContext = (0, import_react40.createContext)({
|
|
5654
5715
|
size: "large"
|
|
@@ -5662,7 +5723,7 @@ var List = {
|
|
|
5662
5723
|
};
|
|
5663
5724
|
|
|
5664
5725
|
// src/molecules/one-on-one-guide-list.tsx
|
|
5665
|
-
var
|
|
5726
|
+
var import_jsx_runtime82 = require("react/jsx-runtime");
|
|
5666
5727
|
var oneOnOneNoteTextReplacer = (args) => {
|
|
5667
5728
|
const { text, userName, templateName } = args;
|
|
5668
5729
|
return text.replace(/\{\{Template_Name\}\}/g, templateName).replace(/\{\{Subject_Name\}\}/g, userName);
|
|
@@ -5682,43 +5743,43 @@ function OneOnOneGuideList(props) {
|
|
|
5682
5743
|
[]
|
|
5683
5744
|
);
|
|
5684
5745
|
}, [data]);
|
|
5685
|
-
return /* @__PURE__ */ (0,
|
|
5686
|
-
/* @__PURE__ */ (0,
|
|
5746
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(import_jsx_runtime82.Fragment, { children: [
|
|
5747
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Heading2, { mb: "2", variant: "heading5", children: oneOnOneNoteTextReplacer({
|
|
5687
5748
|
text: guideTitle || "",
|
|
5688
5749
|
userName: (relacements == null ? void 0 : relacements.userName) || "",
|
|
5689
5750
|
templateName: (relacements == null ? void 0 : relacements.templateName) || ""
|
|
5690
5751
|
}) }),
|
|
5691
|
-
/* @__PURE__ */ (0,
|
|
5752
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typo, { as: "div", mb: "4", children: oneOnOneNoteTextReplacer({
|
|
5692
5753
|
text: guideDescription || "",
|
|
5693
5754
|
userName: (relacements == null ? void 0 : relacements.userName) || "\uD300\uC6D0",
|
|
5694
5755
|
templateName: (relacements == null ? void 0 : relacements.templateName) || "1on1"
|
|
5695
5756
|
}) }),
|
|
5696
|
-
/* @__PURE__ */ (0,
|
|
5757
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
5697
5758
|
List.Root,
|
|
5698
5759
|
{
|
|
5699
5760
|
preSpace: "small",
|
|
5700
5761
|
style: { fontWeight: "bold", gap: "var(--space-5)" },
|
|
5701
5762
|
variant: "ol",
|
|
5702
5763
|
children: groupedData == null ? void 0 : groupedData.map((item) => {
|
|
5703
|
-
return /* @__PURE__ */ (0,
|
|
5704
|
-
/* @__PURE__ */ (0,
|
|
5764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)(List.Item, { children: [
|
|
5765
|
+
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typo, { as: "div", mb: "1", children: item.title }),
|
|
5705
5766
|
item.children.map((child) => {
|
|
5706
5767
|
if (child.type === "ul") {
|
|
5707
|
-
return /* @__PURE__ */ (0,
|
|
5768
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
5708
5769
|
List.Root,
|
|
5709
5770
|
{
|
|
5710
5771
|
preSpace: "small",
|
|
5711
5772
|
style: { fontWeight: "normal", gap: "var(--space-2)" },
|
|
5712
5773
|
variant: "ul",
|
|
5713
5774
|
children: child.value.map((el) => {
|
|
5714
|
-
return /* @__PURE__ */ (0,
|
|
5775
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(List.Item, { children: el }, el);
|
|
5715
5776
|
})
|
|
5716
5777
|
},
|
|
5717
5778
|
child.value[0]
|
|
5718
5779
|
);
|
|
5719
5780
|
}
|
|
5720
5781
|
if (typeof child.value === "string") {
|
|
5721
|
-
return /* @__PURE__ */ (0,
|
|
5782
|
+
return /* @__PURE__ */ (0, import_jsx_runtime82.jsx)(Typo, { as: "div", mb: "2", weight: "regular", children: child.value }, child.value);
|
|
5722
5783
|
}
|
|
5723
5784
|
return null;
|
|
5724
5785
|
})
|
|
@@ -5730,16 +5791,16 @@ function OneOnOneGuideList(props) {
|
|
|
5730
5791
|
}
|
|
5731
5792
|
|
|
5732
5793
|
// src/molecules/description-json-render.tsx
|
|
5733
|
-
var
|
|
5794
|
+
var import_jsx_runtime83 = require("react/jsx-runtime");
|
|
5734
5795
|
function DescriptionJsonRender(props) {
|
|
5735
5796
|
const { value } = props;
|
|
5736
|
-
return /* @__PURE__ */ (0,
|
|
5797
|
+
return /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_jsx_runtime83.Fragment, { children: value.values.map((block, index) => {
|
|
5737
5798
|
if (block.type === "bullet-list") {
|
|
5738
5799
|
return (
|
|
5739
5800
|
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
5740
|
-
/* @__PURE__ */ (0,
|
|
5801
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes7.Box, { mb: "2", pl: "4", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(List.Root, { preSpace: "small", children: block.value.map((v, i) => (
|
|
5741
5802
|
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
5742
|
-
/* @__PURE__ */ (0,
|
|
5803
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(List.Item, { children: v }, `${index}-${i}`)
|
|
5743
5804
|
)) }) }, `${block.type}-${index}`)
|
|
5744
5805
|
);
|
|
5745
5806
|
}
|
|
@@ -5747,15 +5808,15 @@ function DescriptionJsonRender(props) {
|
|
|
5747
5808
|
const Icon = getCalloutIconComponent(block.icon);
|
|
5748
5809
|
return (
|
|
5749
5810
|
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
5750
|
-
/* @__PURE__ */ (0,
|
|
5751
|
-
/* @__PURE__ */ (0,
|
|
5752
|
-
/* @__PURE__ */ (0,
|
|
5811
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes7.Box, { mb: "2", children: /* @__PURE__ */ (0, import_jsx_runtime83.jsxs)(import_themes32.Callout.Root, { children: [
|
|
5812
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes32.Callout.Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Icon, {}) }),
|
|
5813
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(import_themes32.Callout.Text, { children: block.value })
|
|
5753
5814
|
] }) }, `${block.type}-${index}`)
|
|
5754
5815
|
);
|
|
5755
5816
|
}
|
|
5756
5817
|
return (
|
|
5757
5818
|
// eslint-disable-next-line react/no-array-index-key -- 블록 타입과 인덱스를 키로 사용
|
|
5758
|
-
/* @__PURE__ */ (0,
|
|
5819
|
+
/* @__PURE__ */ (0, import_jsx_runtime83.jsx)(Typo, { mb: "2", weight: "regular", children: block.value }, `${block.type}-${index}`)
|
|
5759
5820
|
);
|
|
5760
5821
|
}) });
|
|
5761
5822
|
}
|
|
@@ -5763,12 +5824,12 @@ function DescriptionJsonRender(props) {
|
|
|
5763
5824
|
// src/molecules/training-info-guideline.tsx
|
|
5764
5825
|
var import_react42 = require("react");
|
|
5765
5826
|
var import_react_icons8 = require("@radix-ui/react-icons");
|
|
5766
|
-
var
|
|
5827
|
+
var import_jsx_runtime84 = require("react/jsx-runtime");
|
|
5767
5828
|
function TrainingInfoGuideline({
|
|
5768
5829
|
values,
|
|
5769
5830
|
onClickFileDownload
|
|
5770
5831
|
}) {
|
|
5771
|
-
return /* @__PURE__ */ (0,
|
|
5832
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_jsx_runtime84.Fragment, { children: values.map((value) => /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5772
5833
|
TrainingInfoGuidelineItem,
|
|
5773
5834
|
{
|
|
5774
5835
|
onClickFileDownload,
|
|
@@ -5786,11 +5847,11 @@ function TrainingInfoGuidelineItem({
|
|
|
5786
5847
|
}) {
|
|
5787
5848
|
const [isLoading, setIsLoading] = (0, import_react42.useState)(true);
|
|
5788
5849
|
if (value.type === "file") {
|
|
5789
|
-
return /* @__PURE__ */ (0,
|
|
5850
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5790
5851
|
TrainingInfoGuidelineButton,
|
|
5791
5852
|
{
|
|
5792
5853
|
description: "\uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC",
|
|
5793
|
-
icon: /* @__PURE__ */ (0,
|
|
5854
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_icons8.FileTextIcon, {}),
|
|
5794
5855
|
onClick: () => {
|
|
5795
5856
|
onClickFileDownload({ url: value.url, filename: value.filename });
|
|
5796
5857
|
},
|
|
@@ -5799,11 +5860,11 @@ function TrainingInfoGuidelineItem({
|
|
|
5799
5860
|
);
|
|
5800
5861
|
}
|
|
5801
5862
|
if (value.type === "youtube-shorts") {
|
|
5802
|
-
return /* @__PURE__ */ (0,
|
|
5863
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5803
5864
|
TrainingInfoGuidelineButton,
|
|
5804
5865
|
{
|
|
5805
5866
|
description: "TIPP \uC1FC\uCE20 \uBCF4\uAE30",
|
|
5806
|
-
icon: /* @__PURE__ */ (0,
|
|
5867
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_icons8.VideoIcon, {}),
|
|
5807
5868
|
onClick: () => {
|
|
5808
5869
|
window.open(value.url, "_blank");
|
|
5809
5870
|
},
|
|
@@ -5812,16 +5873,16 @@ function TrainingInfoGuidelineItem({
|
|
|
5812
5873
|
);
|
|
5813
5874
|
}
|
|
5814
5875
|
if (value.type === "video") {
|
|
5815
|
-
return /* @__PURE__ */ (0,
|
|
5816
|
-
/* @__PURE__ */ (0,
|
|
5876
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(Dialog.Root, { children: [
|
|
5877
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(Dialog.Trigger, { children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5817
5878
|
TrainingInfoGuidelineButton,
|
|
5818
5879
|
{
|
|
5819
5880
|
description: "\uC601\uC0C1 \uC790\uB8CC",
|
|
5820
|
-
icon: /* @__PURE__ */ (0,
|
|
5881
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_react_icons8.VideoIcon, {}),
|
|
5821
5882
|
title: value.videoTitle
|
|
5822
5883
|
}
|
|
5823
5884
|
) }),
|
|
5824
|
-
/* @__PURE__ */ (0,
|
|
5885
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5825
5886
|
Dialog.Content,
|
|
5826
5887
|
{
|
|
5827
5888
|
height: "100%",
|
|
@@ -5829,7 +5890,7 @@ function TrainingInfoGuidelineItem({
|
|
|
5829
5890
|
maxWidth: "800px",
|
|
5830
5891
|
title: value.videoTitle,
|
|
5831
5892
|
width: "100%",
|
|
5832
|
-
children: /* @__PURE__ */ (0,
|
|
5893
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes18.AspectRatio, { ratio: 16 / 9, style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(
|
|
5833
5894
|
import_themes.Flex,
|
|
5834
5895
|
{
|
|
5835
5896
|
align: "center",
|
|
@@ -5841,7 +5902,7 @@ function TrainingInfoGuidelineItem({
|
|
|
5841
5902
|
position: "relative"
|
|
5842
5903
|
},
|
|
5843
5904
|
children: [
|
|
5844
|
-
isLoading ? /* @__PURE__ */ (0,
|
|
5905
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5845
5906
|
import_themes.Flex,
|
|
5846
5907
|
{
|
|
5847
5908
|
align: "center",
|
|
@@ -5856,10 +5917,10 @@ function TrainingInfoGuidelineItem({
|
|
|
5856
5917
|
color: "white"
|
|
5857
5918
|
},
|
|
5858
5919
|
width: "100%",
|
|
5859
|
-
children: /* @__PURE__ */ (0,
|
|
5920
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes4.Spinner, { size: "3", style: { width: 48, height: 48 } })
|
|
5860
5921
|
}
|
|
5861
5922
|
) : null,
|
|
5862
|
-
/* @__PURE__ */ (0,
|
|
5923
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5863
5924
|
"iframe",
|
|
5864
5925
|
{
|
|
5865
5926
|
allowFullScreen: true,
|
|
@@ -5889,18 +5950,48 @@ function TrainingInfoGuidelineButton({
|
|
|
5889
5950
|
description,
|
|
5890
5951
|
onClick
|
|
5891
5952
|
}) {
|
|
5892
|
-
return /* @__PURE__ */ (0,
|
|
5953
|
+
return /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5893
5954
|
Button,
|
|
5894
5955
|
{
|
|
5895
5956
|
onClick,
|
|
5896
|
-
style: {
|
|
5957
|
+
style: {
|
|
5958
|
+
width: "100%",
|
|
5959
|
+
height: "auto",
|
|
5960
|
+
minHeight: "48px",
|
|
5961
|
+
textAlign: "left",
|
|
5962
|
+
paddingTop: 8,
|
|
5963
|
+
paddingBottom: 8
|
|
5964
|
+
},
|
|
5897
5965
|
variant: "outline",
|
|
5898
|
-
children: /* @__PURE__ */ (0,
|
|
5899
|
-
icon,
|
|
5900
|
-
/* @__PURE__ */ (0,
|
|
5901
|
-
/* @__PURE__ */ (0,
|
|
5902
|
-
/* @__PURE__ */ (0,
|
|
5903
|
-
|
|
5966
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_themes.Flex, { align: "center", gap: "2", width: "100%", children: [
|
|
5967
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes.Flex, { align: "center", flexShrink: "0", children: icon }),
|
|
5968
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(import_themes28.Separator, { orientation: "vertical", size: "2", style: { flexShrink: 0 } }),
|
|
5969
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsxs)(import_themes7.Box, { flexGrow: "1", style: { minWidth: 0 }, children: [
|
|
5970
|
+
/* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5971
|
+
Typo,
|
|
5972
|
+
{
|
|
5973
|
+
as: "div",
|
|
5974
|
+
style: {
|
|
5975
|
+
whiteSpace: "normal",
|
|
5976
|
+
wordBreak: "break-word",
|
|
5977
|
+
overflowWrap: "anywhere"
|
|
5978
|
+
},
|
|
5979
|
+
children: title
|
|
5980
|
+
}
|
|
5981
|
+
),
|
|
5982
|
+
typeof description === "string" && description !== "" ? /* @__PURE__ */ (0, import_jsx_runtime84.jsx)(
|
|
5983
|
+
Typo,
|
|
5984
|
+
{
|
|
5985
|
+
style: {
|
|
5986
|
+
display: "block",
|
|
5987
|
+
whiteSpace: "normal",
|
|
5988
|
+
wordBreak: "break-word",
|
|
5989
|
+
overflowWrap: "anywhere"
|
|
5990
|
+
},
|
|
5991
|
+
variant: "caption",
|
|
5992
|
+
children: description
|
|
5993
|
+
}
|
|
5994
|
+
) : null
|
|
5904
5995
|
] })
|
|
5905
5996
|
] })
|
|
5906
5997
|
}
|
|
@@ -6216,7 +6307,7 @@ function resetFieldType(field, nextType, allFields) {
|
|
|
6216
6307
|
// src/molecules/dynamic-form-editor-field-editor-panel.tsx
|
|
6217
6308
|
var import_react43 = require("react");
|
|
6218
6309
|
var import_themes39 = require("@radix-ui/themes");
|
|
6219
|
-
var
|
|
6310
|
+
var import_jsx_runtime85 = require("react/jsx-runtime");
|
|
6220
6311
|
function isRecord4(value) {
|
|
6221
6312
|
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
6222
6313
|
}
|
|
@@ -6302,11 +6393,11 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6302
6393
|
if (!field) return "";
|
|
6303
6394
|
return String(field.placeholder || "");
|
|
6304
6395
|
}, [field]);
|
|
6305
|
-
return /* @__PURE__ */ (0,
|
|
6306
|
-
/* @__PURE__ */ (0,
|
|
6307
|
-
/* @__PURE__ */ (0,
|
|
6308
|
-
/* @__PURE__ */ (0,
|
|
6309
|
-
/* @__PURE__ */ (0,
|
|
6396
|
+
return /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Card, { style: { flex: 1, minWidth: 520, padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { direction: "column", gap: "4", children: [
|
|
6397
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "center", justify: "between", children: [
|
|
6398
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "body", children: "\uD544\uB4DC \uD3B8\uC9D1" }),
|
|
6399
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "center", gap: "1", children: [
|
|
6400
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6310
6401
|
IconButton,
|
|
6311
6402
|
{
|
|
6312
6403
|
"aria-label": "\uD544\uB4DC \uC704\uB85C",
|
|
@@ -6315,10 +6406,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6315
6406
|
onMoveField("up");
|
|
6316
6407
|
},
|
|
6317
6408
|
variant: "soft",
|
|
6318
|
-
children: /* @__PURE__ */ (0,
|
|
6409
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.ChevronUpIcon, {})
|
|
6319
6410
|
}
|
|
6320
6411
|
),
|
|
6321
|
-
/* @__PURE__ */ (0,
|
|
6412
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6322
6413
|
IconButton,
|
|
6323
6414
|
{
|
|
6324
6415
|
"aria-label": "\uD544\uB4DC \uC544\uB798\uB85C",
|
|
@@ -6327,36 +6418,36 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6327
6418
|
onMoveField("down");
|
|
6328
6419
|
},
|
|
6329
6420
|
variant: "soft",
|
|
6330
|
-
children: /* @__PURE__ */ (0,
|
|
6421
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.ChevronDownIcon, {})
|
|
6331
6422
|
}
|
|
6332
6423
|
),
|
|
6333
|
-
/* @__PURE__ */ (0,
|
|
6424
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6334
6425
|
IconButton,
|
|
6335
6426
|
{
|
|
6336
6427
|
"aria-label": "\uD544\uB4DC \uBCF5\uC81C",
|
|
6337
6428
|
disabled: readonly || !field,
|
|
6338
6429
|
onClick: onDuplicateField,
|
|
6339
6430
|
variant: "soft",
|
|
6340
|
-
children: /* @__PURE__ */ (0,
|
|
6431
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.CopyIcon, {})
|
|
6341
6432
|
}
|
|
6342
6433
|
),
|
|
6343
|
-
/* @__PURE__ */ (0,
|
|
6434
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6344
6435
|
IconButton,
|
|
6345
6436
|
{
|
|
6346
6437
|
"aria-label": "\uD544\uB4DC \uC0AD\uC81C",
|
|
6347
6438
|
disabled: readonly || !field,
|
|
6348
6439
|
onClick: onDeleteField,
|
|
6349
6440
|
variant: "soft",
|
|
6350
|
-
children: /* @__PURE__ */ (0,
|
|
6441
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.TrashIcon, {})
|
|
6351
6442
|
}
|
|
6352
6443
|
)
|
|
6353
6444
|
] })
|
|
6354
6445
|
] }),
|
|
6355
|
-
!field ? /* @__PURE__ */ (0,
|
|
6356
|
-
/* @__PURE__ */ (0,
|
|
6357
|
-
/* @__PURE__ */ (0,
|
|
6358
|
-
/* @__PURE__ */ (0,
|
|
6359
|
-
/* @__PURE__ */ (0,
|
|
6446
|
+
!field ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { color: "gray", variant: "caption", children: "\uC67C\uCABD\uC5D0\uC11C \uD544\uB4DC\uB97C \uC120\uD0DD\uD558\uC138\uC694." }) : /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { direction: "column", gap: "3", children: [
|
|
6447
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "end", gap: "2", children: [
|
|
6448
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6449
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "name" }),
|
|
6450
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6360
6451
|
TextField.Root,
|
|
6361
6452
|
{
|
|
6362
6453
|
disabled: readonly,
|
|
@@ -6367,9 +6458,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6367
6458
|
}
|
|
6368
6459
|
)
|
|
6369
6460
|
] }),
|
|
6370
|
-
/* @__PURE__ */ (0,
|
|
6371
|
-
/* @__PURE__ */ (0,
|
|
6372
|
-
/* @__PURE__ */ (0,
|
|
6461
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6462
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "label" }),
|
|
6463
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6373
6464
|
TextField.Root,
|
|
6374
6465
|
{
|
|
6375
6466
|
disabled: readonly,
|
|
@@ -6381,8 +6472,8 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6381
6472
|
)
|
|
6382
6473
|
] })
|
|
6383
6474
|
] }),
|
|
6384
|
-
/* @__PURE__ */ (0,
|
|
6385
|
-
/* @__PURE__ */ (0,
|
|
6475
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "center", gap: "2", children: [
|
|
6476
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
6386
6477
|
Select.Root,
|
|
6387
6478
|
{
|
|
6388
6479
|
disabled: readonly,
|
|
@@ -6392,13 +6483,13 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6392
6483
|
},
|
|
6393
6484
|
value: field.type,
|
|
6394
6485
|
children: [
|
|
6395
|
-
/* @__PURE__ */ (0,
|
|
6396
|
-
/* @__PURE__ */ (0,
|
|
6486
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Trigger, { style: { minWidth: 220 } }),
|
|
6487
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Content, { children: fieldTypes.map((t) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Item, { value: t, children: getFieldTypeLabel(t) }, t)) })
|
|
6397
6488
|
]
|
|
6398
6489
|
}
|
|
6399
6490
|
),
|
|
6400
|
-
/* @__PURE__ */ (0,
|
|
6401
|
-
/* @__PURE__ */ (0,
|
|
6491
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "center", gap: "2", children: [
|
|
6492
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6402
6493
|
Checkbox,
|
|
6403
6494
|
{
|
|
6404
6495
|
checked: Boolean(field.required),
|
|
@@ -6408,12 +6499,12 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6408
6499
|
}
|
|
6409
6500
|
}
|
|
6410
6501
|
),
|
|
6411
|
-
/* @__PURE__ */ (0,
|
|
6502
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "\uD544\uC218" })
|
|
6412
6503
|
] })
|
|
6413
6504
|
] }),
|
|
6414
|
-
/* @__PURE__ */ (0,
|
|
6415
|
-
/* @__PURE__ */ (0,
|
|
6416
|
-
/* @__PURE__ */ (0,
|
|
6505
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { children: [
|
|
6506
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "description" }),
|
|
6507
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6417
6508
|
TextArea,
|
|
6418
6509
|
{
|
|
6419
6510
|
disabled: readonly,
|
|
@@ -6427,9 +6518,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6427
6518
|
}
|
|
6428
6519
|
)
|
|
6429
6520
|
] }),
|
|
6430
|
-
field.type === "short_text" || field.type === "long_text" || field.type === "number" || field.type === "email" || field.type === "dropdown" ? /* @__PURE__ */ (0,
|
|
6431
|
-
/* @__PURE__ */ (0,
|
|
6432
|
-
/* @__PURE__ */ (0,
|
|
6521
|
+
field.type === "short_text" || field.type === "long_text" || field.type === "number" || field.type === "email" || field.type === "dropdown" ? /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { children: [
|
|
6522
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "placeholder" }),
|
|
6523
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6433
6524
|
TextField.Root,
|
|
6434
6525
|
{
|
|
6435
6526
|
disabled: readonly,
|
|
@@ -6440,9 +6531,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6440
6531
|
}
|
|
6441
6532
|
)
|
|
6442
6533
|
] }) : null,
|
|
6443
|
-
field.type === "choice" || field.type === "choices" ? /* @__PURE__ */ (0,
|
|
6444
|
-
/* @__PURE__ */ (0,
|
|
6445
|
-
/* @__PURE__ */ (0,
|
|
6534
|
+
field.type === "choice" || field.type === "choices" ? /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { children: [
|
|
6535
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "orientation" }),
|
|
6536
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
6446
6537
|
Select.Root,
|
|
6447
6538
|
{
|
|
6448
6539
|
disabled: readonly,
|
|
@@ -6452,19 +6543,19 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6452
6543
|
},
|
|
6453
6544
|
value: field.orientation || "vertical",
|
|
6454
6545
|
children: [
|
|
6455
|
-
/* @__PURE__ */ (0,
|
|
6456
|
-
/* @__PURE__ */ (0,
|
|
6457
|
-
/* @__PURE__ */ (0,
|
|
6458
|
-
/* @__PURE__ */ (0,
|
|
6546
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Trigger, { style: { minWidth: 220 } }),
|
|
6547
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Select.Content, { children: [
|
|
6548
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Item, { value: "vertical", children: "vertical" }),
|
|
6549
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Item, { value: "horizontal", children: "horizontal" })
|
|
6459
6550
|
] })
|
|
6460
6551
|
]
|
|
6461
6552
|
}
|
|
6462
6553
|
)
|
|
6463
6554
|
] }) : null,
|
|
6464
|
-
field.type === "dropdown" || field.type === "choice" || field.type === "radio_cards" || field.type === "choices" ? /* @__PURE__ */ (0,
|
|
6465
|
-
/* @__PURE__ */ (0,
|
|
6466
|
-
/* @__PURE__ */ (0,
|
|
6467
|
-
/* @__PURE__ */ (0,
|
|
6555
|
+
field.type === "dropdown" || field.type === "choice" || field.type === "radio_cards" || field.type === "choices" ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
6556
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "center", justify: "between", children: [
|
|
6557
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "options" }),
|
|
6558
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
6468
6559
|
Button,
|
|
6469
6560
|
{
|
|
6470
6561
|
disabled: readonly,
|
|
@@ -6482,16 +6573,16 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6482
6573
|
size: "small",
|
|
6483
6574
|
variant: "soft",
|
|
6484
6575
|
children: [
|
|
6485
|
-
/* @__PURE__ */ (0,
|
|
6576
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.PlusIcon, {}),
|
|
6486
6577
|
" \uCD94\uAC00"
|
|
6487
6578
|
]
|
|
6488
6579
|
}
|
|
6489
6580
|
)
|
|
6490
6581
|
] }),
|
|
6491
|
-
getOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0,
|
|
6492
|
-
/* @__PURE__ */ (0,
|
|
6493
|
-
/* @__PURE__ */ (0,
|
|
6494
|
-
/* @__PURE__ */ (0,
|
|
6582
|
+
getOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "end", gap: "2", children: [
|
|
6583
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6584
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "label" }),
|
|
6585
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6495
6586
|
TextField.Root,
|
|
6496
6587
|
{
|
|
6497
6588
|
disabled: readonly,
|
|
@@ -6506,9 +6597,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6506
6597
|
}
|
|
6507
6598
|
)
|
|
6508
6599
|
] }),
|
|
6509
|
-
/* @__PURE__ */ (0,
|
|
6510
|
-
/* @__PURE__ */ (0,
|
|
6511
|
-
/* @__PURE__ */ (0,
|
|
6600
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6601
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "value" }),
|
|
6602
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6512
6603
|
TextField.Root,
|
|
6513
6604
|
{
|
|
6514
6605
|
disabled: readonly,
|
|
@@ -6523,8 +6614,8 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6523
6614
|
}
|
|
6524
6615
|
)
|
|
6525
6616
|
] }),
|
|
6526
|
-
/* @__PURE__ */ (0,
|
|
6527
|
-
/* @__PURE__ */ (0,
|
|
6617
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { gap: "1", children: [
|
|
6618
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6528
6619
|
IconButton,
|
|
6529
6620
|
{
|
|
6530
6621
|
"aria-label": "\uC635\uC158 \uC704\uB85C",
|
|
@@ -6535,10 +6626,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6535
6626
|
onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
|
|
6536
6627
|
},
|
|
6537
6628
|
variant: "soft",
|
|
6538
|
-
children: /* @__PURE__ */ (0,
|
|
6629
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.ChevronUpIcon, {})
|
|
6539
6630
|
}
|
|
6540
6631
|
),
|
|
6541
|
-
/* @__PURE__ */ (0,
|
|
6632
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6542
6633
|
IconButton,
|
|
6543
6634
|
{
|
|
6544
6635
|
"aria-label": "\uC635\uC158 \uC544\uB798\uB85C",
|
|
@@ -6549,10 +6640,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6549
6640
|
onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
|
|
6550
6641
|
},
|
|
6551
6642
|
variant: "soft",
|
|
6552
|
-
children: /* @__PURE__ */ (0,
|
|
6643
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.ChevronDownIcon, {})
|
|
6553
6644
|
}
|
|
6554
6645
|
),
|
|
6555
|
-
/* @__PURE__ */ (0,
|
|
6646
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6556
6647
|
IconButton,
|
|
6557
6648
|
{
|
|
6558
6649
|
"aria-label": "\uC635\uC158 \uC0AD\uC81C",
|
|
@@ -6563,16 +6654,16 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6563
6654
|
onUpdateField(updateOptions(field, toFieldOptions(nextDrafts)));
|
|
6564
6655
|
},
|
|
6565
6656
|
variant: "soft",
|
|
6566
|
-
children: /* @__PURE__ */ (0,
|
|
6657
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.TrashIcon, {})
|
|
6567
6658
|
}
|
|
6568
6659
|
)
|
|
6569
6660
|
] })
|
|
6570
6661
|
] }, `${opt.value}-${opt.label}`))
|
|
6571
6662
|
] }) }) : null,
|
|
6572
|
-
field.type === "image_radio_card" ? /* @__PURE__ */ (0,
|
|
6573
|
-
/* @__PURE__ */ (0,
|
|
6574
|
-
/* @__PURE__ */ (0,
|
|
6575
|
-
/* @__PURE__ */ (0,
|
|
6663
|
+
field.type === "image_radio_card" ? /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { direction: "column", gap: "3", children: [
|
|
6664
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "center", justify: "between", children: [
|
|
6665
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "image options" }),
|
|
6666
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
6576
6667
|
Button,
|
|
6577
6668
|
{
|
|
6578
6669
|
disabled: readonly,
|
|
@@ -6591,21 +6682,21 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6591
6682
|
size: "small",
|
|
6592
6683
|
variant: "soft",
|
|
6593
6684
|
children: [
|
|
6594
|
-
/* @__PURE__ */ (0,
|
|
6685
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.PlusIcon, {}),
|
|
6595
6686
|
" \uCD94\uAC00"
|
|
6596
6687
|
]
|
|
6597
6688
|
}
|
|
6598
6689
|
)
|
|
6599
6690
|
] }),
|
|
6600
|
-
getImageOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0,
|
|
6691
|
+
getImageOptionDrafts(field).map((opt, i) => /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6601
6692
|
Card,
|
|
6602
6693
|
{
|
|
6603
6694
|
style: { padding: 10 },
|
|
6604
|
-
children: /* @__PURE__ */ (0,
|
|
6605
|
-
/* @__PURE__ */ (0,
|
|
6606
|
-
/* @__PURE__ */ (0,
|
|
6607
|
-
/* @__PURE__ */ (0,
|
|
6608
|
-
/* @__PURE__ */ (0,
|
|
6695
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
6696
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "end", gap: "2", children: [
|
|
6697
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6698
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "label" }),
|
|
6699
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6609
6700
|
TextField.Root,
|
|
6610
6701
|
{
|
|
6611
6702
|
disabled: readonly,
|
|
@@ -6622,9 +6713,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6622
6713
|
}
|
|
6623
6714
|
)
|
|
6624
6715
|
] }),
|
|
6625
|
-
/* @__PURE__ */ (0,
|
|
6626
|
-
/* @__PURE__ */ (0,
|
|
6627
|
-
/* @__PURE__ */ (0,
|
|
6716
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6717
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "value" }),
|
|
6718
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6628
6719
|
TextField.Root,
|
|
6629
6720
|
{
|
|
6630
6721
|
disabled: readonly,
|
|
@@ -6642,9 +6733,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6642
6733
|
)
|
|
6643
6734
|
] })
|
|
6644
6735
|
] }),
|
|
6645
|
-
/* @__PURE__ */ (0,
|
|
6646
|
-
/* @__PURE__ */ (0,
|
|
6647
|
-
/* @__PURE__ */ (0,
|
|
6736
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { children: [
|
|
6737
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "imageSrc" }),
|
|
6738
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6648
6739
|
TextField.Root,
|
|
6649
6740
|
{
|
|
6650
6741
|
disabled: readonly,
|
|
@@ -6661,10 +6752,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6661
6752
|
}
|
|
6662
6753
|
)
|
|
6663
6754
|
] }),
|
|
6664
|
-
/* @__PURE__ */ (0,
|
|
6665
|
-
/* @__PURE__ */ (0,
|
|
6666
|
-
/* @__PURE__ */ (0,
|
|
6667
|
-
/* @__PURE__ */ (0,
|
|
6755
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { align: "end", gap: "2", children: [
|
|
6756
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6757
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "alt" }),
|
|
6758
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6668
6759
|
TextField.Root,
|
|
6669
6760
|
{
|
|
6670
6761
|
disabled: readonly,
|
|
@@ -6682,7 +6773,7 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6682
6773
|
}
|
|
6683
6774
|
)
|
|
6684
6775
|
] }),
|
|
6685
|
-
/* @__PURE__ */ (0,
|
|
6776
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6686
6777
|
IconButton,
|
|
6687
6778
|
{
|
|
6688
6779
|
"aria-label": "\uC774\uBBF8\uC9C0 \uC635\uC158 \uC0AD\uC81C",
|
|
@@ -6695,7 +6786,7 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6695
6786
|
);
|
|
6696
6787
|
},
|
|
6697
6788
|
variant: "soft",
|
|
6698
|
-
children: /* @__PURE__ */ (0,
|
|
6789
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime85.jsx)(import_react_icons.TrashIcon, {})
|
|
6699
6790
|
}
|
|
6700
6791
|
)
|
|
6701
6792
|
] })
|
|
@@ -6703,10 +6794,10 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6703
6794
|
},
|
|
6704
6795
|
`${opt.value}-${opt.label}-${opt.imageSrc}`
|
|
6705
6796
|
)),
|
|
6706
|
-
/* @__PURE__ */ (0,
|
|
6707
|
-
/* @__PURE__ */ (0,
|
|
6708
|
-
/* @__PURE__ */ (0,
|
|
6709
|
-
/* @__PURE__ */ (0,
|
|
6797
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { gap: "2", children: [
|
|
6798
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6799
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "gridColumnsCount" }),
|
|
6800
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6710
6801
|
TextField.Root,
|
|
6711
6802
|
{
|
|
6712
6803
|
disabled: readonly,
|
|
@@ -6722,9 +6813,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6722
6813
|
}
|
|
6723
6814
|
)
|
|
6724
6815
|
] }),
|
|
6725
|
-
/* @__PURE__ */ (0,
|
|
6726
|
-
/* @__PURE__ */ (0,
|
|
6727
|
-
/* @__PURE__ */ (0,
|
|
6816
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6817
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "gridItemHeight" }),
|
|
6818
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6728
6819
|
TextField.Root,
|
|
6729
6820
|
{
|
|
6730
6821
|
disabled: readonly,
|
|
@@ -6737,9 +6828,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6737
6828
|
}
|
|
6738
6829
|
)
|
|
6739
6830
|
] }),
|
|
6740
|
-
/* @__PURE__ */ (0,
|
|
6741
|
-
/* @__PURE__ */ (0,
|
|
6742
|
-
/* @__PURE__ */ (0,
|
|
6831
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6832
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "gridGap" }),
|
|
6833
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6743
6834
|
TextField.Root,
|
|
6744
6835
|
{
|
|
6745
6836
|
disabled: readonly,
|
|
@@ -6751,9 +6842,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6751
6842
|
)
|
|
6752
6843
|
] })
|
|
6753
6844
|
] }),
|
|
6754
|
-
/* @__PURE__ */ (0,
|
|
6755
|
-
/* @__PURE__ */ (0,
|
|
6756
|
-
/* @__PURE__ */ (0,
|
|
6845
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { children: [
|
|
6846
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "imageFit" }),
|
|
6847
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(
|
|
6757
6848
|
Select.Root,
|
|
6758
6849
|
{
|
|
6759
6850
|
disabled: readonly,
|
|
@@ -6763,22 +6854,22 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6763
6854
|
},
|
|
6764
6855
|
value: field.imageFit || "cover",
|
|
6765
6856
|
children: [
|
|
6766
|
-
/* @__PURE__ */ (0,
|
|
6767
|
-
/* @__PURE__ */ (0,
|
|
6768
|
-
/* @__PURE__ */ (0,
|
|
6769
|
-
/* @__PURE__ */ (0,
|
|
6857
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Trigger, { style: { minWidth: 220 } }),
|
|
6858
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(Select.Content, { children: [
|
|
6859
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Item, { value: "cover", children: "cover" }),
|
|
6860
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Select.Item, { value: "contain", children: "contain" })
|
|
6770
6861
|
] })
|
|
6771
6862
|
]
|
|
6772
6863
|
}
|
|
6773
6864
|
)
|
|
6774
6865
|
] })
|
|
6775
6866
|
] }) }) : null,
|
|
6776
|
-
/* @__PURE__ */ (0,
|
|
6777
|
-
/* @__PURE__ */ (0,
|
|
6778
|
-
/* @__PURE__ */ (0,
|
|
6779
|
-
/* @__PURE__ */ (0,
|
|
6780
|
-
/* @__PURE__ */ (0,
|
|
6781
|
-
/* @__PURE__ */ (0,
|
|
6867
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
6868
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "validation" }),
|
|
6869
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes.Flex, { gap: "2", children: [
|
|
6870
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6871
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "min" }),
|
|
6872
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6782
6873
|
TextField.Root,
|
|
6783
6874
|
{
|
|
6784
6875
|
disabled: readonly,
|
|
@@ -6794,9 +6885,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6794
6885
|
}
|
|
6795
6886
|
)
|
|
6796
6887
|
] }),
|
|
6797
|
-
/* @__PURE__ */ (0,
|
|
6798
|
-
/* @__PURE__ */ (0,
|
|
6799
|
-
/* @__PURE__ */ (0,
|
|
6888
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { style: { flex: 1 }, children: [
|
|
6889
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "max" }),
|
|
6890
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6800
6891
|
TextField.Root,
|
|
6801
6892
|
{
|
|
6802
6893
|
disabled: readonly,
|
|
@@ -6813,9 +6904,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6813
6904
|
)
|
|
6814
6905
|
] })
|
|
6815
6906
|
] }),
|
|
6816
|
-
/* @__PURE__ */ (0,
|
|
6817
|
-
/* @__PURE__ */ (0,
|
|
6818
|
-
/* @__PURE__ */ (0,
|
|
6907
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { children: [
|
|
6908
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "pattern" }),
|
|
6909
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6819
6910
|
TextField.Root,
|
|
6820
6911
|
{
|
|
6821
6912
|
disabled: readonly,
|
|
@@ -6828,9 +6919,9 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6828
6919
|
}
|
|
6829
6920
|
)
|
|
6830
6921
|
] }),
|
|
6831
|
-
/* @__PURE__ */ (0,
|
|
6832
|
-
/* @__PURE__ */ (0,
|
|
6833
|
-
/* @__PURE__ */ (0,
|
|
6922
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsxs)(import_themes39.Box, { children: [
|
|
6923
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(Typo, { variant: "caption", children: "message" }),
|
|
6924
|
+
/* @__PURE__ */ (0, import_jsx_runtime85.jsx)(
|
|
6834
6925
|
TextField.Root,
|
|
6835
6926
|
{
|
|
6836
6927
|
disabled: readonly,
|
|
@@ -6851,7 +6942,7 @@ function DynamicFormEditorFieldEditorPanel(props) {
|
|
|
6851
6942
|
// src/molecules/dynamic-form-editor-field-list-panel.tsx
|
|
6852
6943
|
var import_react44 = require("react");
|
|
6853
6944
|
var import_themes40 = require("@radix-ui/themes");
|
|
6854
|
-
var
|
|
6945
|
+
var import_jsx_runtime86 = require("react/jsx-runtime");
|
|
6855
6946
|
function isFieldType2(value, types) {
|
|
6856
6947
|
return types.some((t) => t === value);
|
|
6857
6948
|
}
|
|
@@ -6869,10 +6960,10 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
6869
6960
|
const triggerPlaceholder = (0, import_react44.useMemo)(() => {
|
|
6870
6961
|
return readonly ? "\uCD94\uAC00(\uC77D\uAE30 \uC804\uC6A9)" : "\uCD94\uAC00";
|
|
6871
6962
|
}, [readonly]);
|
|
6872
|
-
return /* @__PURE__ */ (0,
|
|
6873
|
-
/* @__PURE__ */ (0,
|
|
6874
|
-
/* @__PURE__ */ (0,
|
|
6875
|
-
/* @__PURE__ */ (0,
|
|
6963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Card, { style: { width: 340, padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes.Flex, { direction: "column", gap: "3", children: [
|
|
6964
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes.Flex, { align: "center", justify: "between", children: [
|
|
6965
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Typo, { variant: "body", children: "\uD544\uB4DC" }),
|
|
6966
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(
|
|
6876
6967
|
Select.Root,
|
|
6877
6968
|
{
|
|
6878
6969
|
disabled: readonly,
|
|
@@ -6882,18 +6973,18 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
6882
6973
|
},
|
|
6883
6974
|
value: "",
|
|
6884
6975
|
children: [
|
|
6885
|
-
/* @__PURE__ */ (0,
|
|
6886
|
-
/* @__PURE__ */ (0,
|
|
6976
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Select.Trigger, { placeholder: triggerPlaceholder }),
|
|
6977
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Select.Content, { children: fieldTypes.map((t) => /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Select.Item, { value: t, children: getFieldTypeLabel(t) }, t)) })
|
|
6887
6978
|
]
|
|
6888
6979
|
}
|
|
6889
6980
|
)
|
|
6890
6981
|
] }),
|
|
6891
|
-
/* @__PURE__ */ (0,
|
|
6892
|
-
isEmpty ? /* @__PURE__ */ (0,
|
|
6982
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
6983
|
+
isEmpty ? /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(Typo, { color: "gray", variant: "caption", children: "\uC544\uC9C1 \uD544\uB4DC\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4." }) : null,
|
|
6893
6984
|
fields.map((field) => {
|
|
6894
6985
|
const isSelected = field.name === selectedFieldName;
|
|
6895
6986
|
const hasError = hasFieldError(field.name);
|
|
6896
|
-
return /* @__PURE__ */ (0,
|
|
6987
|
+
return /* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
6897
6988
|
Card,
|
|
6898
6989
|
{
|
|
6899
6990
|
error: isSelected ? hasError : void 0,
|
|
@@ -6906,8 +6997,8 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
6906
6997
|
opacity: readonly ? 0.8 : 1,
|
|
6907
6998
|
border: isSelected ? "1px solid var(--accent-9)" : "1px solid transparent"
|
|
6908
6999
|
},
|
|
6909
|
-
children: /* @__PURE__ */ (0,
|
|
6910
|
-
/* @__PURE__ */ (0,
|
|
7000
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(import_themes40.Box, { style: { minWidth: 0 }, children: [
|
|
7001
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsx)(
|
|
6911
7002
|
Typo,
|
|
6912
7003
|
{
|
|
6913
7004
|
style: {
|
|
@@ -6919,7 +7010,7 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
6919
7010
|
children: field.label
|
|
6920
7011
|
}
|
|
6921
7012
|
),
|
|
6922
|
-
/* @__PURE__ */ (0,
|
|
7013
|
+
/* @__PURE__ */ (0, import_jsx_runtime86.jsxs)(Typo, { color: "gray", variant: "caption", children: [
|
|
6923
7014
|
field.name,
|
|
6924
7015
|
" \xB7 ",
|
|
6925
7016
|
field.type,
|
|
@@ -6935,13 +7026,13 @@ function DynamicFormEditorFieldListPanel(props) {
|
|
|
6935
7026
|
}
|
|
6936
7027
|
|
|
6937
7028
|
// src/molecules/dynamic-form-editor-issues-panel.tsx
|
|
6938
|
-
var
|
|
7029
|
+
var import_jsx_runtime87 = require("react/jsx-runtime");
|
|
6939
7030
|
function DynamicFormEditorIssuesPanel(props) {
|
|
6940
7031
|
const { issues } = props;
|
|
6941
7032
|
if (issues.length === 0) return null;
|
|
6942
|
-
return /* @__PURE__ */ (0,
|
|
6943
|
-
/* @__PURE__ */ (0,
|
|
6944
|
-
issues.map((i) => /* @__PURE__ */ (0,
|
|
7033
|
+
return /* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Card, { style: { padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(import_themes.Flex, { direction: "column", gap: "2", children: [
|
|
7034
|
+
/* @__PURE__ */ (0, import_jsx_runtime87.jsx)(Typo, { variant: "caption", children: "\uC2A4\uD0A4\uB9C8 \uC774\uC288" }),
|
|
7035
|
+
issues.map((i) => /* @__PURE__ */ (0, import_jsx_runtime87.jsxs)(
|
|
6945
7036
|
Typo,
|
|
6946
7037
|
{
|
|
6947
7038
|
color: i.level === "error" ? "red" : "gray",
|
|
@@ -6960,18 +7051,18 @@ function DynamicFormEditorIssuesPanel(props) {
|
|
|
6960
7051
|
}
|
|
6961
7052
|
|
|
6962
7053
|
// src/molecules/dynamic-form-editor-preview-panel.tsx
|
|
6963
|
-
var
|
|
7054
|
+
var import_jsx_runtime88 = require("react/jsx-runtime");
|
|
6964
7055
|
function DynamicFormEditorPreviewPanel(props) {
|
|
6965
7056
|
const { show, fields } = props;
|
|
6966
7057
|
if (!show) return null;
|
|
6967
|
-
return /* @__PURE__ */ (0,
|
|
6968
|
-
/* @__PURE__ */ (0,
|
|
6969
|
-
/* @__PURE__ */ (0,
|
|
7058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Card, { style: { width: 420, padding: 12 }, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsxs)(import_themes.Flex, { direction: "column", gap: "3", children: [
|
|
7059
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(Typo, { variant: "body", children: "\uD504\uB9AC\uBDF0" }),
|
|
7060
|
+
/* @__PURE__ */ (0, import_jsx_runtime88.jsx)(DynamicForm.Root, { fields, onSubmit: () => void 0, readonly: true, children: /* @__PURE__ */ (0, import_jsx_runtime88.jsx)(DynamicForm.FieldList, { labelVariant: "body" }) })
|
|
6970
7061
|
] }) });
|
|
6971
7062
|
}
|
|
6972
7063
|
|
|
6973
7064
|
// src/molecules/dynamic-form-editor.tsx
|
|
6974
|
-
var
|
|
7065
|
+
var import_jsx_runtime89 = require("react/jsx-runtime");
|
|
6975
7066
|
function getInitialSchema(value, defaultValue) {
|
|
6976
7067
|
if (value !== void 0) return normalizeSchema(value);
|
|
6977
7068
|
return normalizeSchema(defaultValue);
|
|
@@ -7121,8 +7212,8 @@ function DynamicFormEditor(props) {
|
|
|
7121
7212
|
void result;
|
|
7122
7213
|
}, [effectiveSchema, onSave]);
|
|
7123
7214
|
const disableSave = readonly || !onSave || hasErrorIssues(issues);
|
|
7124
|
-
return /* @__PURE__ */ (0,
|
|
7125
|
-
/* @__PURE__ */ (0,
|
|
7215
|
+
return /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_themes.Flex, { align: "start", gap: "4", style: { width: "100%" }, children: [
|
|
7216
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
7126
7217
|
DynamicFormEditorFieldListPanel,
|
|
7127
7218
|
{
|
|
7128
7219
|
fieldTypes,
|
|
@@ -7134,8 +7225,8 @@ function DynamicFormEditor(props) {
|
|
|
7134
7225
|
selectedFieldName
|
|
7135
7226
|
}
|
|
7136
7227
|
),
|
|
7137
|
-
/* @__PURE__ */ (0,
|
|
7138
|
-
/* @__PURE__ */ (0,
|
|
7228
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_themes.Flex, { direction: "column", gap: "3", style: { flex: 1, minWidth: 520 }, children: [
|
|
7229
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(
|
|
7139
7230
|
DynamicFormEditorFieldEditorPanel,
|
|
7140
7231
|
{
|
|
7141
7232
|
field: selected.field,
|
|
@@ -7150,13 +7241,13 @@ function DynamicFormEditor(props) {
|
|
|
7150
7241
|
readonly
|
|
7151
7242
|
}
|
|
7152
7243
|
),
|
|
7153
|
-
/* @__PURE__ */ (0,
|
|
7154
|
-
onSave || onCancel ? /* @__PURE__ */ (0,
|
|
7155
|
-
onCancel ? /* @__PURE__ */ (0,
|
|
7156
|
-
onSave ? /* @__PURE__ */ (0,
|
|
7244
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(DynamicFormEditorIssuesPanel, { issues }),
|
|
7245
|
+
onSave || onCancel ? /* @__PURE__ */ (0, import_jsx_runtime89.jsxs)(import_themes.Flex, { gap: "2", justify: "end", children: [
|
|
7246
|
+
onCancel ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button, { disabled: readonly, onClick: onCancel, variant: "soft", children: "\uCDE8\uC18C" }) : null,
|
|
7247
|
+
onSave ? /* @__PURE__ */ (0, import_jsx_runtime89.jsx)(Button, { disabled: disableSave, onClick: handleSave, children: "\uC800\uC7A5" }) : null
|
|
7157
7248
|
] }) : null
|
|
7158
7249
|
] }),
|
|
7159
|
-
/* @__PURE__ */ (0,
|
|
7250
|
+
/* @__PURE__ */ (0, import_jsx_runtime89.jsx)(DynamicFormEditorPreviewPanel, { fields: effectiveSchema.fields, show: showPreview })
|
|
7160
7251
|
] });
|
|
7161
7252
|
}
|
|
7162
7253
|
|
|
@@ -7167,14 +7258,14 @@ var import_themes42 = require("@radix-ui/themes");
|
|
|
7167
7258
|
// src/atoms/dropdown-menu.tsx
|
|
7168
7259
|
var import_themes41 = require("@radix-ui/themes");
|
|
7169
7260
|
var import_react46 = require("react");
|
|
7170
|
-
var
|
|
7261
|
+
var import_jsx_runtime90 = require("react/jsx-runtime");
|
|
7171
7262
|
var Content4 = (0, import_react46.forwardRef)((props, ref) => {
|
|
7172
7263
|
const _a = props, { isNavigation, className } = _a, rest = __objRest(_a, ["isNavigation", "className"]);
|
|
7173
7264
|
const contentClassName = (0, import_react46.useMemo)(() => {
|
|
7174
7265
|
const cls = isNavigation ? "dropdown-navigation" : "";
|
|
7175
7266
|
return [cls, className].join(" ");
|
|
7176
7267
|
}, [isNavigation, className]);
|
|
7177
|
-
return /* @__PURE__ */ (0,
|
|
7268
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(
|
|
7178
7269
|
import_themes41.DropdownMenu.Content,
|
|
7179
7270
|
__spreadProps(__spreadValues({
|
|
7180
7271
|
ref
|
|
@@ -7187,7 +7278,7 @@ Content4.displayName = "DropdownMenu.Content";
|
|
|
7187
7278
|
var Trigger4 = (0, import_react46.forwardRef)(
|
|
7188
7279
|
(_a, ref) => {
|
|
7189
7280
|
var _b = _a, { asChild: _asChild } = _b, props = __objRest(_b, ["asChild"]);
|
|
7190
|
-
return /* @__PURE__ */ (0,
|
|
7281
|
+
return /* @__PURE__ */ (0, import_jsx_runtime90.jsx)(import_themes41.DropdownMenu.Trigger, __spreadValues({ ref }, props));
|
|
7191
7282
|
}
|
|
7192
7283
|
);
|
|
7193
7284
|
Trigger4.displayName = "DropdownMenu.Trigger";
|
|
@@ -7197,7 +7288,7 @@ var DropdownMenu = __spreadProps(__spreadValues({}, import_themes41.DropdownMenu
|
|
|
7197
7288
|
});
|
|
7198
7289
|
|
|
7199
7290
|
// src/molecules/autocomplete-textfield.tsx
|
|
7200
|
-
var
|
|
7291
|
+
var import_jsx_runtime91 = require("react/jsx-runtime");
|
|
7201
7292
|
var AutocompleteTextfield = (0, import_react47.forwardRef)(
|
|
7202
7293
|
(_a, ref) => {
|
|
7203
7294
|
var _b = _a, {
|
|
@@ -7323,8 +7414,8 @@ var AutocompleteTextfield = (0, import_react47.forwardRef)(
|
|
|
7323
7414
|
const item = listRef.current.children[highlightedIndex];
|
|
7324
7415
|
item.scrollIntoView({ block: "nearest" });
|
|
7325
7416
|
}, [highlightedIndex]);
|
|
7326
|
-
return /* @__PURE__ */ (0,
|
|
7327
|
-
/* @__PURE__ */ (0,
|
|
7417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(import_themes42.Box, { position: "relative", style: { width: "100%" }, children: [
|
|
7418
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
7328
7419
|
TextField.Root,
|
|
7329
7420
|
__spreadProps(__spreadValues({
|
|
7330
7421
|
"aria-activedescendant": open && highlightedIndex >= 0 ? `${listboxId}-option-${highlightedIndex}` : void 0,
|
|
@@ -7350,12 +7441,12 @@ var AutocompleteTextfield = (0, import_react47.forwardRef)(
|
|
|
7350
7441
|
value: inputValue
|
|
7351
7442
|
}, rest), {
|
|
7352
7443
|
children: [
|
|
7353
|
-
slotLeft && /* @__PURE__ */ (0,
|
|
7354
|
-
slotRight && /* @__PURE__ */ (0,
|
|
7444
|
+
slotLeft && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(TextField.Slot, { side: "left", children: slotLeft }),
|
|
7445
|
+
slotRight && /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(TextField.Slot, { side: "right", children: slotRight })
|
|
7355
7446
|
]
|
|
7356
7447
|
})
|
|
7357
7448
|
),
|
|
7358
|
-
/* @__PURE__ */ (0,
|
|
7449
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsxs)(
|
|
7359
7450
|
DropdownMenu.Root,
|
|
7360
7451
|
{
|
|
7361
7452
|
modal: false,
|
|
@@ -7367,7 +7458,7 @@ var AutocompleteTextfield = (0, import_react47.forwardRef)(
|
|
|
7367
7458
|
},
|
|
7368
7459
|
open,
|
|
7369
7460
|
children: [
|
|
7370
|
-
/* @__PURE__ */ (0,
|
|
7461
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7371
7462
|
"span",
|
|
7372
7463
|
{
|
|
7373
7464
|
"aria-hidden": "true",
|
|
@@ -7382,7 +7473,7 @@ var AutocompleteTextfield = (0, import_react47.forwardRef)(
|
|
|
7382
7473
|
}
|
|
7383
7474
|
}
|
|
7384
7475
|
) }),
|
|
7385
|
-
/* @__PURE__ */ (0,
|
|
7476
|
+
/* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7386
7477
|
DropdownMenu.Content,
|
|
7387
7478
|
{
|
|
7388
7479
|
align: "start",
|
|
@@ -7399,7 +7490,7 @@ var AutocompleteTextfield = (0, import_react47.forwardRef)(
|
|
|
7399
7490
|
padding: 0,
|
|
7400
7491
|
width: "var(--radix-dropdown-menu-trigger-width)"
|
|
7401
7492
|
},
|
|
7402
|
-
children: filtered.length === 0 && emptyMessage !== null ? /* @__PURE__ */ (0,
|
|
7493
|
+
children: filtered.length === 0 && emptyMessage !== null ? /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(import_themes42.Box, { px: "2", py: "2", children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Typo, { color: "gray", children: emptyMessage }) }) : /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7403
7494
|
"ul",
|
|
7404
7495
|
{
|
|
7405
7496
|
id: listboxId,
|
|
@@ -7408,7 +7499,7 @@ var AutocompleteTextfield = (0, import_react47.forwardRef)(
|
|
|
7408
7499
|
style: { listStyle: "none", margin: 0, padding: 0 },
|
|
7409
7500
|
children: filtered.map((option, index) => {
|
|
7410
7501
|
const isHighlighted = index === highlightedIndex;
|
|
7411
|
-
return /* @__PURE__ */ (0,
|
|
7502
|
+
return /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(
|
|
7412
7503
|
"li",
|
|
7413
7504
|
{
|
|
7414
7505
|
"aria-selected": isHighlighted,
|
|
@@ -7427,7 +7518,7 @@ var AutocompleteTextfield = (0, import_react47.forwardRef)(
|
|
|
7427
7518
|
backgroundColor: isHighlighted ? "var(--accent-3)" : "transparent",
|
|
7428
7519
|
transition: "background-color 80ms"
|
|
7429
7520
|
},
|
|
7430
|
-
children: /* @__PURE__ */ (0,
|
|
7521
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime91.jsx)(Typo, { variant: "body", children: option.label })
|
|
7431
7522
|
},
|
|
7432
7523
|
option.value
|
|
7433
7524
|
);
|