@edifice.io/react 2.6.12-develop-b2school.20261103172112 → 2.6.12-develop.20261104120548

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 (197) hide show
  1. package/dist/components/Checkbox/Checkbox.js +1 -1
  2. package/dist/components/Dropdown/DropdownItem.js +1 -17
  3. package/dist/components/Layout/Layout.js +4 -12
  4. package/dist/components/SearchBar/SearchBar.js +26 -17
  5. package/dist/components/Tree/components/Tree.d.ts +5 -2
  6. package/dist/components/Tree/components/Tree.js +7 -10
  7. package/dist/components/Tree/hooks/useTree.d.ts +0 -1
  8. package/dist/components/Tree/hooks/useTree.js +2 -6
  9. package/dist/components/Tree/types/index.d.ts +0 -7
  10. package/dist/components/index.d.ts +0 -1
  11. package/dist/homepage.js +24 -97
  12. package/dist/hooks/useDropdown/useDropdown.js +2 -2
  13. package/dist/hooks/useZendeskGuide/useZendeskGuide.d.ts +6 -2
  14. package/dist/hooks/useZendeskGuide/useZendeskGuide.js +8 -11
  15. package/dist/icons.js +404 -406
  16. package/dist/index.js +0 -2
  17. package/dist/modules/HelpZone/HelpZone.js +8 -6
  18. package/dist/modules/HelpZone/HelpZoneContainer.js +5 -2
  19. package/dist/modules/editor/components/Editor/Editor.d.ts +0 -5
  20. package/dist/modules/editor/components/Editor/Editor.js +0 -3
  21. package/dist/modules/homepage/components/Header/Header.js +21 -9
  22. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.d.ts +1 -5
  23. package/dist/modules/homepage/components/HomeCard/HomeCardHeader.js +1 -1
  24. package/dist/modules/homepage/components/Notifications/NotificationList.js +8 -7
  25. package/dist/modules/homepage/components/Notifications/NotificationListSkeleton.js +12 -7
  26. package/dist/modules/homepage/components/Notifications/NotificationSkeleton.js +4 -7
  27. package/dist/modules/homepage/components/Notifications/components/NotificationFilterModal.js +13 -11
  28. package/dist/modules/homepage/components/Notifications/components/ReportNotificationModal.js +12 -6
  29. package/dist/modules/homepage/components/Notifications/components/notificationAdapter.js +10 -12
  30. package/dist/modules/homepage/components/Notifications/hooks/useNotificationList.js +10 -9
  31. package/dist/modules/homepage/components/SchoolSpace/SchoolSpaceContainer.js +1 -1
  32. package/dist/modules/homepage/{hooks → components/SchoolSpace}/useUserSchools.d.ts +2 -2
  33. package/dist/modules/homepage/{hooks → components/SchoolSpace}/useUserSchools.js +4 -4
  34. package/dist/modules/homepage/components/UsefulLinks/UsefulLinks.js +2 -2
  35. package/dist/modules/homepage/components/UsefulLinks/UsefulLinksModal.js +2 -2
  36. package/dist/modules/homepage/components/UserSpace/UserSpace.d.ts +1 -3
  37. package/dist/modules/homepage/components/UserSpace/UserSpace.js +7 -13
  38. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.d.ts +2 -4
  39. package/dist/modules/homepage/components/UserSpace/UserSpaceContainer.js +2 -3
  40. package/dist/modules/homepage/components/index.d.ts +1 -12
  41. package/dist/modules/icons/components/index.d.ts +0 -1
  42. package/dist/modules/icons/components/nav/IconCommunitiesBeta.js +7 -5
  43. package/dist/modules/icons/components/nav/IconHomeBeta.js +3 -6
  44. package/dist/modules/icons/components/nav/IconMessagesBeta.js +7 -7
  45. package/dist/modules/icons/components/nav/IconMyAppsBeta.js +3 -2
  46. package/dist/modules/icons/components/nav/IconNotificationBeta.js +4 -2
  47. package/dist/modules/multimedia/Workspace/Workspace.js +1 -1
  48. package/package.json +6 -7
  49. package/dist/components/Masonry/Masonry.d.ts +0 -40
  50. package/dist/components/Masonry/Masonry.js +0 -50
  51. package/dist/components/Masonry/index.d.ts +0 -2
  52. package/dist/modules/homepage/components/Agenda/Agenda.d.ts +0 -10
  53. package/dist/modules/homepage/components/Agenda/Agenda.js +0 -54
  54. package/dist/modules/homepage/components/Agenda/AgendaContainer.d.ts +0 -1
  55. package/dist/modules/homepage/components/Agenda/AgendaContainer.js +0 -14
  56. package/dist/modules/homepage/components/Agenda/AgendaEventCard.d.ts +0 -10
  57. package/dist/modules/homepage/components/Agenda/AgendaEventCard.js +0 -30
  58. package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.d.ts +0 -14
  59. package/dist/modules/homepage/components/Agenda/hooks/useAgendaContainer.js +0 -27
  60. package/dist/modules/homepage/components/Agenda/index.d.ts +0 -3
  61. package/dist/modules/homepage/components/Agenda/services/api/agendaService.d.ts +0 -24
  62. package/dist/modules/homepage/components/Agenda/services/api/agendaService.js +0 -45
  63. package/dist/modules/homepage/components/Agenda/services/api/index.d.ts +0 -4
  64. package/dist/modules/homepage/components/Agenda/services/api/index.js +0 -5
  65. package/dist/modules/homepage/components/Agenda/services/queries/agenda.d.ts +0 -19
  66. package/dist/modules/homepage/components/Agenda/services/queries/agenda.js +0 -26
  67. package/dist/modules/homepage/components/BriefMe/BriefMe.d.ts +0 -9
  68. package/dist/modules/homepage/components/BriefMe/BriefMe.js +0 -59
  69. package/dist/modules/homepage/components/BriefMe/BriefMeContainer.d.ts +0 -4
  70. package/dist/modules/homepage/components/BriefMe/BriefMeContainer.js +0 -17
  71. package/dist/modules/homepage/components/BriefMe/index.d.ts +0 -4
  72. package/dist/modules/homepage/components/BriefMe/types.d.ts +0 -17
  73. package/dist/modules/homepage/components/BriefMe/types.js +0 -8
  74. package/dist/modules/homepage/components/BriefMe/useBriefMe.d.ts +0 -31
  75. package/dist/modules/homepage/components/BriefMe/useBriefMe.js +0 -51
  76. package/dist/modules/homepage/components/Cantine/Cantine.d.ts +0 -7
  77. package/dist/modules/homepage/components/Cantine/Cantine.js +0 -44
  78. package/dist/modules/homepage/components/Cantine/CantineContainer.d.ts +0 -4
  79. package/dist/modules/homepage/components/Cantine/CantineContainer.js +0 -18
  80. package/dist/modules/homepage/components/Cantine/CantineModal.d.ts +0 -24
  81. package/dist/modules/homepage/components/Cantine/CantineModal.js +0 -88
  82. package/dist/modules/homepage/components/Cantine/CantineModalContainer.d.ts +0 -7
  83. package/dist/modules/homepage/components/Cantine/CantineModalContainer.js +0 -12
  84. package/dist/modules/homepage/components/Cantine/components/CantineLegend.d.ts +0 -5
  85. package/dist/modules/homepage/components/Cantine/components/CantineLegend.js +0 -22
  86. package/dist/modules/homepage/components/Cantine/components/CantineMenuSection.d.ts +0 -6
  87. package/dist/modules/homepage/components/Cantine/components/CantineMenuSection.js +0 -28
  88. package/dist/modules/homepage/components/Cantine/components/cantineLabels.d.ts +0 -12
  89. package/dist/modules/homepage/components/Cantine/components/cantineLabels.js +0 -60
  90. package/dist/modules/homepage/components/Cantine/hooks/useCantine.d.ts +0 -11
  91. package/dist/modules/homepage/components/Cantine/hooks/useCantine.js +0 -20
  92. package/dist/modules/homepage/components/Cantine/hooks/useCantineMenu.d.ts +0 -24
  93. package/dist/modules/homepage/components/Cantine/hooks/useCantineMenu.js +0 -65
  94. package/dist/modules/homepage/components/Cantine/hooks/useCantineModal.d.ts +0 -23
  95. package/dist/modules/homepage/components/Cantine/hooks/useCantineModal.js +0 -43
  96. package/dist/modules/homepage/components/Cantine/index.d.ts +0 -7
  97. package/dist/modules/homepage/components/Cantine/types.d.ts +0 -42
  98. package/dist/modules/homepage/components/Edumalin/Edumalin.d.ts +0 -9
  99. package/dist/modules/homepage/components/Edumalin/Edumalin.js +0 -65
  100. package/dist/modules/homepage/components/Edumalin/EdumalinContainer.d.ts +0 -4
  101. package/dist/modules/homepage/components/Edumalin/EdumalinContainer.js +0 -21
  102. package/dist/modules/homepage/components/Edumalin/EdumalinModal.d.ts +0 -8
  103. package/dist/modules/homepage/components/Edumalin/EdumalinModal.js +0 -62
  104. package/dist/modules/homepage/components/Edumalin/components/EdumalinBadge.d.ts +0 -5
  105. package/dist/modules/homepage/components/Edumalin/components/EdumalinBadge.js +0 -38
  106. package/dist/modules/homepage/components/Edumalin/components/EdumalinPicture.d.ts +0 -5
  107. package/dist/modules/homepage/components/Edumalin/components/EdumalinPicture.js +0 -12
  108. package/dist/modules/homepage/components/Edumalin/index.d.ts +0 -7
  109. package/dist/modules/homepage/components/Edumalin/types.d.ts +0 -24
  110. package/dist/modules/homepage/components/Edumalin/types.js +0 -4
  111. package/dist/modules/homepage/components/Edumalin/useEdumalin.d.ts +0 -16
  112. package/dist/modules/homepage/components/Edumalin/useEdumalin.js +0 -35
  113. package/dist/modules/homepage/components/Edumalin/utils.d.ts +0 -28
  114. package/dist/modules/homepage/components/Edumalin/utils.js +0 -56
  115. package/dist/modules/homepage/components/GenerationHdf/GenerationHdf.d.ts +0 -16
  116. package/dist/modules/homepage/components/GenerationHdf/GenerationHdf.js +0 -65
  117. package/dist/modules/homepage/components/GenerationHdf/GenerationHdfContainer.d.ts +0 -4
  118. package/dist/modules/homepage/components/GenerationHdf/GenerationHdfContainer.js +0 -12
  119. package/dist/modules/homepage/components/GenerationHdf/formatSolde.d.ts +0 -1
  120. package/dist/modules/homepage/components/GenerationHdf/formatSolde.js +0 -6
  121. package/dist/modules/homepage/components/GenerationHdf/index.d.ts +0 -3
  122. package/dist/modules/homepage/components/GenerationHdf/useGenerationHdf.d.ts +0 -10
  123. package/dist/modules/homepage/components/GenerationHdf/useGenerationHdf.js +0 -69
  124. package/dist/modules/homepage/components/Qwant/Qwant.d.ts +0 -4
  125. package/dist/modules/homepage/components/Qwant/Qwant.js +0 -41
  126. package/dist/modules/homepage/components/Qwant/QwantContainer.d.ts +0 -1
  127. package/dist/modules/homepage/components/Qwant/QwantContainer.js +0 -10
  128. package/dist/modules/homepage/components/Qwant/index.d.ts +0 -3
  129. package/dist/modules/homepage/components/Rss/Rss.d.ts +0 -11
  130. package/dist/modules/homepage/components/Rss/Rss.js +0 -64
  131. package/dist/modules/homepage/components/Rss/RssContainer.d.ts +0 -1
  132. package/dist/modules/homepage/components/Rss/RssContainer.js +0 -45
  133. package/dist/modules/homepage/components/Rss/RssFeedForm.d.ts +0 -13
  134. package/dist/modules/homepage/components/Rss/RssFeedForm.js +0 -69
  135. package/dist/modules/homepage/components/Rss/RssFeedsModal.d.ts +0 -11
  136. package/dist/modules/homepage/components/Rss/RssFeedsModal.js +0 -58
  137. package/dist/modules/homepage/components/Rss/hooks/useRssContainer.d.ts +0 -25
  138. package/dist/modules/homepage/components/Rss/hooks/useRssContainer.js +0 -43
  139. package/dist/modules/homepage/components/Rss/index.d.ts +0 -6
  140. package/dist/modules/homepage/components/Rss/services/api/index.d.ts +0 -5
  141. package/dist/modules/homepage/components/Rss/services/api/index.js +0 -5
  142. package/dist/modules/homepage/components/Rss/services/api/rssService.d.ts +0 -38
  143. package/dist/modules/homepage/components/Rss/services/api/rssService.js +0 -51
  144. package/dist/modules/homepage/components/Rss/services/queries/rss.d.ts +0 -28
  145. package/dist/modules/homepage/components/Rss/services/queries/rss.js +0 -71
  146. package/dist/modules/homepage/components/Rss/types.d.ts +0 -25
  147. package/dist/modules/homepage/components/Rss/utils.d.ts +0 -7
  148. package/dist/modules/homepage/components/Rss/utils.js +0 -19
  149. package/dist/modules/homepage/components/ScreenTime/ScreenTime.d.ts +0 -11
  150. package/dist/modules/homepage/components/ScreenTime/ScreenTime.js +0 -49
  151. package/dist/modules/homepage/components/ScreenTime/ScreenTimeChart.d.ts +0 -10
  152. package/dist/modules/homepage/components/ScreenTime/ScreenTimeChart.js +0 -115
  153. package/dist/modules/homepage/components/ScreenTime/ScreenTimeContainer.d.ts +0 -1
  154. package/dist/modules/homepage/components/ScreenTime/ScreenTimeContainer.js +0 -25
  155. package/dist/modules/homepage/components/ScreenTime/ScreenTimeError.d.ts +0 -5
  156. package/dist/modules/homepage/components/ScreenTime/ScreenTimeError.js +0 -22
  157. package/dist/modules/homepage/components/ScreenTime/ScreenTimeModal.d.ts +0 -22
  158. package/dist/modules/homepage/components/ScreenTime/ScreenTimeModal.js +0 -81
  159. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeContainer.d.ts +0 -14
  160. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeContainer.js +0 -22
  161. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeKids.d.ts +0 -6
  162. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeKids.js +0 -25
  163. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeModal.d.ts +0 -31
  164. package/dist/modules/homepage/components/ScreenTime/hooks/useScreenTimeModal.js +0 -34
  165. package/dist/modules/homepage/components/ScreenTime/index.d.ts +0 -6
  166. package/dist/modules/homepage/components/ScreenTime/services/api/index.d.ts +0 -4
  167. package/dist/modules/homepage/components/ScreenTime/services/api/index.js +0 -5
  168. package/dist/modules/homepage/components/ScreenTime/services/api/screenTimeService.d.ts +0 -28
  169. package/dist/modules/homepage/components/ScreenTime/services/api/screenTimeService.js +0 -39
  170. package/dist/modules/homepage/components/ScreenTime/services/queries/screenTime.d.ts +0 -23
  171. package/dist/modules/homepage/components/ScreenTime/services/queries/screenTime.js +0 -41
  172. package/dist/modules/homepage/components/ScreenTime/types.d.ts +0 -30
  173. package/dist/modules/homepage/components/ScreenTime/utils.d.ts +0 -50
  174. package/dist/modules/homepage/components/ScreenTime/utils.js +0 -115
  175. package/dist/modules/homepage/components/TabsKids/components/TabsKids.d.ts +0 -43
  176. package/dist/modules/homepage/components/TabsKids/components/TabsKids.js +0 -23
  177. package/dist/modules/homepage/components/TabsKids/components/TabsKidsItem.d.ts +0 -34
  178. package/dist/modules/homepage/components/TabsKids/components/TabsKidsItem.js +0 -26
  179. package/dist/modules/homepage/components/TabsKids/components/TabsKidsList.d.ts +0 -14
  180. package/dist/modules/homepage/components/TabsKids/components/TabsKidsList.js +0 -64
  181. package/dist/modules/homepage/components/TabsKids/hooks/useTabsKidsOverflow.d.ts +0 -20
  182. package/dist/modules/homepage/components/TabsKids/hooks/useTabsKidsOverflow.js +0 -43
  183. package/dist/modules/homepage/components/TabsKids/index.d.ts +0 -3
  184. package/dist/modules/homepage/components/TabsKids/utils/visibleTabs.d.ts +0 -15
  185. package/dist/modules/homepage/components/TabsKids/utils/visibleTabs.js +0 -21
  186. package/dist/modules/homepage/components/Universalis/Universalis.d.ts +0 -8
  187. package/dist/modules/homepage/components/Universalis/Universalis.js +0 -62
  188. package/dist/modules/homepage/components/Universalis/UniversalisContainer.d.ts +0 -1
  189. package/dist/modules/homepage/components/Universalis/UniversalisContainer.js +0 -16
  190. package/dist/modules/homepage/components/Universalis/index.d.ts +0 -3
  191. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.d.ts +0 -16
  192. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetToggle.js +0 -15
  193. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.d.ts +0 -21
  194. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/WidgetsPersonalizationPanel.js +0 -47
  195. package/dist/modules/homepage/components/WidgetsPersonalizationPanel/index.d.ts +0 -2
  196. package/dist/modules/icons/components/IconAddWidget.d.ts +0 -7
  197. package/dist/modules/icons/components/IconAddWidget.js +0 -12
@@ -1,6 +0,0 @@
1
- import { ScreenTimeKid } from '../types';
2
- /**
3
- * Kids = `user.children` from the session. A user without children (a
4
- * student) is their own only kid.
5
- */
6
- export declare function useScreenTimeKids(): ScreenTimeKid[];
@@ -1,25 +0,0 @@
1
- import { useMemo } from "react";
2
- import { odeServices } from "@edifice.io/client";
3
- import useUser from "../../../../../hooks/useUser/useUser.js";
4
- function useScreenTimeKids() {
5
- const {
6
- user
7
- } = useUser();
8
- return useMemo(() => {
9
- if (!user) return [];
10
- const children = user.children, people = Object.entries(children ?? {});
11
- return people.length === 0 && people.push([user.userId, user]), people.map(([id, {
12
- firstName,
13
- lastName
14
- }]) => ({
15
- id,
16
- firstName,
17
- lastName,
18
- displayName: `${firstName} ${lastName}`,
19
- avatarUrl: odeServices.directory().getAvatarUrl(id, "user")
20
- }));
21
- }, [user]);
22
- }
23
- export {
24
- useScreenTimeKids
25
- };
@@ -1,31 +0,0 @@
1
- import { ScreenTimeDayEntry, ScreenTimeHourEntry, ScreenTimeKid, ScreenTimeStatus, ScreenTimeView } from '../types';
2
- export interface UseScreenTimeModalReturn {
3
- isOpen: boolean;
4
- /** Opens the modal on today's week, for the given kid. */
5
- open: (kidId?: string) => void;
6
- onClose: () => void;
7
- kids: ScreenTimeKid[];
8
- selectedKid?: ScreenTimeKid;
9
- onKidChange: (kidId: string) => void;
10
- view: ScreenTimeView;
11
- onViewChange: (view: ScreenTimeView) => void;
12
- /** Displayed day ("YYYY-MM-DD"), or any day of the displayed week. */
13
- date: string;
14
- canGoPrevious: boolean;
15
- canGoNext: boolean;
16
- onPrevious: () => void;
17
- onNext: () => void;
18
- /** Weekly view data, once loaded. */
19
- days?: ScreenTimeDayEntry[];
20
- /** Daily view data, once loaded. */
21
- hours?: ScreenTimeHourEntry[];
22
- status: ScreenTimeStatus;
23
- }
24
- /**
25
- * Custom hook that provides the state of the full-screen modal: which kid,
26
- * view and period are displayed, and their screen time.
27
- *
28
- * The kid picked here stays local to the modal on purpose: it must not
29
- * change the widget's own selected kid.
30
- */
31
- export declare const useScreenTimeModal: () => UseScreenTimeModalReturn;
@@ -1,34 +0,0 @@
1
- import { useState } from "react";
2
- import { useWeeklyScreenTime, useDailyScreenTime } from "../services/queries/screenTime.js";
3
- import { getToday, getWeekBounds, getPreviousPeriodDate, getNextPeriodDate, getScreenTimeStatus } from "../utils.js";
4
- import { useScreenTimeKids } from "./useScreenTimeKids.js";
5
- const useScreenTimeModal = () => {
6
- const kids = useScreenTimeKids(), [isOpen, setIsOpen] = useState(!1), [kidId, setKidId] = useState(), [view, setView] = useState("weekly"), [date, setDate] = useState(getToday), selectedKid = kids.find((kid) => kid.id === kidId) ?? kids[0], week = getWeekBounds(date), weeklyQuery = useWeeklyScreenTime(selectedKid == null ? void 0 : selectedKid.id, week.start, week.end, {
7
- enabled: isOpen && view === "weekly"
8
- }), dailyQuery = useDailyScreenTime(selectedKid == null ? void 0 : selectedKid.id, date, {
9
- enabled: isOpen && view === "daily"
10
- }), open = (initialKidId) => {
11
- setKidId(initialKidId), setView("weekly"), setDate(getToday()), setIsOpen(!0);
12
- }, today = getToday(), previousDate = getPreviousPeriodDate(view, date, today), nextDate = getNextPeriodDate(view, date, today);
13
- return {
14
- isOpen,
15
- open,
16
- onClose: () => setIsOpen(!1),
17
- kids,
18
- selectedKid,
19
- onKidChange: setKidId,
20
- view,
21
- onViewChange: setView,
22
- date,
23
- canGoPrevious: previousDate !== void 0,
24
- canGoNext: nextDate !== void 0,
25
- onPrevious: () => previousDate && setDate(previousDate),
26
- onNext: () => nextDate && setDate(nextDate),
27
- days: weeklyQuery.data,
28
- hours: dailyQuery.data,
29
- status: getScreenTimeStatus([view === "weekly" ? weeklyQuery : dailyQuery])
30
- };
31
- };
32
- export {
33
- useScreenTimeModal
34
- };
@@ -1,6 +0,0 @@
1
- export * from './ScreenTime';
2
- export * from './ScreenTimeContainer';
3
- export * from './ScreenTimeModal';
4
- export * from './hooks/useScreenTimeContainer';
5
- export * from './hooks/useScreenTimeModal';
6
- export * from './types';
@@ -1,4 +0,0 @@
1
- export declare const screenTimeService: {
2
- getDaily(kidId: string, date: string): Promise<import('../..').ScreenTimeHourEntry[]>;
3
- getWeekly(kidId: string, startDate: string, endDate: string): Promise<import('../..').ScreenTimeDayEntry[]>;
4
- };
@@ -1,5 +0,0 @@
1
- import { createScreenTimeService } from "./screenTimeService.js";
2
- const screenTimeService = createScreenTimeService("");
3
- export {
4
- screenTimeService
5
- };
@@ -1,28 +0,0 @@
1
- import { ScreenTimeDayEntry, ScreenTimeHourEntry } from '../../types';
2
- export declare class ScreenTimeRequestError extends Error {
3
- readonly status: number;
4
- constructor(status: number);
5
- }
6
- /** A 404 means "no data for this kid upstream", not a failure. */
7
- export declare const isNotFoundError: (error: unknown) => boolean;
8
- /**
9
- * Creates the service of the homepage "Screen time" widget.
10
- *
11
- * Backend contract:
12
- * - `GET /appregistry/screen-time/:kidId/daily?date=…` returns
13
- * `{ durations }`, one entry per hour.
14
- * - `GET /appregistry/screen-time/:kidId/weekly?startDate=…&endDate=…`
15
- * returns `{ dailySummaries }`, one entry per day.
16
- *
17
- * @param baseURL The base URL for the screen-time service API.
18
- */
19
- export declare const createScreenTimeService: (baseURL: string) => {
20
- /**
21
- * Get a kid's screen time for each hour of a day.
22
- */
23
- getDaily(kidId: string, date: string): Promise<ScreenTimeHourEntry[]>;
24
- /**
25
- * Get a kid's screen time for each day between two dates.
26
- */
27
- getWeekly(kidId: string, startDate: string, endDate: string): Promise<ScreenTimeDayEntry[]>;
28
- };
@@ -1,39 +0,0 @@
1
- import { odeServices } from "@edifice.io/client";
2
- class ScreenTimeRequestError extends Error {
3
- constructor(status) {
4
- super(`screen-time ${status}`), this.status = status;
5
- }
6
- }
7
- const isNotFoundError = (error) => error instanceof ScreenTimeRequestError && error.status === 404, createScreenTimeService = (baseURL) => {
8
- async function get(path) {
9
- const http = odeServices.http();
10
- try {
11
- return await http.get(`${baseURL}/appregistry/screen-time/${path}`, {
12
- disableNotifications: !0
13
- });
14
- } catch {
15
- throw new ScreenTimeRequestError(http.latestResponse.status);
16
- }
17
- }
18
- return {
19
- /**
20
- * Get a kid's screen time for each hour of a day.
21
- */
22
- async getDaily(kidId, date) {
23
- const body = await get(`${encodeURIComponent(kidId)}/daily?date=${date}`);
24
- return Array.isArray(body == null ? void 0 : body.durations) ? body.durations : [];
25
- },
26
- /**
27
- * Get a kid's screen time for each day between two dates.
28
- */
29
- async getWeekly(kidId, startDate, endDate) {
30
- const body = await get(`${encodeURIComponent(kidId)}/weekly?startDate=${startDate}&endDate=${endDate}`);
31
- return Array.isArray(body == null ? void 0 : body.dailySummaries) ? body.dailySummaries : [];
32
- }
33
- };
34
- };
35
- export {
36
- ScreenTimeRequestError,
37
- createScreenTimeService,
38
- isNotFoundError
39
- };
@@ -1,23 +0,0 @@
1
- export declare const screenTimeQueryKeys: {
2
- all: () => readonly ["screen-time"];
3
- daily: (kidId: string, date: string) => readonly ["screen-time", "daily", string, string];
4
- weekly: (kidId: string, startDate: string, endDate: string) => readonly ["screen-time", "weekly", string, string, string];
5
- };
6
- export declare const screenTimeQueryOptions: {
7
- getDaily(kidId: string, date: string): import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../..').ScreenTimeHourEntry[], Error, import('../..').ScreenTimeHourEntry[], import('@tanstack/react-query').QueryKey>, "queryFn"> & {
8
- queryFn?: import('@tanstack/react-query').QueryFunction<import('../..').ScreenTimeHourEntry[], import('@tanstack/react-query').QueryKey, never> | undefined;
9
- } & {
10
- queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('../..').ScreenTimeHourEntry[]>;
11
- };
12
- getWeekly(kidId: string, startDate: string, endDate: string): import('@tanstack/react-query').OmitKeyof<import('@tanstack/react-query').UseQueryOptions<import('../..').ScreenTimeDayEntry[], Error, import('../..').ScreenTimeDayEntry[], import('@tanstack/react-query').QueryKey>, "queryFn"> & {
13
- queryFn?: import('@tanstack/react-query').QueryFunction<import('../..').ScreenTimeDayEntry[], import('@tanstack/react-query').QueryKey, never> | undefined;
14
- } & {
15
- queryKey: import('@tanstack/react-query').DataTag<import('@tanstack/react-query').QueryKey, import('../..').ScreenTimeDayEntry[]>;
16
- };
17
- };
18
- export declare const useDailyScreenTime: (kidId: string | undefined, date: string, { enabled }?: {
19
- enabled?: boolean | undefined;
20
- }) => import('@tanstack/react-query').UseQueryResult<import('../..').ScreenTimeHourEntry[], Error>;
21
- export declare const useWeeklyScreenTime: (kidId: string | undefined, startDate: string, endDate: string, { enabled }?: {
22
- enabled?: boolean | undefined;
23
- }) => import('@tanstack/react-query').UseQueryResult<import('../..').ScreenTimeDayEntry[], Error>;
@@ -1,41 +0,0 @@
1
- import { useQuery, queryOptions } from "@tanstack/react-query";
2
- import { screenTimeService } from "../api/index.js";
3
- import { isNotFoundError } from "../api/screenTimeService.js";
4
- const STALE_TIME = 5 * 60 * 1e3, retryUnlessNotFound = (failureCount, error) => !isNotFoundError(error) && failureCount < 3, screenTimeQueryKeys = {
5
- all: () => ["screen-time"],
6
- daily: (kidId, date) => [...screenTimeQueryKeys.all(), "daily", kidId, date],
7
- weekly: (kidId, startDate, endDate) => [...screenTimeQueryKeys.all(), "weekly", kidId, startDate, endDate]
8
- }, screenTimeQueryOptions = {
9
- getDaily(kidId, date) {
10
- return queryOptions({
11
- queryKey: screenTimeQueryKeys.daily(kidId, date),
12
- queryFn: () => screenTimeService.getDaily(kidId, date),
13
- staleTime: STALE_TIME,
14
- retry: retryUnlessNotFound
15
- });
16
- },
17
- getWeekly(kidId, startDate, endDate) {
18
- return queryOptions({
19
- queryKey: screenTimeQueryKeys.weekly(kidId, startDate, endDate),
20
- queryFn: () => screenTimeService.getWeekly(kidId, startDate, endDate),
21
- staleTime: STALE_TIME,
22
- retry: retryUnlessNotFound
23
- });
24
- }
25
- }, useDailyScreenTime = (kidId, date, {
26
- enabled = !0
27
- } = {}) => useQuery({
28
- ...screenTimeQueryOptions.getDaily(kidId ?? "", date),
29
- enabled: enabled && !!kidId
30
- }), useWeeklyScreenTime = (kidId, startDate, endDate, {
31
- enabled = !0
32
- } = {}) => useQuery({
33
- ...screenTimeQueryOptions.getWeekly(kidId ?? "", startDate, endDate),
34
- enabled: enabled && !!kidId
35
- });
36
- export {
37
- screenTimeQueryKeys,
38
- screenTimeQueryOptions,
39
- useDailyScreenTime,
40
- useWeeklyScreenTime
41
- };
@@ -1,30 +0,0 @@
1
- export type ScreenTimeStatus = 'loading' | 'default' | 'empty' | 'error';
2
- export type ScreenTimeView = 'weekly' | 'daily';
3
- export interface ScreenTimeKid {
4
- id: string;
5
- firstName: string;
6
- lastName: string;
7
- displayName: string;
8
- avatarUrl?: string;
9
- }
10
- /** Hour entry of GET /appregistry/screen-time/:kidId/daily */
11
- export interface ScreenTimeHourEntry {
12
- /** "00".."23" */
13
- hour: string;
14
- durationMinutes: number;
15
- schoolUsePercentage: number;
16
- }
17
- /** Day entry of GET /appregistry/screen-time/:kidId/weekly */
18
- export interface ScreenTimeDayEntry {
19
- /** "YYYY-MM-DD" */
20
- date: string;
21
- durationMinutes: number;
22
- schoolUsePercentage: number;
23
- }
24
- export interface ScreenTimeChartBar {
25
- label: string[];
26
- /** Full accessible label, independent of the (possibly abbreviated) visual `label`. */
27
- srLabel: string;
28
- value: number;
29
- tooltip: string;
30
- }
@@ -1,50 +0,0 @@
1
- import { ScreenTimeChartBar, ScreenTimeDayEntry, ScreenTimeHourEntry, ScreenTimeStatus, ScreenTimeView } from './types';
2
- export declare const DATE_FORMAT = "YYYY-MM-DD";
3
- export declare const SCREEN_TIME_AXIS: {
4
- readonly weekly: {
5
- readonly step: 1;
6
- readonly defaultMax: 12;
7
- };
8
- readonly daily: {
9
- readonly step: 5;
10
- readonly defaultMax: 30;
11
- };
12
- };
13
- export declare const SCREEN_TIME_LEARN_MORE_URL = "https://sway.cloud.microsoft/8MnpzrzmspqbDGGx?ref=Link&loc=mysways";
14
- /** Combined status of the screen-time queries a view depends on. */
15
- export declare function getScreenTimeStatus(queries: {
16
- error: Error | null;
17
- isPending: boolean;
18
- data?: unknown[];
19
- }[]): ScreenTimeStatus;
20
- /** Formats a duration in minutes as "1h27min" (or "45min" under 1 h). */
21
- export declare function formatDuration(minutes: number): string;
22
- export declare function sumMinutes(entries: {
23
- durationMinutes: number;
24
- }[]): number;
25
- export declare function getToday(): string;
26
- export declare function addDays(date: string, days: number): string;
27
- /** Monday..Sunday bounds of the week containing `date`, without the dayjs isoWeek plugin. */
28
- export declare function getWeekBounds(date: string): {
29
- start: string;
30
- end: string;
31
- };
32
- /** School year bounds [1 Sept, 31 Aug] containing `today`. */
33
- export declare function getSchoolYearBounds(today: string): {
34
- start: string;
35
- end: string;
36
- };
37
- /**
38
- * Date of the previous day/week, or `undefined` when it would leave the
39
- * school year of `today`.
40
- */
41
- export declare function getPreviousPeriodDate(view: ScreenTimeView, date: string, today: string): string | undefined;
42
- /**
43
- * Date of the next day/week, or `undefined` when it would leave the school
44
- * year of `today`.
45
- */
46
- export declare function getNextPeriodDate(view: ScreenTimeView, date: string, today: string): string | undefined;
47
- export declare function getAxisMax(view: ScreenTimeView, values: number[]): number;
48
- export declare function getAxisLabelStep(view: ScreenTimeView, axisMax: number): number;
49
- export declare function buildWeeklyBars(weekStart: string, days: ScreenTimeDayEntry[], formatDate: (date: string, format: string) => string): ScreenTimeChartBar[];
50
- export declare function buildDailyBars(hours: ScreenTimeHourEntry[]): ScreenTimeChartBar[];
@@ -1,115 +0,0 @@
1
- import dayjs from "dayjs";
2
- import { isNotFoundError } from "./services/api/screenTimeService.js";
3
- const DATE_FORMAT = "YYYY-MM-DD", SCREEN_TIME_AXIS = {
4
- weekly: {
5
- step: 1,
6
- defaultMax: 12
7
- },
8
- daily: {
9
- step: 5,
10
- defaultMax: 30
11
- }
12
- }, SCREEN_TIME_LEARN_MORE_URL = "https://sway.cloud.microsoft/8MnpzrzmspqbDGGx?ref=Link&loc=mysways";
13
- function getScreenTimeStatus(queries) {
14
- return queries.some(({
15
- error
16
- }) => isNotFoundError(error)) ? "empty" : queries.some(({
17
- error
18
- }) => error != null) ? "error" : queries.some(({
19
- isPending
20
- }) => isPending) ? "loading" : queries.every(({
21
- data
22
- }) => !(data != null && data.length)) ? "empty" : "default";
23
- }
24
- function formatDuration(minutes) {
25
- const total = Math.round(minutes), hours = Math.floor(total / 60), remainingMinutes = total % 60;
26
- return hours > 0 ? `${hours}h${String(remainingMinutes).padStart(2, "0")}min` : `${remainingMinutes}min`;
27
- }
28
- function sumMinutes(entries) {
29
- return entries.reduce((total, entry) => total + entry.durationMinutes, 0);
30
- }
31
- function getToday() {
32
- return dayjs().format(DATE_FORMAT);
33
- }
34
- function addDays(date, days) {
35
- return dayjs(date).add(days, "day").format(DATE_FORMAT);
36
- }
37
- function getWeekBounds(date) {
38
- const start = addDays(date, -((dayjs(date).day() + 6) % 7));
39
- return {
40
- start,
41
- end: addDays(start, 6)
42
- };
43
- }
44
- function getSchoolYearBounds(today) {
45
- const d = dayjs(today), startYear = d.month() < 8 ? d.year() - 1 : d.year();
46
- return {
47
- start: `${startYear}-09-01`,
48
- end: `${startYear + 1}-08-31`
49
- };
50
- }
51
- function getPreviousPeriodDate(view, date, today) {
52
- const {
53
- start
54
- } = getSchoolYearBounds(today), periodStart = view === "weekly" ? getWeekBounds(date).start : date;
55
- if (periodStart <= start) return;
56
- const previous = addDays(periodStart, view === "weekly" ? -7 : -1);
57
- return previous < start ? start : previous;
58
- }
59
- function getNextPeriodDate(view, date, today) {
60
- const {
61
- end
62
- } = getSchoolYearBounds(today), next = view === "weekly" ? addDays(getWeekBounds(date).start, 7) : addDays(date, 1);
63
- return next <= end ? next : void 0;
64
- }
65
- function getAxisMax(view, values) {
66
- const max = values.length > 0 ? Math.max(...values) : 0;
67
- return max === 0 ? SCREEN_TIME_AXIS[view].defaultMax : view === "weekly" ? Math.ceil(max) : Math.ceil(max / 5) * 5;
68
- }
69
- function getAxisLabelStep(view, axisMax) {
70
- return view === "daily" ? 5 : axisMax > 6 ? 2 : 1;
71
- }
72
- function buildWeeklyBars(weekStart, days, formatDate) {
73
- return Array.from({
74
- length: 7
75
- }, (_, index) => {
76
- const dayKey = dayjs(weekStart).add(index, "day").format(DATE_FORMAT), entry = days.find((d) => d.date.startsWith(dayKey)), minutes = (entry == null ? void 0 : entry.durationMinutes) ?? 0;
77
- return {
78
- label: [formatDate(dayKey, "dd").charAt(0).toUpperCase(), formatDate(dayKey, "D")],
79
- srLabel: formatDate(dayKey, "dddd D MMMM"),
80
- value: minutes / 60,
81
- tooltip: formatDuration(minutes)
82
- };
83
- });
84
- }
85
- function buildDailyBars(hours) {
86
- return Array.from({
87
- length: 24
88
- }, (_, index) => {
89
- const entry = hours.find((h) => Number(h.hour) === index), minutes = (entry == null ? void 0 : entry.durationMinutes) ?? 0, hh = String(index).padStart(2, "0");
90
- return {
91
- label: index % 2 === 0 ? [`${hh}h`] : [""],
92
- srLabel: `${hh}h`,
93
- value: minutes,
94
- tooltip: formatDuration(minutes)
95
- };
96
- });
97
- }
98
- export {
99
- DATE_FORMAT,
100
- SCREEN_TIME_AXIS,
101
- SCREEN_TIME_LEARN_MORE_URL,
102
- addDays,
103
- buildDailyBars,
104
- buildWeeklyBars,
105
- formatDuration,
106
- getAxisLabelStep,
107
- getAxisMax,
108
- getNextPeriodDate,
109
- getPreviousPeriodDate,
110
- getSchoolYearBounds,
111
- getScreenTimeStatus,
112
- getToday,
113
- getWeekBounds,
114
- sumMinutes
115
- };
@@ -1,43 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { TabsKidsItemProps } from './TabsKidsItem';
3
- export interface TabsKidsProps {
4
- /**
5
- * Items to be displayed
6
- */
7
- items: TabsKidsItemProps[];
8
- /**
9
- * Identifier of the selected item (controlled)
10
- */
11
- activeId: string;
12
- /**
13
- * Get notified when an item is selected
14
- */
15
- onChange: (id: string) => void;
16
- /**
17
- * Content of the selected tab, rendered in a panel below the tab bar
18
- */
19
- children?: ReactNode;
20
- /**
21
- * Display the tab bar, even with a single item. When hidden, only the panel
22
- * of the active item is rendered (e.g. for a student viewing their own data)
23
- * @default true
24
- */
25
- showTabBar?: boolean;
26
- /**
27
- * Accessible name of the tab list
28
- */
29
- ariaLabel?: string;
30
- /**
31
- * Accessible name of the overflow dropdown trigger
32
- */
33
- overflowLabel?: string;
34
- /**
35
- * Additional class name
36
- */
37
- className?: string;
38
- }
39
- export declare const TabsKids: {
40
- ({ items, activeId, onChange, children, showTabBar, ariaLabel, overflowLabel, className, }: TabsKidsProps): import("react/jsx-runtime").JSX.Element;
41
- displayName: string;
42
- };
43
- export default TabsKids;
@@ -1,23 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import clsx from "clsx";
3
- import TabsKidsList from "./TabsKidsList.js";
4
- const COMPACT_THRESHOLD = 3, TabsKids = ({
5
- items,
6
- activeId,
7
- onChange,
8
- children,
9
- showTabBar = !0,
10
- ariaLabel,
11
- overflowLabel,
12
- className
13
- }) => {
14
- const hasTabs = showTabBar && items.length > 0, activeItem = items.find((item) => item.id === activeId);
15
- return /* @__PURE__ */ jsxs("div", { className: clsx("tabs-kids", className), children: [
16
- hasTabs && /* @__PURE__ */ jsx(TabsKidsList, { items, activeId, onSelect: onChange, isCompact: items.length >= COMPACT_THRESHOLD, ariaLabel, overflowLabel }),
17
- activeItem && /* @__PURE__ */ jsx("div", { id: hasTabs ? `tabs-kids-panel-${activeId}` : void 0, role: hasTabs ? "tabpanel" : "region", "aria-labelledby": hasTabs ? `tabs-kids-${activeId}` : void 0, "aria-label": hasTabs ? void 0 : activeItem.label, className: "tabs-kids-panel", children })
18
- ] });
19
- };
20
- export {
21
- TabsKids,
22
- TabsKids as default
23
- };
@@ -1,34 +0,0 @@
1
- import { KeyboardEvent, Ref } from 'react';
2
- export interface TabsKidsItemProps {
3
- /**
4
- * Item identifier
5
- */
6
- id: string;
7
- /**
8
- * Item label
9
- */
10
- label: string;
11
- /**
12
- * Optional avatar URL displayed before the label
13
- */
14
- avatar?: string;
15
- }
16
- interface TabsKidsItemInternalProps extends TabsKidsItemProps {
17
- isActive: boolean;
18
- /**
19
- * Display only the initial of the label when the tab is inactive
20
- */
21
- isCompact: boolean;
22
- /**
23
- * Hidden copy only used to measure the tab width: no id nor tab semantics
24
- */
25
- isMeasure?: boolean;
26
- onSelect?: (id: string) => void;
27
- onKeyDown?: (event: KeyboardEvent<HTMLButtonElement>) => void;
28
- buttonRef?: Ref<HTMLButtonElement>;
29
- }
30
- declare const TabsKidsItem: {
31
- ({ id, label, avatar, isActive, isCompact, isMeasure, onSelect, onKeyDown, buttonRef, }: TabsKidsItemInternalProps): import("react/jsx-runtime").JSX.Element;
32
- displayName: string;
33
- };
34
- export default TabsKidsItem;
@@ -1,26 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import clsx from "clsx";
3
- import Avatar from "../../../../../components/Avatar/Avatar.js";
4
- const TabsKidsItem = ({
5
- id,
6
- label,
7
- avatar,
8
- isActive,
9
- isCompact,
10
- isMeasure = !1,
11
- onSelect,
12
- onKeyDown,
13
- buttonRef
14
- }) => {
15
- const isAbbreviated = isCompact && !isActive, displayedLabel = isAbbreviated ? `${label.trim().charAt(0).toUpperCase()}.` : label;
16
- return /* @__PURE__ */ jsxs("button", { ref: buttonRef, type: "button", role: isMeasure ? void 0 : "tab", id: isMeasure ? void 0 : `tabs-kids-${id}`, "aria-selected": isMeasure ? void 0 : isActive, "aria-controls": isActive && !isMeasure ? `tabs-kids-panel-${id}` : void 0, tabIndex: isActive && !isMeasure ? 0 : -1, title: isMeasure ? void 0 : label, "aria-label": isAbbreviated && !isMeasure ? label : void 0, className: clsx("tabs-kids-item", {
17
- active: isActive,
18
- compact: isAbbreviated
19
- }), onClick: () => onSelect == null ? void 0 : onSelect(id), onKeyDown, children: [
20
- avatar && /* @__PURE__ */ jsx("span", { className: "tabs-kids-item-avatar", children: /* @__PURE__ */ jsx(Avatar, { alt: "", size: "xs", variant: "circle", src: avatar }) }),
21
- /* @__PURE__ */ jsx("span", { className: "tabs-kids-item-label", children: displayedLabel })
22
- ] });
23
- };
24
- export {
25
- TabsKidsItem as default
26
- };
@@ -1,14 +0,0 @@
1
- import { TabsKidsItemProps } from './TabsKidsItem';
2
- interface TabsKidsListProps {
3
- items: TabsKidsItemProps[];
4
- activeId: string;
5
- onSelect: (id: string) => void;
6
- isCompact: boolean;
7
- ariaLabel?: string;
8
- overflowLabel?: string;
9
- }
10
- declare const TabsKidsList: {
11
- ({ items, activeId, onSelect, isCompact, ariaLabel, overflowLabel, }: TabsKidsListProps): import("react/jsx-runtime").JSX.Element;
12
- displayName: string;
13
- };
14
- export default TabsKidsList;
@@ -1,64 +0,0 @@
1
- import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
- import { useRef } from "react";
3
- import SvgIconUsers from "../../../../icons/components/IconUsers.js";
4
- import { useTabsKidsOverflow } from "../hooks/useTabsKidsOverflow.js";
5
- import TabsKidsItem from "./TabsKidsItem.js";
6
- import { useTranslation } from "react-i18next";
7
- import Dropdown from "../../../../../components/Dropdown/Dropdown.js";
8
- import ButtonBeta from "../../../../../components/ButtonBeta/ButtonBeta.js";
9
- const TabsKidsList = ({
10
- items,
11
- activeId,
12
- onSelect,
13
- isCompact,
14
- ariaLabel,
15
- overflowLabel
16
- }) => {
17
- const {
18
- t
19
- } = useTranslation(), tabsRef = useRef([]), {
20
- tabBarRef,
21
- measureRef,
22
- visibleItems,
23
- overflowItems
24
- } = useTabsKidsOverflow({
25
- items,
26
- activeId,
27
- isCompact
28
- }), handleKeyDown = (event, order) => {
29
- var _a;
30
- const last = visibleItems.length - 1;
31
- let next;
32
- switch (event.key) {
33
- case "ArrowRight":
34
- next = order === last ? 0 : order + 1;
35
- break;
36
- case "ArrowLeft":
37
- next = order === 0 ? last : order - 1;
38
- break;
39
- case "Home":
40
- next = 0;
41
- break;
42
- case "End":
43
- next = last;
44
- break;
45
- }
46
- next !== void 0 && (event.preventDefault(), (_a = tabsRef.current[next]) == null || _a.focus(), onSelect(visibleItems[next].id));
47
- };
48
- return /* @__PURE__ */ jsxs("div", { className: "tabs-kids-bar", ref: tabBarRef, children: [
49
- /* @__PURE__ */ jsx("div", { className: "tabs-kids-list", role: "tablist", "aria-label": ariaLabel, children: visibleItems.map((item, order) => /* @__PURE__ */ jsx(TabsKidsItem, { ...item, isActive: item.id === activeId, isCompact, onSelect, onKeyDown: (event) => handleKeyDown(event, order), buttonRef: (el) => {
50
- tabsRef.current[order] = el;
51
- } }, item.id)) }),
52
- overflowItems.length > 0 && /* @__PURE__ */ jsx("div", { className: "tabs-kids-overflow", children: /* @__PURE__ */ jsx(Dropdown, { placement: "bottom-end", children: (triggerProps) => /* @__PURE__ */ jsxs(Fragment, { children: [
53
- /* @__PURE__ */ jsx(ButtonBeta, { ...triggerProps, type: "button", "aria-label": overflowLabel ?? t("homepage.tabsKids.see.more", "Voir plus"), color: "default", variant: "ghost", leftIcon: /* @__PURE__ */ jsx(SvgIconUsers, {}) }),
54
- /* @__PURE__ */ jsx(Dropdown.Menu, { children: overflowItems.map((item) => /* @__PURE__ */ jsx(Dropdown.RadioItem, { value: item.id, model: activeId, onChange: onSelect, children: item.label }, item.id)) })
55
- ] }) }) }),
56
- /* @__PURE__ */ jsx("div", { className: "tabs-kids-measure", "aria-hidden": "true", children: /* @__PURE__ */ jsxs("div", { className: "tabs-kids-measure-content", ref: measureRef, children: [
57
- items.map((item) => /* @__PURE__ */ jsx(TabsKidsItem, { ...item, isActive: item.id === activeId, isCompact, isMeasure: !0 }, item.id)),
58
- /* @__PURE__ */ jsx("div", { className: "tabs-kids-overflow tabs-kids-measure-trigger", children: /* @__PURE__ */ jsx(ButtonBeta, { tabIndex: -1, "aria-label": "", color: "default", variant: "ghost", leftIcon: /* @__PURE__ */ jsx(SvgIconUsers, {}) }) })
59
- ] }) })
60
- ] });
61
- };
62
- export {
63
- TabsKidsList as default
64
- };