@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 +1 -1
- package/src/index.tsx +2 -0
- package/src/paddle-format-phone-number.tsx +3 -2
- package/src/paddle-moonlight-tour-dates-times.tsx +1 -1
- package/src/paddle-pricing-chart.tsx +1 -3
- package/src/paddle-purchase.tsx +1 -1
- package/src/paddle-sunset-tour-times.tsx +1 -1
- package/src/paddle-texture-backgrounds.tsx +0 -1
- package/src/types/paddle-brand-types.ts +1 -1
- package/src/types/paddle-purchase-types.ts +1 -1
- package/src/types/paddle-testimonial-types.ts +1 -1
package/package.json
CHANGED
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
|
|
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
|
|
7
|
+
return <>({match[1]}) {match[2]}-{match[3]}</>;
|
|
8
8
|
}
|
|
9
|
+
console.warn(`Invalid phone number format: ${phoneNumberString}`);
|
|
9
10
|
return null;
|
|
10
11
|
}
|
|
@@ -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
|
}
|
package/src/paddle-purchase.tsx
CHANGED