ublo-lib 1.21.9 → 1.21.11

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.
@@ -205,12 +205,11 @@
205
205
  "TRAIL_RUNNING": "Trail",
206
206
  "VIDEO_ZONE": "Zone vidéo"
207
207
  },
208
- "trailLevels": {
208
+ "trail-levels": {
209
209
  "GREEN": "Verte",
210
210
  "BLUE": "Bleue",
211
211
  "RED": "Rouge",
212
- "BLACK": "Noire",
213
- "YELLOW": "Jaune"
212
+ "BLACK": "Noire"
214
213
  },
215
214
  "lifts": {
216
215
  "TRAIN": "Train",
@@ -1 +1 @@
1
- {"version":3,"file":"opening.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/opening.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,aAAa,EAAO,MAAM,SAAS,CAAC;AAGlD,KAAK,KAAK,GAAG;IACX,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,OAAO,8EAsEZ,CAAC;AAqCF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"opening.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/opening.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,KAAK,EAAE,aAAa,EAAO,MAAM,SAAS,CAAC;AAGlD,KAAK,KAAK,GAAG;IACX,aAAa,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,OAAO,8EAwEZ,CAAC;AAqCF,eAAe,OAAO,CAAC"}
@@ -21,15 +21,15 @@ const Opening = React.forwardRef(({ resortOpening, showOpening }, ref) => {
21
21
  const dayIndex = new Date().getDay() - 1;
22
22
  const orderedDays = reorganizeDays(dawnSkiingDays, dayIndex);
23
23
  const orderedNights = reorganizeDays(nightSkiingDays, dayIndex);
24
- return (_jsx("div", { ref: ref, className: css.opening, "data-tags": t(lang, "opening.navigation-title"), children: _jsx("div", { className: css.tableOuter, children: _jsxs("table", { className: css.table, children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", {}), orderedDays.map((day, i) => {
25
- const dayNumber = new Date();
26
- dayNumber.setDate(dayNumber.getDate() + i);
27
- return (_jsx("th", { className: css.heading, children: _jsxs("div", { className: css.headingInner, children: [_jsx(T, { id: `opening.days.${day.dayType}` }), " ", dayNumber.getDate()] }) }, day.dayType));
28
- })] }) }), _jsxs("tbody", { children: [showOpening?.includes("dawn") && (_jsx("tr", { children: _jsx(Rows, { kind: "dawn", rows: orderedDays }) })), showOpening?.includes("night") && (_jsx("tr", { children: _jsx(Rows, { kind: "night", rows: orderedNights }) }))] })] }) }) }));
24
+ return (_jsx("div", { ref: ref, className: css.opening, "data-tags": t(lang, "opening.navigation-title"), children: _jsx("div", { className: css.tableOuter, children: _jsx("div", { className: css.tableInner, children: _jsxs("table", { className: css.table, children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", {}), orderedDays.map((day, i) => {
25
+ const dayNumber = new Date();
26
+ dayNumber.setDate(dayNumber.getDate() + i);
27
+ return (_jsx("th", { className: css.heading, children: _jsxs("div", { className: css.headingInner, children: [_jsx(T, { id: `opening.days.${day.dayType}` }), " ", dayNumber.getDate()] }) }, day.dayType));
28
+ })] }) }), _jsxs("tbody", { children: [showOpening?.includes("dawn") && (_jsx("tr", { children: _jsx(Rows, { kind: "dawn", rows: orderedDays }) })), showOpening?.includes("night") && (_jsx("tr", { children: _jsx(Rows, { kind: "night", rows: orderedNights }) }))] })] }) }) }) }));
29
29
  });
30
30
  function Rows({ kind, rows }) {
31
31
  const Icon = kind === "dawn" ? DawnIcon : NightIcon;
32
- return (_jsxs(_Fragment, { children: [_jsx("td", { className: css.heading, children: _jsxs("span", { className: css.headingInner, children: [_jsx(Icon, {}), _jsx(T, { id: `opening.${kind}` })] }) }), rows.map(({ dayType, open }) => {
32
+ return (_jsxs(_Fragment, { children: [_jsx("td", { className: css.heading, children: _jsxs("span", { className: css.rowHeadingInner, children: [_jsx(Icon, {}), _jsx(T, { id: `opening.${kind}` })] }) }), rows.map(({ dayType, open }) => {
33
33
  const code = open ? "opening.available" : "opening.unavailable";
34
34
  const classes = classNames(css.cell, {
35
35
  [css.cellAvailable]: open,
@@ -26,27 +26,44 @@
26
26
  }
27
27
 
28
28
  .tableOuter {
29
- padding: 20px;
29
+ position: relative;
30
30
  border: 2px solid hsl(var(--primary));
31
31
  border-radius: calc(var(--radius-400) * 2);
32
- background-image: linear-gradient(to right, white, white),
33
- linear-gradient(to right, white, white),
34
- linear-gradient(to right, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0)),
35
- linear-gradient(to left, rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0));
36
- background-position: left center, right center, left center, right center;
37
- background-repeat: no-repeat;
38
- background-color: white;
39
- background-size: 40px 100%, 40px 100%, 20px 100%, 20px 100%;
32
+ overflow: hidden;
33
+ transform: translateZ(0);
34
+ isolation: isolate;
35
+ }
40
36
 
41
- background-attachment: local, local, scroll, scroll;
37
+ .tableOuter::before,
38
+ .tableOuter::after {
39
+ content: "";
40
+ position: absolute;
41
+ top: 0;
42
+ width: 50px;
43
+ height: 100%;
44
+ background: linear-gradient(
45
+ to right,
46
+ #fff,
47
+ rgba(255, 255, 255, 0.8),
48
+ transparent
49
+ );
50
+ z-index: 1;
51
+ transition: opacity 320ms var(--transition-easing);
52
+ pointer-events: none;
53
+ }
42
54
 
43
- overflow: auto;
55
+ .tableOuter::before {
56
+ left: 0;
44
57
  }
45
58
 
46
- @media (min-width: 580px) {
47
- .tableOuter {
48
- padding: 40px;
49
- }
59
+ .tableOuter::after {
60
+ right: 0;
61
+ transform: rotate(0.5turn);
62
+ }
63
+
64
+ .tableInner {
65
+ padding: 20px 30px;
66
+ overflow: auto;
50
67
  }
51
68
 
52
69
  .table {
@@ -59,39 +76,47 @@
59
76
  }
60
77
 
61
78
  .heading {
62
- width: fit-content;
63
- min-width: 120px;
64
79
  text-align: center;
65
80
  margin-top: 40px;
66
81
  padding-right: 10px;
67
82
  }
68
83
 
69
- .headingMini {
84
+ .headingInner {
85
+ width: fit-content;
86
+ min-width: 120px;
70
87
  display: flex;
71
- justify-content: center;
72
- line-height: 1;
88
+ flex-direction: column;
89
+ text-align: center;
90
+ gap: 10px;
91
+ margin: 20px 0;
92
+ background-color: hsla(var(--secondary), 10%);
73
93
  white-space: nowrap;
74
- min-width: 60px;
75
94
  }
76
95
 
77
- @media (min-width: 580px) {
78
- .headingMini {
79
- min-width: 120px;
80
- }
81
- }
82
-
83
- .headingInner {
84
- height: 18px;
96
+ .rowHeadingInner {
97
+ width: fit-content;
98
+ min-width: 90px;
85
99
  display: flex;
86
- align-items: flex-end;
87
- justify-content: center;
100
+ flex-direction: column;
88
101
  text-align: center;
89
102
  gap: 10px;
103
+ padding: 0 10px;
90
104
  margin: 20px 0;
105
+ text-align: left;
91
106
  background-color: hsla(var(--secondary), 10%);
92
107
  white-space: nowrap;
93
108
  }
94
109
 
110
+ @media (min-width: 700px) {
111
+ .rowHeadingInner {
112
+ min-width: 120px;
113
+ height: 18px;
114
+ align-items: flex-end;
115
+ flex-direction: row;
116
+ justify-content: center;
117
+ }
118
+ }
119
+
95
120
  .headingInner > svg {
96
121
  min-width: 30px;
97
122
  width: 30px;
@@ -1 +1 @@
1
- {"version":3,"file":"pois.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/pois.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,KAAK,EAAO,QAAQ,EAAQ,MAAM,SAAS,CAAC;AAwDnD,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;CACxB,CAAC;AASF,QAAA,MAAM,IAAI,8EA0LR,CAAC;AAIH,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"pois.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/pois.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,KAAK,EAAO,QAAQ,EAAQ,MAAM,SAAS,CAAC;AAwDnD,KAAK,KAAK,GAAG;IACX,IAAI,CAAC,EAAE,QAAQ,GAAG,IAAI,CAAC;CACxB,CAAC;AASF,QAAA,MAAM,IAAI,8EAiMR,CAAC;AAIH,eAAe,IAAI,CAAC"}
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import * as React from "react";
3
3
  import getConfig from "next/config";
4
4
  import Image from "next/image";
@@ -48,7 +48,7 @@ const TRAIL_ICONS = {
48
48
  PATH: TrailIcons.Pieton,
49
49
  PEDESTRIAN: TrailIcons.Pieton,
50
50
  ROUTE_OF_CROSS_COUNTRY: TrailIcons.Freeride,
51
- SKI_TOURING: TrailIcons.Luge,
51
+ SKI_TOURING: TrailIcons.SkiFond,
52
52
  SLEDDING_HILL: TrailIcons.Luge,
53
53
  SNOWPARK: TrailIcons.Snowpark,
54
54
  SNOWPARK_LINE: TrailIcons.Snowpark,
@@ -102,11 +102,13 @@ const Pois = React.forwardRef(({ pois }, ref) => {
102
102
  const translationCode = isLift
103
103
  ? `pois.lifts.${liftType}`
104
104
  : `pois.trails.${trailType}`;
105
- const hasTrailLevel = trailLevel !== undefined && trailLevel !== "UNDEF";
105
+ const hasTrailLevel = trailLevel !== undefined &&
106
+ trailLevel !== "UNDEF" &&
107
+ trailLevel !== "YELLOW";
106
108
  const trailLevelLabel = hasTrailLevel
107
- ? `(${t(lang, `pois.trailLevels.${trailLevel}`)})`
109
+ ? `(${t(lang, `pois.trail-levels.${trailLevel}`)})`
108
110
  : null;
109
- const specialTrail = Object.keys(SPECIAL_TRAILS).find((key) => name?.includes(key));
111
+ const specialTrail = Object.keys(SPECIAL_TRAILS).find((key) => name?.toLowerCase()?.includes(key.toLowerCase()));
110
112
  const message = messagePoi?.data?.find(({ language }) => {
111
113
  const _lang = lang === "fr" ? "fr_FR" : "en_US";
112
114
  return language === _lang;
@@ -116,7 +118,7 @@ const Pois = React.forwardRef(({ pois }, ref) => {
116
118
  const classes = classNames(css.poi, {
117
119
  [css[trailLevel]]: hasTrailLevel,
118
120
  });
119
- let status = "OPEN";
121
+ let status = "CLOSED";
120
122
  if (openingStatus?.includes("DELAYED")) {
121
123
  status = "DELAYED";
122
124
  }
@@ -126,14 +128,15 @@ const Pois = React.forwardRef(({ pois }, ref) => {
126
128
  else if (openingStatus?.includes("FORECAST")) {
127
129
  status = "FORECAST";
128
130
  }
129
- else {
130
- status = "CLOSED";
131
+ else if (openingStatus?.includes("OPEN")) {
132
+ status = "OPEN";
131
133
  }
132
134
  const statusCode = `pois.opening-statuses.${status}`;
133
135
  const Icon = isLift
134
136
  ? LIFT_ICONS[liftType] || LIFT_ICONS.DEFAULT
135
137
  : TRAIL_ICONS[trailType] || TRAIL_ICONS.DEFAULT;
136
- return (_jsxs("div", { className: classes, children: [_jsx("div", { className: css.poiIcon, children: specialTrail ? (_jsx(Image, { src: SPECIAL_TRAILS[specialTrail], width: 50, height: 50, alt: specialTrail })) : (_jsx(Icon, {})) }), _jsxs("div", { className: css.poiInfo, children: [_jsxs("div", { className: css.poiHeader, children: [_jsx("span", { className: css.poiName, children: name }), _jsx("span", { className: css.poiStatus, children: _jsx(T, { id: statusCode }) })] }), _jsxs("div", { className: css.poiDetail, children: [_jsxs("div", { className: css.poiDetailHeader, children: [_jsx("b", { children: sectorName }), " | ", _jsx(T, { id: translationCode }), " ", trailLevelLabel] }), !isLift && (_jsxs("div", { className: css.poiTrailDetail, children: [hasGroomingStatus && (_jsx("div", { className: css.poiTrailDetailItem, children: _jsx(T, { id: `snow.grooming.states.${groomingStatus}` }) })), hasSnowQuality && (_jsxs("div", { className: css.poiTrailDetailItem, children: [_jsx(T, { id: "snow.snow-quality.title" }), " :", " ", _jsx(T, { id: `snow.snow-quality.states.${snowQuality}` })] }))] })), openingTimesReal && (_jsxs("div", { className: css.poiOpeningTimes, children: [openingTimesReal.beginTime, " -", " ", openingTimesReal.endTime] }))] })] }), _jsx("div", { className: css.poiMessage, children: message && (_jsx(Tooltip, { content: message.data, children: _jsx(Button, { variant: "transparent", children: _jsx(Icons.Info, {}) }) })) })] }, id));
138
+ return (_jsxs("div", { className: classes, children: [_jsx("div", { className: css.poiIcon, children: specialTrail ? (_jsx(Image, { src: SPECIAL_TRAILS[specialTrail], width: 50, height: 50, alt: specialTrail })) : (_jsx(Icon, {})) }), _jsxs("div", { className: css.poiInfo, children: [_jsxs("div", { className: css.poiHeader, children: [_jsx("span", { className: css.poiName, children: name }), _jsx("span", { className: css.poiStatus, children: _jsx(T, { id: statusCode }) })] }), _jsxs("div", { className: css.poiDetail, children: [_jsxs("div", { className: css.poiDetailHeader, children: [_jsx("b", { children: sectorName }), " ", trailType !== "FUN_ZONE" && (_jsxs(_Fragment, { children: ["| ", _jsx(T, { id: translationCode }), " ", trailLevelLabel] }))] }), !isLift && (_jsxs("div", { className: css.poiTrailDetail, children: [hasGroomingStatus && (_jsx("div", { className: css.poiTrailDetailItem, children: _jsx(T, { id: `snow.grooming.states.${groomingStatus}` }) })), hasSnowQuality && (_jsxs("div", { className: css.poiTrailDetailItem, children: [_jsx(T, { id: "snow.snow-quality.title" }), " :", " ", _jsx(T, { id: `snow.snow-quality.states.${snowQuality}` })] }))] })), openingTimesReal?.beginTime &&
139
+ openingTimesReal?.endTime && (_jsxs("div", { className: css.poiOpeningTimes, children: [openingTimesReal.beginTime, " -", " ", openingTimesReal.endTime] }))] })] }), _jsx("div", { className: css.poiMessage, children: message?.data && (_jsx(Tooltip, { content: message.data, children: _jsx(Button, { variant: "transparent", children: _jsx(Icons.Info, {}) }) })) })] }, id));
137
140
  }) }), _jsx(Tooltip, { content: t(lang, expanded ? "see-less" : "see-more"), children: _jsx(Button, { className: css.expandButton, variant: "transparent", onClick: toggleExpanded, children: _jsx(ExpandIcon, {}) }) })] }) }));
138
141
  });
139
142
  Pois.displayName = "Pois";
@@ -1 +1 @@
1
- {"version":3,"file":"resort-selector.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/resort-selector.tsx"],"names":[],"mappings":"AAKA,KAAK,MAAM,GAAG;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IAExB,kBAAkB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,OAAO,EACP,eAAe,EACf,kBAAkB,GACnB,EAAE,KAAK,kDAwBP"}
1
+ {"version":3,"file":"resort-selector.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/resort-selector.tsx"],"names":[],"mappings":"AAOA,KAAK,MAAM,GAAG;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IAExB,kBAAkB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,OAAO,EACP,eAAe,EACf,kBAAkB,GACnB,EAAE,KAAK,kDAqDP"}
@@ -1,18 +1,42 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as React from "react";
2
3
  import classNames from "classnames";
4
+ // import useWindowSizes from "ublo-lib/es/common/hooks/use-window-sizes";
5
+ import useWindowSizes from "../../../common/hooks/use-window-sizes";
3
6
  import Button from "dt-design-system/es/button";
4
7
  import css from "./resort-selector.module.css";
5
8
  export default function ResortSelector({ resorts, currentResortId, setCurrentResortId, }) {
9
+ const [showLeftShadow, setShowLeftShadow] = React.useState(false);
10
+ const [showRightShadow, setShowRightShadow] = React.useState(false);
11
+ const containerRef = React.useRef(null);
12
+ const scrollerRef = React.useRef(null);
13
+ const { width, height } = useWindowSizes();
14
+ const refreshShadows = React.useCallback(() => {
15
+ const container = containerRef.current;
16
+ const scroller = scrollerRef.current;
17
+ if (container && scroller) {
18
+ setShowLeftShadow(scroller.scrollLeft > 50);
19
+ const maxScroll = Math.round(scroller.scrollWidth) - Math.round(scroller.clientWidth);
20
+ setShowRightShadow(scroller.scrollLeft < maxScroll - 50);
21
+ }
22
+ }, []);
23
+ React.useEffect(() => {
24
+ refreshShadows();
25
+ }, [refreshShadows, width, height]);
6
26
  if (!resorts || resorts.length < 2) {
7
27
  return null;
8
28
  }
9
- return (_jsx("div", { className: css.selector, children: resorts.map(({ id, label }) => {
10
- const classes = classNames(css.button, {
11
- [css.selected]: id === currentResortId,
12
- });
13
- const updateCurrentResort = () => {
14
- setCurrentResortId(id);
15
- };
16
- return (_jsx(Button, { className: classes, onClick: updateCurrentResort, children: label }, id));
17
- }) }));
29
+ const classes = classNames(css.selector, {
30
+ [css.leftShadow]: showLeftShadow,
31
+ [css.rightShadow]: showRightShadow,
32
+ });
33
+ return (_jsx("div", { ref: containerRef, className: classes, children: _jsx("div", { ref: scrollerRef, onScroll: refreshShadows, className: css.content, children: resorts.map(({ id, label }) => {
34
+ const classes = classNames(css.button, {
35
+ [css.selected]: id === currentResortId,
36
+ });
37
+ const updateCurrentResort = () => {
38
+ setCurrentResortId(id);
39
+ };
40
+ return (_jsx(Button, { className: classes, onClick: updateCurrentResort, children: label }, id));
41
+ }) }) }));
18
42
  }
@@ -1,11 +1,51 @@
1
1
  .selector {
2
- display: flex;
3
- justify-content: center;
4
- flex-wrap: wrap;
5
- gap: 20px;
2
+ position: relative;
3
+ padding: 0 10px;
6
4
  margin-bottom: 10px;
7
5
  }
8
6
 
7
+ .selector::before,
8
+ .selector::after {
9
+ content: "";
10
+ position: absolute;
11
+ top: 0;
12
+ width: 40px;
13
+ height: 100%;
14
+ background: linear-gradient(
15
+ to right,
16
+ #fff,
17
+ rgba(255, 255, 255, 0.6),
18
+ transparent
19
+ );
20
+ z-index: 1;
21
+ opacity: 0;
22
+ transition: opacity 320ms var(--transition-easing);
23
+ pointer-events: none;
24
+ }
25
+
26
+ .selector::before {
27
+ left: 0;
28
+ }
29
+
30
+ .selector::after {
31
+ right: 0;
32
+ transform: rotate(0.5turn);
33
+ }
34
+
35
+ .leftShadow::before,
36
+ .rightShadow::after {
37
+ opacity: 1;
38
+ }
39
+
40
+ .content {
41
+ width: 100%;
42
+ display: flex;
43
+ align-items: center;
44
+ gap: 10px;
45
+ overflow: auto;
46
+ scroll-snap-type: x proximity;
47
+ }
48
+
9
49
  button.button {
10
50
  --ds-button-padding: 14px;
11
51
  --ds-button-font-size: 19px;
@@ -17,7 +57,18 @@ button.button {
17
57
  --ds-button-text-transform: uppercase;
18
58
  --ds-button-font-weight: 700;
19
59
 
60
+ width: fit-content;
20
61
  display: block;
62
+ white-space: nowrap;
63
+ scroll-snap-align: start;
64
+ }
65
+
66
+ button.button:first-child {
67
+ margin-left: auto;
68
+ }
69
+
70
+ button.button:last-child {
71
+ margin-right: auto;
21
72
  }
22
73
 
23
74
  button.selected {
@@ -1 +1 @@
1
- {"version":3,"file":"road-condition.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/road-condition.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C,KAAK,KAAK,GAAG;IACX,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,aAAa,8EAuFlB,CAAC;AAIF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"road-condition.d.ts","sourceRoot":"","sources":["../../../../src/lbm/components/lumiplan/road-condition.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAG5C,KAAK,KAAK,GAAG;IACX,YAAY,CAAC,EAAE,YAAY,GAAG,IAAI,CAAC;CACpC,CAAC;AAEF,QAAA,MAAM,aAAa,8EA6FlB,CAAC;AAIF,eAAe,aAAa,CAAC"}
@@ -20,7 +20,7 @@ const RoadCondition = React.forwardRef(({ resortAccess }, ref) => {
20
20
  return language === _lang;
21
21
  });
22
22
  const hasValidNumber = !isNaN(parseInt(number, 10)) && number !== "0";
23
- return (_jsxs("div", { className: css.condition, children: [_jsx(RoadConditionIcon, { className: css.icon }), _jsxs("div", { className: css.right, children: [_jsxs("div", { className: css.status, children: [_jsx(T, { id: "road-conditions.road" }), " ", _jsx(T, { id: `road-conditions.status.${status ? "OPENED" : "CLOSED"}` })] }), _jsxs("div", { className: css.top, children: [name?.trim() && (_jsxs("div", { className: css.name, children: [name, " ", hasValidNumber && _jsxs(_Fragment, { children: ["n\u00B0", number] })] })), _jsxs("div", { className: css.surface, children: [_jsx("b", { children: _jsx(T, { id: "road-conditions.surface.title" }) }), _jsx(T, { id: `road-conditions.surface.states.${surface}` }), "."] }), _jsxs("div", { className: css.equipment, children: [_jsx("b", { children: _jsx(T, { id: "road-conditions.equipment.title" }) }), _jsx(T, { id: `road-conditions.equipment.states.${equipment}` })] })] }), roadInfoData && (_jsx("div", { className: css.bottom, dangerouslySetInnerHTML: { __html: roadInfoData.data } }))] })] }, id));
23
+ return (_jsxs("div", { className: css.condition, children: [_jsx(RoadConditionIcon, { className: css.icon }), _jsxs("div", { className: css.right, children: [_jsxs("div", { className: css.status, children: [_jsx(T, { id: "road-conditions.road" }), " ", _jsx(T, { id: `road-conditions.status.${status ? "OPENED" : "CLOSED"}` })] }), _jsxs("div", { className: css.top, children: [name?.trim() && (_jsxs("div", { className: css.name, children: [name, " ", hasValidNumber && _jsxs(_Fragment, { children: ["n\u00B0", number] })] })), surface && surface !== "UNDEF" && (_jsxs("div", { className: css.surface, children: [_jsx("b", { children: _jsx(T, { id: "road-conditions.surface.title" }) }), _jsx(T, { id: `road-conditions.surface.states.${surface}` }), "."] })), equipment && equipment !== "UNDEF" && (_jsxs("div", { className: css.equipment, children: [_jsx("b", { children: _jsx(T, { id: "road-conditions.equipment.title" }) }), _jsx(T, { id: `road-conditions.equipment.states.${equipment}` })] }))] }), roadInfoData && (_jsx("div", { className: css.bottom, dangerouslySetInnerHTML: { __html: roadInfoData.data } }))] })] }, id));
24
24
  })] }));
25
25
  });
26
26
  RoadCondition.displayName = "RoadCondition";
@@ -1,5 +1,7 @@
1
1
  .snow {
2
2
  flex: 1 1 100%;
3
+ width: 300px;
4
+ max-width: 100%;
3
5
  display: flex;
4
6
  gap: 34px;
5
7
  }
@@ -1,5 +1,7 @@
1
1
  .weatherData {
2
2
  flex: 1 1 100%;
3
+ width: 300px;
4
+ max-width: 100%;
3
5
  display: flex;
4
6
  gap: 34px;
5
7
  }
@@ -17,7 +17,7 @@
17
17
  );
18
18
  z-index: 1;
19
19
  opacity: 0;
20
- transition: opacity 320ms ease;
20
+ transition: opacity 320ms var(--transition-easing);
21
21
  pointer-events: none;
22
22
  }
23
23
 
@@ -18,7 +18,7 @@
18
18
  );
19
19
  z-index: 1;
20
20
  opacity: 0;
21
- transition: opacity 320ms ease;
21
+ transition: opacity 320ms var(--transition-easing);
22
22
  pointer-events: none;
23
23
  }
24
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.21.9",
3
+ "version": "1.21.11",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.1.5",
6
6
  "leaflet": "^1.9.1",