catchup-library-web 2.3.8 → 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/dist/index.d.mts +14 -48
- package/dist/index.d.ts +14 -48
- package/dist/index.js +201 -105
- package/dist/index.mjs +196 -101
- package/package.json +1 -1
- package/src/components/labels/BlueLabel.tsx +17 -0
- package/src/components/labels/CoralLabel.tsx +17 -0
- package/src/components/labels/CyanLabel.tsx +17 -0
- package/src/components/labels/GrayLabel.tsx +17 -0
- package/src/components/labels/GreenLabel.tsx +17 -0
- package/src/components/labels/Label.tsx +30 -0
- package/src/components/labels/LimeLabel.tsx +17 -0
- package/src/components/labels/OrangeLabel.tsx +17 -0
- package/src/components/labels/PurpleLabel.tsx +17 -0
- package/src/components/labels/RedLabel.tsx +18 -0
- package/src/components/labels/TealLabel.tsx +17 -0
- package/src/index.ts +10 -9
- package/src/properties/LabelProperties.ts +9 -43
- package/src/components/labels/ActivityLabel.tsx +0 -11
- package/src/components/labels/ActivityTemplateLabel.tsx +0 -23
- package/src/components/labels/BrandLabel.tsx +0 -19
- package/src/components/labels/CategoryLabel.tsx +0 -23
- package/src/components/labels/CoterieLabel.tsx +0 -11
- package/src/components/labels/GradeLabel.tsx +0 -11
- package/src/components/labels/OutcomeLabel.tsx +0 -15
- package/src/components/labels/PersonalLabel.tsx +0 -23
- package/src/components/labels/PublishingHouseLabel.tsx +0 -23
package/dist/index.mjs
CHANGED
|
@@ -7530,149 +7530,243 @@ var SelectionTabFill = ({
|
|
|
7530
7530
|
};
|
|
7531
7531
|
var SelectionTabFill_default = SelectionTabFill;
|
|
7532
7532
|
|
|
7533
|
-
// src/components/labels/
|
|
7533
|
+
// src/components/labels/Label.tsx
|
|
7534
7534
|
import { jsx as jsx55, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
7535
|
-
var
|
|
7535
|
+
var Label = ({
|
|
7536
7536
|
title,
|
|
7537
7537
|
icon,
|
|
7538
|
-
font
|
|
7538
|
+
font = "text-md",
|
|
7539
|
+
borderWidth = 1,
|
|
7540
|
+
borderColor,
|
|
7541
|
+
backgroundColor,
|
|
7542
|
+
textColor
|
|
7539
7543
|
}) => {
|
|
7540
|
-
return /* @__PURE__ */ jsx55(
|
|
7541
|
-
|
|
7542
|
-
|
|
7543
|
-
|
|
7544
|
+
return /* @__PURE__ */ jsx55(
|
|
7545
|
+
"div",
|
|
7546
|
+
{
|
|
7547
|
+
className: "px-3 py-1 gap-x-3 border rounded-catchup-2xlarge text-center",
|
|
7548
|
+
style: {
|
|
7549
|
+
borderWidth,
|
|
7550
|
+
borderColor,
|
|
7551
|
+
background: backgroundColor,
|
|
7552
|
+
color: textColor
|
|
7553
|
+
},
|
|
7554
|
+
children: /* @__PURE__ */ jsxs42("div", { className: "flex flex-row items-center gap-x-2", children: [
|
|
7555
|
+
icon,
|
|
7556
|
+
/* @__PURE__ */ jsx55("p", { className: font, children: title })
|
|
7557
|
+
] })
|
|
7558
|
+
}
|
|
7559
|
+
);
|
|
7544
7560
|
};
|
|
7545
|
-
var
|
|
7561
|
+
var Label_default = Label;
|
|
7546
7562
|
|
|
7547
|
-
// src/components/labels/
|
|
7548
|
-
import { jsx as jsx56
|
|
7549
|
-
var
|
|
7550
|
-
return /* @__PURE__ */ jsx56(
|
|
7551
|
-
|
|
7552
|
-
|
|
7553
|
-
|
|
7563
|
+
// src/components/labels/TealLabel.tsx
|
|
7564
|
+
import { jsx as jsx56 } from "react/jsx-runtime";
|
|
7565
|
+
var TealLabel = ({ title, icon, font }) => {
|
|
7566
|
+
return /* @__PURE__ */ jsx56(
|
|
7567
|
+
Label_default,
|
|
7568
|
+
{
|
|
7569
|
+
title,
|
|
7570
|
+
icon,
|
|
7571
|
+
font,
|
|
7572
|
+
borderColor: "#B2E5EF",
|
|
7573
|
+
backgroundColor: "#E7F8FB",
|
|
7574
|
+
textColor: "#3E879A"
|
|
7575
|
+
}
|
|
7576
|
+
);
|
|
7554
7577
|
};
|
|
7555
|
-
var
|
|
7578
|
+
var TealLabel_default = TealLabel;
|
|
7556
7579
|
|
|
7557
|
-
// src/components/labels/
|
|
7558
|
-
import { jsx as jsx57
|
|
7559
|
-
var
|
|
7560
|
-
return /* @__PURE__ */ jsx57(
|
|
7561
|
-
|
|
7562
|
-
|
|
7563
|
-
|
|
7564
|
-
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7580
|
+
// src/components/labels/PurpleLabel.tsx
|
|
7581
|
+
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
7582
|
+
var PurpleLabel = ({ title, icon, font }) => {
|
|
7583
|
+
return /* @__PURE__ */ jsx57(
|
|
7584
|
+
Label_default,
|
|
7585
|
+
{
|
|
7586
|
+
title,
|
|
7587
|
+
icon,
|
|
7588
|
+
font,
|
|
7589
|
+
borderColor: "#E3CEF4",
|
|
7590
|
+
backgroundColor: "#EDEAF1",
|
|
7591
|
+
textColor: "#9C63B0"
|
|
7592
|
+
}
|
|
7593
|
+
);
|
|
7571
7594
|
};
|
|
7572
|
-
var
|
|
7595
|
+
var PurpleLabel_default = PurpleLabel;
|
|
7573
7596
|
|
|
7574
|
-
// src/components/labels/
|
|
7597
|
+
// src/components/labels/GreenLabel.tsx
|
|
7575
7598
|
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
7576
|
-
var
|
|
7577
|
-
return /* @__PURE__ */ jsx58(
|
|
7599
|
+
var GreenLabel = ({ title, icon, font }) => {
|
|
7600
|
+
return /* @__PURE__ */ jsx58(
|
|
7601
|
+
Label_default,
|
|
7602
|
+
{
|
|
7603
|
+
title,
|
|
7604
|
+
icon,
|
|
7605
|
+
font,
|
|
7606
|
+
borderColor: "#BBF7D0",
|
|
7607
|
+
backgroundColor: "#ECFDF5",
|
|
7608
|
+
textColor: "#059669"
|
|
7609
|
+
}
|
|
7610
|
+
);
|
|
7578
7611
|
};
|
|
7579
|
-
var
|
|
7612
|
+
var GreenLabel_default = GreenLabel;
|
|
7580
7613
|
|
|
7581
|
-
// src/components/labels/
|
|
7614
|
+
// src/components/labels/BlueLabel.tsx
|
|
7582
7615
|
import { jsx as jsx59 } from "react/jsx-runtime";
|
|
7583
|
-
var
|
|
7584
|
-
return /* @__PURE__ */ jsx59(
|
|
7616
|
+
var BlueLabel = ({ title, icon, font }) => {
|
|
7617
|
+
return /* @__PURE__ */ jsx59(
|
|
7618
|
+
Label_default,
|
|
7619
|
+
{
|
|
7620
|
+
title,
|
|
7621
|
+
icon,
|
|
7622
|
+
font,
|
|
7623
|
+
borderColor: "#E4ECFF",
|
|
7624
|
+
backgroundColor: "#F6FBFD",
|
|
7625
|
+
textColor: "#4E9BD2"
|
|
7626
|
+
}
|
|
7627
|
+
);
|
|
7585
7628
|
};
|
|
7586
|
-
var
|
|
7629
|
+
var BlueLabel_default = BlueLabel;
|
|
7587
7630
|
|
|
7588
|
-
// src/components/labels/
|
|
7589
|
-
import { jsx as jsx60
|
|
7590
|
-
var
|
|
7591
|
-
return /* @__PURE__ */ jsx60(
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7631
|
+
// src/components/labels/OrangeLabel.tsx
|
|
7632
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
|
7633
|
+
var OrangeLabel = ({ title, icon, font }) => {
|
|
7634
|
+
return /* @__PURE__ */ jsx60(
|
|
7635
|
+
Label_default,
|
|
7636
|
+
{
|
|
7637
|
+
title,
|
|
7638
|
+
icon,
|
|
7639
|
+
font,
|
|
7640
|
+
borderColor: "#E2D0CA",
|
|
7641
|
+
backgroundColor: "#FEF8F6",
|
|
7642
|
+
textColor: "#FF8156"
|
|
7643
|
+
}
|
|
7644
|
+
);
|
|
7595
7645
|
};
|
|
7596
|
-
var
|
|
7646
|
+
var OrangeLabel_default = OrangeLabel;
|
|
7597
7647
|
|
|
7598
|
-
// src/components/labels/
|
|
7599
|
-
import { jsx as jsx61
|
|
7600
|
-
var
|
|
7601
|
-
return /* @__PURE__ */ jsx61(
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7648
|
+
// src/components/labels/RedLabel.tsx
|
|
7649
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
7650
|
+
var RedLabel = ({ title, icon, font }) => {
|
|
7651
|
+
return /* @__PURE__ */ jsx61(
|
|
7652
|
+
Label_default,
|
|
7653
|
+
{
|
|
7654
|
+
title,
|
|
7655
|
+
icon,
|
|
7656
|
+
font,
|
|
7657
|
+
borderColor: "#F9E0E0",
|
|
7658
|
+
backgroundColor: "#FEF2F2",
|
|
7659
|
+
textColor: "#FF6B6B"
|
|
7660
|
+
}
|
|
7661
|
+
);
|
|
7612
7662
|
};
|
|
7613
|
-
var
|
|
7663
|
+
var RedLabel_default = RedLabel;
|
|
7614
7664
|
|
|
7615
|
-
// src/components/labels/
|
|
7616
|
-
import { jsx as jsx62
|
|
7617
|
-
var
|
|
7618
|
-
return /* @__PURE__ */ jsx62(
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7665
|
+
// src/components/labels/LimeLabel.tsx
|
|
7666
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
7667
|
+
var LimeLabel = ({ title, icon, font }) => {
|
|
7668
|
+
return /* @__PURE__ */ jsx62(
|
|
7669
|
+
Label_default,
|
|
7670
|
+
{
|
|
7671
|
+
title,
|
|
7672
|
+
icon,
|
|
7673
|
+
font,
|
|
7674
|
+
borderColor: "#D9EF9F",
|
|
7675
|
+
backgroundColor: "#F0F7DD",
|
|
7676
|
+
textColor: "#789C23"
|
|
7677
|
+
}
|
|
7678
|
+
);
|
|
7629
7679
|
};
|
|
7630
|
-
var
|
|
7680
|
+
var LimeLabel_default = LimeLabel;
|
|
7631
7681
|
|
|
7632
|
-
// src/components/labels/
|
|
7682
|
+
// src/components/labels/CoralLabel.tsx
|
|
7633
7683
|
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
7634
|
-
var
|
|
7635
|
-
return /* @__PURE__ */ jsx63(
|
|
7684
|
+
var CoralLabel = ({ title, icon, font }) => {
|
|
7685
|
+
return /* @__PURE__ */ jsx63(
|
|
7686
|
+
Label_default,
|
|
7687
|
+
{
|
|
7688
|
+
title,
|
|
7689
|
+
icon,
|
|
7690
|
+
font,
|
|
7691
|
+
borderColor: "#FCCFC5",
|
|
7692
|
+
backgroundColor: "#FEF0ED",
|
|
7693
|
+
textColor: "#F98066"
|
|
7694
|
+
}
|
|
7695
|
+
);
|
|
7696
|
+
};
|
|
7697
|
+
var CoralLabel_default = CoralLabel;
|
|
7698
|
+
|
|
7699
|
+
// src/components/labels/CyanLabel.tsx
|
|
7700
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
7701
|
+
var CyanLabel = ({ title, icon, font }) => {
|
|
7702
|
+
return /* @__PURE__ */ jsx64(
|
|
7703
|
+
Label_default,
|
|
7704
|
+
{
|
|
7705
|
+
title,
|
|
7706
|
+
icon,
|
|
7707
|
+
font,
|
|
7708
|
+
borderColor: "#A4E7F1",
|
|
7709
|
+
backgroundColor: "#DEFBFF",
|
|
7710
|
+
textColor: "#0F899C"
|
|
7711
|
+
}
|
|
7712
|
+
);
|
|
7713
|
+
};
|
|
7714
|
+
var CyanLabel_default = CyanLabel;
|
|
7715
|
+
|
|
7716
|
+
// src/components/labels/GrayLabel.tsx
|
|
7717
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
|
7718
|
+
var GrayLabel = ({ title, icon, font }) => {
|
|
7719
|
+
return /* @__PURE__ */ jsx65(
|
|
7720
|
+
Label_default,
|
|
7721
|
+
{
|
|
7722
|
+
title,
|
|
7723
|
+
icon,
|
|
7724
|
+
font,
|
|
7725
|
+
borderColor: "#D2DDE1",
|
|
7726
|
+
backgroundColor: "#EAECF1",
|
|
7727
|
+
textColor: "#55777F"
|
|
7728
|
+
}
|
|
7729
|
+
);
|
|
7636
7730
|
};
|
|
7637
|
-
var
|
|
7731
|
+
var GrayLabel_default = GrayLabel;
|
|
7638
7732
|
|
|
7639
7733
|
// src/components/infos/InfoWithText.tsx
|
|
7640
|
-
import { jsx as
|
|
7734
|
+
import { jsx as jsx66, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
7641
7735
|
var InfoWithText = (props) => {
|
|
7642
7736
|
const { value } = props;
|
|
7643
|
-
return /* @__PURE__ */
|
|
7644
|
-
/* @__PURE__ */
|
|
7645
|
-
/* @__PURE__ */
|
|
7737
|
+
return /* @__PURE__ */ jsxs43("div", { className: "w-full flex flex-row items-center gap-x-2 my-2", children: [
|
|
7738
|
+
/* @__PURE__ */ jsx66(BaseImage_default, { src: "/icons/info.webp", alt: "info", size: "small" }),
|
|
7739
|
+
/* @__PURE__ */ jsx66("div", { className: "flex-1", children: /* @__PURE__ */ jsx66("p", { className: "", children: value }) })
|
|
7646
7740
|
] });
|
|
7647
7741
|
};
|
|
7648
7742
|
var InfoWithText_default = InfoWithText;
|
|
7649
7743
|
|
|
7650
7744
|
// src/components/titles/BaseTitle.tsx
|
|
7651
|
-
import { jsx as
|
|
7745
|
+
import { jsx as jsx67, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
7652
7746
|
var BaseTitle = ({
|
|
7653
7747
|
title,
|
|
7654
7748
|
totalItemCount,
|
|
7655
7749
|
itemName,
|
|
7656
7750
|
description
|
|
7657
7751
|
}) => {
|
|
7658
|
-
return /* @__PURE__ */
|
|
7659
|
-
/* @__PURE__ */
|
|
7752
|
+
return /* @__PURE__ */ jsxs44("div", { className: "flex flex-col gap-y-2", children: [
|
|
7753
|
+
/* @__PURE__ */ jsxs44("p", { className: "text-2xl font-medium", children: [
|
|
7660
7754
|
title,
|
|
7661
|
-
totalItemCount && itemName ? /* @__PURE__ */
|
|
7755
|
+
totalItemCount && itemName ? /* @__PURE__ */ jsxs44("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: [
|
|
7662
7756
|
totalItemCount,
|
|
7663
7757
|
" ",
|
|
7664
7758
|
itemName
|
|
7665
7759
|
] }) : null
|
|
7666
7760
|
] }),
|
|
7667
|
-
description ? /* @__PURE__ */
|
|
7761
|
+
description ? /* @__PURE__ */ jsx67("p", { className: "", children: description }) : null
|
|
7668
7762
|
] });
|
|
7669
7763
|
};
|
|
7670
7764
|
var BaseTitle_default = BaseTitle;
|
|
7671
7765
|
|
|
7672
7766
|
// src/components/titles/SubTitle.tsx
|
|
7673
|
-
import { jsx as
|
|
7767
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
7674
7768
|
var SubTitle = ({ title }) => {
|
|
7675
|
-
return /* @__PURE__ */
|
|
7769
|
+
return /* @__PURE__ */ jsx68("p", { className: "text-xl font-medium text-catchup-darker-blue", children: title });
|
|
7676
7770
|
};
|
|
7677
7771
|
var SubTitle_default = SubTitle;
|
|
7678
7772
|
|
|
@@ -10432,10 +10526,8 @@ export {
|
|
|
10432
10526
|
ActivityBodyContent_default as ActivityBodyContent,
|
|
10433
10527
|
ActivityEmptyContent_default as ActivityEmptyContent,
|
|
10434
10528
|
ActivityEvaluationRubricContent_default as ActivityEvaluationRubricContent,
|
|
10435
|
-
ActivityLabel_default as ActivityLabel,
|
|
10436
10529
|
ActivityPreviewByData_default as ActivityPreviewByData,
|
|
10437
10530
|
ActivitySolutionContent_default as ActivitySolutionContent,
|
|
10438
|
-
ActivityTemplateLabel_default as ActivityTemplateLabel,
|
|
10439
10531
|
ApproveButton_default as ApproveButton,
|
|
10440
10532
|
BaseCard_default as BaseCard,
|
|
10441
10533
|
BaseImage_default as BaseImage,
|
|
@@ -10444,23 +10536,25 @@ export {
|
|
|
10444
10536
|
BaseModal_default as BaseModal,
|
|
10445
10537
|
BasePDF_default as BasePDF,
|
|
10446
10538
|
BaseTitle_default as BaseTitle,
|
|
10539
|
+
BlueLabel_default as BlueLabel,
|
|
10447
10540
|
BlueVerticalDividerLine_default as BlueVerticalDividerLine,
|
|
10448
|
-
BrandLabel_default as BrandLabel,
|
|
10449
10541
|
CancelButton_default as CancelButton,
|
|
10450
|
-
|
|
10451
|
-
CoterieLabel_default as CoterieLabel,
|
|
10542
|
+
CoralLabel_default as CoralLabel,
|
|
10452
10543
|
CreateButton_default as CreateButton,
|
|
10544
|
+
CyanLabel_default as CyanLabel,
|
|
10453
10545
|
DeleteButton_default as DeleteButton,
|
|
10454
10546
|
DividerLine_default as DividerLine,
|
|
10455
10547
|
DropdownActivityContent_default as DropdownActivityContent,
|
|
10456
10548
|
FillInTheBlanksActivityContent_default as FillInTheBlanksActivityContent,
|
|
10457
10549
|
FullCard_default as FullCard,
|
|
10458
|
-
|
|
10550
|
+
GrayLabel_default as GrayLabel,
|
|
10551
|
+
GreenLabel_default as GreenLabel,
|
|
10459
10552
|
GroupingActivityContent_default as GroupingActivityContent,
|
|
10460
10553
|
InfoWithText_default as InfoWithText,
|
|
10461
10554
|
InputGroup_default as InputGroup,
|
|
10462
10555
|
InputWithSpecialExpression_default as InputWithSpecialExpression,
|
|
10463
10556
|
LeftTextRightInputGroup_default as LeftTextRightInputGroup,
|
|
10557
|
+
LimeLabel_default as LimeLabel,
|
|
10464
10558
|
MCMAActivityContent_default as MCMAActivityContent,
|
|
10465
10559
|
MCSAActivityContent_default as MCSAActivityContent,
|
|
10466
10560
|
MatchingActivityContent_default as MatchingActivityContent,
|
|
@@ -10469,13 +10563,13 @@ export {
|
|
|
10469
10563
|
ONE_MONTH,
|
|
10470
10564
|
ONE_WEEK,
|
|
10471
10565
|
OpenEndedActivityContent_default as OpenEndedActivityContent,
|
|
10566
|
+
OrangeLabel_default as OrangeLabel,
|
|
10472
10567
|
OrderingActivityContent_default as OrderingActivityContent,
|
|
10473
|
-
OutcomeLabel_default as OutcomeLabel,
|
|
10474
10568
|
PageTravelGroup_default as PageTravelGroup,
|
|
10475
|
-
PersonalLabel_default as PersonalLabel,
|
|
10476
10569
|
PrimaryButton_default as PrimaryButton,
|
|
10477
10570
|
ProgressBar_default as ProgressBar,
|
|
10478
|
-
|
|
10571
|
+
PurpleLabel_default as PurpleLabel,
|
|
10572
|
+
RedLabel_default as RedLabel,
|
|
10479
10573
|
ScoreBar_default as ScoreBar,
|
|
10480
10574
|
SecondaryButton_default as SecondaryButton,
|
|
10481
10575
|
SelectionBox_default as SelectionBox,
|
|
@@ -10485,6 +10579,7 @@ export {
|
|
|
10485
10579
|
StatusError_default as StatusError,
|
|
10486
10580
|
SubTitle_default as SubTitle,
|
|
10487
10581
|
THREE_MONTHS,
|
|
10582
|
+
TealLabel_default as TealLabel,
|
|
10488
10583
|
TimedProgressBar_default as TimedProgressBar,
|
|
10489
10584
|
TrueFalseActivityContent_default as TrueFalseActivityContent,
|
|
10490
10585
|
VerticalDividerLine_default as VerticalDividerLine,
|
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IFixedLabelProps } from "../../properties/LabelProperties";
|
|
2
|
+
import Label from "./Label";
|
|
3
|
+
|
|
4
|
+
const BlueLabel = ({ title, icon, font }: IFixedLabelProps) => {
|
|
5
|
+
return (
|
|
6
|
+
<Label
|
|
7
|
+
title={title}
|
|
8
|
+
icon={icon}
|
|
9
|
+
font={font}
|
|
10
|
+
borderColor="#E4ECFF"
|
|
11
|
+
backgroundColor="#F6FBFD"
|
|
12
|
+
textColor="#4E9BD2"
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default BlueLabel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IFixedLabelProps } from "../../properties/LabelProperties";
|
|
2
|
+
import Label from "./Label";
|
|
3
|
+
|
|
4
|
+
const CoralLabel = ({ title, icon, font }: IFixedLabelProps) => {
|
|
5
|
+
return (
|
|
6
|
+
<Label
|
|
7
|
+
title={title}
|
|
8
|
+
icon={icon}
|
|
9
|
+
font={font}
|
|
10
|
+
borderColor="#FCCFC5"
|
|
11
|
+
backgroundColor="#FEF0ED"
|
|
12
|
+
textColor="#F98066"
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default CoralLabel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IFixedLabelProps } from "../../properties/LabelProperties";
|
|
2
|
+
import Label from "./Label";
|
|
3
|
+
|
|
4
|
+
const CyanLabel = ({ title, icon, font }: IFixedLabelProps) => {
|
|
5
|
+
return (
|
|
6
|
+
<Label
|
|
7
|
+
title={title}
|
|
8
|
+
icon={icon}
|
|
9
|
+
font={font}
|
|
10
|
+
borderColor="#A4E7F1"
|
|
11
|
+
backgroundColor="#DEFBFF"
|
|
12
|
+
textColor="#0F899C"
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default CyanLabel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IFixedLabelProps } from "../../properties/LabelProperties";
|
|
2
|
+
import Label from "./Label";
|
|
3
|
+
|
|
4
|
+
const GrayLabel = ({ title, icon, font }: IFixedLabelProps) => {
|
|
5
|
+
return (
|
|
6
|
+
<Label
|
|
7
|
+
title={title}
|
|
8
|
+
icon={icon}
|
|
9
|
+
font={font}
|
|
10
|
+
borderColor="#D2DDE1"
|
|
11
|
+
backgroundColor="#EAECF1"
|
|
12
|
+
textColor="#55777F"
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default GrayLabel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IFixedLabelProps } from "../../properties/LabelProperties";
|
|
2
|
+
import Label from "./Label";
|
|
3
|
+
|
|
4
|
+
const GreenLabel = ({ title, icon, font }: IFixedLabelProps) => {
|
|
5
|
+
return (
|
|
6
|
+
<Label
|
|
7
|
+
title={title}
|
|
8
|
+
icon={icon}
|
|
9
|
+
font={font}
|
|
10
|
+
borderColor="#BBF7D0"
|
|
11
|
+
backgroundColor="#ECFDF5"
|
|
12
|
+
textColor="#059669"
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default GreenLabel;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ILabelProps } from "../../properties/LabelProperties";
|
|
2
|
+
|
|
3
|
+
const Label = ({
|
|
4
|
+
title,
|
|
5
|
+
icon,
|
|
6
|
+
font = "text-md",
|
|
7
|
+
borderWidth = 1,
|
|
8
|
+
borderColor,
|
|
9
|
+
backgroundColor,
|
|
10
|
+
textColor,
|
|
11
|
+
}: ILabelProps) => {
|
|
12
|
+
return (
|
|
13
|
+
<div
|
|
14
|
+
className="px-3 py-1 gap-x-3 border rounded-catchup-2xlarge text-center"
|
|
15
|
+
style={{
|
|
16
|
+
borderWidth,
|
|
17
|
+
borderColor,
|
|
18
|
+
background: backgroundColor,
|
|
19
|
+
color: textColor,
|
|
20
|
+
}}
|
|
21
|
+
>
|
|
22
|
+
<div className="flex flex-row items-center gap-x-2">
|
|
23
|
+
{icon}
|
|
24
|
+
<p className={font}>{title}</p>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export default Label;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IFixedLabelProps } from "../../properties/LabelProperties";
|
|
2
|
+
import Label from "./Label";
|
|
3
|
+
|
|
4
|
+
const LimeLabel = ({ title, icon, font }: IFixedLabelProps) => {
|
|
5
|
+
return (
|
|
6
|
+
<Label
|
|
7
|
+
title={title}
|
|
8
|
+
icon={icon}
|
|
9
|
+
font={font}
|
|
10
|
+
borderColor="#D9EF9F"
|
|
11
|
+
backgroundColor="#F0F7DD"
|
|
12
|
+
textColor="#789C23"
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default LimeLabel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IFixedLabelProps } from "../../properties/LabelProperties";
|
|
2
|
+
import Label from "./Label";
|
|
3
|
+
|
|
4
|
+
const OrangeLabel = ({ title, icon, font }: IFixedLabelProps) => {
|
|
5
|
+
return (
|
|
6
|
+
<Label
|
|
7
|
+
title={title}
|
|
8
|
+
icon={icon}
|
|
9
|
+
font={font}
|
|
10
|
+
borderColor="#E2D0CA"
|
|
11
|
+
backgroundColor="#FEF8F6"
|
|
12
|
+
textColor="#FF8156"
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default OrangeLabel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IFixedLabelProps } from "../../properties/LabelProperties";
|
|
2
|
+
import Label from "./Label";
|
|
3
|
+
|
|
4
|
+
const PurpleLabel = ({ title, icon, font }: IFixedLabelProps) => {
|
|
5
|
+
return (
|
|
6
|
+
<Label
|
|
7
|
+
title={title}
|
|
8
|
+
icon={icon}
|
|
9
|
+
font={font}
|
|
10
|
+
borderColor="#E3CEF4"
|
|
11
|
+
backgroundColor="#EDEAF1"
|
|
12
|
+
textColor="#9C63B0"
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default PurpleLabel;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IFixedLabelProps } from "../../properties/LabelProperties";
|
|
2
|
+
import Label from "./Label";
|
|
3
|
+
import BaseImage from "../images/BaseImage";
|
|
4
|
+
|
|
5
|
+
const RedLabel = ({ title, icon, font }: IFixedLabelProps) => {
|
|
6
|
+
return (
|
|
7
|
+
<Label
|
|
8
|
+
title={title}
|
|
9
|
+
icon={icon}
|
|
10
|
+
font={font}
|
|
11
|
+
borderColor="#F9E0E0"
|
|
12
|
+
backgroundColor="#FEF2F2"
|
|
13
|
+
textColor="#FF6B6B"
|
|
14
|
+
/>
|
|
15
|
+
);
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default RedLabel;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IFixedLabelProps } from "../../properties/LabelProperties";
|
|
2
|
+
import Label from "./Label";
|
|
3
|
+
|
|
4
|
+
const TealLabel = ({ title, icon, font }: IFixedLabelProps) => {
|
|
5
|
+
return (
|
|
6
|
+
<Label
|
|
7
|
+
title={title}
|
|
8
|
+
icon={icon}
|
|
9
|
+
font={font}
|
|
10
|
+
borderColor="#B2E5EF"
|
|
11
|
+
backgroundColor="#E7F8FB"
|
|
12
|
+
textColor="#3E879A"
|
|
13
|
+
/>
|
|
14
|
+
);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default TealLabel;
|
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
|
|
58
|
-
export { default as
|
|
59
|
-
export { default as
|
|
60
|
-
export { default as
|
|
61
|
-
export { default as
|
|
62
|
-
export { default as
|
|
63
|
-
export { default as
|
|
64
|
-
export { default as
|
|
65
|
-
export { default as
|
|
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
|
|