@edifice.io/react 2.2.11-develop-pedago.20250708131559 → 2.2.11-develop-enabling.20250710092201
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/Dropdown/Dropdown.d.ts +4 -10
- package/dist/components/Dropdown/Dropdown.js +8 -24
- package/dist/components/Flex/Flex.d.ts +0 -1
- package/dist/components/Flex/Flex.js +1 -2
- package/dist/components/Layout/Layout.d.ts +1 -5
- package/dist/components/Layout/Layout.js +2 -5
- package/dist/components/SearchBar/SearchBar.d.ts +33 -9
- package/dist/components/SearchBar/SearchBar.js +30 -4
- package/dist/components/Tabs/components/Tabs.d.ts +3 -23
- package/dist/components/Tabs/components/Tabs.js +3 -8
- package/dist/components/Tabs/components/TabsList.d.ts +1 -15
- package/dist/components/Tabs/components/TabsList.js +3 -13
- package/dist/components/Tabs/components/TabsPanel.d.ts +1 -5
- package/dist/components/Tabs/components/TabsPanel.js +3 -7
- package/dist/hooks/useDropdown/useDropdown.d.ts +0 -2
- package/dist/hooks/useDropdown/useDropdown.js +0 -2
- package/dist/hooks/useLibraryUrl/useLibraryUrl.d.ts +1 -1
- package/dist/hooks/useLibraryUrl/useLibraryUrl.js +2 -2
- package/dist/icons-apps.js +174 -164
- package/dist/icons.js +90 -86
- package/dist/index.js +10 -12
- package/dist/modules/editor/components/Toolbar/TableToolbar.AddMenu.js +1 -1
- package/dist/modules/editor/components/Toolbar/TableToolbar.DelMenu.js +1 -1
- package/dist/modules/icons/components/IconLibrary.d.ts +7 -0
- package/dist/modules/icons/components/IconLibrary.js +12 -0
- package/dist/modules/icons/components/IconNotification.d.ts +7 -0
- package/dist/modules/icons/components/IconNotification.js +12 -0
- package/dist/modules/icons/components/IconStar.d.ts +7 -0
- package/dist/modules/icons/components/IconStar.js +13 -0
- package/dist/modules/icons/components/IconStarFavorite.d.ts +7 -0
- package/dist/modules/icons/components/IconStarFull.d.ts +7 -0
- package/dist/modules/icons/components/IconStarFull.js +13 -0
- 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 +3 -2
- 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 +3 -2
- 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/IconEdt.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconEdt.js +12 -0
- package/dist/modules/icons/components/apps/IconExercizer.js +2 -2
- package/dist/modules/icons/components/apps/IconForms.js +2 -6
- package/dist/modules/icons/components/apps/IconForum.js +2 -2
- package/dist/modules/icons/components/apps/IconGeogebra.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconGeogebra.js +12 -0
- package/dist/modules/icons/components/apps/IconLibrary.js +2 -2
- package/dist/modules/icons/components/apps/IconMagneto.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconMagneto.js +13 -0
- 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/IconMinetest.d.ts +7 -0
- package/dist/modules/icons/components/apps/IconMinetest.js +12 -0
- package/dist/modules/icons/components/{IconMegaphone.d.ts → apps/IconMinibadge.d.ts} +2 -2
- package/dist/modules/icons/components/apps/IconMinibadge.js +12 -0
- package/dist/modules/icons/components/apps/IconMoodle.js +2 -2
- package/dist/modules/icons/components/apps/IconNabook.js +2 -4
- 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 +2 -6
- 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 +5 -0
- package/dist/modules/icons/components/index.d.ts +4 -2
- package/dist/modules/modals/OnboardingModal/OnboardingModal.d.ts +6 -4
- package/dist/modules/modals/OnboardingModal/OnboardingModal.js +27 -13
- package/dist/modules/modals/OnboardingModal/index.d.ts +1 -0
- package/dist/modules/modals/OnboardingModal/useOnboardingModal.js +4 -4
- package/dist/modules/multimedia/FileCard/FileCard.d.ts +2 -13
- package/dist/modules/multimedia/FileCard/FileCard.js +5 -15
- package/dist/modules/multimedia/FileCard/FileIcon.d.ts +1 -5
- package/dist/modules/multimedia/FileCard/FileIcon.js +2 -2
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +1 -3
- package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +2 -7
- package/dist/modules/multimedia/index.d.ts +0 -1
- package/dist/multimedia.js +10 -12
- package/package.json +6 -6
- package/dist/modules/icons/components/IconMegaphone.js +0 -12
- package/dist/modules/icons/components/IconNotes.d.ts +0 -7
- package/dist/modules/icons/components/IconNotes.js +0 -13
|
@@ -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", width: "24", height: "24", fill: "none", viewBox: "0 0 50 50", "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: "M6 34.62v-.21a.69.69 0 0 1 .69-.69h3a.69.69 0 0 1 .69.69v.21a.69.69 0 0 1-.69.69h-3a.69.69 0 0 1-.69-.69m.69-6.52h3a.69.69 0 0 0 .69-.69v-.21a.69.69 0 0 0-.69-.69h-3a.69.69 0 0 0-.69.69v.21a.69.69 0 0 0 .69.69m0-7.17h3a.69.69 0 0 0 .69-.69V20a.69.69 0 0 0-.69-.69h-3A.69.69 0 0 0 6 20v.21a.69.69 0 0 0 .69.72m0-7.28h3a.69.69 0 0 0 .69-.69v-.22a.69.69 0 0 0-.69-.69h-3a.69.69 0 0 0-.69.69V13a.69.69 0 0 0 .69.65m24.54-6.42 9.5-2.65v8.8a4 4 0 0 0-2.18.11c-1.7.58-2.7 2.07-2.33 3.29s2 1.75 3.66 1.16c1.43-.47 2.44-1.37 2.44-2.64v-14c0-.75-.53-1.17-1.38-.87L30.7 3.19a1.36 1.36 0 0 0-1.06 1.54v4.46h1.59v-2zm-5.08 20.09 9 2.47v6.4a40 40 0 0 0-3.28 1.43c-.37.21-.48.42-.26.84q.662 1.394 1.11 2.87c0 .11 0 .21-.06.21l-.1-.1C31.66 40.64 31 39.8 30 39a2.06 2.06 0 0 0-2.13-.43c-1.53.53-3.12 1-4.66 1.43-.414.14-.844.227-1.28.26-.21-.26 0-.42 0-.63C23 35.7 24 31.78 25.08 27.91c.16-.64.43-.75 1.07-.59m1.74 5.53a1.322 1.322 0 0 0 1.959-1.046 1.32 1.32 0 0 0-.74-1.294 1.38 1.38 0 0 0-1.91.59 1.33 1.33 0 0 0 .69 1.75m-17.56 9v-.21a.69.69 0 0 0-.69-.64H6.69a.69.69 0 0 0-.69.69v.21a.69.69 0 0 0 .69.69h3a.69.69 0 0 0 .64-.69zM45.23 31a909 909 0 0 1-10.13-2.72v1.46l8.34 2.31c.31 0 .85 0 .69.58-.75 2.76-1.49 5.47-2.29 8.38-.68-1.21-1.27-2.33-2-3.33-1.54-2.45-1.85-2.55-4.61-1.6l-.17.06v8.26a1 1 0 0 1-1 1h-1.23c2.63.73 5.27 1.47 7.9 2.18.69.16 1 .11 1.16-.58 1.33-5 2.65-9.92 4-14.85.21-.74 0-.9-.69-1.11zM20.68 42.13c-.69-.22-.91-.38-.75-1.11 1.38-4.94 2.76-9.87 4.08-14.85.16-.69.48-.75 1.17-.59l9.92 2.75V10.2a1 1 0 0 0-1-1h-2.87v8.22a3.42 3.42 0 0 1-2.39 2.65c-1.69.59-3.34.06-3.71-1.16s.69-2.71 2.33-3.29a3.83 3.83 0 0 1 2.18-.11V9.19H9.53a1 1 0 0 0-1 1v1.48h1.22a1.07 1.07 0 0 1 1 .42 1.11 1.11 0 0 1 .11 1.33 1.29 1.29 0 0 1-1.17.63 9 9 0 0 0-1.16 0v4.83h1.22A1.17 1.17 0 0 1 11 20.06a1.22 1.22 0 0 1-1.27 1.22h-1.2v4.88h.63c1.28 0 1.86.37 1.86 1.16s-.54 1.22-1.86 1.22h-.63v4.83h1.22A1.19 1.19 0 0 1 11 35a1.22 1.22 0 0 1-1.22.79H8.53v4.77h1.16a1.25 1.25 0 0 1 1.17 1.7 1.29 1.29 0 0 1-1.33.74q-.5.045-1 0v1.4a1 1 0 0 0 1.06 1h23.24l-2.13-.58c-3.34-.9-6.69-1.85-10-2.7z" })
|
|
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", width: "24", height: "24", fill: "none", viewBox: "0 0 50 50", "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: "M25 6 1 15.894l4 1.649v18.245h2v-17.42l18 7.42 24-9.894zM13 22.833v8.788s4.293 4.167 12 4.167c3.96 0 6.525-.998 8.563-2.067-.028-.145-.206-.299-.32-.412l-.688-.688c-.376-.375-.13-1.105.136-1.372l1.568-1.574c.267-.267 1.1-.373 1.367-.106l.689.688c.227.206.39.476.685.36v-7.784l-12 5.316zm36 15.243v-1.909a.69.69 0 0 0-.689-.688h-.978a.77.77 0 0 1-.733-.533c-.089-.288-.222-.577-.356-.865a.81.81 0 0 1 .134-.91l.689-.689a.67.67 0 0 0 0-.954l-1.356-1.354a.67.67 0 0 0-.956 0l-.689.688a.77.77 0 0 1-.91.133 5 5 0 0 0-.867-.355.79.79 0 0 1-.534-.732v-.977a.69.69 0 0 0-.689-.688h-1.91a.69.69 0 0 0-.69.688v.977a.77.77 0 0 1-.533.732c-.289.089-.578.222-.867.355a.81.81 0 0 1-.91-.133l-.69-.688a.67.67 0 0 0-.955 0l-1.356 1.354a.67.67 0 0 0 0 .954l.689.688c.244.245.289.6.133.91a5 5 0 0 0-.355.866.79.79 0 0 1-.734.533h-.977a.69.69 0 0 0-.69.688v1.909c0 .377.312.688.69.688h.977c.334 0 .645.222.734.533.089.288.222.577.355.865a.81.81 0 0 1-.133.91l-.689.688a.67.67 0 0 0 0 .955l1.356 1.354a.67.67 0 0 0 .955 0l.69-.688a.77.77 0 0 1 .91-.133c.267.133.556.266.867.355.311.11.533.4.533.732v.977c0 .377.311.688.69.688h1.91c.378 0 .69-.31.69-.688v-.977c0-.333.221-.643.533-.732.288-.089.577-.222.866-.355a.81.81 0 0 1 .911.133l.69.688a.67.67 0 0 0 .955 0l1.356-1.354a.67.67 0 0 0 0-.955l-.69-.688a.77.77 0 0 1-.133-.91c.134-.266.267-.555.356-.865.111-.311.4-.533.733-.533h.978c.378 0 .689-.31.689-.688m-8.89 2.597a3.564 3.564 0 0 1-3.555-3.552c0-1.953 1.6-3.551 3.556-3.551a3.564 3.564 0 0 1 3.555 3.551c0 1.954-1.6 3.552-3.555 3.552" })
|
|
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", width: "24", height: "24", fill: "none", viewBox: "0 0 50 50", "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: "M43.65 23.85 34.93 9.18a1.63 1.63 0 0 0-2.16-.54l-14.61 8.72a1.6 1.6 0 0 0-.7.92 1.47 1.47 0 0 0 .16 1.19l8.66 14.66a1.6 1.6 0 0 0 1.35.76 2 2 0 0 0 .81-.22L43.05 26a1.54 1.54 0 0 0 .6-2.11zm-3.52.22-11.91 7.08-7.08-11.9L33 12.16zM47 27a1.57 1.57 0 0 0-2.16-.54l-15.75 9.4a5.13 5.13 0 0 0-3.68-.59L11.5 11.78a1.36 1.36 0 0 0-1-.7L3.06 9.62a1.58 1.58 0 0 0-1.84 1.24 1.6 1.6 0 0 0 1.25 1.84L9.18 14 22.7 36.78a5.08 5.08 0 1 0 8.45 1.52l15.31-9.09A1.58 1.58 0 0 0 47 27" })
|
|
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", width: "24", height: "24", fill: "none", viewBox: "0 0 50 50", "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: "M16.48 26v11.37h-5.69V26zM25 14.63v22.74h-5.66V14.63zm22.71 25.56v2.86H2.29V9h2.82v31.19zM33.52 20.32v17h-5.68v-17zM42 11.81v25.56h-5.65V11.81z" })
|
|
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", width: "24", height: "24", fill: "none", viewBox: "0 0 50 50", "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: "M28.33 37.5v-5a.8.8 0 0 0-.84-.84h-5a.84.84 0 0 0-.61.23.8.8 0 0 0-.23.61v5a.8.8 0 0 0 .23.61.84.84 0 0 0 .61.23h5a.8.8 0 0 0 .84-.84M35 20a7 7 0 0 0-1.45-4.25 10 10 0 0 0-3.59-3 9.9 9.9 0 0 0-4.43-1.07 10.61 10.61 0 0 0-9.66 5.55.748.748 0 0 0 .19 1.12l3.45 2.56a.6.6 0 0 0 .47.19.75.75 0 0 0 .65-.33 12.9 12.9 0 0 1 2.24-2.37 3.65 3.65 0 0 1 2.24-.66 3.82 3.82 0 0 1 2.24.7 2 2 0 0 1 1 1.54 2.34 2.34 0 0 1-.52 1.59A5 5 0 0 1 26 22.71 8.9 8.9 0 0 0 23 25a4.6 4.6 0 0 0-1.35 3.27v.93a.8.8 0 0 0 .23.61.84.84 0 0 0 .61.23h5a.8.8 0 0 0 .84-.84 2.4 2.4 0 0 1 .56-1.26 4.6 4.6 0 0 1 1.4-1.3c.56-.31 1-.56 1.3-.75a9 9 0 0 0 1.17-.89 7 7 0 0 0 1.16-1.26c.338-.48.592-1.014.75-1.58A8.3 8.3 0 0 0 35 20m10 5a19.6 19.6 0 0 1-2.66 10A19.93 19.93 0 0 1 35 42.31 19.5 19.5 0 0 1 25 45a19.77 19.77 0 0 1-10.07-2.7A19.14 19.14 0 0 1 7.71 35 21.4 21.4 0 0 1 5 25a17.73 17.73 0 0 1 2.71-10 22.26 22.26 0 0 1 7.23-7.28A18.8 18.8 0 0 1 25 5a18.57 18.57 0 0 1 10 2.7 23.2 23.2 0 0 1 7.32 7.3A16.52 16.52 0 0 1 45 25" })
|
|
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", width: "24", height: "24", fill: "none", viewBox: "0 0 50 50", "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: "M31.65 25a6.47 6.47 0 0 0-1.92-4.71 6.3 6.3 0 0 0-4.71-2 6.34 6.34 0 0 0-4.72 2 6.7 6.7 0 0 0-2 4.71 6.2 6.2 0 0 0 2 4.71 6.63 6.63 0 0 0 9.43 0A6 6 0 0 0 31.65 25M45 22.15v5.79a1 1 0 0 1-.19.61.7.7 0 0 1-.51.32l-4.86.75c-.264.82-.599 1.617-1 2.38.6.84 1.51 2 2.76 3.6a.86.86 0 0 1 .28.6.92.92 0 0 1-.24.61 26 26 0 0 1-2.56 2.85c-1.25 1.24-2.07 1.85-2.48 1.82a1.17 1.17 0 0 1-.65-.23L32 38.44a13.2 13.2 0 0 1-2.39 1 46 46 0 0 1-.74 4.86.89.89 0 0 1-.94.75h-5.8a1 1 0 0 1-.66-.24.69.69 0 0 1-.28-.56l-.75-4.81a15.4 15.4 0 0 1-2.33-1l-3.69 2.81a1 1 0 0 1-.65.23.86.86 0 0 1-.65-.28 37 37 0 0 1-4.3-4.39 1 1 0 0 1-.19-.61.88.88 0 0 1 .24-.56c.25-.37.68-1 1.3-1.72s1.09-1.4 1.41-1.87a13.6 13.6 0 0 1-1.08-2.57l-4.76-.7a.69.69 0 0 1-.51-.33 1.3 1.3 0 0 1-.24-.6v-5.79a.92.92 0 0 1 .24-.61.86.86 0 0 1 .46-.32l4.86-.75c.258-.823.593-1.62 1-2.38-.72-1-1.65-2.2-2.81-3.6a1 1 0 0 1-.28-.65 1 1 0 0 1 .24-.56 28.5 28.5 0 0 1 2.57-2.8c1.24-1.25 2.06-1.87 2.47-1.87.25.012.492.091.7.23l3.59 2.81c.742-.415 1.527-.75 2.34-1 .153-1.636.417-3.26.79-4.86a.85.85 0 0 1 .97-.7h5.78a.92.92 0 0 1 .61.24.84.84 0 0 1 .33.56l.7 4.81q1.22.388 2.38.93l3.69-2.76a.8.8 0 0 1 .6-.23c.238.008.469.088.66.23a38 38 0 0 1 4.29 4.44.83.83 0 0 1 .19.56 1 1 0 0 1-.19.61c-.28.37-.73 1-1.35 1.72s-1.09 1.4-1.4 1.87c.434.805.792 1.649 1.07 2.52l4.76.75a.84.84 0 0 1 .56.33.72.72 0 0 1 .19.6z" })
|
|
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", width: "24", height: "24", fill: "none", viewBox: "0 0 50 50", "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: "M34.52 35a5.71 5.71 0 0 1 0 11.42 5.22 5.22 0 0 1-5.24-3.52h-7.8c-2.8 0-4.87-.86-6.24-2.57a8.86 8.86 0 0 1-2.05-5.62V12.58a5.44 5.44 0 0 1-3.42-5.24 5.5 5.5 0 0 1 1.66-4 5.5 5.5 0 0 1 4.05-1.66 5.67 5.67 0 0 1 5.71 5.71 5.44 5.44 0 0 1-3.43 5.24V18q0 3.72 3.72 3.72h7.8a5.22 5.22 0 0 1 5.24-3.43A5.67 5.67 0 0 1 40.23 24a5.67 5.67 0 0 1-5.71 5.71 5.22 5.22 0 0 1-5.24-3.52h-7.8a9 9 0 0 1-3.72-.76v9.23q0 3.72 3.72 3.72h7.8A5.22 5.22 0 0 1 34.52 35m0-14.28a3.27 3.27 0 0 0-2.33.95 3.13 3.13 0 0 0-1 2.38 3 3 0 0 0 1 2.28 3.31 3.31 0 0 0 4.66 0 3 3 0 0 0 1-2.28 3.13 3.13 0 0 0-1-2.38 3.27 3.27 0 0 0-2.33-1zM12.15 7.34a3 3 0 0 0 1 2.28 3.31 3.31 0 0 0 4.66 0 3 3 0 0 0 1-2.28 3.13 3.13 0 0 0-1-2.38 3.33 3.33 0 0 0-4.66 0 3.13 3.13 0 0 0-1 2.38M34.52 43.9a3.27 3.27 0 0 0 2.33-.9 3 3 0 0 0 1-2.29 3.15 3.15 0 0 0-1-2.38 3.33 3.33 0 0 0-4.66 0 3.15 3.15 0 0 0-1 2.38 3 3 0 0 0 1 2.29 3.27 3.27 0 0 0 2.33.9" })
|
|
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", width: "24", height: "24", fill: "none", viewBox: "0 0 50 50", "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: "M6 44.5v-39h39v6.94h-4.25v3.71H45v6.94h-4.25v3.82H45v6.91h-4.25v3.74H45v6.94zm7.5-11.11h19.68v-6.05L25.89 23a5.5 5.5 0 0 0 2.26-2.11 6 6 0 0 0 .86-3A5.47 5.47 0 0 0 27.37 14a5.4 5.4 0 0 0-4-1.68 5.25 5.25 0 0 0-4 1.68 5.63 5.63 0 0 0-1.64 3.94 5.3 5.3 0 0 0 .86 3A6.2 6.2 0 0 0 20.86 23l-7.36 4.34z" })
|
|
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", width: "24", height: "24", fill: "none", viewBox: "0 0 50 50", "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.385 9.223c.146 0 .264.28.264.624V38.29c0 .345-.118.624-.264.624-.145 0-.263-.279-.263-.624V9.847c0-.345.118-.624.263-.624m.163 10.256v.024c0 .14-.112.253-.251.253H5.83a.25.25 0 0 1-.252-.253v-.024c0-.14.113-.252.252-.252h11.467c.139 0 .251.113.251.252m-.231 9.512v.024c0 .139-.113.252-.252.252H5.598a.25.25 0 0 1-.252-.252v-.024c0-.14.113-.253.252-.253h11.467c.139 0 .252.113.252.253m-9.562 8.688c.019-.145.034-.292.06-.436.195-1.056.745-1.881 1.618-2.503.604.574 1.315.876 2.146.875.828 0 1.538-.3 2.148-.878.121.096.248.187.365.29a3.8 3.8 0 0 1 1.286 2.453l.027.2v.239H7.753q.002-.12.002-.24m4.005-7.43c.151.03.305.05.451.091a2.3 2.3 0 0 1-.456 4.505 2.296 2.296 0 0 1-2.433-1.89 2.296 2.296 0 0 1 1.779-2.655c.099-.023.2-.035.3-.051zm9.098 6.348c.052-.385.091-.773.159-1.154.517-2.793 1.972-4.977 4.281-6.622 1.597 1.518 3.48 2.319 5.678 2.315 2.19 0 4.068-.793 5.68-2.322.321.253.657.495.965.768 1.946 1.732 3.092 3.892 3.404 6.488.02.174.048.352.072.527v.634H20.855q.004-.317.003-.634M31.454 16.94c.4.079.806.13 1.194.241 2.372.662 4.127 2.767 4.372 5.227a6.086 6.086 0 0 1-5.578 6.69c-3.08.257-5.915-1.942-6.436-4.997-.562-3.266 1.474-6.31 4.704-7.027.261-.059.53-.09.795-.134zM7.74 28.49c.019-.145.034-.292.06-.436.195-1.056.745-1.881 1.618-2.503.604.574 1.315.876 2.146.875.828 0 1.538-.3 2.148-.878.121.096.248.187.365.29a3.8 3.8 0 0 1 1.287 2.453q.011.1.026.2v.239H7.738q.002-.12.002-.24m4.005-7.43c.151.03.305.05.451.091a2.3 2.3 0 0 1-.456 4.505 2.296 2.296 0 0 1-2.433-1.89 2.296 2.296 0 0 1 1.779-2.655c.099-.023.2-.035.3-.051zm-3.99-2.049c.019-.145.034-.292.06-.436.195-1.056.745-1.881 1.618-2.503.604.574 1.315.876 2.146.875.828 0 1.538-.3 2.148-.878.121.096.248.187.365.29a3.8 3.8 0 0 1 1.286 2.453l.027.2v.239H7.753q.002-.12.002-.24m4.005-7.43c.151.03.305.049.451.09a2.3 2.3 0 0 1-.456 4.505 2.296 2.296 0 0 1-2.433-1.888 2.296 2.296 0 0 1 1.779-2.657c.099-.022.2-.034.3-.05zM47 11.447v24.994c0 2.023-1.652 3.679-3.664 3.679H30.868c0 1.95 1.463 3.606 1.463 4.407A1.48 1.48 0 0 1 30.868 46H19.132a1.48 1.48 0 0 1-1.469-1.472c0-.85 1.469-2.412 1.469-4.413l-12.468.006C4.646 40.121 3 38.465 3 36.442V11.448a3.676 3.676 0 0 1 3.664-3.673h36.672A3.68 3.68 0 0 1 47 11.448M44.067 36.06V11.654c0-.5-.343-.94-.731-.94H6.664c-.388 0-.731.44-.731.94v24.405c0 .5.343.94.731.94h36.672c.388 0 .731-.44.731-.94M24.997 7.024a2.01 2.01 0 0 0 2.006-2.012A2.01 2.01 0 0 0 24.996 3a2.01 2.01 0 0 0-2.007 2.012 2.01 2.01 0 0 0 2.007 2.012m.009-3.564a.155.155 0 0 1 0 .31.155.155 0 0 1 0-.31m-.01.623a.928.928 0 0 1 0 1.858.928.928 0 0 1 0-1.858m0 1.393a.465.465 0 0 0 0-.928.465.465 0 0 0 0 .928m1.339 1.429c-.378.27-.842.429-1.339.429s-.96-.158-1.338-.43l-.366.577a.309.309 0 0 0 .26.475h2.89c.242 0 .39-.27.259-.475z" })
|
|
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", width: "24", height: "24", fill: "none", viewBox: "0 0 50 50", "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: "M34.216 29.344c0 1.68.478 2.35 1.728 2.35 2.786 0 4.56-3.55 4.56-9.454 0-9.024-6.576-13.344-14.786-13.344-8.446 0-16.128 5.664-16.128 16.368 0 10.224 6.72 15.792 17.04 15.792 3.504 0 5.856-.384 9.454-1.584l.772 3.214c-3.552 1.154-7.348 1.488-10.274 1.488-13.536 0-20.786-7.44-20.786-18.912 0-11.568 8.402-19.44 19.97-19.44 12.048 0 18.43 7.2 18.43 16.032 0 7.488-2.35 13.2-9.742 13.2-3.362 0-5.568-1.344-5.856-4.322-.864 3.312-3.168 4.322-6.29 4.322-4.176 0-7.68-3.218-7.68-9.696 0-6.528 3.074-10.56 8.594-10.56 2.928 0 4.752 1.152 5.564 2.976l1.394-2.544h4.032v14.114zm-5.902-6.336c0-2.638-1.97-3.744-3.602-3.744-1.776 0-3.742 1.438-3.742 5.664 0 3.36 1.488 5.232 3.742 5.232 1.584 0 3.602-1.008 3.602-3.792z" })
|
|
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 50 50", "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", d: "
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", d: "M15.503 29.741c-1.76 0-3.292.195-4.539.435a1.252 1.252 0 1 1-.473-2.46 26.5 26.5 0 0 1 5.012-.479c1.979 0 3.706.214 5.105.479a1.252 1.252 0 0 1-.466 2.46 25 25 0 0 0-4.639-.435M10.964 20.18a24 24 0 0 1 4.539-.435c1.798 0 3.367.195 4.639.435a1.252 1.252 0 0 0 .466-2.46 27.5 27.5 0 0 0-5.105-.48c-1.945 0-3.637.215-5.012.48a1.252 1.252 0 0 0 .473 2.46" }),
|
|
9
|
+
/* @__PURE__ */ jsx("path", { fill: "currentColor", fillRule: "evenodd", d: "M34.73 6.45a39.6 39.6 0 0 1 10.395 1.331c.564.15.957.661.957 1.245v3.085h.697c.674 0 1.221.547 1.221 1.221V42.78a1.22 1.22 0 0 1-1.524 1.183 42.4 42.4 0 0 0-10.908-1.297h-.002a43 43 0 0 0-10.164 1.298c-.166.042-.34.048-.51.019a62.6 62.6 0 0 0-10.18-.92 63.4 63.4 0 0 0-11.283.92A1.22 1.22 0 0 1 2 42.78V13.333c0-.675.547-1.222 1.221-1.222h.841V9.026c0-.594.406-1.11.983-1.252a43 43 0 0 1 9.747-1.215 42.5 42.5 0 0 1 10.26 1.139A39.7 39.7 0 0 1 34.73 6.45m-10.952 3.6a40 40 0 0 0-8.958-.915h-.002c-3.2.03-5.973.437-8.18.916v28.861a47 47 0 0 1 8.15-.813c3.62-.05 6.517.325 8.99.808zm2.577 28.776a40 40 0 0 1 8.455-1.003c3.457-.03 6.416.44 8.696.992V10.03a37 37 0 0 0-3.307-.63v11.703a.918.918 0 0 1-1.323.83l-2.707-1.31a.88.88 0 0 0-.83.011l-2.273 1.215a.927.927 0 0 1-1.36-.818V9.168a37 37 0 0 0-5.351.861z", clipRule: "evenodd" })
|
|
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", width: "24", height: "24", fill: "none", viewBox: "0 0 50 50", "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: "M45.6 20.46v17.43a5.6 5.6 0 0 1-5.54 5.54H9.94A5.3 5.3 0 0 1 6 41.79a5.3 5.3 0 0 1-1.64-3.9V14.11A5.3 5.3 0 0 1 6 10.21a5.3 5.3 0 0 1 3.9-1.64h7.94a5.3 5.3 0 0 1 3.9 1.64 5.3 5.3 0 0 1 1.65 3.9v.8h16.67a5.6 5.6 0 0 1 5.54 5.55" })
|
|
9
9
|
] });
|
|
10
10
|
export {
|
|
11
11
|
SvgIconWorkspace as default
|
|
@@ -33,6 +33,7 @@ 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';
|
|
36
37
|
export { default as IconEducagri } from './IconEducagri';
|
|
37
38
|
export { default as IconEdumedia } from './IconEdumedia';
|
|
38
39
|
export { default as IconEdumoov } from './IconEdumoov';
|
|
@@ -44,6 +45,7 @@ export { default as IconEuropress } from './IconEuropress';
|
|
|
44
45
|
export { default as IconExercizer } from './IconExercizer';
|
|
45
46
|
export { default as IconForms } from './IconForms';
|
|
46
47
|
export { default as IconForum } from './IconForum';
|
|
48
|
+
export { default as IconGeogebra } from './IconGeogebra';
|
|
47
49
|
export { default as IconGepi } from './IconGepi';
|
|
48
50
|
export { default as IconGlpi } from './IconGlpi';
|
|
49
51
|
export { default as IconHiboutheque } from './IconHiboutheque';
|
|
@@ -55,10 +57,13 @@ export { default as IconLesechos } from './IconLesechos';
|
|
|
55
57
|
export { default as IconLibrary } from './IconLibrary';
|
|
56
58
|
export { default as IconLsu } from './IconLsu';
|
|
57
59
|
export { default as IconMadmagz } from './IconMadmagz';
|
|
60
|
+
export { default as IconMagneto } from './IconMagneto';
|
|
58
61
|
export { default as IconMatholycee } from './IconMatholycee';
|
|
59
62
|
export { default as IconMaxicours } from './IconMaxicours';
|
|
60
63
|
export { default as IconMediacentre } from './IconMediacentre';
|
|
61
64
|
export { default as IconMindmap } from './IconMindmap';
|
|
65
|
+
export { default as IconMinetest } from './IconMinetest';
|
|
66
|
+
export { default as IconMinibadge } from './IconMinibadge';
|
|
62
67
|
export { default as IconMonorientationenligne } from './IconMonorientationenligne';
|
|
63
68
|
export { default as IconMonstageenligne } from './IconMonstageenligne';
|
|
64
69
|
export { default as IconMoodle } from './IconMoodle';
|
|
@@ -68,13 +68,13 @@ 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';
|
|
71
72
|
export { default as IconLink } from './IconLink';
|
|
72
73
|
export { default as IconListOrder } from './IconListOrder';
|
|
73
74
|
export { default as IconLoader } from './IconLoader';
|
|
74
75
|
export { default as IconLock } from './IconLock';
|
|
75
76
|
export { default as IconMailRecall } from './IconMailRecall';
|
|
76
77
|
export { default as IconMail } from './IconMail';
|
|
77
|
-
export { default as IconMegaphone } from './IconMegaphone';
|
|
78
78
|
export { default as IconMergeCells } from './IconMergeCells';
|
|
79
79
|
export { default as IconMessageInfo } from './IconMessageInfo';
|
|
80
80
|
export { default as IconMicOff } from './IconMicOff';
|
|
@@ -82,7 +82,7 @@ export { default as IconMic } from './IconMic';
|
|
|
82
82
|
export { default as IconMinus } from './IconMinus';
|
|
83
83
|
export { default as IconMove } from './IconMove';
|
|
84
84
|
export { default as IconNoColors } from './IconNoColors';
|
|
85
|
-
export { default as
|
|
85
|
+
export { default as IconNotification } from './IconNotification';
|
|
86
86
|
export { default as IconOptions } from './IconOptions';
|
|
87
87
|
export { default as IconOrderedList } from './IconOrderedList';
|
|
88
88
|
export { default as IconPaperclip } from './IconPaperclip';
|
|
@@ -130,6 +130,8 @@ export { default as IconSortTime } from './IconSortTime';
|
|
|
130
130
|
export { default as IconSpeechToText } from './IconSpeechToText';
|
|
131
131
|
export { default as IconSplitCells } from './IconSplitCells';
|
|
132
132
|
export { default as IconSquareRoot } from './IconSquareRoot';
|
|
133
|
+
export { default as IconStarFull } from './IconStarFull';
|
|
134
|
+
export { default as IconStar } from './IconStar';
|
|
133
135
|
export { default as IconSubscript } from './IconSubscript';
|
|
134
136
|
export { default as IconSuccessFill } from './IconSuccessFill';
|
|
135
137
|
export { default as IconSuccessOutline } from './IconSuccessOutline';
|
|
@@ -34,13 +34,15 @@ interface ModalOptionsProps {
|
|
|
34
34
|
*/
|
|
35
35
|
closeText?: string;
|
|
36
36
|
}
|
|
37
|
+
export interface OnboardingModalRef {
|
|
38
|
+
setIsOpen: (isOpen: boolean) => void;
|
|
39
|
+
handleSavePreference: () => void;
|
|
40
|
+
}
|
|
37
41
|
interface OnboardingProps {
|
|
38
42
|
id: string;
|
|
39
43
|
items: ModalItemsProps[];
|
|
40
44
|
modalOptions?: ModalOptionsProps;
|
|
45
|
+
isOnboardingChange?: (isOnboarding: boolean) => void;
|
|
41
46
|
}
|
|
42
|
-
declare const OnboardingModal:
|
|
43
|
-
({ id, items, modalOptions }: OnboardingProps): import('react').ReactPortal | null;
|
|
44
|
-
displayName: string;
|
|
45
|
-
};
|
|
47
|
+
declare const OnboardingModal: import('react').ForwardRefExoticComponent<OnboardingProps & import('react').RefAttributes<OnboardingModalRef>>;
|
|
46
48
|
export default OnboardingModal;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useState, useEffect } from "react";
|
|
2
|
+
import { forwardRef, useState, useImperativeHandle, 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,11 +8,12 @@ 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 = /* @__PURE__ */ forwardRef(({
|
|
12
12
|
id,
|
|
13
13
|
items,
|
|
14
|
-
modalOptions = {}
|
|
15
|
-
|
|
14
|
+
modalOptions = {},
|
|
15
|
+
isOnboardingChange
|
|
16
|
+
}, ref) => {
|
|
16
17
|
var _a;
|
|
17
18
|
const [swiperInstance, setSwiperInstance] = useState(), [swiperProgress, setSwiperprogress] = useState(0), {
|
|
18
19
|
isOpen,
|
|
@@ -20,7 +21,12 @@ const OnboardingModal = ({
|
|
|
20
21
|
setIsOpen,
|
|
21
22
|
handleSavePreference
|
|
22
23
|
} = useOnboardingModal(id);
|
|
23
|
-
|
|
24
|
+
useImperativeHandle(ref, () => ({
|
|
25
|
+
setIsOpen,
|
|
26
|
+
handleSavePreference
|
|
27
|
+
})), useEffect(() => {
|
|
28
|
+
isOnboardingChange && isOnboardingChange(isOnboarding);
|
|
29
|
+
}, [isOnboarding, isOnboardingChange]), useEffect(() => {
|
|
24
30
|
const link = document.createElement("link");
|
|
25
31
|
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), () => {
|
|
26
32
|
document.head.removeChild(link);
|
|
@@ -33,9 +39,13 @@ const OnboardingModal = ({
|
|
|
33
39
|
prevText,
|
|
34
40
|
closeText,
|
|
35
41
|
nextText
|
|
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
|
-
|
|
38
|
-
|
|
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, handleCloseWithPreference = () => {
|
|
43
|
+
handleSavePreference(), setSwiperprogress(0);
|
|
44
|
+
}, handleCloseWithoutPreference = () => {
|
|
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") }),
|
|
39
49
|
/* @__PURE__ */ jsx(Modal.Body, { children: /* @__PURE__ */ jsx(Swiper, { modules: [Pagination], onSwiper: (swiper) => {
|
|
40
50
|
setSwiperInstance(swiper);
|
|
41
51
|
}, onSlideChange: (swiper) => {
|
|
@@ -44,16 +54,20 @@ const OnboardingModal = ({
|
|
|
44
54
|
clickable: !0
|
|
45
55
|
}, children: items.map((item, index) => /* @__PURE__ */ jsxs(SwiperSlide, { children: [
|
|
46
56
|
/* @__PURE__ */ jsx(Image, { width: "270", height: "140", className: "mx-auto my-12", loading: "lazy", src: item.src, alt: t(item.alt) }),
|
|
47
|
-
/* @__PURE__ */ jsx("p", { className: "text-center",
|
|
57
|
+
/* @__PURE__ */ jsx("p", { className: "text-center", dangerouslySetInnerHTML: {
|
|
58
|
+
__html: t(item.text)
|
|
59
|
+
} })
|
|
48
60
|
] }, index)) }) }),
|
|
49
61
|
/* @__PURE__ */ jsxs(Modal.Footer, { children: [
|
|
50
|
-
/* @__PURE__ */ jsx(Button, { type: "button", color: "tertiary", variant: "ghost", onClick:
|
|
62
|
+
/* @__PURE__ */ jsx(Button, { type: "button", color: "tertiary", variant: "ghost", onClick: handleCloseWithoutPreference, children: t("explorer.modal.onboarding.trash.later") }),
|
|
51
63
|
swiperProgress > 0 && /* @__PURE__ */ jsx(Button, { type: "button", color: "primary", variant: "outline", onClick: () => swiperInstance.slidePrev(), children: t(prevText || "explorer.modal.onboarding.trash.prev") }),
|
|
52
64
|
swiperProgress < 1 && /* @__PURE__ */ jsx(Button, { id: "nextButtonId", type: "button", color: "primary", variant: "filled", onClick: () => swiperInstance.slideNext(), children: t(nextText || "explorer.modal.onboarding.trash.next") }),
|
|
53
|
-
swiperProgress === 1 && /* @__PURE__ */ jsx(Button, { type: "button", color: "primary", variant: "filled", onClick:
|
|
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") })
|
|
54
68
|
] })
|
|
55
|
-
] }), document.getElementById("portal"))
|
|
56
|
-
};
|
|
69
|
+
] }), document.getElementById("portal"));
|
|
70
|
+
});
|
|
57
71
|
export {
|
|
58
72
|
OnboardingModal as default
|
|
59
73
|
};
|
|
@@ -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(!1), [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
|
-
setIsOnboarding(key);
|
|
14
|
+
key === !0 && setIsOpen(!0), setIsOnboarding(key);
|
|
15
15
|
return;
|
|
16
16
|
}
|
|
17
|
-
setIsOnboarding(!0);
|
|
17
|
+
setIsOnboarding(!0), setIsOpen(!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), setIsOnboarding(!1);
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
27
|
};
|
|
@@ -1,24 +1,13 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
1
|
import { WorkspaceElement } from '@edifice.io/client';
|
|
3
2
|
import { CardProps } from '../../../components';
|
|
4
3
|
export interface FileCardProps extends CardProps {
|
|
5
4
|
/**
|
|
6
5
|
* WorkspaceElement
|
|
7
|
-
*/
|
|
6
|
+
* */
|
|
8
7
|
doc: WorkspaceElement;
|
|
9
|
-
/**
|
|
10
|
-
* Custom icon to override the default based on file type
|
|
11
|
-
* Can be a string or a React node
|
|
12
|
-
*/
|
|
13
|
-
customIcon?: ReactNode;
|
|
14
|
-
/**
|
|
15
|
-
* Custom color class to override the default based on file type
|
|
16
|
-
* Example: "bg-purple-300" or any valid CSS class
|
|
17
|
-
*/
|
|
18
|
-
customColor?: string;
|
|
19
8
|
}
|
|
20
9
|
declare const FileCard: {
|
|
21
|
-
({ doc, isClickable, isSelectable, isSelected, onClick, className,
|
|
10
|
+
({ doc, isClickable, isSelectable, isSelected, onClick, className, }: FileCardProps): import("react/jsx-runtime").JSX.Element;
|
|
22
11
|
displayName: string;
|
|
23
12
|
};
|
|
24
13
|
export default FileCard;
|
|
@@ -15,21 +15,11 @@ const FileCard = ({
|
|
|
15
15
|
isSelectable = !1,
|
|
16
16
|
isSelected = !1,
|
|
17
17
|
onClick,
|
|
18
|
-
className
|
|
19
|
-
onSelect,
|
|
20
|
-
isFocused,
|
|
21
|
-
app,
|
|
22
|
-
customIcon,
|
|
23
|
-
customColor
|
|
18
|
+
className
|
|
24
19
|
}) => {
|
|
20
|
+
var _a;
|
|
25
21
|
const ref = useRef(null), type = DocumentHelper.getRole(doc);
|
|
26
22
|
function getRoleMap(type2) {
|
|
27
|
-
if (customIcon !== void 0 || customColor !== void 0)
|
|
28
|
-
return {
|
|
29
|
-
icon: customIcon || /* @__PURE__ */ jsx(SvgIconTextPage, { width: 22, height: 22 }),
|
|
30
|
-
color: customColor || "bg-gray-300",
|
|
31
|
-
hasShadow: !1
|
|
32
|
-
};
|
|
33
23
|
const roleMappings = {
|
|
34
24
|
csv: {
|
|
35
25
|
icon: ".CSV",
|
|
@@ -82,17 +72,17 @@ const FileCard = ({
|
|
|
82
72
|
};
|
|
83
73
|
return roleMappings[type2] || roleMappings.unknown;
|
|
84
74
|
}
|
|
85
|
-
const
|
|
75
|
+
const file = clsx("file position-relative rounded", ((_a = getRoleMap(type ?? "default")) == null ? void 0 : _a.color) ?? "bg-yellow-200"), mediaSrc = type === "img" || type === "video" ? odeServices.workspace().getThumbnailUrl(doc) : null, hasThumbnail = useThumbnail(mediaSrc, {
|
|
86
76
|
ref
|
|
87
77
|
}), imageStyles = hasThumbnail && {
|
|
88
78
|
backgroundImage: `url(${mediaSrc})`,
|
|
89
79
|
backgroundSize: "cover"
|
|
90
80
|
};
|
|
91
|
-
return /* @__PURE__ */ jsx(Card, { className: clsx("card-file", className), isClickable, isSelectable, isSelected, onClick,
|
|
81
|
+
return /* @__PURE__ */ jsx(Card, { className: clsx("card-file", className), isClickable, isSelectable, isSelected, onClick, children: /* @__PURE__ */ jsxs(Card.Body, { space: "8", children: [
|
|
92
82
|
/* @__PURE__ */ jsx("div", { ref, className: file, style: {
|
|
93
83
|
aspectRatio: "16/10",
|
|
94
84
|
...imageStyles
|
|
95
|
-
}, children: type !== "img" || type === "img" && !hasThumbnail ? /* @__PURE__ */ jsx(FileIcon, { type, roleMap }) : null }),
|
|
85
|
+
}, children: type !== "img" || type === "img" && !hasThumbnail ? /* @__PURE__ */ jsx(FileIcon, { type, roleMap: getRoleMap(type) }) : null }),
|
|
96
86
|
/* @__PURE__ */ jsxs("div", { className: "mt-4", children: [
|
|
97
87
|
/* @__PURE__ */ jsx(Card.Text, { children: doc.name }),
|
|
98
88
|
/* @__PURE__ */ jsx(Card.Text, { className: "text-black-50", children: doc == null ? void 0 : doc.ownerName })
|