@instructure/ui-motion 8.10.1-snapshot.8 → 8.10.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 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
+ ## [8.10.2](https://github.com/instructure/instructure-ui/compare/v8.10.1...v8.10.2) (2021-10-01)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-motion
9
+
10
+ ## [8.10.1](https://github.com/instructure/instructure-ui/compare/v8.10.0...v8.10.1) (2021-10-01)
11
+
12
+ **Note:** Version bump only for package @instructure/ui-motion
13
+
6
14
  # [8.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28)
7
15
 
8
16
  **Note:** Version bump only for package @instructure/ui-motion
@@ -21,7 +21,7 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- import React from 'react';
24
+ import React, { createRef } from 'react';
25
25
  import { getClassList } from '@instructure/ui-dom-utils';
26
26
  import { ensureSingleChild, safeCloneElement } from '@instructure/ui-react-utils';
27
27
  import { allowedProps, propTypes } from './props';
@@ -168,6 +168,8 @@ class BaseTransition extends React.Component {
168
168
  });
169
169
  }
170
170
  };
171
+
172
+ this.ref = /*#__PURE__*/createRef();
171
173
  }
172
174
 
173
175
  componentDidMount() {
@@ -259,7 +261,8 @@ class BaseTransition extends React.Component {
259
261
 
260
262
  renderChildren() {
261
263
  return safeCloneElement(ensureSingleChild(this.props.children), {
262
- 'aria-hidden': !this.props.in ? true : null
264
+ 'aria-hidden': !this.props.in ? true : null,
265
+ ref: this.ref
263
266
  });
264
267
  }
265
268
 
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
4
 
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.BaseTransition = exports.default = void 0;
9
9
 
10
- var _react = _interopRequireDefault(require("react"));
10
+ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _getClassList = require("@instructure/ui-dom-utils/lib/getClassList.js");
13
13
 
@@ -183,6 +183,8 @@ class BaseTransition extends _react.default.Component {
183
183
  });
184
184
  }
185
185
  };
186
+
187
+ this.ref = /*#__PURE__*/(0, _react.createRef)();
186
188
  }
187
189
 
188
190
  componentDidMount() {
@@ -274,7 +276,8 @@ class BaseTransition extends _react.default.Component {
274
276
 
275
277
  renderChildren() {
276
278
  return (0, _safeCloneElement.safeCloneElement)((0, _ensureSingleChild.ensureSingleChild)(this.props.children), {
277
- 'aria-hidden': !this.props.in ? true : null
279
+ 'aria-hidden': !this.props.in ? true : null,
280
+ ref: this.ref
278
281
  });
279
282
  }
280
283
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-motion",
3
- "version": "8.10.1-snapshot.8+21f46f4e3",
3
+ "version": "8.10.2",
4
4
  "description": "A UI component library made by Instructure Inc.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "type": "commonjs",
@@ -24,19 +24,19 @@
24
24
  },
25
25
  "license": "MIT",
26
26
  "devDependencies": {
27
- "@instructure/ui-babel-preset": "8.10.1-snapshot.8+21f46f4e3",
28
- "@instructure/ui-test-locator": "8.10.1-snapshot.8+21f46f4e3",
29
- "@instructure/ui-test-utils": "8.10.1-snapshot.8+21f46f4e3",
30
- "@instructure/ui-themes": "8.10.1-snapshot.8+21f46f4e3"
27
+ "@instructure/ui-babel-preset": "8.10.2",
28
+ "@instructure/ui-test-locator": "8.10.2",
29
+ "@instructure/ui-test-utils": "8.10.2",
30
+ "@instructure/ui-themes": "8.10.2"
31
31
  },
32
32
  "dependencies": {
33
33
  "@babel/runtime": "^7.13.10",
34
- "@instructure/emotion": "8.10.1-snapshot.8+21f46f4e3",
35
- "@instructure/shared-types": "8.10.1-snapshot.8+21f46f4e3",
36
- "@instructure/ui-dom-utils": "8.10.1-snapshot.8+21f46f4e3",
37
- "@instructure/ui-react-utils": "8.10.1-snapshot.8+21f46f4e3",
38
- "@instructure/ui-testable": "8.10.1-snapshot.8+21f46f4e3",
39
- "@instructure/ui-utils": "8.10.1-snapshot.8+21f46f4e3",
34
+ "@instructure/emotion": "8.10.2",
35
+ "@instructure/shared-types": "8.10.2",
36
+ "@instructure/ui-dom-utils": "8.10.2",
37
+ "@instructure/ui-react-utils": "8.10.2",
38
+ "@instructure/ui-testable": "8.10.2",
39
+ "@instructure/ui-utils": "8.10.2",
40
40
  "prop-types": "^15"
41
41
  },
42
42
  "peerDependencies": {
@@ -45,6 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "sideEffects": false,
49
- "gitHead": "21f46f4e342898b019ab943a7e69a455621d9576"
48
+ "sideEffects": false
50
49
  }
@@ -22,7 +22,7 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- import React from 'react'
25
+ import React, { createRef } from 'react'
26
26
 
27
27
  import { getClassList } from '@instructure/ui-dom-utils'
28
28
  import {
@@ -311,10 +311,11 @@ class BaseTransition extends React.Component<BaseTransitionProps> {
311
311
  return null
312
312
  }
313
313
  }
314
-
314
+ ref = createRef()
315
315
  renderChildren() {
316
316
  return safeCloneElement(ensureSingleChild(this.props.children)!, {
317
- 'aria-hidden': !this.props.in ? true : null
317
+ 'aria-hidden': !this.props.in ? true : null,
318
+ ref: this.ref
318
319
  })
319
320
  }
320
321
 
@@ -93,6 +93,7 @@ declare class BaseTransition extends React.Component<BaseTransitionProps> {
93
93
  exit: (initialState: any) => void;
94
94
  transitionEnabled(toState: any): boolean | undefined;
95
95
  getTransitionClassName(transitionState: any): string | null | undefined;
96
+ ref: React.RefObject<unknown>;
96
97
  renderChildren(): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
97
98
  render(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
98
99
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Transition/BaseTransition/index.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AASzB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AASlD;;;;;;GAMG;AACH,cAAM,cAAe,SAAQ,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC;IAC/D,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;MAqBlB;IAED,MAAM,CAAC,MAAM;;;;;MAAS;IAEtB,SAAS,UAAK;IAEd,KAAK;;MAEJ;IAED,iBAAiB;IAKjB,uBAAuB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA;IAS5C,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,iBAAiB,KAAA;IAc1D,oBAAoB;IASpB,eAAe,sDAOd;IAED,UAAU,+FAgDT;IAGD,eAAe,CAAC,mBAAmB,KAAA;IAoBnC,KAAK,8BAyCJ;IAGD,IAAI,8BAmCH;IAGD,iBAAiB,CAAC,OAAO,KAAA;IAgBzB,sBAAsB,CAAC,eAAe,KAAA;IAgBtC,cAAc;IAMd,MAAM;CAWP;AAED,eAAe,cAAc,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Transition/BaseTransition/index.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAoB,MAAM,OAAO,CAAA;AASxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AASlD;;;;;;GAMG;AACH,cAAM,cAAe,SAAQ,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC;IAC/D,MAAM,CAAC,SAAS;;;;;;;;;;;;;;;;;;;;;;OAAY;IAC5B,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;;;;;;SAAe;IAClC,MAAM,CAAC,YAAY;;;;;;;;;;;;;;;;;MAqBlB;IAED,MAAM,CAAC,MAAM;;;;;MAAS;IAEtB,SAAS,UAAK;IAEd,KAAK;;MAEJ;IAED,iBAAiB;IAKjB,uBAAuB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA;IAS5C,kBAAkB,CAAC,SAAS,KAAA,EAAE,SAAS,KAAA,EAAE,iBAAiB,KAAA;IAc1D,oBAAoB;IASpB,eAAe,sDAOd;IAED,UAAU,+FAgDT;IAGD,eAAe,CAAC,mBAAmB,KAAA;IAoBnC,KAAK,8BAyCJ;IAGD,IAAI,8BAmCH;IAGD,iBAAiB,CAAC,OAAO,KAAA;IAgBzB,sBAAsB,CAAC,eAAe,KAAA;IAetC,GAAG,2BAAc;IACjB,cAAc;IAOd,MAAM;CAWP;AAED,eAAe,cAAc,CAAA;AAC7B,OAAO,EAAE,cAAc,EAAE,CAAA"}
package/LICENSE.md DELETED
@@ -1,27 +0,0 @@
1
- ---
2
- title: The MIT License (MIT)
3
- category: Getting Started
4
- order: 9
5
- ---
6
-
7
- # The MIT License (MIT)
8
-
9
- Copyright (c) 2015 Instructure, Inc.
10
-
11
- **Permission is hereby granted, free of charge, to any person obtaining a copy
12
- of this software and associated documentation files (the "Software"), to deal
13
- in the Software without restriction, including without limitation the rights
14
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- copies of the Software, and to permit persons to whom the Software is
16
- furnished to do so, subject to the following conditions.**
17
-
18
- The above copyright notice and this permission notice shall be included in all
19
- copies or substantial portions of the Software.
20
-
21
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- SOFTWARE.