ublo-lib 1.41.0 → 1.42.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.
Files changed (108) hide show
  1. package/es/common/components/breadcrumb.js +14 -2
  2. package/es/common/components/cookie-consent/cookie-consent.d.ts +2 -1
  3. package/es/common/components/cookie-consent/cookie-consent.d.ts.map +1 -1
  4. package/es/common/components/editable-calendar/index.d.ts +2 -1
  5. package/es/common/components/editable-calendar/index.d.ts.map +1 -1
  6. package/es/common/components/gesco-contact-form/services/form.d.ts.map +1 -1
  7. package/es/common/components/image-with-loader/image-with-loader.d.ts +1 -0
  8. package/es/common/components/image-with-loader/image-with-loader.d.ts.map +1 -1
  9. package/es/common/utils/file-manager.d.ts +1 -6
  10. package/es/common/utils/file-manager.d.ts.map +1 -1
  11. package/es/common/utils/url-parameters.d.ts.map +1 -1
  12. package/es/esf/components/instant-search/hooks/use-search.d.ts +0 -1
  13. package/es/esf/components/instant-search/hooks/use-search.d.ts.map +1 -1
  14. package/es/esf/components/instant-search/links.js +1 -1
  15. package/es/esf/components/instant-search/products.js +1 -1
  16. package/es/esf/components/period-picker/popup.d.ts +2 -1
  17. package/es/esf/components/period-picker/popup.d.ts.map +1 -1
  18. package/es/future/components/msem-preset-editor/services/offers.d.ts.map +1 -1
  19. package/es/future/components/msem-preset-editor/services/url-params.d.ts.map +1 -1
  20. package/es/future/utils/fetcher.d.ts.map +1 -1
  21. package/es/future/utils/url-parameters.d.ts.map +1 -1
  22. package/es/lbm/components/instant-search/faqs.js +1 -1
  23. package/es/lbm/components/instant-search/google-results.js +1 -1
  24. package/es/lbm/components/instant-search/hooks/use-google-search.d.ts +0 -1
  25. package/es/lbm/components/instant-search/hooks/use-google-search.d.ts.map +1 -1
  26. package/es/lbm/components/instant-search/hooks/use-search.d.ts +0 -1
  27. package/es/lbm/components/instant-search/hooks/use-search.d.ts.map +1 -1
  28. package/es/lbm/components/instant-search/links.js +1 -1
  29. package/es/lbm/components/instant-search/products.js +1 -1
  30. package/es/lbm/components/instant-search/widgets/components/card.js +1 -1
  31. package/es/market-place/components/instant-search/google-results.js +1 -1
  32. package/es/market-place/components/instant-search/hooks/use-google-search.d.ts +0 -1
  33. package/es/market-place/components/instant-search/hooks/use-google-search.d.ts.map +1 -1
  34. package/es/market-place/components/instant-search/hooks/use-search.d.ts +0 -1
  35. package/es/market-place/components/instant-search/hooks/use-search.d.ts.map +1 -1
  36. package/es/market-place/components/instant-search/links.js +1 -1
  37. package/es/market-place/components/instant-search/products.js +1 -1
  38. package/package.json +27 -35
  39. package/es/common/components/editable-map/cluster.d.ts +0 -5
  40. package/es/common/components/editable-map/cluster.d.ts.map +0 -1
  41. package/es/common/components/editable-map/cluster.js +0 -8
  42. package/es/common/components/editable-map/edit-form.d.ts +0 -7
  43. package/es/common/components/editable-map/edit-form.d.ts.map +0 -1
  44. package/es/common/components/editable-map/edit-form.js +0 -30
  45. package/es/common/components/editable-map/edit-form.module.css +0 -28
  46. package/es/common/components/editable-map/editable-map.d.ts +0 -6
  47. package/es/common/components/editable-map/editable-map.d.ts.map +0 -1
  48. package/es/common/components/editable-map/editable-map.js +0 -65
  49. package/es/common/components/editable-map/editable-map.module.css +0 -206
  50. package/es/common/components/editable-map/full-screen-button.d.ts +0 -6
  51. package/es/common/components/editable-map/full-screen-button.d.ts.map +0 -1
  52. package/es/common/components/editable-map/full-screen-button.js +0 -71
  53. package/es/common/components/editable-map/full-screen-button.module.css +0 -11
  54. package/es/common/components/editable-map/helper.d.ts +0 -2
  55. package/es/common/components/editable-map/helper.d.ts.map +0 -1
  56. package/es/common/components/editable-map/helper.js +0 -7
  57. package/es/common/components/editable-map/helper.module.css +0 -62
  58. package/es/common/components/editable-map/icon-picker.d.ts +0 -6
  59. package/es/common/components/editable-map/icon-picker.d.ts.map +0 -1
  60. package/es/common/components/editable-map/icon-picker.js +0 -31
  61. package/es/common/components/editable-map/icon-picker.module.css +0 -59
  62. package/es/common/components/editable-map/icons/esf-pralognan.d.ts +0 -51
  63. package/es/common/components/editable-map/icons/esf-pralognan.d.ts.map +0 -1
  64. package/es/common/components/editable-map/icons/esf-pralognan.js +0 -155
  65. package/es/common/components/editable-map/icons/esf.d.ts +0 -39
  66. package/es/common/components/editable-map/icons/esf.d.ts.map +0 -1
  67. package/es/common/components/editable-map/icons/esf.js +0 -119
  68. package/es/common/components/editable-map/icons/index.d.ts +0 -7
  69. package/es/common/components/editable-map/icons/index.d.ts.map +0 -1
  70. package/es/common/components/editable-map/icons/index.js +0 -6
  71. package/es/common/components/editable-map/icons/lavovelo.d.ts +0 -5
  72. package/es/common/components/editable-map/icons/lavovelo.d.ts.map +0 -1
  73. package/es/common/components/editable-map/icons/lavovelo.js +0 -17
  74. package/es/common/components/editable-map/icons/sata-huez.d.ts +0 -29
  75. package/es/common/components/editable-map/icons/sata-huez.d.ts.map +0 -1
  76. package/es/common/components/editable-map/icons/sata-huez.js +0 -89
  77. package/es/common/components/editable-map/icons/sedev-vars.d.ts +0 -29
  78. package/es/common/components/editable-map/icons/sedev-vars.d.ts.map +0 -1
  79. package/es/common/components/editable-map/icons/sedev-vars.js +0 -89
  80. package/es/common/components/editable-map/icons/viarmonia.d.ts +0 -3
  81. package/es/common/components/editable-map/icons/viarmonia.d.ts.map +0 -1
  82. package/es/common/components/editable-map/icons/viarmonia.js +0 -11
  83. package/es/common/components/editable-map/index.d.ts +0 -5
  84. package/es/common/components/editable-map/index.d.ts.map +0 -1
  85. package/es/common/components/editable-map/index.js +0 -67
  86. package/es/common/components/editable-map/input-marker.d.ts +0 -4
  87. package/es/common/components/editable-map/input-marker.d.ts.map +0 -1
  88. package/es/common/components/editable-map/input-marker.js +0 -16
  89. package/es/common/components/editable-map/input-marker.module.css +0 -17
  90. package/es/common/components/editable-map/map-events.d.ts +0 -18
  91. package/es/common/components/editable-map/map-events.d.ts.map +0 -1
  92. package/es/common/components/editable-map/map-events.js +0 -35
  93. package/es/common/components/editable-map/marker-list.d.ts +0 -7
  94. package/es/common/components/editable-map/marker-list.d.ts.map +0 -1
  95. package/es/common/components/editable-map/marker-list.js +0 -64
  96. package/es/common/components/editable-map/marker-list.module.css +0 -114
  97. package/es/common/components/editable-map/markers.d.ts +0 -7
  98. package/es/common/components/editable-map/markers.d.ts.map +0 -1
  99. package/es/common/components/editable-map/markers.js +0 -44
  100. package/es/common/components/editable-map/markers.module.css +0 -26
  101. package/es/common/components/editable-map/popup-data.d.ts +0 -4
  102. package/es/common/components/editable-map/popup-data.d.ts.map +0 -1
  103. package/es/common/components/editable-map/popup-data.js +0 -12
  104. package/es/common/components/editable-map/popup-data.module.css +0 -26
  105. package/es/common/components/editable-map/slopes-toggle.d.ts +0 -5
  106. package/es/common/components/editable-map/slopes-toggle.d.ts.map +0 -1
  107. package/es/common/components/editable-map/slopes-toggle.js +0 -13
  108. package/es/common/components/editable-map/slopes-toggle.module.css +0 -14
@@ -1,35 +0,0 @@
1
- import { useMapEvents } from "react-leaflet";
2
- export const DEFAULT_MARKER_DATA = {
3
- icon: "Location",
4
- title: "Nouveau point d'intérêt",
5
- description: "",
6
- url: "",
7
- label: "",
8
- tooltipOpened: false,
9
- };
10
- export default function MapEvents({ mapRef, markers, setMarkers, setCenter, setZoom, isEditing, element, }) {
11
- const ids = markers.map((m) => m.id);
12
- const newId = ids.length ? Math.max(...ids) + 1 : 1;
13
- const addMarker = (e) => {
14
- const hasAnOpenedPopup = Boolean(mapRef.current?.getContainer().querySelector(".leaflet-popup"));
15
- const isFocused = Boolean(element.querySelector("cms-section-ui"));
16
- if (!isEditing || !isFocused || hasAnOpenedPopup)
17
- return;
18
- setMarkers([
19
- ...markers,
20
- { id: newId, ...DEFAULT_MARKER_DATA, position: e.latlng },
21
- ]);
22
- };
23
- useMapEvents({
24
- dragend(e) {
25
- setCenter(e.target.getCenter());
26
- },
27
- zoomend(e) {
28
- setZoom(e.target.getZoom());
29
- },
30
- click(e) {
31
- addMarker(e);
32
- },
33
- });
34
- return null;
35
- }
@@ -1,7 +0,0 @@
1
- export default function MarkerList({ isInDialog, markers, mapRef, iconSet }: {
2
- isInDialog: any;
3
- markers: any;
4
- mapRef: any;
5
- iconSet: any;
6
- }): import("react/jsx-runtime").JSX.Element;
7
- //# sourceMappingURL=marker-list.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"marker-list.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-map/marker-list.js"],"names":[],"mappings":"AAUA;;;;;4CAoFC"}
@@ -1,64 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import * as L from "leaflet";
4
- import classNames from "classnames";
5
- import Button from "dt-design-system/es/button";
6
- import * as DTIcons from "dt-design-system/es/icons";
7
- import useWindowSizes from "../../hooks/use-window-sizes";
8
- import * as Icons from "./icons";
9
- import css from "./marker-list.module.css";
10
- export default function MarkerList({ isInDialog, markers, mapRef, iconSet }) {
11
- const [opened, setOpened] = React.useState(true);
12
- const importantMarkers = markers.filter((marker) => marker.important);
13
- const otherMarkers = markers.filter((marker) => !marker.important);
14
- const sortedImportantMarkers = importantMarkers.sort(alphaNumSortByTitle);
15
- const sortedOtherMarkers = otherMarkers.sort(alphaNumSortByTitle);
16
- const allMarkers = [...sortedImportantMarkers, ...sortedOtherMarkers];
17
- const toggleList = (e) => {
18
- e.preventDefault();
19
- e.stopPropagation();
20
- setOpened(!opened);
21
- };
22
- const { width } = useWindowSizes();
23
- const ToggleIcon = opened ? DTIcons.ChevronRight : DTIcons.Menu;
24
- React.useEffect(() => {
25
- setOpened(width > 992);
26
- }, [width]);
27
- const classes = classNames(css.list, {
28
- [css.listOpened]: opened,
29
- [css.listIsInDialog]: isInDialog,
30
- });
31
- return (_jsxs("div", { className: classes, children: [opened && (_jsx("div", { className: css.inner, children: allMarkers.map(({ id, icon, title, position, important }) => {
32
- const focusMarker = (e) => {
33
- e.stopPropagation();
34
- e.preventDefault();
35
- mapRef.current.setView(position, 17);
36
- setTimeout(() => {
37
- mapRef.current.eachLayer((layer) => {
38
- if (layer instanceof L.Marker) {
39
- const marker = layer
40
- .getElement()
41
- .querySelector(`[data-id="${id}"]`);
42
- if (marker) {
43
- layer.openPopup();
44
- }
45
- }
46
- });
47
- }, 300);
48
- if (width <= 992) {
49
- setOpened(false);
50
- }
51
- };
52
- const Icon = Icons[iconSet][icon] || Icons[iconSet].Location;
53
- const classes = classNames(css.button, {
54
- [css.buttonImportant]: important,
55
- });
56
- return (_jsxs("a", { href: "", className: classes, onClick: focusMarker, children: [_jsx(Icon, { className: css.icon }), _jsx("span", { children: title })] }, id));
57
- }) })), _jsx(Button, { type: "button", variant: "secondary", className: css.toggle, onClick: toggleList, children: _jsx(ToggleIcon, {}) })] }));
58
- }
59
- function alphaNumSortByTitle(a, b) {
60
- return a.title.localeCompare(b.title, undefined, {
61
- numeric: true,
62
- sensitivity: "base",
63
- });
64
- }
@@ -1,114 +0,0 @@
1
- .list {
2
- position: absolute;
3
- top: 0;
4
- right: 0;
5
- max-width: 250px;
6
- height: 100%;
7
- display: flex;
8
- flex-direction: column;
9
- gap: 4px;
10
- border-left: 1px solid var(--ds-grey-200, #ededed);
11
- border-radius: 0 var(--ds-radius-100, 6px) var(--ds-radius-100, 6px) 0;
12
- backdrop-filter: brightness(110%) contrast(90%)
13
- blur(calc(var(--ds-blur, 5px) * 3));
14
- transition: background-color 160ms
15
- var(--ds-transition-easing, cubic-bezier(0.4, 0.1, 0.2, 0.9));
16
- }
17
-
18
- .list::before {
19
- content: "";
20
- position: absolute;
21
- top: 0;
22
- left: 0;
23
- width: 100%;
24
- height: 100%;
25
- background-color: var(--ds-grey-100, #f8f8f8);
26
- border-radius: inherit;
27
- opacity: 0.75;
28
- }
29
-
30
- button.toggle {
31
- position: absolute;
32
- bottom: 8px;
33
- right: 8px;
34
- background-color: var(--ds-grey-000, #fff);
35
- box-shadow: var(--ds-shadow-100, 0px 3px 6px rgba(0, 0, 0, 0.12));
36
- user-select: none;
37
- }
38
-
39
- button.toggle:hover {
40
- background-color: var(--ds-grey-100, #f8f8f8);
41
- }
42
-
43
- .inner {
44
- position: relative;
45
- flex: 1 1 100%;
46
- display: flex;
47
- flex-direction: column;
48
- gap: 4px;
49
- padding: 0 8px;
50
- padding-top: 8px;
51
- overflow: auto;
52
- animation: marker-list-inner-appearance 160ms
53
- var(--ds-transition-easing, cubic-bezier(0.4, 0.1, 0.2, 0.9));
54
- background: linear-gradient(
55
- var(--ds-grey-100, #f8f8f8) 30%,
56
- hsla(0, 0%, 100%, 0)
57
- ),
58
- linear-gradient(hsla(0, 0%, 100%, 0), var(--ds-grey-100, #f8f8f8) 70%) 0
59
- 100%,
60
- radial-gradient(farthest-side at 50% 0, rgba(0, 0, 0, 0.25), transparent),
61
- radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.25), transparent)
62
- 0 100%;
63
- background-repeat: no-repeat;
64
- background-size: 100% 30px, 100% 30px, 100% 10px, 100% 10px;
65
- background-attachment: local, local, scroll, scroll;
66
- border-radius: inherit;
67
- }
68
-
69
- @keyframes marker-list-inner-appearance {
70
- 0% {
71
- opacity: 0;
72
- }
73
- }
74
-
75
- .button {
76
- display: flex;
77
- align-items: center;
78
- gap: 1ch;
79
- padding: 6px;
80
- color: inherit;
81
- font-size: 14px;
82
- text-align: left;
83
- border-radius: var(--ds-radius-200, 10px);
84
- cursor: pointer;
85
- user-select: none;
86
- transition: background-color 160ms
87
- var(--ds-transition-easing, cubic-bezier(0.4, 0.1, 0.2, 0.9));
88
- }
89
-
90
- .listIsInDialog .button:first-of-type {
91
- margin-right: 30px;
92
- }
93
-
94
- .button:is(:hover, :focus) {
95
- background-color: var(--ds-grey-100, #f8f8f8);
96
- }
97
-
98
- .buttonImportant {
99
- font-weight: 700;
100
- }
101
-
102
- .icon {
103
- flex: 0 0 32px;
104
- width: 32px;
105
- height: 32px;
106
- filter: drop-shadow(var(--ds-shadow-100, 0px 3px 6px rgba(0, 0, 0, 0.12)));
107
- fill: var(--ds-secondary, var(--ds-blue-400, #4177f6));
108
- transition: transform 160ms
109
- var(--ds-transition-easing, cubic-bezier(0.4, 0.1, 0.2, 0.9));
110
- }
111
-
112
- .button:is(:hover, :focus) .icon {
113
- transform: scale(1.08);
114
- }
@@ -1,7 +0,0 @@
1
- export default function Markers({ markers, setMarkers, iconSet, isEditing }: {
2
- markers: any;
3
- setMarkers: any;
4
- iconSet: any;
5
- isEditing: any;
6
- }): any;
7
- //# sourceMappingURL=markers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markers.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-map/markers.js"],"names":[],"mappings":"AASA;;;;;QAYC"}
@@ -1,44 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import * as ReactDOM from "react-dom/server";
4
- import * as L from "leaflet";
5
- import { Marker as LeafletMarker, Popup, Tooltip } from "react-leaflet";
6
- import EditForm from "./edit-form";
7
- import * as Icons from "./icons";
8
- import css from "./markers.module.css";
9
- import PopupData from "./popup-data";
10
- export default function Markers({ markers, setMarkers, iconSet, isEditing }) {
11
- return markers.map((marker, i) => {
12
- return (_jsx(Marker, { marker: marker, setMarkers: setMarkers, iconSet: iconSet, isEditing: isEditing }, i));
13
- });
14
- }
15
- function Marker({ marker, setMarkers, iconSet, isEditing }) {
16
- const markerRef = React.useRef();
17
- const popupRef = React.useRef();
18
- const { id, icon, title, position, tooltipOpened } = marker;
19
- const Icon = Icons[iconSet][icon] || Icons[iconSet].Location;
20
- const updatePosition = (e) => {
21
- setMarkers((currents) => {
22
- return currents.map((marker) => {
23
- if (marker.id === id) {
24
- return { ...marker, position: e.target.getLatLng() };
25
- }
26
- return marker;
27
- });
28
- });
29
- };
30
- const tooltipProps = tooltipOpened
31
- ? { direction: "right", permanent: true, offset: [6, -12] }
32
- : { direction: "right", offset: [6, -12] };
33
- return (_jsxs(LeafletMarker, { ref: markerRef, draggable: isEditing, eventHandlers: {
34
- dragend(e) {
35
- updatePosition(e);
36
- },
37
- click(e) {
38
- e.originalEvent.stopPropagation();
39
- },
40
- }, position: position, icon: L.divIcon({
41
- className: css.markerIcon,
42
- html: ReactDOM.renderToString(_jsx(Icon, { "data-id": id })),
43
- }), children: [!isEditing && _jsx(Tooltip, { ...tooltipProps, children: title }), _jsx(Popup, { ref: popupRef, offset: [0, -24], children: isEditing ? (_jsx(EditForm, { popupRef: popupRef, marker: marker, setMarkers: setMarkers, iconSet: iconSet })) : (_jsx(PopupData, { marker: marker })) })] }, id));
44
- }
@@ -1,26 +0,0 @@
1
- .markerIcon > svg {
2
- position: relative;
3
- width: 42px;
4
- height: 42px;
5
- fill: var(--ds-secondary, var(--ds-blue-400, #4177f6));
6
- filter: drop-shadow(var(--ds-shadow-100, 0px 3px 6px rgba(0, 0, 0, 0.12)));
7
- transform: translate(-35%, -65%);
8
- transition: transform 160ms
9
- var(--ds-transition-easing, cubic-bezier(0.4, 0.1, 0.2, 0.9));
10
- }
11
-
12
- .markerIcon:hover > svg {
13
- transform: translate(-35%, -65%) scale(1.1);
14
- }
15
-
16
- .markerIcon:has([data-pin])::after {
17
- content: "";
18
- top: calc(100% + 1px);
19
- left: calc(50% - 6px);
20
- width: 16px;
21
- position: absolute;
22
- height: 10px;
23
- background-color: var(--ds-grey-700, #232324);
24
- border-radius: 50%;
25
- opacity: 0.3;
26
- }
@@ -1,4 +0,0 @@
1
- export default function PopupData({ marker }: {
2
- marker: any;
3
- }): import("react/jsx-runtime").JSX.Element;
4
- //# sourceMappingURL=popup-data.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"popup-data.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-map/popup-data.js"],"names":[],"mappings":"AAIA;;4CA8BC"}
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import Button from "dt-design-system/es/button";
4
- import css from "./popup-data.module.css";
5
- export default function PopupData({ marker }) {
6
- const { title, description, url, label } = marker;
7
- const isExternalUrl = /^((http|https):\/\/)/.test(url);
8
- const target = isExternalUrl ? "_blank" : undefined;
9
- const rel = isExternalUrl ? "noopener" : undefined;
10
- const formattedDescription = description.replace(/\n/g, "<br />");
11
- return (_jsxs("div", { className: css.data, children: [_jsx("div", { className: css.title, children: title }), formattedDescription && (_jsx("div", { className: css.description, dangerouslySetInnerHTML: { __html: formattedDescription } })), url?.trim() && (_jsx(Button, { tag: "a", href: url.trim(), className: css.link, target: target, rel: rel, children: label || "En savoir plus" }))] }));
12
- }
@@ -1,26 +0,0 @@
1
- .data {
2
- position: relative;
3
- max-width: 280px;
4
- max-height: 280px;
5
- display: flex;
6
- flex-direction: column;
7
- gap: 6px;
8
- overflow: auto;
9
- }
10
-
11
- .title {
12
- position: sticky;
13
- top: 0;
14
- padding: 4px 0;
15
- font-size: 16px;
16
- font-weight: 700;
17
- }
18
-
19
- .description {
20
- font-size: 14px;
21
- }
22
-
23
- .link {
24
- margin-top: 6px;
25
- color: var(--ds-grey-000, #fff) !important;
26
- }
@@ -1,5 +0,0 @@
1
- export default function SlopesToggle({ showSlopes, setShowSlopes }: {
2
- showSlopes: any;
3
- setShowSlopes: any;
4
- }): import("react/jsx-runtime").JSX.Element;
5
- //# sourceMappingURL=slopes-toggle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"slopes-toggle.d.ts","sourceRoot":"","sources":["../../../../src/common/components/editable-map/slopes-toggle.js"],"names":[],"mappings":"AASA;;;4CAaC"}
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as React from "react";
3
- import Checkbox from "dt-design-system/es/checkbox";
4
- import css from "./slopes-toggle.module.css";
5
- const labels = {
6
- fr: "Afficher les pistes",
7
- en: "Show slopes",
8
- };
9
- export default function SlopesToggle({ showSlopes, setShowSlopes }) {
10
- const lang = document.documentElement.getAttribute("lang");
11
- const label = lang === "fr" ? labels.fr : labels.en;
12
- return (_jsx("div", { className: css.slopesToggle, children: _jsx(Checkbox, { label: label, checked: showSlopes, onCheckedChange: setShowSlopes }) }));
13
- }
@@ -1,14 +0,0 @@
1
- .slopesToggle {
2
- position: absolute;
3
- bottom: 10px;
4
- left: 10px;
5
- width: fit-content;
6
- padding: 10px;
7
- background-color: var(--ds-grey-000, #fff);
8
- border-radius: var(--ds-radius-200, 10px);
9
- box-shadow: var(--ds-shadow-100, 0px 3px 6px rgba(0, 0, 0, 0.12));
10
- }
11
-
12
- .slopesToggle span {
13
- width: 24px;
14
- }