@rileybathurst/paddle 1.0.7 → 1.0.9
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 +2 -2
- package/src/PaddleLocationCard.tsx +7 -32
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rileybathurst/paddle",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.9",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"dev": "vite",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"description": "building blocks",
|
|
47
47
|
"main": "src/index.tsx",
|
|
48
48
|
"module": "src/index.tsx",
|
|
49
|
-
"author": "",
|
|
49
|
+
"author": "Riley Bathurst <riley@rileybathurst.com> (http://rileybathurst.com/)",
|
|
50
50
|
"license": "ISC",
|
|
51
51
|
"files": [
|
|
52
52
|
"src/*",
|
|
@@ -18,26 +18,11 @@ type PlaceTypes = {
|
|
|
18
18
|
const Place = ({ commonName, streetAddress, addressLocality, addressRegion, postalCode }: PlaceTypes) => {
|
|
19
19
|
return (
|
|
20
20
|
<address>
|
|
21
|
-
{commonName ? (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
) : null}
|
|
27
|
-
{streetAddress ? (
|
|
28
|
-
<span>
|
|
29
|
-
{streetAddress}
|
|
30
|
-
<br />
|
|
31
|
-
</span>
|
|
32
|
-
) : null}
|
|
33
|
-
{addressLocality ? <span>{addressLocality}, </span> : null}
|
|
34
|
-
{addressRegion ? <span>{addressRegion} </span> : null}
|
|
35
|
-
{postalCode ? (
|
|
36
|
-
<span>
|
|
37
|
-
{postalCode}
|
|
38
|
-
<br />
|
|
39
|
-
</span>
|
|
40
|
-
) : null}
|
|
21
|
+
{commonName ? (<>{commonName}, </>) : null},
|
|
22
|
+
{streetAddress ? (<>{streetAddress}, </>) : null}
|
|
23
|
+
{addressLocality ? (<>{addressLocality}, </>) : null}
|
|
24
|
+
{addressRegion ? (<>{addressRegion}, </>) : null}
|
|
25
|
+
{postalCode ? (<>{postalCode}, </>) : null}
|
|
41
26
|
</address>
|
|
42
27
|
)
|
|
43
28
|
}
|
|
@@ -77,13 +62,9 @@ const Season = ({
|
|
|
77
62
|
return (
|
|
78
63
|
<p>
|
|
79
64
|
{opening_time ? "Open Daily: " : null}
|
|
80
|
-
<br />
|
|
81
65
|
{opening_time && closing_time ? (
|
|
82
|
-
<
|
|
83
|
-
<HourMin time={opening_time} /> - <HourMin time={closing_time} />
|
|
84
|
-
</span>
|
|
66
|
+
<><HourMin time={opening_time} /> - <HourMin time={closing_time} /> </>
|
|
85
67
|
) : null}
|
|
86
|
-
<br />
|
|
87
68
|
Weather Permitting
|
|
88
69
|
</p>
|
|
89
70
|
);
|
|
@@ -95,13 +76,7 @@ const Season = ({
|
|
|
95
76
|
<p>We're closed for the season</p>
|
|
96
77
|
|
|
97
78
|
{currentDay < seasonStartDate ? (
|
|
98
|
-
<p>
|
|
99
|
-
We will reopen
|
|
100
|
-
<br />
|
|
101
|
-
{season_start}
|
|
102
|
-
<br />
|
|
103
|
-
Weather Permitting
|
|
104
|
-
</p>
|
|
79
|
+
<p>We will reopen {season_start}, Weather Permitting</p>
|
|
105
80
|
) : null}
|
|
106
81
|
|
|
107
82
|
{offSeasonDetails ? <p>{offSeasonDetails}</p> : null}
|