@edifice.io/react 2.5.23-develop.20260623163340 → 2.5.23-fix-query-params.20260623180310
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/AppIcon/AppIcon.js +1 -4
- package/dist/components/Avatar/Avatar.d.ts +1 -1
- package/dist/components/Avatar/Avatar.js +1 -2
- package/dist/components/Flex/Flex.js +1 -5
- package/dist/components/Logo/index.d.ts +1 -1
- package/dist/components/index.d.ts +0 -4
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/useEdificeIcons/useEdificeIcons.js +9 -10
- package/dist/icons-nav.js +28 -38
- package/dist/index.js +202 -215
- package/dist/modules/icons/components/nav/index.d.ts +0 -5
- package/dist/modules/modals/OnboardingModal/index.d.ts +1 -1
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.d.ts +7 -0
- package/package.json +8 -13
- package/dist/components/BetaSwitch/BetaSwitch.d.ts +0 -13
- package/dist/components/BetaSwitch/BetaSwitch.js +0 -27
- package/dist/components/BetaSwitch/index.d.ts +0 -1
- package/dist/components/ButtonBeta/ButtonBeta.d.ts +0 -47
- package/dist/components/ButtonBeta/ButtonBeta.js +0 -34
- package/dist/components/ButtonBeta/index.d.ts +0 -2
- package/dist/components/LogoBeta/LogoBeta.d.ts +0 -7
- package/dist/components/LogoBeta/LogoBeta.js +0 -14
- package/dist/components/LogoBeta/index.d.ts +0 -2
- package/dist/components/PageLayout/PageLayout.d.ts +0 -45
- package/dist/components/PageLayout/PageLayout.js +0 -94
- package/dist/components/PageLayout/PageLayoutContext.d.ts +0 -14
- package/dist/components/PageLayout/PageLayoutContext.js +0 -8
- package/dist/components/PageLayout/components/PageLayoutBreadcrumb.d.ts +0 -9
- package/dist/components/PageLayout/components/PageLayoutBreadcrumb.js +0 -10
- package/dist/components/PageLayout/components/PageLayoutContent.d.ts +0 -9
- package/dist/components/PageLayout/components/PageLayoutContent.js +0 -18
- package/dist/components/PageLayout/components/PageLayoutHeader.d.ts +0 -10
- package/dist/components/PageLayout/components/PageLayoutHeader.js +0 -18
- package/dist/components/PageLayout/components/PageLayoutOverlay.d.ts +0 -15
- package/dist/components/PageLayout/components/PageLayoutOverlay.js +0 -51
- package/dist/components/PageLayout/components/PageLayoutSidebarLeft.d.ts +0 -9
- package/dist/components/PageLayout/components/PageLayoutSidebarLeft.js +0 -18
- package/dist/components/PageLayout/components/PageLayoutSidebarRight.d.ts +0 -9
- package/dist/components/PageLayout/components/PageLayoutSidebarRight.js +0 -18
- package/dist/components/PageLayout/hook/useOverlay.d.ts +0 -5
- package/dist/components/PageLayout/hook/useOverlay.js +0 -15
- package/dist/components/PageLayout/index.d.ts +0 -4
- package/dist/components/PageLayout/store/overlayStore.d.ts +0 -15
- package/dist/components/PageLayout/store/overlayStore.js +0 -12
- package/dist/homepage.js +0 -34
- package/dist/modules/homepage/components/Favorites/Favorites.d.ts +0 -6
- package/dist/modules/homepage/components/Favorites/Favorites.js +0 -28
- package/dist/modules/homepage/components/Favorites/FavoritesContainer.d.ts +0 -4
- package/dist/modules/homepage/components/Favorites/FavoritesContainer.js +0 -10
- package/dist/modules/homepage/components/Favorites/index.d.ts +0 -2
- package/dist/modules/homepage/components/Header/Header.d.ts +0 -9
- package/dist/modules/homepage/components/Header/Header.js +0 -80
- package/dist/modules/homepage/components/Header/index.d.ts +0 -2
- package/dist/modules/homepage/components/HomeCard/HomeCard.d.ts +0 -37
- package/dist/modules/homepage/components/HomeCard/HomeCard.js +0 -17
- package/dist/modules/homepage/components/HomeCard/HomeCardContent.d.ts +0 -7
- package/dist/modules/homepage/components/HomeCard/HomeCardContent.js +0 -10
- package/dist/modules/homepage/components/HomeCard/HomeCardHeader.d.ts +0 -18
- package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +0 -22
- package/dist/modules/homepage/components/HomeCard/index.d.ts +0 -4
- package/dist/modules/homepage/components/LastInfos/LastInfos.d.ts +0 -49
- package/dist/modules/homepage/components/LastInfos/LastInfos.js +0 -58
- package/dist/modules/homepage/components/LastInfos/LastInfosContainer.d.ts +0 -4
- package/dist/modules/homepage/components/LastInfos/LastInfosContainer.js +0 -37
- package/dist/modules/homepage/components/LastInfos/LastInfosList.d.ts +0 -13
- package/dist/modules/homepage/components/LastInfos/LastInfosList.js +0 -31
- package/dist/modules/homepage/components/LastInfos/index.d.ts +0 -4
- package/dist/modules/homepage/components/LastInfos/useLastInfos.d.ts +0 -18
- package/dist/modules/homepage/components/LastInfos/useLastInfos.js +0 -25
- package/dist/modules/homepage/components/MessageFlashList/MessageFlash.d.ts +0 -12
- package/dist/modules/homepage/components/MessageFlashList/MessageFlash.js +0 -65
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashList.d.ts +0 -12
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashList.js +0 -10
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashListContainer.d.ts +0 -5
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashListContainer.js +0 -14
- package/dist/modules/homepage/components/MessageFlashList/hooks/useMessageFlashList.d.ts +0 -16
- package/dist/modules/homepage/components/MessageFlashList/hooks/useMessageFlashList.js +0 -19
- package/dist/modules/homepage/components/MessageFlashList/index.d.ts +0 -4
- package/dist/modules/homepage/components/MessageFlashList/services/api/index.d.ts +0 -4
- package/dist/modules/homepage/components/MessageFlashList/services/api/index.js +0 -5
- package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.d.ts +0 -20
- package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.js +0 -21
- package/dist/modules/homepage/components/MessageFlashList/services/queries/messagesFlash.d.ts +0 -13
- package/dist/modules/homepage/components/MessageFlashList/services/queries/messagesFlash.js +0 -31
- package/dist/modules/homepage/components/Notifications/Notification.d.ts +0 -20
- package/dist/modules/homepage/components/Notifications/Notification.js +0 -16
- package/dist/modules/homepage/components/Notifications/NotificationList.d.ts +0 -18
- package/dist/modules/homepage/components/Notifications/NotificationList.js +0 -44
- package/dist/modules/homepage/components/Notifications/NotificationListContainer.d.ts +0 -9
- package/dist/modules/homepage/components/Notifications/NotificationListContainer.js +0 -20
- package/dist/modules/homepage/components/Notifications/NotificationListSkeleton.d.ts +0 -5
- package/dist/modules/homepage/components/Notifications/NotificationListSkeleton.js +0 -17
- package/dist/modules/homepage/components/Notifications/NotificationSkeleton.d.ts +0 -3
- package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +0 -19
- package/dist/modules/homepage/components/Notifications/components/NotificationItem.d.ts +0 -24
- package/dist/modules/homepage/components/Notifications/components/NotificationItem.js +0 -28
- package/dist/modules/homepage/components/Notifications/components/NotificationResource.d.ts +0 -15
- package/dist/modules/homepage/components/Notifications/components/NotificationResource.js +0 -19
- package/dist/modules/homepage/components/Notifications/components/SystemNotification.d.ts +0 -15
- package/dist/modules/homepage/components/Notifications/components/SystemNotification.js +0 -20
- package/dist/modules/homepage/components/Notifications/components/UserNotification.d.ts +0 -15
- package/dist/modules/homepage/components/Notifications/components/UserNotification.js +0 -25
- package/dist/modules/homepage/components/Notifications/components/notificationAdapter.d.ts +0 -27
- package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +0 -53
- package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.d.ts +0 -20
- package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +0 -26
- package/dist/modules/homepage/components/Notifications/index.d.ts +0 -6
- package/dist/modules/homepage/components/Notifications/services/api/index.d.ts +0 -4
- package/dist/modules/homepage/components/Notifications/services/api/index.js +0 -5
- package/dist/modules/homepage/components/Notifications/services/api/notificationService.d.ts +0 -15
- package/dist/modules/homepage/components/Notifications/services/api/notificationService.js +0 -22
- package/dist/modules/homepage/components/Notifications/services/queries/notification.d.ts +0 -20
- package/dist/modules/homepage/components/Notifications/services/queries/notification.js +0 -40
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpace.d.ts +0 -15
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpace.js +0 -29
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.d.ts +0 -4
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js +0 -13
- package/dist/modules/homepage/components/SchoolSpace/index.d.ts +0 -3
- package/dist/modules/homepage/components/SchoolSpace/useUserSchools.d.ts +0 -6
- package/dist/modules/homepage/components/SchoolSpace/useUserSchools.js +0 -39
- package/dist/modules/homepage/components/UserSpace/UserSpace.d.ts +0 -13
- package/dist/modules/homepage/components/UserSpace/UserSpace.js +0 -28
- package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.d.ts +0 -7
- package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.js +0 -19
- package/dist/modules/homepage/components/UserSpace/index.d.ts +0 -3
- package/dist/modules/homepage/components/index.d.ts +0 -8
- package/dist/modules/homepage/hooks/useWidget.d.ts +0 -6
- package/dist/modules/homepage/hooks/useWidget.js +0 -83
- package/dist/modules/homepage/hooks/useWidgetPreferences.d.ts +0 -6
- package/dist/modules/homepage/hooks/useWidgetPreferences.js +0 -34
- package/dist/modules/homepage/index.d.ts +0 -1
- package/dist/modules/icons/components/nav/IconCommunitiesBeta.d.ts +0 -7
- package/dist/modules/icons/components/nav/IconCommunitiesBeta.js +0 -18
- package/dist/modules/icons/components/nav/IconHomeBeta.d.ts +0 -7
- package/dist/modules/icons/components/nav/IconHomeBeta.js +0 -13
- package/dist/modules/icons/components/nav/IconMessagesBeta.d.ts +0 -7
- package/dist/modules/icons/components/nav/IconMessagesBeta.js +0 -18
- package/dist/modules/icons/components/nav/IconMyAppsBeta.d.ts +0 -7
- package/dist/modules/icons/components/nav/IconMyAppsBeta.js +0 -13
- package/dist/modules/icons/components/nav/IconNotificationBeta.d.ts +0 -7
- package/dist/modules/icons/components/nav/IconNotificationBeta.js +0 -14
- package/dist/utilities/create-selectors/createSelectors.d.ts +0 -10
- package/dist/utilities/create-selectors/createSelectors.js +0 -11
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useTranslation } from "react-i18next";
|
|
3
|
-
import SvgIconArrowRight from "../../modules/icons/components/IconArrowRight.js";
|
|
4
|
-
import useBreakpoint from "../../hooks/useBreakpoint/useBreakpoint.js";
|
|
5
|
-
import Flex from "../Flex/Flex.js";
|
|
6
|
-
import ButtonBeta from "../ButtonBeta/ButtonBeta.js";
|
|
7
|
-
const BetaSwitch = ({
|
|
8
|
-
isSwitching = !1,
|
|
9
|
-
onSwitchClick
|
|
10
|
-
}) => {
|
|
11
|
-
const {
|
|
12
|
-
t
|
|
13
|
-
} = useTranslation(), {
|
|
14
|
-
md
|
|
15
|
-
} = useBreakpoint();
|
|
16
|
-
return /* @__PURE__ */ jsxs(Flex, { direction: md ? "row" : "column", gap: "8", className: "beta-switch", children: [
|
|
17
|
-
/* @__PURE__ */ jsxs("p", { children: [
|
|
18
|
-
/* @__PURE__ */ jsx("strong", { children: t("betaSwitch.title") }),
|
|
19
|
-
" ",
|
|
20
|
-
/* @__PURE__ */ jsx("span", { children: t("betaSwitch.description") })
|
|
21
|
-
] }),
|
|
22
|
-
/* @__PURE__ */ jsx(ButtonBeta, { "data-testid": "beta-switch-button", isLoading: isSwitching, disabled: isSwitching, onClick: onSwitchClick, rightIcon: /* @__PURE__ */ jsx(SvgIconArrowRight, {}), children: t("betaSwitch.button") })
|
|
23
|
-
] });
|
|
24
|
-
};
|
|
25
|
-
export {
|
|
26
|
-
BetaSwitch
|
|
27
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { BetaSwitch } from './BetaSwitch';
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export type ButtonBetaRef = HTMLButtonElement;
|
|
3
|
-
export type ButtonBetaColor = 'default' | 'destructive' | 'secondary' | 'tertiary';
|
|
4
|
-
export type ButtonBetaVariant = 'filled' | 'outline' | 'ghost';
|
|
5
|
-
export interface ButtonBetaProps extends React.ComponentPropsWithRef<'button'> {
|
|
6
|
-
/**
|
|
7
|
-
* `button`, `submit` or `reset`
|
|
8
|
-
*/
|
|
9
|
-
type?: 'button' | 'submit' | 'reset';
|
|
10
|
-
/**
|
|
11
|
-
* `default`, `destructive`, `secondary` or `tertiary`
|
|
12
|
-
*/
|
|
13
|
-
color?: ButtonBetaColor;
|
|
14
|
-
/**
|
|
15
|
-
* `filled`, `outline` or `ghost`
|
|
16
|
-
*/
|
|
17
|
-
variant?: ButtonBetaVariant;
|
|
18
|
-
/**
|
|
19
|
-
* Does it has a text ?
|
|
20
|
-
*/
|
|
21
|
-
children?: ReactNode;
|
|
22
|
-
/**
|
|
23
|
-
* Display Icon Component to the left
|
|
24
|
-
*/
|
|
25
|
-
leftIcon?: ReactNode;
|
|
26
|
-
/**
|
|
27
|
-
* Display Icon Component to the right
|
|
28
|
-
*/
|
|
29
|
-
rightIcon?: ReactNode;
|
|
30
|
-
/**
|
|
31
|
-
* Is it loading ?
|
|
32
|
-
*/
|
|
33
|
-
isLoading?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* Disabled status
|
|
36
|
-
*/
|
|
37
|
-
disabled?: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Optional class for styling purpose
|
|
40
|
-
*/
|
|
41
|
-
className?: string;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Primary UI component for user interaction (edifice2d design system)
|
|
45
|
-
*/
|
|
46
|
-
declare const ButtonBeta: import('react').ForwardRefExoticComponent<Omit<ButtonBetaProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
47
|
-
export default ButtonBeta;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import Loading from "../Loading/Loading.js";
|
|
5
|
-
const ButtonBeta = /* @__PURE__ */ forwardRef(({
|
|
6
|
-
color = "default",
|
|
7
|
-
type = "button",
|
|
8
|
-
variant = "filled",
|
|
9
|
-
children,
|
|
10
|
-
isLoading,
|
|
11
|
-
leftIcon,
|
|
12
|
-
rightIcon,
|
|
13
|
-
className,
|
|
14
|
-
...restProps
|
|
15
|
-
}, ref) => {
|
|
16
|
-
const hasIcon = !!(leftIcon || rightIcon), classes = clsx("btn-beta", `btn-beta-${color}`, {
|
|
17
|
-
"btn-beta--outline": variant === "outline",
|
|
18
|
-
"btn-beta--ghost": variant === "ghost",
|
|
19
|
-
"btn-beta--icon-only": !children,
|
|
20
|
-
"btn-beta--with-icon": hasIcon && !!children,
|
|
21
|
-
"btn-beta--loading": isLoading
|
|
22
|
-
}, className);
|
|
23
|
-
return /* @__PURE__ */ jsxs("button", { ref, "data-testid": "button-beta", className: classes, type, ...restProps, children: [
|
|
24
|
-
isLoading && /* @__PURE__ */ jsx(Loading, { isLoading: !0 }),
|
|
25
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
|
26
|
-
leftIcon,
|
|
27
|
-
children,
|
|
28
|
-
rightIcon
|
|
29
|
-
] })
|
|
30
|
-
] });
|
|
31
|
-
});
|
|
32
|
-
export {
|
|
33
|
-
ButtonBeta as default
|
|
34
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef } from "react";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
const LogoBeta = /* @__PURE__ */ forwardRef(({
|
|
5
|
-
src,
|
|
6
|
-
is1d,
|
|
7
|
-
translate = "Retour accueil"
|
|
8
|
-
}, ref) => {
|
|
9
|
-
const classes = clsx("navbar-brand");
|
|
10
|
-
return /* @__PURE__ */ jsx("a", { ref, className: classes, href: "/timeline/timeline", "aria-label": translate, children: /* @__PURE__ */ jsx("img", { className: "logo", src, alt: `logo ${is1d ? "ONE" : "NEO"}`, width: "300", height: "52" }) });
|
|
11
|
-
});
|
|
12
|
-
export {
|
|
13
|
-
LogoBeta as default
|
|
14
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
import { NoPaddingConfig, PageLayoutScrollMode, PageLayoutVariant } from './PageLayoutContext';
|
|
3
|
-
export interface PageLayoutProps extends ComponentPropsWithoutRef<'div'> {
|
|
4
|
-
children: ReactNode;
|
|
5
|
-
/** Layout variant: "centered" (default) centers everything in a max-width container,
|
|
6
|
-
* "fullpage" extends sidebars to screen edges with centered content */
|
|
7
|
-
variant?: PageLayoutVariant;
|
|
8
|
-
/** Add a gap between sidebars and content */
|
|
9
|
-
withGap?: boolean;
|
|
10
|
-
/** Scroll mode: "columns" — each column scrolls independently (header not fixed),
|
|
11
|
-
* "page" — normal page scroll with sticky breadcrumb (header not fixed) */
|
|
12
|
-
scrollMode?: PageLayoutScrollMode;
|
|
13
|
-
/** Disable padding on specific columns */
|
|
14
|
-
noPadding?: NoPaddingConfig;
|
|
15
|
-
}
|
|
16
|
-
declare const PageLayout: {
|
|
17
|
-
({ children, variant, withGap, scrollMode, noPadding, className, ...props }: PageLayoutProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
displayName: string;
|
|
19
|
-
} & {
|
|
20
|
-
Header: {
|
|
21
|
-
({ children, className, onNotificationsClick, ...props }: import('./components/PageLayoutHeader').PageLayoutHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
displayName: string;
|
|
23
|
-
};
|
|
24
|
-
Breadcrumb: {
|
|
25
|
-
({ children, className, ...props }: import('./components/PageLayoutBreadcrumb').PageLayoutBreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
displayName: string;
|
|
27
|
-
};
|
|
28
|
-
SidebarLeft: {
|
|
29
|
-
({ children, className, ...props }: import('./components/PageLayoutSidebarLeft').PageLayoutSidebarLeftProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
displayName: string;
|
|
31
|
-
};
|
|
32
|
-
Content: {
|
|
33
|
-
({ children, className, ...props }: import('./components/PageLayoutContent').PageLayoutContentProps): import("react/jsx-runtime").JSX.Element;
|
|
34
|
-
displayName: string;
|
|
35
|
-
};
|
|
36
|
-
SidebarRight: {
|
|
37
|
-
({ children, className, ...props }: import('./components/PageLayoutSidebarRight').PageLayoutSidebarRightProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
displayName: string;
|
|
39
|
-
};
|
|
40
|
-
Overlay: {
|
|
41
|
-
({ children, onClose, closeButton, backdrop, className, ...props }: import('./components/PageLayoutOverlay').PageLayoutOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
-
displayName: string;
|
|
43
|
-
};
|
|
44
|
-
};
|
|
45
|
-
export default PageLayout;
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo, Children, isValidElement } from "react";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import PageLayoutBreadcrumb from "./components/PageLayoutBreadcrumb.js";
|
|
5
|
-
import PageLayoutContent from "./components/PageLayoutContent.js";
|
|
6
|
-
import PageLayoutHeader from "./components/PageLayoutHeader.js";
|
|
7
|
-
import PageLayoutOverlay from "./components/PageLayoutOverlay.js";
|
|
8
|
-
import PageLayoutSidebarLeft from "./components/PageLayoutSidebarLeft.js";
|
|
9
|
-
import PageLayoutSidebarRight from "./components/PageLayoutSidebarRight.js";
|
|
10
|
-
import { PageLayoutContext } from "./PageLayoutContext.js";
|
|
11
|
-
function analyzeChildren(children) {
|
|
12
|
-
let hasLeftSidebar = !1, hasRightSidebar = !1, breadcrumb = null, overlay = null;
|
|
13
|
-
const headerChildren = [], mainChildren = [];
|
|
14
|
-
return Children.toArray(children).forEach((child) => {
|
|
15
|
-
if (/* @__PURE__ */ isValidElement(child))
|
|
16
|
-
switch (child.type) {
|
|
17
|
-
case PageLayoutHeader:
|
|
18
|
-
headerChildren.push(child);
|
|
19
|
-
break;
|
|
20
|
-
case PageLayoutBreadcrumb:
|
|
21
|
-
breadcrumb = child;
|
|
22
|
-
break;
|
|
23
|
-
case PageLayoutOverlay:
|
|
24
|
-
overlay = child;
|
|
25
|
-
break;
|
|
26
|
-
case PageLayoutSidebarLeft:
|
|
27
|
-
hasLeftSidebar = !0, mainChildren.push(child);
|
|
28
|
-
break;
|
|
29
|
-
case PageLayoutSidebarRight:
|
|
30
|
-
hasRightSidebar = !0, mainChildren.push(child);
|
|
31
|
-
break;
|
|
32
|
-
case PageLayoutContent:
|
|
33
|
-
mainChildren.push(child);
|
|
34
|
-
break;
|
|
35
|
-
default:
|
|
36
|
-
mainChildren.push(child);
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
}), {
|
|
40
|
-
hasLeftSidebar,
|
|
41
|
-
hasRightSidebar,
|
|
42
|
-
breadcrumb,
|
|
43
|
-
overlay,
|
|
44
|
-
headerChildren,
|
|
45
|
-
mainChildren
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
const Root = ({
|
|
49
|
-
children,
|
|
50
|
-
variant = "centered",
|
|
51
|
-
withGap = !1,
|
|
52
|
-
scrollMode,
|
|
53
|
-
noPadding,
|
|
54
|
-
className,
|
|
55
|
-
...props
|
|
56
|
-
}) => {
|
|
57
|
-
const contextValue = useMemo(() => ({
|
|
58
|
-
variant,
|
|
59
|
-
scrollMode,
|
|
60
|
-
noPadding
|
|
61
|
-
}), [variant, scrollMode, noPadding]), {
|
|
62
|
-
hasLeftSidebar,
|
|
63
|
-
hasRightSidebar,
|
|
64
|
-
breadcrumb,
|
|
65
|
-
overlay,
|
|
66
|
-
headerChildren,
|
|
67
|
-
mainChildren
|
|
68
|
-
} = analyzeChildren(children), mainAreaClasses = clsx("pagelayout-mainarea", {
|
|
69
|
-
"has-both-sidebars": hasLeftSidebar && hasRightSidebar,
|
|
70
|
-
"has-left-sidebar-only": hasLeftSidebar && !hasRightSidebar,
|
|
71
|
-
"has-right-sidebar-only": !hasLeftSidebar && hasRightSidebar,
|
|
72
|
-
"has-gap": withGap
|
|
73
|
-
}), isFullpage = variant === "fullpage";
|
|
74
|
-
return /* @__PURE__ */ jsx(PageLayoutContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs("div", { className: clsx("pagelayout", `pagelayout-${variant}`, scrollMode && `pagelayout-scroll-${scrollMode}`, className), ...props, children: [
|
|
75
|
-
headerChildren,
|
|
76
|
-
headerChildren.length > 0 && /* @__PURE__ */ jsx("div", { className: "pagelayout-headerspacer" }),
|
|
77
|
-
!isFullpage && breadcrumb,
|
|
78
|
-
/* @__PURE__ */ jsxs("div", { className: mainAreaClasses, children: [
|
|
79
|
-
isFullpage && breadcrumb,
|
|
80
|
-
mainChildren
|
|
81
|
-
] }),
|
|
82
|
-
overlay
|
|
83
|
-
] }) });
|
|
84
|
-
}, PageLayout = Object.assign(Root, {
|
|
85
|
-
Header: PageLayoutHeader,
|
|
86
|
-
Breadcrumb: PageLayoutBreadcrumb,
|
|
87
|
-
SidebarLeft: PageLayoutSidebarLeft,
|
|
88
|
-
Content: PageLayoutContent,
|
|
89
|
-
SidebarRight: PageLayoutSidebarRight,
|
|
90
|
-
Overlay: PageLayoutOverlay
|
|
91
|
-
});
|
|
92
|
-
export {
|
|
93
|
-
PageLayout as default
|
|
94
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export type PageLayoutVariant = 'centered' | 'fullpage';
|
|
2
|
-
export type PageLayoutScrollMode = 'columns' | 'page';
|
|
3
|
-
export interface NoPaddingConfig {
|
|
4
|
-
sidebarLeft?: boolean;
|
|
5
|
-
content?: boolean;
|
|
6
|
-
sidebarRight?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export interface PageLayoutContextValue {
|
|
9
|
-
variant: PageLayoutVariant;
|
|
10
|
-
scrollMode?: PageLayoutScrollMode;
|
|
11
|
-
noPadding?: NoPaddingConfig;
|
|
12
|
-
}
|
|
13
|
-
export declare const PageLayoutContext: import('react').Context<PageLayoutContextValue>;
|
|
14
|
-
export declare const usePageLayout: () => PageLayoutContextValue;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
export interface PageLayoutBreadcrumbProps extends ComponentPropsWithoutRef<'div'> {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
}
|
|
5
|
-
declare const PageLayoutBreadcrumb: {
|
|
6
|
-
({ children, className, ...props }: PageLayoutBreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
9
|
-
export default PageLayoutBreadcrumb;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
const PageLayoutBreadcrumb = ({
|
|
4
|
-
children,
|
|
5
|
-
className,
|
|
6
|
-
...props
|
|
7
|
-
}) => /* @__PURE__ */ jsx("div", { className: clsx("pagelayout-breadcrumb", className), ...props, children });
|
|
8
|
-
export {
|
|
9
|
-
PageLayoutBreadcrumb as default
|
|
10
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
export interface PageLayoutContentProps extends ComponentPropsWithoutRef<'main'> {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
}
|
|
5
|
-
declare const PageLayoutContent: {
|
|
6
|
-
({ children, className, ...props }: PageLayoutContentProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
9
|
-
export default PageLayoutContent;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import { usePageLayout } from "../PageLayoutContext.js";
|
|
4
|
-
const PageLayoutContent = ({
|
|
5
|
-
children,
|
|
6
|
-
className,
|
|
7
|
-
...props
|
|
8
|
-
}) => {
|
|
9
|
-
const {
|
|
10
|
-
noPadding
|
|
11
|
-
} = usePageLayout();
|
|
12
|
-
return /* @__PURE__ */ jsx("main", { className: clsx("pagelayout-content", {
|
|
13
|
-
"pagelayout-content--no-padding": noPadding == null ? void 0 : noPadding.content
|
|
14
|
-
}, className), ...props, children });
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
PageLayoutContent as default
|
|
18
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
export interface PageLayoutHeaderProps extends ComponentPropsWithoutRef<'header'> {
|
|
3
|
-
children?: ReactNode;
|
|
4
|
-
onNotificationsClick?: () => void;
|
|
5
|
-
}
|
|
6
|
-
declare const PageLayoutHeader: {
|
|
7
|
-
({ children, className, onNotificationsClick, ...props }: PageLayoutHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
displayName: string;
|
|
9
|
-
};
|
|
10
|
-
export default PageLayoutHeader;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import Header from "../../../modules/homepage/components/Header/Header.js";
|
|
4
|
-
import { useEdificeTheme } from "../../../providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
|
|
5
|
-
const PageLayoutHeader = ({
|
|
6
|
-
children,
|
|
7
|
-
className,
|
|
8
|
-
onNotificationsClick,
|
|
9
|
-
...props
|
|
10
|
-
}) => {
|
|
11
|
-
const {
|
|
12
|
-
theme
|
|
13
|
-
} = useEdificeTheme();
|
|
14
|
-
return /* @__PURE__ */ jsx("header", { className: clsx("pagelayout-header", className), ...props, children: children ?? /* @__PURE__ */ jsx(Header, { src: theme == null ? void 0 : theme.basePath, onNotificationsClick }) });
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
PageLayoutHeader as default
|
|
18
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
export interface PageLayoutOverlayProps extends ComponentPropsWithoutRef<'aside'> {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
/** Called when the overlay requests to be closed (e.g. clicking the backdrop) */
|
|
5
|
-
onClose?: () => void;
|
|
6
|
-
/** Show a close button inside the overlay. Defaults to true. */
|
|
7
|
-
closeButton?: boolean;
|
|
8
|
-
/** Show a backdrop behind the overlay. Defaults to false. */
|
|
9
|
-
backdrop?: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare const PageLayoutOverlay: {
|
|
12
|
-
({ children, onClose, closeButton, backdrop, className, ...props }: PageLayoutOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
displayName: string;
|
|
14
|
-
};
|
|
15
|
-
export default PageLayoutOverlay;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect } from "react";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import { useTranslation } from "react-i18next";
|
|
5
|
-
import SvgIconClose from "../../../modules/icons/components/IconClose.js";
|
|
6
|
-
import { useOverlay } from "../hook/useOverlay.js";
|
|
7
|
-
import ButtonBeta from "../../ButtonBeta/ButtonBeta.js";
|
|
8
|
-
const PageLayoutOverlay = ({
|
|
9
|
-
children,
|
|
10
|
-
onClose,
|
|
11
|
-
closeButton = !0,
|
|
12
|
-
backdrop = !1,
|
|
13
|
-
className,
|
|
14
|
-
...props
|
|
15
|
-
}) => {
|
|
16
|
-
const {
|
|
17
|
-
t
|
|
18
|
-
} = useTranslation(), {
|
|
19
|
-
isOverlayOpen,
|
|
20
|
-
updateOverlayOpen
|
|
21
|
-
} = useOverlay(), handleClose = () => {
|
|
22
|
-
updateOverlayOpen(!1), onClose == null || onClose();
|
|
23
|
-
};
|
|
24
|
-
return useEffect(() => {
|
|
25
|
-
if (!isOverlayOpen) return;
|
|
26
|
-
const handleKeyDown = (e) => {
|
|
27
|
-
e.key === "Escape" && handleClose();
|
|
28
|
-
};
|
|
29
|
-
return document.addEventListener("keydown", handleKeyDown), () => document.removeEventListener("keydown", handleKeyDown);
|
|
30
|
-
}, [isOverlayOpen, onClose, updateOverlayOpen, handleClose]), /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
31
|
-
isOverlayOpen && backdrop && /* @__PURE__ */ jsx("div", { className: "pagelayout-overlaybackdrop", "aria-hidden": "true", onClick: handleClose }),
|
|
32
|
-
/* @__PURE__ */ jsxs(
|
|
33
|
-
"aside",
|
|
34
|
-
{
|
|
35
|
-
className: clsx("pagelayout-overlay", {
|
|
36
|
-
"pagelayout-overlay-open": isOverlayOpen
|
|
37
|
-
}, className),
|
|
38
|
-
"aria-hidden": !isOverlayOpen,
|
|
39
|
-
inert: isOverlayOpen ? void 0 : "",
|
|
40
|
-
...props,
|
|
41
|
-
children: [
|
|
42
|
-
closeButton && isOverlayOpen && /* @__PURE__ */ jsx(ButtonBeta, { "aria-label": t("close"), color: "tertiary", leftIcon: /* @__PURE__ */ jsx(SvgIconClose, {}), type: "button", variant: "ghost", title: t("close"), onClick: handleClose, className: "pagelayout-overlay-close-button", "data-testid": "pagelayout-overlay-close-button" }),
|
|
43
|
-
children
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
)
|
|
47
|
-
] });
|
|
48
|
-
};
|
|
49
|
-
export {
|
|
50
|
-
PageLayoutOverlay as default
|
|
51
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
export interface PageLayoutSidebarLeftProps extends ComponentPropsWithoutRef<'aside'> {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
}
|
|
5
|
-
declare const PageLayoutSidebarLeft: {
|
|
6
|
-
({ children, className, ...props }: PageLayoutSidebarLeftProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
9
|
-
export default PageLayoutSidebarLeft;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import { usePageLayout } from "../PageLayoutContext.js";
|
|
4
|
-
const PageLayoutSidebarLeft = ({
|
|
5
|
-
children,
|
|
6
|
-
className,
|
|
7
|
-
...props
|
|
8
|
-
}) => {
|
|
9
|
-
const {
|
|
10
|
-
noPadding
|
|
11
|
-
} = usePageLayout();
|
|
12
|
-
return /* @__PURE__ */ jsx("aside", { className: clsx("pagelayout-sidebarleft", {
|
|
13
|
-
"pagelayout-sidebarleft--no-padding": noPadding == null ? void 0 : noPadding.sidebarLeft
|
|
14
|
-
}, className), ...props, children });
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
PageLayoutSidebarLeft as default
|
|
18
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
-
export interface PageLayoutSidebarRightProps extends ComponentPropsWithoutRef<'aside'> {
|
|
3
|
-
children: ReactNode;
|
|
4
|
-
}
|
|
5
|
-
declare const PageLayoutSidebarRight: {
|
|
6
|
-
({ children, className, ...props }: PageLayoutSidebarRightProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
displayName: string;
|
|
8
|
-
};
|
|
9
|
-
export default PageLayoutSidebarRight;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import clsx from "clsx";
|
|
3
|
-
import { usePageLayout } from "../PageLayoutContext.js";
|
|
4
|
-
const PageLayoutSidebarRight = ({
|
|
5
|
-
children,
|
|
6
|
-
className,
|
|
7
|
-
...props
|
|
8
|
-
}) => {
|
|
9
|
-
const {
|
|
10
|
-
noPadding
|
|
11
|
-
} = usePageLayout();
|
|
12
|
-
return /* @__PURE__ */ jsx("aside", { className: clsx("pagelayout-sidebarright", {
|
|
13
|
-
"pagelayout-sidebarright--no-padding": noPadding == null ? void 0 : noPadding.sidebarRight
|
|
14
|
-
}, className), ...props, children: /* @__PURE__ */ jsx("div", { className: "pagelayout-sidebarright-inner", children }) });
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
PageLayoutSidebarRight as default
|
|
18
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { useCallback } from "react";
|
|
2
|
-
import { useOverlayStore } from "../store/overlayStore.js";
|
|
3
|
-
const useOverlay = () => {
|
|
4
|
-
const isOverlayOpen = useOverlayStore.use.overlayOpen(), updateOverlayOpen = useOverlayStore.use.updateOverlayOpen(), toggleOverlay = useCallback(() => {
|
|
5
|
-
updateOverlayOpen(!isOverlayOpen);
|
|
6
|
-
}, [isOverlayOpen, updateOverlayOpen]);
|
|
7
|
-
return {
|
|
8
|
-
isOverlayOpen,
|
|
9
|
-
updateOverlayOpen,
|
|
10
|
-
toggleOverlay
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
useOverlay
|
|
15
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
interface OverlayState {
|
|
2
|
-
overlayOpen: boolean;
|
|
3
|
-
updateOverlayOpen: (value: boolean) => void;
|
|
4
|
-
}
|
|
5
|
-
export declare const useOverlayStore: {
|
|
6
|
-
(): OverlayState;
|
|
7
|
-
<U>(selector: (state: OverlayState) => U): U;
|
|
8
|
-
<U>(selector: (state: OverlayState) => U, equalityFn: (a: U, b: U) => boolean): U;
|
|
9
|
-
} & import('zustand').StoreApi<OverlayState> & {
|
|
10
|
-
use: {
|
|
11
|
-
overlayOpen: () => boolean;
|
|
12
|
-
updateOverlayOpen: () => (value: boolean) => void;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { create } from "zustand";
|
|
2
|
-
import { createSelectors } from "../../../utilities/create-selectors/createSelectors.js";
|
|
3
|
-
const useOverlayStore = createSelectors(create((set) => ({
|
|
4
|
-
overlayOpen: !1,
|
|
5
|
-
updateOverlayOpen: (value) => set((previousState) => ({
|
|
6
|
-
...previousState,
|
|
7
|
-
overlayOpen: value
|
|
8
|
-
}))
|
|
9
|
-
})));
|
|
10
|
-
export {
|
|
11
|
-
useOverlayStore
|
|
12
|
-
};
|
package/dist/homepage.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { default as default2 } from "./modules/homepage/components/Header/Header.js";
|
|
2
|
-
import { default as default3 } from "./modules/homepage/components/HomeCard/HomeCard.js";
|
|
3
|
-
import { default as default4 } from "./modules/homepage/components/LastInfos/LastInfos.js";
|
|
4
|
-
import { default as default5 } from "./modules/homepage/components/MessageFlashList/MessageFlashList.js";
|
|
5
|
-
import { default as default6 } from "./modules/homepage/components/Notifications/Notification.js";
|
|
6
|
-
import { default as default7 } from "./modules/homepage/components/Notifications/NotificationList.js";
|
|
7
|
-
import { NotificationListContainer } from "./modules/homepage/components/Notifications/NotificationListContainer.js";
|
|
8
|
-
import { default as default8 } from "./modules/homepage/components/SchoolSpace/SchoolSpace.js";
|
|
9
|
-
import { default as default9 } from "./modules/homepage/components/UserSpace/UserSpace.js";
|
|
10
|
-
import { Favorites } from "./modules/homepage/components/Favorites/Favorites.js";
|
|
11
|
-
import { FavoritesContainer } from "./modules/homepage/components/Favorites/FavoritesContainer.js";
|
|
12
|
-
import { LastInfosContainer } from "./modules/homepage/components/LastInfos/LastInfosContainer.js";
|
|
13
|
-
import { LastInfosList } from "./modules/homepage/components/LastInfos/LastInfosList.js";
|
|
14
|
-
import { MessageFlashListContainer } from "./modules/homepage/components/MessageFlashList/MessageFlashListContainer.js";
|
|
15
|
-
import { SchoolSpaceContainer } from "./modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js";
|
|
16
|
-
import { UserSpaceContainer } from "./modules/homepage/components/UserSpace/UserSpaceContainer.js";
|
|
17
|
-
export {
|
|
18
|
-
Favorites,
|
|
19
|
-
FavoritesContainer,
|
|
20
|
-
default2 as Header,
|
|
21
|
-
default3 as HomeCard,
|
|
22
|
-
default4 as LastInfos,
|
|
23
|
-
LastInfosContainer,
|
|
24
|
-
LastInfosList,
|
|
25
|
-
default5 as MessageFlashList,
|
|
26
|
-
MessageFlashListContainer,
|
|
27
|
-
default6 as Notification,
|
|
28
|
-
default7 as NotificationList,
|
|
29
|
-
NotificationListContainer,
|
|
30
|
-
default8 as SchoolSpace,
|
|
31
|
-
SchoolSpaceContainer,
|
|
32
|
-
default9 as UserSpace,
|
|
33
|
-
UserSpaceContainer
|
|
34
|
-
};
|