@rileybathurst/paddle 1.0.5 → 1.0.7

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.5",
4
+ "version": "1.0.7",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",
@@ -278,8 +278,11 @@ const Content = ({
278
278
  <>
279
279
  <div className="svg" dangerouslySetInnerHTML={{ __html: svg }} />
280
280
 
281
- <h3 className="elbrus">{name}</h3>
282
281
  <div>
282
+ <div className="multi_button">
283
+ <h3 className="elbrus">{name}</h3>
284
+ </div>
285
+
283
286
  {streetAddress ||
284
287
  addressLocality ||
285
288
  addressRegion ||
@@ -0,0 +1,66 @@
1
+ import * as React from "react"
2
+ // import { PaddleTime } from "./PaddleTime"
3
+
4
+ type PaddleMoonlightTourDatesTimesTypes = {
5
+ seasonStart: string
6
+ seasonEnd: string
7
+ nodes: {
8
+ id: string;
9
+ date: string;
10
+ start: string;
11
+ finish: string;
12
+ }[];
13
+ }
14
+ export const PaddleMoonlightTourDatesTimes = ({ seasonStart, seasonEnd, nodes }: PaddleMoonlightTourDatesTimesTypes) => {
15
+ const currentDate = new Date();
16
+ if (currentDate > new Date(seasonEnd)) {
17
+
18
+ // console.log('its past the end of the season');
19
+ const futureTours = nodes.filter(tour => new Date(tour.date) >= currentDate);
20
+ // console.log(futureTours);
21
+
22
+ if (futureTours.length > 0) {
23
+ return (
24
+ <>
25
+ <h3>Next season tours</h3>
26
+ {futureTours.map((tour) => (
27
+ <p key={tour.id}>
28
+ {new Date(tour.date).toLocaleDateString('en-US', {
29
+ timeZone: 'UTC',
30
+ weekday: 'long',
31
+ year: 'numeric',
32
+ month: 'long',
33
+ day: 'numeric'
34
+ })}&nbsp;-&nbsp;
35
+ {/* <PaddleTime start={tour.start} finish={tour.finish} /> */}
36
+ tour.start - tour.finish
37
+ </p>
38
+ ))}
39
+ </>
40
+ )
41
+ }
42
+ }
43
+
44
+ return (
45
+ <div>
46
+ <h3>Moonlight Tour Dates</h3>
47
+ <ul>
48
+ {nodes.map((tour) =>
49
+ <li key={tour.id}>
50
+ {/* // TODO: superfluous to have an element that could just be a class */}
51
+ <h4>
52
+ {new Date(tour.date).toLocaleDateString('en-US', {
53
+ weekday: 'long',
54
+ year: 'numeric',
55
+ month: 'long',
56
+ day: 'numeric'
57
+ })}&nbsp;-&nbsp;
58
+ {/* <PaddleTime start={tour.start} finish={tour.finish} /></h4> */}
59
+ tour.start - tour.finish
60
+ </h4>
61
+ </li>
62
+ )}
63
+ </ul>
64
+ </div>
65
+ )
66
+ }
package/src/index.tsx CHANGED
@@ -18,6 +18,7 @@ export * from "./PaddleTestimonial";
18
18
  export * from "./PaddleLocationDeck";
19
19
  export * from "./PaddleTestimonials";
20
20
  export * from "./PaddleBrandList";
21
+ export * from "./PaddleMoonlightTourDatesTimes"
21
22
 
22
23
  // Templates
23
24
 
@@ -202,7 +202,6 @@ hgroup {
202
202
  select {
203
203
  font-size: var(--vinson);
204
204
  font-family: var(--body_font);
205
- margin-block-end: var(--elbrus);
206
205
  margin-block-end: 0;
207
206
  /* A reset of styles, including removing the default dropdown arrow */
208
207
  appearance: none;
@@ -227,3 +226,14 @@ select {
227
226
  white-space: collapse;
228
227
  }
229
228
  }
229
+
230
+ /*------------------*/
231
+ /* #DEL */
232
+ /*------------------*/
233
+
234
+ del {
235
+ color: hsl(var(--sand__base), var(--dim));
236
+ @media (prefers-color-scheme: dark) {
237
+ color: hsl(var(--sand__base), var(--dark));
238
+ }
239
+ }