catchup-library-web 1.17.0 → 1.17.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +94 -70
- package/dist/index.mjs +93 -70
- package/package.json +1 -1
- package/src/components/errors/StatusError.tsx +23 -0
- package/src/index.ts +2 -0
- package/src/properties/IErrorProperties.ts +5 -0
package/dist/index.d.mts
CHANGED
|
@@ -265,6 +265,14 @@ declare const ActivityPreviewByData: ({ data, showType, showDescription, lockedT
|
|
|
265
265
|
|
|
266
266
|
declare const ActivityPreviewByAnswerData: ({ data, showType, showDescription, lockedType, typeOptionList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, }: IActivityPreviewByAnswerDataProps) => react_jsx_runtime.JSX.Element | null;
|
|
267
267
|
|
|
268
|
+
interface IStatusErrorProperties {
|
|
269
|
+
statusCode?: string;
|
|
270
|
+
statusText?: string;
|
|
271
|
+
textSize?: string;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
declare const StatusError: ({ statusCode, statusText, textSize, }: IStatusErrorProperties) => react_jsx_runtime.JSX.Element;
|
|
275
|
+
|
|
268
276
|
interface IDividerLineProps {
|
|
269
277
|
opacity: string;
|
|
270
278
|
}
|
|
@@ -859,4 +867,4 @@ declare const retrieveActivityMethodologyOptionList: () => {
|
|
|
859
867
|
text: string;
|
|
860
868
|
}[];
|
|
861
869
|
|
|
862
|
-
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityLabel, ActivityPreviewByAnswerData, ActivityPreviewByData, ActivitySolutionContent, ActivityTemplateLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueVerticalDividerLine, BrandLabel, CancelButton, CategoryLabel, CoterieLabel, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GradeLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrderingActivityContent, OutcomeLabel, PageTravelGroup, PersonalLabel, PrimaryButton, ProgressBar, PublishingHouseLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SubTitle, THREE_MONTHS, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, adjustForTimezone, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, checkIfAnswerIsEmpty, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCatchxamReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterGradeLevelOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseJwt, parseMaterialMapFromData, retrieveActivityAnswerFromAnswerList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrentDefaultDataMap, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDistintCoterieTypeFromCatchtivityApplicationDTO, retrieveDocumentTypeFromAcceptedFormat, retrieveDocumentTypeFromExtension, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeOptionList, retrieveLastNOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|
|
870
|
+
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityLabel, ActivityPreviewByAnswerData, ActivityPreviewByData, ActivitySolutionContent, ActivityTemplateLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueVerticalDividerLine, BrandLabel, CancelButton, CategoryLabel, CoterieLabel, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GradeLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrderingActivityContent, OutcomeLabel, PageTravelGroup, PersonalLabel, PrimaryButton, ProgressBar, PublishingHouseLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, StatusError, SubTitle, THREE_MONTHS, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, adjustForTimezone, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, checkIfAnswerIsEmpty, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCatchxamReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterGradeLevelOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseJwt, parseMaterialMapFromData, retrieveActivityAnswerFromAnswerList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrentDefaultDataMap, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDistintCoterieTypeFromCatchtivityApplicationDTO, retrieveDocumentTypeFromAcceptedFormat, retrieveDocumentTypeFromExtension, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeOptionList, retrieveLastNOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|
package/dist/index.d.ts
CHANGED
|
@@ -265,6 +265,14 @@ declare const ActivityPreviewByData: ({ data, showType, showDescription, lockedT
|
|
|
265
265
|
|
|
266
266
|
declare const ActivityPreviewByAnswerData: ({ data, showType, showDescription, lockedType, typeOptionList, showSolution, showEvaluationRubric, showDifficulty, isFullScreen, showCorrectAnswer, }: IActivityPreviewByAnswerDataProps) => react_jsx_runtime.JSX.Element | null;
|
|
267
267
|
|
|
268
|
+
interface IStatusErrorProperties {
|
|
269
|
+
statusCode?: string;
|
|
270
|
+
statusText?: string;
|
|
271
|
+
textSize?: string;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
declare const StatusError: ({ statusCode, statusText, textSize, }: IStatusErrorProperties) => react_jsx_runtime.JSX.Element;
|
|
275
|
+
|
|
268
276
|
interface IDividerLineProps {
|
|
269
277
|
opacity: string;
|
|
270
278
|
}
|
|
@@ -859,4 +867,4 @@ declare const retrieveActivityMethodologyOptionList: () => {
|
|
|
859
867
|
text: string;
|
|
860
868
|
}[];
|
|
861
869
|
|
|
862
|
-
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityLabel, ActivityPreviewByAnswerData, ActivityPreviewByData, ActivitySolutionContent, ActivityTemplateLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueVerticalDividerLine, BrandLabel, CancelButton, CategoryLabel, CoterieLabel, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GradeLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrderingActivityContent, OutcomeLabel, PageTravelGroup, PersonalLabel, PrimaryButton, ProgressBar, PublishingHouseLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SubTitle, THREE_MONTHS, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, adjustForTimezone, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, checkIfAnswerIsEmpty, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCatchxamReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterGradeLevelOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseJwt, parseMaterialMapFromData, retrieveActivityAnswerFromAnswerList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrentDefaultDataMap, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDistintCoterieTypeFromCatchtivityApplicationDTO, retrieveDocumentTypeFromAcceptedFormat, retrieveDocumentTypeFromExtension, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeOptionList, retrieveLastNOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|
|
870
|
+
export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityLabel, ActivityPreviewByAnswerData, ActivityPreviewByData, ActivitySolutionContent, ActivityTemplateLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueVerticalDividerLine, BrandLabel, CancelButton, CategoryLabel, CoterieLabel, CreateButton, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GradeLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrderingActivityContent, OutcomeLabel, PageTravelGroup, PersonalLabel, PrimaryButton, ProgressBar, PublishingHouseLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, StatusError, SubTitle, THREE_MONTHS, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, adjustForTimezone, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, checkIfAnswerIsEmpty, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCatchxamReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterGradeLevelOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseJwt, parseMaterialMapFromData, retrieveActivityAnswerFromAnswerList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrentDefaultDataMap, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDistintCoterieTypeFromCatchtivityApplicationDTO, retrieveDocumentTypeFromAcceptedFormat, retrieveDocumentTypeFromExtension, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeOptionList, retrieveLastNOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
|
package/dist/index.js
CHANGED
|
@@ -121,6 +121,7 @@ __export(index_exports, {
|
|
|
121
121
|
SelectionCheckbox: () => SelectionCheckbox_default,
|
|
122
122
|
SelectionTab: () => SelectionTab_default,
|
|
123
123
|
SelectionTabFill: () => SelectionTabFill_default,
|
|
124
|
+
StatusError: () => StatusError_default,
|
|
124
125
|
SubTitle: () => SubTitle_default,
|
|
125
126
|
THREE_MONTHS: () => THREE_MONTHS,
|
|
126
127
|
TimedProgressBar: () => TimedProgressBar_default,
|
|
@@ -7392,10 +7393,32 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7392
7393
|
};
|
|
7393
7394
|
var ActivityPreviewByAnswerData_default = ActivityPreviewByAnswerData;
|
|
7394
7395
|
|
|
7395
|
-
// src/components/
|
|
7396
|
+
// src/components/errors/StatusError.tsx
|
|
7396
7397
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
7398
|
+
var StatusError = ({
|
|
7399
|
+
statusCode,
|
|
7400
|
+
statusText,
|
|
7401
|
+
textSize
|
|
7402
|
+
}) => {
|
|
7403
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "flex flex-col justify-center items-center", children: [
|
|
7404
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "text-6xl text-catchup-red my-5", children: i18n_default.t("ooops_text") }),
|
|
7405
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "text-center my-5", children: [
|
|
7406
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: "italic", children: i18n_default.t("unexcepted_error_text") }),
|
|
7407
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("p", { className: `${textSize ? textSize : "text-lg"}`, children: [
|
|
7408
|
+
"(",
|
|
7409
|
+
statusCode ? `${statusCode} - ` : null,
|
|
7410
|
+
statusText,
|
|
7411
|
+
")"
|
|
7412
|
+
] })
|
|
7413
|
+
] })
|
|
7414
|
+
] });
|
|
7415
|
+
};
|
|
7416
|
+
var StatusError_default = StatusError;
|
|
7417
|
+
|
|
7418
|
+
// src/components/dividers/BlueVerticalDividerLine.tsx
|
|
7419
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
7397
7420
|
var BlueVerticalDividerLine = ({ opacity }) => {
|
|
7398
|
-
return /* @__PURE__ */ (0,
|
|
7421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
7399
7422
|
"div",
|
|
7400
7423
|
{
|
|
7401
7424
|
className: `w-[2px] h-[40px] my-4 bg-catchup-blue ${opacity === "medium" ? "opacity-50" : ""}`
|
|
@@ -7405,7 +7428,7 @@ var BlueVerticalDividerLine = ({ opacity }) => {
|
|
|
7405
7428
|
var BlueVerticalDividerLine_default = BlueVerticalDividerLine;
|
|
7406
7429
|
|
|
7407
7430
|
// src/components/groups/LeftTextRightInputGroup.tsx
|
|
7408
|
-
var
|
|
7431
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
7409
7432
|
var LeftTextRightInputGroup = ({
|
|
7410
7433
|
type,
|
|
7411
7434
|
title,
|
|
@@ -7415,9 +7438,9 @@ var LeftTextRightInputGroup = ({
|
|
|
7415
7438
|
disabled,
|
|
7416
7439
|
errorText
|
|
7417
7440
|
}) => {
|
|
7418
|
-
return /* @__PURE__ */ (0,
|
|
7419
|
-
/* @__PURE__ */ (0,
|
|
7420
|
-
/* @__PURE__ */ (0,
|
|
7441
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "w-full flex flex-row mx-2", children: [
|
|
7442
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "w-catchup-input-group-title py-5", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { children: title }) }),
|
|
7443
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
7421
7444
|
InputGroup_default,
|
|
7422
7445
|
{
|
|
7423
7446
|
type,
|
|
@@ -7434,7 +7457,7 @@ var LeftTextRightInputGroup_default = LeftTextRightInputGroup;
|
|
|
7434
7457
|
|
|
7435
7458
|
// src/components/groups/PageTravelGroup.tsx
|
|
7436
7459
|
var import_react30 = require("react");
|
|
7437
|
-
var
|
|
7460
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
7438
7461
|
var PageTravelGroup = ({
|
|
7439
7462
|
isImageProcessing,
|
|
7440
7463
|
handleImageProcessing,
|
|
@@ -7452,8 +7475,8 @@ var PageTravelGroup = ({
|
|
|
7452
7475
|
(0, import_react30.useEffect)(() => {
|
|
7453
7476
|
setNewPageNumber(pageNumber + 1);
|
|
7454
7477
|
}, [pageNumber]);
|
|
7455
|
-
return /* @__PURE__ */ (0,
|
|
7456
|
-
pageNumber === 0 ? null : /* @__PURE__ */ (0,
|
|
7478
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex-1 flex flex-row justify-center items-center flex-wrap", children: [
|
|
7479
|
+
pageNumber === 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7457
7480
|
BaseImage_default,
|
|
7458
7481
|
{
|
|
7459
7482
|
size: "small",
|
|
@@ -7471,7 +7494,7 @@ var PageTravelGroup = ({
|
|
|
7471
7494
|
}
|
|
7472
7495
|
}
|
|
7473
7496
|
) }),
|
|
7474
|
-
Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ (0,
|
|
7497
|
+
Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "px-2", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7475
7498
|
"p",
|
|
7476
7499
|
{
|
|
7477
7500
|
className: `${pageNumber === index ? "text-2xl" : "text-md"} cursor-pointer`,
|
|
@@ -7486,7 +7509,7 @@ var PageTravelGroup = ({
|
|
|
7486
7509
|
children: index + 1
|
|
7487
7510
|
}
|
|
7488
7511
|
) }, index)),
|
|
7489
|
-
totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */ (0,
|
|
7512
|
+
totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7490
7513
|
BaseImage_default,
|
|
7491
7514
|
{
|
|
7492
7515
|
size: "small",
|
|
@@ -7504,7 +7527,7 @@ var PageTravelGroup = ({
|
|
|
7504
7527
|
}
|
|
7505
7528
|
}
|
|
7506
7529
|
) }),
|
|
7507
|
-
/* @__PURE__ */ (0,
|
|
7530
|
+
/* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
|
|
7508
7531
|
"input",
|
|
7509
7532
|
{
|
|
7510
7533
|
className: `w-[90px] py-2 px-4 border border-catchup-gray-100 rounded-catchup-xlarge focus:outline-none placeholder-catchup-gray-200 focus:border-catchup-blue-400 focus:shadow-input`,
|
|
@@ -7528,14 +7551,14 @@ var PageTravelGroup = ({
|
|
|
7528
7551
|
var PageTravelGroup_default = PageTravelGroup;
|
|
7529
7552
|
|
|
7530
7553
|
// src/components/boxes/SelectionCheckbox.tsx
|
|
7531
|
-
var
|
|
7554
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
7532
7555
|
var SelectionCheckbox = ({
|
|
7533
7556
|
optionList,
|
|
7534
7557
|
selectedIdList,
|
|
7535
7558
|
handleSelectOnClick,
|
|
7536
7559
|
handleRemoveOnClick
|
|
7537
7560
|
}) => {
|
|
7538
|
-
return /* @__PURE__ */ (0,
|
|
7561
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
7539
7562
|
"div",
|
|
7540
7563
|
{
|
|
7541
7564
|
className: `${selectedIdList.findIndex(
|
|
@@ -7550,14 +7573,14 @@ var SelectionCheckbox = ({
|
|
|
7550
7573
|
handleRemoveOnClick(option.id);
|
|
7551
7574
|
}
|
|
7552
7575
|
},
|
|
7553
|
-
children: /* @__PURE__ */ (0,
|
|
7576
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
7554
7577
|
"div",
|
|
7555
7578
|
{
|
|
7556
7579
|
className: `flex flex-row items-center gap-x-1 ${selectedIdList.findIndex(
|
|
7557
7580
|
(selectedId) => selectedId === option.id
|
|
7558
7581
|
) > -1 ? "opacity-100" : "opacity-50"}`,
|
|
7559
7582
|
children: [
|
|
7560
|
-
/* @__PURE__ */ (0,
|
|
7583
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
|
|
7561
7584
|
BaseImage_default,
|
|
7562
7585
|
{
|
|
7563
7586
|
src: selectedIdList.findIndex(
|
|
@@ -7567,7 +7590,7 @@ var SelectionCheckbox = ({
|
|
|
7567
7590
|
size: "small"
|
|
7568
7591
|
}
|
|
7569
7592
|
),
|
|
7570
|
-
/* @__PURE__ */ (0,
|
|
7593
|
+
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("p", { children: option.text }) })
|
|
7571
7594
|
]
|
|
7572
7595
|
}
|
|
7573
7596
|
)
|
|
@@ -7578,7 +7601,7 @@ var SelectionCheckbox = ({
|
|
|
7578
7601
|
var SelectionCheckbox_default = SelectionCheckbox;
|
|
7579
7602
|
|
|
7580
7603
|
// src/components/tabs/SelectionTab.tsx
|
|
7581
|
-
var
|
|
7604
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
7582
7605
|
var SelectionTab = ({
|
|
7583
7606
|
optionList,
|
|
7584
7607
|
selectedId,
|
|
@@ -7588,7 +7611,7 @@ var SelectionTab = ({
|
|
|
7588
7611
|
textColor,
|
|
7589
7612
|
borderColor
|
|
7590
7613
|
}) => {
|
|
7591
|
-
return /* @__PURE__ */ (0,
|
|
7614
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap mb-2 text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
|
|
7592
7615
|
"div",
|
|
7593
7616
|
{
|
|
7594
7617
|
className: `${selectedId === option.id ? selectedTextColor ? selectedTextColor : "text-catchup-blue-500" : textColor ? textColor : "text-catchup-gray-300"} ${selectedId === option.id ? selectedBorderColor ? selectedBorderColor : "border-catchup-blue-500" : borderColor ? borderColor : "border-catchup-gray-50"} border-b-2 transition-all duration-300 p-3 cursor-pointer`,
|
|
@@ -7596,8 +7619,8 @@ var SelectionTab = ({
|
|
|
7596
7619
|
handleSelectOnClick(option.id);
|
|
7597
7620
|
},
|
|
7598
7621
|
children: [
|
|
7599
|
-
/* @__PURE__ */ (0,
|
|
7600
|
-
option.subTitle ? /* @__PURE__ */ (0,
|
|
7622
|
+
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "text-lg", children: option.title }),
|
|
7623
|
+
option.subTitle ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: "text-md", children: option.subTitle }) : null
|
|
7601
7624
|
]
|
|
7602
7625
|
},
|
|
7603
7626
|
index
|
|
@@ -7606,20 +7629,20 @@ var SelectionTab = ({
|
|
|
7606
7629
|
var SelectionTab_default = SelectionTab;
|
|
7607
7630
|
|
|
7608
7631
|
// src/components/tabs/SelectionTabFill.tsx
|
|
7609
|
-
var
|
|
7632
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
7610
7633
|
var SelectionTabFill = ({
|
|
7611
7634
|
optionList,
|
|
7612
7635
|
selectedId,
|
|
7613
7636
|
handleSelectOnClick
|
|
7614
7637
|
}) => {
|
|
7615
|
-
return /* @__PURE__ */ (0,
|
|
7638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "w-full flex flex-row bg-catchup-gray-50 gap-x-2 rounded-catchup-medium px-4 py-2 justify-center text-center", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
7616
7639
|
"div",
|
|
7617
7640
|
{
|
|
7618
7641
|
className: "cursor-pointer",
|
|
7619
7642
|
onClick: () => {
|
|
7620
7643
|
handleSelectOnClick(option.id);
|
|
7621
7644
|
},
|
|
7622
|
-
children: /* @__PURE__ */ (0,
|
|
7645
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
7623
7646
|
"p",
|
|
7624
7647
|
{
|
|
7625
7648
|
className: `${selectedId === option.id ? "text-catchup-white bg-catchup-blue-500" : "text-catchup-gray-300"} transition-all duration-300 rounded-catchup-medium px-2 py-1`,
|
|
@@ -7633,34 +7656,34 @@ var SelectionTabFill = ({
|
|
|
7633
7656
|
var SelectionTabFill_default = SelectionTabFill;
|
|
7634
7657
|
|
|
7635
7658
|
// src/components/labels/ActivityTemplateLabel.tsx
|
|
7636
|
-
var
|
|
7659
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
7637
7660
|
var ActivityTemplateLabel = ({
|
|
7638
7661
|
title,
|
|
7639
7662
|
icon,
|
|
7640
7663
|
font
|
|
7641
7664
|
}) => {
|
|
7642
|
-
return /* @__PURE__ */ (0,
|
|
7643
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7644
|
-
/* @__PURE__ */ (0,
|
|
7665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7666
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(BaseImage_default, { src: "/icons/activity.webp", alt: "label", size: "xsmall" }),
|
|
7667
|
+
/* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7645
7668
|
] }) });
|
|
7646
7669
|
};
|
|
7647
7670
|
var ActivityTemplateLabel_default = ActivityTemplateLabel;
|
|
7648
7671
|
|
|
7649
7672
|
// src/components/labels/BrandLabel.tsx
|
|
7650
|
-
var
|
|
7673
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
7651
7674
|
var BrandLabel = ({ title, icon, font }) => {
|
|
7652
|
-
return /* @__PURE__ */ (0,
|
|
7653
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7654
|
-
/* @__PURE__ */ (0,
|
|
7675
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7676
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(BaseImage_default, { src: "/icons/brand-label.webp", alt: "label", size: "xsmall" }),
|
|
7677
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7655
7678
|
] }) });
|
|
7656
7679
|
};
|
|
7657
7680
|
var BrandLabel_default = BrandLabel;
|
|
7658
7681
|
|
|
7659
7682
|
// src/components/labels/CategoryLabel.tsx
|
|
7660
|
-
var
|
|
7683
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
7661
7684
|
var CategoryLabel = ({ title, icon, font }) => {
|
|
7662
|
-
return /* @__PURE__ */ (0,
|
|
7663
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7685
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7686
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
|
|
7664
7687
|
BaseImage_default,
|
|
7665
7688
|
{
|
|
7666
7689
|
src: "/icons/category-label.webp",
|
|
@@ -7668,40 +7691,40 @@ var CategoryLabel = ({ title, icon, font }) => {
|
|
|
7668
7691
|
size: "xsmall"
|
|
7669
7692
|
}
|
|
7670
7693
|
),
|
|
7671
|
-
/* @__PURE__ */ (0,
|
|
7694
|
+
/* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7672
7695
|
] }) });
|
|
7673
7696
|
};
|
|
7674
7697
|
var CategoryLabel_default = CategoryLabel;
|
|
7675
7698
|
|
|
7676
7699
|
// src/components/labels/CoterieLabel.tsx
|
|
7677
|
-
var
|
|
7700
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
7678
7701
|
var CoterieLabel = ({ title, font }) => {
|
|
7679
|
-
return /* @__PURE__ */ (0,
|
|
7702
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: font ? font : "text-sm", children: title }) });
|
|
7680
7703
|
};
|
|
7681
7704
|
var CoterieLabel_default = CoterieLabel;
|
|
7682
7705
|
|
|
7683
7706
|
// src/components/labels/GradeLabel.tsx
|
|
7684
|
-
var
|
|
7707
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
7685
7708
|
var GradeLabel = ({ title, font }) => {
|
|
7686
|
-
return /* @__PURE__ */ (0,
|
|
7709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: font ? font : "text-sm", children: title }) });
|
|
7687
7710
|
};
|
|
7688
7711
|
var GradeLabel_default = GradeLabel;
|
|
7689
7712
|
|
|
7690
7713
|
// src/components/labels/OutcomeLabel.tsx
|
|
7691
|
-
var
|
|
7714
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
7692
7715
|
var OutcomeLabel = ({ title, font }) => {
|
|
7693
|
-
return /* @__PURE__ */ (0,
|
|
7694
|
-
/* @__PURE__ */ (0,
|
|
7695
|
-
/* @__PURE__ */ (0,
|
|
7716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7717
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)(BaseImage_default, { src: "/icons/category.webp", alt: "label", size: "xsmall" }),
|
|
7718
|
+
/* @__PURE__ */ (0, import_jsx_runtime63.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7696
7719
|
] }) });
|
|
7697
7720
|
};
|
|
7698
7721
|
var OutcomeLabel_default = OutcomeLabel;
|
|
7699
7722
|
|
|
7700
7723
|
// src/components/labels/PersonalLabel.tsx
|
|
7701
|
-
var
|
|
7724
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
7702
7725
|
var PersonalLabel = ({ title, icon, font }) => {
|
|
7703
|
-
return /* @__PURE__ */ (0,
|
|
7704
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7726
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7727
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
7705
7728
|
BaseImage_default,
|
|
7706
7729
|
{
|
|
7707
7730
|
src: "/icons/personal-label.webp",
|
|
@@ -7709,16 +7732,16 @@ var PersonalLabel = ({ title, icon, font }) => {
|
|
|
7709
7732
|
size: "xsmall"
|
|
7710
7733
|
}
|
|
7711
7734
|
),
|
|
7712
|
-
/* @__PURE__ */ (0,
|
|
7735
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7713
7736
|
] }) });
|
|
7714
7737
|
};
|
|
7715
7738
|
var PersonalLabel_default = PersonalLabel;
|
|
7716
7739
|
|
|
7717
7740
|
// src/components/labels/PublishingHouseLabel.tsx
|
|
7718
|
-
var
|
|
7741
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
7719
7742
|
var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
7720
|
-
return /* @__PURE__ */ (0,
|
|
7721
|
-
icon ? icon : /* @__PURE__ */ (0,
|
|
7743
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7744
|
+
icon ? icon : /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
|
|
7722
7745
|
BaseImage_default,
|
|
7723
7746
|
{
|
|
7724
7747
|
src: "/icons/publishing-house-label.webp",
|
|
@@ -7726,79 +7749,79 @@ var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
|
7726
7749
|
size: "xsmall"
|
|
7727
7750
|
}
|
|
7728
7751
|
),
|
|
7729
|
-
/* @__PURE__ */ (0,
|
|
7752
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)("p", { className: font ? font : "text-sm", children: title })
|
|
7730
7753
|
] }) });
|
|
7731
7754
|
};
|
|
7732
7755
|
var PublishingHouseLabel_default = PublishingHouseLabel;
|
|
7733
7756
|
|
|
7734
7757
|
// src/components/labels/ActivityLabel.tsx
|
|
7735
|
-
var
|
|
7758
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
7736
7759
|
var ActivityLabel = ({ title, font }) => {
|
|
7737
|
-
return /* @__PURE__ */ (0,
|
|
7760
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)("p", { className: font ? font : "text-sm", children: title }) });
|
|
7738
7761
|
};
|
|
7739
7762
|
var ActivityLabel_default = ActivityLabel;
|
|
7740
7763
|
|
|
7741
7764
|
// src/components/infos/InfoWithText.tsx
|
|
7742
|
-
var
|
|
7765
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
7743
7766
|
var InfoWithText = (props) => {
|
|
7744
7767
|
const { value } = props;
|
|
7745
|
-
return /* @__PURE__ */ (0,
|
|
7746
|
-
/* @__PURE__ */ (0,
|
|
7747
|
-
/* @__PURE__ */ (0,
|
|
7768
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
|
|
7769
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
|
|
7770
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime67.jsx)("p", { className: "", children: value }) })
|
|
7748
7771
|
] });
|
|
7749
7772
|
};
|
|
7750
7773
|
var InfoWithText_default = InfoWithText;
|
|
7751
7774
|
|
|
7752
7775
|
// src/components/texts/InputWithSpecialExpression.tsx
|
|
7753
7776
|
var import_react_katex12 = require("react-katex");
|
|
7754
|
-
var
|
|
7777
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
7755
7778
|
var InputWithSpecialExpression = ({
|
|
7756
7779
|
value,
|
|
7757
7780
|
showSpecialOnly
|
|
7758
7781
|
}) => {
|
|
7759
7782
|
const inputWithSpecialExpressionList = constructInputWithSpecialExpressionList(value);
|
|
7760
|
-
return showSpecialOnly ? inputWithSpecialExpressionList.length > 1 ? /* @__PURE__ */ (0,
|
|
7783
|
+
return showSpecialOnly ? inputWithSpecialExpressionList.length > 1 ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "m-2", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "whitespace-pre-wrap", children: inputWithSpecialExpressionList.map((inputPart, index) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
7761
7784
|
"span",
|
|
7762
7785
|
{
|
|
7763
7786
|
className: `${inputPart.isBold ? "font-semibold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
7764
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
7787
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-lg", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_katex12.InlineMath, { math: inputPart.value }, index) }) : inputPart.value
|
|
7765
7788
|
}
|
|
7766
|
-
)) }) }) : null : /* @__PURE__ */ (0,
|
|
7789
|
+
)) }) }) : null : /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "m-2", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "whitespace-pre-wrap", children: inputWithSpecialExpressionList.map((inputPart, index) => /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
|
|
7767
7790
|
"span",
|
|
7768
7791
|
{
|
|
7769
7792
|
className: `${inputPart.isBold ? "font-semibold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
7770
|
-
children: inputPart.isEquation ? /* @__PURE__ */ (0,
|
|
7793
|
+
children: inputPart.isEquation ? /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("span", { className: "text-lg", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(import_react_katex12.InlineMath, { math: inputPart.value }, index) }) : inputPart.value
|
|
7771
7794
|
}
|
|
7772
7795
|
)) }) });
|
|
7773
7796
|
};
|
|
7774
7797
|
var InputWithSpecialExpression_default = InputWithSpecialExpression;
|
|
7775
7798
|
|
|
7776
7799
|
// src/components/titles/BaseTitle.tsx
|
|
7777
|
-
var
|
|
7800
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
7778
7801
|
var BaseTitle = ({
|
|
7779
7802
|
title,
|
|
7780
7803
|
totalItemCount,
|
|
7781
7804
|
itemName,
|
|
7782
7805
|
description
|
|
7783
7806
|
}) => {
|
|
7784
|
-
return /* @__PURE__ */ (0,
|
|
7785
|
-
/* @__PURE__ */ (0,
|
|
7807
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "flex flex-col gap-y-2", children: [
|
|
7808
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("p", { className: "text-2xl font-medium", children: [
|
|
7786
7809
|
title,
|
|
7787
|
-
totalItemCount && itemName ? /* @__PURE__ */ (0,
|
|
7810
|
+
totalItemCount && itemName ? /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("span", { className: "p-2 text-base text-catchup-blue-600 border border-catchup-blue-300 rounded-catchup-3xlarge mx-2 bg-catchup-blue-100", children: [
|
|
7788
7811
|
totalItemCount,
|
|
7789
7812
|
" ",
|
|
7790
7813
|
itemName
|
|
7791
7814
|
] }) : null
|
|
7792
7815
|
] }),
|
|
7793
|
-
description ? /* @__PURE__ */ (0,
|
|
7816
|
+
description ? /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "", children: description }) : null
|
|
7794
7817
|
] });
|
|
7795
7818
|
};
|
|
7796
7819
|
var BaseTitle_default = BaseTitle;
|
|
7797
7820
|
|
|
7798
7821
|
// src/components/titles/SubTitle.tsx
|
|
7799
|
-
var
|
|
7822
|
+
var import_jsx_runtime70 = require("react/jsx-runtime");
|
|
7800
7823
|
var SubTitle = ({ title }) => {
|
|
7801
|
-
return /* @__PURE__ */ (0,
|
|
7824
|
+
return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
|
|
7802
7825
|
};
|
|
7803
7826
|
var SubTitle_default = SubTitle;
|
|
7804
7827
|
|
|
@@ -10484,6 +10507,7 @@ var retrieveActivityMethodologyOptionList = () => {
|
|
|
10484
10507
|
SelectionCheckbox,
|
|
10485
10508
|
SelectionTab,
|
|
10486
10509
|
SelectionTabFill,
|
|
10510
|
+
StatusError,
|
|
10487
10511
|
SubTitle,
|
|
10488
10512
|
THREE_MONTHS,
|
|
10489
10513
|
TimedProgressBar,
|
package/dist/index.mjs
CHANGED
|
@@ -7177,10 +7177,32 @@ var ActivityPreviewByAnswerData = ({
|
|
|
7177
7177
|
};
|
|
7178
7178
|
var ActivityPreviewByAnswerData_default = ActivityPreviewByAnswerData;
|
|
7179
7179
|
|
|
7180
|
+
// src/components/errors/StatusError.tsx
|
|
7181
|
+
import { jsx as jsx51, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
7182
|
+
var StatusError = ({
|
|
7183
|
+
statusCode,
|
|
7184
|
+
statusText,
|
|
7185
|
+
textSize
|
|
7186
|
+
}) => {
|
|
7187
|
+
return /* @__PURE__ */ jsxs38("div", { className: "flex flex-col justify-center items-center", children: [
|
|
7188
|
+
/* @__PURE__ */ jsx51("p", { className: "text-6xl text-catchup-red my-5", children: i18n_default.t("ooops_text") }),
|
|
7189
|
+
/* @__PURE__ */ jsxs38("div", { className: "text-center my-5", children: [
|
|
7190
|
+
/* @__PURE__ */ jsx51("p", { className: "italic", children: i18n_default.t("unexcepted_error_text") }),
|
|
7191
|
+
/* @__PURE__ */ jsxs38("p", { className: `${textSize ? textSize : "text-lg"}`, children: [
|
|
7192
|
+
"(",
|
|
7193
|
+
statusCode ? `${statusCode} - ` : null,
|
|
7194
|
+
statusText,
|
|
7195
|
+
")"
|
|
7196
|
+
] })
|
|
7197
|
+
] })
|
|
7198
|
+
] });
|
|
7199
|
+
};
|
|
7200
|
+
var StatusError_default = StatusError;
|
|
7201
|
+
|
|
7180
7202
|
// src/components/dividers/BlueVerticalDividerLine.tsx
|
|
7181
|
-
import { jsx as
|
|
7203
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
7182
7204
|
var BlueVerticalDividerLine = ({ opacity }) => {
|
|
7183
|
-
return /* @__PURE__ */
|
|
7205
|
+
return /* @__PURE__ */ jsx52(
|
|
7184
7206
|
"div",
|
|
7185
7207
|
{
|
|
7186
7208
|
className: `w-[2px] h-[40px] my-4 bg-catchup-blue ${opacity === "medium" ? "opacity-50" : ""}`
|
|
@@ -7190,7 +7212,7 @@ var BlueVerticalDividerLine = ({ opacity }) => {
|
|
|
7190
7212
|
var BlueVerticalDividerLine_default = BlueVerticalDividerLine;
|
|
7191
7213
|
|
|
7192
7214
|
// src/components/groups/LeftTextRightInputGroup.tsx
|
|
7193
|
-
import { jsx as
|
|
7215
|
+
import { jsx as jsx53, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
7194
7216
|
var LeftTextRightInputGroup = ({
|
|
7195
7217
|
type,
|
|
7196
7218
|
title,
|
|
@@ -7200,9 +7222,9 @@ var LeftTextRightInputGroup = ({
|
|
|
7200
7222
|
disabled,
|
|
7201
7223
|
errorText
|
|
7202
7224
|
}) => {
|
|
7203
|
-
return /* @__PURE__ */
|
|
7204
|
-
/* @__PURE__ */
|
|
7205
|
-
/* @__PURE__ */
|
|
7225
|
+
return /* @__PURE__ */ jsxs39("div", { className: "w-full flex flex-row mx-2", children: [
|
|
7226
|
+
/* @__PURE__ */ jsx53("div", { className: "w-catchup-input-group-title py-5", children: /* @__PURE__ */ jsx53("p", { children: title }) }),
|
|
7227
|
+
/* @__PURE__ */ jsx53("div", { className: "flex-1", children: /* @__PURE__ */ jsx53(
|
|
7206
7228
|
InputGroup_default,
|
|
7207
7229
|
{
|
|
7208
7230
|
type,
|
|
@@ -7219,7 +7241,7 @@ var LeftTextRightInputGroup_default = LeftTextRightInputGroup;
|
|
|
7219
7241
|
|
|
7220
7242
|
// src/components/groups/PageTravelGroup.tsx
|
|
7221
7243
|
import { useEffect as useEffect16, useState as useState26 } from "react";
|
|
7222
|
-
import { jsx as
|
|
7244
|
+
import { jsx as jsx54, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
7223
7245
|
var PageTravelGroup = ({
|
|
7224
7246
|
isImageProcessing,
|
|
7225
7247
|
handleImageProcessing,
|
|
@@ -7237,8 +7259,8 @@ var PageTravelGroup = ({
|
|
|
7237
7259
|
useEffect16(() => {
|
|
7238
7260
|
setNewPageNumber(pageNumber + 1);
|
|
7239
7261
|
}, [pageNumber]);
|
|
7240
|
-
return /* @__PURE__ */
|
|
7241
|
-
pageNumber === 0 ? null : /* @__PURE__ */
|
|
7262
|
+
return /* @__PURE__ */ jsxs40("div", { className: "flex-1 flex flex-row justify-center items-center flex-wrap", children: [
|
|
7263
|
+
pageNumber === 0 ? null : /* @__PURE__ */ jsx54("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ jsx54(
|
|
7242
7264
|
BaseImage_default,
|
|
7243
7265
|
{
|
|
7244
7266
|
size: "small",
|
|
@@ -7256,7 +7278,7 @@ var PageTravelGroup = ({
|
|
|
7256
7278
|
}
|
|
7257
7279
|
}
|
|
7258
7280
|
) }),
|
|
7259
|
-
Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */
|
|
7281
|
+
Array.from(Array(totalPageNumber).keys()).filter((index) => index < pageNumber + 5).filter((index) => index > pageNumber - 5).map((index) => /* @__PURE__ */ jsx54("div", { className: "px-2", children: /* @__PURE__ */ jsx54(
|
|
7260
7282
|
"p",
|
|
7261
7283
|
{
|
|
7262
7284
|
className: `${pageNumber === index ? "text-2xl" : "text-md"} cursor-pointer`,
|
|
@@ -7271,7 +7293,7 @@ var PageTravelGroup = ({
|
|
|
7271
7293
|
children: index + 1
|
|
7272
7294
|
}
|
|
7273
7295
|
) }, index)),
|
|
7274
|
-
totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */
|
|
7296
|
+
totalPageNumber === 0 || pageNumber === totalPageNumber - 1 ? null : /* @__PURE__ */ jsx54("div", { className: "px-2 flex flex-col items-center", children: /* @__PURE__ */ jsx54(
|
|
7275
7297
|
BaseImage_default,
|
|
7276
7298
|
{
|
|
7277
7299
|
size: "small",
|
|
@@ -7289,7 +7311,7 @@ var PageTravelGroup = ({
|
|
|
7289
7311
|
}
|
|
7290
7312
|
}
|
|
7291
7313
|
) }),
|
|
7292
|
-
/* @__PURE__ */
|
|
7314
|
+
/* @__PURE__ */ jsx54("div", { children: /* @__PURE__ */ jsx54(
|
|
7293
7315
|
"input",
|
|
7294
7316
|
{
|
|
7295
7317
|
className: `w-[90px] py-2 px-4 border border-catchup-gray-100 rounded-catchup-xlarge focus:outline-none placeholder-catchup-gray-200 focus:border-catchup-blue-400 focus:shadow-input`,
|
|
@@ -7313,14 +7335,14 @@ var PageTravelGroup = ({
|
|
|
7313
7335
|
var PageTravelGroup_default = PageTravelGroup;
|
|
7314
7336
|
|
|
7315
7337
|
// src/components/boxes/SelectionCheckbox.tsx
|
|
7316
|
-
import { jsx as
|
|
7338
|
+
import { jsx as jsx55, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
7317
7339
|
var SelectionCheckbox = ({
|
|
7318
7340
|
optionList,
|
|
7319
7341
|
selectedIdList,
|
|
7320
7342
|
handleSelectOnClick,
|
|
7321
7343
|
handleRemoveOnClick
|
|
7322
7344
|
}) => {
|
|
7323
|
-
return /* @__PURE__ */
|
|
7345
|
+
return /* @__PURE__ */ jsx55("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsx55(
|
|
7324
7346
|
"div",
|
|
7325
7347
|
{
|
|
7326
7348
|
className: `${selectedIdList.findIndex(
|
|
@@ -7335,14 +7357,14 @@ var SelectionCheckbox = ({
|
|
|
7335
7357
|
handleRemoveOnClick(option.id);
|
|
7336
7358
|
}
|
|
7337
7359
|
},
|
|
7338
|
-
children: /* @__PURE__ */
|
|
7360
|
+
children: /* @__PURE__ */ jsxs41(
|
|
7339
7361
|
"div",
|
|
7340
7362
|
{
|
|
7341
7363
|
className: `flex flex-row items-center gap-x-1 ${selectedIdList.findIndex(
|
|
7342
7364
|
(selectedId) => selectedId === option.id
|
|
7343
7365
|
) > -1 ? "opacity-100" : "opacity-50"}`,
|
|
7344
7366
|
children: [
|
|
7345
|
-
/* @__PURE__ */
|
|
7367
|
+
/* @__PURE__ */ jsx55(
|
|
7346
7368
|
BaseImage_default,
|
|
7347
7369
|
{
|
|
7348
7370
|
src: selectedIdList.findIndex(
|
|
@@ -7352,7 +7374,7 @@ var SelectionCheckbox = ({
|
|
|
7352
7374
|
size: "small"
|
|
7353
7375
|
}
|
|
7354
7376
|
),
|
|
7355
|
-
/* @__PURE__ */
|
|
7377
|
+
/* @__PURE__ */ jsx55("div", { className: "flex-1", children: /* @__PURE__ */ jsx55("p", { children: option.text }) })
|
|
7356
7378
|
]
|
|
7357
7379
|
}
|
|
7358
7380
|
)
|
|
@@ -7363,7 +7385,7 @@ var SelectionCheckbox = ({
|
|
|
7363
7385
|
var SelectionCheckbox_default = SelectionCheckbox;
|
|
7364
7386
|
|
|
7365
7387
|
// src/components/tabs/SelectionTab.tsx
|
|
7366
|
-
import { jsx as
|
|
7388
|
+
import { jsx as jsx56, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
7367
7389
|
var SelectionTab = ({
|
|
7368
7390
|
optionList,
|
|
7369
7391
|
selectedId,
|
|
@@ -7373,7 +7395,7 @@ var SelectionTab = ({
|
|
|
7373
7395
|
textColor,
|
|
7374
7396
|
borderColor
|
|
7375
7397
|
}) => {
|
|
7376
|
-
return /* @__PURE__ */
|
|
7398
|
+
return /* @__PURE__ */ jsx56("div", { className: "flex flex-row items-center gap-x-4 gap-y-2 flex-wrap mb-2 text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsxs42(
|
|
7377
7399
|
"div",
|
|
7378
7400
|
{
|
|
7379
7401
|
className: `${selectedId === option.id ? selectedTextColor ? selectedTextColor : "text-catchup-blue-500" : textColor ? textColor : "text-catchup-gray-300"} ${selectedId === option.id ? selectedBorderColor ? selectedBorderColor : "border-catchup-blue-500" : borderColor ? borderColor : "border-catchup-gray-50"} border-b-2 transition-all duration-300 p-3 cursor-pointer`,
|
|
@@ -7381,8 +7403,8 @@ var SelectionTab = ({
|
|
|
7381
7403
|
handleSelectOnClick(option.id);
|
|
7382
7404
|
},
|
|
7383
7405
|
children: [
|
|
7384
|
-
/* @__PURE__ */
|
|
7385
|
-
option.subTitle ? /* @__PURE__ */
|
|
7406
|
+
/* @__PURE__ */ jsx56("p", { className: "text-lg", children: option.title }),
|
|
7407
|
+
option.subTitle ? /* @__PURE__ */ jsx56("p", { className: "text-md", children: option.subTitle }) : null
|
|
7386
7408
|
]
|
|
7387
7409
|
},
|
|
7388
7410
|
index
|
|
@@ -7391,20 +7413,20 @@ var SelectionTab = ({
|
|
|
7391
7413
|
var SelectionTab_default = SelectionTab;
|
|
7392
7414
|
|
|
7393
7415
|
// src/components/tabs/SelectionTabFill.tsx
|
|
7394
|
-
import { jsx as
|
|
7416
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
7395
7417
|
var SelectionTabFill = ({
|
|
7396
7418
|
optionList,
|
|
7397
7419
|
selectedId,
|
|
7398
7420
|
handleSelectOnClick
|
|
7399
7421
|
}) => {
|
|
7400
|
-
return /* @__PURE__ */
|
|
7422
|
+
return /* @__PURE__ */ jsx57("div", { className: "w-full flex flex-row bg-catchup-gray-50 gap-x-2 rounded-catchup-medium px-4 py-2 justify-center text-center", children: optionList.map((option, index) => /* @__PURE__ */ jsx57(
|
|
7401
7423
|
"div",
|
|
7402
7424
|
{
|
|
7403
7425
|
className: "cursor-pointer",
|
|
7404
7426
|
onClick: () => {
|
|
7405
7427
|
handleSelectOnClick(option.id);
|
|
7406
7428
|
},
|
|
7407
|
-
children: /* @__PURE__ */
|
|
7429
|
+
children: /* @__PURE__ */ jsx57(
|
|
7408
7430
|
"p",
|
|
7409
7431
|
{
|
|
7410
7432
|
className: `${selectedId === option.id ? "text-catchup-white bg-catchup-blue-500" : "text-catchup-gray-300"} transition-all duration-300 rounded-catchup-medium px-2 py-1`,
|
|
@@ -7418,34 +7440,34 @@ var SelectionTabFill = ({
|
|
|
7418
7440
|
var SelectionTabFill_default = SelectionTabFill;
|
|
7419
7441
|
|
|
7420
7442
|
// src/components/labels/ActivityTemplateLabel.tsx
|
|
7421
|
-
import { jsx as
|
|
7443
|
+
import { jsx as jsx58, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
7422
7444
|
var ActivityTemplateLabel = ({
|
|
7423
7445
|
title,
|
|
7424
7446
|
icon,
|
|
7425
7447
|
font
|
|
7426
7448
|
}) => {
|
|
7427
|
-
return /* @__PURE__ */
|
|
7428
|
-
icon ? icon : /* @__PURE__ */
|
|
7429
|
-
/* @__PURE__ */
|
|
7449
|
+
return /* @__PURE__ */ jsx58("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ jsxs43("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7450
|
+
icon ? icon : /* @__PURE__ */ jsx58(BaseImage_default, { src: "/icons/activity.webp", alt: "label", size: "xsmall" }),
|
|
7451
|
+
/* @__PURE__ */ jsx58("p", { className: font ? font : "text-sm", children: title })
|
|
7430
7452
|
] }) });
|
|
7431
7453
|
};
|
|
7432
7454
|
var ActivityTemplateLabel_default = ActivityTemplateLabel;
|
|
7433
7455
|
|
|
7434
7456
|
// src/components/labels/BrandLabel.tsx
|
|
7435
|
-
import { jsx as
|
|
7457
|
+
import { jsx as jsx59, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
7436
7458
|
var BrandLabel = ({ title, icon, font }) => {
|
|
7437
|
-
return /* @__PURE__ */
|
|
7438
|
-
icon ? icon : /* @__PURE__ */
|
|
7439
|
-
/* @__PURE__ */
|
|
7459
|
+
return /* @__PURE__ */ jsx59("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ jsxs44("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7460
|
+
icon ? icon : /* @__PURE__ */ jsx59(BaseImage_default, { src: "/icons/brand-label.webp", alt: "label", size: "xsmall" }),
|
|
7461
|
+
/* @__PURE__ */ jsx59("p", { className: font ? font : "text-sm", children: title })
|
|
7440
7462
|
] }) });
|
|
7441
7463
|
};
|
|
7442
7464
|
var BrandLabel_default = BrandLabel;
|
|
7443
7465
|
|
|
7444
7466
|
// src/components/labels/CategoryLabel.tsx
|
|
7445
|
-
import { jsx as
|
|
7467
|
+
import { jsx as jsx60, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
7446
7468
|
var CategoryLabel = ({ title, icon, font }) => {
|
|
7447
|
-
return /* @__PURE__ */
|
|
7448
|
-
icon ? icon : /* @__PURE__ */
|
|
7469
|
+
return /* @__PURE__ */ jsx60("div", { className: "px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ jsxs45("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7470
|
+
icon ? icon : /* @__PURE__ */ jsx60(
|
|
7449
7471
|
BaseImage_default,
|
|
7450
7472
|
{
|
|
7451
7473
|
src: "/icons/category-label.webp",
|
|
@@ -7453,40 +7475,40 @@ var CategoryLabel = ({ title, icon, font }) => {
|
|
|
7453
7475
|
size: "xsmall"
|
|
7454
7476
|
}
|
|
7455
7477
|
),
|
|
7456
|
-
/* @__PURE__ */
|
|
7478
|
+
/* @__PURE__ */ jsx60("p", { className: font ? font : "text-sm", children: title })
|
|
7457
7479
|
] }) });
|
|
7458
7480
|
};
|
|
7459
7481
|
var CategoryLabel_default = CategoryLabel;
|
|
7460
7482
|
|
|
7461
7483
|
// src/components/labels/CoterieLabel.tsx
|
|
7462
|
-
import { jsx as
|
|
7484
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
7463
7485
|
var CoterieLabel = ({ title, font }) => {
|
|
7464
|
-
return /* @__PURE__ */
|
|
7486
|
+
return /* @__PURE__ */ jsx61("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ jsx61("p", { className: font ? font : "text-sm", children: title }) });
|
|
7465
7487
|
};
|
|
7466
7488
|
var CoterieLabel_default = CoterieLabel;
|
|
7467
7489
|
|
|
7468
7490
|
// src/components/labels/GradeLabel.tsx
|
|
7469
|
-
import { jsx as
|
|
7491
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
7470
7492
|
var GradeLabel = ({ title, font }) => {
|
|
7471
|
-
return /* @__PURE__ */
|
|
7493
|
+
return /* @__PURE__ */ jsx62("div", { className: "px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ jsx62("p", { className: font ? font : "text-sm", children: title }) });
|
|
7472
7494
|
};
|
|
7473
7495
|
var GradeLabel_default = GradeLabel;
|
|
7474
7496
|
|
|
7475
7497
|
// src/components/labels/OutcomeLabel.tsx
|
|
7476
|
-
import { jsx as
|
|
7498
|
+
import { jsx as jsx63, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
7477
7499
|
var OutcomeLabel = ({ title, font }) => {
|
|
7478
|
-
return /* @__PURE__ */
|
|
7479
|
-
/* @__PURE__ */
|
|
7480
|
-
/* @__PURE__ */
|
|
7500
|
+
return /* @__PURE__ */ jsx63("div", { className: "px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ jsxs46("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7501
|
+
/* @__PURE__ */ jsx63(BaseImage_default, { src: "/icons/category.webp", alt: "label", size: "xsmall" }),
|
|
7502
|
+
/* @__PURE__ */ jsx63("p", { className: font ? font : "text-sm", children: title })
|
|
7481
7503
|
] }) });
|
|
7482
7504
|
};
|
|
7483
7505
|
var OutcomeLabel_default = OutcomeLabel;
|
|
7484
7506
|
|
|
7485
7507
|
// src/components/labels/PersonalLabel.tsx
|
|
7486
|
-
import { jsx as
|
|
7508
|
+
import { jsx as jsx64, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
7487
7509
|
var PersonalLabel = ({ title, icon, font }) => {
|
|
7488
|
-
return /* @__PURE__ */
|
|
7489
|
-
icon ? icon : /* @__PURE__ */
|
|
7510
|
+
return /* @__PURE__ */ jsx64("div", { className: "px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ jsxs47("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7511
|
+
icon ? icon : /* @__PURE__ */ jsx64(
|
|
7490
7512
|
BaseImage_default,
|
|
7491
7513
|
{
|
|
7492
7514
|
src: "/icons/personal-label.webp",
|
|
@@ -7494,16 +7516,16 @@ var PersonalLabel = ({ title, icon, font }) => {
|
|
|
7494
7516
|
size: "xsmall"
|
|
7495
7517
|
}
|
|
7496
7518
|
),
|
|
7497
|
-
/* @__PURE__ */
|
|
7519
|
+
/* @__PURE__ */ jsx64("p", { className: font ? font : "text-sm", children: title })
|
|
7498
7520
|
] }) });
|
|
7499
7521
|
};
|
|
7500
7522
|
var PersonalLabel_default = PersonalLabel;
|
|
7501
7523
|
|
|
7502
7524
|
// src/components/labels/PublishingHouseLabel.tsx
|
|
7503
|
-
import { jsx as
|
|
7525
|
+
import { jsx as jsx65, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
7504
7526
|
var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
7505
|
-
return /* @__PURE__ */
|
|
7506
|
-
icon ? icon : /* @__PURE__ */
|
|
7527
|
+
return /* @__PURE__ */ jsx65("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ jsxs48("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7528
|
+
icon ? icon : /* @__PURE__ */ jsx65(
|
|
7507
7529
|
BaseImage_default,
|
|
7508
7530
|
{
|
|
7509
7531
|
src: "/icons/publishing-house-label.webp",
|
|
@@ -7511,79 +7533,79 @@ var PublishingHouseLabel = ({ title, icon, font }) => {
|
|
|
7511
7533
|
size: "xsmall"
|
|
7512
7534
|
}
|
|
7513
7535
|
),
|
|
7514
|
-
/* @__PURE__ */
|
|
7536
|
+
/* @__PURE__ */ jsx65("p", { className: font ? font : "text-sm", children: title })
|
|
7515
7537
|
] }) });
|
|
7516
7538
|
};
|
|
7517
7539
|
var PublishingHouseLabel_default = PublishingHouseLabel;
|
|
7518
7540
|
|
|
7519
7541
|
// src/components/labels/ActivityLabel.tsx
|
|
7520
|
-
import { jsx as
|
|
7542
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
7521
7543
|
var ActivityLabel = ({ title, font }) => {
|
|
7522
|
-
return /* @__PURE__ */
|
|
7544
|
+
return /* @__PURE__ */ jsx66("div", { className: "px-3 py-1 gap-x-3 border border-publishing-house-label-border bg-publishing-house-label text-publishing-house-label-text rounded-catchup-3xlarge m-auto text-center", children: /* @__PURE__ */ jsx66("p", { className: font ? font : "text-sm", children: title }) });
|
|
7523
7545
|
};
|
|
7524
7546
|
var ActivityLabel_default = ActivityLabel;
|
|
7525
7547
|
|
|
7526
7548
|
// src/components/infos/InfoWithText.tsx
|
|
7527
|
-
import { jsx as
|
|
7549
|
+
import { jsx as jsx67, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
7528
7550
|
var InfoWithText = (props) => {
|
|
7529
7551
|
const { value } = props;
|
|
7530
|
-
return /* @__PURE__ */
|
|
7531
|
-
/* @__PURE__ */
|
|
7532
|
-
/* @__PURE__ */
|
|
7552
|
+
return /* @__PURE__ */ jsxs49("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
|
|
7553
|
+
/* @__PURE__ */ jsx67(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
|
|
7554
|
+
/* @__PURE__ */ jsx67("div", { className: "flex-1", children: /* @__PURE__ */ jsx67("p", { className: "", children: value }) })
|
|
7533
7555
|
] });
|
|
7534
7556
|
};
|
|
7535
7557
|
var InfoWithText_default = InfoWithText;
|
|
7536
7558
|
|
|
7537
7559
|
// src/components/texts/InputWithSpecialExpression.tsx
|
|
7538
7560
|
import { InlineMath as InlineMath12 } from "react-katex";
|
|
7539
|
-
import { jsx as
|
|
7561
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
7540
7562
|
var InputWithSpecialExpression = ({
|
|
7541
7563
|
value,
|
|
7542
7564
|
showSpecialOnly
|
|
7543
7565
|
}) => {
|
|
7544
7566
|
const inputWithSpecialExpressionList = constructInputWithSpecialExpressionList(value);
|
|
7545
|
-
return showSpecialOnly ? inputWithSpecialExpressionList.length > 1 ? /* @__PURE__ */
|
|
7567
|
+
return showSpecialOnly ? inputWithSpecialExpressionList.length > 1 ? /* @__PURE__ */ jsx68("div", { className: "m-2", children: /* @__PURE__ */ jsx68("span", { className: "whitespace-pre-wrap", children: inputWithSpecialExpressionList.map((inputPart, index) => /* @__PURE__ */ jsx68(
|
|
7546
7568
|
"span",
|
|
7547
7569
|
{
|
|
7548
7570
|
className: `${inputPart.isBold ? "font-semibold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
7549
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
7571
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx68("span", { className: "text-lg", children: /* @__PURE__ */ jsx68(InlineMath12, { math: inputPart.value }, index) }) : inputPart.value
|
|
7550
7572
|
}
|
|
7551
|
-
)) }) }) : null : /* @__PURE__ */
|
|
7573
|
+
)) }) }) : null : /* @__PURE__ */ jsx68("div", { className: "m-2", children: /* @__PURE__ */ jsx68("span", { className: "whitespace-pre-wrap", children: inputWithSpecialExpressionList.map((inputPart, index) => /* @__PURE__ */ jsx68(
|
|
7552
7574
|
"span",
|
|
7553
7575
|
{
|
|
7554
7576
|
className: `${inputPart.isBold ? "font-semibold" : ""} ${inputPart.isUnderline ? "underline" : ""}`,
|
|
7555
|
-
children: inputPart.isEquation ? /* @__PURE__ */
|
|
7577
|
+
children: inputPart.isEquation ? /* @__PURE__ */ jsx68("span", { className: "text-lg", children: /* @__PURE__ */ jsx68(InlineMath12, { math: inputPart.value }, index) }) : inputPart.value
|
|
7556
7578
|
}
|
|
7557
7579
|
)) }) });
|
|
7558
7580
|
};
|
|
7559
7581
|
var InputWithSpecialExpression_default = InputWithSpecialExpression;
|
|
7560
7582
|
|
|
7561
7583
|
// src/components/titles/BaseTitle.tsx
|
|
7562
|
-
import { jsx as
|
|
7584
|
+
import { jsx as jsx69, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
7563
7585
|
var BaseTitle = ({
|
|
7564
7586
|
title,
|
|
7565
7587
|
totalItemCount,
|
|
7566
7588
|
itemName,
|
|
7567
7589
|
description
|
|
7568
7590
|
}) => {
|
|
7569
|
-
return /* @__PURE__ */
|
|
7570
|
-
/* @__PURE__ */
|
|
7591
|
+
return /* @__PURE__ */ jsxs50("div", { className: "flex flex-col gap-y-2", children: [
|
|
7592
|
+
/* @__PURE__ */ jsxs50("p", { className: "text-2xl font-medium", children: [
|
|
7571
7593
|
title,
|
|
7572
|
-
totalItemCount && itemName ? /* @__PURE__ */
|
|
7594
|
+
totalItemCount && itemName ? /* @__PURE__ */ jsxs50("span", { className: "p-2 text-base text-catchup-blue-600 border border-catchup-blue-300 rounded-catchup-3xlarge mx-2 bg-catchup-blue-100", children: [
|
|
7573
7595
|
totalItemCount,
|
|
7574
7596
|
" ",
|
|
7575
7597
|
itemName
|
|
7576
7598
|
] }) : null
|
|
7577
7599
|
] }),
|
|
7578
|
-
description ? /* @__PURE__ */
|
|
7600
|
+
description ? /* @__PURE__ */ jsx69("p", { className: "", children: description }) : null
|
|
7579
7601
|
] });
|
|
7580
7602
|
};
|
|
7581
7603
|
var BaseTitle_default = BaseTitle;
|
|
7582
7604
|
|
|
7583
7605
|
// src/components/titles/SubTitle.tsx
|
|
7584
|
-
import { jsx as
|
|
7606
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
7585
7607
|
var SubTitle = ({ title }) => {
|
|
7586
|
-
return /* @__PURE__ */
|
|
7608
|
+
return /* @__PURE__ */ jsx70("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
|
|
7587
7609
|
};
|
|
7588
7610
|
var SubTitle_default = SubTitle;
|
|
7589
7611
|
|
|
@@ -10268,6 +10290,7 @@ export {
|
|
|
10268
10290
|
SelectionCheckbox_default as SelectionCheckbox,
|
|
10269
10291
|
SelectionTab_default as SelectionTab,
|
|
10270
10292
|
SelectionTabFill_default as SelectionTabFill,
|
|
10293
|
+
StatusError_default as StatusError,
|
|
10271
10294
|
SubTitle_default as SubTitle,
|
|
10272
10295
|
THREE_MONTHS,
|
|
10273
10296
|
TimedProgressBar_default as TimedProgressBar,
|
package/package.json
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import i18n from "../../language/i18n";
|
|
2
|
+
import { IStatusErrorProperties } from "../../properties/IErrorProperties";
|
|
3
|
+
|
|
4
|
+
const StatusError = ({
|
|
5
|
+
statusCode,
|
|
6
|
+
statusText,
|
|
7
|
+
textSize,
|
|
8
|
+
}: IStatusErrorProperties) => {
|
|
9
|
+
return (
|
|
10
|
+
<div className="flex flex-col justify-center items-center">
|
|
11
|
+
<p className="text-6xl text-catchup-red my-5">{i18n.t("ooops_text")}</p>
|
|
12
|
+
<div className="text-center my-5">
|
|
13
|
+
<p className="italic">{i18n.t("unexcepted_error_text")}</p>
|
|
14
|
+
<p className={`${textSize ? textSize : "text-lg"}`}>
|
|
15
|
+
({statusCode ? `${statusCode} - ` : null}
|
|
16
|
+
{statusText})
|
|
17
|
+
</p>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
);
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export default StatusError;
|
package/src/index.ts
CHANGED
|
@@ -37,6 +37,8 @@ export { default as ActivityEvaluationRubricContent } from "./components/activit
|
|
|
37
37
|
export { default as ActivityPreviewByData } from "./components/activities/ActivityPreviewByData";
|
|
38
38
|
export { default as ActivityPreviewByAnswerData } from "./components/activities/ActivityPreviewByAnswerData";
|
|
39
39
|
|
|
40
|
+
export { default as StatusError } from "./components/errors/StatusError";
|
|
41
|
+
|
|
40
42
|
export { default as BlueVerticalDividerLine } from "./components/dividers/BlueVerticalDividerLine";
|
|
41
43
|
export { default as DividerLine } from "./components/dividers/DividerLine";
|
|
42
44
|
export { default as VerticalDividerLine } from "./components/dividers/VerticalDividerLine";
|