@rileybathurst/paddle 1.0.10 → 1.0.12
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
|
@@ -117,7 +117,7 @@ interface ContentTypes {
|
|
|
117
117
|
season_end?: string;
|
|
118
118
|
|
|
119
119
|
offSeasonDetails?: string;
|
|
120
|
-
|
|
120
|
+
phoneNumber?: number;
|
|
121
121
|
|
|
122
122
|
streetAddress?: string;
|
|
123
123
|
addressLocality?: string;
|
|
@@ -129,7 +129,6 @@ const PhoneContent = ({
|
|
|
129
129
|
link,
|
|
130
130
|
svg,
|
|
131
131
|
name,
|
|
132
|
-
address,
|
|
133
132
|
description,
|
|
134
133
|
opening_time,
|
|
135
134
|
closing_time,
|
|
@@ -141,7 +140,7 @@ const PhoneContent = ({
|
|
|
141
140
|
season_start,
|
|
142
141
|
season_end,
|
|
143
142
|
offSeasonDetails,
|
|
144
|
-
|
|
143
|
+
phoneNumber,
|
|
145
144
|
}: ContentTypes) => {
|
|
146
145
|
return (
|
|
147
146
|
<>
|
|
@@ -156,9 +155,11 @@ const PhoneContent = ({
|
|
|
156
155
|
<div className="svg" dangerouslySetInnerHTML={{ __html: svg }} />
|
|
157
156
|
</a>
|
|
158
157
|
) : (
|
|
159
|
-
|
|
160
|
-
<
|
|
161
|
-
|
|
158
|
+
link && (
|
|
159
|
+
<Link to={link} className="location">
|
|
160
|
+
<div className="svg" dangerouslySetInnerHTML={{ __html: svg }} />
|
|
161
|
+
</Link>
|
|
162
|
+
)
|
|
162
163
|
)}
|
|
163
164
|
|
|
164
165
|
<div>
|
|
@@ -173,11 +174,15 @@ const PhoneContent = ({
|
|
|
173
174
|
<h3>{name}</h3>
|
|
174
175
|
</a>
|
|
175
176
|
) : (
|
|
176
|
-
|
|
177
|
-
<
|
|
178
|
-
|
|
177
|
+
link && (
|
|
178
|
+
<Link to={link} title={name}>
|
|
179
|
+
<h3>{name}</h3>
|
|
180
|
+
</Link>
|
|
181
|
+
)
|
|
182
|
+
)}
|
|
183
|
+
{phoneNumber && (
|
|
184
|
+
<Phone phone={phoneNumber} />
|
|
179
185
|
)}
|
|
180
|
-
<Phone phone={phone} />
|
|
181
186
|
</div>
|
|
182
187
|
|
|
183
188
|
{streetAddress ||
|
|
@@ -202,15 +207,17 @@ const PhoneContent = ({
|
|
|
202
207
|
/>
|
|
203
208
|
</a>
|
|
204
209
|
) : (
|
|
205
|
-
|
|
206
|
-
<
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
210
|
+
link && (
|
|
211
|
+
<Link to={link} title={name}>
|
|
212
|
+
<Place
|
|
213
|
+
commonName={commonName}
|
|
214
|
+
streetAddress={streetAddress}
|
|
215
|
+
addressLocality={addressLocality}
|
|
216
|
+
addressRegion={addressRegion}
|
|
217
|
+
postalCode={postalCode}
|
|
218
|
+
/>
|
|
219
|
+
</Link>
|
|
220
|
+
)
|
|
214
221
|
)
|
|
215
222
|
) : null}
|
|
216
223
|
|
|
@@ -236,7 +243,6 @@ const PhoneContent = ({
|
|
|
236
243
|
const Content = ({
|
|
237
244
|
svg,
|
|
238
245
|
name,
|
|
239
|
-
address,
|
|
240
246
|
description,
|
|
241
247
|
opening_time,
|
|
242
248
|
closing_time,
|
|
@@ -330,7 +336,7 @@ export const PaddleLocationCard = ({
|
|
|
330
336
|
season_start={season_start}
|
|
331
337
|
season_end={season_end}
|
|
332
338
|
offSeasonDetails={offSeasonDetails}
|
|
333
|
-
|
|
339
|
+
phoneNumber={phoneNumber}
|
|
334
340
|
/>
|
|
335
341
|
</div>
|
|
336
342
|
);
|
|
@@ -13,19 +13,17 @@ export const PaddleLocationDeck = ({
|
|
|
13
13
|
nodes,
|
|
14
14
|
season_start,
|
|
15
15
|
season_end,
|
|
16
|
-
phone
|
|
17
|
-
background,
|
|
16
|
+
phone
|
|
18
17
|
}: LocationDeckTypes) => {
|
|
19
18
|
return (
|
|
20
19
|
<section className="location-deck">
|
|
21
20
|
{nodes.map((location: PaddleLocationCardTypes) => (
|
|
22
21
|
<PaddleLocationCard
|
|
23
22
|
key={location.id}
|
|
24
|
-
{...location}
|
|
25
|
-
background={background}
|
|
26
23
|
season_start={season_start}
|
|
27
24
|
season_end={season_end}
|
|
28
|
-
|
|
25
|
+
phoneNumber={phone}
|
|
26
|
+
{...location}
|
|
29
27
|
/>
|
|
30
28
|
))}
|
|
31
29
|
</section>
|
package/src/styles/layout.css
CHANGED
|
@@ -27,7 +27,6 @@ footer,
|
|
|
27
27
|
|
|
28
28
|
.vulture {
|
|
29
29
|
margin-inline: auto;
|
|
30
|
-
max-width: 100%;
|
|
31
30
|
max-width: min(var(--vulture), calc(100vw - var(--denali)));
|
|
32
31
|
flex-basis: var(--vulture);
|
|
33
32
|
}
|
|
@@ -346,12 +345,9 @@ header {
|
|
|
346
345
|
align-items: center;
|
|
347
346
|
gap: clamp(var(--kosciuszko), 1.67vw, var(--elbrus));
|
|
348
347
|
border-radius: var(--card-radius);
|
|
349
|
-
/* guess and check to get the parking on one row in the footer */
|
|
350
|
-
flex: 1 4;
|
|
351
348
|
|
|
352
349
|
> svg,
|
|
353
350
|
.svg {
|
|
354
|
-
flex: 1 1 max-content;
|
|
355
351
|
min-width: var(--everest);
|
|
356
352
|
min-height: var(--everest);
|
|
357
353
|
}
|
|
@@ -488,4 +484,4 @@ header {
|
|
|
488
484
|
|
|
489
485
|
.spec:last-child {
|
|
490
486
|
border-bottom: none;
|
|
491
|
-
}
|
|
487
|
+
}
|
package/src/styles/lists.css
CHANGED
|
@@ -7,8 +7,9 @@
|
|
|
7
7
|
/*------------------*/
|
|
8
8
|
|
|
9
9
|
ul {
|
|
10
|
-
padding-inline-start:
|
|
10
|
+
padding-inline-start: var(--kosciuszko);
|
|
11
11
|
margin: 0; /* reset */
|
|
12
|
+
list-style: none; /* reset */
|
|
12
13
|
|
|
13
14
|
li {
|
|
14
15
|
display: block;
|
|
@@ -17,7 +18,9 @@ ul {
|
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
ol {
|
|
21
|
+
list-style: none; /* reset */
|
|
20
22
|
margin-block-start: 0;
|
|
23
|
+
|
|
21
24
|
li {
|
|
22
25
|
display: inline flow-root list-item;
|
|
23
26
|
margin-block-end: var(--baseline);
|
package/src/styles/media.css
CHANGED