@deque/cauldron-react 5.7.1-canary.0dd10f2c → 5.7.1-canary.7be64db2

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/lib/index.js CHANGED
@@ -8961,9 +8961,17 @@ var TwoColumnPanel = React.forwardRef(function (_a, ref) {
8961
8961
  var columnRightRef = React.useRef(null);
8962
8962
  var columnLeft = React__default.Children.toArray(children).find(function (child) { return child.type === ColumnLeft; });
8963
8963
  var togglePanel = function () {
8964
+ var prefersReducedMotion = 'matchMedia' in window &&
8965
+ typeof matchMedia === 'function' &&
8966
+ matchMedia('(prefers-reduced-motion: reduce)').matches;
8964
8967
  if (isCollapsed) {
8965
8968
  setShowPanel(true);
8966
8969
  }
8970
+ else if (prefersReducedMotion) {
8971
+ // Immediately collapse the panel as we do not need to wait for css
8972
+ // transitions to complete
8973
+ setShowPanel(false);
8974
+ }
8967
8975
  // Set collapsed state on next tick so css transitions can be applied
8968
8976
  requestAnimationFrame(function () {
8969
8977
  var _a, _b;
@@ -11,7 +11,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
11
11
 
12
12
  const SvgTableSortAscending = props => /*#__PURE__*/React.createElement("svg", _extends({
13
13
  xmlns: "http://www.w3.org/2000/svg",
14
- viewBox: "0 0 320 512",
14
+ viewBox: "0 -100 320 720",
15
15
  height: 24,
16
16
  width: 24
17
17
  }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
@@ -11,7 +11,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
11
11
 
12
12
  const SvgTableSortDescending = props => /*#__PURE__*/React.createElement("svg", _extends({
13
13
  xmlns: "http://www.w3.org/2000/svg",
14
- viewBox: "0 0 320 512",
14
+ viewBox: "0 -100 320 720",
15
15
  height: 24,
16
16
  width: 24
17
17
  }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deque/cauldron-react",
3
- "version": "5.7.1-canary.0dd10f2c",
3
+ "version": "5.7.1-canary.7be64db2",
4
4
  "description": "Fully accessible react components library for Deque Cauldron",
5
5
  "homepage": "https://cauldron.dequelabs.com/",
6
6
  "publishConfig": {