catchup-library-web 2.3.7 → 2.4.0

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/src/index.ts CHANGED
@@ -54,15 +54,16 @@ export { default as SelectionCheckbox } from "./components/boxes/SelectionCheckb
54
54
  export { default as SelectionTab } from "./components/tabs/SelectionTab";
55
55
  export { default as SelectionTabFill } from "./components/tabs/SelectionTabFill";
56
56
 
57
- export { default as ActivityTemplateLabel } from "./components/labels/ActivityTemplateLabel";
58
- export { default as BrandLabel } from "./components/labels/BrandLabel";
59
- export { default as CategoryLabel } from "./components/labels/CategoryLabel";
60
- export { default as CoterieLabel } from "./components/labels/CoterieLabel";
61
- export { default as GradeLabel } from "./components/labels/GradeLabel";
62
- export { default as OutcomeLabel } from "./components/labels/OutcomeLabel";
63
- export { default as PersonalLabel } from "./components/labels/PersonalLabel";
64
- export { default as PublishingHouseLabel } from "./components/labels/PublishingHouseLabel";
65
- export { default as ActivityLabel } from "./components/labels/ActivityLabel";
57
+ export { default as TealLabel } from "./components/labels/TealLabel";
58
+ export { default as PurpleLabel } from "./components/labels/PurpleLabel";
59
+ export { default as GreenLabel } from "./components/labels/GreenLabel";
60
+ export { default as BlueLabel } from "./components/labels/BlueLabel";
61
+ export { default as OrangeLabel } from "./components/labels/OrangeLabel";
62
+ export { default as RedLabel } from "./components/labels/RedLabel";
63
+ export { default as LimeLabel } from "./components/labels/LimeLabel";
64
+ export { default as CoralLabel } from "./components/labels/CoralLabel";
65
+ export { default as CyanLabel } from "./components/labels/CyanLabel";
66
+ export { default as GrayLabel } from "./components/labels/GrayLabel";
66
67
 
67
68
  export { default as InfoWithText } from "./components/infos/InfoWithText";
68
69
 
@@ -1,49 +1,15 @@
1
- export interface IActivityTemplateLabelProps {
1
+ export interface ILabelProps {
2
2
  title: string;
3
- icon: any;
4
- font: string;
5
- }
6
-
7
- export interface IBrandLabelProps {
8
- title: string;
9
- icon: any;
10
- font: string;
11
- }
12
-
13
- export interface ICategoryLabelProps {
14
- title: string;
15
- icon: any;
16
- font: string;
17
- }
18
-
19
- export interface ICoterieLabelProps {
20
- title: string;
21
- font: string;
22
- }
23
-
24
- export interface IGradeLabelProps {
25
- title: string;
26
- font: string;
27
- }
28
-
29
- export interface IOutcomeLabelProps {
30
- title: string;
31
- font: string;
32
- }
33
-
34
- export interface IPersonalLabelProps {
35
- title: string;
36
- icon: any;
37
- font: string;
38
- }
39
-
40
- export interface IPublishingLabelProps {
41
- title: string;
42
- icon: any;
43
- font: string;
3
+ icon?: any;
4
+ font?: string;
5
+ borderWidth?: number;
6
+ borderColor: string;
7
+ backgroundColor: string;
8
+ textColor: string;
44
9
  }
45
10
 
46
- export interface IActivityLabelProps {
11
+ export interface IFixedLabelProps {
47
12
  title: string;
13
+ icon?: any;
48
14
  font: string;
49
15
  }
@@ -80,7 +80,7 @@ export const getLanguageFromCurriculumType = (curriculumType: string) => {
80
80
 
81
81
  export const getSystemLanguageFromCurriculumType = (curriculumType: string) => {
82
82
  if (curriculumType === "MEB") {
83
- return "tr";
83
+ return "TR";
84
84
  }
85
- return "en";
85
+ return "EN";
86
86
  };
@@ -1,11 +0,0 @@
1
- import { IActivityLabelProps } from "../../properties/LabelProperties";
2
-
3
- const ActivityLabel = ({ title, font }: IActivityLabelProps) => {
4
- return (
5
- <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 text-center">
6
- <p className={font ? font : "text-sm"}>{title}</p>
7
- </div>
8
- );
9
- };
10
-
11
- export default ActivityLabel;
@@ -1,23 +0,0 @@
1
- import { IActivityTemplateLabelProps } from "../../properties/LabelProperties";
2
- import BaseImage from "../images/BaseImage";
3
-
4
- const ActivityTemplateLabel = ({
5
- title,
6
- icon,
7
- font,
8
- }: IActivityTemplateLabelProps) => {
9
- return (
10
- <div className="px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge text-center">
11
- <div className="flex flex-row items-center gap-x-2">
12
- {icon ? (
13
- icon
14
- ) : (
15
- <BaseImage src="/icons/activity.webp" alt="label" size="xsmall" />
16
- )}
17
- <p className={font ? font : "text-sm"}>{title}</p>
18
- </div>
19
- </div>
20
- );
21
- };
22
-
23
- export default ActivityTemplateLabel;
@@ -1,19 +0,0 @@
1
- import { IBrandLabelProps } from "../../properties/LabelProperties";
2
- import BaseImage from "../images/BaseImage";
3
-
4
- const BrandLabel = ({ title, icon, font }: IBrandLabelProps) => {
5
- return (
6
- <div className="px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center">
7
- <div className="flex flex-row items-center gap-x-2">
8
- {icon ? (
9
- icon
10
- ) : (
11
- <BaseImage src="/icons/brand-label.webp" alt="label" size="xsmall" />
12
- )}
13
- <p className={font ? font : "text-sm"}>{title}</p>
14
- </div>
15
- </div>
16
- );
17
- };
18
-
19
- export default BrandLabel;
@@ -1,23 +0,0 @@
1
- import { ICategoryLabelProps } from "../../properties/LabelProperties";
2
- import BaseImage from "../images/BaseImage";
3
-
4
- const CategoryLabel = ({ title, icon, font }: ICategoryLabelProps) => {
5
- return (
6
- <div className="px-3 py-1 gap-x-3 border border-category-label-border bg-category-label text-category-label-text rounded-catchup-3xlarge text-center">
7
- <div className="flex flex-row items-center gap-x-2">
8
- {icon ? (
9
- icon
10
- ) : (
11
- <BaseImage
12
- src="/icons/category-label.webp"
13
- alt="label"
14
- size="xsmall"
15
- />
16
- )}
17
- <p className={font ? font : "text-sm"}>{title}</p>
18
- </div>
19
- </div>
20
- );
21
- };
22
-
23
- export default CategoryLabel;
@@ -1,11 +0,0 @@
1
- import { ICoterieLabelProps } from "../../properties/LabelProperties";
2
-
3
- const CoterieLabel = ({ title, font }: ICoterieLabelProps) => {
4
- return (
5
- <div className="px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center">
6
- <p className={font ? font : "text-sm"}>{title}</p>
7
- </div>
8
- );
9
- };
10
-
11
- export default CoterieLabel;
@@ -1,11 +0,0 @@
1
- import { IGradeLabelProps } from "../../properties/LabelProperties";
2
-
3
- const GradeLabel = ({ title, font }: IGradeLabelProps) => {
4
- return (
5
- <div className="px-3 py-1 gap-x-3 border border-grade-label-border bg-grade-label text-grade-label-text rounded-catchup-3xlarge text-center">
6
- <p className={font ? font : "text-sm"}>{title}</p>
7
- </div>
8
- );
9
- };
10
-
11
- export default GradeLabel;
@@ -1,15 +0,0 @@
1
- import { IOutcomeLabelProps } from "../../properties/LabelProperties";
2
- import BaseImage from "../images/BaseImage";
3
-
4
- const OutcomeLabel = ({ title, font }: IOutcomeLabelProps) => {
5
- return (
6
- <div className="px-3 py-1 gap-x-3 border border-brand-label-border bg-brand-label text-brand-label-text rounded-catchup-3xlarge text-center">
7
- <div className="flex flex-row items-center gap-x-2">
8
- <BaseImage src="/icons/category.webp" alt="label" size="xsmall" />
9
- <p className={font ? font : "text-sm"}>{title}</p>
10
- </div>
11
- </div>
12
- );
13
- };
14
-
15
- export default OutcomeLabel;
@@ -1,23 +0,0 @@
1
- import { IPersonalLabelProps } from "../../properties/LabelProperties";
2
- import BaseImage from "../images/BaseImage";
3
-
4
- const PersonalLabel = ({ title, icon, font }: IPersonalLabelProps) => {
5
- return (
6
- <div className="px-3 py-1 gap-x-3 border border-personal-label-border bg-personal-label text-personal-label-text rounded-catchup-3xlarge text-center">
7
- <div className="flex flex-row items-center gap-x-2">
8
- {icon ? (
9
- icon
10
- ) : (
11
- <BaseImage
12
- src="/icons/personal-label.webp"
13
- alt="label"
14
- size="xsmall"
15
- />
16
- )}
17
- <p className={font ? font : "text-sm"}>{title}</p>
18
- </div>
19
- </div>
20
- );
21
- };
22
-
23
- export default PersonalLabel;
@@ -1,23 +0,0 @@
1
- import { IPublishingLabelProps } from "../../properties/LabelProperties";
2
- import BaseImage from "../images/BaseImage";
3
-
4
- const PublishingHouseLabel = ({ title, icon, font }: IPublishingLabelProps) => {
5
- return (
6
- <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 text-center">
7
- <div className="flex flex-row items-center gap-x-2">
8
- {icon ? (
9
- icon
10
- ) : (
11
- <BaseImage
12
- src="/icons/publishing-house-label.webp"
13
- alt="label"
14
- size="xsmall"
15
- />
16
- )}
17
- <p className={font ? font : "text-sm"}>{title}</p>
18
- </div>
19
- </div>
20
- );
21
- };
22
-
23
- export default PublishingHouseLabel;