@edifice.io/react 2.6.2-develop-b2school.20260803173727 → 2.6.2-develop-b2school.20260807151407

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.
@@ -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
  " ",
@@ -23,7 +23,7 @@ function LastInfosList({
23
23
  /* @__PURE__ */ jsx("h2", { className: "last-infos-list-title", children: t("homepage.last-infos-list.title") }),
24
24
  /* @__PURE__ */ jsx(ButtonBeta, { color: "tertiary", variant: "ghost", className: "last-infos-list-seemore", rightIcon: /* @__PURE__ */ jsx(SvgIconArrowRight, {}), onClick: handleSeeMoreClick, children: t("homepage.last-infos-list.see.more") })
25
25
  ] }),
26
- /* @__PURE__ */ jsx(Flex, { gap: "16", direction: "column", className: "last-infos-list-body", children: infos.length === 0 ? /* @__PURE__ */ jsx(EmptyScreen, { imageSrc: illuLastInfosEmptyScreen, size: 64, text: t("homepage.last-infos-list.empty") }) : infos.map((infosProps) => /* @__PURE__ */ jsx(LastInfos, { onClick: handleInfoClick, ...infosProps }, infosProps.id)) })
26
+ /* @__PURE__ */ jsx("div", { className: "last-infos-list-body", children: infos.length === 0 ? /* @__PURE__ */ jsx(EmptyScreen, { imageSrc: illuLastInfosEmptyScreen, size: 64, text: t("homepage.last-infos-list.empty") }) : infos.map((infosProps) => /* @__PURE__ */ jsx(LastInfos, { onClick: handleInfoClick, ...infosProps }, infosProps.id)) })
27
27
  ] });
28
28
  }
29
29
  export {
@@ -1,10 +1,12 @@
1
- import { jsx, jsxs, Fragment } from "react/jsx-runtime";
1
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { useTranslation } from "react-i18next";
3
3
  import SvgIconRafterUp from "../../../icons/components/IconRafterUp.js";
4
+ import SvgIconUserSearch from "../../../icons/components/IconUserSearch.js";
4
5
  import useToggle from "../../../../hooks/useToggle/useToggle.js";
5
6
  import Flex from "../../../../components/Flex/Flex.js";
6
7
  import Dropdown from "../../../../components/Dropdown/Dropdown.js";
7
8
  import IconButton from "../../../../components/Button/IconButton.js";
9
+ import ButtonBeta from "../../../../components/ButtonBeta/ButtonBeta.js";
8
10
  import { getRotateTransitionStyle } from "../../../../utilities/rotate-transition-style/get-rotate-transition-style.js";
9
11
  const SchoolSpace = ({
10
12
  schools,
@@ -13,16 +15,23 @@ const SchoolSpace = ({
13
15
  }) => {
14
16
  const [isExpanded, toggleExpanded] = useToggle(!1), {
15
17
  t
16
- } = useTranslation(), hasManySchools = schools && schools.length > 1;
17
- return selectedSchool ? /* @__PURE__ */ jsx("div", { className: "school-space", children: /* @__PURE__ */ jsxs(Flex, { className: "school-space-container", justify: "center", gap: "4", align: "center", children: [
18
- /* @__PURE__ */ jsx("b", { children: selectedSchool.name }),
19
- hasManySchools && /* @__PURE__ */ jsx(Dropdown, { placement: "bottom-end", onToggle: toggleExpanded, children: (triggerProps) => /* @__PURE__ */ jsxs(Fragment, { children: [
20
- /* @__PURE__ */ jsx(IconButton, { ...triggerProps, "aria-label": t("show"), color: "tertiary", variant: "ghost", icon: /* @__PURE__ */ jsx(SvgIconRafterUp, { className: "w-16 min-w-0", style: getRotateTransitionStyle(isExpanded, {
21
- degrees: 180
22
- }) }) }),
23
- /* @__PURE__ */ jsx(Dropdown.Menu, { children: schools.map((school) => /* @__PURE__ */ jsx(Dropdown.Item, { onClick: () => onSelectedSchoolChange == null ? void 0 : onSelectedSchoolChange(school), children: /* @__PURE__ */ jsx(Flex, { direction: "column", children: /* @__PURE__ */ jsx("p", { children: school.name }) }) }, school.id)) })
24
- ] }) })
25
- ] }) }) : null;
18
+ } = useTranslation();
19
+ if (!selectedSchool) return null;
20
+ const hasManySchools = schools && schools.length > 1, directoryUrl = `/userbook/annuaire#/search?${new URLSearchParams({
21
+ structure: selectedSchool.id
22
+ }).toString()}`;
23
+ return /* @__PURE__ */ jsxs(Flex, { gap: "4", direction: "column", className: "school-space", children: [
24
+ /* @__PURE__ */ jsxs(Flex, { className: "school-space-container", justify: "center", gap: "4", align: "center", children: [
25
+ /* @__PURE__ */ jsx("b", { children: selectedSchool.name }),
26
+ hasManySchools && /* @__PURE__ */ jsx(Dropdown, { placement: "bottom-end", onToggle: toggleExpanded, children: (triggerProps) => /* @__PURE__ */ jsxs(Fragment, { children: [
27
+ /* @__PURE__ */ jsx(IconButton, { ...triggerProps, "aria-label": t("show"), color: "tertiary", variant: "ghost", icon: /* @__PURE__ */ jsx(SvgIconRafterUp, { className: "w-16 min-w-0", style: getRotateTransitionStyle(isExpanded, {
28
+ degrees: 180
29
+ }) }) }),
30
+ /* @__PURE__ */ jsx(Dropdown.Menu, { children: schools.map((school) => /* @__PURE__ */ jsx(Dropdown.Item, { onClick: () => onSelectedSchoolChange == null ? void 0 : onSelectedSchoolChange(school), children: /* @__PURE__ */ jsx(Flex, { direction: "column", children: /* @__PURE__ */ jsx("p", { children: school.name }) }) }, school.id)) })
31
+ ] }) })
32
+ ] }),
33
+ /* @__PURE__ */ jsx(ButtonBeta, { variant: "outline", className: "school-space-directory-button", leftIcon: /* @__PURE__ */ jsx(SvgIconUserSearch, {}), onClick: () => window.location.href = directoryUrl, children: t("homepage.school-space.directory") })
34
+ ] });
26
35
  };
27
36
  export {
28
37
  SchoolSpace as default
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edifice.io/react",
3
- "version": "2.6.2-develop-b2school.20260803173727",
3
+ "version": "2.6.2-develop-b2school.20260807151407",
4
4
  "description": "Edifice React Library",
5
5
  "keywords": [
6
6
  "react",
@@ -140,9 +140,9 @@
140
140
  "swiper": "10.1.0",
141
141
  "ua-parser-js": "1.0.36",
142
142
  "zustand": "4.5.7",
143
- "@edifice.io/bootstrap": "2.6.2-develop-b2school.20260803173727",
144
- "@edifice.io/tiptap-extensions": "2.6.2-develop-b2school.20260803173727",
145
- "@edifice.io/utilities": "2.6.2-develop-b2school.20260803173727"
143
+ "@edifice.io/bootstrap": "2.6.2-develop-b2school.20260807151407",
144
+ "@edifice.io/tiptap-extensions": "2.6.2-develop-b2school.20260807151407",
145
+ "@edifice.io/utilities": "2.6.2-develop-b2school.20260807151407"
146
146
  },
147
147
  "devDependencies": {
148
148
  "@babel/plugin-transform-react-pure-annotations": "7.27.1",
@@ -173,8 +173,8 @@
173
173
  "vite": "5.4.14",
174
174
  "vite-plugin-dts": "4.5.4",
175
175
  "vite-tsconfig-paths": "5.1.4",
176
- "@edifice.io/client": "2.6.2-develop-b2school.20260803173727",
177
- "@edifice.io/config": "2.6.2-develop-b2school.20260803173727"
176
+ "@edifice.io/config": "2.6.2-develop-b2school.20260807151407",
177
+ "@edifice.io/client": "2.6.2-develop-b2school.20260807151407"
178
178
  },
179
179
  "peerDependencies": {
180
180
  "@react-spring/web": "9.7.5",