@hellobetterdigitalnz/selwynui 0.0.1-35 → 0.0.1-36
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/DataDisplay/ListBlock/ListBlock.d.ts +3 -0
- package/dist/Components/DataDisplay/{Pathway/PathwayProps.d.ts → ListBlock/ListBlockProps.d.ts} +4 -3
- package/dist/Components/DataDisplay/index.d.ts +4 -2
- package/dist/index.cjs.js +13 -13
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +931 -932
- package/dist/index.es.js.map +1 -1
- package/dist/selwynui.css +1 -1
- package/package.json +1 -1
- package/src/Components/DataDisplay/DetailsCard/DetailsCard.tsx +3 -3
- package/src/Components/DataDisplay/DetailsCard/detailsCard.module.scss +1 -0
- package/src/Components/DataDisplay/{Pathway/Pathway.stories.tsx → ListBlock/ListBlock.stories.tsx} +17 -14
- package/src/Components/DataDisplay/{Pathway/Pathway.tsx → ListBlock/ListBlock.tsx} +35 -35
- package/src/Components/DataDisplay/{Pathway/PathwayProps.tsx → ListBlock/ListBlockProps.tsx} +6 -4
- package/src/Components/DataDisplay/{Pathway/pathway.module.scss → ListBlock/listBlock.module.scss} +28 -6
- package/src/Components/DataDisplay/ListingDetailBlock/ListingDetailBlock.tsx +10 -10
- package/src/Components/DataDisplay/index.ts +7 -3
- package/dist/Components/DataDisplay/Pathway/Pathway.d.ts +0 -3
package/dist/Components/DataDisplay/{Pathway/PathwayProps.d.ts → ListBlock/ListBlockProps.d.ts}
RENAMED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
export interface Card {
|
|
2
3
|
title?: string;
|
|
3
4
|
description?: string;
|
|
@@ -13,12 +14,12 @@ export interface Card {
|
|
|
13
14
|
variation?: "long" | "short";
|
|
14
15
|
category?: 'all' | 'adventure' | 'ski' | 'nature';
|
|
15
16
|
}
|
|
16
|
-
interface
|
|
17
|
+
interface ListBlockProps {
|
|
17
18
|
title?: string;
|
|
18
19
|
description?: string;
|
|
19
|
-
variation?: 'grid' | 'carousel';
|
|
20
20
|
link?: string;
|
|
21
21
|
cards?: Card[];
|
|
22
22
|
filters?: string[];
|
|
23
|
+
action?: ReactNode;
|
|
23
24
|
}
|
|
24
|
-
export default
|
|
25
|
+
export default ListBlockProps;
|
|
@@ -18,8 +18,8 @@ export { default as ChatItenaryBlock } from './ChatItenaryBlock/ChatItenaryBlock
|
|
|
18
18
|
export type { default as ChatItenaryBlockProps } from './ChatItenaryBlock/ChatItenaryBlockProps';
|
|
19
19
|
export { default as TestimonyCard } from './TestimonyCard/TestimonyCard';
|
|
20
20
|
export type { default as TestimonyCardProps } from './TestimonyCard/TestimonyCardProps';
|
|
21
|
-
export { default as Pathway } from './
|
|
22
|
-
export type { default as PathwayProps } from './
|
|
21
|
+
export { default as Pathway } from './ListBlock/ListBlock.tsx';
|
|
22
|
+
export type { default as PathwayProps } from './ListBlock/ListBlockProps.tsx';
|
|
23
23
|
export { default as PromoBannerBlock } from './PromoBannerBlock/PromoBannerBlock';
|
|
24
24
|
export type { default as PromoBannerBlockProps } from './PromoBannerBlock/PromoBannerBlockProps';
|
|
25
25
|
export { default as ContactBlock } from './ContactsBlock/ContactsBlock';
|
|
@@ -28,3 +28,5 @@ export { default as ContactItem } from './ContactsBlock/ContactItem';
|
|
|
28
28
|
export type { default as ContactItemProps } from './ContactsBlock/ContactItemProps';
|
|
29
29
|
export { default as ImageContent } from './ImageContent/ImageContent';
|
|
30
30
|
export type { default as ImageContentProps } from './ImageContent/ImageContentProps';
|
|
31
|
+
export { default as ListBlock } from './ListBlock/ListBlock';
|
|
32
|
+
export type { default as ListBlockProps } from './ListBlock/ListBlockProps';
|