@cgi-learning-hub/ui 1.3.5-dev.1738165321 → 1.3.5-dev.1739205895

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 (213) hide show
  1. package/dist/{Backdrop-Dnd-7Jz5.cjs → Backdrop-Cvbj4YKG.cjs} +1 -1
  2. package/dist/{Backdrop-CjFhgXFW.js → Backdrop-DZHacmMU.js} +21 -21
  3. package/dist/{Box-BTYxUBc5.cjs → Box-CVaz7diG.cjs} +1 -1
  4. package/dist/{Box-C5qOvRw6.js → Box-Cpg9IWKr.js} +8 -8
  5. package/dist/Button-C-bZSJCq.cjs +28 -0
  6. package/dist/{Button-QAP1Wyns.cjs → Button-COTy9ASL.cjs} +1 -1
  7. package/dist/Button-CSNPv43f.js +542 -0
  8. package/dist/{Button-DJ9kLggx.js → Button-DovfjBkz.js} +14 -14
  9. package/dist/{ButtonBase-Di2DXi1_.cjs → ButtonBase-DKNIY_Ve.cjs} +2 -2
  10. package/dist/{ButtonBase-CGJRRTHm.js → ButtonBase-eQU9HVgU.js} +42 -42
  11. package/dist/{Card-BkkrhzGz.js → Card-B7MHmB_Y.js} +7 -7
  12. package/dist/{Card-BklIrMy_.cjs → Card-CwE6nm11.cjs} +1 -1
  13. package/dist/{Checkbox-Bfngr2Ow.cjs → Checkbox-YCpJS_3E.cjs} +1 -1
  14. package/dist/{Checkbox-BMr92NEw.js → Checkbox-y6Kts0Hm.js} +26 -26
  15. package/dist/CloseRounded-Cu-sn6XC.cjs +1 -0
  16. package/dist/CloseRounded-Df8vYhLX.js +8 -0
  17. package/dist/{DatePicker-BIrYgv-6.js → DatePicker-B2dOH7Zl.js} +1283 -1282
  18. package/dist/{DatePicker-UggPKt6P.cjs → DatePicker-C3CzK9Fb.cjs} +9 -9
  19. package/dist/{DefaultPropsProvider-CeEBQtDy.js → DefaultPropsProvider-CmOKr9hq.js} +48 -48
  20. package/dist/{DefaultPropsProvider-Se6dgF9O.cjs → DefaultPropsProvider-PRhNsS_3.cjs} +1 -1
  21. package/dist/{Dialog-FQAvW7D6.cjs → Dialog-BFZeovlo.cjs} +1 -1
  22. package/dist/{Dialog-DX2Mdwmr.js → Dialog-D0fzD-TX.js} +13 -13
  23. package/dist/{DialogContent-CkPzndRH.js → DialogContent-4rDvu_sh.js} +13 -13
  24. package/dist/{DialogContent-BaKv3Ei9.cjs → DialogContent-DMvW6Xos.cjs} +1 -1
  25. package/dist/{DialogTitle-D7utXPRz.js → DialogTitle-BXGok8k-.js} +30 -30
  26. package/dist/{DialogTitle-BwJVdg4G.cjs → DialogTitle-CXRmRtja.cjs} +1 -1
  27. package/dist/{Divider-BAPyGNV2.cjs → Divider-CISPNs7L.cjs} +1 -1
  28. package/dist/{Divider-DViVz6TV.js → Divider-CeOjSQMP.js} +8 -8
  29. package/dist/{FormControlLabel-DMrvY_r6.js → FormControlLabel-BjbkwHC0.js} +13 -13
  30. package/dist/{FormControlLabel-BKz4_Gd0.cjs → FormControlLabel-BjlJz2oa.cjs} +1 -1
  31. package/dist/{FormGroup-Cp4YeqR3.js → FormGroup-DdwFGMq2.js} +15 -15
  32. package/dist/{FormGroup-BulQbkfu.cjs → FormGroup-x7hlLAv1.cjs} +1 -1
  33. package/dist/{FormLabel-DXWktPiT.js → FormLabel-Cm4Ba58U.js} +21 -21
  34. package/dist/{FormLabel-DwND2qd8.cjs → FormLabel-CtCBcJ-1.cjs} +2 -2
  35. package/dist/{Grow-BYbd5knJ.cjs → Grow-BK4rGn4x.cjs} +1 -1
  36. package/dist/{Grow-C9mKol1b.js → Grow-EpJy9qdL.js} +15 -15
  37. package/dist/{IconButton-Dl_aERqI.cjs → IconButton-BUCTqOFa.cjs} +1 -1
  38. package/dist/{IconButton-HSWaMjTn.js → IconButton-CZvDgqOc.js} +13 -13
  39. package/dist/{InputAdornment-VmPspNH6.cjs → InputAdornment-CLIvW7Gk.cjs} +1 -1
  40. package/dist/{InputAdornment-DEwfQJnE.js → InputAdornment-XfxRdI9K.js} +14 -14
  41. package/dist/{InputBase-BWlk5xev.cjs → InputBase-BXcShs87.cjs} +2 -2
  42. package/dist/{InputBase-NJYUs2qK.js → InputBase-DBsV_L3Y.js} +9 -9
  43. package/dist/{Link-D-_BtjdU.cjs → Link-DgsVJ4Wk.cjs} +1 -1
  44. package/dist/{Link-DRY3a76q.js → Link-Dqbq0dpE.js} +11 -11
  45. package/dist/{Menu-BIebKPfA.cjs → Menu-NuheFzLD.cjs} +6 -6
  46. package/dist/{Menu-D4QuPq36.js → Menu-_4rLUzDf.js} +54 -54
  47. package/dist/{MenuItem-CLytGq10.cjs → MenuItem-CNUAbgnE.cjs} +1 -1
  48. package/dist/{MenuItem-BaVk-qxi.js → MenuItem-D9Hs7HRQ.js} +20 -20
  49. package/dist/{Modal-D9Xuvhjf.cjs → Modal-BhIbbbzx.cjs} +2 -2
  50. package/dist/{Modal-Bv_n3vzB.js → Modal-a-cSzSt8.js} +32 -32
  51. package/dist/{Paper-B-qSqbHC.js → Paper-BIgadgtb.js} +8 -8
  52. package/dist/{Paper-cQSlrWza.cjs → Paper-DYhLUL1K.cjs} +2 -2
  53. package/dist/{Popper-CIpGciMP.js → Popper-BcaTNUvi.js} +241 -243
  54. package/dist/{Popper-rY0PGJdm.cjs → Popper-CPstdcBG.cjs} +3 -3
  55. package/dist/{Portal-DsPJ5mJy.js → Portal-B8inUnB_.js} +2 -2
  56. package/dist/{Portal-Cxw-nTCW.cjs → Portal-BL8eg_0C.cjs} +1 -1
  57. package/dist/{Radio-CTv0ptam.cjs → Radio-8fNX60rb.cjs} +1 -1
  58. package/dist/{Radio-g00XgvHL.js → Radio-DgedCGZw.js} +15 -15
  59. package/dist/{Select-D2_IXdrU.js → Select-D4pmgfdb.js} +99 -99
  60. package/dist/{Select-C8HBwNk7.cjs → Select-DtrvYyJ3.cjs} +1 -1
  61. package/dist/Stack-B68ooSQ-.cjs +1 -0
  62. package/dist/{Stack-DX7XIsZG.js → Stack-CSgGU-cq.js} +29 -29
  63. package/dist/{SwitchBase-BOo1bjHy.cjs → SwitchBase-VA100mrf.cjs} +1 -1
  64. package/dist/{SwitchBase-eilyehy9.js → SwitchBase-ynQQkTVh.js} +29 -29
  65. package/dist/{TableSortLabel-BE_c25_7.cjs → TableSortLabel-B2Nvl2FF.cjs} +7 -7
  66. package/dist/{TableSortLabel-CkN2fsuh.js → TableSortLabel-DrpjgQBL.js} +51 -52
  67. package/dist/{Tabs-CZ0zpzfU.js → Tabs-CMnuOnzP.js} +328 -328
  68. package/dist/{Tabs-Cu3QAwFQ.cjs → Tabs-CTYqNGoo.cjs} +3 -3
  69. package/dist/{TextField-CYuyowfl.cjs → TextField-BcAZk2Rx.cjs} +1 -1
  70. package/dist/{TextField-CB2G2DE7.js → TextField-dvVq-1Hp.js} +27 -27
  71. package/dist/{Tooltip-BbMItBno.js → Tooltip-CVvaAqh7.js} +13 -13
  72. package/dist/{Tooltip-CcjNbPHm.cjs → Tooltip-DL2i_lGL.cjs} +3 -3
  73. package/dist/{Typography-CsC_hF8M.js → Typography-C9ltjPyz.js} +9 -9
  74. package/dist/{Typography-BYWZ5kB1.cjs → Typography-Y-OGmT9M.cjs} +1 -1
  75. package/dist/{capitalize-BDTxYy_y.cjs → capitalize-Cq3s4y8R.cjs} +1 -1
  76. package/dist/{capitalize-B55K71yP.js → capitalize-yX_QSknw.js} +1 -1
  77. package/dist/components/Button/Button.cjs.js +1 -1
  78. package/dist/components/Button/Button.es.js +4 -297
  79. package/dist/components/Button/index.cjs.js +1 -1
  80. package/dist/components/Button/index.es.js +2 -2
  81. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  82. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  83. package/dist/components/DatePicker/index.cjs.js +1 -1
  84. package/dist/components/DatePicker/index.es.js +1 -1
  85. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  86. package/dist/components/Dialog/Dialog.es.js +11 -13
  87. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  88. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  89. package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.cjs.js +1 -1
  90. package/dist/components/EllipsisWithTooltip/EllipsisWithTooltip.es.js +4 -3
  91. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  92. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  93. package/dist/components/FileList/FileIcon.cjs.js +1 -0
  94. package/dist/components/FileList/FileIcon.d.ts +3 -0
  95. package/dist/components/FileList/FileIcon.es.js +56 -0
  96. package/dist/components/FileList/FileInfosSeparator.cjs.js +1 -0
  97. package/dist/components/FileList/FileInfosSeparator.d.ts +1 -0
  98. package/dist/components/FileList/FileInfosSeparator.es.js +14 -0
  99. package/dist/components/FileList/FileList.cjs.js +1 -1
  100. package/dist/components/FileList/FileList.d.ts +5 -3
  101. package/dist/components/FileList/FileList.es.js +23 -14
  102. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  103. package/dist/components/FileList/FileListItem.d.ts +9 -5
  104. package/dist/components/FileList/FileListItem.es.js +95 -24
  105. package/dist/components/FileList/utils.cjs.js +1 -0
  106. package/dist/components/FileList/utils.d.ts +2 -0
  107. package/dist/components/FileList/utils.es.js +13 -0
  108. package/dist/components/Heading/Heading.cjs.js +1 -1
  109. package/dist/components/Heading/Heading.es.js +2 -2
  110. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  111. package/dist/components/ImagePicker/ImagePicker.es.js +41 -40
  112. package/dist/components/Loader/Loader.cjs.js +1 -1
  113. package/dist/components/Loader/Loader.es.js +1 -1
  114. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  115. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  116. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  117. package/dist/components/PasswordInput/PasswordInput.es.js +5 -5
  118. package/dist/components/QueryError/QueryError.cjs.js +1 -1
  119. package/dist/components/QueryError/QueryError.es.js +14 -14
  120. package/dist/components/ResourceCard/ResourceCard.cjs.js +1 -1
  121. package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
  122. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  123. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  124. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  125. package/dist/components/TextInput/TextInput.es.js +1 -1
  126. package/dist/components/index.cjs.js +1 -1
  127. package/dist/components/index.es.js +212 -213
  128. package/dist/components/stories/Button.stories.cjs.js +1 -1
  129. package/dist/components/stories/Button.stories.es.js +2 -2
  130. package/dist/components/stories/Card.stories.cjs.js +1 -1
  131. package/dist/components/stories/Card.stories.es.js +9 -9
  132. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  133. package/dist/components/stories/Checkbox.stories.es.js +5 -5
  134. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  135. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  136. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  137. package/dist/components/stories/Dialog.stories.es.js +3 -3
  138. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  139. package/dist/components/stories/Divider.stories.es.js +5 -5
  140. package/dist/components/stories/FileList.stories.cjs.js +8 -1
  141. package/dist/components/stories/FileList.stories.es.js +145 -19
  142. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  143. package/dist/components/stories/FormControlLabel.stories.es.js +75 -75
  144. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  145. package/dist/components/stories/Heading.stories.es.js +2 -2
  146. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  147. package/dist/components/stories/IconButton.stories.es.js +2 -2
  148. package/dist/components/stories/Link.stories.cjs.js +1 -1
  149. package/dist/components/stories/Link.stories.es.js +1 -1
  150. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  151. package/dist/components/stories/Menu.stories.es.js +16 -16
  152. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  153. package/dist/components/stories/Paper.stories.es.js +1 -1
  154. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  155. package/dist/components/stories/RadioGroup.stories.es.js +8 -8
  156. package/dist/components/stories/ResourceCard.stories.cjs.js +1 -1
  157. package/dist/components/stories/ResourceCard.stories.es.js +11 -11
  158. package/dist/components/stories/Select.stories.cjs.js +1 -1
  159. package/dist/components/stories/Select.stories.es.js +3 -3
  160. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  161. package/dist/components/stories/TabList.stories.es.js +14 -14
  162. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  163. package/dist/components/stories/TextField.stories.es.js +3 -3
  164. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  165. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  166. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  167. package/dist/components/stories/Typography.stories.es.js +1 -1
  168. package/dist/{createSvgIcon-DestgQu_.cjs → createSvgIcon-CWNQW6u6.cjs} +1 -1
  169. package/dist/{createSvgIcon-C9kh-71a.js → createSvgIcon-Cd6y8E9W.js} +6 -6
  170. package/dist/{dividerClasses-CmqQpmPs.cjs → dividerClasses-1ChhOCNX.cjs} +1 -1
  171. package/dist/{dividerClasses-Cx-v4p9p.js → dividerClasses-DHKvPyr8.js} +3 -3
  172. package/dist/{elementTypeAcceptingRef-93jMVjym.cjs → elementTypeAcceptingRef-BgjnOQqe.cjs} +1 -1
  173. package/dist/{elementTypeAcceptingRef-BwApo3R5.js → elementTypeAcceptingRef-BnBq35EV.js} +1 -1
  174. package/dist/{extendSxProp-BuzWiNW6.js → extendSxProp-D1UphbpP.js} +3 -3
  175. package/dist/{extendSxProp-CWfAkLIT.cjs → extendSxProp-Dolw-tGY.cjs} +1 -1
  176. package/dist/{fr-Bjufn3RW.js → fr-B3qrCNcK.js} +18 -18
  177. package/dist/{generateUtilityClasses-CCNEQAp0.cjs → generateUtilityClasses-0dYt6eGZ.cjs} +2 -2
  178. package/dist/{generateUtilityClasses-CMVTZlSt.js → generateUtilityClasses-v9KcqdK1.js} +6 -6
  179. package/dist/{index-BvElRKTI.cjs → index-BUATG6-f.cjs} +1 -1
  180. package/dist/{index-HBv5JZBE.js → index-BhCs2pHX.js} +22 -22
  181. package/dist/index-CgWaRcwQ.cjs +1 -0
  182. package/dist/{index-DT_OMUCV.js → index-OesDQygc.js} +1 -1
  183. package/dist/index.cjs.js +1 -1
  184. package/dist/index.es.js +212 -213
  185. package/dist/{memoTheme-CnIL9ySw.js → memoTheme-D-rebSfX.js} +1 -1
  186. package/dist/{memoTheme-DTSENpyZ.cjs → memoTheme-D1tPxCd9.cjs} +1 -1
  187. package/dist/{mergeSlotProps-A2fwE85L.cjs → mergeSlotProps-DJgEFzGv.cjs} +1 -1
  188. package/dist/{mergeSlotProps-lTnyHfRr.js → mergeSlotProps-DwgGXvkj.js} +1 -1
  189. package/dist/{refType-IuPwh8dk.js → refType-DcE_kWty.js} +1 -1
  190. package/dist/{refType-B9Yjv-2f.cjs → refType-DdkUp8DT.cjs} +1 -1
  191. package/dist/{useSlot-DKRXHGjw.js → useSlot-BYfmyYXv.js} +1 -1
  192. package/dist/{useSlot-BHPToxin.cjs → useSlot-CMUEd7j7.cjs} +1 -1
  193. package/dist/useSlotProps-D0jr2eYF.cjs +1 -0
  194. package/dist/{useSlotProps-DW4-IGZ7.js → useSlotProps-r0vmrJvl.js} +11 -11
  195. package/dist/{useTheme-CQhlwWHY.cjs → useTheme-B1HNivkF.cjs} +1 -1
  196. package/dist/{useTheme-6TUGBldK.js → useTheme-BB8ZCoMF.js} +1 -1
  197. package/dist/{useTheme-BovhfGLb.cjs → useTheme-C0AF6jAe.cjs} +1 -1
  198. package/dist/useTheme-Dyx3LMQU.js +11 -0
  199. package/dist/{useThemeProps-BcTQ5K1G.cjs → useThemeProps-DcOn-vk2.cjs} +1 -1
  200. package/dist/{useThemeProps-1WBbiiBB.js → useThemeProps-DnDXTiQj.js} +2 -2
  201. package/dist/{useThemeProps-CAttQgvS.js → useThemeProps-DwnyQf-S.js} +3 -3
  202. package/dist/{useThemeProps-CTpVXkg_.cjs → useThemeProps-u8EQT0RR.cjs} +1 -1
  203. package/dist/{utils-CHzhlXgP.cjs → utils-BWXB1haV.cjs} +1 -1
  204. package/dist/{utils-CuFsTY6H.js → utils-D4djO_Ph.js} +1 -1
  205. package/package.json +1 -1
  206. package/dist/CircularProgress-CIsFCabr.cjs +0 -28
  207. package/dist/CircularProgress-Wu1RUH10.js +0 -253
  208. package/dist/Delete-CN1Nvyw-.cjs +0 -1
  209. package/dist/Delete-D269dtzC.js +0 -8
  210. package/dist/Stack-6AHEa1bx.cjs +0 -1
  211. package/dist/index-vTvfssKH.cjs +0 -1
  212. package/dist/useSlotProps-CgzVLVxq.cjs +0 -1
  213. package/dist/useTheme-i6uFvVRH.js +0 -11
@@ -1,299 +1,6 @@
1
- import { jsxs as S, jsx as r } from "react/jsx-runtime";
2
- import { s as g, u as T, c as w } from "../../DefaultPropsProvider-CeEBQtDy.js";
3
- import * as P from "react";
4
- import { I as M, H as R, P as t } from "../../generateUtilityClasses-CMVTZlSt.js";
5
- import { B as z, a as O, r as j } from "../../Button-DJ9kLggx.js";
6
- import { m as v } from "../../memoTheme-CnIL9ySw.js";
7
- import { c } from "../../capitalize-B55K71yP.js";
8
- import { u as U } from "../../useId-CK6Kn3Tn.js";
9
- import { c as N } from "../../chainPropTypes-D9lkm76m.js";
10
- import { C as W } from "../../CircularProgress-Wu1RUH10.js";
11
- function D(o) {
12
- return R("MuiLoadingButton", o);
13
- }
14
- const a = M("MuiLoadingButton", ["root", "label", "loading", "loadingIndicator", "loadingIndicatorCenter", "loadingIndicatorStart", "loadingIndicatorEnd", "endIconLoadingEnd", "startIconLoadingStart"]), F = (o) => {
15
- const {
16
- loading: n,
17
- loadingPosition: i,
18
- classes: e
19
- } = o, u = {
20
- root: ["root", n && "loading"],
21
- label: ["label"],
22
- startIcon: [n && `startIconLoading${c(i)}`],
23
- endIcon: [n && `endIconLoading${c(i)}`],
24
- loadingIndicator: ["loadingIndicator", n && `loadingIndicator${c(i)}`]
25
- }, d = w(u, D, e);
26
- return {
27
- ...e,
28
- // forward the outlined, color, etc. classes to Button
29
- ...d
30
- };
31
- }, H = (o) => o !== "ownerState" && o !== "theme" && o !== "sx" && o !== "as" && o !== "classes", k = g(z, {
32
- shouldForwardProp: (o) => H(o) || o === "classes",
33
- name: "MuiLoadingButton",
34
- slot: "Root",
35
- overridesResolver: (o, n) => [n.root, n.startIconLoadingStart && {
36
- [`& .${a.startIconLoadingStart}`]: n.startIconLoadingStart
37
- }, n.endIconLoadingEnd && {
38
- [`& .${a.endIconLoadingEnd}`]: n.endIconLoadingEnd
39
- }]
40
- })(v(({
41
- theme: o
42
- }) => ({
43
- display: "inline-flex",
44
- [`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
45
- transition: o.transitions.create(["opacity"], {
46
- duration: o.transitions.duration.short
47
- }),
48
- opacity: 0
49
- },
50
- variants: [{
51
- props: {
52
- loadingPosition: "center"
53
- },
54
- style: {
55
- transition: o.transitions.create(["background-color", "box-shadow", "border-color"], {
56
- duration: o.transitions.duration.short
57
- }),
58
- [`&.${a.loading}`]: {
59
- color: "transparent"
60
- }
61
- }
62
- }, {
63
- props: ({
64
- ownerState: n
65
- }) => n.loadingPosition === "start" && n.fullWidth,
66
- style: {
67
- [`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
68
- transition: o.transitions.create(["opacity"], {
69
- duration: o.transitions.duration.short
70
- }),
71
- opacity: 0,
72
- marginRight: -8
73
- }
74
- }
75
- }, {
76
- props: ({
77
- ownerState: n
78
- }) => n.loadingPosition === "end" && n.fullWidth,
79
- style: {
80
- [`& .${a.startIconLoadingStart}, & .${a.endIconLoadingEnd}`]: {
81
- transition: o.transitions.create(["opacity"], {
82
- duration: o.transitions.duration.short
83
- }),
84
- opacity: 0,
85
- marginLeft: -8
86
- }
87
- }
88
- }]
89
- }))), G = g("span", {
90
- name: "MuiLoadingButton",
91
- slot: "LoadingIndicator",
92
- overridesResolver: (o, n) => {
93
- const {
94
- ownerState: i
95
- } = o;
96
- return [n.loadingIndicator, n[`loadingIndicator${c(i.loadingPosition)}`]];
97
- }
98
- })(v(({
99
- theme: o
100
- }) => ({
101
- position: "absolute",
102
- visibility: "visible",
103
- display: "flex",
104
- variants: [{
105
- props: {
106
- loadingPosition: "start",
107
- size: "small"
108
- },
109
- style: {
110
- left: 10
111
- }
112
- }, {
113
- props: ({
114
- loadingPosition: n,
115
- ownerState: i
116
- }) => n === "start" && i.size !== "small",
117
- style: {
118
- left: 14
119
- }
120
- }, {
121
- props: {
122
- variant: "text",
123
- loadingPosition: "start"
124
- },
125
- style: {
126
- left: 6
127
- }
128
- }, {
129
- props: {
130
- loadingPosition: "center"
131
- },
132
- style: {
133
- left: "50%",
134
- transform: "translate(-50%)",
135
- color: (o.vars || o).palette.action.disabled
136
- }
137
- }, {
138
- props: {
139
- loadingPosition: "end",
140
- size: "small"
141
- },
142
- style: {
143
- right: 10
144
- }
145
- }, {
146
- props: ({
147
- loadingPosition: n,
148
- ownerState: i
149
- }) => n === "end" && i.size !== "small",
150
- style: {
151
- right: 14
152
- }
153
- }, {
154
- props: {
155
- variant: "text",
156
- loadingPosition: "end"
157
- },
158
- style: {
159
- right: 6
160
- }
161
- }, {
162
- props: ({
163
- ownerState: n
164
- }) => n.loadingPosition === "start" && n.fullWidth,
165
- style: {
166
- position: "relative",
167
- left: -10
168
- }
169
- }, {
170
- props: ({
171
- ownerState: n
172
- }) => n.loadingPosition === "end" && n.fullWidth,
173
- style: {
174
- position: "relative",
175
- right: -10
176
- }
177
- }]
178
- }))), h = g("span", {
179
- name: "MuiLoadingButton",
180
- slot: "Label",
181
- overridesResolver: (o, n) => [n.label]
182
- })({
183
- display: "inherit",
184
- alignItems: "inherit",
185
- justifyContent: "inherit"
186
- }), B = /* @__PURE__ */ P.forwardRef(function(n, i) {
187
- const e = P.useContext(O), u = j(e, n), d = T({
188
- props: u,
189
- name: "MuiLoadingButton"
190
- }), {
191
- children: f,
192
- disabled: I = !1,
193
- id: x,
194
- loading: p = !1,
195
- loadingIndicator: $,
196
- loadingPosition: C = "center",
197
- variant: m = "text",
198
- ...E
199
- } = d, L = U(x), b = $ ?? /* @__PURE__ */ r(W, {
200
- "aria-labelledby": L,
201
- color: "inherit",
202
- size: 16
203
- }), s = {
204
- ...d,
205
- disabled: I,
206
- loading: p,
207
- loadingIndicator: b,
208
- loadingPosition: C,
209
- variant: m
210
- }, l = F(s), y = p ? /* @__PURE__ */ r(G, {
211
- className: l.loadingIndicator,
212
- ownerState: s,
213
- children: b
214
- }) : null;
215
- return /* @__PURE__ */ S(k, {
216
- disabled: I || p,
217
- id: L,
218
- ref: i,
219
- ...E,
220
- variant: m,
221
- classes: l,
222
- ownerState: s,
223
- children: [s.loadingPosition === "end" ? /* @__PURE__ */ r(h, {
224
- className: l.label,
225
- children: f
226
- }) : y, s.loadingPosition === "end" ? y : /* @__PURE__ */ r(h, {
227
- className: l.label,
228
- children: f
229
- })]
230
- });
231
- });
232
- process.env.NODE_ENV !== "production" && (B.propTypes = {
233
- // ┌────────────────────────────── Warning ──────────────────────────────┐
234
- // │ These PropTypes are generated from the TypeScript type definitions. │
235
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
236
- // └─────────────────────────────────────────────────────────────────────┘
237
- /**
238
- * The content of the component.
239
- */
240
- children: t.node,
241
- /**
242
- * Override or extend the styles applied to the component.
243
- */
244
- classes: t.object,
245
- /**
246
- * If `true`, the component is disabled.
247
- * @default false
248
- */
249
- disabled: t.bool,
250
- /**
251
- * @ignore
252
- */
253
- id: t.string,
254
- /**
255
- * If `true`, the loading indicator is shown and the button becomes disabled.
256
- * @default false
257
- */
258
- loading: t.bool,
259
- /**
260
- * Element placed before the children if the button is in loading state.
261
- * The node should contain an element with `role="progressbar"` with an accessible name.
262
- * By default we render a `CircularProgress` that is labelled by the button itself.
263
- * @default <CircularProgress color="inherit" size={16} />
264
- */
265
- loadingIndicator: t.node,
266
- /**
267
- * The loading indicator can be positioned on the start, end, or the center of the button.
268
- * @default 'center'
269
- */
270
- loadingPosition: N(t.oneOf(["start", "end", "center"]), (o) => o.loadingPosition === "start" && !o.startIcon ? new Error('MUI: The loadingPosition="start" should be used in combination with startIcon.') : o.loadingPosition === "end" && !o.endIcon ? new Error('MUI: The loadingPosition="end" should be used in combination with endIcon.') : null),
271
- /**
272
- * The system prop that allows defining system overrides as well as additional CSS styles.
273
- */
274
- sx: t.oneOfType([t.arrayOf(t.oneOfType([t.func, t.object, t.bool])), t.func, t.object]),
275
- /**
276
- * The variant to use.
277
- * @default 'text'
278
- */
279
- variant: t.oneOfType([t.oneOf(["contained", "outlined", "text"]), t.string])
280
- });
281
- const V = g(B)(({ color: o, theme: n }) => ({
282
- minHeight: 38,
283
- textTransform: "none",
284
- transition: "all 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms",
285
- "&.MuiButton-outlined": {
286
- borderRadius: 5,
287
- borderWidth: 2
288
- /* "&:hover": {
289
- //backgroundColor: theme.palette[color].main,
290
- color: theme.palette.common.white,
291
- },*/
292
- }
293
- })), oo = ({
294
- variant: o = "outlined",
295
- ...n
296
- }) => /* @__PURE__ */ r(V, { variant: o, ...n });
1
+ import "react/jsx-runtime";
2
+ import "../../DefaultPropsProvider-CmOKr9hq.js";
3
+ import { B as p } from "../../Button-CSNPv43f.js";
297
4
  export {
298
- oo as default
5
+ p as default
299
6
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./Button.cjs.js");exports.Button=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../Button-C-bZSJCq.cjs");exports.Button=t.Button;
@@ -1,4 +1,4 @@
1
- import { default as a } from "./Button.es.js";
1
+ import { B as r } from "../../Button-CSNPv43f.js";
2
2
  export {
3
- a as Button
3
+ r as Button
4
4
  };
@@ -1 +1 @@
1
- "use strict";require("react/jsx-runtime");require("../../fr-JE-1WKP6.cjs");const e=require("../../DatePicker-UggPKt6P.cjs");module.exports=e.DatePicker;
1
+ "use strict";require("react/jsx-runtime");require("../../fr-JE-1WKP6.cjs");const e=require("../../DatePicker-C3CzK9Fb.cjs");module.exports=e.DatePicker;
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
- import "../../fr-Bjufn3RW.js";
3
- import { D as p } from "../../DatePicker-BIrYgv-6.js";
2
+ import "../../fr-B3qrCNcK.js";
3
+ import { D as p } from "../../DatePicker-B2dOH7Zl.js";
4
4
  export {
5
5
  p as default
6
6
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../DatePicker-UggPKt6P.cjs");exports.DatePicker=e.DatePicker;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../DatePicker-C3CzK9Fb.cjs");exports.DatePicker=e.DatePicker;
@@ -1,4 +1,4 @@
1
- import { D as a } from "../../DatePicker-BIrYgv-6.js";
1
+ import { D as a } from "../../DatePicker-B2dOH7Zl.js";
2
2
  export {
3
3
  a as DatePicker
4
4
  };
@@ -1 +1 @@
1
- "use strict";const n=require("react/jsx-runtime"),t=require("../../createSvgIcon-DestgQu_.cjs"),i=require("@mui/material"),a=require("../../Dialog-FQAvW7D6.cjs"),u=t.createSvgIcon(n.jsx("path",{d:"M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"}),"CloseRounded"),r=({children:s,showCloseButton:l=!0,...e})=>{const o=()=>{var c;return(c=e.onClose)==null?void 0:c.call(e,{},"escapeKeyDown")};return n.jsxs(a.Dialog,{...e,children:[l?n.jsx(i.IconButton,{"aria-label":"close",onClick:o,sx:{position:"absolute",right:16,top:16},children:n.jsx(u,{})}):null,s]})};module.exports=r;
1
+ "use strict";const n=require("react/jsx-runtime"),t=require("../../CloseRounded-Cu-sn6XC.cjs"),c=require("@mui/material"),u=require("../../Dialog-BFZeovlo.cjs"),a=({children:s,showCloseButton:i=!0,...e})=>{const o=()=>{var l;return(l=e.onClose)==null?void 0:l.call(e,{},"escapeKeyDown")};return n.jsxs(u.Dialog,{...e,children:[i?n.jsx(c.IconButton,{"aria-label":"close",onClick:o,sx:{position:"absolute",right:16,top:16},children:n.jsx(t.CloseRounded,{})}):null,s]})};module.exports=a;
@@ -1,28 +1,26 @@
1
- import { jsx as l, jsxs as c } from "react/jsx-runtime";
2
- import { c as s } from "../../createSvgIcon-C9kh-71a.js";
1
+ import { jsxs as i, jsx as n } from "react/jsx-runtime";
2
+ import { C as s } from "../../CloseRounded-Df8vYhLX.js";
3
3
  import { IconButton as t } from "@mui/material";
4
- import { D as i } from "../../Dialog-DX2Mdwmr.js";
5
- const d = s(/* @__PURE__ */ l("path", {
6
- d: "M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4"
7
- }), "CloseRounded"), g = ({
4
+ import { D as c } from "../../Dialog-D0fzD-TX.js";
5
+ const f = ({
8
6
  children: e,
9
7
  showCloseButton: a = !0,
10
- ...o
11
- }) => /* @__PURE__ */ c(i, { ...o, children: [
12
- a ? /* @__PURE__ */ l(
8
+ ...l
9
+ }) => /* @__PURE__ */ i(c, { ...l, children: [
10
+ a ? /* @__PURE__ */ n(
13
11
  t,
14
12
  {
15
13
  "aria-label": "close",
16
14
  onClick: () => {
17
- var n;
18
- return (n = o.onClose) == null ? void 0 : n.call(o, {}, "escapeKeyDown");
15
+ var o;
16
+ return (o = l.onClose) == null ? void 0 : o.call(l, {}, "escapeKeyDown");
19
17
  },
20
18
  sx: { position: "absolute", right: 16, top: 16 },
21
- children: /* @__PURE__ */ l(d, {})
19
+ children: /* @__PURE__ */ n(s, {})
22
20
  }
23
21
  ) : null,
24
22
  e
25
23
  ] });
26
24
  export {
27
- g as default
25
+ f as default
28
26
  };
@@ -1 +1 @@
1
- "use strict";const e=require("react/jsx-runtime"),s=require("../../createSvgIcon-DestgQu_.cjs"),d=require("../../index-BvElRKTI.cjs"),a=require("../../Stack-6AHEa1bx.cjs"),r=require("../../Typography-BYWZ5kB1.cjs"),h=s.createSvgIcon(e.jsx("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload"),u=s.createSvgIcon(e.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"}),"UploadFile"),g=({defaultLabel:c="Glisser et déposer des fichiers ici, ou cliquer pour sélectionner des fichiers",dragLabel:i="Déposer les fichiers ici",information:o,...n})=>{const{getRootProps:t,getInputProps:p,isDragActive:l}=d.useDropzone(n);return e.jsxs(a.Stack,{direction:"column",justifyContent:"center",alignItems:"center",spacing:1,width:"18rem",padding:1,border:"1px dashed",borderColor:"grey.main",borderRadius:1,sx:{cursor:"pointer"},...t(),children:[e.jsx("input",{...p()}),l?e.jsxs(e.Fragment,{children:[e.jsx(h,{color:"primary"}),e.jsx(r.Typography,{children:i})]}):e.jsxs(e.Fragment,{children:[e.jsx(u,{color:"primary"}),e.jsx(r.Typography,{children:c}),o?e.jsx(r.Typography,{fontSize:"0.875rem",color:"grey",children:o}):null]})]})};module.exports=g;
1
+ "use strict";const e=require("react/jsx-runtime"),s=require("../../createSvgIcon-CWNQW6u6.cjs"),d=require("../../index-BUATG6-f.cjs"),a=require("../../Stack-B68ooSQ-.cjs"),r=require("../../Typography-Y-OGmT9M.cjs"),h=s.createSvgIcon(e.jsx("path",{d:"M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"}),"FileUpload"),u=s.createSvgIcon(e.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"}),"UploadFile"),g=({defaultLabel:c="Glisser et déposer des fichiers ici, ou cliquer pour sélectionner des fichiers",dragLabel:i="Déposer les fichiers ici",information:o,...n})=>{const{getRootProps:t,getInputProps:p,isDragActive:l}=d.useDropzone(n);return e.jsxs(a.Stack,{direction:"column",justifyContent:"center",alignItems:"center",spacing:1,width:"18rem",padding:1,border:"1px dashed",borderColor:"grey.main",borderRadius:1,sx:{cursor:"pointer"},...t(),children:[e.jsx("input",{...p()}),l?e.jsxs(e.Fragment,{children:[e.jsx(h,{color:"primary"}),e.jsx(r.Typography,{children:i})]}):e.jsxs(e.Fragment,{children:[e.jsx(u,{color:"primary"}),e.jsx(r.Typography,{children:c}),o?e.jsx(r.Typography,{fontSize:"0.875rem",color:"grey",children:o}):null]})]})};module.exports=g;
@@ -1,8 +1,8 @@
1
1
  import { jsx as r, jsxs as e, Fragment as c } from "react/jsx-runtime";
2
- import { c as s } from "../../createSvgIcon-C9kh-71a.js";
3
- import { u as h } from "../../index-DT_OMUCV.js";
4
- import { S as m } from "../../Stack-DX7XIsZG.js";
5
- import { T as o } from "../../Typography-CsC_hF8M.js";
2
+ import { c as s } from "../../createSvgIcon-Cd6y8E9W.js";
3
+ import { u as h } from "../../index-OesDQygc.js";
4
+ import { S as m } from "../../Stack-CSgGU-cq.js";
5
+ import { T as o } from "../../Typography-C9ltjPyz.js";
6
6
  const u = s(/* @__PURE__ */ r("path", {
7
7
  d: "M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"
8
8
  }), "FileUpload"), g = s(/* @__PURE__ */ r("path", {
@@ -1 +1 @@
1
- "use strict";const n=require("react/jsx-runtime"),o=require("@mui/material"),t=require("react"),x=({children:r,tooltipProps:l,typographyProps:c})=>{const[u,f]=t.useState(!1),e=t.useRef(null);return t.useEffect(()=>{const s=()=>{if(e.current){const{scrollWidth:p,clientWidth:a}=e.current;f(p>a)}},i=new ResizeObserver(()=>{s()});return e.current&&i.observe(e.current),s(),()=>{e.current&&i.unobserve(e.current)}},[]),n.jsx(o.Tooltip,{disableHoverListener:!u,title:r,...l,children:n.jsx(o.Typography,{ref:e,noWrap:!0,overflow:"hidden",textOverflow:"ellipsis",...c,children:r})})};module.exports=x;
1
+ "use strict";const n=require("react/jsx-runtime"),o=require("@mui/material"),t=require("react"),x=({children:r,tooltipProps:l,typographyProps:c})=>{const[u,f]=t.useState(!1),e=t.useRef(null);return t.useEffect(()=>{const s=()=>{if(e.current){const{scrollWidth:p,clientWidth:a}=e.current;f(p>a)}},i=new ResizeObserver(()=>{s()});return e.current&&i.observe(e.current),s(),()=>{e.current&&i.unobserve(e.current)}},[]),n.jsx(o.Tooltip,{disableHoverListener:!u,title:r,...l,children:n.jsx(o.Typography,{ref:e,noWrap:!0,overflow:"hidden",textOverflow:"ellipsis",...c,maxWidth:"100%",children:r})})};module.exports=x;
@@ -1,13 +1,13 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
2
  import { Tooltip as p, Typography as d } from "@mui/material";
3
- import { useState as a, useRef as v, useEffect as h } from "react";
3
+ import { useState as a, useRef as h, useEffect as m } from "react";
4
4
  const E = ({
5
5
  children: t,
6
6
  tooltipProps: o,
7
7
  typographyProps: l
8
8
  }) => {
9
- const [n, c] = a(!1), e = v(null);
10
- return h(() => {
9
+ const [n, c] = a(!1), e = h(null);
10
+ return m(() => {
11
11
  const r = () => {
12
12
  if (e.current) {
13
13
  const { scrollWidth: f, clientWidth: u } = e.current;
@@ -33,6 +33,7 @@ const E = ({
33
33
  overflow: "hidden",
34
34
  textOverflow: "ellipsis",
35
35
  ...l,
36
+ maxWidth: "100%",
36
37
  children: t
37
38
  }
38
39
  )
@@ -1 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),l=require("../../hooks/lazySvgImport.cjs.js"),g=require("../../Stack-6AHEa1bx.cjs"),i=require("../../Typography-BYWZ5kB1.cjs"),u=({svgName:n,title:s,description:e,descriptionProps:o,svgProps:c,titleProps:a,...h})=>{const{Svg:r}=l.useLazySvgImport(n);return r?t.jsxs(g.Stack,{direction:"column",alignItems:"center",margin:"auto",...h,children:[t.jsx("div",{style:{width:200,maxHeight:200},children:t.jsx(r,{width:"100%",height:"100%",preserveAspectRatio:"xMinYMin slice",...c})}),t.jsx(i.Typography,{variant:"h2",fontWeight:500,mt:3,...a,children:s}),e?t.jsx(i.Typography,{color:"grey",mt:2,...o,children:e}):null]}):null};module.exports=u;
1
+ "use strict";const t=require("react/jsx-runtime"),l=require("../../hooks/lazySvgImport.cjs.js"),g=require("../../Stack-B68ooSQ-.cjs"),i=require("../../Typography-Y-OGmT9M.cjs"),u=({svgName:n,title:s,description:e,descriptionProps:o,svgProps:c,titleProps:a,...h})=>{const{Svg:r}=l.useLazySvgImport(n);return r?t.jsxs(g.Stack,{direction:"column",alignItems:"center",margin:"auto",...h,children:[t.jsx("div",{style:{width:200,maxHeight:200},children:t.jsx(r,{width:"100%",height:"100%",preserveAspectRatio:"xMinYMin slice",...c})}),t.jsx(i.Typography,{variant:"h2",fontWeight:500,mt:3,...a,children:s}),e?t.jsx(i.Typography,{color:"grey",mt:2,...o,children:e}):null]}):null};module.exports=u;
@@ -1,7 +1,7 @@
1
1
  import { jsxs as c, jsx as t } from "react/jsx-runtime";
2
2
  import { useLazySvgImport as h } from "../../hooks/lazySvgImport.es.js";
3
- import { S as p } from "../../Stack-DX7XIsZG.js";
4
- import { T as i } from "../../Typography-CsC_hF8M.js";
3
+ import { S as p } from "../../Stack-CSgGU-cq.js";
4
+ import { T as i } from "../../Typography-C9ltjPyz.js";
5
5
  const y = ({
6
6
  svgName: o,
7
7
  title: n,
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),e=require("../../createSvgIcon-CWNQW6u6.cjs"),s=e.createSvgIcon(c.jsx("path",{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M8 11H4V6h4zm6 0h-4V6h4zm6 0h-4V6h4zM8 18H4v-5h4zm6 0h-4v-5h4zm6 0h-4v-5h4z"}),"CalendarViewMonthRounded"),n=e.createSvgIcon(c.jsx("path",{d:"M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"}),"DescriptionOutlined"),h=e.createSvgIcon(c.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"}),"InsertDriveFileOutlined"),a=e.createSvgIcon(c.jsx("path",{d:"M4 6.47 5.76 10H20v8H4zM22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2z"}),"MovieOutlined"),o=e.createSvgIcon(c.jsx("path",{d:"M12 5v8.55c-.94-.54-2.1-.75-3.33-.32-1.34.48-2.37 1.67-2.61 3.07-.46 2.74 1.86 5.08 4.59 4.65 1.96-.31 3.35-2.11 3.35-4.1V7h2c1.1 0 2-.9 2-2s-.9-2-2-2h-2c-1.1 0-2 .9-2 2"}),"MusicNoteRounded"),r=e.createSvgIcon(c.jsx("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v1c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-1h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2m-1 14H4c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h16c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1m-5.52-5.13-3.98 2.28c-.67.38-1.5-.11-1.5-.87V8.72c0-.77.83-1.25 1.5-.87l3.98 2.28c.67.39.67 1.35 0 1.74"}),"OndemandVideoRounded"),d=e.createSvgIcon(c.jsx("path",{d:"M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"}),"PhotoOutlined"),v=e.createSvgIcon(c.jsx("path",{d:"M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H8V4h12zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm12 6V9c0-.55-.45-1-1-1h-2v5h2c.55 0 1-.45 1-1m-2-3h1v3h-1zm4 2h1v-1h-1V9h1V8h-2v5h1zm-8 0h1c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1H9v5h1zm0-2h1v1h-1z"}),"PictureAsPdfOutlined"),i=({extension:t})=>{switch(t.toUpperCase()){case"MP3":case"MIDI":case"WAV":return c.jsx(o,{});case"JPG":case"JPEG":case"PNG":case"SVG":return c.jsx(d,{});case"MP4":case"MOV":case"AVI":return c.jsx(a,{});case"CSV":case"ODS":case"XLS":case"XLSX":return c.jsx(s,{});case"PDF":return c.jsx(v,{});case"ODT":case"DOC":case"DOCX":case"TXT":return c.jsx(n,{});case"ODP":case"PPT":case"PPTX":return c.jsx(r,{});default:return c.jsx(h,{})}};exports.FileIcon=i;
@@ -0,0 +1,3 @@
1
+ export declare const FileIcon: React.FC<{
2
+ extension: string;
3
+ }>;
@@ -0,0 +1,56 @@
1
+ import { jsx as c } from "react/jsx-runtime";
2
+ import { c as e } from "../../createSvgIcon-Cd6y8E9W.js";
3
+ const t = e(/* @__PURE__ */ c("path", {
4
+ d: "M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M8 11H4V6h4zm6 0h-4V6h4zm6 0h-4V6h4zM8 18H4v-5h4zm6 0h-4v-5h4zm6 0h-4v-5h4z"
5
+ }), "CalendarViewMonthRounded"), n = e(/* @__PURE__ */ c("path", {
6
+ d: "M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5z"
7
+ }), "DescriptionOutlined"), s = e(/* @__PURE__ */ c("path", {
8
+ d: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zM6 20V4h7v5h5v11z"
9
+ }), "InsertDriveFileOutlined"), d = e(/* @__PURE__ */ c("path", {
10
+ d: "M4 6.47 5.76 10H20v8H4zM22 4h-4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2z"
11
+ }), "MovieOutlined"), a = e(/* @__PURE__ */ c("path", {
12
+ d: "M12 5v8.55c-.94-.54-2.1-.75-3.33-.32-1.34.48-2.37 1.67-2.61 3.07-.46 2.74 1.86 5.08 4.59 4.65 1.96-.31 3.35-2.11 3.35-4.1V7h2c1.1 0 2-.9 2-2s-.9-2-2-2h-2c-1.1 0-2 .9-2 2"
13
+ }), "MusicNoteRounded"), o = e(/* @__PURE__ */ c("path", {
14
+ d: "M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v1c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-1h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2m-1 14H4c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h16c.55 0 1 .45 1 1v10c0 .55-.45 1-1 1m-5.52-5.13-3.98 2.28c-.67.38-1.5-.11-1.5-.87V8.72c0-.77.83-1.25 1.5-.87l3.98 2.28c.67.39.67 1.35 0 1.74"
15
+ }), "OndemandVideoRounded"), r = e(/* @__PURE__ */ c("path", {
16
+ d: "M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4.86 8.86-3 3.87L9 13.14 6 17h12z"
17
+ }), "PhotoOutlined"), i = e(/* @__PURE__ */ c("path", {
18
+ d: "M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2m0 14H8V4h12zM4 6H2v14c0 1.1.9 2 2 2h14v-2H4zm12 6V9c0-.55-.45-1-1-1h-2v5h2c.55 0 1-.45 1-1m-2-3h1v3h-1zm4 2h1v-1h-1V9h1V8h-2v5h1zm-8 0h1c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1H9v5h1zm0-2h1v1h-1z"
19
+ }), "PictureAsPdfOutlined"), V = ({ extension: h }) => {
20
+ switch (h.toUpperCase()) {
21
+ case "MP3":
22
+ case "MIDI":
23
+ case "WAV":
24
+ return /* @__PURE__ */ c(a, {});
25
+ case "JPG":
26
+ case "JPEG":
27
+ case "PNG":
28
+ case "SVG":
29
+ return /* @__PURE__ */ c(r, {});
30
+ case "MP4":
31
+ case "MOV":
32
+ case "AVI":
33
+ return /* @__PURE__ */ c(d, {});
34
+ case "CSV":
35
+ case "ODS":
36
+ case "XLS":
37
+ case "XLSX":
38
+ return /* @__PURE__ */ c(t, {});
39
+ case "PDF":
40
+ return /* @__PURE__ */ c(i, {});
41
+ case "ODT":
42
+ case "DOC":
43
+ case "DOCX":
44
+ case "TXT":
45
+ return /* @__PURE__ */ c(n, {});
46
+ case "ODP":
47
+ case "PPT":
48
+ case "PPTX":
49
+ return /* @__PURE__ */ c(o, {});
50
+ default:
51
+ return /* @__PURE__ */ c(s, {});
52
+ }
53
+ };
54
+ export {
55
+ V as FileIcon
56
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@mui/material"),t=()=>e.jsx(r.Stack,{height:"100%",children:e.jsx(r.Stack,{height:"4px",width:"4px",borderRadius:"50%",sx:{backgroundColor:"divider"}})});exports.FileInfosSeparator=t;
@@ -0,0 +1 @@
1
+ export declare const FileInfosSeparator: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { Stack as o } from "@mui/material";
3
+ const e = () => /* @__PURE__ */ r(o, { height: "100%", children: /* @__PURE__ */ r(
4
+ o,
5
+ {
6
+ height: "4px",
7
+ width: "4px",
8
+ borderRadius: "50%",
9
+ sx: { backgroundColor: "divider" }
10
+ }
11
+ ) });
12
+ export {
13
+ e as FileInfosSeparator
14
+ };
@@ -1 +1 @@
1
- "use strict";const i=require("react/jsx-runtime");require("react");const t=require("./FileListItem.cjs.js"),o=require("../../Box-BTYxUBc5.cjs"),n=({files:r=[]})=>i.jsx(o.Box,{sx:{display:"flex",flexDirection:"column",rowGap:"0.5rem"},children:r.map((s,e)=>i.jsx(t,{file:s,uploading:e%2===0},e))});module.exports=n;
1
+ "use strict";const e=require("react/jsx-runtime"),c=require("@mui/material");require("react");const l=require("./FileListItem.cjs.js"),x=require("../../Box-CVaz7diG.cjs"),u=({files:i,onDelete:t,onClick:s,onDownload:n})=>e.jsx(x.Box,{sx:{display:"flex",flexDirection:"column"},children:i.map((o,r)=>e.jsxs(e.Fragment,{children:[e.jsx(l,{file:o,onClick:s,onDelete:t,onDownload:n},r),r<i.length-1&&e.jsx(c.Divider,{variant:"middle"})]}))});module.exports=u;
@@ -1,7 +1,9 @@
1
- import { File } from './FileListItem';
2
- export interface FileListProps<T extends File> {
1
+ import { CustomFile } from './FileListItem';
2
+ export interface FileListProps<T extends CustomFile> {
3
3
  files: T[];
4
4
  onDelete?: (file: T) => void;
5
+ onClick?: (file: T) => void;
6
+ onDownload?: (file: T) => void;
5
7
  }
6
- declare const FileList: <T extends File>({ files }: FileListProps<T>) => import("react/jsx-runtime").JSX.Element;
8
+ declare const FileList: <T extends CustomFile>({ files, onDelete, onClick, onDownload, }: FileListProps<T>) => import("react/jsx-runtime").JSX.Element;
7
9
  export default FileList;
@@ -1,17 +1,26 @@
1
- import { jsx as r } from "react/jsx-runtime";
1
+ import { jsx as r, jsxs as s, Fragment as a } from "react/jsx-runtime";
2
+ import { Divider as n } from "@mui/material";
2
3
  import "react";
3
- import m from "./FileListItem.es.js";
4
- import { B as e } from "../../Box-C5qOvRw6.js";
5
- const f = ({
6
- files: i = []
7
- }) => /* @__PURE__ */ r(e, { sx: { display: "flex", flexDirection: "column", rowGap: "0.5rem" }, children: i.map((t, o) => /* @__PURE__ */ r(
8
- m,
9
- {
10
- file: t,
11
- uploading: o % 2 === 0
12
- },
13
- o
14
- )) });
4
+ import p from "./FileListItem.es.js";
5
+ import { B as d } from "../../Box-Cpg9IWKr.js";
6
+ const F = ({
7
+ files: i,
8
+ onDelete: m,
9
+ onClick: o,
10
+ onDownload: e
11
+ }) => /* @__PURE__ */ r(d, { sx: { display: "flex", flexDirection: "column" }, children: i.map((l, t) => /* @__PURE__ */ s(a, { children: [
12
+ /* @__PURE__ */ r(
13
+ p,
14
+ {
15
+ file: l,
16
+ onClick: o,
17
+ onDelete: m,
18
+ onDownload: e
19
+ },
20
+ t
21
+ ),
22
+ t < i.length - 1 && /* @__PURE__ */ r(n, { variant: "middle" })
23
+ ] })) });
15
24
  export {
16
- f as default
25
+ F as default
17
26
  };
@@ -1 +1 @@
1
- "use strict";const r=require("react/jsx-runtime"),n=require("../../Delete-CN1Nvyw-.cjs"),a=require("../../createSvgIcon-DestgQu_.cjs"),u=require("../../Stack-6AHEa1bx.cjs"),x=require("../../Box-BTYxUBc5.cjs"),t=require("../../Typography-BYWZ5kB1.cjs"),l=require("../../IconButton-Dl_aERqI.cjs"),d=require("../../CircularProgress-CIsFCabr.cjs"),h=a.createSvgIcon(r.jsx("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm7 7V3.5L18.5 9z"}),"InsertDriveFile"),j=({file:e,uploading:c,onDelete:s})=>{const i=`${e.size} octets`,o=()=>s==null?void 0:s(e);return r.jsxs(u.Stack,{direction:"row",alignItems:"center",spacing:2,children:[r.jsx(h,{color:"primary"}),r.jsxs(x.Box,{sx:{width:"100%"},children:[r.jsx(t.Typography,{children:e.name}),r.jsx(t.Typography,{fontSize:"0.875rem",color:"grey",children:i})]}),r.jsx(l.IconButton,{onClick:o,disabled:c,children:c?r.jsx(d.CircularProgress,{size:24}):r.jsx(n.DeleteIcon,{})})]})};module.exports=j;
1
+ "use strict";const e=require("react/jsx-runtime"),n=require("@mui/material"),u=require("../EllipsisWithTooltip/EllipsisWithTooltip.cjs.js"),g=require("./FileIcon.cjs.js"),y=require("./FileInfosSeparator.cjs.js"),x=require("./utils.cjs.js"),s=require("../../Stack-B68ooSQ-.cjs"),l=require("../../Typography-Y-OGmT9M.cjs"),j=require("../../createSvgIcon-CWNQW6u6.cjs"),S=require("../../CloseRounded-Cu-sn6XC.cjs"),I=j.createSvgIcon(e.jsx("path",{d:"M16.59 9H15V4c0-.55-.45-1-1-1h-4c-.55 0-1 .45-1 1v5H7.41c-.89 0-1.34 1.08-.71 1.71l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.63-.63.19-1.71-.7-1.71M5 19c0 .55.45 1 1 1h12c.55 0 1-.45 1-1s-.45-1-1-1H6c-.55 0-1 .45-1 1"}),"DownloadRounded"),b=({file:r,onDelete:t,onClick:i,onDownload:o})=>{if(!r.name)return null;const d=x.displaySize(r.size),c=x.displayExtension(r.name),p=()=>i==null?void 0:i(r),h=a=>{a.stopPropagation(),t==null||t(r)},m=a=>{a.stopPropagation(),o==null||o(r)};return e.jsxs(s.Stack,{direction:"row",alignItems:"center",spacing:2,padding:"0.5rem 1rem",width:"100%",justifyContent:"space-between",onClick:p,boxSizing:"border-box",sx:{"&:hover":{boxShadow:"0 4px 8px rgba(192, 192, 192, 0.3)",borderRadius:"4px",cursor:"pointer"}},children:[e.jsxs(s.Stack,{direction:"row",alignItems:"center",spacing:2,minWidth:"0",children:[e.jsx(s.Stack,{borderRadius:"4px",minWidth:"40px",maxWidth:"40px",minHeight:"40px",maxHeight:"40px",display:"flex",alignItems:"center",justifyContent:"center",sx:{backgroundColor:"grey.light"},children:e.jsx(n.Box,{color:"text.secondary",alignItems:"center",justifyContent:"center",display:"flex",children:e.jsx(g.FileIcon,{extension:c??""})})}),e.jsxs(s.Stack,{direction:"column",spacing:0,alignItems:"flex-start",minWidth:"0",children:[e.jsx(u,{children:r.name}),e.jsxs(n.Breadcrumbs,{separator:e.jsx(y.FileInfosSeparator,{}),children:[d&&e.jsx(l.Typography,{fontSize:"0.8rem",color:"text.secondary",children:d}),c&&e.jsx(l.Typography,{fontSize:"0.8rem",color:"text.secondary",children:c}),r.ownerName&&e.jsx(l.Typography,{fontSize:"0.8rem",color:"text.secondary",children:r.ownerName})]})]})]}),e.jsxs(n.Box,{alignItems:"center",display:"flex",gap:"1rem",children:[r.isLoading?e.jsx(n.Box,{marginRight:1,children:e.jsx(n.CircularProgress,{size:24,color:"primary"})}):r.isDowlodable?e.jsx(n.IconButton,{onClick:m,children:e.jsx(I,{color:"primary"})}):null,r.isDeletable&&e.jsx(n.IconButton,{onClick:h,children:e.jsx(S.CloseRounded,{})})]})]})};module.exports=b;