digital-rabbit-cl 2.4.8 → 2.4.9
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/components/MediaCard/MediaCard.d.ts +17 -0
- package/dist/components/MediaCard/MediaCard.d.ts.map +1 -0
- package/dist/components/MediaCard/index.d.ts +2 -0
- package/dist/components/MediaCard/index.d.ts.map +1 -0
- package/dist/digital-rabbit-cl.es.js +816 -766
- package/dist/digital-rabbit-cl.umd.js +4 -4
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BaseComponentProps, ColorProps, ElementSpecificProps, LayoutProps } from '../../types/component-props';
|
|
3
|
+
export interface MediaCardProps extends BaseComponentProps, Pick<ColorProps, 'backgroundColor'>, Pick<LayoutProps, 'direction'> {
|
|
4
|
+
/** Image or any media element — rendered inside a sized wrapper */
|
|
5
|
+
imageSlot?: React.ReactNode;
|
|
6
|
+
/** Width of the image area in row (horizontal) mode. Defaults to '7em'. */
|
|
7
|
+
imageWidth?: string;
|
|
8
|
+
/** Click handler — also enables cursor pointer and hover opacity effect */
|
|
9
|
+
onClick?: () => void;
|
|
10
|
+
/** Overlay elements rendered as direct children of the card (e.g. action buttons positioned absolutely) */
|
|
11
|
+
actions?: React.ReactNode;
|
|
12
|
+
/** Additional div props */
|
|
13
|
+
divProps?: Omit<ElementSpecificProps<HTMLDivElement>, 'className' | 'style'>;
|
|
14
|
+
}
|
|
15
|
+
declare const MediaCard: React.FC<MediaCardProps>;
|
|
16
|
+
export default MediaCard;
|
|
17
|
+
//# sourceMappingURL=MediaCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaCard.d.ts","sourceRoot":"","sources":["../../../src/components/MediaCard/MediaCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EACV,kBAAkB,EAClB,UAAU,EACV,oBAAoB,EACpB,WAAW,EACZ,MAAM,6BAA6B,CAAC;AAErC,MAAM,WAAW,cACf,SAAQ,kBAAkB,EACxB,IAAI,CAAC,UAAU,EAAE,iBAAiB,CAAC,EACnC,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC;IAChC,mEAAmE;IACnE,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2EAA2E;IAC3E,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,2GAA2G;IAC3G,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,2BAA2B;IAC3B,QAAQ,CAAC,EAAE,IAAI,CAAC,oBAAoB,CAAC,cAAc,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,CAAC;CAC9E;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAoDvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/MediaCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC"}
|