ublo-lib 1.8.9 → 1.8.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.
@@ -104,7 +104,8 @@ const Carousel = ({
104
104
  thumbnails,
105
105
  alwaysShowControls,
106
106
  allowDragOnDesktop,
107
- children
107
+ children,
108
+ onChange
108
109
  }) => {
109
110
  const carouselRef = React.useRef();
110
111
  const {
@@ -284,6 +285,11 @@ const Carousel = ({
284
285
  e.preventDefault();
285
286
  e.stopPropagation();
286
287
  }, []);
288
+ React.useEffect(() => {
289
+ if (typeof onChange === "function") {
290
+ onChange(current);
291
+ }
292
+ }, [current, onChange]);
287
293
  React.useEffect(() => {
288
294
  const carousel = carouselRef.current;
289
295
  const inner = carousel.firstElementChild;
@@ -318,6 +324,7 @@ const Carousel = ({
318
324
  className: "carousel--prev",
319
325
  onClick: prev,
320
326
  disabled: alwaysShowControls && !showPrevArrow,
327
+ "aria-label": "Pr\xE9cedent / Previous",
321
328
  children: _jsx(Icons.ArrowLeft, {
322
329
  className: "carousel--icon"
323
330
  })
@@ -325,6 +332,7 @@ const Carousel = ({
325
332
  className: "carousel--next",
326
333
  onClick: next,
327
334
  disabled: alwaysShowControls && !showNextArrow,
335
+ "aria-label": "Suivant / Next",
328
336
  children: _jsx(Icons.ArrowRight, {
329
337
  className: "carousel--icon"
330
338
  })
@@ -212,7 +212,7 @@ export const gescoFields = (data, ref) => {
212
212
  lastname: data.lastName.value,
213
213
  email: data.email.value,
214
214
  phone: data.phone.value,
215
- message: ref.current.innerText,
215
+ message: ref.current.textContent,
216
216
  stayFrom: data.stayFrom.value,
217
217
  stayTo: data.stayTo.value
218
218
  };
@@ -13,6 +13,7 @@ const locales = {
13
13
  lesson: "Prestation",
14
14
  select: "Sélectionner",
15
15
  remove: "Supprimer",
16
+ "group-lessons-request": "Demande de réservation de cours collectifs",
16
17
  "personal-data": "Séjour et coordonnées",
17
18
  summary: "Récapitulatif",
18
19
  send: "Envoyer ma demande",
@@ -35,6 +36,7 @@ const locales = {
35
36
  lesson: "Lesson",
36
37
  select: "Select",
37
38
  remove: "Remove",
39
+ "group-lessons-request": "Group lesson booking request",
38
40
  "personal-data": "Stay & contact details",
39
41
  summary: "summary",
40
42
  send: "Send",
@@ -73,6 +73,9 @@ const Summary = ({
73
73
  ref: ref,
74
74
  className: css.inner,
75
75
  children: [_jsx("div", {
76
+ className: css.information,
77
+ children: message(lang, "group-lessons-request")
78
+ }), _jsx("div", {
76
79
  className: css.subTitle,
77
80
  children: message(lang, "personal-data")
78
81
  }), Object.keys(personalData).map(key => {
@@ -22,6 +22,12 @@
22
22
  border-radius: var(--bf-radius, 6px);
23
23
  }
24
24
 
25
+ .information {
26
+ margin: 6px 0;
27
+ font-size: 23px;
28
+ font-weight: 700;
29
+ }
30
+
25
31
  .subTitle {
26
32
  margin-bottom: 10px;
27
33
  font-size: 20px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.8.9",
3
+ "version": "1.8.11",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^2.1.0",
6
6
  "next": "^12.0.0 || ^13.0.0",