@cgi-learning-hub/ui 1.4.0-dev.1742208889 → 1.4.0-dev.1742217009

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 (196) hide show
  1. package/dist/{Alert-DdpAZix8.js → Alert-BCd1tHk0.js} +9 -9
  2. package/dist/{Backdrop-BctCVgLy.js → Backdrop-CjDitjBW.js} +20 -19
  3. package/dist/Backdrop-DOdBqGqq.cjs +1 -0
  4. package/dist/{Box-DgqaLb7j.js → Box-GMNejc_m.js} +7 -7
  5. package/dist/{Button-B7kOjNW1.js → Button-x5rtZxJN.js} +6 -6
  6. package/dist/{ButtonBase-IZ_QjbpE.js → ButtonBase-CU1npQuI.js} +4 -4
  7. package/dist/{CardContent-F4-KcZH8.js → CardContent-CL_61cm-.js} +3 -3
  8. package/dist/{Checkbox-qUSjau0g.js → Checkbox-CtRSDqOe.js} +7 -7
  9. package/dist/{Chip-OpRIs-sL.js → Chip-ZIBpWC4I.js} +6 -6
  10. package/dist/{CircularProgress-CQxzJquv.js → CircularProgress-B28FKeiH.js} +4 -4
  11. package/dist/{CloseRounded-BMEGLs8y.js → CloseRounded-pP8asZiP.js} +1 -1
  12. package/dist/Collapse-Bvxtq7n-.cjs +1 -0
  13. package/dist/Collapse-CcMCOZ3q.js +334 -0
  14. package/dist/CustomTreeItem-CG7mGHC9.cjs +3 -0
  15. package/dist/CustomTreeItem-PTf-e74x.js +1003 -0
  16. package/dist/DatePicker-64gpvkmk.cjs +13 -0
  17. package/dist/{DatePicker-fFsWvNFc.js → DatePicker-XdCuICxv.js} +2117 -2535
  18. package/dist/{DefaultPropsProvider-Cqcb4sws.js → DefaultPropsProvider-CQixa6JQ.js} +7 -7
  19. package/dist/Delete-BQA9--_t.js +8 -0
  20. package/dist/Delete-DmeDAs0n.cjs +1 -0
  21. package/dist/{Dialog-CKS7yjT5.js → Dialog-C-Ptqtq-.js} +9 -9
  22. package/dist/{Dialog-B1wnk5BT.cjs → Dialog-CgEvhrbZ.cjs} +1 -1
  23. package/dist/{DialogContent-BzPaz5G8.js → DialogContent-1sjO2rQK.js} +3 -3
  24. package/dist/{DialogTitle-D3E_lDHD.js → DialogTitle-CGpa_QH9.js} +5 -5
  25. package/dist/{DialogTitle-mr9xn4JZ.cjs → DialogTitle-F6JD1f_z.cjs} +1 -1
  26. package/dist/{Divider-D-pZeQTm.js → Divider-CNGfzZqD.js} +8 -8
  27. package/dist/Folder-DXybV_jP.js +8 -0
  28. package/dist/Folder-DiQqYwXI.cjs +1 -0
  29. package/dist/{FormLabel-3-CC-ZGw.js → FormLabel-BlaPVlwX.js} +67 -76
  30. package/dist/FormLabel-XpwTqbs8.cjs +2 -0
  31. package/dist/{Grow-DKgYCxiY.js → Grow-D5UIC41W.js} +14 -13
  32. package/dist/Grow-wjlsaPJ-.cjs +1 -0
  33. package/dist/{IconButton-CCNUMz2l.js → IconButton-CFUIddNg.js} +6 -6
  34. package/dist/{InputAdornment-DL8XIM8r.js → InputAdornment-GcbiriFv.js} +5 -5
  35. package/dist/{InputBase-By7jMrFP.js → InputBase-DJuF09Rf.js} +7 -7
  36. package/dist/{Link-C_GPIs0q.js → Link-DtsZ0d_s.js} +7 -7
  37. package/dist/List-BTPrBGqY.js +130 -0
  38. package/dist/List-Bo4pzQqG.cjs +1 -0
  39. package/dist/ListItem-C9OfYRAP.js +423 -0
  40. package/dist/ListItem-CB4JyjSb.cjs +1 -0
  41. package/dist/ListItemText-B_hEVsaT.js +928 -0
  42. package/dist/ListItemText-Bjd08uk4.cjs +1 -0
  43. package/dist/{Menu-BunOW0ot.js → Menu-DD_bqi6q.js} +306 -428
  44. package/dist/Menu-XypIRgTl.cjs +7 -0
  45. package/dist/{MenuItem-Cu3FTLl8.js → MenuItem-Byj-2QQd.js} +72 -77
  46. package/dist/MenuItem-vb36Ljmd.cjs +1 -0
  47. package/dist/{Modal-u82Ss4h_.cjs → Modal-BG3hPYyH.cjs} +1 -1
  48. package/dist/{Modal-DTJd7JJ6.js → Modal-S2P14Nsp.js} +8 -8
  49. package/dist/{MoreVert-CrM_1EkN.js → MoreVert-rsN-POLa.js} +1 -1
  50. package/dist/{Paper-BiZq6EF2.js → Paper-BrsaeLlu.js} +4 -4
  51. package/dist/{Popper-DjwR55WH.js → Popper-BNftxeQ5.js} +31 -30
  52. package/dist/Popper-BaxEpkdE.cjs +4 -0
  53. package/dist/{Portal-BByeByPq.js → Portal-BLEnzj1v.js} +2 -2
  54. package/dist/Portal-Bw9XOIah.cjs +1 -0
  55. package/dist/{Radio-DSRS-tjj.js → Radio-CRTKwNe5.js} +9 -9
  56. package/dist/{RadioGroup-cPdOWdYD.js → RadioGroup-NjI5PlIb.js} +3 -3
  57. package/dist/{Select-DZAzJA0y.cjs → Select-8kBUq_SZ.cjs} +1 -1
  58. package/dist/{Select-CZnKFG3o.js → Select-C0jrZLRg.js} +30 -30
  59. package/dist/{Stack-hbAJHQhq.js → Stack-Bm7M81n8.js} +22 -22
  60. package/dist/{Switch-B9uT9-d0.js → Switch-D5FnE7HW.js} +6 -6
  61. package/dist/{SwitchBase-CDkmnGAP.js → SwitchBase-91Mand9t.js} +5 -5
  62. package/dist/{Tabs-BYfDlOR9.js → Tabs-C5VIdTSp.js} +25 -24
  63. package/dist/Tabs-Csp29aqN.cjs +4 -0
  64. package/dist/{TextField-CwcPgdgD.cjs → TextField-BzqflYRV.cjs} +1 -1
  65. package/dist/{TextField-BKfXjPdH.js → TextField-D5jS5WjF.js} +8 -8
  66. package/dist/ToggleButtonGroup-Bpi3kmko.cjs +140 -0
  67. package/dist/{ToggleButtonGroup-B1yghh29.js → ToggleButtonGroup-CipWZLXf.js} +2641 -3875
  68. package/dist/Tooltip-DJmbLjU6.cjs +4 -0
  69. package/dist/{Tooltip-B1NGvrJP.js → Tooltip-DgTrUaHJ.js} +10 -10
  70. package/dist/{Typography-SIQ6eleU.js → Typography-Ct2Sc9KM.js} +5 -5
  71. package/dist/{capitalize-3KLkrEtk.js → capitalize-BJ0FEsU7.js} +1 -1
  72. package/dist/components/Alert/Alert.es.js +1 -1
  73. package/dist/components/Alert/index.es.js +1 -1
  74. package/dist/components/Button/Button.es.js +2 -2
  75. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  76. package/dist/components/DatePicker/DatePicker.es.js +1 -1
  77. package/dist/components/DatePicker/index.cjs.js +1 -1
  78. package/dist/components/DatePicker/index.es.js +1 -1
  79. package/dist/components/Dialog/Dialog.cjs.js +1 -1
  80. package/dist/components/Dialog/Dialog.es.js +2 -2
  81. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  82. package/dist/components/EmptyState/EmptyState.es.js +3 -3
  83. package/dist/components/FileList/FileIcon.es.js +1 -1
  84. package/dist/components/FileList/FileListItem.es.js +4 -4
  85. package/dist/components/FolderCard/FolderCard.cjs.js +1 -1
  86. package/dist/components/FolderCard/FolderCard.es.js +13 -15
  87. package/dist/components/Heading/Heading.es.js +2 -2
  88. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  89. package/dist/components/ImagePicker/ImagePicker.es.js +45 -46
  90. package/dist/components/Loader/Loader.es.js +1 -1
  91. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  92. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  93. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  94. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  95. package/dist/components/ResourceCard/ResourceCard.es.js +1 -1
  96. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  97. package/dist/components/TreeView/TreeView.cjs.js +7 -0
  98. package/dist/components/TreeView/TreeView.d.ts +4 -0
  99. package/dist/components/TreeView/TreeView.es.js +1892 -0
  100. package/dist/components/TreeView/components/CustomTreeItem.cjs.js +1 -0
  101. package/dist/components/TreeView/components/CustomTreeItem.d.ts +6 -0
  102. package/dist/components/TreeView/components/CustomTreeItem.es.js +8 -0
  103. package/dist/components/TreeView/index.cjs.js +1 -0
  104. package/dist/components/TreeView/index.d.ts +2 -0
  105. package/dist/components/TreeView/index.es.js +6 -0
  106. package/dist/components/TreeView/style.cjs.js +1 -0
  107. package/dist/components/TreeView/style.d.ts +12 -0
  108. package/dist/components/TreeView/style.es.js +24 -0
  109. package/dist/components/TreeView/types.cjs.js +1 -0
  110. package/dist/components/TreeView/types.d.ts +37 -0
  111. package/dist/components/TreeView/types.es.js +4 -0
  112. package/dist/components/TreeView/utils.cjs.js +1 -0
  113. package/dist/components/TreeView/utils.d.ts +6 -0
  114. package/dist/components/TreeView/utils.es.js +50 -0
  115. package/dist/components/index.cjs.js +1 -1
  116. package/dist/components/index.es.js +350 -345
  117. package/dist/components/stories/Alert.stories.es.js +1 -1
  118. package/dist/components/stories/Button.stories.es.js +1 -1
  119. package/dist/components/stories/Card.stories.es.js +2 -2
  120. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  121. package/dist/components/stories/Chip.stories.es.js +1 -1
  122. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  123. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  124. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  125. package/dist/components/stories/Dialog.stories.es.js +2 -2
  126. package/dist/components/stories/Divider.stories.es.js +1 -1
  127. package/dist/components/stories/FormControlLabel.stories.es.js +3 -3
  128. package/dist/components/stories/Heading.stories.es.js +2 -2
  129. package/dist/components/stories/IconButton.stories.es.js +2 -2
  130. package/dist/components/stories/Link.stories.es.js +1 -1
  131. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  132. package/dist/components/stories/Menu.stories.es.js +2 -2
  133. package/dist/components/stories/Paper.stories.es.js +1 -1
  134. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  135. package/dist/components/stories/RadioGroup.stories.es.js +3 -3
  136. package/dist/components/stories/ResourceCard.stories.es.js +1 -1
  137. package/dist/components/stories/Select.stories.cjs.js +1 -1
  138. package/dist/components/stories/Select.stories.es.js +3 -3
  139. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  140. package/dist/components/stories/TabList.stories.es.js +4 -4
  141. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  142. package/dist/components/stories/TextField.stories.es.js +1 -1
  143. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  144. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  145. package/dist/components/stories/TreeView.stories.cjs.js +63 -0
  146. package/dist/components/stories/TreeView.stories.d.ts +12 -0
  147. package/dist/components/stories/TreeView.stories.es.js +663 -0
  148. package/dist/components/stories/Typography.stories.es.js +1 -1
  149. package/dist/{createSvgIcon-K2ZAdASa.js → createSvgIcon-B62eln-G.js} +6 -6
  150. package/dist/{dividerClasses-afsB3Yy1.js → dividerClasses-DjJZQ2Lt.js} +1 -1
  151. package/dist/{elementTypeAcceptingRef-5ESWTE79.js → elementTypeAcceptingRef-B04tk6ag.js} +1 -1
  152. package/dist/{extendSxProp-dlShX1xL.js → extendSxProp-CgS-3O19.js} +1 -1
  153. package/dist/{generateUtilityClasses-DotvgSDH.js → generateUtilityClasses-EXBFO7eY.js} +9 -9
  154. package/dist/getReactElementRef-CTRMtaOQ.cjs +1 -0
  155. package/dist/getReactElementRef-DjLvttrJ.js +31 -0
  156. package/dist/{index-DTTmpNYg.js → index-BZ7ldAwE.js} +4 -4
  157. package/dist/index-Cr54V0sz.cjs +1 -0
  158. package/dist/index-D_xl88AE.js +22 -0
  159. package/dist/{index-B1u7G33_.js → index-DcwdJ8a_.js} +1 -1
  160. package/dist/index.cjs.js +1 -1
  161. package/dist/index.es.js +350 -345
  162. package/dist/isMuiElement-BzDAj3yJ.cjs +1 -0
  163. package/dist/isMuiElement-DnSE4qG4.js +13 -0
  164. package/dist/listItemTextClasses-BCuJjsDp.cjs +1 -0
  165. package/dist/listItemTextClasses-Kxu3VILo.js +9 -0
  166. package/dist/{memoTheme-CqmIydD-.js → memoTheme-DJWQ754x.js} +1 -1
  167. package/dist/{refType-C210ipRY.js → refType-Bpj8bod6.js} +1 -1
  168. package/dist/{resolveComponentProps-CPmhKPdH.js → resolveComponentProps-CIdMNno4.js} +1 -1
  169. package/dist/{useSlot-GZu0V5wJ.js → useSlot-RbAtahZu.js} +1 -1
  170. package/dist/useSlotProps-BTRhbYwP.cjs +1 -0
  171. package/dist/useSlotProps-U2Iu6E0j.js +25 -0
  172. package/dist/{useTheme-tdgDVH1p.js → useTheme-CUKf8NYA.js} +1 -1
  173. package/dist/useTheme-Czi7oO55.js +11 -0
  174. package/dist/{useThemeProps-BQlPXzo3.js → useThemeProps-Bxjrhw9q.js} +2 -2
  175. package/dist/useThemeProps-v-SfXuGn.js +17 -0
  176. package/dist/{utils-CXhh35wP.js → utils-B2jSugkj.js} +76 -104
  177. package/dist/utils-lBmb5bp_.cjs +1 -0
  178. package/dist/warning-C8W811fV.js +11 -0
  179. package/dist/warning-DMUNDgRg.cjs +2 -0
  180. package/package.json +2 -1
  181. package/dist/Backdrop-DWp3AktL.cjs +0 -1
  182. package/dist/DatePicker-DrLKgvkx.cjs +0 -14
  183. package/dist/FormLabel-BV7-a0i5.cjs +0 -2
  184. package/dist/Grow-Z3KzFaK5.cjs +0 -1
  185. package/dist/Menu-Cngt8Va9.cjs +0 -7
  186. package/dist/MenuItem-Bha8aBMr.cjs +0 -1
  187. package/dist/Popper-BVYscbsI.cjs +0 -4
  188. package/dist/Portal-DUHpWdY1.cjs +0 -1
  189. package/dist/Tabs-AyJ_tKtV.cjs +0 -4
  190. package/dist/ToggleButtonGroup-NqurNgWT.cjs +0 -140
  191. package/dist/Tooltip-oNmnF7Bc.cjs +0 -4
  192. package/dist/useSlotProps-C9tsxDNg.js +0 -45
  193. package/dist/useSlotProps-CvOxvhyy.cjs +0 -1
  194. package/dist/useTheme-BA7tMglY.js +0 -11
  195. package/dist/useThemeProps-BTfGtNci.js +0 -17
  196. package/dist/utils-CFI_-FMV.cjs +0 -1
@@ -0,0 +1 @@
1
+ "use strict";const U=require("react"),e=require("./generateUtilityClasses-De8NU9_E.cjs"),V=require("./useTheme-CIf2b2wK.cjs"),W=require("react/jsx-runtime"),g=require("./utils-lBmb5bp_.cjs"),B=require("./useTimeout-COCrDKz-.cjs"),J=require("./useForkRef-CTI33h-3.cjs"),v=require("./getReactElementRef-CTRMtaOQ.cjs");function Q(r){const d=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const a in r)if(a!=="default"){const l=Object.getOwnPropertyDescriptor(r,a);Object.defineProperty(d,a,l.get?l:{enumerable:!0,get:()=>r[a]})}}return d.default=r,Object.freeze(d)}const T=Q(U);function R(r){return`scale(${r}, ${r**2})`}const X={entering:{opacity:1,transform:R(1)},entered:{opacity:1,transform:"none"}},x=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),m=T.forwardRef(function(d,a){const{addEndListener:l,appear:w=!0,children:E,easing:b,in:j,onEnter:q,onEntered:D,onEntering:A,onExit:O,onExited:S,onExiting:_,style:P,timeout:i="auto",TransitionComponent:F=g.Transition,...H}=d,L=B.useTimeout(),h=T.useRef(),u=V.useTheme(),f=T.useRef(null),C=J.useForkRef(f,v.getReactElementRef(E),a),c=t=>s=>{if(t){const n=f.current;s===void 0?t(n):t(n,s)}},G=c(A),N=c((t,s)=>{g.reflow(t);const{duration:n,delay:y,easing:o}=g.getTransitionProps({style:P,timeout:i,easing:b},{mode:"enter"});let p;i==="auto"?(p=u.transitions.getAutoHeightDuration(t.clientHeight),h.current=p):p=n,t.style.transition=[u.transitions.create("opacity",{duration:p,delay:y}),u.transitions.create("transform",{duration:x?p:p*.666,delay:y,easing:o})].join(","),q&&q(t,s)}),k=c(D),z=c(_),$=c(t=>{const{duration:s,delay:n,easing:y}=g.getTransitionProps({style:P,timeout:i,easing:b},{mode:"exit"});let o;i==="auto"?(o=u.transitions.getAutoHeightDuration(t.clientHeight),h.current=o):o=s,t.style.transition=[u.transitions.create("opacity",{duration:o,delay:n}),u.transitions.create("transform",{duration:x?o:o*.666,delay:x?n:n||o*.333,easing:y})].join(","),t.style.opacity=0,t.style.transform=R(.75),O&&O(t)}),K=c(S),M=t=>{i==="auto"&&L.start(h.current||0,t),l&&l(f.current,t)};return W.jsx(F,{appear:w,in:j,nodeRef:f,onEnter:N,onEntered:k,onEntering:G,onExit:$,onExited:K,onExiting:z,addEndListener:M,timeout:i==="auto"?null:i,...H,children:(t,{ownerState:s,...n})=>T.cloneElement(E,{style:{opacity:0,transform:R(.75),visibility:t==="exited"&&!j?"hidden":void 0,...X[t],...P,...E.props.style},ref:C,...n})})});process.env.NODE_ENV!=="production"&&(m.propTypes={addEndListener:e.PropTypes.func,appear:e.PropTypes.bool,children:v.elementAcceptingRef.isRequired,easing:e.PropTypes.oneOfType([e.PropTypes.shape({enter:e.PropTypes.string,exit:e.PropTypes.string}),e.PropTypes.string]),in:e.PropTypes.bool,onEnter:e.PropTypes.func,onEntered:e.PropTypes.func,onEntering:e.PropTypes.func,onExit:e.PropTypes.func,onExited:e.PropTypes.func,onExiting:e.PropTypes.func,style:e.PropTypes.object,timeout:e.PropTypes.oneOfType([e.PropTypes.oneOf(["auto"]),e.PropTypes.number,e.PropTypes.shape({appear:e.PropTypes.number,enter:e.PropTypes.number,exit:e.PropTypes.number})])});m&&(m.muiSupportAuto=!0);exports.Grow=m;
@@ -1,13 +1,13 @@
1
1
  import * as f from "react";
2
- import { H as $, I as x, G as P, n as B, P as e } from "./generateUtilityClasses-DotvgSDH.js";
3
- import { m as z } from "./memoTheme-CqmIydD-.js";
2
+ import { G as $, H as x, I as P, n as B, P as e } from "./generateUtilityClasses-EXBFO7eY.js";
3
+ import { m as z } from "./memoTheme-DJWQ754x.js";
4
4
  import { c as R } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
5
5
  import { jsxs as w, jsx as u } from "react/jsx-runtime";
6
- import { u as j, s as O, c as k } from "./DefaultPropsProvider-Cqcb4sws.js";
6
+ import { u as j, s as O, c as k } from "./DefaultPropsProvider-CQixa6JQ.js";
7
7
  import { u as M } from "./useId-CK6Kn3Tn.js";
8
- import { c as t } from "./capitalize-3KLkrEtk.js";
9
- import { B as N } from "./ButtonBase-IZ_QjbpE.js";
10
- import { C as E } from "./CircularProgress-CQxzJquv.js";
8
+ import { c as t } from "./capitalize-BJ0FEsU7.js";
9
+ import { B as N } from "./ButtonBase-CU1npQuI.js";
10
+ import { C as E } from "./CircularProgress-B28FKeiH.js";
11
11
  import { c as L } from "./chainPropTypes-D9lkm76m.js";
12
12
  function U(o) {
13
13
  return x("MuiIconButton", o);
@@ -1,11 +1,11 @@
1
1
  import * as h from "react";
2
- import { H as P, I as T, G as A, P as e } from "./generateUtilityClasses-DotvgSDH.js";
2
+ import { G as P, H as T, I as A, P as e } from "./generateUtilityClasses-EXBFO7eY.js";
3
3
  import { u as C, F as x } from "./useFormControl-CatNKXAi.js";
4
- import { m as N } from "./memoTheme-CqmIydD-.js";
4
+ import { m as N } from "./memoTheme-DJWQ754x.js";
5
5
  import { jsx as l, jsxs as S } from "react/jsx-runtime";
6
- import { u as L, s as O, c as R } from "./DefaultPropsProvider-Cqcb4sws.js";
7
- import { T as w } from "./Typography-SIQ6eleU.js";
8
- import { c as u } from "./capitalize-3KLkrEtk.js";
6
+ import { u as L, s as O, c as R } from "./DefaultPropsProvider-CQixa6JQ.js";
7
+ import { T as w } from "./Typography-Ct2Sc9KM.js";
8
+ import { c as u } from "./capitalize-BJ0FEsU7.js";
9
9
  function z(t) {
10
10
  return T("MuiInputAdornment", t);
11
11
  }
@@ -1,20 +1,20 @@
1
1
  import * as s from "react";
2
- import { P as e, H as Fe, I as ke, G as ce, J as Be } from "./generateUtilityClasses-DotvgSDH.js";
2
+ import { P as e, G as Fe, H as ke, I as ce, J as Be } from "./generateUtilityClasses-EXBFO7eY.js";
3
3
  import { i as pe } from "./isHostComponent-kiaBvYVo.js";
4
4
  import { f as Me } from "./formControlState-vgaj2ksH.js";
5
5
  import { u as He, F as Pe } from "./useFormControl-CatNKXAi.js";
6
- import { g as We } from "./index-DTTmpNYg.js";
7
- import { m as be } from "./memoTheme-CqmIydD-.js";
6
+ import { g as We } from "./index-BZ7ldAwE.js";
7
+ import { m as be } from "./memoTheme-DJWQ754x.js";
8
8
  import { i as De } from "./utils-DWqc1kRF.js";
9
9
  import { jsxs as Q, jsx as A } from "react/jsx-runtime";
10
- import { u as Le, s as ye, c as je } from "./DefaultPropsProvider-Cqcb4sws.js";
10
+ import { u as Le, s as ye, c as je } from "./DefaultPropsProvider-CQixa6JQ.js";
11
11
  import { u as ge } from "./useForkRef-C_4o__cU.js";
12
12
  import { u as X } from "./useEnhancedEffect-CJGo-L3B.js";
13
13
  import { o as fe } from "./ownerWindow-niciwP7I.js";
14
14
  import { d as Ue } from "./debounce-46wSf_lW.js";
15
- import { c as ee } from "./capitalize-3KLkrEtk.js";
16
- import { r as Ve } from "./refType-C210ipRY.js";
17
- import { e as _e } from "./elementTypeAcceptingRef-5ESWTE79.js";
15
+ import { c as ee } from "./capitalize-BJ0FEsU7.js";
16
+ import { r as Ve } from "./refType-Bpj8bod6.js";
17
+ import { e as _e } from "./elementTypeAcceptingRef-B04tk6ag.js";
18
18
  function j(n) {
19
19
  return parseInt(n, 10) || 0;
20
20
  }
@@ -1,14 +1,14 @@
1
1
  import * as v from "react";
2
- import { H as S, I as V, N as l, n as c, G as P, P as o } from "./generateUtilityClasses-DotvgSDH.js";
3
- import { u as j } from "./useTheme-BA7tMglY.js";
2
+ import { G as S, H as V, N as l, n as c, I as P, P as o } from "./generateUtilityClasses-EXBFO7eY.js";
3
+ import { u as j } from "./useTheme-Czi7oO55.js";
4
4
  import { jsx as A } from "react/jsx-runtime";
5
- import { u as F, s as N, c as R } from "./DefaultPropsProvider-Cqcb4sws.js";
6
- import { m as M } from "./memoTheme-CqmIydD-.js";
5
+ import { u as F, s as N, c as R } from "./DefaultPropsProvider-CQixa6JQ.js";
6
+ import { m as M } from "./memoTheme-DJWQ754x.js";
7
7
  import { c as B } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
8
- import { c as w } from "./capitalize-3KLkrEtk.js";
9
- import { T as U } from "./Typography-SIQ6eleU.js";
8
+ import { c as w } from "./capitalize-BJ0FEsU7.js";
9
+ import { T as U } from "./Typography-Ct2Sc9KM.js";
10
10
  import { i as h } from "./isFocusVisible-CPZqtjv2.js";
11
- import { e as z } from "./elementTypeAcceptingRef-5ESWTE79.js";
11
+ import { e as z } from "./elementTypeAcceptingRef-B04tk6ag.js";
12
12
  function H(e) {
13
13
  return V("MuiLink", e);
14
14
  }
@@ -0,0 +1,130 @@
1
+ import * as i from "react";
2
+ import { G as h, H as y, I as L, P as s } from "./generateUtilityClasses-EXBFO7eY.js";
3
+ import { jsx as v, jsxs as x } from "react/jsx-runtime";
4
+ import { u as C, s as P, c as N } from "./DefaultPropsProvider-CQixa6JQ.js";
5
+ const p = /* @__PURE__ */ i.createContext({});
6
+ process.env.NODE_ENV !== "production" && (p.displayName = "ListContext");
7
+ function T(e) {
8
+ return y("MuiList", e);
9
+ }
10
+ const S = h("MuiList", ["root", "padding", "dense", "subheader"]), j = (e) => {
11
+ const {
12
+ classes: o,
13
+ disablePadding: t,
14
+ dense: a,
15
+ subheader: n
16
+ } = e;
17
+ return N({
18
+ root: ["root", !t && "padding", a && "dense", n && "subheader"]
19
+ }, T, o);
20
+ }, M = P("ul", {
21
+ name: "MuiList",
22
+ slot: "Root",
23
+ overridesResolver: (e, o) => {
24
+ const {
25
+ ownerState: t
26
+ } = e;
27
+ return [o.root, !t.disablePadding && o.padding, t.dense && o.dense, t.subheader && o.subheader];
28
+ }
29
+ })({
30
+ listStyle: "none",
31
+ margin: 0,
32
+ padding: 0,
33
+ position: "relative",
34
+ variants: [{
35
+ props: ({
36
+ ownerState: e
37
+ }) => !e.disablePadding,
38
+ style: {
39
+ paddingTop: 8,
40
+ paddingBottom: 8
41
+ }
42
+ }, {
43
+ props: ({
44
+ ownerState: e
45
+ }) => e.subheader,
46
+ style: {
47
+ paddingTop: 0
48
+ }
49
+ }]
50
+ }), O = /* @__PURE__ */ i.forwardRef(function(o, t) {
51
+ const a = C({
52
+ props: o,
53
+ name: "MuiList"
54
+ }), {
55
+ children: n,
56
+ className: d,
57
+ component: l = "ul",
58
+ dense: r = !1,
59
+ disablePadding: u = !1,
60
+ subheader: m,
61
+ ...b
62
+ } = a, f = i.useMemo(() => ({
63
+ dense: r
64
+ }), [r]), c = {
65
+ ...a,
66
+ component: l,
67
+ dense: r,
68
+ disablePadding: u
69
+ }, g = j(c);
70
+ return /* @__PURE__ */ v(p.Provider, {
71
+ value: f,
72
+ children: /* @__PURE__ */ x(M, {
73
+ as: l,
74
+ className: L(g.root, d),
75
+ ref: t,
76
+ ownerState: c,
77
+ ...b,
78
+ children: [m, n]
79
+ })
80
+ });
81
+ });
82
+ process.env.NODE_ENV !== "production" && (O.propTypes = {
83
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
84
+ // │ These PropTypes are generated from the TypeScript type definitions. │
85
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
86
+ // └─────────────────────────────────────────────────────────────────────┘
87
+ /**
88
+ * The content of the component.
89
+ */
90
+ children: s.node,
91
+ /**
92
+ * Override or extend the styles applied to the component.
93
+ */
94
+ classes: s.object,
95
+ /**
96
+ * @ignore
97
+ */
98
+ className: s.string,
99
+ /**
100
+ * The component used for the root node.
101
+ * Either a string to use a HTML element or a component.
102
+ */
103
+ component: s.elementType,
104
+ /**
105
+ * If `true`, compact vertical padding designed for keyboard and mouse input is used for
106
+ * the list and list items.
107
+ * The prop is available to descendant components as the `dense` context.
108
+ * @default false
109
+ */
110
+ dense: s.bool,
111
+ /**
112
+ * If `true`, vertical padding is removed from the list.
113
+ * @default false
114
+ */
115
+ disablePadding: s.bool,
116
+ /**
117
+ * The content of the subheader, normally `ListSubheader`.
118
+ */
119
+ subheader: s.node,
120
+ /**
121
+ * The system prop that allows defining system overrides as well as additional CSS styles.
122
+ */
123
+ sx: s.oneOfType([s.arrayOf(s.oneOfType([s.func, s.object, s.bool])), s.func, s.object])
124
+ });
125
+ export {
126
+ O as L,
127
+ p as a,
128
+ T as g,
129
+ S as l
130
+ };
@@ -0,0 +1 @@
1
+ "use strict";const C=require("react"),e=require("./generateUtilityClasses-De8NU9_E.cjs"),y=require("react/jsx-runtime"),d=require("./DefaultPropsProvider-wpBXjN8r.cjs");function L(s){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const o in s)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(s,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:()=>s[o]})}}return t.default=s,Object.freeze(t)}const p=L(C),c=p.createContext({});process.env.NODE_ENV!=="production"&&(c.displayName="ListContext");function P(s){return e.generateUtilityClass("MuiList",s)}const v=e.generateUtilityClasses("MuiList",["root","padding","dense","subheader"]),j=s=>{const{classes:t,disablePadding:o,dense:n,subheader:r}=s,i={root:["root",!o&&"padding",n&&"dense",r&&"subheader"]};return d.composeClasses(i,P,t)},x=d.styled("ul",{name:"MuiList",slot:"Root",overridesResolver:(s,t)=>{const{ownerState:o}=s;return[t.root,!o.disablePadding&&t.padding,o.dense&&t.dense,o.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:s})=>!s.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:s})=>s.subheader,style:{paddingTop:0}}]}),b=p.forwardRef(function(t,o){const n=d.useDefaultProps({props:t,name:"MuiList"}),{children:r,className:i,component:l="ul",dense:a=!1,disablePadding:f=!1,subheader:g,...T}=n,m=p.useMemo(()=>({dense:a}),[a]),u={...n,component:l,dense:a,disablePadding:f},h=j(u);return y.jsx(c.Provider,{value:m,children:y.jsxs(x,{as:l,className:e.clsx(h.root,i),ref:o,ownerState:u,...T,children:[g,r]})})});process.env.NODE_ENV!=="production"&&(b.propTypes={children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:e.PropTypes.elementType,dense:e.PropTypes.bool,disablePadding:e.PropTypes.bool,subheader:e.PropTypes.node,sx:e.PropTypes.oneOfType([e.PropTypes.arrayOf(e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.object,e.PropTypes.bool])),e.PropTypes.func,e.PropTypes.object])});exports.List=b;exports.ListContext=c;exports.getListUtilityClass=P;exports.listClasses=v;
@@ -0,0 +1,423 @@
1
+ import * as r from "react";
2
+ import { G as x, H as L, I as C, P as e } from "./generateUtilityClasses-EXBFO7eY.js";
3
+ import { i as w } from "./isHostComponent-kiaBvYVo.js";
4
+ import { m as q } from "./memoTheme-DJWQ754x.js";
5
+ import { a as h } from "./List-BTPrBGqY.js";
6
+ import { jsx as f, jsxs as O } from "react/jsx-runtime";
7
+ import { u as U, s as A, c as B } from "./DefaultPropsProvider-CQixa6JQ.js";
8
+ import { i as k } from "./isMuiElement-DnSE4qG4.js";
9
+ import { u as J } from "./useForkRef-C_4o__cU.js";
10
+ import { e as K } from "./elementTypeAcceptingRef-B04tk6ag.js";
11
+ import { c as Q } from "./chainPropTypes-D9lkm76m.js";
12
+ function W(o) {
13
+ return L("MuiListItem", o);
14
+ }
15
+ const bt = x("MuiListItem", ["root", "container", "dense", "alignItemsFlexStart", "divider", "gutters", "padding", "secondaryAction"]);
16
+ function ht(o) {
17
+ return L("MuiListItemButton", o);
18
+ }
19
+ const X = x("MuiListItemButton", ["root", "focusVisible", "dense", "alignItemsFlexStart", "disabled", "divider", "gutters", "selected"]);
20
+ function Z(o) {
21
+ return L("MuiListItemSecondaryAction", o);
22
+ }
23
+ x("MuiListItemSecondaryAction", ["root", "disableGutters"]);
24
+ const tt = (o) => {
25
+ const {
26
+ disableGutters: t,
27
+ classes: s
28
+ } = o;
29
+ return B({
30
+ root: ["root", t && "disableGutters"]
31
+ }, Z, s);
32
+ }, et = A("div", {
33
+ name: "MuiListItemSecondaryAction",
34
+ slot: "Root",
35
+ overridesResolver: (o, t) => {
36
+ const {
37
+ ownerState: s
38
+ } = o;
39
+ return [t.root, s.disableGutters && t.disableGutters];
40
+ }
41
+ })({
42
+ position: "absolute",
43
+ right: 16,
44
+ top: "50%",
45
+ transform: "translateY(-50%)",
46
+ variants: [{
47
+ props: ({
48
+ ownerState: o
49
+ }) => o.disableGutters,
50
+ style: {
51
+ right: 0
52
+ }
53
+ }]
54
+ }), S = /* @__PURE__ */ r.forwardRef(function(t, s) {
55
+ const n = U({
56
+ props: t,
57
+ name: "MuiListItemSecondaryAction"
58
+ }), {
59
+ className: i,
60
+ ...l
61
+ } = n, p = r.useContext(h), a = {
62
+ ...n,
63
+ disableGutters: p.disableGutters
64
+ }, g = tt(a);
65
+ return /* @__PURE__ */ f(et, {
66
+ className: C(g.root, i),
67
+ ownerState: a,
68
+ ref: s,
69
+ ...l
70
+ });
71
+ });
72
+ process.env.NODE_ENV !== "production" && (S.propTypes = {
73
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
74
+ // │ These PropTypes are generated from the TypeScript type definitions. │
75
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
76
+ // └─────────────────────────────────────────────────────────────────────┘
77
+ /**
78
+ * The content of the component, normally an `IconButton` or selection control.
79
+ */
80
+ children: e.node,
81
+ /**
82
+ * Override or extend the styles applied to the component.
83
+ */
84
+ classes: e.object,
85
+ /**
86
+ * @ignore
87
+ */
88
+ className: e.string,
89
+ /**
90
+ * The system prop that allows defining system overrides as well as additional CSS styles.
91
+ */
92
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
93
+ });
94
+ S.muiName = "ListItemSecondaryAction";
95
+ const ot = (o, t) => {
96
+ const {
97
+ ownerState: s
98
+ } = o;
99
+ return [t.root, s.dense && t.dense, s.alignItems === "flex-start" && t.alignItemsFlexStart, s.divider && t.divider, !s.disableGutters && t.gutters, !s.disablePadding && t.padding, s.hasSecondaryAction && t.secondaryAction];
100
+ }, st = (o) => {
101
+ const {
102
+ alignItems: t,
103
+ classes: s,
104
+ dense: n,
105
+ disableGutters: i,
106
+ disablePadding: l,
107
+ divider: p,
108
+ hasSecondaryAction: a
109
+ } = o;
110
+ return B({
111
+ root: ["root", n && "dense", !i && "gutters", !l && "padding", p && "divider", t === "flex-start" && "alignItemsFlexStart", a && "secondaryAction"],
112
+ container: ["container"]
113
+ }, W, s);
114
+ }, nt = A("div", {
115
+ name: "MuiListItem",
116
+ slot: "Root",
117
+ overridesResolver: ot
118
+ })(q(({
119
+ theme: o
120
+ }) => ({
121
+ display: "flex",
122
+ justifyContent: "flex-start",
123
+ alignItems: "center",
124
+ position: "relative",
125
+ textDecoration: "none",
126
+ width: "100%",
127
+ boxSizing: "border-box",
128
+ textAlign: "left",
129
+ variants: [{
130
+ props: ({
131
+ ownerState: t
132
+ }) => !t.disablePadding,
133
+ style: {
134
+ paddingTop: 8,
135
+ paddingBottom: 8
136
+ }
137
+ }, {
138
+ props: ({
139
+ ownerState: t
140
+ }) => !t.disablePadding && t.dense,
141
+ style: {
142
+ paddingTop: 4,
143
+ paddingBottom: 4
144
+ }
145
+ }, {
146
+ props: ({
147
+ ownerState: t
148
+ }) => !t.disablePadding && !t.disableGutters,
149
+ style: {
150
+ paddingLeft: 16,
151
+ paddingRight: 16
152
+ }
153
+ }, {
154
+ props: ({
155
+ ownerState: t
156
+ }) => !t.disablePadding && !!t.secondaryAction,
157
+ style: {
158
+ // Add some space to avoid collision as `ListItemSecondaryAction`
159
+ // is absolutely positioned.
160
+ paddingRight: 48
161
+ }
162
+ }, {
163
+ props: ({
164
+ ownerState: t
165
+ }) => !!t.secondaryAction,
166
+ style: {
167
+ [`& > .${X.root}`]: {
168
+ paddingRight: 48
169
+ }
170
+ }
171
+ }, {
172
+ props: {
173
+ alignItems: "flex-start"
174
+ },
175
+ style: {
176
+ alignItems: "flex-start"
177
+ }
178
+ }, {
179
+ props: ({
180
+ ownerState: t
181
+ }) => t.divider,
182
+ style: {
183
+ borderBottom: `1px solid ${(o.vars || o).palette.divider}`,
184
+ backgroundClip: "padding-box"
185
+ }
186
+ }, {
187
+ props: ({
188
+ ownerState: t
189
+ }) => t.button,
190
+ style: {
191
+ transition: o.transitions.create("background-color", {
192
+ duration: o.transitions.duration.shortest
193
+ }),
194
+ "&:hover": {
195
+ textDecoration: "none",
196
+ backgroundColor: (o.vars || o).palette.action.hover,
197
+ // Reset on touch devices, it doesn't add specificity
198
+ "@media (hover: none)": {
199
+ backgroundColor: "transparent"
200
+ }
201
+ }
202
+ }
203
+ }, {
204
+ props: ({
205
+ ownerState: t
206
+ }) => t.hasSecondaryAction,
207
+ style: {
208
+ // Add some space to avoid collision as `ListItemSecondaryAction`
209
+ // is absolutely positioned.
210
+ paddingRight: 48
211
+ }
212
+ }]
213
+ }))), it = A("li", {
214
+ name: "MuiListItem",
215
+ slot: "Container",
216
+ overridesResolver: (o, t) => t.container
217
+ })({
218
+ position: "relative"
219
+ }), rt = /* @__PURE__ */ r.forwardRef(function(t, s) {
220
+ const n = U({
221
+ props: t,
222
+ name: "MuiListItem"
223
+ }), {
224
+ alignItems: i = "center",
225
+ children: l,
226
+ className: p,
227
+ component: a,
228
+ components: g = {},
229
+ componentsProps: E = {},
230
+ ContainerComponent: P = "li",
231
+ ContainerProps: {
232
+ className: F,
233
+ ...D
234
+ } = {},
235
+ dense: R = !1,
236
+ disableGutters: I = !1,
237
+ disablePadding: V = !1,
238
+ divider: $ = !1,
239
+ secondaryAction: N,
240
+ slotProps: H = {},
241
+ slots: Y = {},
242
+ ..._
243
+ } = n, T = r.useContext(h), v = r.useMemo(() => ({
244
+ dense: R || T.dense || !1,
245
+ alignItems: i,
246
+ disableGutters: I
247
+ }), [i, T.dense, R, I]), z = r.useRef(null), c = r.Children.toArray(l), G = c.length && k(c[c.length - 1], ["ListItemSecondaryAction"]), y = {
248
+ ...n,
249
+ alignItems: i,
250
+ dense: v.dense,
251
+ disableGutters: I,
252
+ disablePadding: V,
253
+ divider: $,
254
+ hasSecondaryAction: G
255
+ }, M = st(y), j = J(z, s), b = Y.root || g.Root || nt, m = H.root || E.root || {}, u = {
256
+ className: C(M.root, m.className, p),
257
+ ..._
258
+ };
259
+ let d = a || "li";
260
+ return G ? (d = !u.component && !a ? "div" : d, P === "li" && (d === "li" ? d = "div" : u.component === "li" && (u.component = "div")), /* @__PURE__ */ f(h.Provider, {
261
+ value: v,
262
+ children: /* @__PURE__ */ O(it, {
263
+ as: P,
264
+ className: C(M.container, F),
265
+ ref: j,
266
+ ownerState: y,
267
+ ...D,
268
+ children: [/* @__PURE__ */ f(b, {
269
+ ...m,
270
+ ...!w(b) && {
271
+ as: d,
272
+ ownerState: {
273
+ ...y,
274
+ ...m.ownerState
275
+ }
276
+ },
277
+ ...u,
278
+ children: c
279
+ }), c.pop()]
280
+ })
281
+ })) : /* @__PURE__ */ f(h.Provider, {
282
+ value: v,
283
+ children: /* @__PURE__ */ O(b, {
284
+ ...m,
285
+ as: d,
286
+ ref: j,
287
+ ...!w(b) && {
288
+ ownerState: {
289
+ ...y,
290
+ ...m.ownerState
291
+ }
292
+ },
293
+ ...u,
294
+ children: [c, N && /* @__PURE__ */ f(S, {
295
+ children: N
296
+ })]
297
+ })
298
+ });
299
+ });
300
+ process.env.NODE_ENV !== "production" && (rt.propTypes = {
301
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
302
+ // │ These PropTypes are generated from the TypeScript type definitions. │
303
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
304
+ // └─────────────────────────────────────────────────────────────────────┘
305
+ /**
306
+ * Defines the `align-items` style property.
307
+ * @default 'center'
308
+ */
309
+ alignItems: e.oneOf(["center", "flex-start"]),
310
+ /**
311
+ * The content of the component if a `ListItemSecondaryAction` is used it must
312
+ * be the last child.
313
+ */
314
+ children: Q(e.node, (o) => {
315
+ const t = r.Children.toArray(o.children);
316
+ let s = -1;
317
+ for (let n = t.length - 1; n >= 0; n -= 1) {
318
+ const i = t[n];
319
+ if (k(i, ["ListItemSecondaryAction"])) {
320
+ s = n;
321
+ break;
322
+ }
323
+ }
324
+ return s !== -1 && s !== t.length - 1 ? new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem.") : null;
325
+ }),
326
+ /**
327
+ * Override or extend the styles applied to the component.
328
+ */
329
+ classes: e.object,
330
+ /**
331
+ * @ignore
332
+ */
333
+ className: e.string,
334
+ /**
335
+ * The component used for the root node.
336
+ * Either a string to use a HTML element or a component.
337
+ */
338
+ component: e.elementType,
339
+ /**
340
+ * The components used for each slot inside.
341
+ *
342
+ * @deprecated Use the `slots` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
343
+ * @default {}
344
+ */
345
+ components: e.shape({
346
+ Root: e.elementType
347
+ }),
348
+ /**
349
+ * The extra props for the slot components.
350
+ * You can override the existing props or add new ones.
351
+ *
352
+ * @deprecated Use the `slotProps` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
353
+ * @default {}
354
+ */
355
+ componentsProps: e.shape({
356
+ root: e.object
357
+ }),
358
+ /**
359
+ * The container component used when a `ListItemSecondaryAction` is the last child.
360
+ * @default 'li'
361
+ * @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
362
+ */
363
+ ContainerComponent: K,
364
+ /**
365
+ * Props applied to the container component if used.
366
+ * @default {}
367
+ * @deprecated Use the `slotProps.root` prop instead. This prop will be removed in v7. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
368
+ */
369
+ ContainerProps: e.object,
370
+ /**
371
+ * If `true`, compact vertical padding designed for keyboard and mouse input is used.
372
+ * The prop defaults to the value inherited from the parent List component.
373
+ * @default false
374
+ */
375
+ dense: e.bool,
376
+ /**
377
+ * If `true`, the left and right padding is removed.
378
+ * @default false
379
+ */
380
+ disableGutters: e.bool,
381
+ /**
382
+ * If `true`, all padding is removed.
383
+ * @default false
384
+ */
385
+ disablePadding: e.bool,
386
+ /**
387
+ * If `true`, a 1px light border is added to the bottom of the list item.
388
+ * @default false
389
+ */
390
+ divider: e.bool,
391
+ /**
392
+ * The element to display at the end of ListItem.
393
+ */
394
+ secondaryAction: e.node,
395
+ /**
396
+ * The extra props for the slot components.
397
+ * You can override the existing props or add new ones.
398
+ *
399
+ * @default {}
400
+ */
401
+ slotProps: e.shape({
402
+ root: e.object
403
+ }),
404
+ /**
405
+ * The components used for each slot inside.
406
+ *
407
+ * @default {}
408
+ */
409
+ slots: e.shape({
410
+ root: e.elementType
411
+ }),
412
+ /**
413
+ * The system prop that allows defining system overrides as well as additional CSS styles.
414
+ */
415
+ sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
416
+ });
417
+ export {
418
+ rt as L,
419
+ X as a,
420
+ ht as b,
421
+ W as g,
422
+ bt as l
423
+ };
@@ -0,0 +1 @@
1
+ "use strict";const V=require("react"),t=require("./generateUtilityClasses-De8NU9_E.cjs"),M=require("./isHostComponent-PydJW4A4.cjs"),$=require("./memoTheme-DrjvJtTP.cjs"),T=require("./List-Bo4pzQqG.cjs"),c=require("react/jsx-runtime"),l=require("./DefaultPropsProvider-wpBXjN8r.cjs"),N=require("./isMuiElement-BzDAj3yJ.cjs"),z=require("./useForkRef-CTI33h-3.cjs"),Y=require("./elementTypeAcceptingRef-BjgxF5Bq.cjs"),J=require("./chainPropTypes-CEUi6Jb4.cjs");function K(s){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(s){for(const o in s)if(o!=="default"){const n=Object.getOwnPropertyDescriptor(s,o);Object.defineProperty(e,o,n.get?n:{enumerable:!0,get:()=>s[o]})}}return e.default=s,Object.freeze(e)}const i=K(V);function U(s){return t.generateUtilityClass("MuiListItem",s)}const Q=t.generateUtilityClasses("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function W(s){return t.generateUtilityClass("MuiListItemButton",s)}const O=t.generateUtilityClasses("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function X(s){return t.generateUtilityClass("MuiListItemSecondaryAction",s)}t.generateUtilityClasses("MuiListItemSecondaryAction",["root","disableGutters"]);const Z=s=>{const{disableGutters:e,classes:o}=s,n={root:["root",e&&"disableGutters"]};return l.composeClasses(n,X,o)},ee=l.styled("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(s,e)=>{const{ownerState:o}=s;return[e.root,o.disableGutters&&e.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:s})=>s.disableGutters,style:{right:0}}]}),h=i.forwardRef(function(e,o){const n=l.useDefaultProps({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...u}=n,y=i.useContext(T.ListContext),a={...n,disableGutters:y.disableGutters},m=Z(a);return c.jsx(ee,{className:t.clsx(m.root,r),ownerState:a,ref:o,...u})});process.env.NODE_ENV!=="production"&&(h.propTypes={children:t.PropTypes.node,classes:t.PropTypes.object,className:t.PropTypes.string,sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object])});h.muiName="ListItemSecondaryAction";const te=(s,e)=>{const{ownerState:o}=s;return[e.root,o.dense&&e.dense,o.alignItems==="flex-start"&&e.alignItemsFlexStart,o.divider&&e.divider,!o.disableGutters&&e.gutters,!o.disablePadding&&e.padding,o.hasSecondaryAction&&e.secondaryAction]},se=s=>{const{alignItems:e,classes:o,dense:n,disableGutters:r,disablePadding:u,divider:y,hasSecondaryAction:a}=s,m={root:["root",n&&"dense",!r&&"gutters",!u&&"padding",y&&"divider",e==="flex-start"&&"alignItemsFlexStart",a&&"secondaryAction"],container:["container"]};return l.composeClasses(m,U,o)},oe=l.styled("div",{name:"MuiListItem",slot:"Root",overridesResolver:te})($.memoTheme(({theme:s})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${O.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(s.vars||s).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:s.transitions.create("background-color",{duration:s.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(s.vars||s).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),ne=l.styled("li",{name:"MuiListItem",slot:"Container",overridesResolver:(s,e)=>e.container})({position:"relative"}),G=i.forwardRef(function(e,o){const n=l.useDefaultProps({props:e,name:"MuiListItem"}),{alignItems:r="center",children:u,className:y,component:a,components:m={},componentsProps:w={},ContainerComponent:x="li",ContainerProps:{className:q,...B}={},dense:v=!1,disableGutters:C=!1,disablePadding:D=!1,divider:k=!1,secondaryAction:L,slotProps:E={},slots:F={},..._}=n,S=i.useContext(T.ListContext),I=i.useMemo(()=>({dense:v||S.dense||!1,alignItems:r,disableGutters:C}),[r,S.dense,v,C]),H=i.useRef(null),p=i.Children.toArray(u),A=p.length&&N.isMuiElement(p[p.length-1],["ListItemSecondaryAction"]),P={...n,alignItems:r,dense:I.dense,disableGutters:C,disablePadding:D,divider:k,hasSecondaryAction:A},R=se(P),j=z.useForkRef(H,o),b=F.root||m.Root||oe,g=E.root||w.root||{},f={className:t.clsx(R.root,g.className,y),..._};let d=a||"li";return A?(d=!f.component&&!a?"div":d,x==="li"&&(d==="li"?d="div":f.component==="li"&&(f.component="div")),c.jsx(T.ListContext.Provider,{value:I,children:c.jsxs(ne,{as:x,className:t.clsx(R.container,q),ref:j,ownerState:P,...B,children:[c.jsx(b,{...g,...!M.isHostComponent(b)&&{as:d,ownerState:{...P,...g.ownerState}},...f,children:p}),p.pop()]})})):c.jsx(T.ListContext.Provider,{value:I,children:c.jsxs(b,{...g,as:d,ref:j,...!M.isHostComponent(b)&&{ownerState:{...P,...g.ownerState}},...f,children:[p,L&&c.jsx(h,{children:L})]})})});process.env.NODE_ENV!=="production"&&(G.propTypes={alignItems:t.PropTypes.oneOf(["center","flex-start"]),children:J.chainPropTypes(t.PropTypes.node,s=>{const e=i.Children.toArray(s.children);let o=-1;for(let n=e.length-1;n>=0;n-=1){const r=e[n];if(N.isMuiElement(r,["ListItemSecondaryAction"])){o=n;break}}return o!==-1&&o!==e.length-1?new Error("MUI: You used an element after ListItemSecondaryAction. For ListItem to detect that it has a secondary action you must pass it as the last child to ListItem."):null}),classes:t.PropTypes.object,className:t.PropTypes.string,component:t.PropTypes.elementType,components:t.PropTypes.shape({Root:t.PropTypes.elementType}),componentsProps:t.PropTypes.shape({root:t.PropTypes.object}),ContainerComponent:Y.elementTypeAcceptingRef,ContainerProps:t.PropTypes.object,dense:t.PropTypes.bool,disableGutters:t.PropTypes.bool,disablePadding:t.PropTypes.bool,divider:t.PropTypes.bool,secondaryAction:t.PropTypes.node,slotProps:t.PropTypes.shape({root:t.PropTypes.object}),slots:t.PropTypes.shape({root:t.PropTypes.elementType}),sx:t.PropTypes.oneOfType([t.PropTypes.arrayOf(t.PropTypes.oneOfType([t.PropTypes.func,t.PropTypes.object,t.PropTypes.bool])),t.PropTypes.func,t.PropTypes.object])});exports.ListItem=G;exports.getListItemButtonUtilityClass=W;exports.getListItemUtilityClass=U;exports.listItemButtonClasses=O;exports.listItemClasses=Q;