@cgi-learning-hub/ui 0.0.1-dev.1708959744 → 0.0.1-dev.1708964890
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/Box-7uR7JZiM.cjs +1 -0
- package/dist/Box-CPGTKTgx.js +56 -0
- package/dist/{ButtonBase-Bw43M3TO.js → ButtonBase-B0tkJ9zf.js} +2 -2
- package/dist/{ButtonBase-XPViWbp_.cjs → ButtonBase-DCL6Xlnm.cjs} +1 -1
- package/dist/{CircularProgress-BCdQaPFF.cjs → CircularProgress-CZX5SfKt.cjs} +1 -1
- package/dist/{CircularProgress-DRE9BLTL.js → CircularProgress-CguDBnxV.js} +2 -2
- package/dist/IconButton-CJ1Nt-jf.js +182 -0
- package/dist/IconButton-De7ZdW2q.cjs +2 -0
- package/dist/{InputBase-BbXy6VDy.js → InputBase-C_yPRkam.js} +109 -112
- package/dist/InputBase-Dvr5GnwD.cjs +4 -0
- package/dist/Tab-Bhm9hCrX.cjs +1 -0
- package/dist/{Tab-CWxCqAvH.js → Tab-C4l6V01S.js} +9 -9
- package/dist/{Typography-B1bdo7yt.js → Typography-CyFLZjnE.js} +99 -74
- package/dist/Typography-DwsN2Ttm.cjs +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/components/Dropzone/Dropzone.cjs.js +5 -5
- package/dist/components/Dropzone/Dropzone.es.js +12 -11
- package/dist/components/Dropzone/Dropzone.stories.cjs.js +1 -0
- package/dist/components/{AnotherComponent/AnotherComponent.stories.d.ts → Dropzone/Dropzone.stories.d.ts} +1 -2
- package/dist/components/Dropzone/Dropzone.stories.es.js +17 -0
- package/dist/components/buttons/DefaultButton/DefaultButton.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButton.es.js +474 -126
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.cjs.js +1 -1
- package/dist/components/buttons/DefaultButton/DefaultButtonIcon.es.js +4 -4
- package/dist/components/buttons/IconButton.stories.cjs.js +1 -0
- package/dist/components/buttons/IconButton.stories.d.ts +4 -0
- package/dist/components/buttons/IconButton.stories.es.js +27 -0
- package/dist/components/buttons/PrimaryButton/PrimaryButton.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.es.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.d.ts +1 -1
- package/dist/components/buttons/PrimaryButton/PrimaryButton.stories.es.js +8 -7
- package/dist/components/buttons/SecondaryButton/SecondaryButton.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.es.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.cjs.js +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.d.ts +1 -1
- package/dist/components/buttons/SecondaryButton/SecondaryButton.stories.es.js +10 -9
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.es.js +18 -22
- package/dist/components/inputs/SearchInput/SearchInput.cjs.js +1 -1
- package/dist/components/inputs/SearchInput/SearchInput.es.js +10 -10
- package/dist/components/inputs/SearchInput/SearchInput.stories.cjs.js +1 -0
- package/dist/components/inputs/SearchInput/SearchInput.stories.d.ts +4 -0
- package/dist/components/inputs/SearchInput/SearchInput.stories.es.js +16 -0
- package/dist/components/inputs/TextInput/TextInput.cjs.js +11 -11
- package/dist/components/inputs/TextInput/TextInput.es.js +1905 -1655
- package/dist/components/inputs/TextInput/TextInput.stories.cjs.js +1 -0
- package/dist/components/inputs/TextInput/TextInput.stories.d.ts +4 -0
- package/dist/components/inputs/TextInput/TextInput.stories.es.js +17 -0
- package/dist/components/lists/FileList/FileList.cjs.js +1 -1
- package/dist/components/lists/FileList/FileList.es.js +1 -1
- package/dist/components/lists/FileList/FileList.stories.cjs.js +1 -0
- package/dist/components/lists/FileList/FileList.stories.d.ts +4 -0
- package/dist/components/lists/FileList/FileList.stories.es.js +28 -0
- package/dist/components/lists/FileList/FileListItem.cjs.js +1 -2
- package/dist/components/lists/FileList/FileListItem.es.js +26 -201
- package/dist/components/lists/TabList.stories.cjs.js +4 -0
- package/dist/components/lists/TabList.stories.d.ts +4 -0
- package/dist/components/lists/TabList.stories.es.js +1027 -0
- package/dist/{createSvgIcon-BivvPRyr.cjs → createSvgIcon-B6bZPuto.cjs} +1 -1
- package/dist/createSvgIcon-BX8WQ5r-.cjs +2 -0
- package/dist/{createSvgIcon-DLZM3vHe.js → createSvgIcon-KaSN8JhZ.js} +7 -7
- package/dist/createSvgIcon-m_wsenOJ.js +84 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +18 -22
- package/dist/isHostComponent-PydJW4A4.cjs +1 -0
- package/dist/isHostComponent-kiaBvYVo.js +6 -0
- package/dist/{ownerWindow-BoRkeomM.js → ownerWindow-C7EH1lr6.js} +2 -2
- package/dist/{refType-dllUCpD8.cjs → refType-CHSN6ysS.cjs} +1 -1
- package/dist/{refType-CMQbzE37.js → refType-Hh9tfnoF.js} +1 -1
- package/dist/unsupportedProp-Bn6XWqwH.cjs +1 -0
- package/dist/unsupportedProp-BuVD30Gh.js +9 -0
- package/dist/useSlotProps-MoAYME1z.js +70 -0
- package/dist/useSlotProps-R4s13HHI.cjs +1 -0
- package/dist/{useTheme-C-LTLVMt.cjs → useTheme-BDPYLOoP.cjs} +1 -1
- package/dist/{useTheme-BSwuVDD3.js → useTheme-DJEDOopE.js} +1 -1
- package/dist/{useThemeProps-kb_vU-1P.js → useThemeProps-Dg9Uoq7q.js} +656 -689
- package/dist/useThemeProps-jkB5q9ie.cjs +65 -0
- package/package.json +1 -1
- package/dist/Button-CmBnwwn3.js +0 -356
- package/dist/Button-wMPAZpnO.cjs +0 -1
- package/dist/Input-DHic6dYE.cjs +0 -1
- package/dist/Input-Dk-cN0Fb.js +0 -322
- package/dist/InputBase-WBNJQn8V.cjs +0 -4
- package/dist/Tab-C2Tmr8Sv.cjs +0 -1
- package/dist/Typography-CO64FVmw.cjs +0 -1
- package/dist/components/AnotherComponent/AnotherComponent.cjs.js +0 -1
- package/dist/components/AnotherComponent/AnotherComponent.d.ts +0 -2
- package/dist/components/AnotherComponent/AnotherComponent.es.js +0 -15
- package/dist/components/AnotherComponent/AnotherComponent.stories.cjs.js +0 -1
- package/dist/components/AnotherComponent/AnotherComponent.stories.es.js +0 -22
- package/dist/components/AnotherComponent/index.cjs.js +0 -1
- package/dist/components/AnotherComponent/index.d.ts +0 -2
- package/dist/components/AnotherComponent/index.es.js +0 -4
- package/dist/components/BasicButtons/BasicButtons.cjs.js +0 -1
- package/dist/components/BasicButtons/BasicButtons.d.ts +0 -2
- package/dist/components/BasicButtons/BasicButtons.es.js +0 -189
- package/dist/components/BasicButtons/BasicButtons.stories.cjs.js +0 -1
- package/dist/components/BasicButtons/BasicButtons.stories.d.ts +0 -5
- package/dist/components/BasicButtons/BasicButtons.stories.es.js +0 -22
- package/dist/components/BasicButtons/index.cjs.js +0 -1
- package/dist/components/BasicButtons/index.d.ts +0 -2
- package/dist/components/BasicButtons/index.es.js +0 -4
- package/dist/createSvgIcon-9NfUaq9H.js +0 -143
- package/dist/createSvgIcon-B7HVs3ZC.cjs +0 -2
- package/dist/extendSxProp-CVD6j4mA.js +0 -29
- package/dist/extendSxProp-D5gpnasP.cjs +0 -1
- package/dist/useThemeProps-C6ClLEqN.cjs +0 -65
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./useThemeProps-jkB5q9ie.cjs"),y=require("react"),T=require("react/jsx-runtime"),P=require("./Typography-DwsN2Ttm.cjs");function h(o){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const s in o)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(o,s);Object.defineProperty(t,s,r.get?r:{enumerable:!0,get:()=>o[s]})}}return t.default=o,Object.freeze(t)}const b=h(y),N=["className","component"];function g(o={}){const{themeId:t,defaultTheme:s,defaultClassName:r="MuiBox-root",generateClassName:a}=o,l=e.styled$1("div",{shouldForwardProp:n=>n!=="theme"&&n!=="sx"&&n!=="as"})(e.styleFunctionSx);return b.forwardRef(function(i,d){const c=e.useTheme(s),p=P.extendSxProp(i),{className:m,component:f="div"}=p,x=e._objectWithoutPropertiesLoose(p,N);return T.jsx(l,e._extends({as:f,ref:d,className:e.clsx(m,a?a(r):r),theme:t&&c[t]||c},x))})}const B=e.generateUtilityClasses("MuiBox",["root"]),O=B,_=e.createTheme(),u=g({themeId:e.THEME_ID,defaultTheme:_,defaultClassName:O.root,generateClassName:e.ClassNameGenerator.generate});process.env.NODE_ENV!=="production"&&(u.propTypes={children:e.PropTypes.node,component:e.PropTypes.elementType,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])});const j=u;exports.Box=j;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { j as h, k as T, u as B, e as N, _ as y, f as C, g as _, l as b, T as P, C as g, P as e } from "./useThemeProps-Dg9Uoq7q.js";
|
|
2
|
+
import * as j from "react";
|
|
3
|
+
import { jsx as v } from "react/jsx-runtime";
|
|
4
|
+
import { e as E } from "./Typography-CyFLZjnE.js";
|
|
5
|
+
const O = ["className", "component"];
|
|
6
|
+
function I(m = {}) {
|
|
7
|
+
const {
|
|
8
|
+
themeId: t,
|
|
9
|
+
defaultTheme: l,
|
|
10
|
+
defaultClassName: a = "MuiBox-root",
|
|
11
|
+
generateClassName: n
|
|
12
|
+
} = m, x = h("div", {
|
|
13
|
+
shouldForwardProp: (o) => o !== "theme" && o !== "sx" && o !== "as"
|
|
14
|
+
})(T);
|
|
15
|
+
return /* @__PURE__ */ j.forwardRef(function(d, f) {
|
|
16
|
+
const s = B(l), r = E(d), {
|
|
17
|
+
className: u,
|
|
18
|
+
component: i = "div"
|
|
19
|
+
} = r, p = N(r, O);
|
|
20
|
+
return /* @__PURE__ */ v(x, y({
|
|
21
|
+
as: i,
|
|
22
|
+
ref: f,
|
|
23
|
+
className: C(u, n ? n(a) : a),
|
|
24
|
+
theme: t && s[t] || s
|
|
25
|
+
}, p));
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
const M = _("MuiBox", ["root"]), R = M, S = b(), c = I({
|
|
29
|
+
themeId: P,
|
|
30
|
+
defaultTheme: S,
|
|
31
|
+
defaultClassName: R.root,
|
|
32
|
+
generateClassName: g.generate
|
|
33
|
+
});
|
|
34
|
+
process.env.NODE_ENV !== "production" && (c.propTypes = {
|
|
35
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
36
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
37
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
38
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
39
|
+
/**
|
|
40
|
+
* @ignore
|
|
41
|
+
*/
|
|
42
|
+
children: e.node,
|
|
43
|
+
/**
|
|
44
|
+
* The component used for the root node.
|
|
45
|
+
* Either a string to use a HTML element or a component.
|
|
46
|
+
*/
|
|
47
|
+
component: e.elementType,
|
|
48
|
+
/**
|
|
49
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
50
|
+
*/
|
|
51
|
+
sx: e.oneOfType([e.arrayOf(e.oneOfType([e.func, e.object, e.bool])), e.func, e.object])
|
|
52
|
+
});
|
|
53
|
+
const k = c;
|
|
54
|
+
export {
|
|
55
|
+
k as B
|
|
56
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as Y, e as ie, P as e, f as x, g as ye, s as re, b as Te, a as Xe, h as Ye } from "./useThemeProps-Dg9Uoq7q.js";
|
|
2
2
|
import * as p from "react";
|
|
3
3
|
import W, { Children as Ae, isValidElement as G, cloneElement as J } from "react";
|
|
4
4
|
import { jsx as I, jsxs as qe } from "react/jsx-runtime";
|
|
@@ -7,7 +7,7 @@ import { _ as He, T as de } from "./TransitionGroupContext-C7wWJ6l7.js";
|
|
|
7
7
|
import { keyframes as se } from "@emotion/react";
|
|
8
8
|
import { a as he } from "./useForkRef-DwN_Iz9R.js";
|
|
9
9
|
import { u as Ge } from "./useIsFocusVisible-D8ksiuhS.js";
|
|
10
|
-
import { r as Je, e as Qe } from "./refType-
|
|
10
|
+
import { r as Je, e as Qe } from "./refType-Hh9tfnoF.js";
|
|
11
11
|
function Ze(t) {
|
|
12
12
|
if (t === void 0)
|
|
13
13
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("./useThemeProps-
|
|
1
|
+
"use strict";const e=require("./useThemeProps-jkB5q9ie.cjs"),y=require("react"),_=require("react/jsx-runtime"),X=require("./useTimeout-qjxkiZZn.cjs"),Z=require("./TransitionGroupContext-g4tmk10h.cjs"),te=require("@emotion/react"),ae=require("./useForkRef-CGd3Nhyb.cjs"),Fe=require("./useIsFocusVisible-BF0lT08B.cjs"),ue=require("./refType-CHSN6ysS.cjs");function Oe(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(s,r,a.get?a:{enumerable:!0,get:()=>t[r]})}}return s.default=t,Object.freeze(s)}const p=Oe(y);function $e(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ne(t,s){var r=function(n){return s&&y.isValidElement(n)?s(n):n},a=Object.create(null);return t&&y.Children.map(t,function(o){return o}).forEach(function(o){a[o.key]=r(o)}),a}function Ie(t,s){t=t||{},s=s||{};function r(h){return h in s?s[h]:t[h]}var a=Object.create(null),o=[];for(var n in t)n in s?o.length&&(a[n]=o,o=[]):o.push(n);var i,c={};for(var u in s){if(a[u])for(i=0;i<a[u].length;i++){var d=a[u][i];c[a[u][i]]=r(d)}c[u]=r(u)}for(i=0;i<o.length;i++)c[o[i]]=r(o[i]);return c}function w(t,s,r){return r[s]!=null?r[s]:t.props[s]}function Ue(t,s){return ne(t.children,function(r){return y.cloneElement(r,{onExited:s.bind(null,r),in:!0,appear:w(r,"appear",t),enter:w(r,"enter",t),exit:w(r,"exit",t)})})}function qe(t,s,r){var a=ne(t.children),o=Ie(s,a);return Object.keys(o).forEach(function(n){var i=o[n];if(y.isValidElement(i)){var c=n in s,u=n in a,d=s[n],h=y.isValidElement(d)&&!d.props.in;u&&(!c||h)?o[n]=y.cloneElement(i,{onExited:r.bind(null,i),in:!0,exit:w(i,"exit",t),enter:w(i,"enter",t)}):!u&&c&&!h?o[n]=y.cloneElement(i,{in:!1}):u&&c&&y.isValidElement(d)&&(o[n]=y.cloneElement(i,{onExited:r.bind(null,i),in:d.props.in,exit:w(i,"exit",t),enter:w(i,"enter",t)}))}}),o}var ze=Object.values||function(t){return Object.keys(t).map(function(s){return t[s]})},Ke={component:"div",childFactory:function(s){return s}},oe=function(t){Z._inheritsLoose(s,t);function s(a,o){var n;n=t.call(this,a,o)||this;var i=n.handleExited.bind($e(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}var r=s.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},s.getDerivedStateFromProps=function(o,n){var i=n.children,c=n.handleExited,u=n.firstRender;return{children:u?Ue(o,c):qe(o,i,c),firstRender:!1}},r.handleExited=function(o,n){var i=ne(this.props.children);o.key in i||(o.props.onExited&&o.props.onExited(n),this.mounted&&this.setState(function(c){var u=e._extends({},c.children);return delete u[o.key],{children:u}}))},r.render=function(){var o=this.props,n=o.component,i=o.childFactory,c=e._objectWithoutPropertiesLoose(o,["component","childFactory"]),u=this.state.contextValue,d=ze(this.state.children).map(i);return delete c.appear,delete c.enter,delete c.exit,n===null?y.createElement(Z.TransitionGroupContext.Provider,{value:u},d):y.createElement(Z.TransitionGroupContext.Provider,{value:u},y.createElement(n,c,d))},s}(y.Component);oe.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}:{};oe.defaultProps=Ke;const Xe=oe;function he(t){const{className:s,classes:r,pulsate:a=!1,rippleX:o,rippleY:n,rippleSize:i,in:c,onExited:u,timeout:d}=t,[h,g]=p.useState(!1),b=e.clsx(s,r.ripple,r.rippleVisible,a&&r.ripplePulsate),C={width:i,height:i,top:-(i/2)+n,left:-(i/2)+o},m=e.clsx(r.child,h&&r.childLeaving,a&&r.childPulsate);return!c&&!h&&g(!0),p.useEffect(()=>{if(!c&&u!=null){const R=setTimeout(u,d);return()=>{clearTimeout(R)}}},[u,c,d]),_.jsx("span",{className:b,style:C,children:_.jsx("span",{className:m})})}process.env.NODE_ENV!=="production"&&(he.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"]),Ye=["center","classes","className"];let W=t=>t,ce,pe,de,fe;const ee=550,Ae=80,We=te.keyframes(ce||(ce=W`
|
|
2
2
|
0% {
|
|
3
3
|
transform: scale(0);
|
|
4
4
|
opacity: 0.1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("./useThemeProps-
|
|
1
|
+
"use strict";const e=require("./useThemeProps-jkB5q9ie.cjs"),j=require("react"),h=require("react/jsx-runtime"),D=require("./refType-CHSN6ysS.cjs"),c=require("@emotion/react");function w(r){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(s,t,o.get?o:{enumerable:!0,get:()=>r[t]})}}return s.default=r,Object.freeze(s)}const M=w(j);function N(r){return e.generateUtilityClass("MuiCircularProgress",r)}e.generateUtilityClasses("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const R=["className","color","disableShrink","size","style","thickness","value","variant"];let l=r=>r,T,b,x,C;const i=44,z=c.keyframes(T||(T=l`
|
|
2
2
|
0% {
|
|
3
3
|
transform: rotate(0deg);
|
|
4
4
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as R, g as j, s as y, c as l, _ as i, b as U, e as z, f as E, P as e, h as I } from "./useThemeProps-Dg9Uoq7q.js";
|
|
2
2
|
import * as F from "react";
|
|
3
3
|
import { jsx as g } from "react/jsx-runtime";
|
|
4
|
-
import { c as K } from "./refType-
|
|
4
|
+
import { c as K } from "./refType-Hh9tfnoF.js";
|
|
5
5
|
import { keyframes as D, css as _ } from "@emotion/react";
|
|
6
6
|
function V(r) {
|
|
7
7
|
return R("MuiCircularProgress", r);
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { g as z, a as R, s as C, c as n, _ as t, i as f, b as B, e as I, f as O, P as r, h as T } from "./useThemeProps-Dg9Uoq7q.js";
|
|
2
|
+
import * as d from "react";
|
|
3
|
+
import { jsx as $ } from "react/jsx-runtime";
|
|
4
|
+
import { B as x } from "./ButtonBase-B0tkJ9zf.js";
|
|
5
|
+
import { c as k } from "./refType-Hh9tfnoF.js";
|
|
6
|
+
function P(o) {
|
|
7
|
+
return R("MuiIconButton", o);
|
|
8
|
+
}
|
|
9
|
+
const j = z("MuiIconButton", ["root", "disabled", "colorInherit", "colorPrimary", "colorSecondary", "colorError", "colorInfo", "colorSuccess", "colorWarning", "edgeStart", "edgeEnd", "sizeSmall", "sizeMedium", "sizeLarge"]), E = ["edge", "children", "className", "color", "disabled", "disableFocusRipple", "size"], M = (o) => {
|
|
10
|
+
const {
|
|
11
|
+
classes: e,
|
|
12
|
+
disabled: a,
|
|
13
|
+
color: s,
|
|
14
|
+
edge: i,
|
|
15
|
+
size: l
|
|
16
|
+
} = o, c = {
|
|
17
|
+
root: ["root", a && "disabled", s !== "default" && `color${n(s)}`, i && `edge${n(i)}`, `size${n(l)}`]
|
|
18
|
+
};
|
|
19
|
+
return T(c, P, e);
|
|
20
|
+
}, N = C(x, {
|
|
21
|
+
name: "MuiIconButton",
|
|
22
|
+
slot: "Root",
|
|
23
|
+
overridesResolver: (o, e) => {
|
|
24
|
+
const {
|
|
25
|
+
ownerState: a
|
|
26
|
+
} = o;
|
|
27
|
+
return [e.root, a.color !== "default" && e[`color${n(a.color)}`], a.edge && e[`edge${n(a.edge)}`], e[`size${n(a.size)}`]];
|
|
28
|
+
}
|
|
29
|
+
})(({
|
|
30
|
+
theme: o,
|
|
31
|
+
ownerState: e
|
|
32
|
+
}) => t({
|
|
33
|
+
textAlign: "center",
|
|
34
|
+
flex: "0 0 auto",
|
|
35
|
+
fontSize: o.typography.pxToRem(24),
|
|
36
|
+
padding: 8,
|
|
37
|
+
borderRadius: "50%",
|
|
38
|
+
overflow: "visible",
|
|
39
|
+
// Explicitly set the default value to solve a bug on IE11.
|
|
40
|
+
color: (o.vars || o).palette.action.active,
|
|
41
|
+
transition: o.transitions.create("background-color", {
|
|
42
|
+
duration: o.transitions.duration.shortest
|
|
43
|
+
})
|
|
44
|
+
}, !e.disableRipple && {
|
|
45
|
+
"&:hover": {
|
|
46
|
+
backgroundColor: o.vars ? `rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})` : f(o.palette.action.active, o.palette.action.hoverOpacity),
|
|
47
|
+
// Reset on touch devices, it doesn't add specificity
|
|
48
|
+
"@media (hover: none)": {
|
|
49
|
+
backgroundColor: "transparent"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}, e.edge === "start" && {
|
|
53
|
+
marginLeft: e.size === "small" ? -3 : -12
|
|
54
|
+
}, e.edge === "end" && {
|
|
55
|
+
marginRight: e.size === "small" ? -3 : -12
|
|
56
|
+
}), ({
|
|
57
|
+
theme: o,
|
|
58
|
+
ownerState: e
|
|
59
|
+
}) => {
|
|
60
|
+
var a;
|
|
61
|
+
const s = (a = (o.vars || o).palette) == null ? void 0 : a[e.color];
|
|
62
|
+
return t({}, e.color === "inherit" && {
|
|
63
|
+
color: "inherit"
|
|
64
|
+
}, e.color !== "inherit" && e.color !== "default" && t({
|
|
65
|
+
color: s == null ? void 0 : s.main
|
|
66
|
+
}, !e.disableRipple && {
|
|
67
|
+
"&:hover": t({}, s && {
|
|
68
|
+
backgroundColor: o.vars ? `rgba(${s.mainChannel} / ${o.vars.palette.action.hoverOpacity})` : f(s.main, o.palette.action.hoverOpacity)
|
|
69
|
+
}, {
|
|
70
|
+
// Reset on touch devices, it doesn't add specificity
|
|
71
|
+
"@media (hover: none)": {
|
|
72
|
+
backgroundColor: "transparent"
|
|
73
|
+
}
|
|
74
|
+
})
|
|
75
|
+
}), e.size === "small" && {
|
|
76
|
+
padding: 5,
|
|
77
|
+
fontSize: o.typography.pxToRem(18)
|
|
78
|
+
}, e.size === "large" && {
|
|
79
|
+
padding: 12,
|
|
80
|
+
fontSize: o.typography.pxToRem(28)
|
|
81
|
+
}, {
|
|
82
|
+
[`&.${j.disabled}`]: {
|
|
83
|
+
backgroundColor: "transparent",
|
|
84
|
+
color: (o.vars || o).palette.action.disabled
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}), b = /* @__PURE__ */ d.forwardRef(function(e, a) {
|
|
88
|
+
const s = B({
|
|
89
|
+
props: e,
|
|
90
|
+
name: "MuiIconButton"
|
|
91
|
+
}), {
|
|
92
|
+
edge: i = !1,
|
|
93
|
+
children: l,
|
|
94
|
+
className: c,
|
|
95
|
+
color: v = "default",
|
|
96
|
+
disabled: p = !1,
|
|
97
|
+
disableFocusRipple: u = !1,
|
|
98
|
+
size: y = "medium"
|
|
99
|
+
} = s, m = I(s, E), g = t({}, s, {
|
|
100
|
+
edge: i,
|
|
101
|
+
color: v,
|
|
102
|
+
disabled: p,
|
|
103
|
+
disableFocusRipple: u,
|
|
104
|
+
size: y
|
|
105
|
+
}), h = M(g);
|
|
106
|
+
return /* @__PURE__ */ $(N, t({
|
|
107
|
+
className: O(h.root, c),
|
|
108
|
+
centerRipple: !0,
|
|
109
|
+
focusRipple: !u,
|
|
110
|
+
disabled: p,
|
|
111
|
+
ref: a,
|
|
112
|
+
ownerState: g
|
|
113
|
+
}, m, {
|
|
114
|
+
children: l
|
|
115
|
+
}));
|
|
116
|
+
});
|
|
117
|
+
process.env.NODE_ENV !== "production" && (b.propTypes = {
|
|
118
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
119
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
120
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
121
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
122
|
+
/**
|
|
123
|
+
* The icon to display.
|
|
124
|
+
*/
|
|
125
|
+
children: k(r.node, (o) => d.Children.toArray(o.children).some((a) => /* @__PURE__ */ d.isValidElement(a) && a.props.onClick) ? new Error(["MUI: You are providing an onClick event listener to a child of a button element.", "Prefer applying it to the IconButton directly.", "This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
126
|
+
`)) : null),
|
|
127
|
+
/**
|
|
128
|
+
* Override or extend the styles applied to the component.
|
|
129
|
+
*/
|
|
130
|
+
classes: r.object,
|
|
131
|
+
/**
|
|
132
|
+
* @ignore
|
|
133
|
+
*/
|
|
134
|
+
className: r.string,
|
|
135
|
+
/**
|
|
136
|
+
* The color of the component.
|
|
137
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
138
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
139
|
+
* @default 'default'
|
|
140
|
+
*/
|
|
141
|
+
color: r.oneOfType([r.oneOf(["inherit", "default", "primary", "secondary", "error", "info", "success", "warning"]), r.string]),
|
|
142
|
+
/**
|
|
143
|
+
* If `true`, the component is disabled.
|
|
144
|
+
* @default false
|
|
145
|
+
*/
|
|
146
|
+
disabled: r.bool,
|
|
147
|
+
/**
|
|
148
|
+
* If `true`, the keyboard focus ripple is disabled.
|
|
149
|
+
* @default false
|
|
150
|
+
*/
|
|
151
|
+
disableFocusRipple: r.bool,
|
|
152
|
+
/**
|
|
153
|
+
* If `true`, the ripple effect is disabled.
|
|
154
|
+
*
|
|
155
|
+
* ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure
|
|
156
|
+
* to highlight the element by applying separate styles with the `.Mui-focusVisible` class.
|
|
157
|
+
* @default false
|
|
158
|
+
*/
|
|
159
|
+
disableRipple: r.bool,
|
|
160
|
+
/**
|
|
161
|
+
* If given, uses a negative margin to counteract the padding on one
|
|
162
|
+
* side (this is often helpful for aligning the left or right
|
|
163
|
+
* side of the icon with content above or below, without ruining the border
|
|
164
|
+
* size and shape).
|
|
165
|
+
* @default false
|
|
166
|
+
*/
|
|
167
|
+
edge: r.oneOf(["end", "start", !1]),
|
|
168
|
+
/**
|
|
169
|
+
* The size of the component.
|
|
170
|
+
* `small` is equivalent to the dense button styling.
|
|
171
|
+
* @default 'medium'
|
|
172
|
+
*/
|
|
173
|
+
size: r.oneOfType([r.oneOf(["small", "medium", "large"]), r.string]),
|
|
174
|
+
/**
|
|
175
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
176
|
+
*/
|
|
177
|
+
sx: r.oneOfType([r.arrayOf(r.oneOfType([r.func, r.object, r.bool])), r.func, r.object])
|
|
178
|
+
});
|
|
179
|
+
const A = b;
|
|
180
|
+
export {
|
|
181
|
+
A as I
|
|
182
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";const e=require("./useThemeProps-jkB5q9ie.cjs"),T=require("react"),v=require("react/jsx-runtime"),P=require("./ButtonBase-DCL6Xlnm.cjs"),z=require("./refType-CHSN6ysS.cjs");function h(o){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const t in o)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(o,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>o[t]})}}return r.default=o,Object.freeze(r)}const l=h(T);function m(o){return e.generateUtilityClass("MuiIconButton",o)}const R=e.generateUtilityClasses("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),O=["edge","children","className","color","disabled","disableFocusRipple","size"],B=o=>{const{classes:r,disabled:t,color:s,edge:n,size:a}=o,i={root:["root",t&&"disabled",s!=="default"&&`color${e.capitalize(s)}`,n&&`edge${e.capitalize(n)}`,`size${e.capitalize(a)}`]};return e.composeClasses(i,m,r)},C=e.styled(P.ButtonBase,{name:"MuiIconButton",slot:"Root",overridesResolver:(o,r)=>{const{ownerState:t}=o;return[r.root,t.color!=="default"&&r[`color${e.capitalize(t.color)}`],t.edge&&r[`edge${e.capitalize(t.edge)}`],r[`size${e.capitalize(t.size)}`]]}})(({theme:o,ownerState:r})=>e._extends({textAlign:"center",flex:"0 0 auto",fontSize:o.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(o.vars||o).palette.action.active,transition:o.transitions.create("background-color",{duration:o.transitions.duration.shortest})},!r.disableRipple&&{"&:hover":{backgroundColor:o.vars?`rgba(${o.vars.palette.action.activeChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha(o.palette.action.active,o.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},r.edge==="start"&&{marginLeft:r.size==="small"?-3:-12},r.edge==="end"&&{marginRight:r.size==="small"?-3:-12}),({theme:o,ownerState:r})=>{var t;const s=(t=(o.vars||o).palette)==null?void 0:t[r.color];return e._extends({},r.color==="inherit"&&{color:"inherit"},r.color!=="inherit"&&r.color!=="default"&&e._extends({color:s==null?void 0:s.main},!r.disableRipple&&{"&:hover":e._extends({},s&&{backgroundColor:o.vars?`rgba(${s.mainChannel} / ${o.vars.palette.action.hoverOpacity})`:e.alpha(s.main,o.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),r.size==="small"&&{padding:5,fontSize:o.typography.pxToRem(18)},r.size==="large"&&{padding:12,fontSize:o.typography.pxToRem(28)},{[`&.${R.disabled}`]:{backgroundColor:"transparent",color:(o.vars||o).palette.action.disabled}})}),u=l.forwardRef(function(r,t){const s=e.useThemeProps({props:r,name:"MuiIconButton"}),{edge:n=!1,children:a,className:i,color:y="default",disabled:c=!1,disableFocusRipple:p=!1,size:g="medium"}=s,f=e._objectWithoutPropertiesLoose(s,O),d=e._extends({},s,{edge:n,color:y,disabled:c,disableFocusRipple:p,size:g}),b=B(d);return v.jsx(C,e._extends({className:e.clsx(b.root,i),centerRipple:!0,focusRipple:!p,disabled:c,ref:t,ownerState:d},f,{children:a}))});process.env.NODE_ENV!=="production"&&(u.propTypes={children:z.chainPropTypes(e.PropTypes.node,o=>l.Children.toArray(o.children).some(t=>l.isValidElement(t)&&t.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
|
|
2
|
+
`)):null),classes:e.PropTypes.object,className:e.PropTypes.string,color:e.PropTypes.oneOfType([e.PropTypes.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),e.PropTypes.string]),disabled:e.PropTypes.bool,disableFocusRipple:e.PropTypes.bool,disableRipple:e.PropTypes.bool,edge:e.PropTypes.oneOf(["end","start",!1]),size:e.PropTypes.oneOfType([e.PropTypes.oneOf(["small","medium","large"]),e.PropTypes.string]),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])});const x=u;exports.IconButton=x;
|