@hellobetterdigitalnz/selwynui 0.0.1-39 → 0.0.1-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.
- package/dist/Components/DataDisplay/PathwayBlock/PathwayBlockProps.d.ts +1 -3
- package/dist/index.cjs.js +7 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +792 -795
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/Components/DataDisplay/ChatItenaryBlock/ChatItenaryBlock.stories.tsx +1 -2
- package/src/Components/DataDisplay/ChatItenaryBlock/ChatItenaryBlock.tsx +2 -4
- package/src/Components/DataDisplay/PathwayBlock/PathwayBlock.stories.tsx +0 -1
- package/src/Components/DataDisplay/PathwayBlock/PathwayBlock.tsx +1 -2
- package/src/Components/DataDisplay/PathwayBlock/PathwayBlockProps.tsx +1 -3
package/package.json
CHANGED
|
@@ -118,9 +118,8 @@ export const ChatItineraryBlockComponent: Story = {
|
|
|
118
118
|
};
|
|
119
119
|
|
|
120
120
|
return (
|
|
121
|
-
<ElementHolder pillar={'
|
|
121
|
+
<ElementHolder pillar={'business'} level={'primary'}>
|
|
122
122
|
<ChatItineraryBlock
|
|
123
|
-
pillar="visit"
|
|
124
123
|
onPlanTrip={handlePlanTrip}
|
|
125
124
|
/>
|
|
126
125
|
</ElementHolder>
|
|
@@ -13,7 +13,6 @@ import LargeHeroIcon from "../../Layout/HeroBanner/LargeHeroIcon.tsx";
|
|
|
13
13
|
|
|
14
14
|
const ChatItineraryBlock = (props: ChatItineraryBlockProps) => {
|
|
15
15
|
const {
|
|
16
|
-
pillar = 'visit',
|
|
17
16
|
onPlanTrip,
|
|
18
17
|
initialItinerary
|
|
19
18
|
} = props;
|
|
@@ -62,7 +61,7 @@ const ChatItineraryBlock = (props: ChatItineraryBlockProps) => {
|
|
|
62
61
|
</HeaderRight>
|
|
63
62
|
</Header>
|
|
64
63
|
|
|
65
|
-
<div className={`${styles.chatItineraryBlock} ${styles.hero}
|
|
64
|
+
<div className={`${styles.chatItineraryBlock} ${styles.hero}`}>
|
|
66
65
|
<div style={{backgroundImage: `url('https://images.pexels.com/photos/1563356/pexels-photo-1563356.jpeg')`}} className={styles.heroBackground}></div>
|
|
67
66
|
<Container>
|
|
68
67
|
<div className={styles.heroContent}>
|
|
@@ -123,7 +122,7 @@ const ChatItineraryBlock = (props: ChatItineraryBlockProps) => {
|
|
|
123
122
|
</HeaderRightItem>
|
|
124
123
|
</HeaderRight>
|
|
125
124
|
</Header>
|
|
126
|
-
<div className={`${styles.chatItineraryBlock} ${styles.itinerary}
|
|
125
|
+
<div className={`${styles.chatItineraryBlock} ${styles.itinerary} `}>
|
|
127
126
|
<Container>
|
|
128
127
|
<div className={styles.itineraryWrapper}>
|
|
129
128
|
<h2 className={styles.itineraryTitle}>{itinerary?.title}</h2>
|
|
@@ -177,7 +176,6 @@ const ChatItineraryBlock = (props: ChatItineraryBlockProps) => {
|
|
|
177
176
|
</div>
|
|
178
177
|
|
|
179
178
|
<PathwayBlock
|
|
180
|
-
pillar={pillar}
|
|
181
179
|
cards={day.activities.map((activity) => ({
|
|
182
180
|
date: activity.date || "",
|
|
183
181
|
title: activity.title,
|
|
@@ -7,11 +7,10 @@ const PathwayBlock = (props: PathwayBlockProps) => {
|
|
|
7
7
|
const {
|
|
8
8
|
title = '',
|
|
9
9
|
cards = [],
|
|
10
|
-
pillar = ''
|
|
11
10
|
} = props;
|
|
12
11
|
|
|
13
12
|
return (
|
|
14
|
-
<div className={`${styles.pathwayBlock}
|
|
13
|
+
<div className={`${styles.pathwayBlock}`}>
|
|
15
14
|
<Container>
|
|
16
15
|
<div className={styles.pathwayBlockWrapper}>
|
|
17
16
|
{title &&<h1 className={styles.header}>{title}</h1>}
|
|
@@ -9,14 +9,12 @@ export interface PathwayCard {
|
|
|
9
9
|
target?: "_blank" | "_self" | "_parent" | "_top"
|
|
10
10
|
rel?: string
|
|
11
11
|
} | undefined;
|
|
12
|
-
|
|
13
|
-
variation: 'long' | 'short';
|
|
12
|
+
pillar?: 'visit' | 'live' | 'business' | 'participate' | 'taste'
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
interface PathwayBlockProps {
|
|
17
16
|
title?: string;
|
|
18
17
|
cards?: PathwayCard[];
|
|
19
|
-
pillar?: 'visit' | 'live' | 'business' | 'participate' | 'taste' | 'main';
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
export default PathwayBlockProps;
|