catchup-library-web 1.16.11 → 1.16.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catchup-library-web",
3
- "version": "1.16.11",
3
+ "version": "1.16.13",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -391,12 +391,12 @@ const ShowBodyMediaByContentType = ({
391
391
  <div className="mb-1 flex flex-col items-center relative">
392
392
  <div
393
393
  className={`${convertToPercentage(
394
- size || ""
394
+ size
395
395
  )} rounded-catchup-xlarge relative`}
396
396
  >
397
397
  <BaseImage
398
398
  src={value}
399
- alt="body image"
399
+ alt="body-image"
400
400
  size="custom"
401
401
  className="w-full rounded-catchup-xlarge"
402
402
  />
@@ -0,0 +1,13 @@
1
+ import { IBaseCardProps } from "../../properties/CardProperties";
2
+
3
+ const BaseCard = ({ children }: IBaseCardProps) => {
4
+ return (
5
+ <div className="flex flex-col justify-center items-center h-full">
6
+ <div className="bg-catchup-white rounded-catchup-xlarge h-catchup-card w-catchup-card shadow-dropdown">
7
+ <div className="flex flex-col mx-auto p-8 h-full">{children}</div>
8
+ </div>
9
+ </div>
10
+ );
11
+ };
12
+
13
+ export default BaseCard;
@@ -1,31 +1,26 @@
1
1
  import { IFullCardProps } from "../../properties/CardProperties";
2
2
 
3
3
  const FullCard = ({
4
- bgColor,
4
+ backgroundColor,
5
+ borderColor,
5
6
  opacity,
6
- isShadowed,
7
7
  usePadding,
8
8
  children,
9
9
  }: IFullCardProps) => {
10
10
  return (
11
- <div className="flex flex-col justify-center items-center h-full">
11
+ <div
12
+ className={`min-h-full
13
+ ${backgroundColor ? backgroundColor : "bg-catchup-white"}
14
+ ${borderColor ? borderColor : "border-catchup-gray-50"}
15
+ ${opacity ? opacity : "opacity-100"}
16
+ rounded-catchup-xlarge w-full `}
17
+ >
12
18
  <div
13
- className={`flex-1 ${bgColor ? bgColor : ""} ${
14
- opacity ? opacity : "opacity-100"
15
- } rounded-catchup-xlarge w-full border border-catchup-gray-50 bg-catchup-white`}
16
- // style={{
17
- // boxShadow: isShadowed
18
- // ? "rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px"
19
- // : "none",
20
- // }}
19
+ className={`flex flex-col mx-auto ${
20
+ usePadding === false ? "p-0" : "p-6"
21
+ } h-full`}
21
22
  >
22
- <div
23
- className={`flex flex-col mx-auto ${
24
- usePadding === false ? "p-0" : "p-6"
25
- } h-full`}
26
- >
27
- {children}
28
- </div>
23
+ {children}
29
24
  </div>
30
25
  </div>
31
26
  );
@@ -2,7 +2,7 @@ import { IActivityLabelProps } from "../../properties/LabelProperties";
2
2
 
3
3
  const ActivityLabel = ({ title, font }: IActivityLabelProps) => {
4
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 m-auto">
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 m-auto text-center">
6
6
  <p className={font ? font : "text-sm"}>{title}</p>
7
7
  </div>
8
8
  );
@@ -7,7 +7,7 @@ const ActivityTemplateLabel = ({
7
7
  font,
8
8
  }: IActivityTemplateLabelProps) => {
9
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 m-auto">
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 m-auto text-center">
11
11
  <div className="flex flex-row items-center gap-x-2">
12
12
  {icon ? (
13
13
  icon
@@ -3,7 +3,7 @@ import BaseImage from "../images/BaseImage";
3
3
 
4
4
  const BrandLabel = ({ title, icon, font }: IBrandLabelProps) => {
5
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 m-auto">
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 m-auto text-center">
7
7
  <div className="flex flex-row items-center gap-x-2">
8
8
  {icon ? (
9
9
  icon
@@ -3,7 +3,7 @@ import BaseImage from "../images/BaseImage";
3
3
 
4
4
  const CategoryLabel = ({ title, icon, font }: ICategoryLabelProps) => {
5
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 m-auto">
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 m-auto text-center">
7
7
  <div className="flex flex-row items-center gap-x-2">
8
8
  {icon ? (
9
9
  icon
@@ -2,7 +2,7 @@ import { ICoterieLabelProps } from "../../properties/LabelProperties";
2
2
 
3
3
  const CoterieLabel = ({ title, font }: ICoterieLabelProps) => {
4
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 m-auto">
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 m-auto text-center">
6
6
  <p className={font ? font : "text-sm"}>{title}</p>
7
7
  </div>
8
8
  );
@@ -2,7 +2,7 @@ import { IGradeLabelProps } from "../../properties/LabelProperties";
2
2
 
3
3
  const GradeLabel = ({ title, font }: IGradeLabelProps) => {
4
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 m-auto">
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 m-auto text-center">
6
6
  <p className={font ? font : "text-sm"}>{title}</p>
7
7
  </div>
8
8
  );
@@ -3,7 +3,7 @@ import BaseImage from "../images/BaseImage";
3
3
 
4
4
  const OutcomeLabel = ({ title, font }: IOutcomeLabelProps) => {
5
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 m-auto">
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 m-auto text-center">
7
7
  <div className="flex flex-row items-center gap-x-2">
8
8
  <BaseImage src="/icons/category.webp" alt="label" size="xsmall" />
9
9
  <p className={font ? font : "text-sm"}>{title}</p>
@@ -3,7 +3,7 @@ import BaseImage from "../images/BaseImage";
3
3
 
4
4
  const PersonalLabel = ({ title, icon, font }: IPersonalLabelProps) => {
5
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 m-auto">
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 m-auto text-center">
7
7
  <div className="flex flex-row items-center gap-x-2">
8
8
  {icon ? (
9
9
  icon
@@ -3,7 +3,7 @@ import BaseImage from "../images/BaseImage";
3
3
 
4
4
  const PublishingHouseLabel = ({ title, icon, font }: IPublishingLabelProps) => {
5
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 m-auto">
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 m-auto text-center">
7
7
  <div className="flex flex-row items-center gap-x-2">
8
8
  {icon ? (
9
9
  icon
package/src/index.ts CHANGED
@@ -10,6 +10,7 @@ export { default as CancelButton } from "./components/buttons/CancelButton";
10
10
  export { default as ApproveButton } from "./components/buttons/ApproveButton";
11
11
 
12
12
  export { default as FullCard } from "./components/cards/FullCard";
13
+ export { default as BaseCard } from "./components/cards/BaseCard";
13
14
 
14
15
  export { default as BaseImage } from "./components/images/BaseImage";
15
16
 
@@ -1,7 +1,11 @@
1
1
  export interface IFullCardProps {
2
- bgColor?: string;
2
+ backgroundColor?: string;
3
+ borderColor?: string;
3
4
  opacity?: string;
4
- isShadowed?: boolean;
5
5
  usePadding?: boolean;
6
6
  children?: React.ReactNode;
7
7
  }
8
+
9
+ export interface IBaseCardProps {
10
+ children?: React.ReactNode;
11
+ }