@canopy-iiif/app 1.3.6 → 1.4.0
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/lib/build/iiif.js +78 -4
- package/lib/build/mdx.js +123 -0
- package/lib/build/pages.js +18 -0
- package/lib/build/runtimes.js +1 -0
- package/lib/build/sitemap.js +62 -0
- package/lib/components/map-runtime.js +114 -0
- package/lib/components/nav-place.js +227 -0
- package/package.json +5 -3
- package/ui/dist/index.mjs +652 -0
- package/ui/dist/index.mjs.map +4 -4
- package/ui/dist/server.mjs +255 -49
- package/ui/dist/server.mjs.map +4 -4
- package/ui/styles/components/_map.scss +134 -0
- package/ui/styles/components/index.scss +1 -0
- package/ui/styles/index.css +116 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// Map styles reuse the global gray/brand scales so project themes can override tokens easily.
|
|
2
|
+
.canopy-map {
|
|
3
|
+
position: relative;
|
|
4
|
+
width: 100%;
|
|
5
|
+
min-height: 320px;
|
|
6
|
+
border-radius: 0.5rem;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
background-color: var(--color-gray-100);
|
|
9
|
+
|
|
10
|
+
.leaflet-control-attribution {
|
|
11
|
+
display: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.leaflet-container {
|
|
15
|
+
font-family: inherit;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&__canvas {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
min-height: inherit;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&__status {
|
|
25
|
+
position: absolute;
|
|
26
|
+
top: 0.75rem;
|
|
27
|
+
left: 0.75rem;
|
|
28
|
+
z-index: 2;
|
|
29
|
+
padding: 0.5rem 0.75rem;
|
|
30
|
+
border-radius: 999px;
|
|
31
|
+
background-color: rgba(15, 23, 42, 0.85);
|
|
32
|
+
color: var(--color-gray-50);
|
|
33
|
+
font-size: 0.875rem;
|
|
34
|
+
line-height: 1.25rem;
|
|
35
|
+
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__popup {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
gap: 0.5rem;
|
|
42
|
+
min-width: 220px;
|
|
43
|
+
|
|
44
|
+
&-media {
|
|
45
|
+
width: 100%;
|
|
46
|
+
border-radius: 0.25rem;
|
|
47
|
+
overflow: hidden;
|
|
48
|
+
|
|
49
|
+
img {
|
|
50
|
+
display: block;
|
|
51
|
+
width: 100%;
|
|
52
|
+
height: auto;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&-title {
|
|
57
|
+
display: block;
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
color: inherit;
|
|
60
|
+
font-size: 1rem;
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
margin: 0.38rem 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&-summary {
|
|
66
|
+
margin: 0 !important;
|
|
67
|
+
font-size: 0.9222rem;
|
|
68
|
+
line-height: 1.4;
|
|
69
|
+
color: var(--color-gray-700);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&-link {
|
|
73
|
+
display: inline-flex;
|
|
74
|
+
gap: 0.25rem;
|
|
75
|
+
align-items: center;
|
|
76
|
+
color: var(--color-accent-600);
|
|
77
|
+
font-weight: 600;
|
|
78
|
+
text-decoration: none;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
.leaflet-marker-icon#{&}__marker {
|
|
82
|
+
background: transparent;
|
|
83
|
+
border: none;
|
|
84
|
+
width: auto;
|
|
85
|
+
height: auto;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&__marker-thumb,
|
|
89
|
+
&__marker-solid {
|
|
90
|
+
width: 56px;
|
|
91
|
+
height: 56px;
|
|
92
|
+
border-radius: 999px;
|
|
93
|
+
border: 2px solid var(--color-gray-50);
|
|
94
|
+
box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
display: block;
|
|
97
|
+
background: var(--color-gray-900);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&__marker-thumb {
|
|
101
|
+
img {
|
|
102
|
+
display: block;
|
|
103
|
+
width: 100%;
|
|
104
|
+
height: 100%;
|
|
105
|
+
object-fit: cover;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&__marker-solid {
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
justify-content: center;
|
|
113
|
+
background: var(--color-accent-600);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
&__cluster-wrapper {
|
|
117
|
+
background: none;
|
|
118
|
+
border: none;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
&__cluster {
|
|
122
|
+
width: 56px;
|
|
123
|
+
height: 56px;
|
|
124
|
+
border-radius: 999px;
|
|
125
|
+
background: var(--color-accent-600);
|
|
126
|
+
color: var(--color-gray-50);
|
|
127
|
+
font-weight: 600;
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: center;
|
|
130
|
+
justify-content: center;
|
|
131
|
+
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
|
|
132
|
+
border: 2px solid var(--color-gray-50);
|
|
133
|
+
}
|
|
134
|
+
}
|
package/ui/styles/index.css
CHANGED
|
@@ -2458,6 +2458,122 @@ html.dark .canopy-iiif-image .clover-iiif-image-openseadragon .clover-iiif-image
|
|
|
2458
2458
|
padding: 1rem 0 0;
|
|
2459
2459
|
}
|
|
2460
2460
|
}
|
|
2461
|
+
.canopy-map {
|
|
2462
|
+
position: relative;
|
|
2463
|
+
width: 100%;
|
|
2464
|
+
min-height: 320px;
|
|
2465
|
+
border-radius: 0.5rem;
|
|
2466
|
+
overflow: hidden;
|
|
2467
|
+
background-color: var(--color-gray-100);
|
|
2468
|
+
}
|
|
2469
|
+
.canopy-map .leaflet-control-attribution {
|
|
2470
|
+
display: none;
|
|
2471
|
+
}
|
|
2472
|
+
.canopy-map .leaflet-container {
|
|
2473
|
+
font-family: inherit;
|
|
2474
|
+
}
|
|
2475
|
+
.canopy-map__canvas {
|
|
2476
|
+
width: 100%;
|
|
2477
|
+
height: 100%;
|
|
2478
|
+
min-height: inherit;
|
|
2479
|
+
}
|
|
2480
|
+
.canopy-map__status {
|
|
2481
|
+
position: absolute;
|
|
2482
|
+
top: 0.75rem;
|
|
2483
|
+
left: 0.75rem;
|
|
2484
|
+
z-index: 2;
|
|
2485
|
+
padding: 0.5rem 0.75rem;
|
|
2486
|
+
border-radius: 999px;
|
|
2487
|
+
background-color: rgba(15, 23, 42, 0.85);
|
|
2488
|
+
color: var(--color-gray-50);
|
|
2489
|
+
font-size: 0.875rem;
|
|
2490
|
+
line-height: 1.25rem;
|
|
2491
|
+
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.3);
|
|
2492
|
+
}
|
|
2493
|
+
.canopy-map__popup {
|
|
2494
|
+
display: flex;
|
|
2495
|
+
flex-direction: column;
|
|
2496
|
+
gap: 0.5rem;
|
|
2497
|
+
min-width: 220px;
|
|
2498
|
+
}
|
|
2499
|
+
.canopy-map__popup-media {
|
|
2500
|
+
width: 100%;
|
|
2501
|
+
border-radius: 0.25rem;
|
|
2502
|
+
overflow: hidden;
|
|
2503
|
+
}
|
|
2504
|
+
.canopy-map__popup-media img {
|
|
2505
|
+
display: block;
|
|
2506
|
+
width: 100%;
|
|
2507
|
+
height: auto;
|
|
2508
|
+
}
|
|
2509
|
+
.canopy-map__popup-title {
|
|
2510
|
+
display: block;
|
|
2511
|
+
text-decoration: none;
|
|
2512
|
+
color: inherit;
|
|
2513
|
+
font-size: 1rem;
|
|
2514
|
+
font-weight: 600;
|
|
2515
|
+
margin: 0.38rem 0;
|
|
2516
|
+
}
|
|
2517
|
+
.canopy-map__popup-summary {
|
|
2518
|
+
margin: 0 !important;
|
|
2519
|
+
font-size: 0.9222rem;
|
|
2520
|
+
line-height: 1.4;
|
|
2521
|
+
color: var(--color-gray-700);
|
|
2522
|
+
}
|
|
2523
|
+
.canopy-map__popup-link {
|
|
2524
|
+
display: inline-flex;
|
|
2525
|
+
gap: 0.25rem;
|
|
2526
|
+
align-items: center;
|
|
2527
|
+
color: var(--color-accent-600);
|
|
2528
|
+
font-weight: 600;
|
|
2529
|
+
text-decoration: none;
|
|
2530
|
+
}
|
|
2531
|
+
.canopy-map .leaflet-marker-icon.canopy-map__marker {
|
|
2532
|
+
background: transparent;
|
|
2533
|
+
border: none;
|
|
2534
|
+
width: auto;
|
|
2535
|
+
height: auto;
|
|
2536
|
+
}
|
|
2537
|
+
.canopy-map__marker-thumb, .canopy-map__marker-solid {
|
|
2538
|
+
width: 56px;
|
|
2539
|
+
height: 56px;
|
|
2540
|
+
border-radius: 999px;
|
|
2541
|
+
border: 2px solid var(--color-gray-50);
|
|
2542
|
+
box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
|
|
2543
|
+
overflow: hidden;
|
|
2544
|
+
display: block;
|
|
2545
|
+
background: var(--color-gray-900);
|
|
2546
|
+
}
|
|
2547
|
+
.canopy-map__marker-thumb img {
|
|
2548
|
+
display: block;
|
|
2549
|
+
width: 100%;
|
|
2550
|
+
height: 100%;
|
|
2551
|
+
object-fit: cover;
|
|
2552
|
+
}
|
|
2553
|
+
.canopy-map__marker-solid {
|
|
2554
|
+
display: flex;
|
|
2555
|
+
align-items: center;
|
|
2556
|
+
justify-content: center;
|
|
2557
|
+
background: var(--color-accent-600);
|
|
2558
|
+
}
|
|
2559
|
+
.canopy-map__cluster-wrapper {
|
|
2560
|
+
background: none;
|
|
2561
|
+
border: none;
|
|
2562
|
+
}
|
|
2563
|
+
.canopy-map__cluster {
|
|
2564
|
+
width: 56px;
|
|
2565
|
+
height: 56px;
|
|
2566
|
+
border-radius: 999px;
|
|
2567
|
+
background: var(--color-accent-600);
|
|
2568
|
+
color: var(--color-gray-50);
|
|
2569
|
+
font-weight: 600;
|
|
2570
|
+
display: flex;
|
|
2571
|
+
align-items: center;
|
|
2572
|
+
justify-content: center;
|
|
2573
|
+
box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
|
|
2574
|
+
border: 2px solid var(--color-gray-50);
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2461
2577
|
/**
|
|
2462
2578
|
* Define source files for utility classes
|
|
2463
2579
|
*/
|