@rileybathurst/paddle 1.3.0 → 1.3.1

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@rileybathurst/paddle",
3
3
  "private": false,
4
- "version": "1.3.0",
4
+ "version": "1.3.1",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
package/src/index.tsx CHANGED
@@ -15,6 +15,8 @@ export * from "./paddle-top-bar";
15
15
  export * from "./paddle-specs";
16
16
  export * from "./paddle-testimonial";
17
17
  export * from "./paddle-purchase";
18
+ export * from "./paddle-pricing-chart";
19
+ export * from "./paddle-texture-backgrounds";
18
20
 
19
21
  // Organisms
20
22
  export * from "./paddle-location-deck";
@@ -1,10 +1,11 @@
1
1
  import React from "react";
2
2
 
3
- export const FormatPhoneNumber = ({ phoneNumberString }: { phoneNumberString: number }) => {
3
+ export const PaddleFormatPhoneNumber = ({ phoneNumberString }: { phoneNumberString: number }) => {
4
4
  const cleaned = (`${phoneNumberString}`).replace(/\D/g, '');
5
5
  const match = cleaned.match(/^(\d{3})(\d{3})(\d{4})$/);
6
6
  if (match) {
7
- return `(${match[1]}) ${match[2]}-${match[3]}`;
7
+ return <>({match[1]}) {match[2]}-{match[3]}</>;
8
8
  }
9
+ console.warn(`Invalid phone number format: ${phoneNumberString}`);
9
10
  return null;
10
11
  }
@@ -5,7 +5,7 @@ type PaddleMoonlightTourDatesTimesTypes = {
5
5
  seasonStart: string
6
6
  seasonEnd: string
7
7
  nodes: {
8
- id: string;
8
+ id: React.Key;
9
9
  date: string;
10
10
  start: string;
11
11
  finish: string;
@@ -1,6 +1,6 @@
1
1
  import * as React from "react"
2
2
  import SVG from 'react-inlinesvg';
3
- import PaddleBookNow from "./paddle-book-now"
3
+ import { PaddleBookNow } from "./paddle-book-now"
4
4
  import { Link } from "gatsby"
5
5
  import type { paddlePricingChartTypes } from "./types/paddle-pricing-chart-types";
6
6
 
@@ -17,7 +17,6 @@ const LineBreaker = ({ text }: { text: string; }) => {
17
17
  }
18
18
 
19
19
  export const PaddlePricingChart = ({ rentalRates, rentalAddons, book, peek_base, strapiLocaleName }: paddlePricingChartTypes) => {
20
-
21
20
  return (
22
21
  <>
23
22
  <div className="charts">
@@ -61,6 +60,5 @@ export const PaddlePricingChart = ({ rentalRates, rentalAddons, book, peek_base,
61
60
  />
62
61
  ) : null}
63
62
  </>
64
-
65
63
  )
66
64
  }
@@ -44,7 +44,7 @@ const Badges = ({ inflatable, demo, discount }: BadgeTypes) => {
44
44
  }
45
45
 
46
46
  type purchaseTypes = {
47
- id: string;
47
+ id: React.Key;
48
48
  title: string;
49
49
  slug: string;
50
50
  excerpt: string;
@@ -2,7 +2,7 @@ import * as React from "react"
2
2
 
3
3
  type PaddleSunsetTourTimesTypes = {
4
4
  nodes: {
5
- id: string;
5
+ id: React.Key;
6
6
  startDate: string;
7
7
  endDate: string;
8
8
  startTime: string;
@@ -11,7 +11,6 @@ type textureTypes = {
11
11
  topThree: { image: PaddleGatsbyImageType };
12
12
  };
13
13
  export const PaddleTextureBackgrounds = ({ baseOne, baseTwo, baseThree, topOne, topTwo, topThree }: textureTypes) => {
14
-
15
14
  const baseTextures = [
16
15
  baseOne,
17
16
  baseTwo,
@@ -1,5 +1,5 @@
1
1
  export type PaddleBrandType = {
2
- id: string;
2
+ id: React.Key;
3
3
  slug: string;
4
4
  svg: string;
5
5
  name: string;
@@ -1,7 +1,7 @@
1
1
  import type { PaddleGatsbyImageType } from "./paddle-gatsby-image-type";
2
2
 
3
3
  export type PaddlePurchaseTypes = {
4
- id: string;
4
+ id: React.Key;
5
5
  title: string;
6
6
  slug: string;
7
7
  excerpt: string;
@@ -1,5 +1,5 @@
1
1
  export type PaddleTestimonialTypes = {
2
- id: string;
2
+ id: React.Key;
3
3
  testimonial: string;
4
4
  sign: string;
5
5
  customer: string;