@instructure/ui-expandable 8.56.2-pr-snapshot-1721749364069 → 8.56.2
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 +1 -1
- package/lib/Expandable/index.js +4 -4
- package/lib/Expandable/props.js +2 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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
|
-
## [8.56.2
|
|
6
|
+
## [8.56.2](https://github.com/instructure/instructure-ui/compare/v8.56.1...v8.56.2) (2024-08-06)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-expandable
|
|
9
9
|
|
package/lib/Expandable/index.js
CHANGED
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = exports.Expandable = void 0;
|
|
7
7
|
var _react = require("react");
|
|
8
|
-
var
|
|
8
|
+
var _createChainedFunction = require("@instructure/ui-utils/lib/createChainedFunction.js");
|
|
9
9
|
var _props = require("./props");
|
|
10
|
-
var
|
|
10
|
+
var _withDeterministicId = require("@instructure/ui-react-utils/lib/DeterministicIdContext/withDeterministicId.js");
|
|
11
11
|
var _dec, _class, _class2;
|
|
12
12
|
/*
|
|
13
13
|
* The MIT License (MIT)
|
|
@@ -43,7 +43,7 @@ const toggleExpanded = ({
|
|
|
43
43
|
category: components/utilities
|
|
44
44
|
---
|
|
45
45
|
**/
|
|
46
|
-
let Expandable = exports.Expandable = (_dec = (0,
|
|
46
|
+
let Expandable = exports.Expandable = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec(_class = (_class2 = class Expandable extends _react.Component {
|
|
47
47
|
constructor(props) {
|
|
48
48
|
super(props);
|
|
49
49
|
this._contentId = void 0;
|
|
@@ -88,7 +88,7 @@ let Expandable = exports.Expandable = (_dec = (0, _uiReactUtils.withDeterministi
|
|
|
88
88
|
return {
|
|
89
89
|
'aria-controls': this._contentId,
|
|
90
90
|
'aria-expanded': this.expanded,
|
|
91
|
-
onClick: (0,
|
|
91
|
+
onClick: (0, _createChainedFunction.createChainedFunction)(this.handleToggle, props.onClick),
|
|
92
92
|
...props
|
|
93
93
|
};
|
|
94
94
|
},
|
package/lib/Expandable/props.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.propTypes = exports.allowedProps = void 0;
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var
|
|
9
|
+
var _controllable = require("@instructure/ui-prop-types/lib/controllable.js");
|
|
10
10
|
/*
|
|
11
11
|
* The MIT License (MIT)
|
|
12
12
|
*
|
|
@@ -32,7 +32,7 @@ var _uiPropTypes = require("@instructure/ui-prop-types");
|
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
34
|
const propTypes = exports.propTypes = {
|
|
35
|
-
expanded: (0,
|
|
35
|
+
expanded: (0, _controllable.controllable)(_propTypes.default.bool, 'onToggle', 'defaultExpanded'),
|
|
36
36
|
defaultExpanded: _propTypes.default.bool,
|
|
37
37
|
onToggle: _propTypes.default.func,
|
|
38
38
|
children: _propTypes.default.func,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-expandable",
|
|
3
|
-
"version": "8.56.2
|
|
3
|
+
"version": "8.56.2",
|
|
4
4
|
"description": "A utility component for show/hide functionality",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@babel/runtime": "^7.23.2",
|
|
27
|
-
"@instructure/shared-types": "8.56.2
|
|
28
|
-
"@instructure/ui-prop-types": "8.56.2
|
|
29
|
-
"@instructure/ui-react-utils": "8.56.2
|
|
30
|
-
"@instructure/ui-testable": "8.56.2
|
|
31
|
-
"@instructure/ui-utils": "8.56.2
|
|
32
|
-
"@instructure/uid": "8.56.2
|
|
27
|
+
"@instructure/shared-types": "8.56.2",
|
|
28
|
+
"@instructure/ui-prop-types": "8.56.2",
|
|
29
|
+
"@instructure/ui-react-utils": "8.56.2",
|
|
30
|
+
"@instructure/ui-testable": "8.56.2",
|
|
31
|
+
"@instructure/ui-utils": "8.56.2",
|
|
32
|
+
"@instructure/uid": "8.56.2",
|
|
33
33
|
"prop-types": "^15.8.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@instructure/ui-babel-preset": "8.56.2
|
|
37
|
-
"@instructure/ui-color-utils": "8.56.2
|
|
36
|
+
"@instructure/ui-babel-preset": "8.56.2",
|
|
37
|
+
"@instructure/ui-color-utils": "8.56.2",
|
|
38
38
|
"@testing-library/jest-dom": "^6.1.4",
|
|
39
39
|
"@testing-library/react": "^14.1.2",
|
|
40
40
|
"@testing-library/user-event": "^14.5.1"
|