ublo-lib 1.47.104 → 1.47.106
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.
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
left: auto;
|
|
57
57
|
/* largeur de la taille de l'item + des boutons + petit écart */
|
|
58
58
|
width: calc(
|
|
59
|
-
var(--carousel-item-width, 400px) +
|
|
60
|
-
20px
|
|
59
|
+
var(--carousel-item-width, 400px) +
|
|
60
|
+
(var(--carousel-button-width, 48px) * 2) + 20px
|
|
61
61
|
);
|
|
62
62
|
transform: none;
|
|
63
63
|
}
|
|
@@ -125,6 +125,8 @@
|
|
|
125
125
|
height: 100%;
|
|
126
126
|
width: var(--carousel-item-width, 400px);
|
|
127
127
|
background: var(--carousel-before-background, transparent);
|
|
128
|
+
touch-action: none;
|
|
129
|
+
pointer-events: none;
|
|
128
130
|
z-index: 1;
|
|
129
131
|
}
|
|
130
132
|
|
|
@@ -136,6 +138,8 @@
|
|
|
136
138
|
height: 100%;
|
|
137
139
|
width: var(--carousel-item-width, 400px);
|
|
138
140
|
background: var(--carousel-after-background, transparent);
|
|
141
|
+
touch-action: none;
|
|
142
|
+
pointer-events: none;
|
|
139
143
|
z-index: 1;
|
|
140
144
|
}
|
|
141
145
|
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
export default function Sheet({ instructor, popup, formFields, formSendFunction, bookUrl, }: {
|
|
1
|
+
export default function Sheet({ instructor, popup, formFields, formSendFunction, bookUrl, imageSize, }: {
|
|
2
2
|
instructor: any;
|
|
3
3
|
popup: any;
|
|
4
4
|
formFields: any;
|
|
5
5
|
formSendFunction: any;
|
|
6
6
|
bookUrl: any;
|
|
7
|
+
imageSize: any;
|
|
7
8
|
}): import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
//# sourceMappingURL=sheet.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/sheet.js"],"names":[],"mappings":"AAgBA
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/instructors-book/sheet.js"],"names":[],"mappings":"AAgBA;;;;;;;4CA+LC"}
|
|
@@ -14,7 +14,7 @@ import prefixes from "./prefixes";
|
|
|
14
14
|
import { message } from "./messages";
|
|
15
15
|
import css from "./sheet.module.css";
|
|
16
16
|
import buttonCss from "dt-design-system/es/button/button.module.css";
|
|
17
|
-
export default function Sheet({ instructor, popup, formFields, formSendFunction, bookUrl, }) {
|
|
17
|
+
export default function Sheet({ instructor, popup, formFields, formSendFunction, bookUrl, imageSize, }) {
|
|
18
18
|
const { prenom, nom, photo, langues, disciplines, introduction, description, uri, } = instructor;
|
|
19
19
|
const { lang, path } = useUbloContext();
|
|
20
20
|
const [loading, setLoading] = React.useState(true);
|
|
@@ -49,7 +49,7 @@ export default function Sheet({ instructor, popup, formFields, formSendFunction,
|
|
|
49
49
|
const formattedFirstname = Utils.formatNames(prenom);
|
|
50
50
|
const formattedLastname = Utils.formatNames(nom);
|
|
51
51
|
const key = `${lang}-${path}${prenom}-${nom}`;
|
|
52
|
-
return (_jsxs("div", { className: classes, children: [_jsxs("div", { className: css.content, children: [!popup && bookUrl && (_jsxs(Link, { href: bookUrl, className: classNames(buttonCss.button, buttonCss.link), children: [_jsx(ChevronLeftIcon, {}), message(lang, "go-back")] })), _jsxs("div", { className: css.header, children: [_jsx("div", { className: css.imageContainer, children: picture ? (_jsxs(_Fragment, { children: [loading && _jsx(LoaderIcon, { className: css.imageLoader }), _jsx(Image, { loading: "lazy", src: picture, className: css.image, alt: `${prenom} ${nom}`, onLoad: stopLoading, onError: setFallbackPicture, width: isPrinting ? "350" : "200", height: isPrinting ? "490" : "280" }, uri)] })) : (_jsx("div", { className: css.imagePlaceholder, children: _jsx(UserIcon, { className: css.imagePlaceholderIcon }) })) }), _jsxs("div", { className: css.information, children: [_jsxs("div", { className: css.name, children: [_jsxs("span", { className: css.firstName, children: [formattedFirstname, " "] }), _jsx("span", { className: css.lastName, children: formattedLastname })] }), disciplines && (_jsxs("div", { className: css.activities, children: [_jsx("div", { className: css.activitiesTitle, children: message(lang, "activities") }), _jsx("div", { className: css.activitiesList, children: disciplines.map((discipline, i) => {
|
|
52
|
+
return (_jsxs("div", { className: classes, children: [_jsxs("div", { className: css.content, children: [!popup && bookUrl && (_jsxs(Link, { href: bookUrl, className: classNames(buttonCss.button, buttonCss.link), children: [_jsx(ChevronLeftIcon, {}), message(lang, "go-back")] })), _jsxs("div", { className: css.header, children: [_jsx("div", { className: css.imageContainer, children: picture ? (_jsxs(_Fragment, { children: [loading && _jsx(LoaderIcon, { className: css.imageLoader }), _jsx(Image, { loading: "lazy", src: picture, className: css.image, alt: `${prenom} ${nom}`, onLoad: stopLoading, onError: setFallbackPicture, width: isPrinting ? "350" : imageSize?.width || "200", height: isPrinting ? "490" : imageSize?.height || "280" }, uri)] })) : (_jsx("div", { className: css.imagePlaceholder, children: _jsx(UserIcon, { className: css.imagePlaceholderIcon }) })) }), _jsxs("div", { className: css.information, children: [_jsxs("div", { className: css.name, children: [_jsxs("span", { className: css.firstName, children: [formattedFirstname, " "] }), _jsx("span", { className: css.lastName, children: formattedLastname })] }), disciplines && (_jsxs("div", { className: css.activities, children: [_jsx("div", { className: css.activitiesTitle, children: message(lang, "activities") }), _jsx("div", { className: css.activitiesList, children: disciplines.map((discipline, i) => {
|
|
53
53
|
const { code, label } = discipline;
|
|
54
54
|
const length = disciplines.length;
|
|
55
55
|
return (_jsxs("span", { className: css.activity, children: [_jsx("span", { children: label }), i < length - 2
|