@rileybathurst/paddle 1.0.13 → 1.0.15

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.13",
4
+ "version": "1.0.15",
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,23 +144,24 @@ const PhoneContent = ({
141
144
  season_end,
142
145
  offSeasonDetails,
143
146
  phoneNumber,
147
+ weatherPermitting
144
148
  }: ContentTypes) => {
145
149
  return (
146
150
  <>
147
151
  {link?.includes("http") ? (
148
152
  <a
149
153
  href={link}
150
- className="location"
154
+ className="svg"
151
155
  target="_blank"
152
156
  rel="noopener noreferrer"
153
157
  title={name}
154
158
  >
155
- <div className="svg" dangerouslySetInnerHTML={{ __html: svg }} />
159
+ <div dangerouslySetInnerHTML={{ __html: svg }} />
156
160
  </a>
157
161
  ) : (
158
162
  link && (
159
- <Link to={link} className="location">
160
- <div className="svg" dangerouslySetInnerHTML={{ __html: svg }} />
163
+ <Link to={link} className="svg">
164
+ <div dangerouslySetInnerHTML={{ __html: svg }} />
161
165
  </Link>
162
166
  )
163
167
  )}
@@ -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">
@@ -315,6 +322,7 @@ export const PaddleLocationCard = ({
315
322
  phone,
316
323
  phoneNumber,
317
324
  offSeasonDetails,
325
+ weatherPermitting
318
326
  }: PaddleLocationCardTypes) => {
319
327
 
320
328
  const phoneDidgits = Number(phoneNumber);
@@ -339,6 +347,7 @@ export const PaddleLocationCard = ({
339
347
  season_end={season_end}
340
348
  offSeasonDetails={offSeasonDetails}
341
349
  phoneNumber={phoneDidgits}
350
+ weatherPermitting={weatherPermitting}
342
351
  />
343
352
  </div>
344
353
  );
@@ -368,6 +377,7 @@ export const PaddleLocationCard = ({
368
377
  season_start={season_start}
369
378
  season_end={season_end}
370
379
  offSeasonDetails={offSeasonDetails}
380
+ weatherPermitting={weatherPermitting}
371
381
  />
372
382
  </a>
373
383
  );
@@ -389,6 +399,7 @@ export const PaddleLocationCard = ({
389
399
  season_start={season_start}
390
400
  season_end={season_end}
391
401
  offSeasonDetails={offSeasonDetails}
402
+ weatherPermitting={weatherPermitting}
392
403
  />
393
404
  </Link>
394
405
  );
@@ -233,6 +233,13 @@ menu button {
233
233
  justify-content: center;
234
234
  }
235
235
 
236
+ .location_multi-link {
237
+ display: flex;
238
+ justify-content: space-between;
239
+ gap: var(--denali);
240
+ width: 100%;
241
+ }
242
+
236
243
  /*------------------------------------*/
237
244
 
238
245
  footer .book-now {
@@ -83,6 +83,15 @@ body .south-tahoe {
83
83
  /* #SPECS */
84
84
  /*------------------------------------*/
85
85
 
86
- .specs h2, .specs .spec__unit {
86
+ .specs h2,
87
+ .specs .spec__unit {
87
88
  color: grey;
88
- }
89
+ }
90
+
91
+ .menu__large hr {
92
+ border-color: var(--neutral-300);
93
+
94
+ @media (prefers-color-scheme: dark) {
95
+ border-color: var(--neutral-600);
96
+ }
97
+ }
@@ -339,16 +339,24 @@ header {
339
339
  margin-block-end: var(--kilimanjaro);
340
340
  }
341
341
 
342
+ .location:not(:last-child) {
343
+ border-block-end: 1px solid var(--neutral-400);
344
+ margin-block-end: var(--kosciuszko);
345
+ }
346
+
342
347
  .location {
343
348
  display: flex;
344
- flex-flow: row wrap;
349
+ flex-flow: row;
345
350
  align-items: center;
346
351
  gap: clamp(var(--kosciuszko), 1.67vw, var(--elbrus));
347
352
  border-radius: var(--card-radius);
348
353
 
349
- > a {
350
- display: flex;
351
- }
354
+ /* TODO: this is breaking with a phone and pushing too much location */
355
+ /* > * {
356
+ flex: 3rem 1;
357
+ width: 100%;
358
+ height: fit-content;
359
+ } */
352
360
 
353
361
  > svg,
354
362
  .svg {
@@ -356,6 +364,10 @@ header {
356
364
  min-height: var(--everest);
357
365
  }
358
366
 
367
+ > div {
368
+ width: 100%;
369
+ }
370
+
359
371
  /* p {
360
372
  margin-block-end: 0; reset to the gap
361
373
  } */
@@ -365,6 +377,8 @@ header {
365
377
  }
366
378
  }
367
379
 
380
+ .location:not(:last-child)
381
+
368
382
  /*------------------*/
369
383
  /* #COMPOSITION */
370
384
  /*------------------*/
@@ -34,4 +34,5 @@ export interface PaddleLocationCardTypes {
34
34
 
35
35
  offSeasonDetails?: string;
36
36
  phone?: boolean;
37
+ weatherPermitting?: boolean;
37
38
  }