@cgi-learning-hub/ui 1.3.3 → 1.3.4
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.
- package/dist/Backdrop-BlKt7y1x.js +360 -0
- package/dist/Backdrop-vSE8W9jq.cjs +1 -0
- package/dist/{Box-UE-zctbJ.js → Box-DErdbtsw.js} +9 -9
- package/dist/{Box-H49yQEt_.cjs → Box-DMYs7NTb.cjs} +1 -1
- package/dist/{Button-Bjy0iPNm.js → Button-CiqVGfRs.js} +14 -14
- package/dist/{Button-qc45QbX6.cjs → Button-D3dbHQM1.cjs} +1 -1
- package/dist/ButtonBase-BoWeLMzR.cjs +74 -0
- package/dist/{ButtonBase-CFD7NVUc.js → ButtonBase-DUPJVOlc.js} +232 -240
- package/dist/Card-Cnh4u4kb.cjs +1 -0
- package/dist/Card-mGRk1RuE.js +74 -0
- package/dist/{Checkbox-Ct5E_6h7.js → Checkbox-aJ1r7ufI.js} +12 -12
- package/dist/{Checkbox-CuYTY0gd.cjs → Checkbox-s_RdgUlw.cjs} +1 -1
- package/dist/{CircularProgress-By02Sdoh.js → CircularProgress-CfODO7vI.js} +17 -17
- package/dist/{CircularProgress-BPHINMQw.cjs → CircularProgress-DHgcUb1c.cjs} +7 -7
- package/dist/DatePicker-Dyf9Vhld.js +10845 -0
- package/dist/DatePicker-juzW4bLC.cjs +14 -0
- package/dist/DefaultPropsProvider-Biv7NHew.cjs +17 -0
- package/dist/{DefaultPropsProvider-CaRoy5OV.js → DefaultPropsProvider-xJkZOrdv.js} +146 -143
- package/dist/Delete-BOQTx9ze.js +8 -0
- package/dist/Delete-DyzDL8-Y.cjs +1 -0
- package/dist/DialogContent-D1KFPXhr.js +602 -0
- package/dist/DialogContent-Dphl2SKX.cjs +1 -0
- package/dist/DialogTitle-AQ-YU9PH.js +134 -0
- package/dist/DialogTitle-C8AdXsDz.cjs +1 -0
- package/dist/Divider-Bdp8beK-.cjs +1 -0
- package/dist/Divider-C0R1SUa4.js +296 -0
- package/dist/FormControlLabel-BlO93LTi.cjs +1 -0
- package/dist/FormControlLabel-w-X91z27.js +261 -0
- package/dist/FormGroup-6NoANcYk.js +95 -0
- package/dist/FormGroup-D0zSGn42.cjs +1 -0
- package/dist/FormLabel-BkiH7wl7.cjs +2 -0
- package/dist/{FormLabel-B4QlkhhB.js → FormLabel-CoLJ9tA8.js} +36 -42
- package/dist/Grow-DfACa72Q.cjs +1 -0
- package/dist/Grow-SW33sONG.js +193 -0
- package/dist/IconButton-DRs0xB4z.cjs +2 -0
- package/dist/{IconButton-Av8eJ5IG.js → IconButton-DjeMTpI5.js} +5 -5
- package/dist/{InputAdornment-BJfpEQAa.cjs → InputAdornment-B1pggfEX.cjs} +1 -1
- package/dist/{InputAdornment-COPtZlSD.js → InputAdornment-ByiVSgFT.js} +4 -4
- package/dist/{InputBase-Bbgoz8GV.js → InputBase-CvU0-Zg6.js} +59 -59
- package/dist/InputBase-Xfjv-RYp.cjs +3 -0
- package/dist/Link-Dmwt9wxb.js +266 -0
- package/dist/Link-Z_UCBvgV.cjs +1 -0
- package/dist/Menu-4U27Dst1.js +965 -0
- package/dist/Menu-DREdNbqu.cjs +7 -0
- package/dist/MenuItem-CN75Du-9.cjs +1 -0
- package/dist/{MenuItem-D7HWYhF3.js → MenuItem-CqPsuuC1.js} +69 -74
- package/dist/Modal-DWqBsogu.cjs +2 -0
- package/dist/Modal-D_mqYIr2.js +750 -0
- package/dist/Paper-CjMuucS5.cjs +2 -0
- package/dist/Paper-D973Ow-i.js +185 -0
- package/dist/Popper-B8oNZqtn.js +1407 -0
- package/dist/Popper-hzM0y1hA.cjs +4 -0
- package/dist/Portal-BKbBRbWN.js +86 -0
- package/dist/Portal-Bv2VRYHH.cjs +1 -0
- package/dist/Radio-BrzQH9pY.js +312 -0
- package/dist/Radio-DxbXYNhR.cjs +1 -0
- package/dist/Select-CL4E8NNL.cjs +3 -0
- package/dist/Select-CgAPAUTr.js +2602 -0
- package/dist/{Stack-y1PjTHKX.js → Stack-CYXQpKS2.js} +18 -18
- package/dist/{Stack-CEjx3KHM.cjs → Stack-WrITLr1B.cjs} +1 -1
- package/dist/{SwitchBase-yCuH0Tqk.js → SwitchBase-CGa9A6SL.js} +10 -10
- package/dist/{SwitchBase-URM3X3YZ.cjs → SwitchBase-Cqh9rxOh.cjs} +1 -1
- package/dist/{Tooltip-DO9GIhWC.js → TableSortLabel-hvz89Dvu.js} +2185 -3518
- package/dist/TableSortLabel-mAzX4tAl.cjs +98 -0
- package/dist/Tabs-BNqwYd2G.cjs +4 -0
- package/dist/{Tabs-DK4Bc5xo.js → Tabs-BPI2IyPx.js} +284 -282
- package/dist/{TextField-C-B529_r.js → TextField-C4nIxR_t.js} +24 -24
- package/dist/{TextField-BVAkADOb.cjs → TextField-Dy0Iblqt.cjs} +1 -1
- package/dist/Tooltip-Bdrv-e2a.js +720 -0
- package/dist/Tooltip-vg27N3PU.cjs +4 -0
- package/dist/{Typography-5OodZ94T.cjs → Typography-BF9bdWxl.cjs} +1 -1
- package/dist/{Typography-C_ESP41L.js → Typography-CUdlQxLM.js} +4 -4
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -1
- package/dist/chainPropTypes-CEUi6Jb4.cjs +1 -0
- package/dist/chainPropTypes-D9lkm76m.js +8 -0
- package/dist/components/Button/Button.cjs.js +1 -1
- package/dist/components/Button/Button.es.js +12 -12
- package/dist/components/DatePicker/DatePicker.cjs.js +1 -1
- package/dist/components/DatePicker/DatePicker.es.js +2 -2
- package/dist/components/DatePicker/index.cjs.js +1 -1
- package/dist/components/DatePicker/index.es.js +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +1 -5
- package/dist/components/Dropzone/Dropzone.es.js +24 -2162
- package/dist/components/EmptyState/EmptyState.cjs.js +1 -1
- package/dist/components/EmptyState/EmptyState.es.js +2 -2
- package/dist/components/FileList/FileList.cjs.js +1 -1
- package/dist/components/FileList/FileList.es.js +1 -1
- package/dist/components/FileList/FileListItem.cjs.js +1 -1
- package/dist/components/FileList/FileListItem.es.js +21 -22
- package/dist/components/Heading/Heading.cjs.js +1 -1
- package/dist/components/Heading/Heading.es.js +2 -2
- package/dist/components/ImagePicker/ImagePicker.cjs.js +1 -0
- package/dist/components/ImagePicker/ImagePicker.d.ts +12 -0
- package/dist/components/ImagePicker/ImagePicker.es.js +174 -0
- package/dist/components/ImagePicker/index.cjs.js +1 -0
- package/dist/components/ImagePicker/index.d.ts +2 -0
- package/dist/components/ImagePicker/index.es.js +4 -0
- package/dist/components/Loader/Loader.cjs.js +1 -1
- package/dist/components/Loader/Loader.es.js +2 -2
- package/dist/components/LoaderBackdrop/LoaderBackdrop.cjs.js +1 -1
- package/dist/components/LoaderBackdrop/LoaderBackdrop.es.js +3 -3
- package/dist/components/PasswordInput/PasswordInput.cjs.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.es.js +8 -7
- package/dist/components/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/SearchInput/SearchInput.es.js +4 -4
- package/dist/components/TextInput/TextInput.cjs.js +1 -1
- package/dist/components/TextInput/TextInput.es.js +1 -1
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.es.js +277 -265
- package/dist/components/stories/Button.stories.cjs.js +1 -1
- package/dist/components/stories/Button.stories.es.js +1 -1
- package/dist/components/stories/Card.stories.cjs.js +1 -0
- package/dist/components/stories/Card.stories.d.ts +7 -0
- package/dist/components/stories/Card.stories.es.js +193 -0
- package/dist/components/stories/Checkbox.stories.cjs.js +1 -1
- package/dist/components/stories/Checkbox.stories.es.js +41 -12
- package/dist/components/stories/DatePicker.stories.cjs.js +1 -1
- package/dist/components/stories/DatePicker.stories.es.js +1 -1
- package/dist/components/stories/Dialog.stories.cjs.js +1 -0
- package/dist/components/stories/Dialog.stories.d.ts +7 -0
- package/dist/components/stories/Dialog.stories.es.js +53 -0
- package/dist/components/stories/Divider.stories.cjs.js +1 -0
- package/dist/components/stories/Divider.stories.d.ts +6 -0
- package/dist/components/stories/Divider.stories.es.js +41 -0
- package/dist/components/stories/FormControlLabel.stories.cjs.js +1 -0
- package/dist/components/stories/FormControlLabel.stories.d.ts +9 -0
- package/dist/components/stories/FormControlLabel.stories.es.js +378 -0
- package/dist/components/stories/Heading.stories.cjs.js +1 -1
- package/dist/components/stories/Heading.stories.es.js +2 -2
- package/dist/components/stories/IconButton.stories.cjs.js +1 -1
- package/dist/components/stories/IconButton.stories.es.js +47 -11
- package/dist/components/stories/ImagePicker.stories.cjs.js +1 -0
- package/dist/components/stories/ImagePicker.stories.d.ts +6 -0
- package/dist/components/stories/ImagePicker.stories.es.js +50 -0
- package/dist/components/stories/Link.stories.cjs.js +1 -0
- package/dist/components/stories/Link.stories.d.ts +7 -0
- package/dist/components/stories/Link.stories.es.js +43 -0
- package/dist/components/stories/Menu.stories.cjs.js +1 -0
- package/dist/components/stories/Menu.stories.d.ts +7 -0
- package/dist/components/stories/Menu.stories.es.js +51 -0
- package/dist/components/stories/Paper.stories.cjs.js +1 -0
- package/dist/components/stories/Paper.stories.d.ts +7 -0
- package/dist/components/stories/Paper.stories.es.js +28 -0
- package/dist/components/stories/RadioGroup.stories.cjs.js +1 -1
- package/dist/components/stories/RadioGroup.stories.es.js +70 -371
- package/dist/components/stories/Select.stories.cjs.js +1 -1
- package/dist/components/stories/Select.stories.es.js +3 -3
- package/dist/components/stories/TabList.stories.cjs.js +1 -1
- package/dist/components/stories/TabList.stories.es.js +140 -90
- package/dist/components/stories/TextField.stories.cjs.js +1 -1
- package/dist/components/stories/TextField.stories.es.js +1 -1
- package/dist/components/stories/Tooltip.stories.cjs.js +1 -0
- package/dist/components/stories/Tooltip.stories.d.ts +7 -0
- package/dist/components/stories/Tooltip.stories.es.js +46 -0
- package/dist/components/stories/Typography.stories.cjs.js +1 -0
- package/dist/components/stories/Typography.stories.d.ts +6 -0
- package/dist/components/stories/Typography.stories.es.js +65 -0
- package/dist/createChainedFunction-C0nujS3O.js +9 -0
- package/dist/createChainedFunction-CJmlQuW8.cjs +1 -0
- package/dist/{createSvgIcon-GU7fqNnI.cjs → createSvgIcon-BMmqQ2z0.cjs} +1 -1
- package/dist/{createSvgIcon-DxbvMQd7.js → createSvgIcon-CVd3Lo1D.js} +3 -3
- package/dist/debounce-46wSf_lW.js +15 -0
- package/dist/debounce-DpCj7ugL.cjs +1 -0
- package/dist/dividerClasses-CyDs_RPD.cjs +1 -0
- package/dist/dividerClasses-kN_Ky2Bl.js +9 -0
- package/dist/elementTypeAcceptingRef-5w32V5hP.cjs +1 -0
- package/dist/elementTypeAcceptingRef-modXfN2G.js +23 -0
- package/dist/{extendSxProp-D11-pC6h.cjs → extendSxProp-6YOo46ig.cjs} +1 -1
- package/dist/{extendSxProp-XQwkK0m7.js → extendSxProp-CHv0k-C6.js} +1 -1
- package/dist/formControlState-CuX6WjAX.cjs +1 -0
- package/dist/formControlState-vgaj2ksH.js +10 -0
- package/dist/fr-ChrHtTbj.cjs +1 -0
- package/dist/fr-rmVQsNbI.js +312 -0
- package/dist/{identifier-BqadgaK7.js → identifier-Bn0tF6ls.js} +612 -608
- package/dist/{identifier-BQH88SE0.cjs → identifier-Dax8VlUh.cjs} +19 -19
- package/dist/index-BNojWn2E.js +2152 -0
- package/dist/index-C5dNuV-2.cjs +5 -0
- package/dist/{index-BUxqDIr9.js → index-CVpJYeY2.js} +4 -4
- package/dist/{index-D7nFYLYq.cjs → index-D3PBNx_m.cjs} +1 -1
- package/dist/{index-CNv8ppur.cjs → index-OLlWw08I.cjs} +1 -1
- package/dist/{index-CRT92bm7.js → index-waINWr3i.js} +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +277 -265
- package/dist/isFocusVisible-CPZqtjv2.js +12 -0
- package/dist/isFocusVisible-DlSijby6.cjs +2 -0
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{memoTheme-B6o2KVgJ.cjs → memoTheme-BPA1FjB4.cjs} +1 -1
- package/dist/{memoTheme-DfGVDRrB.js → memoTheme-CMJVTZEg.js} +1 -1
- package/dist/ownerDocument-4MViGo3k.cjs +1 -0
- package/dist/ownerDocument-CUrv0DIK.js +6 -0
- package/dist/ownerWindow-DDHucZi0.cjs +1 -0
- package/dist/ownerWindow-niciwP7I.js +7 -0
- package/dist/refType-BmrOFNz6.js +7 -0
- package/dist/refType-Dm84STBj.cjs +1 -0
- package/dist/{resolveComponentProps-DTv6xPbb.cjs → resolveComponentProps-4nhUsl3a.cjs} +1 -1
- package/dist/{resolveComponentProps-CxJ2yAJn.js → resolveComponentProps-DHoZOPOi.js} +1 -1
- package/dist/useForkRef-CTI33h-3.cjs +1 -0
- package/dist/useForkRef-C_4o__cU.js +15 -0
- package/dist/{useSlot-42jgZftI.cjs → useSlot-CJAXUvYJ.cjs} +1 -1
- package/dist/{useSlot-Co14PUn6.js → useSlot-t9oGnIgq.js} +2 -2
- package/dist/{useTheme-tZYpFplW.cjs → useTheme-BIogn5Me.cjs} +1 -1
- package/dist/{useTheme-cVN-YQNB.cjs → useTheme-Bz4LKMiC.cjs} +1 -1
- package/dist/{useTheme-oM_SFWy4.js → useTheme-CBsFvF7I.js} +1 -1
- package/dist/{useTheme-CtT7O-Wk.js → useTheme-L3EQmvnN.js} +3 -3
- package/dist/{useThemeProps-BlQ3SLfB.js → useThemeProps-5Bku71LW.js} +2 -2
- package/dist/{useThemeProps-HLq2mDKk.cjs → useThemeProps-C692LOYf.cjs} +1 -1
- package/dist/{useThemeProps-r0DnR8FJ.cjs → useThemeProps-DNFKz8wS.cjs} +1 -1
- package/dist/{useThemeProps-FiA8ivG-.js → useThemeProps-I9EHeqzU.js} +3 -3
- package/dist/{useTimeout-D16vpBhn.js → useTimeout-3Y5y4gWq.js} +4 -4
- package/dist/{useTimeout-DWEGwfTA.cjs → useTimeout-CxOQget6.cjs} +1 -1
- package/dist/utils-BWx1W_q1.cjs +1 -0
- package/dist/utils-CE_a8glN.js +391 -0
- package/dist/utils-CusX8Edy.cjs +1 -0
- package/dist/utils-DWqc1kRF.js +13 -0
- package/package.json +5 -5
- package/dist/Backdrop-KAJqifAq.cjs +0 -1
- package/dist/Backdrop-RBPtVAPX.js +0 -744
- package/dist/ButtonBase-UEHzzfUL.cjs +0 -75
- package/dist/DatePicker-rhgpaD-r.cjs +0 -17
- package/dist/DatePicker-u4rtXGeo.js +0 -12791
- package/dist/DefaultPropsProvider-BrX6iuA3.cjs +0 -17
- package/dist/FormGroup-BBYEQB4C.cjs +0 -1
- package/dist/FormGroup-BVtE8Mrv.js +0 -348
- package/dist/FormLabel-D8jYibc1.cjs +0 -2
- package/dist/IconButton-CVyLtjcH.cjs +0 -2
- package/dist/InputBase-Ctmib7Br.cjs +0 -3
- package/dist/MenuItem-Els-vJZW.cjs +0 -1
- package/dist/Select-BlPQngVF.js +0 -4720
- package/dist/Select-ipcMZ4iK.cjs +0 -11
- package/dist/Tabs-Nvk94RTW.cjs +0 -4
- package/dist/Tooltip-DvPL2M0E.cjs +0 -100
- package/dist/formControlState-DCkDUdfO.cjs +0 -1
- package/dist/formControlState-DdQP43Uo.js +0 -21
- package/dist/fr-B8_MxRl5.js +0 -307
- package/dist/fr-Nvp7C-vS.cjs +0 -1
- package/dist/ownerWindow-BoRkeomM.js +0 -23
- package/dist/ownerWindow-Dk_4aaak.cjs +0 -1
- package/dist/refType-DlHf9HvO.js +0 -27
- package/dist/refType-Do7KaOvv.cjs +0 -1
- package/dist/useForkRef-D-DyzOXj.js +0 -21
- package/dist/useForkRef-D81w5oMb.cjs +0 -1
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";var we=Object.defineProperty;var Se=(n,t,o)=>t in n?we(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o;var ue=(n,t,o)=>Se(n,typeof t!="symbol"?t+"":t,o);const m=require("react"),e=require("./identifier-BQH88SE0.cjs"),L=require("react/jsx-runtime"),$=require("./DefaultPropsProvider-BrX6iuA3.cjs"),I=require("./useTimeout-DWEGwfTA.cjs"),H=require("./TransitionGroupContext-DbXD5xqS.cjs"),oe=require("@emotion/react"),ae=require("./useForkRef-D81w5oMb.cjs"),pe=require("./refType-Do7KaOvv.cjs");function ke(n){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const o in n)if(o!=="default"){const u=Object.getOwnPropertyDescriptor(n,o);Object.defineProperty(t,o,u.get?u:{enumerable:!0,get:()=>n[o]})}}return t.default=n,Object.freeze(t)}const d=ke(m);function te(n){try{return n.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!/jsdom/.test(window.navigator.userAgent)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
|
|
2
|
-
`))}return!1}function J(){return J=Object.assign?Object.assign.bind():function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var u in o)({}).hasOwnProperty.call(o,u)&&(n[u]=o[u])}return n},J.apply(null,arguments)}function Oe(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function se(n,t){var o=function(s){return t&&m.isValidElement(s)?t(s):s},u=Object.create(null);return n&&m.Children.map(n,function(r){return r}).forEach(function(r){u[r.key]=o(r)}),u}function Be(n,t){n=n||{},t=t||{};function o(h){return h in t?t[h]:n[h]}var u=Object.create(null),r=[];for(var s in n)s in t?r.length&&(u[s]=r,r=[]):r.push(s);var i,c={};for(var a in t){if(u[a])for(i=0;i<u[a].length;i++){var f=u[a][i];c[u[a][i]]=o(f)}c[a]=o(a)}for(i=0;i<r.length;i++)c[r[i]]=o(r[i]);return c}function B(n,t,o){return o[t]!=null?o[t]:n.props[t]}function Le(n,t){return se(n.children,function(o){return m.cloneElement(o,{onExited:t.bind(null,o),in:!0,appear:B(o,"appear",n),enter:B(o,"enter",n),exit:B(o,"exit",n)})})}function Fe(n,t,o){var u=se(n.children),r=Be(t,u);return Object.keys(r).forEach(function(s){var i=r[s];if(m.isValidElement(i)){var c=s in t,a=s in u,f=t[s],h=m.isValidElement(f)&&!f.props.in;a&&(!c||h)?r[s]=m.cloneElement(i,{onExited:o.bind(null,i),in:!0,exit:B(i,"exit",n),enter:B(i,"enter",n)}):!a&&c&&!h?r[s]=m.cloneElement(i,{in:!1}):a&&c&&m.isValidElement(f)&&(r[s]=m.cloneElement(i,{onExited:o.bind(null,i),in:f.props.in,exit:B(i,"exit",n),enter:B(i,"enter",n)}))}}),r}var Ue=Object.values||function(n){return Object.keys(n).map(function(t){return n[t]})},qe={component:"div",childFactory:function(t){return t}},Z=function(n){H._inheritsLoose(t,n);function t(u,r){var s;s=n.call(this,u,r)||this;var i=s.handleExited.bind(Oe(s));return s.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},s}var o=t.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,s){var i=s.children,c=s.handleExited,a=s.firstRender;return{children:a?Le(r,c):Fe(r,i,c),firstRender:!1}},o.handleExited=function(r,s){var i=se(this.props.children);r.key in i||(r.props.onExited&&r.props.onExited(s),this.mounted&&this.setState(function(c){var a=J({},c.children);return delete a[r.key],{children:a}}))},o.render=function(){var r=this.props,s=r.component,i=r.childFactory,c=H._objectWithoutPropertiesLoose(r,["component","childFactory"]),a=this.state.contextValue,f=Ue(this.state.children).map(i);return delete c.appear,delete c.enter,delete c.exit,s===null?m.createElement(H.TransitionGroupContext.Provider,{value:a},f):m.createElement(H.TransitionGroupContext.Provider,{value:a},m.createElement(s,c,f))},t}(m.Component);Z.propTypes=process.env.NODE_ENV!=="production"?{component:e.PropTypes.any,children:e.PropTypes.node,appear:e.PropTypes.bool,enter:e.PropTypes.bool,exit:e.PropTypes.bool,childFactory:e.PropTypes.func}:{};Z.defaultProps=qe;class Q{constructor(){ue(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Q}static use(){const t=I.useLazyRef(Q.create).current,[o,u]=d.useState(!1);return t.shouldMount=o,t.setShouldMount=u,d.useEffect(t.mountEffect,[o]),t}mount(){return this.mounted||(this.mounted=$e(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.start(...t)})}stop(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.stop(...t)})}pulsate(...t){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.pulsate(...t)})}}function Ie(){return Q.use()}function $e(){let n,t;const o=new Promise((u,r)=>{n=u,t=r});return o.resolve=n,o.reject=t,o}function ce(n){const{className:t,classes:o,pulsate:u=!1,rippleX:r,rippleY:s,rippleSize:i,in:c,onExited:a,timeout:f}=n,[h,g]=d.useState(!1),b=e.clsx(t,o.ripple,o.rippleVisible,u&&o.ripplePulsate),D={width:i,height:i,top:-(i/2)+s,left:-(i/2)+r},y=e.clsx(o.child,h&&o.childLeaving,u&&o.childPulsate);return!c&&!h&&g(!0),d.useEffect(()=>{if(!c&&a!=null){const w=setTimeout(a,f);return()=>{clearTimeout(w)}}},[a,c,f]),L.jsx("span",{className:b,style:D,children:L.jsx("span",{className:y})})}process.env.NODE_ENV!=="production"&&(ce.propTypes={classes:e.PropTypes.object.isRequired,className:e.PropTypes.string,in:e.PropTypes.bool,onExited:e.PropTypes.func,pulsate:e.PropTypes.bool,rippleSize:e.PropTypes.number,rippleX:e.PropTypes.number,rippleY:e.PropTypes.number,timeout:e.PropTypes.number.isRequired});const T=e.generateUtilityClasses("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ne=550,ze=80,_e=oe.keyframes`
|
|
3
|
-
0% {
|
|
4
|
-
transform: scale(0);
|
|
5
|
-
opacity: 0.1;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
100% {
|
|
9
|
-
transform: scale(1);
|
|
10
|
-
opacity: 0.3;
|
|
11
|
-
}
|
|
12
|
-
`,Ae=oe.keyframes`
|
|
13
|
-
0% {
|
|
14
|
-
opacity: 1;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
100% {
|
|
18
|
-
opacity: 0;
|
|
19
|
-
}
|
|
20
|
-
`,Xe=oe.keyframes`
|
|
21
|
-
0% {
|
|
22
|
-
transform: scale(1);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
50% {
|
|
26
|
-
transform: scale(0.92);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
100% {
|
|
30
|
-
transform: scale(1);
|
|
31
|
-
}
|
|
32
|
-
`,Ye=$.styled("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Ke=$.styled(ce,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
33
|
-
opacity: 0;
|
|
34
|
-
position: absolute;
|
|
35
|
-
|
|
36
|
-
&.${T.rippleVisible} {
|
|
37
|
-
opacity: 0.3;
|
|
38
|
-
transform: scale(1);
|
|
39
|
-
animation-name: ${_e};
|
|
40
|
-
animation-duration: ${ne}ms;
|
|
41
|
-
animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.${T.ripplePulsate} {
|
|
45
|
-
animation-duration: ${({theme:n})=>n.transitions.duration.shorter}ms;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
& .${T.child} {
|
|
49
|
-
opacity: 1;
|
|
50
|
-
display: block;
|
|
51
|
-
width: 100%;
|
|
52
|
-
height: 100%;
|
|
53
|
-
border-radius: 50%;
|
|
54
|
-
background-color: currentColor;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
& .${T.childLeaving} {
|
|
58
|
-
opacity: 0;
|
|
59
|
-
animation-name: ${Ae};
|
|
60
|
-
animation-duration: ${ne}ms;
|
|
61
|
-
animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
& .${T.childPulsate} {
|
|
65
|
-
position: absolute;
|
|
66
|
-
/* @noflip */
|
|
67
|
-
left: 0px;
|
|
68
|
-
top: 0;
|
|
69
|
-
animation-name: ${Xe};
|
|
70
|
-
animation-duration: 2500ms;
|
|
71
|
-
animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
|
|
72
|
-
animation-iteration-count: infinite;
|
|
73
|
-
animation-delay: 200ms;
|
|
74
|
-
}
|
|
75
|
-
`,fe=d.forwardRef(function(t,o){const u=$.useDefaultProps({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:s={},className:i,...c}=u,[a,f]=d.useState([]),h=d.useRef(0),g=d.useRef(null);d.useEffect(()=>{g.current&&(g.current(),g.current=null)},[a]);const b=d.useRef(!1),D=I.useTimeout(),y=d.useRef(null),w=d.useRef(null),x=d.useCallback(p=>{const{pulsate:M,rippleX:P,rippleY:q,rippleSize:S,cb:z}=p;f(R=>[...R,L.jsx(Ke,{classes:{ripple:e.clsx(s.ripple,T.ripple),rippleVisible:e.clsx(s.rippleVisible,T.rippleVisible),ripplePulsate:e.clsx(s.ripplePulsate,T.ripplePulsate),child:e.clsx(s.child,T.child),childLeaving:e.clsx(s.childLeaving,T.childLeaving),childPulsate:e.clsx(s.childPulsate,T.childPulsate)},timeout:ne,pulsate:M,rippleX:P,rippleY:q,rippleSize:S},h.current)]),h.current+=1,g.current=z},[s]),F=d.useCallback((p={},M={},P=()=>{})=>{const{pulsate:q=!1,center:S=r||M.pulsate,fakeElement:z=!1}=M;if((p==null?void 0:p.type)==="mousedown"&&b.current){b.current=!1;return}(p==null?void 0:p.type)==="touchstart"&&(b.current=!0);const R=z?null:w.current,V=R?R.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,E,j;if(S||p===void 0||p.clientX===0&&p.clientY===0||!p.clientX&&!p.touches)N=Math.round(V.width/2),E=Math.round(V.height/2);else{const{clientX:_,clientY:k}=p.touches&&p.touches.length>0?p.touches[0]:p;N=Math.round(_-V.left),E=Math.round(k-V.top)}if(S)j=Math.sqrt((2*V.width**2+V.height**2)/3),j%2===0&&(j+=1);else{const _=Math.max(Math.abs((R?R.clientWidth:0)-N),N)*2+2,k=Math.max(Math.abs((R?R.clientHeight:0)-E),E)*2+2;j=Math.sqrt(_**2+k**2)}p!=null&&p.touches?y.current===null&&(y.current=()=>{x({pulsate:q,rippleX:N,rippleY:E,rippleSize:j,cb:P})},D.start(ze,()=>{y.current&&(y.current(),y.current=null)})):x({pulsate:q,rippleX:N,rippleY:E,rippleSize:j,cb:P})},[r,x,D]),K=d.useCallback(()=>{F({},{pulsate:!0})},[F]),U=d.useCallback((p,M)=>{if(D.clear(),(p==null?void 0:p.type)==="touchend"&&y.current){y.current(),y.current=null,D.start(0,()=>{U(p,M)});return}y.current=null,f(P=>P.length>0?P.slice(1):P),g.current=M},[D]);return d.useImperativeHandle(o,()=>({pulsate:K,start:F,stop:U}),[K,F,U]),L.jsx(Ye,{className:e.clsx(T.root,s.root,i),ref:w,...c,children:L.jsx(Z,{component:null,exit:!0,children:a})})});process.env.NODE_ENV!=="production"&&(fe.propTypes={center:e.PropTypes.bool,classes:e.PropTypes.object,className:e.PropTypes.string});function Ge(n){return e.generateUtilityClass("MuiButtonBase",n)}const We=e.generateUtilityClasses("MuiButtonBase",["root","disabled","focusVisible"]),He=n=>{const{disabled:t,focusVisible:o,focusVisibleClassName:u,classes:r}=n,s={root:["root",t&&"disabled",o&&"focusVisible"]},i=$.composeClasses(s,Ge,r);return o&&u&&(i.root+=` ${u}`),i},Je=$.styled("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(n,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${We.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),de=d.forwardRef(function(t,o){const u=$.useDefaultProps({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:s=!1,children:i,className:c,component:a="button",disabled:f=!1,disableRipple:h=!1,disableTouchRipple:g=!1,focusRipple:b=!1,focusVisibleClassName:D,LinkComponent:y="a",onBlur:w,onClick:x,onContextMenu:F,onDragLeave:K,onFocus:U,onFocusVisible:p,onKeyDown:M,onKeyUp:P,onMouseDown:q,onMouseLeave:S,onMouseUp:z,onTouchEnd:R,onTouchMove:V,onTouchStart:N,tabIndex:E=0,TouchRippleProps:j,touchRippleRef:_,type:k,...A}=u,X=d.useRef(null),C=Ie(),he=ae.useForkRef(C.ref,_),[O,G]=d.useState(!1);f&&O&&G(!1),d.useImperativeHandle(r,()=>({focusVisible:()=>{G(!0),X.current.focus()}}),[]);const me=C.shouldMount&&!h&&!f;d.useEffect(()=>{O&&b&&!h&&C.pulsate()},[h,b,O,C]);function v(l,ie,je=g){return I.useEventCallback(le=>(ie&&ie(le),je||C[l](le),!0))}const ye=v("start",q),Te=v("stop",F),be=v("stop",K),Pe=v("stop",z),ge=v("stop",l=>{O&&l.preventDefault(),S&&S(l)}),Me=v("start",N),Re=v("stop",R),xe=v("stop",V),Ee=v("stop",l=>{te(l.target)||G(!1),w&&w(l)},!1),Ce=I.useEventCallback(l=>{X.current||(X.current=l.currentTarget),te(l.target)&&(G(!0),p&&p(l)),U&&U(l)}),ee=()=>{const l=X.current;return a&&a!=="button"&&!(l.tagName==="A"&&l.href)},ve=I.useEventCallback(l=>{b&&!l.repeat&&O&&l.key===" "&&C.stop(l,()=>{C.start(l)}),l.target===l.currentTarget&&ee()&&l.key===" "&&l.preventDefault(),M&&M(l),l.target===l.currentTarget&&ee()&&l.key==="Enter"&&!f&&(l.preventDefault(),x&&x(l))}),De=I.useEventCallback(l=>{b&&l.key===" "&&O&&!l.defaultPrevented&&C.stop(l,()=>{C.pulsate(l)}),P&&P(l),x&&l.target===l.currentTarget&&ee()&&l.key===" "&&!l.defaultPrevented&&x(l)});let W=a;W==="button"&&(A.href||A.to)&&(W=y);const Y={};W==="button"?(Y.type=k===void 0?"button":k,Y.disabled=f):(!A.href&&!A.to&&(Y.role="button"),f&&(Y["aria-disabled"]=f));const Ve=ae.useForkRef(o,X),re={...u,centerRipple:s,component:a,disabled:f,disableRipple:h,disableTouchRipple:g,focusRipple:b,tabIndex:E,focusVisible:O},Ne=He(re);return L.jsxs(Je,{as:W,className:e.clsx(Ne.root,c),ownerState:re,onBlur:Ee,onClick:x,onContextMenu:Te,onFocus:Ce,onKeyDown:ve,onKeyUp:De,onMouseDown:ye,onMouseLeave:ge,onMouseUp:Pe,onDragLeave:be,onTouchEnd:Re,onTouchMove:xe,onTouchStart:Me,ref:Ve,tabIndex:f?-1:E,type:k,...Y,...A,children:[i,me?L.jsx(fe,{ref:he,center:s,...j}):null]})});process.env.NODE_ENV!=="production"&&(de.propTypes={action:pe.refType,centerRipple:e.PropTypes.bool,children:e.PropTypes.node,classes:e.PropTypes.object,className:e.PropTypes.string,component:pe.elementTypeAcceptingRef,disabled:e.PropTypes.bool,disableRipple:e.PropTypes.bool,disableTouchRipple:e.PropTypes.bool,focusRipple:e.PropTypes.bool,focusVisibleClassName:e.PropTypes.string,href:e.PropTypes.any,LinkComponent:e.PropTypes.elementType,onBlur:e.PropTypes.func,onClick:e.PropTypes.func,onContextMenu:e.PropTypes.func,onDragLeave:e.PropTypes.func,onFocus:e.PropTypes.func,onFocusVisible:e.PropTypes.func,onKeyDown:e.PropTypes.func,onKeyUp:e.PropTypes.func,onMouseDown:e.PropTypes.func,onMouseLeave:e.PropTypes.func,onMouseUp:e.PropTypes.func,onTouchEnd:e.PropTypes.func,onTouchMove:e.PropTypes.func,onTouchStart:e.PropTypes.func,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]),tabIndex:e.PropTypes.number,TouchRippleProps:e.PropTypes.object,touchRippleRef:e.PropTypes.oneOfType([e.PropTypes.func,e.PropTypes.shape({current:e.PropTypes.shape({pulsate:e.PropTypes.func.isRequired,start:e.PropTypes.func.isRequired,stop:e.PropTypes.func.isRequired})})]),type:e.PropTypes.oneOfType([e.PropTypes.oneOf(["button","reset","submit"]),e.PropTypes.string])});exports.ButtonBase=de;exports.TransitionGroup=Z;exports._extends=J;exports.isFocusVisible=te;
|