ublo-lib 1.25.13 → 1.25.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.
@@ -1,10 +1,13 @@
1
1
  import * as React from "react";
2
+ import Link from "ublo/link";
2
3
  import { useUbloContext } from "ublo/with-ublo";
3
4
  import classNames from "classnames";
4
5
  import Loader from "dt-design-system/es/loader";
5
- import T, { t } from "./i18n/translations";
6
+ import Button from "dt-design-system/es/button";
7
+ import * as Icons from "dt-design-system/es/icons";
6
8
  import TelesiegeIcon from "./icons/lifts/telesiege";
7
9
  import SlopesIcon from "./icons/slopes";
10
+ import T, { t } from "./i18n/translations";
8
11
  import css from "./domain.module.css";
9
12
  import { jsx as _jsx } from "react/jsx-runtime";
10
13
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -12,8 +15,12 @@ const Domain = React.forwardRef(({
12
15
  domain
13
16
  }, ref) => {
14
17
  const {
15
- lang
18
+ lang,
19
+ config
16
20
  } = useUbloContext();
21
+ const {
22
+ slopeMapPath
23
+ } = config;
17
24
  if (domain === undefined) {
18
25
  return _jsx("div", {
19
26
  ref: ref,
@@ -98,6 +105,11 @@ const Domain = React.forwardRef(({
98
105
  })]
99
106
  }, key);
100
107
  })
108
+ }), _jsxs(Button, {
109
+ tag: Link,
110
+ className: css.mapButton,
111
+ href: slopeMapPath,
112
+ children: [_jsx(Icons.Map, {}), t(lang, "domain.map")]
101
113
  })]
102
114
  })
103
115
  });
@@ -109,3 +109,12 @@
109
109
  .slopeCount {
110
110
  font-size: 16px;
111
111
  }
112
+
113
+ .mapButton {
114
+ --ds-button-background: hsl(var(--secondary));
115
+ --ds-button-hover-background: hsl(var(--secondary));
116
+ }
117
+
118
+ .mapButton:is(:hover, :focus) {
119
+ opacity: 0.9;
120
+ }
@@ -49,7 +49,8 @@
49
49
  "BLUE": "Pistes bleues",
50
50
  "RED": "Pistes rouges",
51
51
  "BLACK": "Pistes noires"
52
- }
52
+ },
53
+ "map": "Afficher le plan des pistes"
53
54
  },
54
55
  "weather": {
55
56
  "title": "Météo Neige",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.25.13",
3
+ "version": "1.25.14",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.8.3",
6
6
  "leaflet": "^1.9.1",