trepur_components 2.3.39 → 2.3.40
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.
|
@@ -3,7 +3,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
3
3
|
|
|
4
4
|
declare const meta: {
|
|
5
5
|
title: string;
|
|
6
|
-
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<
|
|
6
|
+
component: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
|
|
7
7
|
Image: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<import('../Image').ImageProps> & import('../Image').ImageProps & import('react').RefAttributes<HTMLImageElement>>;
|
|
8
8
|
Content: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
9
9
|
Title: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ImageProps } from '../Image';
|
|
2
2
|
import { HTMLAttributes } from 'react';
|
|
3
3
|
|
|
4
|
-
declare const ImageCard: import('react').ForwardRefExoticComponent<HTMLAttributes<
|
|
4
|
+
declare const ImageCard: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>> & {
|
|
5
5
|
Image: import('react').ForwardRefExoticComponent<HTMLAttributes<ImageProps> & ImageProps & import('react').RefAttributes<HTMLImageElement>>;
|
|
6
6
|
Content: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
7
7
|
Title: import('react').ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & import('react').RefAttributes<HTMLParagraphElement>>;
|
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as t } from "react";
|
|
3
|
-
import { Image as
|
|
3
|
+
import { Image as c } from "../Image/index.js";
|
|
4
4
|
import C from "clsx";
|
|
5
|
-
const s = t(({ className: a, children: e, onClick: r, ...
|
|
5
|
+
const s = t(({ className: a, children: e, onClick: r, ...g }, p) => /* @__PURE__ */ m(
|
|
6
6
|
"div",
|
|
7
7
|
{
|
|
8
|
+
ref: p,
|
|
8
9
|
className: C(
|
|
9
10
|
"grid max-w-96 overflow-hidden rounded-xl bg-white drop-shadow",
|
|
10
11
|
a
|
|
11
12
|
),
|
|
13
|
+
onClick: r,
|
|
14
|
+
...g,
|
|
12
15
|
children: e
|
|
13
16
|
}
|
|
14
|
-
)
|
|
17
|
+
)), d = t(({ src: a, ...e }) => /* @__PURE__ */ m("div", { className: "h-64", children: /* @__PURE__ */ m(c, { className: "object-cover", src: a, ...e }) })), o = t(({ children: a, ...e }, r) => /* @__PURE__ */ m("div", { className: "px-2 pb-4 pt-2", ref: r, ...e, children: a })), l = t(({ ...a }, e) => /* @__PURE__ */ m("p", { className: "text-lg", ref: e, ...a })), i = t(({ ...a }, e) => /* @__PURE__ */ m("p", { className: "text-sm", ref: e, ...a })), n = t(({ ...a }, e) => /* @__PURE__ */ m("p", { className: "line-clamp-4 pt-4", ref: e, ...a }));
|
|
15
18
|
s.displayName = "ImageCard";
|
|
16
19
|
d.displayName = "ImageCard.Image";
|
|
17
20
|
l.displayName = "ImageCard.Title";
|
|
18
21
|
i.displayName = "ImageCard.Subtitle";
|
|
19
22
|
o.displayName = "ImageCard.Content";
|
|
20
23
|
n.displayName = "ImageCard.Text";
|
|
21
|
-
const
|
|
24
|
+
const f = Object.assign(s, {
|
|
22
25
|
Image: d,
|
|
23
26
|
Content: o,
|
|
24
27
|
Title: l,
|
|
@@ -26,5 +29,5 @@ const b = Object.assign(s, {
|
|
|
26
29
|
Text: n
|
|
27
30
|
});
|
|
28
31
|
export {
|
|
29
|
-
|
|
32
|
+
f as ImageCard
|
|
30
33
|
};
|