@cgi-learning-hub/ui 1.3.3-dev.1732705996 → 1.3.3-dev.1732717953

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 (180) hide show
  1. package/dist/{Backdrop-DcJf9G30.js → Backdrop-BSuIaDsk.js} +5 -5
  2. package/dist/{Backdrop-cE8nccLi.cjs → Backdrop-BUEwtcOd.cjs} +1 -1
  3. package/dist/{Box-Y_dUbq3W.cjs → Box-BvARXG6G.cjs} +1 -1
  4. package/dist/{Box-D9cHa8GX.js → Box-CVx14c-K.js} +3 -3
  5. package/dist/{Button-TBA8S65S.cjs → Button-DiJMVIKA.cjs} +1 -1
  6. package/dist/{Button-Cx05eP88.js → Button-xSM9V58f.js} +4 -4
  7. package/dist/{ButtonBase-z74SMnd9.js → ButtonBase-BtobLldH.js} +5 -5
  8. package/dist/{ButtonBase-DKxpvXo7.cjs → ButtonBase-D_cXboQo.cjs} +1 -1
  9. package/dist/{Card-DBGYwd3H.cjs → Card-1pHV30dw.cjs} +1 -1
  10. package/dist/{Card-mAtxoJ0p.js → Card-Dn7s44Fi.js} +3 -3
  11. package/dist/{Checkbox-Bmz9nh6k.js → Checkbox-DLgQLhbi.js} +6 -6
  12. package/dist/{Checkbox-OTMaikud.cjs → Checkbox-Dy4M-IzA.cjs} +1 -1
  13. package/dist/{CircularProgress-DjNvPtUm.cjs → CircularProgress-CLqjkGj2.cjs} +1 -1
  14. package/dist/{CircularProgress-B5osG37N.js → CircularProgress-Cgy38XxI.js} +3 -3
  15. package/dist/{DatePicker-MSoGmJoG.cjs → DatePicker-B2X6bsu_.cjs} +1 -1
  16. package/dist/{DatePicker-Ds7y4pei.js → DatePicker-CkDd1Ei6.js} +30 -30
  17. package/dist/{DefaultPropsProvider-BYFwNPLt.js → DefaultPropsProvider-CNauTavr.js} +1 -1
  18. package/dist/{DefaultPropsProvider-eVMpAUQg.cjs → DefaultPropsProvider-CYXbUgly.cjs} +1 -1
  19. package/dist/{Delete-Dip-1l7n.js → Delete-Box1LXsD.js} +1 -1
  20. package/dist/{Delete-Bb_PhA6v.cjs → Delete-CXp2ebVd.cjs} +1 -1
  21. package/dist/{DialogContent-C0L4r0-p.cjs → DialogContent-DQzo8ZE4.cjs} +1 -1
  22. package/dist/{DialogContent-B_NH_if8.js → DialogContent-GWPkHG99.js} +7 -7
  23. package/dist/{DialogTitle-DemSKN6H.cjs → DialogTitle-CDxMcX7q.cjs} +1 -1
  24. package/dist/{DialogTitle-Bx7712Li.js → DialogTitle-CbZEE5Nw.js} +4 -4
  25. package/dist/{Divider-DlN3YfOR.cjs → Divider-CU03_ydq.cjs} +1 -1
  26. package/dist/{Divider-CMuvurmv.js → Divider-CcEBfDwn.js} +4 -4
  27. package/dist/{FormControlLabel-D8GTkxJD.cjs → FormControlLabel-BRe4vfRM.cjs} +1 -1
  28. package/dist/{FormControlLabel-BDXTL5Eo.js → FormControlLabel-DmAZ_iUK.js} +6 -6
  29. package/dist/{FormGroup-DO8m1X6w.js → FormGroup-CAhJZ5Ju.js} +2 -2
  30. package/dist/{FormGroup-CFDapyxc.cjs → FormGroup-dgo2gVaM.cjs} +1 -1
  31. package/dist/{FormLabel-DcUS1c1d.cjs → FormLabel-C-_3pX_1.cjs} +1 -1
  32. package/dist/{FormLabel-B11aqT37.js → FormLabel-CZwX5vcF.js} +3 -3
  33. package/dist/{Grow-C_nN9VuE.cjs → Grow-B7Dfgk3l.cjs} +1 -1
  34. package/dist/{Grow-BKrOFfC1.js → Grow-CxD8gGA4.js} +4 -4
  35. package/dist/{IconButton-5LMERRPL.cjs → IconButton-COOf9IHm.cjs} +1 -1
  36. package/dist/{IconButton-DLcGpM1F.js → IconButton-CUZhSa6k.js} +4 -4
  37. package/dist/{InputAdornment-DgT008NI.cjs → InputAdornment-C78QPG-l.cjs} +1 -1
  38. package/dist/{InputAdornment-BrvfHlzv.js → InputAdornment-CEphHNUR.js} +4 -4
  39. package/dist/{InputBase-CHytwRH8.js → InputBase-BER0AKzf.js} +6 -6
  40. package/dist/{InputBase-qhWgXXNd.cjs → InputBase-Bc6hWg6r.cjs} +1 -1
  41. package/dist/{Link-D_0FIsgB.js → Link-C4OkVQ2e.js} +6 -6
  42. package/dist/{Link-6UH3Aljp.cjs → Link-XZHjZUP4.cjs} +1 -1
  43. package/dist/{Menu-ysG9uY3e.js → Menu-BClPlLYB.js} +10 -10
  44. package/dist/{Menu-0Hr9Yx9l.cjs → Menu-BegYMc1h.cjs} +1 -1
  45. package/dist/{MenuItem-BP7OsPVc.cjs → MenuItem-Bcf18SMR.cjs} +1 -1
  46. package/dist/{MenuItem-DYrKaYOk.js → MenuItem-DueTh_Gl.js} +7 -7
  47. package/dist/{Modal-DT240BJZ.js → Modal-C8nyxFyr.js} +9 -9
  48. package/dist/{Modal-BLMnkdGb.cjs → Modal-O_OepXtT.cjs} +1 -1
  49. package/dist/{Paper-vlsh8Nca.js → Paper-B4gtbx7f.js} +4 -4
  50. package/dist/{Paper-n4KgM09K.cjs → Paper-DLOsvAcz.cjs} +1 -1
  51. package/dist/{Popper-DzQZEFYT.cjs → Popper-2cjbavEE.cjs} +1 -1
  52. package/dist/{Popper-BSaTZXvX.js → Popper-FUj2rW1Y.js} +5 -5
  53. package/dist/{Portal-C4QgaMKl.cjs → Portal-BVFbTe6U.cjs} +1 -1
  54. package/dist/{Portal-meM40OhI.js → Portal-C1LuGWxE.js} +3 -3
  55. package/dist/{Radio-D-wbZ6M-.cjs → Radio-Czy8v3oe.cjs} +1 -1
  56. package/dist/{Radio-CW4v1BS4.js → Radio-DN9OAJpN.js} +6 -6
  57. package/dist/{Select-DAHsfas2.cjs → Select-8fZnAPUt.cjs} +1 -1
  58. package/dist/{Select-CKsf044t.js → Select-BLSgLuO7.js} +9 -9
  59. package/dist/{Stack-elRjtOGk.cjs → Stack-B5DuAfnN.cjs} +1 -1
  60. package/dist/{Stack-DbWQHN5i.js → Stack-CFTtMTJf.js} +4 -4
  61. package/dist/{SwitchBase-DBnju71w.js → SwitchBase-B7gcs8QS.js} +4 -4
  62. package/dist/{SwitchBase-DWfUIgEW.cjs → SwitchBase-cRh_HjHT.cjs} +1 -1
  63. package/dist/{TableSortLabel-ByZJO-zF.js → TableSortLabel-5tAbCuhW.js} +1460 -1452
  64. package/dist/TableSortLabel-DlgRz10L.cjs +98 -0
  65. package/dist/{Tabs-CUpcnsPl.cjs → Tabs-B0FHRpc8.cjs} +1 -1
  66. package/dist/{Tabs-BqJSX1la.js → Tabs-LTYyrysg.js} +10 -10
  67. package/dist/{TextField-DVUnQAd7.js → TextField-BKXHkdMb.js} +7 -7
  68. package/dist/{TextField-C23FnJYk.cjs → TextField-DFTFrPdm.cjs} +1 -1
  69. package/dist/{Tooltip-CPAH20AZ.cjs → Tooltip-CUOKECcl.cjs} +1 -1
  70. package/dist/{Tooltip-41rGxwva.js → Tooltip-CWoB7Jl-.js} +10 -10
  71. package/dist/{Typography-DyMSnhvs.cjs → Typography-BJO4ssax.cjs} +1 -1
  72. package/dist/{Typography-CizHc1nM.js → Typography-DvQqNI3q.js} +4 -4
  73. package/dist/components/Button/Button.cjs.js +1 -1
  74. package/dist/components/Button/Button.es.js +5 -5
  75. package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
  76. package/dist/components/DatePicker/DatePicker.es.js +2 -2
  77. package/dist/components/DatePicker/index.cjs.js +1 -1
  78. package/dist/components/DatePicker/index.es.js +1 -1
  79. package/dist/components/Dropzone/Dropzone.cjs.js +1 -1
  80. package/dist/components/Dropzone/Dropzone.es.js +4 -4
  81. package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
  82. package/dist/components/EmptyState/EmptyState.es.js +2 -2
  83. package/dist/components/FileList/FileList.cjs.js +1 -1
  84. package/dist/components/FileList/FileList.es.js +1 -1
  85. package/dist/components/FileList/FileListItem.cjs.js +1 -1
  86. package/dist/components/FileList/FileListItem.es.js +7 -7
  87. package/dist/components/Heading/Heading.cjs.js +1 -1
  88. package/dist/components/Heading/Heading.es.js +2 -2
  89. package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -1
  90. package/dist/components/ImagePicker/ImagePicker.es.js +5 -5
  91. package/dist/components/Loader/Loader.cjs.js +1 -1
  92. package/dist/components/Loader/Loader.es.js +1 -1
  93. package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
  94. package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +2 -2
  95. package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
  96. package/dist/components/PasswordInput/PasswordInput.es.js +4 -4
  97. package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
  98. package/dist/components/SearchInput/SearchInput.es.js +4 -4
  99. package/dist/components/TextInput/TextInput.cjs.js +1 -1
  100. package/dist/components/TextInput/TextInput.es.js +1 -1
  101. package/dist/components/index.cjs.js +1 -1
  102. package/dist/components/index.es.js +29 -29
  103. package/dist/components/stories/Button.stories.cjs.js +1 -1
  104. package/dist/components/stories/Button.stories.es.js +1 -1
  105. package/dist/components/stories/Card.stories.cjs.js +1 -1
  106. package/dist/components/stories/Card.stories.es.js +4 -4
  107. package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
  108. package/dist/components/stories/Checkbox.stories.es.js +1 -1
  109. package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
  110. package/dist/components/stories/DatePicker.stories.es.js +1 -1
  111. package/dist/components/stories/Dialog.stories.cjs.js +1 -1
  112. package/dist/components/stories/Dialog.stories.es.js +2 -2
  113. package/dist/components/stories/Divider.stories.cjs.js +1 -1
  114. package/dist/components/stories/Divider.stories.es.js +1 -1
  115. package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -1
  116. package/dist/components/stories/FormControlLabel.stories.es.js +8 -8
  117. package/dist/components/stories/Heading.stories.cjs.js +1 -1
  118. package/dist/components/stories/Heading.stories.es.js +2 -2
  119. package/dist/components/stories/IconButton.stories.cjs.js +1 -1
  120. package/dist/components/stories/IconButton.stories.es.js +2 -2
  121. package/dist/components/stories/Link.stories.cjs.js +1 -1
  122. package/dist/components/stories/Link.stories.es.js +1 -1
  123. package/dist/components/stories/Menu.stories.cjs.js +1 -1
  124. package/dist/components/stories/Menu.stories.es.js +2 -2
  125. package/dist/components/stories/Paper.stories.cjs.js +1 -1
  126. package/dist/components/stories/Paper.stories.es.js +1 -1
  127. package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
  128. package/dist/components/stories/RadioGroup.stories.es.js +6 -6
  129. package/dist/components/stories/Select.stories.cjs.js +1 -1
  130. package/dist/components/stories/Select.stories.es.js +3 -3
  131. package/dist/components/stories/TabList.stories.cjs.js +1 -1
  132. package/dist/components/stories/TabList.stories.es.js +4 -4
  133. package/dist/components/stories/TextField.stories.cjs.js +1 -1
  134. package/dist/components/stories/TextField.stories.es.js +1 -1
  135. package/dist/components/stories/Tooltip.stories.cjs.js +1 -1
  136. package/dist/components/stories/Tooltip.stories.es.js +2 -2
  137. package/dist/components/stories/Typography.stories.cjs.js +1 -1
  138. package/dist/components/stories/Typography.stories.es.js +1 -1
  139. package/dist/{createSvgIcon-DQqazotA.cjs → createSvgIcon-CWqfguje.cjs} +1 -1
  140. package/dist/{createSvgIcon-BS0Qe85N.js → createSvgIcon-Dva1lw_G.js} +3 -3
  141. package/dist/{dividerClasses-O0vIU6On.cjs → dividerClasses-C-5H3Xd9.cjs} +1 -1
  142. package/dist/{dividerClasses-Bp7otbbC.js → dividerClasses-DFZ2yhIr.js} +1 -1
  143. package/dist/{elementTypeAcceptingRef-DiSL8-Ea.cjs → elementTypeAcceptingRef-9SjLD9kJ.cjs} +1 -1
  144. package/dist/{elementTypeAcceptingRef-DOFWAguJ.js → elementTypeAcceptingRef-Dz6KaUIO.js} +1 -1
  145. package/dist/{extendSxProp-BZ8P8fbI.cjs → extendSxProp-BFujbxHx.cjs} +1 -1
  146. package/dist/{extendSxProp-BpXLpaGL.js → extendSxProp-C7tQAXJa.js} +1 -1
  147. package/dist/{fr-CSCQhSqi.cjs → fr-B7lHJR1l.cjs} +1 -1
  148. package/dist/{fr-Djc-bU-B.js → fr-ifknr_Gj.js} +1 -1
  149. package/dist/{identifier-B7MO0PvI.js → identifier-DO6cYBM1.js} +1 -1
  150. package/dist/{identifier-DTh6b5Gz.cjs → identifier-QNayb8HH.cjs} +1 -1
  151. package/dist/{index-CKZgd5LP.js → index-BAySMZLZ.js} +4 -4
  152. package/dist/{index-B_acx8gh.cjs → index-CQxxtd2n.cjs} +1 -1
  153. package/dist/{index-Dgw0fO9M.cjs → index-CR-iOppW.cjs} +1 -1
  154. package/dist/{index-oINGa1MV.cjs → index-Cff4YJyO.cjs} +1 -1
  155. package/dist/{index-yb8koCDz.js → index-DW6LIkvv.js} +2 -2
  156. package/dist/{index-D9DaxvTW.js → index-M6zjgG9s.js} +1 -1
  157. package/dist/index.cjs.js +1 -1
  158. package/dist/index.es.js +29 -29
  159. package/dist/{memoTheme-CqfvfBST.js → memoTheme-Ccpl4Op-.js} +1 -1
  160. package/dist/{memoTheme-DJBS0nbO.cjs → memoTheme-ot_2_72n.cjs} +1 -1
  161. package/dist/{refType-BqQbA6de.js → refType-C1wlAHJ4.js} +1 -1
  162. package/dist/{refType-DNB-r0Bp.cjs → refType-Cxl-1erN.cjs} +1 -1
  163. package/dist/{resolveComponentProps-R_l8gy3y.cjs → resolveComponentProps-BmTsoZZ8.cjs} +1 -1
  164. package/dist/{resolveComponentProps-CYk57pLv.js → resolveComponentProps-DLoFDK96.js} +1 -1
  165. package/dist/{useSlot-i7AZwCRV.cjs → useSlot-C5tO59RG.cjs} +1 -1
  166. package/dist/{useSlot-BSVkAc2J.js → useSlot-DYxPRPQz.js} +1 -1
  167. package/dist/{useTheme-CzzAEESs.js → useTheme-C3--ZJOU.js} +3 -3
  168. package/dist/{useTheme-DrsmidxY.js → useTheme-D1z12Bgs.js} +1 -1
  169. package/dist/{useTheme-DfN3sBzg.cjs → useTheme-DHmIQfAD.cjs} +1 -1
  170. package/dist/{useTheme-w4BoR6ol.cjs → useTheme-Dy7MZePg.cjs} +1 -1
  171. package/dist/{useThemeProps-BoO3MMZc.cjs → useThemeProps-CUWhPmEl.cjs} +1 -1
  172. package/dist/{useThemeProps-B9UyPpzT.js → useThemeProps-CncIFepl.js} +3 -3
  173. package/dist/{useThemeProps-CkGODfms.cjs → useThemeProps-DMPhQCsM.cjs} +1 -1
  174. package/dist/{useThemeProps-BFeVem33.js → useThemeProps-Df6sQGNs.js} +2 -2
  175. package/dist/{useTimeout-Znm_nF2D.js → useTimeout-CZbj_p0X.js} +1 -1
  176. package/dist/{useTimeout-DnTtyB2y.cjs → useTimeout-k6ayE1FR.cjs} +1 -1
  177. package/dist/{utils-D2bhwE7x.cjs → utils-CNMzEhu9.cjs} +1 -1
  178. package/dist/{utils-jA5a7WHN.js → utils-D1NFkGrL.js} +1 -1
  179. package/package.json +1 -1
  180. package/dist/TableSortLabel-C0MAdw-j.cjs +0 -98
@@ -1,11 +1,11 @@
1
1
  import * as D from "react";
2
- import { H as G, I as H, G as V, P as e, L as _ } from "./identifier-B7MO0PvI.js";
3
- import { s as C, r as $, c as A } from "./DefaultPropsProvider-BYFwNPLt.js";
2
+ import { H as G, I as H, G as V, P as e, L as _ } from "./identifier-DO6cYBM1.js";
3
+ import { s as C, r as $, c as A } from "./DefaultPropsProvider-CNauTavr.js";
4
4
  import { u as J } from "./useFormControl-CatNKXAi.js";
5
5
  import { jsxs as K, jsx as M } from "react/jsx-runtime";
6
- import { B as Q } from "./ButtonBase-z74SMnd9.js";
6
+ import { B as Q } from "./ButtonBase-BtobLldH.js";
7
7
  import { u as W } from "./useControlled-BYdyS7Pn.js";
8
- import { r as X } from "./refType-BqQbA6de.js";
8
+ import { r as X } from "./refType-C1wlAHJ4.js";
9
9
  function Y(s) {
10
10
  return G("PrivateSwitchBase", s);
11
11
  }
@@ -1 +1 @@
1
- "use strict";const M=require("react"),e=require("./identifier-DTh6b5Gz.cjs"),l=require("./DefaultPropsProvider-eVMpAUQg.cjs"),V=require("./useFormControl-haP0iPhl.cjs"),B=require("react/jsx-runtime"),$=require("./ButtonBase-DKxpvXo7.cjs"),A=require("./useControlled-Ysk4KqoX.cjs"),G=require("./refType-DNB-r0Bp.cjs");function H(o){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(s,r,i.get?i:{enumerable:!0,get:()=>o[r]})}}return s.default=o,Object.freeze(s)}const J=H(M);function K(o){return e.generateUtilityClass("PrivateSwitchBase",o)}e.generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Q=o=>{const{classes:s,checked:r,disabled:i,edge:a}=o,p={root:["root",r&&"checked",i&&"disabled",a&&`edge${e.capitalize(a)}`],input:["input"]};return l.composeClasses(p,K,s)},W=l.styled($.ButtonBase)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:o,ownerState:s})=>o==="start"&&s.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:o,ownerState:s})=>o==="end"&&s.size!=="small",style:{marginRight:-12}}]}),X=l.styled("input",{shouldForwardProp:l.rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),C=J.forwardRef(function(s,r){const{autoFocus:i,checked:a,checkedIcon:p,className:w,defaultChecked:f,disabled:F,disableFocusRipple:y=!1,edge:R=!1,icon:S,id:q,inputProps:x,inputRef:O,name:j,onBlur:h,onChange:b,onFocus:P,readOnly:I,required:v=!1,tabIndex:z,type:d,value:g,...N}=s,[m,D]=A.useControlled({controlled:a,default:!!f,name:"SwitchBase",state:"checked"}),n=V.useFormControl(),E=t=>{P&&P(t),n&&n.onFocus&&n.onFocus(t)},U=t=>{h&&h(t),n&&n.onBlur&&n.onBlur(t)},_=t=>{if(t.nativeEvent.defaultPrevented)return;const k=t.target.checked;D(k),b&&b(t,k)};let c=F;n&&typeof c>"u"&&(c=n.disabled);const L=d==="checkbox"||d==="radio",u={...s,checked:m,disabled:c,disableFocusRipple:y,edge:R},T=Q(u);return B.jsxs(W,{component:"span",className:e.clsx(T.root,w),centerRipple:!0,focusRipple:!y,disabled:c,tabIndex:null,role:void 0,onFocus:E,onBlur:U,ownerState:u,ref:r,...N,children:[B.jsx(X,{autoFocus:i,checked:a,defaultChecked:f,className:T.input,disabled:c,id:L?q:void 0,name:j,onChange:_,readOnly:I,ref:O,required:v,ownerState:u,tabIndex:z,type:d,...d==="checkbox"&&g===void 0?{}:{value:g},...x}),m?p:S]})});process.env.NODE_ENV!=="production"&&(C.propTypes={autoFocus:e.PropTypes.bool,checked:e.PropTypes.bool,checkedIcon:e.PropTypes.node.isRequired,classes:e.PropTypes.object,className:e.PropTypes.string,defaultChecked:e.PropTypes.bool,disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,edge:e.PropTypes.oneOf(["end","start",!1]),icon:e.PropTypes.node.isRequired,id:e.PropTypes.string,inputProps:e.PropTypes.object,inputRef:G.refType,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onFocus:e.PropTypes.func,readOnly:e.PropTypes.bool,required:e.PropTypes.bool,sx:e.PropTypes.object,tabIndex:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),type:e.PropTypes.string.isRequired,value:e.PropTypes.any});exports.SwitchBase=C;
1
+ "use strict";const M=require("react"),e=require("./identifier-QNayb8HH.cjs"),l=require("./DefaultPropsProvider-CYXbUgly.cjs"),V=require("./useFormControl-haP0iPhl.cjs"),B=require("react/jsx-runtime"),$=require("./ButtonBase-D_cXboQo.cjs"),A=require("./useControlled-Ysk4KqoX.cjs"),G=require("./refType-Cxl-1erN.cjs");function H(o){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const r in o)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(o,r);Object.defineProperty(s,r,i.get?i:{enumerable:!0,get:()=>o[r]})}}return s.default=o,Object.freeze(s)}const J=H(M);function K(o){return e.generateUtilityClass("PrivateSwitchBase",o)}e.generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Q=o=>{const{classes:s,checked:r,disabled:i,edge:a}=o,p={root:["root",r&&"checked",i&&"disabled",a&&`edge${e.capitalize(a)}`],input:["input"]};return l.composeClasses(p,K,s)},W=l.styled($.ButtonBase)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:o,ownerState:s})=>o==="start"&&s.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:o,ownerState:s})=>o==="end"&&s.size!=="small",style:{marginRight:-12}}]}),X=l.styled("input",{shouldForwardProp:l.rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),C=J.forwardRef(function(s,r){const{autoFocus:i,checked:a,checkedIcon:p,className:w,defaultChecked:f,disabled:F,disableFocusRipple:y=!1,edge:R=!1,icon:S,id:q,inputProps:x,inputRef:O,name:j,onBlur:h,onChange:b,onFocus:P,readOnly:I,required:v=!1,tabIndex:z,type:d,value:g,...N}=s,[m,D]=A.useControlled({controlled:a,default:!!f,name:"SwitchBase",state:"checked"}),n=V.useFormControl(),E=t=>{P&&P(t),n&&n.onFocus&&n.onFocus(t)},U=t=>{h&&h(t),n&&n.onBlur&&n.onBlur(t)},_=t=>{if(t.nativeEvent.defaultPrevented)return;const k=t.target.checked;D(k),b&&b(t,k)};let c=F;n&&typeof c>"u"&&(c=n.disabled);const L=d==="checkbox"||d==="radio",u={...s,checked:m,disabled:c,disableFocusRipple:y,edge:R},T=Q(u);return B.jsxs(W,{component:"span",className:e.clsx(T.root,w),centerRipple:!0,focusRipple:!y,disabled:c,tabIndex:null,role:void 0,onFocus:E,onBlur:U,ownerState:u,ref:r,...N,children:[B.jsx(X,{autoFocus:i,checked:a,defaultChecked:f,className:T.input,disabled:c,id:L?q:void 0,name:j,onChange:_,readOnly:I,ref:O,required:v,ownerState:u,tabIndex:z,type:d,...d==="checkbox"&&g===void 0?{}:{value:g},...x}),m?p:S]})});process.env.NODE_ENV!=="production"&&(C.propTypes={autoFocus:e.PropTypes.bool,checked:e.PropTypes.bool,checkedIcon:e.PropTypes.node.isRequired,classes:e.PropTypes.object,className:e.PropTypes.string,defaultChecked:e.PropTypes.bool,disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,edge:e.PropTypes.oneOf(["end","start",!1]),icon:e.PropTypes.node.isRequired,id:e.PropTypes.string,inputProps:e.PropTypes.object,inputRef:G.refType,name:e.PropTypes.string,onBlur:e.PropTypes.func,onChange:e.PropTypes.func,onFocus:e.PropTypes.func,readOnly:e.PropTypes.bool,required:e.PropTypes.bool,sx:e.PropTypes.object,tabIndex:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.string]),type:e.PropTypes.string.isRequired,value:e.PropTypes.any});exports.SwitchBase=C;