catchup-library-web 2.6.9 → 2.6.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -393,11 +393,20 @@ interface ISelectionTabProps {
393
393
  borderColor: string;
394
394
  selectedBorderColor: string;
395
395
  }
396
+ interface ISelectionTabPillProps {
397
+ optionList: any;
398
+ selectedId: any;
399
+ handleSelectOnClick: (e: any) => void;
400
+ selectedClassName?: string;
401
+ unselectedClassName?: string;
402
+ }
396
403
 
397
404
  declare const SelectionTab: ({ optionList, selectedId, handleSelectOnClick, selectedTextColor, selectedBorderColor, textColor, borderColor, }: ISelectionTabProps) => react_jsx_runtime.JSX.Element;
398
405
 
399
406
  declare const SelectionTabFill: ({ optionList, selectedId, handleSelectOnClick, }: ISelectionTabProps) => react_jsx_runtime.JSX.Element;
400
407
 
408
+ declare const SelectionTabPill: ({ optionList, selectedId, handleSelectOnClick, selectedClassName, unselectedClassName, }: ISelectionTabPillProps) => react_jsx_runtime.JSX.Element;
409
+
401
410
  interface IFixedLabelProps {
402
411
  title: string;
403
412
  icon?: any;
@@ -943,4 +952,4 @@ declare const retrieveActivityMethodologyOptionList: () => {
943
952
  text: string;
944
953
  }[];
945
954
 
946
- export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityPreviewByData, ActivitySolutionContent, AmberLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueLabel, BlueVerticalDividerLine, CancelButton, CoralLabel, CreateButton, CyanLabel, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GrayLabel, GreenLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, LimeLabel, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrangeLabel, OrderingActivityContent, PageTravelGroup, PrimaryButton, ProgressBar, PurpleLabel, RedLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, StatusError, SubTitle, THREE_MONTHS, TealLabel, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCorporateAssessmentAssignmentReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, decodeJWT, encodeJWT, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterCurriculumTypeOptionList, filterGradeLevelOptionList, filterSkillVersionCodeOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, getCurrentDateTime, getLanguageFromCode, getLanguageFromCurriculumType, getOneWeekLater, getSystemLanguageFromCurriculumType, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseMaterialMapFromData, retrieveAcceptedFormats, retrieveActivityAnswerFromAnswerList, retrieveActivityCountOptionList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrencyTypeOptionList, retrieveCurrentDefaultDataMap, retrieveCurriculumTypeOptionList, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDelayTypeOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDiscountAmountTypeOptionList, retrieveDistinctCoterieTypeFromCorporatePersonalizedAssignmentApplicationDTO, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFileTypeFromAcceptedFormat, retrieveFileTypeFromExtension, retrieveFileTypeOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeByLevel, retrieveInstitutionTypeOptionList, retrieveLanguageOptionList, retrieveLastNOptionList, retrieveLeagueThresholdByLeagueType, retrieveLeagueThresholds, retrieveLeagueTypeOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveSkillVersionCodeOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
955
+ export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityPreviewByData, ActivitySolutionContent, AmberLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueLabel, BlueVerticalDividerLine, CancelButton, CoralLabel, CreateButton, CyanLabel, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GrayLabel, GreenLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, LimeLabel, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrangeLabel, OrderingActivityContent, PageTravelGroup, PrimaryButton, ProgressBar, PurpleLabel, RedLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SelectionTabPill, StatusError, SubTitle, THREE_MONTHS, TealLabel, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCorporateAssessmentAssignmentReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, decodeJWT, encodeJWT, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterCurriculumTypeOptionList, filterGradeLevelOptionList, filterSkillVersionCodeOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, getCurrentDateTime, getLanguageFromCode, getLanguageFromCurriculumType, getOneWeekLater, getSystemLanguageFromCurriculumType, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseMaterialMapFromData, retrieveAcceptedFormats, retrieveActivityAnswerFromAnswerList, retrieveActivityCountOptionList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrencyTypeOptionList, retrieveCurrentDefaultDataMap, retrieveCurriculumTypeOptionList, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDelayTypeOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDiscountAmountTypeOptionList, retrieveDistinctCoterieTypeFromCorporatePersonalizedAssignmentApplicationDTO, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFileTypeFromAcceptedFormat, retrieveFileTypeFromExtension, retrieveFileTypeOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeByLevel, retrieveInstitutionTypeOptionList, retrieveLanguageOptionList, retrieveLastNOptionList, retrieveLeagueThresholdByLeagueType, retrieveLeagueThresholds, retrieveLeagueTypeOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveSkillVersionCodeOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
package/dist/index.d.ts CHANGED
@@ -393,11 +393,20 @@ interface ISelectionTabProps {
393
393
  borderColor: string;
394
394
  selectedBorderColor: string;
395
395
  }
396
+ interface ISelectionTabPillProps {
397
+ optionList: any;
398
+ selectedId: any;
399
+ handleSelectOnClick: (e: any) => void;
400
+ selectedClassName?: string;
401
+ unselectedClassName?: string;
402
+ }
396
403
 
397
404
  declare const SelectionTab: ({ optionList, selectedId, handleSelectOnClick, selectedTextColor, selectedBorderColor, textColor, borderColor, }: ISelectionTabProps) => react_jsx_runtime.JSX.Element;
398
405
 
399
406
  declare const SelectionTabFill: ({ optionList, selectedId, handleSelectOnClick, }: ISelectionTabProps) => react_jsx_runtime.JSX.Element;
400
407
 
408
+ declare const SelectionTabPill: ({ optionList, selectedId, handleSelectOnClick, selectedClassName, unselectedClassName, }: ISelectionTabPillProps) => react_jsx_runtime.JSX.Element;
409
+
401
410
  interface IFixedLabelProps {
402
411
  title: string;
403
412
  icon?: any;
@@ -943,4 +952,4 @@ declare const retrieveActivityMethodologyOptionList: () => {
943
952
  text: string;
944
953
  }[];
945
954
 
946
- export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityPreviewByData, ActivitySolutionContent, AmberLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueLabel, BlueVerticalDividerLine, CancelButton, CoralLabel, CreateButton, CyanLabel, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GrayLabel, GreenLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, LimeLabel, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrangeLabel, OrderingActivityContent, PageTravelGroup, PrimaryButton, ProgressBar, PurpleLabel, RedLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, StatusError, SubTitle, THREE_MONTHS, TealLabel, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCorporateAssessmentAssignmentReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, decodeJWT, encodeJWT, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterCurriculumTypeOptionList, filterGradeLevelOptionList, filterSkillVersionCodeOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, getCurrentDateTime, getLanguageFromCode, getLanguageFromCurriculumType, getOneWeekLater, getSystemLanguageFromCurriculumType, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseMaterialMapFromData, retrieveAcceptedFormats, retrieveActivityAnswerFromAnswerList, retrieveActivityCountOptionList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrencyTypeOptionList, retrieveCurrentDefaultDataMap, retrieveCurriculumTypeOptionList, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDelayTypeOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDiscountAmountTypeOptionList, retrieveDistinctCoterieTypeFromCorporatePersonalizedAssignmentApplicationDTO, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFileTypeFromAcceptedFormat, retrieveFileTypeFromExtension, retrieveFileTypeOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeByLevel, retrieveInstitutionTypeOptionList, retrieveLanguageOptionList, retrieveLastNOptionList, retrieveLeagueThresholdByLeagueType, retrieveLeagueThresholds, retrieveLeagueTypeOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveSkillVersionCodeOptionList, retrieveStandardExamCoterieTypeOptionListByStandardExamType, retrieveStandardExamTypeIcon, retrieveStandardExamTypeOptionList, retrieveStatusOptionList, retrieveTeachingMethodologyOptionList, retrieveTimeFilterOptionList, retrieveTimeFilterWithLastNOptionList, retrieveTokenUsageSubTypeOptionList, retrieveTokenUsageTypeOptionList, retrieveTotalTimeSpentInMinutes, retrieveTotalTimeSpentInSeconds, retrieveUserAuthorityGeneralOptionList, retrieveUserRoleOptionList, retrieveValidationRequirementList, shuffleArray, useScreenSize };
955
+ export { ActivityBodyContent, ActivityEmptyContent, ActivityEvaluationRubricContent, ActivityPreviewByData, ActivitySolutionContent, AmberLabel, ApproveButton, BaseCard, BaseImage, BaseLoading, BaseLoadingWithText, BaseModal, BasePDF, BaseTitle, BlueLabel, BlueVerticalDividerLine, CancelButton, CoralLabel, CreateButton, CyanLabel, DeleteButton, DividerLine, DropdownActivityContent, FillInTheBlanksActivityContent, FullCard, GrayLabel, GreenLabel, GroupingActivityContent, InfoWithText, InputGroup, InputWithSpecialExpression, LeftTextRightInputGroup, LimeLabel, MCMAActivityContent, MCSAActivityContent, MatchingActivityContent, ONE_DAY, ONE_HOUR, ONE_MONTH, ONE_WEEK, OpenEndedActivityContent, OrangeLabel, OrderingActivityContent, PageTravelGroup, PrimaryButton, ProgressBar, PurpleLabel, RedLabel, ScoreBar, SecondaryButton, SelectionBox, SelectionCheckbox, SelectionTab, SelectionTabFill, SelectionTabPill, StatusError, SubTitle, THREE_MONTHS, TealLabel, TimedProgressBar, TrueFalseActivityContent, VerticalDividerLine, base64ToFile, calculateEndDateOfWeek, calculateLevenshteinDistance, calculateStartDateOfWeek, checkActivityAnswerState, constructActivityAnswerMap, constructActivityAnswerStateList, constructActivityData, constructActivityItemListBodyOnly, constructActivityItemListForSolution, constructActivityItemListMaterialOnly, constructActivityItemListSolutionOnly, constructActivityItemListWithAnswersForAI, constructActivityItemListWithSolutionForAI, constructAnswerBasedOnData, constructBaseNumericIndividualModel, constructBaseVerbalIndvidualModel, constructCategoryTreeFromParentCode, constructCombinedCorporateAssessmentAssignmentReportMap, constructCombinedOutcomeActivityScoreMapFromCombinedReport, constructInputWithSpecialExpressionList, constructMonthName, constructOutcomeActivityScoreList, constructUserProfileQueryParams, constructWeekName, convertDataURLtoFile, convertToBase64, convertToBodyMapString, convertToEvaluationRubricMapString, convertToSolutionMapString, convertTurkishCharactersToEnglish, decodeJWT, encodeJWT, filterCategoryVersionCodeOptionList, filterCategoryVersionCodeOptionListByGradeDTO, filterCategoryVersionCodeOptionListByInstitutionDTO, filterCoterieTypeByDistinctOptionList, filterCoterieTypeOptionList, filterCurriculumTypeOptionList, filterGradeLevelOptionList, filterSkillVersionCodeOptionList, filterUserRoleOptionList, findAISettingsFromCurrentProfile, findBestFitActivity, formatPriceWithCommas, getColorByIndex, getCurrentDateTime, getLanguageFromCode, getLanguageFromCurriculumType, getOneWeekLater, getSystemLanguageFromCurriculumType, ignoreMathematicalExpression, mergeObjects, parseBodyMapFromData, parseContentMapFromData, parseMaterialMapFromData, retrieveAcceptedFormats, retrieveActivityAnswerFromAnswerList, retrieveActivityCountOptionList, retrieveActivityMethodologyOptionList, retrieveActivityTemplateDTOOptionList, retrieveAllEarnedBadgeDTOListByCoterieType, retrieveAllEarnedBadgeDTOListByCoterieTypeList, retrieveAnnouncementAudienceOptionList, retrieveAnnouncementTypeOptionList, retrieveBadgeRuleListByParams, retrieveBadgeRuleTextByParams, retrieveBranchDTOByUserProfileOptionList, retrieveBranchDTOOptionList, retrieveBrandDTOByUserProfileOptionList, retrieveBrandDTOOptionList, retrieveCampusDTOByUserProfileOptionList, retrieveCampusDTOOptionList, retrieveCategoryVersionCodeOptionList, retrieveClockTimeLeft, retrieveColorByScore, retrieveContentTypeOptionList, retrieveContestTypeOptionList, retrieveCoterieTypeFromStandardExamCoterieType, retrieveCoterieTypeOptionList, retrieveCountryCodeOptionList, retrieveCountryNameOptionList, retrieveCurrencyTypeOptionList, retrieveCurrentDefaultDataMap, retrieveCurriculumTypeOptionList, retrieveDateIntervalOptionList, retrieveDefaultUserRoleOptionList, retrieveDelayTypeOptionList, retrieveDifficultyByActivityTypeFromData, retrieveDifficultyOptionList, retrieveDiscountAmountTypeOptionList, retrieveDistinctCoterieTypeFromCorporatePersonalizedAssignmentApplicationDTO, retrieveDurationInMinutesOptionList, retrieveDurationInSecondsOptionList, retrieveDurationTypeOptionList, retrieveEachTimeSpentInSeconds, retrieveEnableOptionList, retrieveExternalRegistrationDTOOptionList, retrieveFileTypeFromAcceptedFormat, retrieveFileTypeFromExtension, retrieveFileTypeOptionList, retrieveFrequencyTypeOptionList, retrieveGenderOptionList, retrieveGradeDTOByUserProfileOptionList, retrieveGradeDTOOptionList, retrieveGradeLevelOptionList, retrieveInstitutionDTOByUserProfileOptionList, retrieveInstitutionDTOOptionList, retrieveInstitutionTypeByLevel, retrieveInstitutionTypeOptionList, retrieveLanguageOptionList, retrieveLastNOptionList, retrieveLeagueThresholdByLeagueType, retrieveLeagueThresholds, retrieveLeagueTypeOptionList, retrieveMonthNameByIndex, retrieveOpticalExamPartTypeOptionList, retrieveOpticalExamTypeOptionList, retrieveOtherBadgeDTOList, retrieveOutcomePlanTypeOptionList, retrievePhoneNumberAreaCodeList, retrieveProvinceNameOptionList, retrieveReportTypeOptionList, retrieveSeasonDTOByUserProfileOptionList, retrieveSeasonDTOOptionList, retrieveSkillVersionCodeOptionList, 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
+ SelectionTabPill: () => SelectionTabPill_default,
124
125
  StatusError: () => StatusError_default,
125
126
  SubTitle: () => SubTitle_default,
126
127
  THREE_MONTHS: () => THREE_MONTHS,
@@ -7850,7 +7851,7 @@ var SelectionTab = ({
7850
7851
  return /* @__PURE__ */ (0, import_jsx_runtime54.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_runtime54.jsxs)(
7851
7852
  "div",
7852
7853
  {
7853
- 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`,
7854
+ 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 px-4 py-2 cursor-pointer`,
7854
7855
  onClick: () => {
7855
7856
  handleSelectOnClick(option.id);
7856
7857
  },
@@ -7891,8 +7892,29 @@ var SelectionTabFill = ({
7891
7892
  };
7892
7893
  var SelectionTabFill_default = SelectionTabFill;
7893
7894
 
7894
- // src/components/labels/Label.tsx
7895
+ // src/components/tabs/SelectionTabPill.tsx
7895
7896
  var import_jsx_runtime56 = require("react/jsx-runtime");
7897
+ var SelectionTabPill = ({
7898
+ optionList,
7899
+ selectedId,
7900
+ handleSelectOnClick,
7901
+ selectedClassName,
7902
+ unselectedClassName
7903
+ }) => {
7904
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: "flex flex-wrap items-center gap-3 my-2", children: optionList.map((option, index) => /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7905
+ "button",
7906
+ {
7907
+ onClick: () => handleSelectOnClick(option.id),
7908
+ className: `px-4 py-2 rounded-catchup-full transition-all duration-200 cursor-pointer ${selectedId === option.id ? selectedClassName || "bg-catchup-blue text-catchup-white shadow-card" : unselectedClassName || "bg-catchup-blue-100 text-catchup-blue-800 hover:bg-catchup-blue-200"}`,
7909
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "text-base font-semibold", children: option.title })
7910
+ },
7911
+ index
7912
+ )) });
7913
+ };
7914
+ var SelectionTabPill_default = SelectionTabPill;
7915
+
7916
+ // src/components/labels/Label.tsx
7917
+ var import_jsx_runtime57 = require("react/jsx-runtime");
7896
7918
  var Label = ({
7897
7919
  title,
7898
7920
  icon,
@@ -7902,7 +7924,7 @@ var Label = ({
7902
7924
  backgroundColor,
7903
7925
  textColor
7904
7926
  }) => {
7905
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
7927
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7906
7928
  "div",
7907
7929
  {
7908
7930
  className: "px-3 py-1 gap-x-3 border rounded-catchup-2xlarge text-center",
@@ -7912,9 +7934,9 @@ var Label = ({
7912
7934
  background: backgroundColor,
7913
7935
  color: textColor
7914
7936
  },
7915
- children: /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7937
+ children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex flex-row items-center gap-x-2", children: [
7916
7938
  icon,
7917
- /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("p", { className: font, children: title })
7939
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: font, children: title })
7918
7940
  ] })
7919
7941
  }
7920
7942
  );
@@ -7922,9 +7944,9 @@ var Label = ({
7922
7944
  var Label_default = Label;
7923
7945
 
7924
7946
  // src/components/labels/AmberLabel.tsx
7925
- var import_jsx_runtime57 = require("react/jsx-runtime");
7947
+ var import_jsx_runtime58 = require("react/jsx-runtime");
7926
7948
  var AmberLabel = ({ title, icon, font }) => {
7927
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
7949
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7928
7950
  Label_default,
7929
7951
  {
7930
7952
  title,
@@ -7939,9 +7961,9 @@ var AmberLabel = ({ title, icon, font }) => {
7939
7961
  var AmberLabel_default = AmberLabel;
7940
7962
 
7941
7963
  // src/components/labels/TealLabel.tsx
7942
- var import_jsx_runtime58 = require("react/jsx-runtime");
7964
+ var import_jsx_runtime59 = require("react/jsx-runtime");
7943
7965
  var TealLabel = ({ title, icon, font }) => {
7944
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
7966
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7945
7967
  Label_default,
7946
7968
  {
7947
7969
  title,
@@ -7956,9 +7978,9 @@ var TealLabel = ({ title, icon, font }) => {
7956
7978
  var TealLabel_default = TealLabel;
7957
7979
 
7958
7980
  // src/components/labels/PurpleLabel.tsx
7959
- var import_jsx_runtime59 = require("react/jsx-runtime");
7981
+ var import_jsx_runtime60 = require("react/jsx-runtime");
7960
7982
  var PurpleLabel = ({ title, icon, font }) => {
7961
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
7983
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
7962
7984
  Label_default,
7963
7985
  {
7964
7986
  title,
@@ -7973,9 +7995,9 @@ var PurpleLabel = ({ title, icon, font }) => {
7973
7995
  var PurpleLabel_default = PurpleLabel;
7974
7996
 
7975
7997
  // src/components/labels/GreenLabel.tsx
7976
- var import_jsx_runtime60 = require("react/jsx-runtime");
7998
+ var import_jsx_runtime61 = require("react/jsx-runtime");
7977
7999
  var GreenLabel = ({ title, icon, font }) => {
7978
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
8000
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
7979
8001
  Label_default,
7980
8002
  {
7981
8003
  title,
@@ -7990,9 +8012,9 @@ var GreenLabel = ({ title, icon, font }) => {
7990
8012
  var GreenLabel_default = GreenLabel;
7991
8013
 
7992
8014
  // src/components/labels/BlueLabel.tsx
7993
- var import_jsx_runtime61 = require("react/jsx-runtime");
8015
+ var import_jsx_runtime62 = require("react/jsx-runtime");
7994
8016
  var BlueLabel = ({ title, icon, font }) => {
7995
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
8017
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
7996
8018
  Label_default,
7997
8019
  {
7998
8020
  title,
@@ -8007,9 +8029,9 @@ var BlueLabel = ({ title, icon, font }) => {
8007
8029
  var BlueLabel_default = BlueLabel;
8008
8030
 
8009
8031
  // src/components/labels/OrangeLabel.tsx
8010
- var import_jsx_runtime62 = require("react/jsx-runtime");
8032
+ var import_jsx_runtime63 = require("react/jsx-runtime");
8011
8033
  var OrangeLabel = ({ title, icon, font }) => {
8012
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
8034
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
8013
8035
  Label_default,
8014
8036
  {
8015
8037
  title,
@@ -8024,9 +8046,9 @@ var OrangeLabel = ({ title, icon, font }) => {
8024
8046
  var OrangeLabel_default = OrangeLabel;
8025
8047
 
8026
8048
  // src/components/labels/RedLabel.tsx
8027
- var import_jsx_runtime63 = require("react/jsx-runtime");
8049
+ var import_jsx_runtime64 = require("react/jsx-runtime");
8028
8050
  var RedLabel = ({ title, icon, font }) => {
8029
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
8051
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
8030
8052
  Label_default,
8031
8053
  {
8032
8054
  title,
@@ -8041,9 +8063,9 @@ var RedLabel = ({ title, icon, font }) => {
8041
8063
  var RedLabel_default = RedLabel;
8042
8064
 
8043
8065
  // src/components/labels/LimeLabel.tsx
8044
- var import_jsx_runtime64 = require("react/jsx-runtime");
8066
+ var import_jsx_runtime65 = require("react/jsx-runtime");
8045
8067
  var LimeLabel = ({ title, icon, font }) => {
8046
- return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
8068
+ return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
8047
8069
  Label_default,
8048
8070
  {
8049
8071
  title,
@@ -8058,9 +8080,9 @@ var LimeLabel = ({ title, icon, font }) => {
8058
8080
  var LimeLabel_default = LimeLabel;
8059
8081
 
8060
8082
  // src/components/labels/CoralLabel.tsx
8061
- var import_jsx_runtime65 = require("react/jsx-runtime");
8083
+ var import_jsx_runtime66 = require("react/jsx-runtime");
8062
8084
  var CoralLabel = ({ title, icon, font }) => {
8063
- return /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
8085
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
8064
8086
  Label_default,
8065
8087
  {
8066
8088
  title,
@@ -8075,9 +8097,9 @@ var CoralLabel = ({ title, icon, font }) => {
8075
8097
  var CoralLabel_default = CoralLabel;
8076
8098
 
8077
8099
  // src/components/labels/CyanLabel.tsx
8078
- var import_jsx_runtime66 = require("react/jsx-runtime");
8100
+ var import_jsx_runtime67 = require("react/jsx-runtime");
8079
8101
  var CyanLabel = ({ title, icon, font }) => {
8080
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
8102
+ return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
8081
8103
  Label_default,
8082
8104
  {
8083
8105
  title,
@@ -8092,9 +8114,9 @@ var CyanLabel = ({ title, icon, font }) => {
8092
8114
  var CyanLabel_default = CyanLabel;
8093
8115
 
8094
8116
  // src/components/labels/GrayLabel.tsx
8095
- var import_jsx_runtime67 = require("react/jsx-runtime");
8117
+ var import_jsx_runtime68 = require("react/jsx-runtime");
8096
8118
  var GrayLabel = ({ title, icon, font }) => {
8097
- return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(
8119
+ return /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(
8098
8120
  Label_default,
8099
8121
  {
8100
8122
  title,
@@ -8109,20 +8131,20 @@ var GrayLabel = ({ title, icon, font }) => {
8109
8131
  var GrayLabel_default = GrayLabel;
8110
8132
 
8111
8133
  // src/components/infos/InfoWithText.tsx
8112
- var import_jsx_runtime68 = require("react/jsx-runtime");
8134
+ var import_jsx_runtime69 = require("react/jsx-runtime");
8113
8135
  var InfoWithText = (props) => {
8114
8136
  const { value } = props;
8115
- return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
8116
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
8117
- /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("p", { className: "", children: value }) })
8137
+ return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
8138
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
8139
+ /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "", children: value }) })
8118
8140
  ] });
8119
8141
  };
8120
8142
  var InfoWithText_default = InfoWithText;
8121
8143
 
8122
8144
  // src/components/titles/SubTitle.tsx
8123
- var import_jsx_runtime69 = require("react/jsx-runtime");
8145
+ var import_jsx_runtime70 = require("react/jsx-runtime");
8124
8146
  var SubTitle = ({ title }) => {
8125
- return /* @__PURE__ */ (0, import_jsx_runtime69.jsx)("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
8147
+ return /* @__PURE__ */ (0, import_jsx_runtime70.jsx)("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
8126
8148
  };
8127
8149
  var SubTitle_default = SubTitle;
8128
8150
 
@@ -10684,14 +10706,15 @@ var constructOutcomeActivityScoreList = (data) => {
10684
10706
  const traverseCategories = (categoryData, parentPath = "") => {
10685
10707
  const currentPath = parentPath ? `${parentPath} > ${categoryData.categoryDTO.name}` : categoryData.categoryDTO.name;
10686
10708
  if (categoryData.subCategoryActivityAnswerDTOList.length === 0) {
10709
+ const scores = categoryData.activityScoreList || (categoryData.activityScoreDTOSet ? Array.from(categoryData.activityScoreDTOSet) : []);
10687
10710
  const outcomeActivityScore = {
10688
10711
  code: categoryData.categoryDTO.code,
10689
10712
  name: categoryData.categoryDTO.name,
10690
- count: categoryData.activityScoreDTOSet.length,
10713
+ count: scores.length,
10691
10714
  score: 0,
10692
10715
  timeSpent: 0
10693
10716
  };
10694
- categoryData.activityScoreDTOSet.forEach((activity) => {
10717
+ scores.forEach((activity) => {
10695
10718
  outcomeActivityScore.score += activity.score;
10696
10719
  outcomeActivityScore.timeSpent += activity.timeSpent;
10697
10720
  });
@@ -11004,6 +11027,7 @@ var retrieveActivityMethodologyOptionList = () => {
11004
11027
  SelectionCheckbox,
11005
11028
  SelectionTab,
11006
11029
  SelectionTabFill,
11030
+ SelectionTabPill,
11007
11031
  StatusError,
11008
11032
  SubTitle,
11009
11033
  THREE_MONTHS,
package/dist/index.mjs CHANGED
@@ -7614,7 +7614,7 @@ var SelectionTab = ({
7614
7614
  return /* @__PURE__ */ jsx54("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__ */ jsxs43(
7615
7615
  "div",
7616
7616
  {
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`,
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 px-4 py-2 cursor-pointer`,
7618
7618
  onClick: () => {
7619
7619
  handleSelectOnClick(option.id);
7620
7620
  },
@@ -7655,8 +7655,29 @@ var SelectionTabFill = ({
7655
7655
  };
7656
7656
  var SelectionTabFill_default = SelectionTabFill;
7657
7657
 
7658
+ // src/components/tabs/SelectionTabPill.tsx
7659
+ import { jsx as jsx56 } from "react/jsx-runtime";
7660
+ var SelectionTabPill = ({
7661
+ optionList,
7662
+ selectedId,
7663
+ handleSelectOnClick,
7664
+ selectedClassName,
7665
+ unselectedClassName
7666
+ }) => {
7667
+ return /* @__PURE__ */ jsx56("div", { className: "flex flex-wrap items-center gap-3 my-2", children: optionList.map((option, index) => /* @__PURE__ */ jsx56(
7668
+ "button",
7669
+ {
7670
+ onClick: () => handleSelectOnClick(option.id),
7671
+ className: `px-4 py-2 rounded-catchup-full transition-all duration-200 cursor-pointer ${selectedId === option.id ? selectedClassName || "bg-catchup-blue text-catchup-white shadow-card" : unselectedClassName || "bg-catchup-blue-100 text-catchup-blue-800 hover:bg-catchup-blue-200"}`,
7672
+ children: /* @__PURE__ */ jsx56("span", { className: "text-base font-semibold", children: option.title })
7673
+ },
7674
+ index
7675
+ )) });
7676
+ };
7677
+ var SelectionTabPill_default = SelectionTabPill;
7678
+
7658
7679
  // src/components/labels/Label.tsx
7659
- import { jsx as jsx56, jsxs as jsxs44 } from "react/jsx-runtime";
7680
+ import { jsx as jsx57, jsxs as jsxs44 } from "react/jsx-runtime";
7660
7681
  var Label = ({
7661
7682
  title,
7662
7683
  icon,
@@ -7666,7 +7687,7 @@ var Label = ({
7666
7687
  backgroundColor,
7667
7688
  textColor
7668
7689
  }) => {
7669
- return /* @__PURE__ */ jsx56(
7690
+ return /* @__PURE__ */ jsx57(
7670
7691
  "div",
7671
7692
  {
7672
7693
  className: "px-3 py-1 gap-x-3 border rounded-catchup-2xlarge text-center",
@@ -7678,7 +7699,7 @@ var Label = ({
7678
7699
  },
7679
7700
  children: /* @__PURE__ */ jsxs44("div", { className: "flex flex-row items-center gap-x-2", children: [
7680
7701
  icon,
7681
- /* @__PURE__ */ jsx56("p", { className: font, children: title })
7702
+ /* @__PURE__ */ jsx57("p", { className: font, children: title })
7682
7703
  ] })
7683
7704
  }
7684
7705
  );
@@ -7686,9 +7707,9 @@ var Label = ({
7686
7707
  var Label_default = Label;
7687
7708
 
7688
7709
  // src/components/labels/AmberLabel.tsx
7689
- import { jsx as jsx57 } from "react/jsx-runtime";
7710
+ import { jsx as jsx58 } from "react/jsx-runtime";
7690
7711
  var AmberLabel = ({ title, icon, font }) => {
7691
- return /* @__PURE__ */ jsx57(
7712
+ return /* @__PURE__ */ jsx58(
7692
7713
  Label_default,
7693
7714
  {
7694
7715
  title,
@@ -7703,9 +7724,9 @@ var AmberLabel = ({ title, icon, font }) => {
7703
7724
  var AmberLabel_default = AmberLabel;
7704
7725
 
7705
7726
  // src/components/labels/TealLabel.tsx
7706
- import { jsx as jsx58 } from "react/jsx-runtime";
7727
+ import { jsx as jsx59 } from "react/jsx-runtime";
7707
7728
  var TealLabel = ({ title, icon, font }) => {
7708
- return /* @__PURE__ */ jsx58(
7729
+ return /* @__PURE__ */ jsx59(
7709
7730
  Label_default,
7710
7731
  {
7711
7732
  title,
@@ -7720,9 +7741,9 @@ var TealLabel = ({ title, icon, font }) => {
7720
7741
  var TealLabel_default = TealLabel;
7721
7742
 
7722
7743
  // src/components/labels/PurpleLabel.tsx
7723
- import { jsx as jsx59 } from "react/jsx-runtime";
7744
+ import { jsx as jsx60 } from "react/jsx-runtime";
7724
7745
  var PurpleLabel = ({ title, icon, font }) => {
7725
- return /* @__PURE__ */ jsx59(
7746
+ return /* @__PURE__ */ jsx60(
7726
7747
  Label_default,
7727
7748
  {
7728
7749
  title,
@@ -7737,9 +7758,9 @@ var PurpleLabel = ({ title, icon, font }) => {
7737
7758
  var PurpleLabel_default = PurpleLabel;
7738
7759
 
7739
7760
  // src/components/labels/GreenLabel.tsx
7740
- import { jsx as jsx60 } from "react/jsx-runtime";
7761
+ import { jsx as jsx61 } from "react/jsx-runtime";
7741
7762
  var GreenLabel = ({ title, icon, font }) => {
7742
- return /* @__PURE__ */ jsx60(
7763
+ return /* @__PURE__ */ jsx61(
7743
7764
  Label_default,
7744
7765
  {
7745
7766
  title,
@@ -7754,9 +7775,9 @@ var GreenLabel = ({ title, icon, font }) => {
7754
7775
  var GreenLabel_default = GreenLabel;
7755
7776
 
7756
7777
  // src/components/labels/BlueLabel.tsx
7757
- import { jsx as jsx61 } from "react/jsx-runtime";
7778
+ import { jsx as jsx62 } from "react/jsx-runtime";
7758
7779
  var BlueLabel = ({ title, icon, font }) => {
7759
- return /* @__PURE__ */ jsx61(
7780
+ return /* @__PURE__ */ jsx62(
7760
7781
  Label_default,
7761
7782
  {
7762
7783
  title,
@@ -7771,9 +7792,9 @@ var BlueLabel = ({ title, icon, font }) => {
7771
7792
  var BlueLabel_default = BlueLabel;
7772
7793
 
7773
7794
  // src/components/labels/OrangeLabel.tsx
7774
- import { jsx as jsx62 } from "react/jsx-runtime";
7795
+ import { jsx as jsx63 } from "react/jsx-runtime";
7775
7796
  var OrangeLabel = ({ title, icon, font }) => {
7776
- return /* @__PURE__ */ jsx62(
7797
+ return /* @__PURE__ */ jsx63(
7777
7798
  Label_default,
7778
7799
  {
7779
7800
  title,
@@ -7788,9 +7809,9 @@ var OrangeLabel = ({ title, icon, font }) => {
7788
7809
  var OrangeLabel_default = OrangeLabel;
7789
7810
 
7790
7811
  // src/components/labels/RedLabel.tsx
7791
- import { jsx as jsx63 } from "react/jsx-runtime";
7812
+ import { jsx as jsx64 } from "react/jsx-runtime";
7792
7813
  var RedLabel = ({ title, icon, font }) => {
7793
- return /* @__PURE__ */ jsx63(
7814
+ return /* @__PURE__ */ jsx64(
7794
7815
  Label_default,
7795
7816
  {
7796
7817
  title,
@@ -7805,9 +7826,9 @@ var RedLabel = ({ title, icon, font }) => {
7805
7826
  var RedLabel_default = RedLabel;
7806
7827
 
7807
7828
  // src/components/labels/LimeLabel.tsx
7808
- import { jsx as jsx64 } from "react/jsx-runtime";
7829
+ import { jsx as jsx65 } from "react/jsx-runtime";
7809
7830
  var LimeLabel = ({ title, icon, font }) => {
7810
- return /* @__PURE__ */ jsx64(
7831
+ return /* @__PURE__ */ jsx65(
7811
7832
  Label_default,
7812
7833
  {
7813
7834
  title,
@@ -7822,9 +7843,9 @@ var LimeLabel = ({ title, icon, font }) => {
7822
7843
  var LimeLabel_default = LimeLabel;
7823
7844
 
7824
7845
  // src/components/labels/CoralLabel.tsx
7825
- import { jsx as jsx65 } from "react/jsx-runtime";
7846
+ import { jsx as jsx66 } from "react/jsx-runtime";
7826
7847
  var CoralLabel = ({ title, icon, font }) => {
7827
- return /* @__PURE__ */ jsx65(
7848
+ return /* @__PURE__ */ jsx66(
7828
7849
  Label_default,
7829
7850
  {
7830
7851
  title,
@@ -7839,9 +7860,9 @@ var CoralLabel = ({ title, icon, font }) => {
7839
7860
  var CoralLabel_default = CoralLabel;
7840
7861
 
7841
7862
  // src/components/labels/CyanLabel.tsx
7842
- import { jsx as jsx66 } from "react/jsx-runtime";
7863
+ import { jsx as jsx67 } from "react/jsx-runtime";
7843
7864
  var CyanLabel = ({ title, icon, font }) => {
7844
- return /* @__PURE__ */ jsx66(
7865
+ return /* @__PURE__ */ jsx67(
7845
7866
  Label_default,
7846
7867
  {
7847
7868
  title,
@@ -7856,9 +7877,9 @@ var CyanLabel = ({ title, icon, font }) => {
7856
7877
  var CyanLabel_default = CyanLabel;
7857
7878
 
7858
7879
  // src/components/labels/GrayLabel.tsx
7859
- import { jsx as jsx67 } from "react/jsx-runtime";
7880
+ import { jsx as jsx68 } from "react/jsx-runtime";
7860
7881
  var GrayLabel = ({ title, icon, font }) => {
7861
- return /* @__PURE__ */ jsx67(
7882
+ return /* @__PURE__ */ jsx68(
7862
7883
  Label_default,
7863
7884
  {
7864
7885
  title,
@@ -7873,20 +7894,20 @@ var GrayLabel = ({ title, icon, font }) => {
7873
7894
  var GrayLabel_default = GrayLabel;
7874
7895
 
7875
7896
  // src/components/infos/InfoWithText.tsx
7876
- import { jsx as jsx68, jsxs as jsxs45 } from "react/jsx-runtime";
7897
+ import { jsx as jsx69, jsxs as jsxs45 } from "react/jsx-runtime";
7877
7898
  var InfoWithText = (props) => {
7878
7899
  const { value } = props;
7879
7900
  return /* @__PURE__ */ jsxs45("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
7880
- /* @__PURE__ */ jsx68(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
7881
- /* @__PURE__ */ jsx68("div", { className: "flex-1", children: /* @__PURE__ */ jsx68("p", { className: "", children: value }) })
7901
+ /* @__PURE__ */ jsx69(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
7902
+ /* @__PURE__ */ jsx69("div", { className: "flex-1", children: /* @__PURE__ */ jsx69("p", { className: "", children: value }) })
7882
7903
  ] });
7883
7904
  };
7884
7905
  var InfoWithText_default = InfoWithText;
7885
7906
 
7886
7907
  // src/components/titles/SubTitle.tsx
7887
- import { jsx as jsx69 } from "react/jsx-runtime";
7908
+ import { jsx as jsx70 } from "react/jsx-runtime";
7888
7909
  var SubTitle = ({ title }) => {
7889
- return /* @__PURE__ */ jsx69("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
7910
+ return /* @__PURE__ */ jsx70("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
7890
7911
  };
7891
7912
  var SubTitle_default = SubTitle;
7892
7913
 
@@ -10448,14 +10469,15 @@ var constructOutcomeActivityScoreList = (data) => {
10448
10469
  const traverseCategories = (categoryData, parentPath = "") => {
10449
10470
  const currentPath = parentPath ? `${parentPath} > ${categoryData.categoryDTO.name}` : categoryData.categoryDTO.name;
10450
10471
  if (categoryData.subCategoryActivityAnswerDTOList.length === 0) {
10472
+ const scores = categoryData.activityScoreList || (categoryData.activityScoreDTOSet ? Array.from(categoryData.activityScoreDTOSet) : []);
10451
10473
  const outcomeActivityScore = {
10452
10474
  code: categoryData.categoryDTO.code,
10453
10475
  name: categoryData.categoryDTO.name,
10454
- count: categoryData.activityScoreDTOSet.length,
10476
+ count: scores.length,
10455
10477
  score: 0,
10456
10478
  timeSpent: 0
10457
10479
  };
10458
- categoryData.activityScoreDTOSet.forEach((activity) => {
10480
+ scores.forEach((activity) => {
10459
10481
  outcomeActivityScore.score += activity.score;
10460
10482
  outcomeActivityScore.timeSpent += activity.timeSpent;
10461
10483
  });
@@ -10767,6 +10789,7 @@ export {
10767
10789
  SelectionCheckbox_default as SelectionCheckbox,
10768
10790
  SelectionTab_default as SelectionTab,
10769
10791
  SelectionTabFill_default as SelectionTabFill,
10792
+ SelectionTabPill_default as SelectionTabPill,
10770
10793
  StatusError_default as StatusError,
10771
10794
  SubTitle_default as SubTitle,
10772
10795
  THREE_MONTHS,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "2.6.9",
3
+ "version": "2.6.11",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -20,17 +20,17 @@ const SelectionTab = ({
20
20
  ? selectedTextColor
21
21
  : "text-catchup-blue-500"
22
22
  : textColor
23
- ? textColor
24
- : "text-catchup-gray-300"
23
+ ? textColor
24
+ : "text-catchup-gray-300"
25
25
  } ${
26
26
  selectedId === option.id
27
27
  ? selectedBorderColor
28
28
  ? selectedBorderColor
29
29
  : "border-catchup-blue-500"
30
30
  : borderColor
31
- ? borderColor
32
- : "border-catchup-gray-50"
33
- } border-b-2 transition-all duration-300 p-3 cursor-pointer`}
31
+ ? borderColor
32
+ : "border-catchup-gray-50"
33
+ } border-b-2 transition-all duration-300 px-4 py-2 cursor-pointer`}
34
34
  onClick={() => {
35
35
  handleSelectOnClick(option.id);
36
36
  }}
@@ -0,0 +1,31 @@
1
+ import { ISelectionTabPillProps } from "../../properties/TabProperties";
2
+
3
+ const SelectionTabPill = ({
4
+ optionList,
5
+ selectedId,
6
+ handleSelectOnClick,
7
+ selectedClassName,
8
+ unselectedClassName,
9
+ }: ISelectionTabPillProps) => {
10
+ return (
11
+ <div className="flex flex-wrap items-center gap-3 my-2">
12
+ {optionList.map((option: any, index: number) => (
13
+ <button
14
+ key={index}
15
+ onClick={() => handleSelectOnClick(option.id)}
16
+ className={`px-4 py-2 rounded-catchup-full transition-all duration-200 cursor-pointer ${
17
+ selectedId === option.id
18
+ ? selectedClassName ||
19
+ "bg-catchup-blue text-catchup-white shadow-card"
20
+ : unselectedClassName ||
21
+ "bg-catchup-blue-100 text-catchup-blue-800 hover:bg-catchup-blue-200"
22
+ }`}
23
+ >
24
+ <span className="text-base font-semibold">{option.title}</span>
25
+ </button>
26
+ ))}
27
+ </div>
28
+ );
29
+ };
30
+
31
+ export default SelectionTabPill;
package/src/index.ts CHANGED
@@ -53,6 +53,7 @@ export { default as SelectionCheckbox } from "./components/boxes/SelectionCheckb
53
53
 
54
54
  export { default as SelectionTab } from "./components/tabs/SelectionTab";
55
55
  export { default as SelectionTabFill } from "./components/tabs/SelectionTabFill";
56
+ export { default as SelectionTabPill } from "./components/tabs/SelectionTabPill";
56
57
 
57
58
  export { default as AmberLabel } from "./components/labels/AmberLabel";
58
59
  export { default as TealLabel } from "./components/labels/TealLabel";
@@ -13,3 +13,11 @@ export interface ISelectedTabFillProps {
13
13
  selectedId: any;
14
14
  handleSelectOnClick: (e: any) => void;
15
15
  }
16
+
17
+ export interface ISelectionTabPillProps {
18
+ optionList: any;
19
+ selectedId: any;
20
+ handleSelectOnClick: (e: any) => void;
21
+ selectedClassName?: string;
22
+ unselectedClassName?: string;
23
+ }
@@ -135,15 +135,17 @@ export const constructOutcomeActivityScoreList = (data: any) => {
135
135
  : categoryData.categoryDTO.name;
136
136
 
137
137
  if (categoryData.subCategoryActivityAnswerDTOList.length === 0) {
138
+ const scores = categoryData.activityScoreList ||
139
+ (categoryData.activityScoreDTOSet ? Array.from(categoryData.activityScoreDTOSet) : []);
138
140
  const outcomeActivityScore = {
139
141
  code: categoryData.categoryDTO.code,
140
142
  name: categoryData.categoryDTO.name,
141
- count: categoryData.activityScoreDTOSet.length,
143
+ count: scores.length,
142
144
  score: 0,
143
145
  timeSpent: 0,
144
146
  };
145
147
 
146
- categoryData.activityScoreDTOSet.forEach((activity: any) => {
148
+ scores.forEach((activity: any) => {
147
149
  outcomeActivityScore.score += activity.score;
148
150
  outcomeActivityScore.timeSpent += activity.timeSpent;
149
151
  });