@edifice.io/react 2.2.13-develop-enabling.20250722163127 → 2.2.13-develop-b2school.20250723160127
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.
- package/dist/components/Button/Button.d.ts +1 -1
- package/dist/components/Input/Input.d.ts +4 -0
- package/dist/components/Input/Input.js +2 -1
- package/dist/components/Modal/ModalHeader.d.ts +4 -0
- package/dist/components/Modal/ModalHeader.js +8 -3
- package/dist/components/SearchBar/SearchBar.d.ts +9 -33
- package/dist/components/SearchBar/SearchBar.js +2 -17
- package/dist/hooks/useLibraryUrl/useLibraryUrl.d.ts +1 -1
- package/dist/hooks/useLibraryUrl/useLibraryUrl.js +2 -2
- package/dist/icons-apps.js +164 -174
- package/dist/icons.js +190 -198
- package/dist/modules/icons/components/apps/IconAccount.js +2 -2
- package/dist/modules/icons/components/apps/IconActualites.js +2 -2
- package/dist/modules/icons/components/apps/IconAdmin.js +2 -2
- package/dist/modules/icons/components/apps/IconAgenda.js +2 -3
- package/dist/modules/icons/components/apps/IconAppointments.js +2 -2
- package/dist/modules/icons/components/apps/IconArchive.js +2 -2
- package/dist/modules/icons/components/apps/IconBlog.js +2 -2
- package/dist/modules/icons/components/apps/IconCahierDeTexte.js +2 -2
- package/dist/modules/icons/components/apps/IconCalendar.js +2 -3
- package/dist/modules/icons/components/apps/IconCollaborativeWall.js +2 -2
- package/dist/modules/icons/components/apps/IconCommunity.js +2 -2
- package/dist/modules/icons/components/apps/IconConversation.js +2 -2
- package/dist/modules/icons/components/apps/IconDirectory.js +2 -2
- package/dist/modules/icons/components/apps/IconExercizer.js +2 -2
- package/dist/modules/icons/components/apps/IconForms.js +6 -2
- package/dist/modules/icons/components/apps/IconForum.js +2 -2
- package/dist/modules/icons/components/apps/IconLibrary.js +2 -2
- package/dist/modules/icons/components/apps/IconMediacentre.js +2 -2
- package/dist/modules/icons/components/apps/IconMindmap.js +2 -2
- package/dist/modules/icons/components/apps/IconMoodle.js +2 -2
- package/dist/modules/icons/components/apps/IconNabook.js +4 -2
- package/dist/modules/icons/components/apps/IconNotebook.js +2 -2
- package/dist/modules/icons/components/apps/IconPad.js +2 -2
- package/dist/modules/icons/components/apps/IconPages.js +2 -2
- package/dist/modules/icons/components/apps/IconParametrage.js +2 -2
- package/dist/modules/icons/components/apps/IconParametrages.js +2 -2
- package/dist/modules/icons/components/apps/IconPoll.js +2 -2
- package/dist/modules/icons/components/apps/IconPresences.js +6 -2
- package/dist/modules/icons/components/apps/IconRack.js +2 -2
- package/dist/modules/icons/components/apps/IconRbs.js +2 -2
- package/dist/modules/icons/components/apps/IconSchoolbook.js +2 -2
- package/dist/modules/icons/components/apps/IconScrapbook.js +2 -2
- package/dist/modules/icons/components/apps/IconSettingsClass.js +2 -2
- package/dist/modules/icons/components/apps/IconSharebigfiles.js +2 -2
- package/dist/modules/icons/components/apps/IconStatistics.js +2 -2
- package/dist/modules/icons/components/apps/IconSupport.js +2 -2
- package/dist/modules/icons/components/apps/IconTimeline.js +2 -2
- package/dist/modules/icons/components/apps/IconTimelinegenerator.js +2 -2
- package/dist/modules/icons/components/apps/IconUserbook.js +2 -2
- package/dist/modules/icons/components/apps/IconVisioconf.js +2 -2
- package/dist/modules/icons/components/apps/IconWebsite.js +2 -2
- package/dist/modules/icons/components/apps/IconWiki.js +3 -3
- package/dist/modules/icons/components/apps/IconWorkspace.js +2 -2
- package/dist/modules/icons/components/apps/index.d.ts +0 -5
- package/dist/modules/icons/components/index.d.ts +0 -4
- package/dist/modules/modals/OnboardingModal/OnboardingModal.d.ts +4 -6
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +13 -27
- package/dist/modules/modals/OnboardingModal/index.d.ts +0 -1
- package/dist/modules/modals/OnboardingModal/useOnboardingModal.js +4 -4
- package/package.json +6 -6
- package/dist/modules/icons/components/IconLibrary.d.ts +0 -7
- package/dist/modules/icons/components/IconLibrary.js +0 -12
- package/dist/modules/icons/components/IconNotification.d.ts +0 -7
- package/dist/modules/icons/components/IconNotification.js +0 -12
- package/dist/modules/icons/components/IconStar.d.ts +0 -7
- package/dist/modules/icons/components/IconStar.js +0 -13
- package/dist/modules/icons/components/IconStarFavorite.d.ts +0 -7
- package/dist/modules/icons/components/IconStarFull.d.ts +0 -7
- package/dist/modules/icons/components/IconStarFull.js +0 -13
- package/dist/modules/icons/components/apps/IconEdt.d.ts +0 -7
- package/dist/modules/icons/components/apps/IconEdt.js +0 -12
- package/dist/modules/icons/components/apps/IconGeogebra.d.ts +0 -7
- package/dist/modules/icons/components/apps/IconGeogebra.js +0 -12
- package/dist/modules/icons/components/apps/IconMagneto.d.ts +0 -7
- package/dist/modules/icons/components/apps/IconMagneto.js +0 -13
- package/dist/modules/icons/components/apps/IconMinetest.d.ts +0 -7
- package/dist/modules/icons/components/apps/IconMinetest.js +0 -12
- package/dist/modules/icons/components/apps/IconMinibadge.d.ts +0 -7
- package/dist/modules/icons/components/apps/IconMinibadge.js +0 -12
|
@@ -3,9 +3,9 @@ const SvgIconRbs = ({
|
|
|
3
3
|
title,
|
|
4
4
|
titleId,
|
|
5
5
|
...props
|
|
6
|
-
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
7
|
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
-
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M7.45 1.8c-.4.17-.48.44-.48 2.34 0 1.66.03 1.9.22 2.07.12.12.36.22.53.22.7-.03.82-.39.82-2.41 0-1.64 0-1.7-.3-2s-.43-.33-.79-.21zm8.42.15c-.29.22-.29.31-.34 1.88-.04 1.78 0 2.11.3 2.4.26.27.81.24 1.05-.02.17-.2.2-.53.2-2.1 0-2-.05-2.18-.6-2.33a.64.64 0 0 0-.6.17zM3.25 4.4a2.7 2.7 0 0 0-.9.84c-.3.5-.35.73-.4 1.78l-.05 1.2h20.25l-.05-1.17c-.05-1.42-.31-2.02-1.08-2.53-.46-.31-.6-.33-1.97-.36l-1.5-.05v.97c0 .86-.02 1-.3 1.32-.4.48-1 .6-1.47.31s-.63-.65-.63-1.68v-.9H8.9v.9c0 1.03-.12 1.4-.63 1.68-.48.29-1.05.17-1.46-.31-.27-.32-.32-.46-.32-1.32v-.94H5.15c-1.2 0-1.45.02-1.9.26M1.92 14.98c0 6.9.03 6.98.84 7.72.27.24.63.48.82.53.43.12 16.47.12 16.9 0 .18-.05.54-.29.8-.53.84-.74.84-.81.84-7.72V8.95H1.92zm5.03-3.43-.02 2.02H2.6l-.05-2.02-.02-2h4.45zm4.83-.1v1.9l-.62-.31c-.87-.41-2.31-.44-3.06-.03a6 6 0 0 1-.57.27c-.05 0-.08-.84-.08-1.88V9.55h4.33zm4.9.1-.02 2.02-2.14.04-2.14.03V9.55h4.33l-.02 2zm4.82 0-.03 2.02h-4.2l-.05-2.02-.03-2h4.33zM6.25 14.77a3.6 3.6 0 0 0-.17 3.1c.08.2-.04.22-1.73.22H2.52v-3.97h4.1zm5.53 1.32v2H7.46v-3.97h4.32zm4.93 0v2h-1.87c-1.73 0-1.88-.03-1.78-.22.04-.12.16-.53.24-.92.19-.88.07-1.73-.36-2.38l-.32-.45h4.1v1.97zm4.81 0v2H17.2v-3.97h4.33v1.97zM6.76 18.76c.2.17.21.4.21 2.12v1.92l-1.6-.05c-1.4-.02-1.67-.07-1.95-.29-.75-.55-.82-.77-.87-2.4l-.05-1.5h2.02c1.71 0 2.05.03 2.24.2m5.02-.05c0 .34-.81.84-1.58.99-.68.14-.73.36-.08.29.44-.05.99-.24 1.6-.56.04-.02.06.73.06 1.66v1.69H7.46v-1.64c0-1.51.02-1.63.21-1.56.9.36 1.23.46 1.42.38.17-.07.02-.19-.67-.53-.53-.26-.92-.52-.94-.67-.02-.2.14-.2 2.14-.2 1.73 0 2.16.03 2.16.15m4.93 1.95v2.12h-4.33v-1.93c0-1.06.05-2 .08-2.09.07-.17.38-.2 2.16-.2h2.1v2.1zm4.81-.6c-.05 1.63-.14 1.85-.89 2.4-.29.24-.5.27-1.85.27h-1.51l-.05-2.1-.03-2.06h4.36z" })
|
|
9
9
|
] });
|
|
10
10
|
export {
|
|
11
11
|
SvgIconRbs as default
|
|
@@ -3,9 +3,9 @@ const SvgIconSchoolbook = ({
|
|
|
3
3
|
title,
|
|
4
4
|
titleId,
|
|
5
5
|
...props
|
|
6
|
-
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
7
|
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
-
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M18.02 8.41V6.4H6v2h12.02zm-4 6.01V12.4h-8v2.02h8.02zm-8-5.02v2.02h12V9.4zm14.03-7c1.07 0 1.97.9 1.97 1.98v12.01c0 1.08-.9 2.02-1.98 2.02H6.02L2 22.4V4.38c0-1.08.9-1.97 1.98-1.97h16.05z" })
|
|
9
9
|
] });
|
|
10
10
|
export {
|
|
11
11
|
SvgIconSchoolbook as default
|
|
@@ -3,9 +3,9 @@ const SvgIconScrapbook = ({
|
|
|
3
3
|
title,
|
|
4
4
|
titleId,
|
|
5
5
|
...props
|
|
6
|
-
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
7
|
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
-
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M2.73 17.34v-.1a.32.32 0 0 1 .32-.32h1.36a.32.32 0 0 1 .32.32v.1a.32.32 0 0 1-.32.32H3.05a.32.32 0 0 1-.32-.32m.32-3.01h1.36a.32.32 0 0 0 .32-.32v-.1a.32.32 0 0 0-.32-.32H3.05a.32.32 0 0 0-.32.32v.1a.32.32 0 0 0 .32.32m0-3.32h1.36a.32.32 0 0 0 .32-.32v-.1a.32.32 0 0 0-.32-.32H3.05a.32.32 0 0 0-.32.32v.1a.32.32 0 0 0 .32.32m0-3.37h1.36a.32.32 0 0 0 .32-.32v-.1a.32.32 0 0 0-.32-.31H3.05a.32.32 0 0 0-.32.32v.1a.32.32 0 0 0 .32.31M14.4 4.68l4.39-1.23v4.07a1.8 1.8 0 0 0-1 .05c-.79.27-1.25.96-1.08 1.52s.93.81 1.69.54c.66-.22 1.13-.64 1.13-1.23V1.93c0-.34-.25-.54-.64-.4l-4.74 1.28c-.39.12-.49.34-.49.7v2.07h.74zm-2.35 9.29 4.14 1.14v2.96c-.51.19-1.03.42-1.52.66-.17.1-.22.19-.12.39.22.42.37.88.51 1.32 0 .05.03.1-.02.1l-.05-.05c-.39-.36-.71-.76-1.17-1.13a.95.95 0 0 0-.98-.2c-.71.25-1.45.47-2.16.67-.2.05-.4.12-.6.12-.09-.12-.02-.2 0-.3l1.48-5.41c.07-.3.2-.35.5-.27zm.8 2.55c.35.15.72.05.86-.24s0-.69-.29-.84c-.34-.17-.74-.05-.88.27-.15.27 0 .67.32.81zm-8.12 4.19v-.1a.32.32 0 0 0-.32-.32H3.05a.32.32 0 0 0-.32.32v.1a.32.32 0 0 0 .32.32h1.36a.32.32 0 0 0 .32-.32m16.14-5.02-4.68-1.26v.68l3.85 1.07c.15.02.4 0 .32.27l-1.05 3.87c-.32-.56-.6-1.07-.91-1.54-.71-1.13-.86-1.18-2.14-.74l-.07.03v3.8a.47.47 0 0 1-.47.46h-.58l3.65 1.01c.32.08.44.05.54-.27a560 560 0 0 1 1.86-6.86c.1-.35 0-.42-.32-.52M9.52 20.8c-.32-.1-.42-.17-.35-.51.64-2.28 1.28-4.56 1.9-6.87.07-.32.21-.34.53-.27l4.59 1.27V6.05a.48.48 0 0 0-.47-.47H14.4v3.8c0 .42-.47 1-1.1 1.23-.79.27-1.55.03-1.72-.54s.32-1.25 1.08-1.52a1.8 1.8 0 0 1 1-.05V5.58h-9.3a.48.48 0 0 0-.46.47v.68h.56a.51.51 0 0 1 .47.2c.15.2.17.39.05.61-.1.2-.32.3-.54.3-.17-.03-.34 0-.54 0v2.23h.57c.34 0 .58.22.58.53s-.24.57-.58.57H3.9v2.26h.3c.58 0 .85.17.85.53 0 .4-.25.57-.86.57H3.9v2.23h.56c.42-.02.72.37.57.74-.1.25-.3.37-.57.37H3.9v2.2h.54c.42.03.68.4.54.79-.08.22-.3.37-.62.37-.14.02-.29 0-.46 0v.63c0 .28.22.47.49.47h10.75l-.99-.27c-1.54-.42-3.09-.86-4.63-1.25z" })
|
|
9
9
|
] });
|
|
10
10
|
export {
|
|
11
11
|
SvgIconScrapbook as default
|
|
@@ -3,9 +3,9 @@ const SvgIconSettingsClass = ({
|
|
|
3
3
|
title,
|
|
4
4
|
titleId,
|
|
5
5
|
...props
|
|
6
|
-
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
7
|
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
-
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M12 3.5-.05 8.46l2 .83v9.16h1V9.7L12 13.43l12.03-4.97zm-6.02 8.45v4.4s2.15 2.1 6.01 2.1c1.99 0 3.27-.5 4.3-1.04-.02-.07-.1-.15-.16-.2l-.35-.35c-.19-.19-.07-.55.07-.69l.78-.79c.14-.13.56-.19.69-.05l.34.34c.12.1.2.24.35.18v-3.9l-6.02 2.67zm18.04 7.65v-.96a.35.35 0 0 0-.34-.35h-.5a.38.38 0 0 1-.36-.26c-.04-.15-.11-.3-.18-.44a.4.4 0 0 1 .07-.45l.34-.35a.34.34 0 0 0 0-.48l-.67-.68a.34.34 0 0 0-.48 0l-.35.35a.39.39 0 0 1-.46.06 2.6 2.6 0 0 0-.43-.17.4.4 0 0 1-.27-.37V15a.35.35 0 0 0-.34-.34h-.96a.35.35 0 0 0-.35.35v.49a.38.38 0 0 1-.26.37c-.15.04-.3.1-.44.17a.4.4 0 0 1-.45-.06l-.35-.35a.34.34 0 0 0-.48 0l-.68.68a.34.34 0 0 0 0 .48l.35.35a.39.39 0 0 1 .06.45 2.5 2.5 0 0 0-.17.44.4.4 0 0 1-.37.26h-.5a.35.35 0 0 0-.34.35v.96c0 .19.16.34.35.34h.49c.17 0 .32.11.37.27.04.14.1.29.17.43a.4.4 0 0 1-.06.46l-.35.35a.34.34 0 0 0 0 .48l.68.67a.34.34 0 0 0 .48 0l.35-.34a.39.39 0 0 1 .45-.07c.14.07.28.14.44.18.15.06.26.2.26.37v.49c0 .19.16.34.35.34h.96c.19 0 .34-.15.34-.34v-.5c0-.16.11-.32.27-.36.15-.04.29-.11.43-.18a.4.4 0 0 1 .46.07l.35.34a.34.34 0 0 0 .48 0l.68-.68a.34.34 0 0 0 0-.47l-.35-.35a.39.39 0 0 1-.07-.46 2.5 2.5 0 0 0 .18-.43.4.4 0 0 1 .37-.27h.49c.19 0 .34-.15.34-.34m-4.45 1.3c-.98 0-1.79-.8-1.79-1.78s.8-1.79 1.79-1.79a1.786 1.786 0 0 1 0 3.57" })
|
|
9
9
|
] });
|
|
10
10
|
export {
|
|
11
11
|
SvgIconSettingsClass as default
|
|
@@ -3,9 +3,9 @@ const SvgIconSharebigfiles = ({
|
|
|
3
3
|
title,
|
|
4
4
|
titleId,
|
|
5
5
|
...props
|
|
6
|
-
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
7
|
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
-
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "m20.64 11.1-3.87-6.52a.72.72 0 0 0-.96-.24l-6.5 3.87a.76.76 0 0 0-.3.41.66.66 0 0 0 .07.53l3.85 6.52a.71.71 0 0 0 .6.34.9.9 0 0 0 .36-.1l6.5-3.87c.33-.2.45-.63.26-.94zm-1.56.1-5.29 3.15-3.15-5.3 5.3-3.14zm3.06 1.32a.7.7 0 0 0-.97-.24l-7 4.16a2.28 2.28 0 0 0-1.63-.27L6.36 5.74a.62.62 0 0 0-.46-.32l-3.29-.64c-.36-.08-.75.16-.82.55s.2.74.55.82l2.99.57 6 10.13c-.64.72-.78 1.8-.26 2.66a2.22 2.22 0 0 0 3.08.8 2.23 2.23 0 0 0 .94-2.8l6.8-4.03a.7.7 0 0 0 .25-.96" })
|
|
9
9
|
] });
|
|
10
10
|
export {
|
|
11
11
|
SvgIconSharebigfiles as default
|
|
@@ -3,9 +3,9 @@ const SvgIconStatistics = ({
|
|
|
3
3
|
title,
|
|
4
4
|
titleId,
|
|
5
5
|
...props
|
|
6
|
-
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 28 24", width: "24", height: "24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
7
|
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
-
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M8.59 12.56v6.87H5.15v-6.87h3.43zm5.14-6.88v13.75h-3.41V5.68zM27.5 21.14v1.73H0V2.24h1.7v18.9zM18.9 9.12v10.31h-3.44V9.12zm5.15-5.15v15.46H20.6V3.97h3.44z" })
|
|
9
9
|
] });
|
|
10
10
|
export {
|
|
11
11
|
SvgIconStatistics as default
|
|
@@ -3,9 +3,9 @@ const SvgIconSupport = ({
|
|
|
3
3
|
title,
|
|
4
4
|
titleId,
|
|
5
5
|
...props
|
|
6
|
-
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 21 24", width: "24", height: "24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
7
|
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
-
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M12.02 19v-2.57q0-.2-.12-.32t-.3-.11H9.02q-.2 0-.32.12t-.12.32V19q0 .2.12.31t.32.12h2.57q.2 0 .31-.12t.12-.31m3.44-9.02q0-1.18-.74-2.19t-1.86-1.56-2.28-.55q-3.27 0-4.98 2.86-.21.31.1.58l1.78 1.32q.1.1.24.1.22 0 .34-.17.72-.92 1.15-1.23.46-.34 1.15-.34.65 0 1.16.36t.5.8q0 .5-.26.81t-.91.6q-.85.37-1.57 1.16t-.7 1.68v.48q0 .2.13.32t.3.12h2.58q.2 0 .31-.12t.12-.32q0-.24.3-.65t.71-.67l.68-.38q.24-.14.6-.46t.6-.65.39-.82.16-1.08m5.15 2.58q0 2.8-1.37 5.17t-3.75 3.75-5.17 1.4-5.2-1.4-3.73-3.75T0 12.56t1.4-5.17 3.73-3.76 5.2-1.4 5.17 1.4 3.75 3.76 1.37 5.17z" })
|
|
9
9
|
] });
|
|
10
10
|
export {
|
|
11
11
|
SvgIconSupport as default
|
|
@@ -3,9 +3,9 @@ const SvgIconTimeline = ({
|
|
|
3
3
|
title,
|
|
4
4
|
titleId,
|
|
5
5
|
...props
|
|
6
|
-
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 21 24", width: "24", height: "24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
7
|
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
-
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M13.73 12.56q0-1.42-.99-2.43t-2.42-1.01-2.43 1-1.01 2.44 1 2.42T10.33 16t2.42-1 1-2.43zm6.88-1.47v2.98q0 .17-.1.31t-.26.17l-2.5.39q-.24.72-.5 1.22.45.65 1.41 1.85.15.15.15.32t-.12.31q-.37.5-1.33 1.47t-1.27.94q-.17 0-.34-.12l-1.85-1.45q-.6.32-1.23.5-.21 1.84-.38 2.5-.1.4-.48.4H8.83q-.2 0-.34-.13t-.14-.29L7.96 20q-.65-.22-1.2-.5l-1.9 1.44q-.15.12-.34.12t-.34-.15q-1.68-1.54-2.2-2.26-.1-.12-.1-.31 0-.15.12-.3.19-.28.67-.88t.72-.96q-.36-.68-.55-1.32L.38 14.5q-.16-.03-.26-.17T0 14.02v-2.98q0-.17.12-.31t.24-.17l2.5-.38q.2-.6.53-1.23-.55-.77-1.44-1.85-.15-.17-.15-.34 0-.12.12-.29.36-.48 1.33-1.44t1.27-.96q.17 0 .36.12l1.85 1.44q.58-.31 1.2-.5.22-1.83.41-2.5.08-.39.48-.39h2.99q.16 0 .3.12t.18.29l.36 2.48q.67.21 1.22.48l1.9-1.42q.12-.12.32-.12.17 0 .33.12 1.74 1.6 2.22 2.28.1.12.1.29t-.1.31q-.22.3-.7.9t-.72.95q.36.68.55 1.3l2.45.39q.17.02.3.16t.09.32" })
|
|
9
9
|
] });
|
|
10
10
|
export {
|
|
11
11
|
SvgIconTimeline as default
|
|
@@ -3,9 +3,9 @@ const SvgIconTimelinegenerator = ({
|
|
|
3
3
|
title,
|
|
4
4
|
titleId,
|
|
5
5
|
...props
|
|
6
|
-
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 24", width: "24", height: "24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
7
|
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
-
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M12.5 18.09q1.2 0 2.05.84t.84 2.04-.84 2.05-2.04.84q-1.93 0-2.65-1.78H5.92q-2.12 0-3.15-1.3t-1.04-2.84V6.78Q0 5.96 0 4.14q0-1.2.84-2.05t2.05-.84 2.04.84.84 2.05q0 1.83-1.73 2.64v2.74q0 1.88 1.88 1.88h3.94q.72-1.73 2.65-1.73 1.2 0 2.04.84t.84 2.04-.84 2.05-2.04.84q-1.93 0-2.65-1.78H5.92q-1.01 0-1.88-.39v4.67q0 1.87 1.88 1.87h3.94q.73-1.73 2.65-1.73zm0-7.22q-.67 0-1.17.48t-.5 1.2q0 .68.5 1.16t1.18.48 1.17-.48.5-1.16q0-.72-.5-1.2t-1.17-.48zM1.2 4.14q0 .67.5 1.15t1.18.48 1.18-.48.5-1.15q0-.72-.5-1.2T2.9 2.46t-1.18.48-.5 1.2zM12.5 22.6q.68 0 1.18-.48t.5-1.16q0-.72-.5-1.2t-1.17-.48-1.18.48-.5 1.2q0 .67.5 1.16t1.17.48" })
|
|
9
9
|
] });
|
|
10
10
|
export {
|
|
11
11
|
SvgIconTimelinegenerator as default
|
|
@@ -3,9 +3,9 @@ const SvgIconUserbook = ({
|
|
|
3
3
|
title,
|
|
4
4
|
titleId,
|
|
5
5
|
...props
|
|
6
|
-
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
7
|
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
-
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M0 24.58V.53h24.05v4.28h-2.62V7.1h2.62v4.28h-2.62v2.35h2.62V18h-2.62v2.3h2.62v4.29H0zm4.64-6.85h12.12V14l-4.5-2.67q.9-.46 1.4-1.3t.53-1.85q0-1.4-1.01-2.43T10.7 4.72 8.25 5.75 7.24 8.18q0 1.03.53 1.85t1.4 1.3L4.63 14v3.73z" })
|
|
9
9
|
] });
|
|
10
10
|
export {
|
|
11
11
|
SvgIconUserbook as default
|
|
@@ -3,9 +3,9 @@ const SvgIconVisioconf = ({
|
|
|
3
3
|
title,
|
|
4
4
|
titleId,
|
|
5
5
|
...props
|
|
6
|
-
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
7
|
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
-
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M7.85 4.15c.08 0 .14.15.14.34v15.5c0 .18-.06.34-.14.34s-.14-.16-.14-.34V4.49c0-.19.06-.34.14-.34m.09 5.59v.01a.14.14 0 0 1-.14.14H1.54a.14.14 0 0 1-.14-.14v-.01c0-.08.07-.14.14-.14H7.8c.08 0 .14.06.14.14m-.13 5.18v.01a.14.14 0 0 1-.13.14H1.4a.14.14 0 0 1-.13-.14v-.01c0-.08.06-.14.13-.14h6.27c.07 0 .13.06.13.14zM2.6 19.65l.03-.24a2.1 2.1 0 0 1 .89-1.36c.33.31.72.48 1.17.48s.84-.17 1.17-.48l.2.16c.4.35.64.8.7 1.33l.02.11v.13H2.6zm2.19-4.05.24.05a1.25 1.25 0 1 1-1.57 1.43 1.25 1.25 0 0 1 .97-1.45l.16-.03zm4.97 3.46.08-.63a5.52 5.52 0 0 1 2.34-3.6c.87.82 1.9 1.26 3.1 1.26s2.22-.43 3.1-1.27c.18.14.36.27.53.42a5.46 5.46 0 0 1 1.86 3.54l.04.28v.35H9.74v-.35zm5.78-10.7c.22.04.44.07.66.13a3.32 3.32 0 0 1 2.38 2.84 3.31 3.31 0 0 1-6.56.93 3.31 3.31 0 0 1 2.57-3.83l.43-.08h.52zM2.58 14.64l.04-.24a2.1 2.1 0 0 1 .88-1.36c.33.3.72.47 1.17.47q.675 0 1.17-.48l.2.16c.4.36.64.8.7 1.34l.02.1v.14H2.58zm2.19-4.05.25.05a1.25 1.25 0 1 1-1.58 1.42 1.25 1.25 0 0 1 .97-1.44c.05-.02.1-.02.16-.03zM2.59 9.48l.03-.24a2.1 2.1 0 0 1 .89-1.36c.33.31.72.48 1.17.48s.84-.17 1.17-.48l.2.16c.4.35.64.8.7 1.33l.02.11v.13H2.6v-.13zm2.19-4.05.25.05a1.25 1.25 0 1 1-1.58 1.43 1.25 1.25 0 0 1 .97-1.45l.16-.03zm19.24-.07v13.62a2.01 2.01 0 0 1-2 2h-6.8c0 1.07.8 1.97.8 2.4a.8.8 0 0 1-.8.8H8.8a.8.8 0 0 1-.8-.8c0-.46.8-1.31.8-2.4H2a2 2 0 0 1-2-2V5.36c0-1.1.9-2 2-2h20.02a2 2 0 0 1 2 2m-1.6 13.41V5.47c0-.27-.19-.5-.4-.5H2c-.22 0-.4.23-.4.5v13.3c0 .27.18.51.4.51h20.02c.21 0 .4-.24.4-.51M12.01 2.95a1.1 1.1 0 1 0 0-2.2 1.1 1.1 0 0 0 0 2.2m0-1.94c.05 0 .09.04.09.08s-.04.09-.09.09c-.04 0-.08-.04-.08-.09s.04-.08.08-.08m0 .34a.5.5 0 1 1 0 1.01.5.5 0 0 1 0-1.01m0 .76c.14 0 .25-.12.25-.26a.25.25 0 1 0-.25.26m.73.78a1.26 1.26 0 0 1-1.46 0l-.2.3a.17.17 0 0 0 .14.27h1.58a.17.17 0 0 0 .14-.26z" })
|
|
9
9
|
] });
|
|
10
10
|
export {
|
|
11
11
|
SvgIconVisioconf as default
|
|
@@ -3,9 +3,9 @@ const SvgIconWebsite = ({
|
|
|
3
3
|
title,
|
|
4
4
|
titleId,
|
|
5
5
|
...props
|
|
6
|
-
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
7
|
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
-
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M17.55 14.61c0 1.01.28 1.41 1.03 1.41 1.68 0 2.74-2.13 2.74-5.67 0-5.43-3.94-8.02-8.88-8.02-5.07 0-9.68 3.4-9.68 9.83 0 6.14 4.03 9.49 10.23 9.49 2.1 0 3.52-.23 5.68-.95l.46 1.93c-2.13.69-4.41.89-6.17.89C4.83 23.52.48 19.05.48 12.16.48 5.21 5.52.5 12.48.5c7.23 0 11.06 4.32 11.06 9.62 0 4.5-1.41 7.93-5.85 7.93-2.02 0-3.34-.8-3.52-2.6-.51 2-1.9 2.6-3.77 2.6-2.51 0-4.62-1.93-4.62-5.82 0-3.92 1.85-6.34 5.17-6.34 1.75 0 2.85.69 3.34 1.78l.83-1.52h2.43v8.47zM14 10.81a2.12 2.12 0 0 0-2.16-2.25c-1.07 0-2.25.86-2.25 3.4 0 2.02.9 3.14 2.25 3.14.95 0 2.16-.6 2.16-2.27V10.8z" })
|
|
9
9
|
] });
|
|
10
10
|
export {
|
|
11
11
|
SvgIconWebsite as default
|
|
@@ -3,10 +3,10 @@ const SvgIconWiki = ({
|
|
|
3
3
|
title,
|
|
4
4
|
titleId,
|
|
5
5
|
...props
|
|
6
|
-
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
7
|
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
-
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "
|
|
9
|
-
/* @__PURE__ */ jsx("path", { fill: "currentColor",
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M7.64 14.568c-.82 0-1.533.09-2.114.202a.583.583 0 1 1-.22-1.145 12.3 12.3 0 0 1 2.334-.224c.922 0 1.726.1 2.377.223a.583.583 0 0 1-.216 1.146 11.6 11.6 0 0 0-2.161-.202m-2.114-4.454c.58-.112 1.294-.202 2.114-.202.837 0 1.568.09 2.16.203a.583.583 0 0 0 .217-1.146 13 13 0 0 0-2.377-.223c-.906 0-1.694.1-2.334.223a.583.583 0 1 0 .22 1.145" }),
|
|
9
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M16.595 3.72a18.4 18.4 0 0 1 4.841.62.6.6 0 0 1 .446.58v1.437h.324c.314 0 .569.254.569.568V20.64a.57.57 0 0 1-.71.551 19.8 19.8 0 0 0-5.08-.604h-.001a20 20 0 0 0-4.734.604.6.6 0 0 1-.237.01 29 29 0 0 0-4.742-.43 29.5 29.5 0 0 0-5.254.43.57.57 0 0 1-.666-.561V6.925c0-.314.255-.568.569-.568h.392V4.92a.6.6 0 0 1 .458-.583 20 20 0 0 1 4.539-.566c1.93-.022 3.562.243 4.778.53a18.5 18.5 0 0 1 4.508-.58Zm-5.101 1.677a18.6 18.6 0 0 0-4.172-.426h-.001a18.8 18.8 0 0 0-3.81.426V18.84c1.073-.203 2.35-.36 3.796-.379a20 20 0 0 1 4.187.376zm1.2 13.402a18.6 18.6 0 0 1 3.938-.468c1.61-.014 2.988.206 4.05.463V5.387c-.455-.108-.97-.21-1.54-.293v5.45c0 .32-.33.527-.617.387l-1.26-.61a.41.41 0 0 0-.387.005l-1.059.566a.432.432 0 0 1-.633-.381V4.986c-.956.083-1.795.235-2.492.4V18.8Z" })
|
|
10
10
|
] });
|
|
11
11
|
export {
|
|
12
12
|
SvgIconWiki as default
|
|
@@ -3,9 +3,9 @@ const SvgIconWorkspace = ({
|
|
|
3
3
|
title,
|
|
4
4
|
titleId,
|
|
5
5
|
...props
|
|
6
|
-
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 23 24", width: "24", height: "24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
7
|
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
-
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M22.34 8.68v9.45q0 1.23-.89 2.12t-2.12.89H3.01q-1.23 0-2.12-.89T0 18.13V5.25q0-1.23.9-2.12t2.12-.9h4.3q1.23 0 2.12.9t.89 2.12v.43h9.01q1.23 0 2.12.89t.89 2.11z" })
|
|
9
9
|
] });
|
|
10
10
|
export {
|
|
11
11
|
SvgIconWorkspace as default
|
|
@@ -33,7 +33,6 @@ export { default as IconConnecteurGenerique1 } from './IconConnecteurGenerique1'
|
|
|
33
33
|
export { default as IconConnecteurGenerique2 } from './IconConnecteurGenerique2';
|
|
34
34
|
export { default as IconConversation } from './IconConversation';
|
|
35
35
|
export { default as IconDirectory } from './IconDirectory';
|
|
36
|
-
export { default as IconEdt } from './IconEdt';
|
|
37
36
|
export { default as IconEducagri } from './IconEducagri';
|
|
38
37
|
export { default as IconEdumedia } from './IconEdumedia';
|
|
39
38
|
export { default as IconEdumoov } from './IconEdumoov';
|
|
@@ -45,7 +44,6 @@ export { default as IconEuropress } from './IconEuropress';
|
|
|
45
44
|
export { default as IconExercizer } from './IconExercizer';
|
|
46
45
|
export { default as IconForms } from './IconForms';
|
|
47
46
|
export { default as IconForum } from './IconForum';
|
|
48
|
-
export { default as IconGeogebra } from './IconGeogebra';
|
|
49
47
|
export { default as IconGepi } from './IconGepi';
|
|
50
48
|
export { default as IconGlpi } from './IconGlpi';
|
|
51
49
|
export { default as IconHiboutheque } from './IconHiboutheque';
|
|
@@ -57,13 +55,10 @@ export { default as IconLesechos } from './IconLesechos';
|
|
|
57
55
|
export { default as IconLibrary } from './IconLibrary';
|
|
58
56
|
export { default as IconLsu } from './IconLsu';
|
|
59
57
|
export { default as IconMadmagz } from './IconMadmagz';
|
|
60
|
-
export { default as IconMagneto } from './IconMagneto';
|
|
61
58
|
export { default as IconMatholycee } from './IconMatholycee';
|
|
62
59
|
export { default as IconMaxicours } from './IconMaxicours';
|
|
63
60
|
export { default as IconMediacentre } from './IconMediacentre';
|
|
64
61
|
export { default as IconMindmap } from './IconMindmap';
|
|
65
|
-
export { default as IconMinetest } from './IconMinetest';
|
|
66
|
-
export { default as IconMinibadge } from './IconMinibadge';
|
|
67
62
|
export { default as IconMonorientationenligne } from './IconMonorientationenligne';
|
|
68
63
|
export { default as IconMonstageenligne } from './IconMonstageenligne';
|
|
69
64
|
export { default as IconMoodle } from './IconMoodle';
|
|
@@ -68,7 +68,6 @@ export { default as IconInbox } from './IconInbox';
|
|
|
68
68
|
export { default as IconInfoCircle } from './IconInfoCircle';
|
|
69
69
|
export { default as IconInfoRectangle } from './IconInfoRectangle';
|
|
70
70
|
export { default as IconLandscape } from './IconLandscape';
|
|
71
|
-
export { default as IconLibrary } from './IconLibrary';
|
|
72
71
|
export { default as IconLink } from './IconLink';
|
|
73
72
|
export { default as IconListOrder } from './IconListOrder';
|
|
74
73
|
export { default as IconLoader } from './IconLoader';
|
|
@@ -82,7 +81,6 @@ export { default as IconMic } from './IconMic';
|
|
|
82
81
|
export { default as IconMinus } from './IconMinus';
|
|
83
82
|
export { default as IconMove } from './IconMove';
|
|
84
83
|
export { default as IconNoColors } from './IconNoColors';
|
|
85
|
-
export { default as IconNotification } from './IconNotification';
|
|
86
84
|
export { default as IconOptions } from './IconOptions';
|
|
87
85
|
export { default as IconOrderedList } from './IconOrderedList';
|
|
88
86
|
export { default as IconPaperclip } from './IconPaperclip';
|
|
@@ -130,8 +128,6 @@ export { default as IconSortTime } from './IconSortTime';
|
|
|
130
128
|
export { default as IconSpeechToText } from './IconSpeechToText';
|
|
131
129
|
export { default as IconSplitCells } from './IconSplitCells';
|
|
132
130
|
export { default as IconSquareRoot } from './IconSquareRoot';
|
|
133
|
-
export { default as IconStarFull } from './IconStarFull';
|
|
134
|
-
export { default as IconStar } from './IconStar';
|
|
135
131
|
export { default as IconSubscript } from './IconSubscript';
|
|
136
132
|
export { default as IconSuccessFill } from './IconSuccessFill';
|
|
137
133
|
export { default as IconSuccessOutline } from './IconSuccessOutline';
|
|
@@ -34,15 +34,13 @@ interface ModalOptionsProps {
|
|
|
34
34
|
*/
|
|
35
35
|
closeText?: string;
|
|
36
36
|
}
|
|
37
|
-
export interface OnboardingModalRef {
|
|
38
|
-
setIsOpen: (isOpen: boolean) => void;
|
|
39
|
-
handleSavePreference: () => void;
|
|
40
|
-
}
|
|
41
37
|
interface OnboardingProps {
|
|
42
38
|
id: string;
|
|
43
39
|
items: ModalItemsProps[];
|
|
44
40
|
modalOptions?: ModalOptionsProps;
|
|
45
|
-
isOnboardingChange?: (isOnboarding: boolean) => void;
|
|
46
41
|
}
|
|
47
|
-
declare const OnboardingModal:
|
|
42
|
+
declare const OnboardingModal: {
|
|
43
|
+
({ id, items, modalOptions }: OnboardingProps): import('react').ReactPortal | null;
|
|
44
|
+
displayName: string;
|
|
45
|
+
};
|
|
48
46
|
export default OnboardingModal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { useState, useEffect } from "react";
|
|
3
3
|
import { createPortal } from "react-dom";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import { Pagination } from "swiper/modules";
|
|
@@ -8,12 +8,11 @@ import { useOnboardingModal } from "./useOnboardingModal.js";
|
|
|
8
8
|
import Modal from "../../../components/Modal/Modal.js";
|
|
9
9
|
import Image from "../../../components/Image/Image.js";
|
|
10
10
|
import Button from "../../../components/Button/Button.js";
|
|
11
|
-
const OnboardingModal =
|
|
11
|
+
const OnboardingModal = ({
|
|
12
12
|
id,
|
|
13
13
|
items,
|
|
14
|
-
modalOptions = {}
|
|
15
|
-
|
|
16
|
-
}, ref) => {
|
|
14
|
+
modalOptions = {}
|
|
15
|
+
}) => {
|
|
17
16
|
var _a;
|
|
18
17
|
const [swiperInstance, setSwiperInstance] = useState(), [swiperProgress, setSwiperprogress] = useState(0), {
|
|
19
18
|
isOpen,
|
|
@@ -21,12 +20,7 @@ const OnboardingModal = /* @__PURE__ */ forwardRef(({
|
|
|
21
20
|
setIsOpen,
|
|
22
21
|
handleSavePreference
|
|
23
22
|
} = useOnboardingModal(id);
|
|
24
|
-
|
|
25
|
-
setIsOpen,
|
|
26
|
-
handleSavePreference
|
|
27
|
-
})), useEffect(() => {
|
|
28
|
-
isOnboardingChange && isOnboardingChange(isOnboarding);
|
|
29
|
-
}, [isOnboarding, isOnboardingChange]), useEffect(() => {
|
|
23
|
+
useEffect(() => {
|
|
30
24
|
const link = document.createElement("link");
|
|
31
25
|
return link.href = "https://cdn.jsdelivr.net/npm/swiper@11/swiper-bundle.min.css", link.rel = "stylesheet", link.type = "text/css", document.head.appendChild(link), () => {
|
|
32
26
|
document.head.removeChild(link);
|
|
@@ -39,13 +33,9 @@ const OnboardingModal = /* @__PURE__ */ forwardRef(({
|
|
|
39
33
|
prevText,
|
|
40
34
|
closeText,
|
|
41
35
|
nextText
|
|
42
|
-
} = modalOptions, currentTitle = (swiperInstance == null ? void 0 : swiperInstance.activeIndex) != null && ((_a = items[swiperInstance == null ? void 0 : swiperInstance.activeIndex]) != null && _a.title) ? items[swiperInstance.activeIndex].title : title
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
setIsOpen(!1), setSwiperprogress(0);
|
|
46
|
-
};
|
|
47
|
-
return /* @__PURE__ */ createPortal(/* @__PURE__ */ jsxs(Modal, { id: "onboarding-modal", size: "md", isOpen, focusId: "nextButtonId", onModalClose: handleCloseWithoutPreference, children: [
|
|
48
|
-
/* @__PURE__ */ jsx(Modal.Header, { onModalClose: handleCloseWithoutPreference, children: t(currentTitle || "explorer.modal.onboarding.trash.title") }),
|
|
36
|
+
} = modalOptions, currentTitle = (swiperInstance == null ? void 0 : swiperInstance.activeIndex) != null && ((_a = items[swiperInstance == null ? void 0 : swiperInstance.activeIndex]) != null && _a.title) ? items[swiperInstance.activeIndex].title : title;
|
|
37
|
+
return isOnboarding ? /* @__PURE__ */ createPortal(/* @__PURE__ */ jsxs(Modal, { id: "onboarding-modal", size: "md", isOpen, focusId: "nextButtonId", onModalClose: () => setIsOpen(!1), children: [
|
|
38
|
+
/* @__PURE__ */ jsx(Modal.Header, { onModalClose: () => setIsOpen(!1), centered: !0, children: t(currentTitle || "explorer.modal.onboarding.trash.title") }),
|
|
49
39
|
/* @__PURE__ */ jsx(Modal.Body, { children: /* @__PURE__ */ jsx(Swiper, { modules: [Pagination], onSwiper: (swiper) => {
|
|
50
40
|
setSwiperInstance(swiper);
|
|
51
41
|
}, onSlideChange: (swiper) => {
|
|
@@ -54,20 +44,16 @@ const OnboardingModal = /* @__PURE__ */ forwardRef(({
|
|
|
54
44
|
clickable: !0
|
|
55
45
|
}, children: items.map((item, index) => /* @__PURE__ */ jsxs(SwiperSlide, { children: [
|
|
56
46
|
/* @__PURE__ */ jsx(Image, { width: "270", height: "140", className: "mx-auto my-12", loading: "lazy", src: item.src, alt: t(item.alt) }),
|
|
57
|
-
/* @__PURE__ */ jsx("p", { className: "text-center",
|
|
58
|
-
__html: t(item.text)
|
|
59
|
-
} })
|
|
47
|
+
/* @__PURE__ */ jsx("p", { className: "text-center", children: t(item.text) })
|
|
60
48
|
] }, index)) }) }),
|
|
61
49
|
/* @__PURE__ */ jsxs(Modal.Footer, { children: [
|
|
62
|
-
/* @__PURE__ */ jsx(Button, { type: "button", color: "tertiary", variant: "ghost", onClick:
|
|
50
|
+
/* @__PURE__ */ jsx(Button, { type: "button", color: "tertiary", variant: "ghost", onClick: () => setIsOpen(!1), children: t("explorer.modal.onboarding.trash.later") }),
|
|
63
51
|
swiperProgress > 0 && /* @__PURE__ */ jsx(Button, { type: "button", color: "primary", variant: "outline", onClick: () => swiperInstance.slidePrev(), children: t(prevText || "explorer.modal.onboarding.trash.prev") }),
|
|
64
52
|
swiperProgress < 1 && /* @__PURE__ */ jsx(Button, { id: "nextButtonId", type: "button", color: "primary", variant: "filled", onClick: () => swiperInstance.slideNext(), children: t(nextText || "explorer.modal.onboarding.trash.next") }),
|
|
65
|
-
swiperProgress === 1 && /* @__PURE__ */ jsx(Button, { type: "button", color: "primary", variant: "filled", onClick: ()
|
|
66
|
-
isOnboarding ? handleCloseWithPreference() : handleCloseWithoutPreference();
|
|
67
|
-
}, children: t(closeText || "explorer.modal.onboarding.trash.close") })
|
|
53
|
+
swiperProgress === 1 && /* @__PURE__ */ jsx(Button, { type: "button", color: "primary", variant: "filled", onClick: handleSavePreference, children: t(closeText || "explorer.modal.onboarding.trash.close") })
|
|
68
54
|
] })
|
|
69
|
-
] }), document.getElementById("portal"));
|
|
70
|
-
}
|
|
55
|
+
] }), document.getElementById("portal")) : null;
|
|
56
|
+
};
|
|
71
57
|
export {
|
|
72
58
|
OnboardingModal as default
|
|
73
59
|
};
|
|
@@ -3,7 +3,7 @@ import { odeServices } from "@edifice.io/client";
|
|
|
3
3
|
const getOnboardingTrash = async (key) => await odeServices.conf().getPreference(key), saveOnboardingTrash = async (key) => await odeServices.conf().savePreference(key, JSON.stringify({
|
|
4
4
|
key: !1
|
|
5
5
|
})), useOnboardingModal = (id) => {
|
|
6
|
-
const [isOpen, setIsOpen] = useState(!
|
|
6
|
+
const [isOpen, setIsOpen] = useState(!0), [isOnboarding, setIsOnboarding] = useState(!1);
|
|
7
7
|
return useEffect(() => {
|
|
8
8
|
(async () => {
|
|
9
9
|
const response = await getOnboardingTrash(id);
|
|
@@ -11,17 +11,17 @@ const getOnboardingTrash = async (key) => await odeServices.conf().getPreference
|
|
|
11
11
|
const {
|
|
12
12
|
key
|
|
13
13
|
} = response;
|
|
14
|
-
|
|
14
|
+
setIsOnboarding(key);
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
|
-
setIsOnboarding(!0)
|
|
17
|
+
setIsOnboarding(!0);
|
|
18
18
|
})();
|
|
19
19
|
}, [id]), {
|
|
20
20
|
isOpen,
|
|
21
21
|
setIsOpen,
|
|
22
22
|
isOnboarding,
|
|
23
23
|
handleSavePreference: async () => {
|
|
24
|
-
await saveOnboardingTrash(id), setIsOpen(!1)
|
|
24
|
+
await saveOnboardingTrash(id), setIsOpen(!1);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
};
|