@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hellobetterdigitalnz/selwynui",
3
- "version": "0.0.1-39",
3
+ "version": "0.0.1-40",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.es.js",
@@ -118,9 +118,8 @@ export const ChatItineraryBlockComponent: Story = {
118
118
  };
119
119
 
120
120
  return (
121
- <ElementHolder pillar={'visit'} level={'primary'}>
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} ${pillar}`}>
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} ${pillar}`}>
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,
@@ -24,7 +24,6 @@ const PathwayBlockTemplate: Story = {
24
24
  <ElementHolder paddingTop="sm" paddingBottom="sm" pillar="participate" level="light">
25
25
  <PathwayBlock
26
26
  title="Lorem ipsum"
27
- pillar="visit"
28
27
  cards={[
29
28
  {
30
29
  title: "Lorem ipsum",
@@ -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} ${pillar ? `${pillar}` : ""}`}>
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
- category?: "all" | "adventure" | "ski" | "nature" ;
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;