@edifice.io/react 2.6.2-develop-b2school.20260807151407 → 2.6.2-develop-enabling.20260807165400
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/Alert/Alert.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +0 -5
- package/dist/components/DatePicker/DatePicker.js +0 -2
- package/dist/components/Layout/components/NavLink.d.ts +1 -1
- package/dist/components/Layout/components/NavLink.js +2 -0
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +1 -1
- package/dist/hooks/useClickOutside/useClickOutside.js +1 -1
- package/dist/icons.js +338 -340
- package/dist/modules/editor/test-utils/createTestEditor.d.ts +10 -0
- package/dist/modules/homepage/components/HomeCard/HomeCard.d.ts +1 -5
- package/dist/modules/homepage/components/HomeCard/HomeCard.js +2 -10
- package/dist/modules/homepage/components/LastInfos/LastInfosList.js +1 -1
- package/dist/modules/homepage/components/SchoolSpace/SchoolSpace.js +11 -20
- package/dist/modules/homepage/components/UserSpace/UserSpace.js +2 -5
- package/dist/modules/icons/components/index.d.ts +0 -1
- package/dist/modules/multimedia/testing/mediaHarness.d.ts +154 -0
- package/package.json +6 -6
- package/dist/modules/homepage/components/Communities/Communities.d.ts +0 -10
- package/dist/modules/homepage/components/Communities/CommunitiesContainer.d.ts +0 -9
- package/dist/modules/homepage/components/Communities/CommunitiesSkeleton.d.ts +0 -5
- package/dist/modules/homepage/components/Communities/CommunityItem.d.ts +0 -11
- package/dist/modules/homepage/components/Communities/index.d.ts +0 -8
- package/dist/modules/homepage/components/Communities/useCommunities.d.ts +0 -13
- package/dist/modules/homepage/components/UserSpace/hooks/useChildren.d.ts +0 -14
- package/dist/modules/homepage/components/UserSpace/hooks/useChildren.js +0 -23
- package/dist/modules/homepage/components/UserSpace/hooks/useProfileLinks.d.ts +0 -8
- package/dist/modules/homepage/components/UserSpace/hooks/useProfileLinks.js +0 -65
- package/dist/modules/icons/components/IconClass.d.ts +0 -7
- package/dist/modules/icons/components/IconClass.js +0 -13
- package/dist/modules/multimedia/LinkerCard/LinkerCard._.d.ts +0 -8
- package/dist/modules/multimedia/UploadCard/UploadCard._.d.ts +0 -9
|
@@ -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
|
|
67
|
+
/* @__PURE__ */ jsx("div", { className: "alert-content small", children }),
|
|
68
68
|
button && /* @__PURE__ */ jsxs("div", { className: "ms-12", children: [
|
|
69
69
|
button,
|
|
70
70
|
" ",
|
|
@@ -28,11 +28,6 @@ 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;
|
|
36
31
|
}
|
|
37
32
|
/**
|
|
38
33
|
* Type for DatePicker ref
|
|
@@ -17,7 +17,6 @@ const DatePicker = /* @__PURE__ */ forwardRef(({
|
|
|
17
17
|
dateFormat = "DD / MM / YYYY",
|
|
18
18
|
minDate,
|
|
19
19
|
maxDate,
|
|
20
|
-
disabled,
|
|
21
20
|
...htmlProps
|
|
22
21
|
}, ref) => {
|
|
23
22
|
const handleChange = (date) => {
|
|
@@ -28,7 +27,6 @@ const DatePicker = /* @__PURE__ */ forwardRef(({
|
|
|
28
27
|
format: dateFormat,
|
|
29
28
|
minDate: minDate ? dayjs(minDate) : void 0,
|
|
30
29
|
maxDate: maxDate ? dayjs(maxDate) : void 0,
|
|
31
|
-
disabled,
|
|
32
30
|
ref,
|
|
33
31
|
// Cast necessary because AntDatePicker expects a specific type, but our API exposes only HTMLElement to avoid dependency on Ant Design-specific features.
|
|
34
32
|
...htmlProps
|
|
@@ -21,4 +21,4 @@ export interface NavLinkProps<T> {
|
|
|
21
21
|
*/
|
|
22
22
|
button?: boolean;
|
|
23
23
|
}
|
|
24
|
-
export declare function NavLink({ link, className, children, translate, ...restProps }: NavLinkProps<string>): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare function NavLink({ link, className, children, translate, button, ...restProps }: NavLinkProps<string>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function useClickOutside<T extends HTMLElement = any>(handler: () => void, events?: string[] | null, nodes?: Array<HTMLElement | null>): import('react').MutableRefObject<T |
|
|
1
|
+
export default function useClickOutside<T extends HTMLElement = any>(handler: () => void, events?: string[] | null, nodes?: Array<HTMLElement | null>): import('react').MutableRefObject<T | null>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useRef, useEffect } from "react";
|
|
2
2
|
const DEFAULT_EVENTS = ["mousedown", "touchstart"];
|
|
3
3
|
function useClickOutside(handler, events, nodes) {
|
|
4
|
-
const ref = useRef();
|
|
4
|
+
const ref = useRef(null);
|
|
5
5
|
return useEffect(() => {
|
|
6
6
|
const listener = (event) => {
|
|
7
7
|
const {
|