@rileybathurst/paddle 1.0.12 → 1.0.14

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.0.12",
4
+ "version": "1.0.14",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -18,7 +18,7 @@ type PlaceTypes = {
18
18
  const Place = ({ commonName, streetAddress, addressLocality, addressRegion, postalCode }: PlaceTypes) => {
19
19
  return (
20
20
  <address>
21
- {commonName ? (<>{commonName},&nbsp;</>) : null},&nbsp;
21
+ {commonName ? (<>{commonName},&nbsp;</>) : null}
22
22
  {streetAddress ? (<>{streetAddress},&nbsp;</>) : null}
23
23
  {addressLocality ? (<>{addressLocality},&nbsp;</>) : null}
24
24
  {addressRegion ? (<>{addressRegion},&nbsp;</>) : null}
@@ -35,6 +35,7 @@ interface SeasonTypes {
35
35
  closing_time: string;
36
36
  name: string;
37
37
  offSeasonDetails?: string;
38
+ weatherPermitting?: boolean;
38
39
  }
39
40
  const Season = ({
40
41
  name,
@@ -43,6 +44,7 @@ const Season = ({
43
44
  opening_time,
44
45
  closing_time,
45
46
  offSeasonDetails,
47
+ weatherPermitting
46
48
  }: SeasonTypes) => {
47
49
  // TODO: these need a query but thats not the most important first step
48
50
  if (
@@ -65,7 +67,7 @@ const Season = ({
65
67
  {opening_time && closing_time ? (
66
68
  <><HourMin time={opening_time} /> - <HourMin time={closing_time} />&nbsp;</>
67
69
  ) : null}
68
- Weather Permitting
70
+ {weatherPermitting ? "Weather Permitting" : null}
69
71
  </p>
70
72
  );
71
73
  }
@@ -118,6 +120,7 @@ interface ContentTypes {
118
120
 
119
121
  offSeasonDetails?: string;
120
122
  phoneNumber?: number;
123
+ weatherPermitting?: boolean;
121
124
 
122
125
  streetAddress?: string;
123
126
  addressLocality?: string;
@@ -141,6 +144,7 @@ const PhoneContent = ({
141
144
  season_end,
142
145
  offSeasonDetails,
143
146
  phoneNumber,
147
+ weatherPermitting
144
148
  }: ContentTypes) => {
145
149
  return (
146
150
  <>
@@ -229,6 +233,7 @@ const PhoneContent = ({
229
233
  closing_time={closing_time}
230
234
  name={name}
231
235
  offSeasonDetails={offSeasonDetails}
236
+ weatherPermitting={weatherPermitting}
232
237
  />
233
238
  ) : (
234
239
  <div className="react-markdown">
@@ -251,6 +256,7 @@ const Content = ({
251
256
  addressRegion,
252
257
  postalCode,
253
258
  commonName,
259
+ weatherPermitting,
254
260
  season_start,
255
261
  season_end,
256
262
  offSeasonDetails,
@@ -286,6 +292,7 @@ const Content = ({
286
292
  closing_time={closing_time}
287
293
  name={name}
288
294
  offSeasonDetails={offSeasonDetails}
295
+ weatherPermitting={weatherPermitting}
289
296
  />
290
297
  ) : (
291
298
  <div className="react-markdown">
@@ -313,9 +320,12 @@ export const PaddleLocationCard = ({
313
320
  season_start,
314
321
  season_end,
315
322
  phone,
323
+ phoneNumber,
316
324
  offSeasonDetails,
325
+ weatherPermitting
317
326
  }: PaddleLocationCardTypes) => {
318
- const phoneNumber = Number(phone);
327
+
328
+ const phoneDidgits = Number(phoneNumber);
319
329
 
320
330
  if (phone) {
321
331
  return (
@@ -336,7 +346,8 @@ export const PaddleLocationCard = ({
336
346
  season_start={season_start}
337
347
  season_end={season_end}
338
348
  offSeasonDetails={offSeasonDetails}
339
- phoneNumber={phoneNumber}
349
+ phoneNumber={phoneDidgits}
350
+ weatherPermitting={weatherPermitting}
340
351
  />
341
352
  </div>
342
353
  );
@@ -366,6 +377,7 @@ export const PaddleLocationCard = ({
366
377
  season_start={season_start}
367
378
  season_end={season_end}
368
379
  offSeasonDetails={offSeasonDetails}
380
+ weatherPermitting={weatherPermitting}
369
381
  />
370
382
  </a>
371
383
  );
@@ -387,6 +399,7 @@ export const PaddleLocationCard = ({
387
399
  season_start={season_start}
388
400
  season_end={season_end}
389
401
  offSeasonDetails={offSeasonDetails}
402
+ weatherPermitting={weatherPermitting}
390
403
  />
391
404
  </Link>
392
405
  );
@@ -346,6 +346,10 @@ header {
346
346
  gap: clamp(var(--kosciuszko), 1.67vw, var(--elbrus));
347
347
  border-radius: var(--card-radius);
348
348
 
349
+ > a {
350
+ display: flex;
351
+ }
352
+
349
353
  > svg,
350
354
  .svg {
351
355
  min-width: var(--everest);
@@ -34,4 +34,5 @@ export interface PaddleLocationCardTypes {
34
34
 
35
35
  offSeasonDetails?: string;
36
36
  phone?: boolean;
37
+ weatherPermitting?: boolean;
37
38
  }