@edifice.io/react 2.6.2-develop-integration.20260820103059 → 2.6.2-develop-integration-crna.20260820104716

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 (50) hide show
  1. package/dist/components/Alert/Alert.js +1 -1
  2. package/dist/components/DatePicker/DatePicker.d.ts +5 -0
  3. package/dist/components/DatePicker/DatePicker.js +2 -0
  4. package/dist/components/Layout/Layout.js +5 -3
  5. package/dist/hooks/index.d.ts +0 -1
  6. package/dist/icons.js +340 -338
  7. package/dist/index.js +146 -152
  8. package/dist/modules/homepage/components/Communities/Communities.d.ts +10 -0
  9. package/dist/modules/homepage/components/Communities/CommunitiesContainer.d.ts +9 -0
  10. package/dist/modules/homepage/components/Communities/CommunitiesSkeleton.d.ts +5 -0
  11. package/dist/modules/homepage/components/Communities/CommunityItem.d.ts +11 -0
  12. package/dist/modules/homepage/components/Communities/index.d.ts +8 -0
  13. package/dist/modules/homepage/components/Communities/useCommunities.d.ts +13 -0
  14. package/dist/modules/homepage/components/Favorites/Favorites.js +1 -1
  15. package/dist/modules/homepage/components/HomeCard/HomeCard.d.ts +5 -1
  16. package/dist/modules/homepage/components/HomeCard/HomeCard.js +10 -2
  17. package/dist/modules/homepage/components/LastInfos/LastInfosList.js +2 -2
  18. package/dist/modules/homepage/components/Notifications/NotificationList.js +2 -2
  19. package/dist/modules/homepage/components/Notifications/components/NotificationItemResource.d.ts +2 -1
  20. package/dist/modules/homepage/components/Notifications/components/NotificationItemResource.js +3 -2
  21. package/dist/modules/homepage/components/Notifications/components/UserNotificationItem.js +1 -1
  22. package/dist/modules/homepage/components/Notifications/components/notificationAdapter.d.ts +21 -7
  23. package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +26 -13
  24. package/dist/modules/homepage/components/SchoolSpace/SchoolSpace.js +20 -11
  25. package/dist/modules/homepage/components/UserSpace/UserSpace.js +5 -2
  26. package/dist/modules/homepage/components/UserSpace/hooks/useChildren.d.ts +14 -0
  27. package/dist/modules/homepage/components/UserSpace/hooks/useChildren.js +23 -0
  28. package/dist/modules/homepage/components/UserSpace/hooks/useProfileLinks.d.ts +8 -0
  29. package/dist/modules/homepage/components/UserSpace/hooks/useProfileLinks.js +65 -0
  30. package/dist/modules/icons/components/IconClass.d.ts +7 -0
  31. package/dist/modules/icons/components/IconClass.js +13 -0
  32. package/dist/modules/icons/components/index.d.ts +1 -0
  33. package/dist/modules/multimedia/FileCard/index.d.ts +0 -2
  34. package/dist/modules/multimedia/MediaLibrary/MediaLibrary.d.ts +2 -2
  35. package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +7 -20
  36. package/dist/modules/multimedia/MediaLibrary/innertabs/index.d.ts +0 -1
  37. package/dist/modules/multimedia/MediaLibrary/innertabs/index.js +0 -2
  38. package/dist/modules/multimedia/index.d.ts +0 -1
  39. package/dist/multimedia.js +12 -16
  40. package/package.json +6 -6
  41. package/dist/hooks/useNextcloudSearch/index.d.ts +0 -1
  42. package/dist/hooks/useNextcloudSearch/useNextcloudSearch.d.ts +0 -12
  43. package/dist/hooks/useNextcloudSearch/useNextcloudSearch.js +0 -56
  44. package/dist/modules/multimedia/FileCard/NextcloudFileCard.d.ts +0 -25
  45. package/dist/modules/multimedia/FileCard/NextcloudFileCard.js +0 -105
  46. package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.d.ts +0 -1
  47. package/dist/modules/multimedia/MediaLibrary/innertabs/Nextcloud.js +0 -35
  48. package/dist/modules/multimedia/Nextcloud/Nextcloud.d.ts +0 -24
  49. package/dist/modules/multimedia/Nextcloud/Nextcloud.js +0 -109
  50. package/dist/modules/multimedia/Nextcloud/index.d.ts +0 -2
@@ -64,7 +64,7 @@ const Alert = /* @__PURE__ */ forwardRef(({
64
64
  }, divContainerClasses = clsx("alert gap-12", mapping[type].classModifier, toastClasses, confirmClasses, position, className);
65
65
  return /* @__PURE__ */ jsx(Fragment, { children: isVisible ? /* @__PURE__ */ jsxs("div", { ref: refAlert, className: divContainerClasses, role: "alert", children: [
66
66
  !isConfirm && mapping[type].icon,
67
- /* @__PURE__ */ jsx("div", { className: "alert-content small", children }),
67
+ /* @__PURE__ */ jsx("div", { className: "alert-content small flex-grow-1", children }),
68
68
  button && /* @__PURE__ */ jsxs("div", { className: "ms-12", children: [
69
69
  button,
70
70
  " ",
@@ -28,6 +28,11 @@ export interface DatePickerProps extends Omit<React.HTMLAttributes<HTMLElement>,
28
28
  * Maximum selectable date
29
29
  */
30
30
  maxDate?: Date;
31
+ /**
32
+ * Disables the input and prevents the calendar popup from opening.
33
+ * @default false
34
+ */
35
+ disabled?: boolean;
31
36
  }
32
37
  /**
33
38
  * Type for DatePicker ref
@@ -17,6 +17,7 @@ const DatePicker = /* @__PURE__ */ forwardRef(({
17
17
  dateFormat = "DD / MM / YYYY",
18
18
  minDate,
19
19
  maxDate,
20
+ disabled,
20
21
  ...htmlProps
21
22
  }, ref) => {
22
23
  const handleChange = (date) => {
@@ -27,6 +28,7 @@ const DatePicker = /* @__PURE__ */ forwardRef(({
27
28
  format: dateFormat,
28
29
  minDate: minDate ? dayjs(minDate) : void 0,
29
30
  maxDate: maxDate ? dayjs(maxDate) : void 0,
31
+ disabled,
30
32
  ref,
31
33
  // Cast necessary because AntDatePicker expects a specific type, but our API exposes only HTMLElement to avoid dependency on Ant Design-specific features.
32
34
  ...htmlProps
@@ -1,4 +1,4 @@
1
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Suspense, lazy } from "react";
3
3
  import clsx from "clsx";
4
4
  import { Toaster } from "react-hot-toast";
@@ -22,7 +22,7 @@ const HeaderV2 = /* @__PURE__ */ lazy(() => import("../../modules/homepage/compo
22
22
  }) => {
23
23
  const {
24
24
  theme
25
- } = useEdificeTheme(), override = useUiOverride("layout.header"), isHeaderV2 = (override == null ? void 0 : override.variant) === "v2", {
25
+ } = useEdificeTheme(), override = useUiOverride("layout.header"), isHeaderV2 = (override == null ? void 0 : override.variant) === "v2", backgroundOverride = useUiOverride("layout.background"), hasBackgroundImage = (backgroundOverride == null ? void 0 : backgroundOverride.variant) === "image", {
26
26
  toggleOverlay
27
27
  } = useOverlay(), {
28
28
  t
@@ -40,7 +40,9 @@ const HeaderV2 = /* @__PURE__ */ lazy(() => import("../../modules/homepage/compo
40
40
  }, className), renderHeader = headless ? null : isHeaderV2 ? /* @__PURE__ */ jsx(Suspense, { fallback: null, children: /* @__PURE__ */ jsx(HeaderV2, { src: theme == null ? void 0 : theme.basePath, dataProduct: override == null ? void 0 : override.theme, onNotificationsClick: toggleOverlay }) }) : /* @__PURE__ */ jsx(Header, { is1d: theme == null ? void 0 : theme.is1d, src: theme == null ? void 0 : theme.basePath }), renderNotificationsOverlay = !headless && isHeaderV2 && /* @__PURE__ */ jsx(HeaderNotificationsOverlay, {}), renderCookies = showCookiesConsent && /* @__PURE__ */ jsx(Alert, { type: "info", className: "m-12 rgpd", isConfirm: !0, position: "bottom-right", button: /* @__PURE__ */ jsx(Button, { color: "tertiary", variant: "ghost", onClick: handleConsultCookies, children: t("rgpd.cookies.banner.button.consult") }), onClose: handleCloseCookiesConsent, children: t("rgpd.cookies.banner.text1") }), renderToaster = /* @__PURE__ */ jsx(Toaster, { containerClassName: "toaster-container", toastOptions: {
41
41
  position: "top-right"
42
42
  } });
43
- return /* @__PURE__ */ jsxs(Fragment, { children: [
43
+ return /* @__PURE__ */ jsxs("div", { className: clsx("layout", {
44
+ "layout-has-background-image": hasBackgroundImage
45
+ }), "data-product": hasBackgroundImage ? backgroundOverride == null ? void 0 : backgroundOverride.theme : void 0, children: [
44
46
  renderHeader,
45
47
  renderNotificationsOverlay,
46
48
  /* @__PURE__ */ jsx("main", { className: classes, ...restProps, children }),
@@ -22,7 +22,6 @@ export * from './useIsAdmlcOrAdmc';
22
22
  export * from './useKeyPress';
23
23
  export * from './useLibraryUrl';
24
24
  export * from './useMediaLibrary';
25
- export * from './useNextcloudSearch';
26
25
  export * from './usePublicConf';
27
26
  export * from './useScreeb';
28
27
  export * from './useScrollToTop';