@pie-lib/render-ui 4.40.0-mui-update.0 → 4.42.0-mui-update.0
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [4.42.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.41.0-mui-update.0...@pie-lib/render-ui@4.42.0-mui-update.0) (2025-11-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* remove carret, point to specific libs version ([09939a5](https://github.com/pie-framework/pie-lib/commit/09939a5aca19d7dda03d62c93d4d524f98dd69da))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [4.41.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.40.0-mui-update.0...@pie-lib/render-ui@4.41.0-mui-update.0) (2025-11-20)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* fix some popper components, fix some math toolbar color ([ed1df55](https://github.com/pie-framework/pie-lib/commit/ed1df558e272686a712767e347df49434790f334))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
# [4.40.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/render-ui@4.39.0-mui-update.0...@pie-lib/render-ui@4.40.0-mui-update.0) (2025-11-19)
|
|
7
29
|
|
|
8
30
|
|
package/lib/collapsible/index.js
CHANGED
|
@@ -81,7 +81,10 @@ var Collapsible = exports.Collapsible = /*#__PURE__*/function (_React$Component)
|
|
|
81
81
|
onClick: this.toggleExpanded
|
|
82
82
|
}, /*#__PURE__*/_react["default"].createElement(Title, null, title)), /*#__PURE__*/_react["default"].createElement(StyledCollapse, {
|
|
83
83
|
"in": this.state.expanded,
|
|
84
|
-
timeout:
|
|
84
|
+
timeout: {
|
|
85
|
+
enter: 225,
|
|
86
|
+
exit: 195
|
|
87
|
+
},
|
|
85
88
|
unmountOnExit: true
|
|
86
89
|
}, children));
|
|
87
90
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_styles","_Collapse","_mathRendering","_propTypes","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","Title","styled","_ref","theme","color","palette","primary","light","borderBottom","concat","cursor","StyledCollapse","Collapse","_ref2","paddingTop","spacing","Collapsible","exports","_React$Component","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","_defineProperty2","expanded","setState","state","_inherits2","_createClass2","key","value","componentDidMount","renderMath","root","componentDidUpdate","render","_this2","_this$props","props","labels","children","className","title","visible","hidden","createElement","ref","r","onClick","toggleExpanded","timeout","unmountOnExit","React","Component","PropTypes","string","object","shape","_default"],"sources":["../../src/collapsible/index.jsx"],"sourcesContent":["import React from 'react';\nimport { styled } from '@mui/material/styles';\nimport Collapse from '@mui/material/Collapse';\nimport { renderMath } from '@pie-lib/math-rendering';\nimport PropTypes from 'prop-types';\n\nconst Title = styled('span')(({ theme }) => ({\n color: theme.palette.primary.light,\n borderBottom: `1px dotted ${theme.palette.primary.light}`,\n cursor: 'pointer',\n}));\n\nconst StyledCollapse = styled(Collapse)(({ theme }) => ({\n paddingTop: theme.spacing(2),\n}));\n\nexport class Collapsible extends React.Component {\n static propTypes = {\n className: PropTypes.string,\n children: PropTypes.object,\n labels: PropTypes.shape({\n visible: PropTypes.string,\n hidden: PropTypes.string,\n }),\n };\n\n static defaultProps = {\n labels: {},\n };\n\n state = {\n expanded: false,\n };\n\n toggleExpanded = () => {\n this.setState((state) => ({ expanded: !state.expanded }));\n };\n\n componentDidMount() {\n renderMath(this.root);\n }\n\n componentDidUpdate() {\n renderMath(this.root);\n }\n\n render() {\n const { labels, children, className } = this.props;\n const title = this.state.expanded ? labels.visible || 'Hide' : labels.hidden || 'Show';\n\n return (\n <div className={className} ref={(r) => (this.root = r)}>\n <div onClick={this.toggleExpanded}>\n <Title>{title}</Title>\n </div>\n <StyledCollapse in={this.state.expanded} timeout
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_styles","_Collapse","_mathRendering","_propTypes","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","Title","styled","_ref","theme","color","palette","primary","light","borderBottom","concat","cursor","StyledCollapse","Collapse","_ref2","paddingTop","spacing","Collapsible","exports","_React$Component","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","_defineProperty2","expanded","setState","state","_inherits2","_createClass2","key","value","componentDidMount","renderMath","root","componentDidUpdate","render","_this2","_this$props","props","labels","children","className","title","visible","hidden","createElement","ref","r","onClick","toggleExpanded","timeout","enter","exit","unmountOnExit","React","Component","PropTypes","string","object","shape","_default"],"sources":["../../src/collapsible/index.jsx"],"sourcesContent":["import React from 'react';\nimport { styled } from '@mui/material/styles';\nimport Collapse from '@mui/material/Collapse';\nimport { renderMath } from '@pie-lib/math-rendering';\nimport PropTypes from 'prop-types';\n\nconst Title = styled('span')(({ theme }) => ({\n color: theme.palette.primary.light,\n borderBottom: `1px dotted ${theme.palette.primary.light}`,\n cursor: 'pointer',\n}));\n\nconst StyledCollapse = styled(Collapse)(({ theme }) => ({\n paddingTop: theme.spacing(2),\n}));\n\nexport class Collapsible extends React.Component {\n static propTypes = {\n className: PropTypes.string,\n children: PropTypes.object,\n labels: PropTypes.shape({\n visible: PropTypes.string,\n hidden: PropTypes.string,\n }),\n };\n\n static defaultProps = {\n labels: {},\n };\n\n state = {\n expanded: false,\n };\n\n toggleExpanded = () => {\n this.setState((state) => ({ expanded: !state.expanded }));\n };\n\n componentDidMount() {\n renderMath(this.root);\n }\n\n componentDidUpdate() {\n renderMath(this.root);\n }\n\n render() {\n const { labels, children, className } = this.props;\n const title = this.state.expanded ? labels.visible || 'Hide' : labels.hidden || 'Show';\n\n return (\n <div className={className} ref={(r) => (this.root = r)}>\n <div onClick={this.toggleExpanded}>\n <Title>{title}</Title>\n </div>\n <StyledCollapse in={this.state.expanded} timeout={{ enter: 225, exit: 195 }} unmountOnExit>\n {children}\n </StyledCollapse>\n </div>\n );\n }\n}\n\nexport default Collapsible;\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AACA,IAAAE,SAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAL,sBAAA,CAAAC,OAAA;AAAmC,SAAAK,WAAAC,CAAA,EAAAC,CAAA,EAAAC,CAAA,WAAAD,CAAA,OAAAE,gBAAA,aAAAF,CAAA,OAAAG,2BAAA,aAAAJ,CAAA,EAAAK,yBAAA,KAAAC,OAAA,CAAAC,SAAA,CAAAN,CAAA,EAAAC,CAAA,YAAAC,gBAAA,aAAAH,CAAA,EAAAQ,WAAA,IAAAP,CAAA,CAAAQ,KAAA,CAAAT,CAAA,EAAAE,CAAA;AAAA,SAAAG,0BAAA,cAAAL,CAAA,IAAAU,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAP,OAAA,CAAAC,SAAA,CAAAG,OAAA,iCAAAV,CAAA,aAAAK,yBAAA,YAAAA,0BAAA,aAAAL,CAAA;AAEnC,IAAMc,KAAK,GAAG,IAAAC,cAAM,EAAC,MAAM,CAAC,CAAC,UAAAC,IAAA;EAAA,IAAGC,KAAK,GAAAD,IAAA,CAALC,KAAK;EAAA,OAAQ;IAC3C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CAACE,MAAM;EAC1BnB,MAAM,EAAEiB,qBAAS,CAACG,KAAK,CAAC;IACtBhB,OAAO,EAAEa,qBAAS,CAACC,MAAM;IACzBb,MAAM,EAAEY,qBAAS,CAACC;EACpB,CAAC;AACH,CAAC;AAAA,IAAAlC,gBAAA,aARUX,WAAW,kBAUA;EACpB2B,MAAM,EAAE,CAAC;AACX,CAAC;AAAA,IAAAqB,QAAA,GAAA/C,OAAA,cAmCYD,WAAW","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/render-ui",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.42.0-mui-update.0",
|
|
4
4
|
"description": "Some shared ui elements when rendering - but not worthy of their own package yet.",
|
|
5
5
|
"module": "src/index.js",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"@emotion/styled": "^11.14.1",
|
|
14
14
|
"@mui/icons-material": "^7.3.4",
|
|
15
15
|
"@mui/material": "^7.3.4",
|
|
16
|
-
"@pie-lib/icons": "^2.
|
|
17
|
-
"@pie-lib/math-rendering": "^3.
|
|
18
|
-
"@pie-lib/test-utils": "^0.
|
|
16
|
+
"@pie-lib/icons": "^2.31.0-mui-update.0",
|
|
17
|
+
"@pie-lib/math-rendering": "^3.33.0-mui-update.0",
|
|
18
|
+
"@pie-lib/test-utils": "^0.29.0-mui-update.0",
|
|
19
19
|
"classnames": "^2.2.6",
|
|
20
20
|
"debug": "^4.1.1",
|
|
21
21
|
"lodash": "^4.17.11",
|
|
@@ -31,5 +31,5 @@
|
|
|
31
31
|
"react": "^18.2.0",
|
|
32
32
|
"react-dom": "^18.2.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "58f88b0f6effe31eba4cc6a6b51c9d18acec1450"
|
|
35
35
|
}
|
|
@@ -53,7 +53,7 @@ export class Collapsible extends React.Component {
|
|
|
53
53
|
<div onClick={this.toggleExpanded}>
|
|
54
54
|
<Title>{title}</Title>
|
|
55
55
|
</div>
|
|
56
|
-
<StyledCollapse in={this.state.expanded} timeout=
|
|
56
|
+
<StyledCollapse in={this.state.expanded} timeout={{ enter: 225, exit: 195 }} unmountOnExit>
|
|
57
57
|
{children}
|
|
58
58
|
</StyledCollapse>
|
|
59
59
|
</div>
|