@instructure/ui-expandable 10.13.0 → 10.13.1-pr-snapshot-1741357986437
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 +8 -0
- package/lib/Expandable/index.js +4 -4
- package/lib/Expandable/props.js +2 -2
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
## [10.13.1-pr-snapshot-1741357986437](https://github.com/instructure/instructure-ui/compare/v10.13.0...v10.13.1-pr-snapshot-1741357986437) (2025-03-07)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @instructure/ui-expandable
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [10.13.0](https://github.com/instructure/instructure-ui/compare/v10.12.0...v10.13.0) (2025-03-06)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @instructure/ui-expandable
|
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 _uiUtils = require("@instructure/ui-utils");
|
|
9
9
|
var _props = require("./props");
|
|
10
|
-
var
|
|
10
|
+
var _uiReactUtils = require("@instructure/ui-react-utils");
|
|
11
11
|
var _dec, _class, _Expandable;
|
|
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, _uiReactUtils.withDeterministicId)(), _dec(_class = (_Expandable = class Expandable extends _react.Component {
|
|
47
47
|
constructor(props) {
|
|
48
48
|
super(props);
|
|
49
49
|
this._contentId = void 0;
|
|
@@ -90,7 +90,7 @@ let Expandable = exports.Expandable = (_dec = (0, _withDeterministicId.withDeter
|
|
|
90
90
|
...props,
|
|
91
91
|
'aria-controls': this._contentId,
|
|
92
92
|
'aria-expanded': this.expanded,
|
|
93
|
-
onClick: (0,
|
|
93
|
+
onClick: (0, _uiUtils.createChainedFunction)(this.handleToggle, props.onClick)
|
|
94
94
|
};
|
|
95
95
|
},
|
|
96
96
|
getDetailsProps: () => {
|
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 _uiPropTypes = require("@instructure/ui-prop-types");
|
|
10
10
|
/*
|
|
11
11
|
* The MIT License (MIT)
|
|
12
12
|
*
|
|
@@ -32,7 +32,7 @@ var _controllable = require("@instructure/ui-prop-types/lib/controllable.js");
|
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
34
|
const propTypes = exports.propTypes = {
|
|
35
|
-
expanded: (0,
|
|
35
|
+
expanded: (0, _uiPropTypes.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": "10.13.
|
|
3
|
+
"version": "10.13.1-pr-snapshot-1741357986437",
|
|
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.26.0",
|
|
27
|
-
"@instructure/shared-types": "10.13.
|
|
28
|
-
"@instructure/ui-prop-types": "10.13.
|
|
29
|
-
"@instructure/ui-react-utils": "10.13.
|
|
30
|
-
"@instructure/ui-testable": "10.13.
|
|
31
|
-
"@instructure/ui-utils": "10.13.
|
|
32
|
-
"@instructure/uid": "10.13.
|
|
27
|
+
"@instructure/shared-types": "10.13.1-pr-snapshot-1741357986437",
|
|
28
|
+
"@instructure/ui-prop-types": "10.13.1-pr-snapshot-1741357986437",
|
|
29
|
+
"@instructure/ui-react-utils": "10.13.1-pr-snapshot-1741357986437",
|
|
30
|
+
"@instructure/ui-testable": "10.13.1-pr-snapshot-1741357986437",
|
|
31
|
+
"@instructure/ui-utils": "10.13.1-pr-snapshot-1741357986437",
|
|
32
|
+
"@instructure/uid": "10.13.1-pr-snapshot-1741357986437",
|
|
33
33
|
"prop-types": "^15.8.1"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@instructure/ui-babel-preset": "10.13.
|
|
37
|
-
"@instructure/ui-color-utils": "10.13.
|
|
36
|
+
"@instructure/ui-babel-preset": "10.13.1-pr-snapshot-1741357986437",
|
|
37
|
+
"@instructure/ui-color-utils": "10.13.1-pr-snapshot-1741357986437",
|
|
38
38
|
"@testing-library/jest-dom": "^6.6.3",
|
|
39
39
|
"@testing-library/react": "^16.0.1",
|
|
40
40
|
"@testing-library/user-event": "^14.5.2",
|