@livetiles/reach-components-react 0.4.100 → 0.4.101
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/CompactLayoutList.d.ts +2 -1
- package/NewsList.d.ts +5 -0
- package/PublishableItemCompactCard.d.ts +6 -1
- package/index.d.ts +5 -0
- package/index.esm2.js +4 -4
- package/index.umd.js +52 -52
- package/package.json +1 -1
- package/skeletons/CompactListShimmer.d.ts +2 -0
- package/skeletons/ListShimmer.d.ts +1 -0
- package/skeletons/NewsShimmerListItem.d.ts +3 -1
package/CompactLayoutList.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import { PublishableItem } from '@livetiles/reach/util/common';
|
|
|
2
2
|
interface CompactLayoutListProps<TItem extends PublishableItem = PublishableItem> {
|
|
3
3
|
items: TItem[];
|
|
4
4
|
onRenderCard: (item: TItem) => unknown;
|
|
5
|
+
cardsGap?: number;
|
|
5
6
|
className?: string;
|
|
6
7
|
}
|
|
7
|
-
export declare const CompactLayoutList: <TItem extends PublishableItem>({ items, onRenderCard, className, }: CompactLayoutListProps<TItem>) => JSX.Element;
|
|
8
|
+
export declare const CompactLayoutList: <TItem extends PublishableItem>({ items, onRenderCard, cardsGap, className, }: CompactLayoutListProps<TItem>) => JSX.Element;
|
|
8
9
|
export {};
|
package/NewsList.d.ts
CHANGED
|
@@ -16,6 +16,11 @@ export interface NewsListProps {
|
|
|
16
16
|
hidePagination?: boolean;
|
|
17
17
|
pageSize?: number;
|
|
18
18
|
includeAllItems?: boolean;
|
|
19
|
+
cardsGap?: number;
|
|
20
|
+
contentGap?: number;
|
|
21
|
+
bannerSize?: number;
|
|
22
|
+
showDateOnBottom?: boolean;
|
|
23
|
+
showDateAsRelative?: boolean;
|
|
19
24
|
className?: string;
|
|
20
25
|
}
|
|
21
26
|
export declare const NewsList: FC<NewsListProps>;
|
|
@@ -12,9 +12,14 @@ export interface PublishableItemCompactCardProps {
|
|
|
12
12
|
color: string;
|
|
13
13
|
tooltipText: string;
|
|
14
14
|
};
|
|
15
|
+
bannerSize?: number;
|
|
16
|
+
contentGap?: number;
|
|
17
|
+
showDateOnBottom?: boolean;
|
|
15
18
|
onCardClick?: (e: MouseEvent<unknown>) => unknown;
|
|
16
19
|
onTitleClick?: (e: MouseEvent<unknown>) => unknown;
|
|
17
20
|
className?: string;
|
|
18
21
|
}
|
|
19
22
|
export declare const PublishableItemCompactCard: FC<PublishableItemCompactCardProps>;
|
|
20
|
-
export declare const Host: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
23
|
+
export declare const Host: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
24
|
+
bannerSize: number;
|
|
25
|
+
}, never>;
|
package/index.d.ts
CHANGED
|
@@ -1237,6 +1237,11 @@ interface NewsListProps {
|
|
|
1237
1237
|
hidePagination?: boolean;
|
|
1238
1238
|
pageSize?: number;
|
|
1239
1239
|
includeAllItems?: boolean;
|
|
1240
|
+
cardsGap?: number;
|
|
1241
|
+
contentGap?: number;
|
|
1242
|
+
bannerSize?: number;
|
|
1243
|
+
showDateOnBottom?: boolean;
|
|
1244
|
+
showDateAsRelative?: boolean;
|
|
1240
1245
|
className?: string;
|
|
1241
1246
|
}
|
|
1242
1247
|
declare const NewsList: FC<NewsListProps>;
|