@edifice.io/react 2.5.18-develop.20260504111504 → 2.5.18-epic-homepage.20260505180634
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/Logo/index.d.ts +1 -1
- package/dist/components/LogoBeta/LogoBeta.d.ts +7 -0
- package/dist/components/LogoBeta/LogoBeta.js +14 -0
- package/dist/components/LogoBeta/index.d.ts +2 -0
- package/dist/components/PageLayout/PageLayout.d.ts +45 -0
- package/dist/components/PageLayout/PageLayout.js +94 -0
- package/dist/components/PageLayout/PageLayoutContext.d.ts +14 -0
- package/dist/components/PageLayout/PageLayoutContext.js +8 -0
- package/dist/components/PageLayout/components/PageLayoutBreadcrumb.d.ts +9 -0
- package/dist/components/PageLayout/components/PageLayoutBreadcrumb.js +10 -0
- package/dist/components/PageLayout/components/PageLayoutContent.d.ts +9 -0
- package/dist/components/PageLayout/components/PageLayoutContent.js +18 -0
- package/dist/components/PageLayout/components/PageLayoutHeader.d.ts +9 -0
- package/dist/components/PageLayout/components/PageLayoutHeader.js +17 -0
- package/dist/components/PageLayout/components/PageLayoutOverlay.d.ts +15 -0
- package/dist/components/PageLayout/components/PageLayoutOverlay.js +34 -0
- package/dist/components/PageLayout/components/PageLayoutSidebarLeft.d.ts +9 -0
- package/dist/components/PageLayout/components/PageLayoutSidebarLeft.js +18 -0
- package/dist/components/PageLayout/components/PageLayoutSidebarRight.d.ts +9 -0
- package/dist/components/PageLayout/components/PageLayoutSidebarRight.js +18 -0
- package/dist/components/PageLayout/index.d.ts +3 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/hooks/index.d.ts +1 -1
- package/dist/icons-nav.js +38 -28
- package/dist/index.js +153 -146
- package/dist/modules/homepage/components/Header/Header.d.ts +8 -0
- package/dist/modules/homepage/components/Header/Header.js +74 -0
- package/dist/modules/homepage/components/Header/index.d.ts +2 -0
- package/dist/modules/homepage/components/LastInfos/LastInfos.d.ts +33 -0
- package/dist/modules/homepage/components/LastInfos/LastInfosContainer.d.ts +4 -0
- package/dist/modules/homepage/components/LastInfos/LastInfosList.d.ts +8 -0
- package/dist/modules/homepage/components/LastInfos/index.d.ts +4 -0
- package/dist/modules/homepage/components/LastInfos/useLastInfos.d.ts +17 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlash.d.ts +12 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashList.d.ts +12 -0
- package/dist/modules/homepage/components/MessageFlashList/MessageFlashListContainer.d.ts +5 -0
- package/dist/modules/homepage/components/MessageFlashList/hooks/useMessageFlashList.d.ts +16 -0
- package/dist/modules/homepage/components/MessageFlashList/index.d.ts +4 -0
- package/dist/modules/homepage/components/MessageFlashList/services/api/index.d.ts +4 -0
- package/dist/modules/homepage/components/MessageFlashList/services/api/messagesFlashService.d.ts +20 -0
- package/dist/modules/homepage/components/MessageFlashList/services/queries/messagesFlash.d.ts +13 -0
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpace.d.ts +15 -0
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.d.ts +4 -0
- package/dist/modules/homepage/components/SchoolSpace/index.d.ts +3 -0
- package/dist/modules/homepage/components/SchoolSpace/useUserSchools.d.ts +6 -0
- package/dist/modules/homepage/components/index.d.ts +4 -0
- package/dist/modules/homepage/hooks/useWidgetPreferences.d.ts +5 -0
- package/dist/modules/homepage/index.d.ts +1 -0
- package/dist/modules/icons/components/nav/IconCommunitiesBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconCommunitiesBeta.js +18 -0
- package/dist/modules/icons/components/nav/IconHomeBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconHomeBeta.js +13 -0
- package/dist/modules/icons/components/nav/IconMessagesBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconMessagesBeta.js +18 -0
- package/dist/modules/icons/components/nav/IconMyAppsBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconMyAppsBeta.js +13 -0
- package/dist/modules/icons/components/nav/IconNotificationBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/IconNotificationBeta.js +14 -0
- package/dist/modules/icons/components/nav/IconNotificationsBeta.d.ts +7 -0
- package/dist/modules/icons/components/nav/index.d.ts +5 -0
- package/dist/modules/modals/OnboardingModal/index.d.ts +1 -1
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isSameOrAfter.js +1 -1
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/isToday.js +1 -1
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/localeData.js +1 -1
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/weekday.js +1 -1
- package/dist/providers/EdificeClientProvider/EdificeClientProvider.d.ts +0 -7
- package/package.json +10 -6
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
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, ...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, open, onClose, backdrop, className, ...props }: import('./components/PageLayoutOverlay').PageLayoutOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
displayName: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
export default PageLayout;
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
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;
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export interface PageLayoutHeaderProps extends ComponentPropsWithoutRef<'header'> {
|
|
3
|
+
children?: ReactNode;
|
|
4
|
+
}
|
|
5
|
+
declare const PageLayoutHeader: {
|
|
6
|
+
({ children, className, ...props }: PageLayoutHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
export default PageLayoutHeader;
|
|
@@ -0,0 +1,17 @@
|
|
|
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
|
+
...props
|
|
9
|
+
}) => {
|
|
10
|
+
const {
|
|
11
|
+
theme
|
|
12
|
+
} = useEdificeTheme();
|
|
13
|
+
return /* @__PURE__ */ jsx("header", { className: clsx("pagelayout-header", className), ...props, children: children ?? /* @__PURE__ */ jsx(Header, { src: theme == null ? void 0 : theme.basePath }) });
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
PageLayoutHeader as default
|
|
17
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from 'react';
|
|
2
|
+
export interface PageLayoutOverlayProps extends ComponentPropsWithoutRef<'aside'> {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
/** Whether the overlay panel is open */
|
|
5
|
+
open: boolean;
|
|
6
|
+
/** Called when the overlay requests to be closed (e.g. clicking the backdrop) */
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
/** Show a backdrop behind the overlay. Defaults to false. */
|
|
9
|
+
backdrop?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const PageLayoutOverlay: {
|
|
12
|
+
({ children, open, onClose, backdrop, className, ...props }: PageLayoutOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
displayName: string;
|
|
14
|
+
};
|
|
15
|
+
export default PageLayoutOverlay;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect } from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
const PageLayoutOverlay = ({
|
|
5
|
+
children,
|
|
6
|
+
open,
|
|
7
|
+
onClose,
|
|
8
|
+
backdrop = !1,
|
|
9
|
+
className,
|
|
10
|
+
...props
|
|
11
|
+
}) => (useEffect(() => {
|
|
12
|
+
if (!open) return;
|
|
13
|
+
const handleKeyDown = (e) => {
|
|
14
|
+
e.key === "Escape" && (onClose == null || onClose());
|
|
15
|
+
};
|
|
16
|
+
return document.addEventListener("keydown", handleKeyDown), () => document.removeEventListener("keydown", handleKeyDown);
|
|
17
|
+
}, [open, onClose]), /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
18
|
+
open && backdrop && /* @__PURE__ */ jsx("div", { className: "pagelayout-overlaybackdrop", "aria-hidden": "true", onClick: onClose }),
|
|
19
|
+
/* @__PURE__ */ jsx(
|
|
20
|
+
"aside",
|
|
21
|
+
{
|
|
22
|
+
className: clsx("pagelayout-overlay", {
|
|
23
|
+
"pagelayout-overlay-open": open
|
|
24
|
+
}, className),
|
|
25
|
+
"aria-hidden": !open,
|
|
26
|
+
inert: open ? void 0 : "",
|
|
27
|
+
...props,
|
|
28
|
+
children
|
|
29
|
+
}
|
|
30
|
+
)
|
|
31
|
+
] }));
|
|
32
|
+
export {
|
|
33
|
+
PageLayoutOverlay as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
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;
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
};
|
|
@@ -26,10 +26,12 @@ export * from './Image';
|
|
|
26
26
|
export * from './Input';
|
|
27
27
|
export * from './Label';
|
|
28
28
|
export * from './Layout';
|
|
29
|
+
export * from './PageLayout';
|
|
29
30
|
export * from './List';
|
|
30
31
|
export * from './Loading';
|
|
31
32
|
export * from './LoadingScreen';
|
|
32
33
|
export * from './Logo';
|
|
34
|
+
export * from './LogoBeta';
|
|
33
35
|
export * from './MediaViewer';
|
|
34
36
|
export * from './Menu';
|
|
35
37
|
export * from './Modal';
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -16,8 +16,8 @@ export * from './useHover';
|
|
|
16
16
|
export * from './useHttpErrorToast';
|
|
17
17
|
export * from './useImage';
|
|
18
18
|
export * from './useInfiniteScroll';
|
|
19
|
-
export * from './useIsAdml';
|
|
20
19
|
export * from './useIsAdmc';
|
|
20
|
+
export * from './useIsAdml';
|
|
21
21
|
export * from './useIsAdmlcOrAdmc';
|
|
22
22
|
export * from './useKeyPress';
|
|
23
23
|
export * from './useLibraryUrl';
|
package/dist/icons-nav.js
CHANGED
|
@@ -1,30 +1,40 @@
|
|
|
1
|
-
import { default as default2 } from "./modules/icons/components/nav/
|
|
2
|
-
import { default as default3 } from "./modules/icons/components/nav/
|
|
3
|
-
import { default as default4 } from "./modules/icons/components/nav/
|
|
4
|
-
import { default as default5 } from "./modules/icons/components/nav/
|
|
5
|
-
import { default as default6 } from "./modules/icons/components/nav/
|
|
6
|
-
import { default as default7 } from "./modules/icons/components/nav/
|
|
7
|
-
import { default as default8 } from "./modules/icons/components/nav/
|
|
8
|
-
import { default as default9 } from "./modules/icons/components/nav/
|
|
9
|
-
import { default as default10 } from "./modules/icons/components/nav/
|
|
10
|
-
import { default as default11 } from "./modules/icons/components/nav/
|
|
11
|
-
import { default as default12 } from "./modules/icons/components/nav/
|
|
12
|
-
import { default as default13 } from "./modules/icons/components/nav/
|
|
13
|
-
import { default as default14 } from "./modules/icons/components/nav/
|
|
14
|
-
import { default as default15 } from "./modules/icons/components/nav/
|
|
1
|
+
import { default as default2 } from "./modules/icons/components/nav/IconCommunitiesBeta.js";
|
|
2
|
+
import { default as default3 } from "./modules/icons/components/nav/IconCommunities.js";
|
|
3
|
+
import { default as default4 } from "./modules/icons/components/nav/IconCommunity.js";
|
|
4
|
+
import { default as default5 } from "./modules/icons/components/nav/IconDisconnect.js";
|
|
5
|
+
import { default as default6 } from "./modules/icons/components/nav/IconHomeBeta.js";
|
|
6
|
+
import { default as default7 } from "./modules/icons/components/nav/IconHome.js";
|
|
7
|
+
import { default as default8 } from "./modules/icons/components/nav/IconMessagesBeta.js";
|
|
8
|
+
import { default as default9 } from "./modules/icons/components/nav/IconMyAppsBeta.js";
|
|
9
|
+
import { default as default10 } from "./modules/icons/components/nav/IconMyApps.js";
|
|
10
|
+
import { default as default11 } from "./modules/icons/components/nav/IconNeoAssistance.js";
|
|
11
|
+
import { default as default12 } from "./modules/icons/components/nav/IconNeoMessaging.js";
|
|
12
|
+
import { default as default13 } from "./modules/icons/components/nav/IconNewRelease.js";
|
|
13
|
+
import { default as default14 } from "./modules/icons/components/nav/IconNotificationBeta.js";
|
|
14
|
+
import { default as default15 } from "./modules/icons/components/nav/IconOneAssistance.js";
|
|
15
|
+
import { default as default16 } from "./modules/icons/components/nav/IconOneMessaging.js";
|
|
16
|
+
import { default as default17 } from "./modules/icons/components/nav/IconOneProfile.js";
|
|
17
|
+
import { default as default18 } from "./modules/icons/components/nav/IconProfile.js";
|
|
18
|
+
import { default as default19 } from "./modules/icons/components/nav/IconSearch.js";
|
|
19
|
+
import { default as default20 } from "./modules/icons/components/nav/IconUserbook.js";
|
|
15
20
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
default4 as
|
|
19
|
-
default5 as
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
default8 as
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
default11 as
|
|
26
|
-
default12 as
|
|
27
|
-
default13 as
|
|
28
|
-
default14 as
|
|
29
|
-
default15 as
|
|
21
|
+
default3 as IconCommunities,
|
|
22
|
+
default2 as IconCommunitiesBeta,
|
|
23
|
+
default4 as IconCommunity,
|
|
24
|
+
default5 as IconDisconnect,
|
|
25
|
+
default7 as IconHome,
|
|
26
|
+
default6 as IconHomeBeta,
|
|
27
|
+
default8 as IconMessagesBeta,
|
|
28
|
+
default10 as IconMyApps,
|
|
29
|
+
default9 as IconMyAppsBeta,
|
|
30
|
+
default11 as IconNeoAssistance,
|
|
31
|
+
default12 as IconNeoMessaging,
|
|
32
|
+
default13 as IconNewRelease,
|
|
33
|
+
default14 as IconNotificationBeta,
|
|
34
|
+
default15 as IconOneAssistance,
|
|
35
|
+
default16 as IconOneMessaging,
|
|
36
|
+
default17 as IconOneProfile,
|
|
37
|
+
default18 as IconProfile,
|
|
38
|
+
default19 as IconSearch,
|
|
39
|
+
default20 as IconUserbook
|
|
30
40
|
};
|