@edifice.io/react 2.5.6 → 2.5.8-develop-b2school.20260123114940

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 (186) hide show
  1. package/README.md +5 -0
  2. package/dist/_virtual/_commonjsHelpers.js +8 -0
  3. package/dist/_virtual/common.js +4 -0
  4. package/dist/_virtual/de_DE.js +4 -0
  5. package/dist/_virtual/de_DE2.js +4 -0
  6. package/dist/_virtual/de_DE3.js +4 -0
  7. package/dist/_virtual/de_DE4.js +4 -0
  8. package/dist/_virtual/de_DE5.js +4 -0
  9. package/dist/_virtual/de_DE6.js +4 -0
  10. package/dist/_virtual/defineProperty.js +4 -0
  11. package/dist/_virtual/es_ES.js +4 -0
  12. package/dist/_virtual/es_ES2.js +4 -0
  13. package/dist/_virtual/es_ES3.js +4 -0
  14. package/dist/_virtual/es_ES4.js +4 -0
  15. package/dist/_virtual/es_ES5.js +4 -0
  16. package/dist/_virtual/es_ES6.js +4 -0
  17. package/dist/_virtual/fr_FR.js +4 -0
  18. package/dist/_virtual/fr_FR2.js +4 -0
  19. package/dist/_virtual/fr_FR3.js +4 -0
  20. package/dist/_virtual/fr_FR4.js +4 -0
  21. package/dist/_virtual/fr_FR5.js +4 -0
  22. package/dist/_virtual/fr_FR6.js +4 -0
  23. package/dist/_virtual/interopRequireDefault.js +4 -0
  24. package/dist/_virtual/it_IT.js +4 -0
  25. package/dist/_virtual/it_IT2.js +4 -0
  26. package/dist/_virtual/it_IT3.js +4 -0
  27. package/dist/_virtual/it_IT4.js +4 -0
  28. package/dist/_virtual/it_IT5.js +4 -0
  29. package/dist/_virtual/it_IT6.js +4 -0
  30. package/dist/_virtual/localeData.js +4 -0
  31. package/dist/_virtual/objectSpread2.js +4 -0
  32. package/dist/_virtual/pt_PT.js +4 -0
  33. package/dist/_virtual/pt_PT2.js +4 -0
  34. package/dist/_virtual/pt_PT3.js +4 -0
  35. package/dist/_virtual/pt_PT4.js +4 -0
  36. package/dist/_virtual/pt_PT5.js +4 -0
  37. package/dist/_virtual/pt_PT6.js +4 -0
  38. package/dist/_virtual/toPrimitive.js +4 -0
  39. package/dist/_virtual/toPropertyKey.js +4 -0
  40. package/dist/_virtual/typeof.js +4 -0
  41. package/dist/_virtual/weekday.js +4 -0
  42. package/dist/components/AppIcon/index.d.ts +1 -0
  43. package/dist/components/Badge/Badge.d.ts +12 -1
  44. package/dist/components/Badge/Badge.js +15 -2
  45. package/dist/components/Combobox/Combobox.js +1 -1
  46. package/dist/components/Combobox/ComboboxTrigger.js +1 -1
  47. package/dist/components/DatePicker/DatePicker.d.ts +57 -0
  48. package/dist/components/DatePicker/DatePicker.js +38 -0
  49. package/dist/components/DatePicker/index.d.ts +2 -0
  50. package/dist/components/Divider/Divider.d.ts +38 -0
  51. package/dist/components/Divider/Divider.js +11 -0
  52. package/dist/components/Divider/index.d.ts +2 -0
  53. package/dist/components/Dropdown/DropdownContext.js +1 -1
  54. package/dist/components/Flex/Flex.js +1 -1
  55. package/dist/components/Form/FormContext.js +1 -1
  56. package/dist/components/Layout/Layout.js +1 -2
  57. package/dist/components/Menu/components/MenuButton.d.ts +2 -0
  58. package/dist/components/Menu/components/MenuButton.js +13 -4
  59. package/dist/components/Modal/Modal.d.ts +4 -0
  60. package/dist/components/Modal/Modal.js +13 -12
  61. package/dist/components/SegmentedControl/SegmentedControl.d.ts +59 -0
  62. package/dist/components/SegmentedControl/SegmentedControl.js +24 -0
  63. package/dist/components/SegmentedControl/index.d.ts +2 -0
  64. package/dist/components/Select/Select.d.ts +6 -2
  65. package/dist/components/Select/Select.js +10 -4
  66. package/dist/components/Toolbar/Toolbar.js +1 -1
  67. package/dist/components/index.d.ts +3 -0
  68. package/dist/editor.js +42 -38
  69. package/dist/hooks/index.d.ts +1 -0
  70. package/dist/hooks/useConversation/useConversation.js +3 -1
  71. package/dist/hooks/useDropdown/useDropdown.js +1 -1
  72. package/dist/hooks/useDropzone/useDropzone.d.ts +2 -2
  73. package/dist/hooks/useDropzone/useDropzone.js +24 -4
  74. package/dist/hooks/useInfiniteScroll/index.d.ts +1 -0
  75. package/dist/hooks/useInfiniteScroll/useInfiniteScroll.d.ts +33 -0
  76. package/dist/hooks/useInfiniteScroll/useInfiniteScroll.js +20 -0
  77. package/dist/icons.js +318 -312
  78. package/dist/index.js +230 -212
  79. package/dist/modals.js +14 -12
  80. package/dist/modules/comments/components/Comment.js +8 -6
  81. package/dist/modules/comments/components/CommentDate.js +7 -10
  82. package/dist/modules/comments/components/CommentDeleted.js +1 -1
  83. package/dist/modules/comments/components/CommentForm.d.ts +1 -1
  84. package/dist/modules/comments/components/CommentForm.js +6 -6
  85. package/dist/modules/comments/components/CommentList.js +1 -1
  86. package/dist/modules/comments/components/CommentTitle.js +1 -1
  87. package/dist/modules/comments/components/DeleteModal.js +14 -8
  88. package/dist/modules/comments/provider/CommentProvider.js +4 -4
  89. package/dist/modules/comments/types.d.ts +3 -1
  90. package/dist/modules/editor/components/Editor/Editor.js +1 -1
  91. package/dist/modules/editor/components/Editor/EditorPreview.d.ts +14 -0
  92. package/dist/modules/editor/components/Editor/EditorPreview.js +56 -0
  93. package/dist/modules/editor/components/Editor/EditorPreviewSkeleton.d.ts +8 -0
  94. package/dist/modules/editor/components/Editor/EditorPreviewSkeleton.js +24 -0
  95. package/dist/modules/editor/components/Editor/index.d.ts +2 -0
  96. package/dist/modules/editor/components/Renderer/AttachmentRenderer.js +2 -2
  97. package/dist/modules/editor/hooks/useMediaLibraryEditor.js +4 -3
  98. package/dist/modules/editor/hooks/useTipTapEditor.js +4 -4
  99. package/dist/modules/icons/components/IconCalendarEdit.d.ts +7 -0
  100. package/dist/modules/icons/components/IconCalendarEdit.js +12 -0
  101. package/dist/modules/icons/components/IconClockAlert.d.ts +7 -0
  102. package/dist/modules/icons/components/IconClockAlert.js +17 -0
  103. package/dist/modules/icons/components/IconSubmitToValidate.d.ts +7 -0
  104. package/dist/modules/icons/components/IconSubmitToValidate.js +12 -0
  105. package/dist/modules/icons/components/index.d.ts +3 -0
  106. package/dist/modules/modals/OnboardingModal/OnboardingModal.js +5 -5
  107. package/dist/modules/modals/ResourceModal/ResourceModal.js +1 -2
  108. package/dist/modules/modals/ShareModal/ShareBookmark.d.ts +1 -1
  109. package/dist/modules/modals/ShareModal/ShareBookmark.js +6 -3
  110. package/dist/modules/modals/ShareModal/ShareBookmarkLine.js +4 -4
  111. package/dist/modules/modals/ShareModal/ShareModal.d.ts +1 -11
  112. package/dist/modules/modals/ShareModal/ShareModal.js +13 -105
  113. package/dist/modules/modals/ShareModal/ShareResources.d.ts +187 -0
  114. package/dist/modules/modals/ShareModal/ShareResources.js +148 -0
  115. package/dist/modules/modals/ShareModal/hooks/useSearch.d.ts +5 -3
  116. package/dist/modules/modals/ShareModal/hooks/useSearch.js +12 -16
  117. package/dist/modules/modals/ShareModal/hooks/useShare.d.ts +12 -5
  118. package/dist/modules/modals/ShareModal/hooks/useShare.js +20 -13
  119. package/dist/modules/modals/ShareModal/hooks/useShareBookmark.d.ts +1 -1
  120. package/dist/modules/modals/ShareModal/hooks/useShareBookmark.js +1 -1
  121. package/dist/modules/modals/ShareModal/index.d.ts +3 -1
  122. package/dist/modules/multimedia/Linker/ExternalLinker/ExternalLinker.js +1 -2
  123. package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +1 -2
  124. package/dist/modules/multimedia/MediaLibrary/MediaLibrary.js +1 -1
  125. package/dist/modules/multimedia/MediaLibrary/index.d.ts +2 -0
  126. package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js +1 -1
  127. package/dist/modules/multimedia/index.d.ts +1 -0
  128. package/dist/multimedia.js +20 -14
  129. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/defineProperty.js +18 -0
  130. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/interopRequireDefault.js +13 -0
  131. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/objectSpread2.js +31 -0
  132. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/toPrimitive.js +20 -0
  133. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/toPropertyKey.js +15 -0
  134. package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/typeof.js +16 -0
  135. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/de_DE.js +11 -0
  136. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/es_ES.js +11 -0
  137. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/fr_FR.js +11 -0
  138. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/it_IT.js +11 -0
  139. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/pt_PT.js +11 -0
  140. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/de_DE.js +22 -0
  141. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/es_ES.js +22 -0
  142. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/fr_FR.js +27 -0
  143. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/it_IT.js +20 -0
  144. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/pt_PT.js +45 -0
  145. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/de_DE.js +145 -0
  146. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/es_ES.js +145 -0
  147. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/fr_FR.js +144 -0
  148. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/it_IT.js +156 -0
  149. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/pt_PT.js +158 -0
  150. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/de_DE.js +10 -0
  151. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/es_ES.js +10 -0
  152. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/fr_FR.js +10 -0
  153. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/it_IT.js +10 -0
  154. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/pt_PT.js +10 -0
  155. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/de_DE.js +8 -0
  156. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/es_ES.js +8 -0
  157. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/fr_FR.js +8 -0
  158. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/it_IT.js +8 -0
  159. package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/pt_PT.js +8 -0
  160. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/localeData.js +82 -0
  161. package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/weekday.js +19 -0
  162. package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/de_DE.js +21 -0
  163. package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/es_ES.js +21 -0
  164. package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/fr_FR.js +21 -0
  165. package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/it_IT.js +21 -0
  166. package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/pt_PT.js +21 -0
  167. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/common.js +14 -0
  168. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/de_DE.js +37 -0
  169. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/es_ES.js +37 -0
  170. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/fr_FR.js +38 -0
  171. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/it_IT.js +37 -0
  172. package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/pt_PT.js +39 -0
  173. package/dist/providers/AntThemeProvider/AntProvider.d.ts +2 -2
  174. package/dist/providers/AntThemeProvider/AntProvider.js +19 -2
  175. package/dist/providers/AntThemeProvider/antThemeConfig.js +1 -2
  176. package/dist/style.css +1 -1
  177. package/dist/utilities/index.d.ts +1 -0
  178. package/dist/utilities/mime-types/index.d.ts +1 -0
  179. package/dist/utilities/mime-types/mime-types-utils.d.ts +1 -0
  180. package/dist/utilities/mime-types/mime-types-utils.js +4 -0
  181. package/dist/utilities/react-query/index.d.ts +1 -0
  182. package/dist/utilities/react-query/react-query-utils.d.ts +21 -0
  183. package/dist/utilities/react-query/react-query-utils.js +13 -0
  184. package/package.json +8 -7
  185. package/dist/modules/comments/components/CommentHeader.d.ts +0 -3
  186. package/dist/modules/comments/components/CommentHeader.js +0 -8
package/README.md CHANGED
@@ -105,6 +105,11 @@ export interface ButtonProps {
105
105
  export * from './Button';
106
106
  ```
107
107
 
108
+ ## Adding Icons
109
+
110
+ https://edifice-community.atlassian.net/wiki/spaces/ODE/pages/4371611649/Overview#Ajout-de-l%E2%80%99ic%C3%B4ne
111
+
108
112
  ## Dev
109
113
 
110
114
  You can build your component using `Storybook`. See [README](../../docs//README.md)
115
+
@@ -0,0 +1,8 @@
1
+ var commonjsGlobal = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
2
+ function getDefaultExportFromCjs(x) {
3
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x.default : x;
4
+ }
5
+ export {
6
+ commonjsGlobal,
7
+ getDefaultExportFromCjs
8
+ };
@@ -0,0 +1,4 @@
1
+ var common = {};
2
+ export {
3
+ common as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var de_DE = {};
2
+ export {
3
+ de_DE as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var defineProperty = { exports: {} };
2
+ export {
3
+ defineProperty as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var es_ES = {};
2
+ export {
3
+ es_ES as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var fr_FR = {};
2
+ export {
3
+ fr_FR as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var interopRequireDefault = { exports: {} };
2
+ export {
3
+ interopRequireDefault as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var it_IT = {};
2
+ export {
3
+ it_IT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var localeData = { exports: {} };
2
+ export {
3
+ localeData as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var objectSpread2 = { exports: {} };
2
+ export {
3
+ objectSpread2 as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var pt_PT = {};
2
+ export {
3
+ pt_PT as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var toPrimitive = { exports: {} };
2
+ export {
3
+ toPrimitive as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var toPropertyKey = { exports: {} };
2
+ export {
3
+ toPropertyKey as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var _typeof = { exports: {} };
2
+ export {
3
+ _typeof as __module
4
+ };
@@ -0,0 +1,4 @@
1
+ var weekday = { exports: {} };
2
+ export {
3
+ weekday as __module
4
+ };
@@ -1 +1,2 @@
1
+ export * from './AppIcon';
1
2
  export { default as AppIcon } from './AppIcon';
@@ -26,7 +26,17 @@ export type ChipBadgeVariant = {
26
26
  export type LinkBadgeVariant = {
27
27
  type: 'link';
28
28
  };
29
- export type BadgeVariants = NotificationBadgeVariant | ContentBadgeVariant | ProfileBadgeVariant | ChipBadgeVariant | LinkBadgeVariant;
29
+ /**
30
+ * Badge variant : beta.
31
+ * Beta Badge is used to indicate that a feature is in beta phase.
32
+ * The color prop allows to customize the badge color to match the app color.
33
+ * Defaults to black if not provided.
34
+ */
35
+ export type BetaBadgeVariant = {
36
+ type: 'beta';
37
+ color?: string;
38
+ };
39
+ export type BadgeVariants = NotificationBadgeVariant | ContentBadgeVariant | ProfileBadgeVariant | ChipBadgeVariant | LinkBadgeVariant | BetaBadgeVariant;
30
40
  export interface BadgeProps extends React.ComponentPropsWithRef<'span'> {
31
41
  /**
32
42
  * Badge variant : notification, link or profile (Teacher|Student|Relative|Personnel)
@@ -35,6 +45,7 @@ export interface BadgeProps extends React.ComponentPropsWithRef<'span'> {
35
45
  variant?: BadgeVariants;
36
46
  /**
37
47
  * Text or icon (or whatever) to render as children elements.
48
+ * Defaults to 'BÊTA' for beta variant.
38
49
  */
39
50
  children?: ReactNode;
40
51
  /**
@@ -1,4 +1,4 @@
1
- import { jsx } from "react/jsx-runtime";
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { forwardRef } from "react";
3
3
  import clsx from "clsx";
4
4
  const Badge = /* @__PURE__ */ forwardRef(({
@@ -11,7 +11,20 @@ const Badge = /* @__PURE__ */ forwardRef(({
11
11
  ...restProps
12
12
  }, ref) => {
13
13
  const classes = clsx("badge rounded-pill", (variant.type === "content" || variant.type === "user") && "background" in variant ? "bg-gray-200" : (variant.type === "content" || variant.type === "user") && !("background" in variant) ? "border border-0" : "", variant.type === "content" && `text-${variant.level}`, variant.type === "notification" && `badge-notification bg-${variant.level} text-light border border-0`, variant.type === "user" && `badge-profile-${variant.profile.toLowerCase()}`, variant.type === "link" && "badge-link border border-0", variant.type === "chip" && "bg-gray-200", className);
14
- return /* @__PURE__ */ jsx("span", { ref, className: classes, ...restProps, children: variant.type === "chip" ? /* @__PURE__ */ jsx("div", { className: "d-flex fw-800 align-items-center", children }) : children });
14
+ return /* @__PURE__ */ jsxs("span", { ref, className: classes, style: (() => {
15
+ if (variant.type !== "beta") return;
16
+ const color = variant.color ?? "#000000";
17
+ return {
18
+ borderColor: color,
19
+ color,
20
+ backgroundColor: `${color}10`
21
+ // the 2 last hexadecimal numbers are for opacity
22
+ };
23
+ })(), ...restProps, children: [
24
+ variant.type === "chip" && /* @__PURE__ */ jsx("div", { className: "d-flex fw-800 align-items-center", children }),
25
+ variant.type === "beta" && (children ?? "BÊTA"),
26
+ variant.type !== "chip" && variant.type !== "beta" && children
27
+ ] });
15
28
  });
16
29
  export {
17
30
  Badge as default
@@ -51,7 +51,7 @@ const ComboboxComponent = /* @__PURE__ */ forwardRef(({
51
51
  /* @__PURE__ */ jsx(Combobox.Trigger, { placeholder, searchMinLength, handleSearchInputChange: onSearchInputChange, handleSearchInputKeyUp: (event) => {
52
52
  onSearchInputKeyUp == null || onSearchInputKeyUp(event);
53
53
  }, value, variant, renderInputGroup, renderSelectedItems, hasDefault: !!options.length, onFocus, onBlur, inputRef }),
54
- /* @__PURE__ */ jsx(Dropdown.Menu, { children: renderContent() })
54
+ /* @__PURE__ */ jsx(Dropdown.Menu, { "data-testid": "combobox-search-menu", children: renderContent() })
55
55
  ] });
56
56
  }), Combobox = /* @__PURE__ */ Object.assign(ComboboxComponent, {
57
57
  Trigger: ComboboxTrigger
@@ -48,7 +48,7 @@ const ComboboxTrigger = ({
48
48
  !!renderInputGroup && /* @__PURE__ */ jsx("label", { className: "input-group-text pe-0" + classNameVariant, htmlFor: triggerProps.id, children: renderInputGroup }),
49
49
  /* @__PURE__ */ jsxs("div", { className: "d-flex align-items-center flex-wrap flex-fill", children: [
50
50
  renderSelectedItems,
51
- /* @__PURE__ */ jsx(Input, { ...inputProps, className: classNameInput, onFocus, onBlur, noValidationIcon: !0, placeholder, size: "md", type: "search", onKeyDown: itemProps.onMenuItemKeyDown })
51
+ /* @__PURE__ */ jsx(Input, { "data-testid": "combobox-search-input", ...inputProps, className: classNameInput, onFocus, onBlur, noValidationIcon: !0, placeholder, size: "md", type: "search", onKeyDown: itemProps.onMenuItemKeyDown })
52
52
  ] })
53
53
  ] });
54
54
  };
@@ -0,0 +1,57 @@
1
+ /**
2
+ * DatePicker component props
3
+ *
4
+ * Minimal interface that only exposes what is necessary.
5
+ * Ant Design implementation is hidden and no Ant Design-specific props are exposed.
6
+ * Standard HTML div attributes are supported (passed through to the underlying DOM element).
7
+ */
8
+ export interface DatePickerProps extends Omit<React.HTMLAttributes<HTMLElement>, 'onChange' | 'value' | 'defaultValue'> {
9
+ /**
10
+ * Selected date values
11
+ * @default today's date is setted by ant design if no value is provided
12
+ */
13
+ value?: Date;
14
+ /**
15
+ * Callback called when date changes
16
+ */
17
+ onChange?: (date?: Date) => void;
18
+ /**
19
+ * Date format to display in the picker
20
+ * @default 'DD / MM / YYYY'
21
+ */
22
+ dateFormat?: string;
23
+ /**
24
+ * Minimum selectable date
25
+ */
26
+ minDate?: Date;
27
+ /**
28
+ * Maximum selectable date
29
+ */
30
+ maxDate?: Date;
31
+ }
32
+ /**
33
+ * Type for DatePicker ref
34
+ */
35
+ /**
36
+ * DatePicker component
37
+ *
38
+ * Date picker component for selecting a date.
39
+ *
40
+ * **Note:** This component uses Ant Design's DatePicker component internally.
41
+ * Only the props defined in DatePickerProps are allowed to prevent
42
+ * dependency on Ant Design-specific features. To replace the implementation,
43
+ * modify the component body below.
44
+ *
45
+ * @example
46
+ * ```tsx
47
+ * <DatePicker
48
+ * value={date}
49
+ * onChange={(date) => setDate(date)}
50
+ * dateFormat="YYYY-MM-DD"
51
+ * minDate={new Date(today.setDate(today.getDate() - 2))}
52
+ * maxDate={new Date(today.setDate(today.getDate() + 3))}
53
+ * />
54
+ * ```
55
+ */
56
+ declare const DatePicker: import('react').ForwardRefExoticComponent<DatePickerProps & import('react').RefAttributes<HTMLElement>>;
57
+ export default DatePicker;
@@ -0,0 +1,38 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { DatePicker as DatePicker$1 } from "antd";
3
+ import dayjs from "dayjs";
4
+ import localeData from "../../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/localeData.js";
5
+ import weekday from "../../node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/weekday.js";
6
+ import { forwardRef } from "react";
7
+ import "dayjs/locale/de.js";
8
+ import "dayjs/locale/es.js";
9
+ import "dayjs/locale/fr.js";
10
+ import "dayjs/locale/it.js";
11
+ import "dayjs/locale/pt.js";
12
+ dayjs.extend(weekday);
13
+ dayjs.extend(localeData);
14
+ const DatePicker = /* @__PURE__ */ forwardRef(({
15
+ value,
16
+ onChange,
17
+ dateFormat = "DD / MM / YYYY",
18
+ minDate,
19
+ maxDate,
20
+ ...htmlProps
21
+ }, ref) => {
22
+ const handleChange = (date) => {
23
+ onChange == null || onChange(date ? date.toDate() : void 0);
24
+ }, antProps = {
25
+ value: value ? dayjs(value) : void 0,
26
+ onChange: handleChange,
27
+ format: dateFormat,
28
+ minDate: minDate ? dayjs(minDate) : void 0,
29
+ maxDate: maxDate ? dayjs(maxDate) : void 0,
30
+ ref,
31
+ // Cast necessary because AntDatePicker expects a specific type, but our API exposes only HTMLElement to avoid dependency on Ant Design-specific features.
32
+ ...htmlProps
33
+ };
34
+ return /* @__PURE__ */ jsx(DatePicker$1, { ...antProps, getPopupContainer: (triggerNode) => triggerNode.parentElement || document.body });
35
+ });
36
+ export {
37
+ DatePicker as default
38
+ };
@@ -0,0 +1,2 @@
1
+ export { default as DatePicker } from './DatePicker';
2
+ export * from './DatePicker';
@@ -0,0 +1,38 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * A divider component that renders a horizontal or vertical line to separate content.
4
+ *
5
+ * @param props - The component props
6
+ * @param props.children - Content to be displayed inside the divider
7
+ * @param props.vertical - Whether the divider is vertical. Defaults to false
8
+ * @param props.className - Optional CSS class name for additional styling of the divider
9
+ * @default 'border-gray-500'
10
+ * @param props.style - Optional inline styles for the divider
11
+ *
12
+ * @returns A React component that renders a divider with the specified properties
13
+ *
14
+ * @example
15
+ * ```tsx
16
+ * // Basic horizontal divider
17
+ * <Divider />
18
+ *
19
+ * // Divider with text content
20
+ * <Divider>Section Title</Divider>
21
+ *
22
+ * // Vertical divider
23
+ * <Divider vertical />
24
+ *
25
+ * // Custom colored divider
26
+ * <Divider className="border-red-500" />
27
+ * ```
28
+ */
29
+ declare const Divider: {
30
+ ({ children, vertical, className, style, }: {
31
+ children?: ReactNode;
32
+ vertical?: boolean;
33
+ className?: string;
34
+ style?: React.CSSProperties;
35
+ }): import("react/jsx-runtime").JSX.Element;
36
+ displayName: string;
37
+ };
38
+ export default Divider;
@@ -0,0 +1,11 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Divider as Divider$1 } from "antd";
3
+ const Divider = ({
4
+ children,
5
+ vertical = !1,
6
+ className = "border-gray-500",
7
+ style
8
+ }) => /* @__PURE__ */ jsx(Divider$1, { plain: !0, children, type: vertical ? "vertical" : "horizontal", className, orientation: "center", style });
9
+ export {
10
+ Divider as default
11
+ };
@@ -0,0 +1,2 @@
1
+ export * from './Divider';
2
+ export { default as Divider } from './Divider';
@@ -1,4 +1,4 @@
1
- import { createContext, useContext } from "react";
1
+ import { useContext, createContext } from "react";
2
2
  const DropdownContext = /* @__PURE__ */ createContext(null), useDropdownContext = () => {
3
3
  const context = useContext(DropdownContext);
4
4
  if (!context)
@@ -13,7 +13,7 @@ const Flex = /* @__PURE__ */ forwardRef(({
13
13
  children,
14
14
  ...restProps
15
15
  }, ref) => {
16
- const classes = clsx("d-flex", direction && `flex-${direction}`, fill && "flex-fill", align && `align-items-${align}`, justify && `justify-content-${justify}`, gap && `gap-${gap}`, wrap && `flex-${wrap}`, className);
16
+ const classes = clsx("d-flex", direction && `flex-${direction}`, fill && "flex-fill", align && `align-items-${align}`, justify && `justify-content-${justify}`, gap && `gap-${gap}`, wrap && `flex-${wrap === "reverse" ? "wrap-reverse" : wrap}`, className);
17
17
  return /* @__PURE__ */ jsx(Component, { ref, className: classes, ...restProps, children });
18
18
  });
19
19
  export {
@@ -1,4 +1,4 @@
1
- import { createContext, useContext } from "react";
1
+ import { useContext, createContext } from "react";
2
2
  const Context = /* @__PURE__ */ createContext(null), useFormControl = () => {
3
3
  const context = useContext(Context);
4
4
  if (!context)
@@ -42,6 +42,5 @@ const Layout = ({
42
42
  ] });
43
43
  };
44
44
  export {
45
- Layout,
46
- Layout as default
45
+ Layout
47
46
  };
@@ -1,5 +1,7 @@
1
1
  import { ButtonProps } from '../../Button';
2
2
  export type MenuButtonProps = Pick<ButtonProps, 'children' | 'leftIcon' | 'rightIcon' | 'onClick'> & {
3
3
  selected: boolean;
4
+ className?: string;
5
+ size?: 'md' | 'lg';
4
6
  };
5
7
  export declare const MenuButton: (props: Partial<MenuButtonProps>) => import("react/jsx-runtime").JSX.Element;
@@ -8,13 +8,22 @@ const MenuButton = (props) => {
8
8
  leftIcon,
9
9
  rightIcon,
10
10
  onClick,
11
- children
11
+ children,
12
+ className,
13
+ size
12
14
  } = props, {
13
15
  childProps
14
16
  } = useMenuContext();
15
- return /* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", className: clsx("stack w-100", {
16
- selected
17
- }), leftIcon, rightIcon, onClick, ...childProps, children });
17
+ return /* @__PURE__ */ jsx(Button, { variant: "ghost", color: "tertiary", className: clsx("stack w-100 overflow-hidden", {
18
+ selected,
19
+ "menu-button-lg": size === "lg"
20
+ }, className), leftIcon, rightIcon, onClick, ...childProps, style: size === "lg" ? {
21
+ height: "auto"
22
+ } : void 0, children: /* @__PURE__ */ jsx("div", { className: clsx("text-truncate w-100 text-start", {
23
+ "text-truncate-2 text-start ms-0": size === "lg"
24
+ }), style: {
25
+ overflowWrap: "break-word"
26
+ }, children }) });
18
27
  };
19
28
  export {
20
29
  MenuButton
@@ -5,6 +5,10 @@ export interface ModalProps {
5
5
  * Modal id (useful when multiple modal on the same page)
6
6
  */
7
7
  id: string;
8
+ /**
9
+ * Modal testid
10
+ */
11
+ ['data-testid']?: string;
8
12
  /**
9
13
  * Is Modal Open
10
14
  */
@@ -10,17 +10,18 @@ import ModalSubtitle from "./ModalSubtitle.js";
10
10
  import useClickOutside from "../../hooks/useClickOutside/useClickOutside.js";
11
11
  import useTrapFocus from "../../hooks/useTrapFocus/useTrapFocus.js";
12
12
  import useKeyPress from "../../hooks/useKeyPress/useKeyPress.js";
13
- const Root = /* @__PURE__ */ forwardRef((props, ref) => {
14
- const {
15
- id,
16
- isOpen,
17
- onModalClose,
18
- size = "md",
19
- viewport = !1,
20
- scrollable = !1,
21
- focusId,
22
- children
23
- } = props, ariaLabelId = `aria_label_${id}`, ariaDescriptionId = `aria_desc_${id}`, modalRef = useClickOutside(onModalClose), trapRef = useTrapFocus(isOpen);
13
+ const Root = /* @__PURE__ */ forwardRef(({
14
+ id,
15
+ isOpen,
16
+ onModalClose,
17
+ size = "md",
18
+ viewport = !1,
19
+ scrollable = !1,
20
+ focusId,
21
+ children,
22
+ ...otherDivProps
23
+ }, ref) => {
24
+ const ariaLabelId = `aria_label_${id}`, ariaDescriptionId = `aria_desc_${id}`, modalRef = useClickOutside(onModalClose), trapRef = useTrapFocus(isOpen);
24
25
  useKeyPress(onModalClose, ["Escape"]), useEffect(() => {
25
26
  if (isOpen && (document.body.style.overflow = "hidden", focusId)) {
26
27
  const elem = document.getElementById(focusId);
@@ -54,7 +55,7 @@ const Root = /* @__PURE__ */ forwardRef((props, ref) => {
54
55
  }
55
56
  });
56
57
  return /* @__PURE__ */ jsx(ModalContext.Provider, { value: modalContextValue, children: transition((style, isOpen2) => /* @__PURE__ */ jsxs(Fragment, { children: [
57
- isOpen2 && /* @__PURE__ */ jsx(animated.div, { id, ref, role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelId, "aria-describedby": ariaDescriptionId, className: modalClasses, style, tabIndex: -1, children: /* @__PURE__ */ jsx("div", { id: `${id}_ref`, ref: (node) => {
58
+ isOpen2 && /* @__PURE__ */ jsx(animated.div, { id, ref, role: "dialog", "aria-modal": "true", "aria-labelledby": ariaLabelId, "aria-describedby": ariaDescriptionId, className: modalClasses, style, tabIndex: -1, ...otherDivProps, children: /* @__PURE__ */ jsx("div", { id: `${id}_ref`, ref: (node) => {
58
59
  modalRef.current = node, isOpen2 && (trapRef.current = node);
59
60
  }, className: dialogClasses, children: /* @__PURE__ */ jsx("div", { className: "modal-content", children }) }) }),
60
61
  isOpen2 && /* @__PURE__ */ jsx(animated.div, { className: "modal-backdrop fade show", style: {