catchup-library-web 1.16.12 → 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/dist/index.d.mts +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +496 -483
- package/dist/index.mjs +427 -415
- package/package.json +1 -1
- package/src/components/activities/body-content/ShowBodyMediaByContentType.tsx +2 -2
- package/src/components/cards/BaseCard.tsx +13 -0
- package/src/components/cards/FullCard.tsx +13 -18
- package/src/index.ts +1 -0
- package/src/properties/CardProperties.ts +6 -2
package/package.json
CHANGED
|
@@ -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
|
|
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
|
-
|
|
4
|
+
backgroundColor,
|
|
5
|
+
borderColor,
|
|
5
6
|
opacity,
|
|
6
|
-
isShadowed,
|
|
7
7
|
usePadding,
|
|
8
8
|
children,
|
|
9
9
|
}: IFullCardProps) => {
|
|
10
10
|
return (
|
|
11
|
-
<div
|
|
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-
|
|
14
|
-
|
|
15
|
-
}
|
|
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
|
-
|
|
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
|
);
|
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
|
-
|
|
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
|
+
}
|