@hellobetterdigitalnz/selwynui 0.0.1-34 → 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.
Files changed (24) hide show
  1. package/dist/Components/DataDisplay/KPIBlock/KPIBlockProps.d.ts +3 -2
  2. package/dist/Components/DataDisplay/ListBlock/ListBlock.d.ts +3 -0
  3. package/dist/Components/DataDisplay/{Pathway/PathwayProps.d.ts → ListBlock/ListBlockProps.d.ts} +4 -3
  4. package/dist/Components/DataDisplay/index.d.ts +4 -2
  5. package/dist/index.cjs.js +13 -13
  6. package/dist/index.cjs.js.map +1 -1
  7. package/dist/index.es.js +1174 -1157
  8. package/dist/index.es.js.map +1 -1
  9. package/dist/selwynui.css +1 -1
  10. package/package.json +1 -1
  11. package/src/Components/DataDisplay/DetailsCard/DetailsCard.tsx +3 -3
  12. package/src/Components/DataDisplay/DetailsCard/detailsCard.module.scss +1 -0
  13. package/src/Components/DataDisplay/KPIBlock/KPIBlock.stories.tsx +1 -2
  14. package/src/Components/DataDisplay/KPIBlock/KPIBlock.tsx +20 -7
  15. package/src/Components/DataDisplay/KPIBlock/KPIBlockProps.tsx +4 -2
  16. package/src/Components/DataDisplay/KPIBlock/kpiBlock.module.scss +12 -11
  17. package/src/Components/DataDisplay/{Pathway/Pathway.stories.tsx → ListBlock/ListBlock.stories.tsx} +17 -14
  18. package/src/Components/DataDisplay/{Pathway/Pathway.tsx → ListBlock/ListBlock.tsx} +35 -35
  19. package/src/Components/DataDisplay/{Pathway/PathwayProps.tsx → ListBlock/ListBlockProps.tsx} +6 -4
  20. package/src/Components/DataDisplay/{Pathway/pathway.module.scss → ListBlock/listBlock.module.scss} +28 -6
  21. package/src/Components/DataDisplay/ListingDetailBlock/ListingDetailBlock.tsx +10 -10
  22. package/src/Components/DataDisplay/index.ts +7 -3
  23. package/src/Components/Shared/ElementHolder/elementHolder.module.scss +1 -1
  24. package/dist/Components/DataDisplay/Pathway/Pathway.d.ts +0 -3
@@ -1,11 +1,12 @@
1
+ import { ElementHolderProps } from '../../Shared';
1
2
  interface KPIItem {
2
3
  value: string;
3
4
  description: string;
4
5
  }
5
- interface KPIBlockProps {
6
+ interface KPIBlockProps extends ElementHolderProps {
6
7
  title?: string;
7
8
  description?: string;
8
9
  stats?: KPIItem[];
9
- pillar?: 'visit' | 'live' | 'business' | 'participate' | 'taste' | 'main';
10
+ pillar: 'main' | 'visit' | 'live' | 'business' | 'participate' | 'taste';
10
11
  }
11
12
  export default KPIBlockProps;
@@ -0,0 +1,3 @@
1
+ import { default as ListBlockProps } from './ListBlockProps.tsx';
2
+ declare const ListBlock: (props: ListBlockProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default ListBlock;
@@ -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 PathwayProps {
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 PathwayProps;
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 './Pathway/Pathway';
22
- export type { default as PathwayProps } from './Pathway/PathwayProps';
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';