ublo-lib 1.26.11 → 1.26.13

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.
@@ -253,7 +253,7 @@
253
253
  "unavailable": "Indispo"
254
254
  },
255
255
  "print": {
256
- "label": "Imprimer",
256
+ "label": "Télécharger",
257
257
  "weather": "Météo et neige",
258
258
  "trails": "Infos pistes",
259
259
  "bulletin": "Bulletin",
@@ -40,6 +40,7 @@ export default function Lumiplan() {
40
40
  const [currentResortId, setCurrentResortId] = React.useState(lumiplanResorts[0].id);
41
41
  const currentResort = lumiplanResorts.find(resort => resort.id === currentResortId);
42
42
  const showOpening = Boolean(currentResort.showOpening);
43
+ const disablePrint = Boolean(currentResort.disablePrint);
43
44
  const [resortOpening, setResortOpening] = React.useState();
44
45
  const [weather, setWeather] = React.useState();
45
46
  const [resortAccess, setResortAccess] = React.useState();
@@ -159,7 +160,7 @@ export default function Lumiplan() {
159
160
  resorts: lumiplanResorts,
160
161
  currentResortId: currentResortId,
161
162
  setCurrentResortId: setCurrentResortId
162
- }), _jsx(Toolbar, {
163
+ }), !disablePrint && _jsx(Toolbar, {
163
164
  setMode: setMode,
164
165
  fetchAllData: fetchAllData
165
166
  }), _jsx(TodaysTips, {
@@ -11,12 +11,15 @@
11
11
  }
12
12
  }
13
13
 
14
- .wrapper button {
14
+ .wrapper button,
15
+ .wrapper button:hover {
15
16
  font-size: 12px;
17
+ color: hsl(var(--primary));
16
18
  }
17
19
 
18
20
  @media (min-width: 780px) {
19
- .wrapper button {
21
+ .wrapper button,
22
+ .wrapper button:hover {
20
23
  font-size: 14px;
21
24
  }
22
25
  }
@@ -77,3 +77,9 @@ button.selected {
77
77
 
78
78
  background: var(--blue-gradient);
79
79
  }
80
+
81
+ @media print {
82
+ .selector {
83
+ display: none;
84
+ }
85
+ }
@@ -13,7 +13,7 @@ export default function Toolbar({
13
13
  className: styles.toolbar,
14
14
  children: _jsxs("div", {
15
15
  className: styles.inner,
16
- children: [_jsx(Icons.Printer, {
16
+ children: [_jsx(Icons.Download, {
17
17
  className: styles.icon
18
18
  }), _jsx(T, {
19
19
  id: "print.label"
@@ -20,6 +20,7 @@
20
20
  max-width: 1200px;
21
21
  margin: 0 auto;
22
22
  font-size: 14px;
23
+ color: hsl(var(--primary));
23
24
  }
24
25
 
25
26
  @media (min-width: 768px) {
@@ -30,6 +31,7 @@
30
31
 
31
32
  .icon {
32
33
  flex: 0 0 16px;
34
+ fill: currentColor;
33
35
  }
34
36
 
35
37
  @media print {
@@ -66,6 +66,10 @@
66
66
  display: none;
67
67
  }
68
68
 
69
+ .info {
70
+ break-inside: avoid;
71
+ }
72
+
69
73
  .infoBottom {
70
74
  flex-direction: row;
71
75
  align-items: flex-start;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.26.11",
3
+ "version": "1.26.13",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.8.3",
6
6
  "leaflet": "^1.9.1",