@instructure/ui-position 9.0.2-snapshot-2 → 9.0.2-snapshot-4

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,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
- ## [9.0.2-snapshot-2](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.0.2-snapshot-2) (2024-05-28)
6
+ ## [9.0.2-snapshot-4](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.0.2-snapshot-4) (2024-06-05)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-position
9
9
 
@@ -1,4 +1,4 @@
1
- var _dec, _dec2, _dec3, _class, _class2;
1
+ var _dec, _dec2, _dec3, _class, _Position;
2
2
  /*
3
3
  * The MIT License (MIT)
4
4
  *
@@ -41,7 +41,7 @@ import { calculateElementPosition } from '../calculateElementPosition';
41
41
  category: components/utilities
42
42
  ---
43
43
  **/
44
- let Position = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec3 = testable(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Position extends Component {
44
+ let Position = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, generateComponentTheme), _dec3 = testable(), _dec(_class = _dec2(_class = _dec3(_class = (_Position = class Position extends Component {
45
45
  constructor(props) {
46
46
  super(props);
47
47
  this.ref = null;
@@ -214,7 +214,7 @@ let Position = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, g
214
214
  ref: this.handleRef
215
215
  }), this.renderTarget(), this.renderContent());
216
216
  }
217
- }, _class2.displayName = "Position", _class2.componentId = 'Position', _class2.allowedProps = allowedProps, _class2.propTypes = propTypes, _class2.defaultProps = {
217
+ }, _Position.displayName = "Position", _Position.componentId = 'Position', _Position.allowedProps = allowedProps, _Position.propTypes = propTypes, _Position.defaultProps = {
218
218
  placement: 'bottom center',
219
219
  mountNode: null,
220
220
  insertAt: 'bottom',
@@ -224,6 +224,6 @@ let Position = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyle, g
224
224
  shouldTrackPosition: true,
225
225
  shouldPositionOverTarget: false,
226
226
  children: null
227
- }, _class2.locatorAttribute = 'data-position', _class2.targetLocatorAttribute = 'data-position-target', _class2.contentLocatorAttribute = 'data-position-content', _class2)) || _class) || _class) || _class);
227
+ }, _Position.locatorAttribute = 'data-position', _Position.targetLocatorAttribute = 'data-position-target', _Position.contentLocatorAttribute = 'data-position-content', _Position)) || _class) || _class) || _class);
228
228
  export default Position;
229
229
  export { Position };
@@ -45,13 +45,17 @@ const PositionPropTypes = {
45
45
  */
46
46
 
47
47
  // TODO: merge with PropTypes once react-docgen can parse `typeof array[number]`
48
+
48
49
  /**
49
50
  * An element or a function returning an element to use as the mount node
50
51
  */
52
+
51
53
  /**
52
54
  * The parent in which to constrain a placement
53
55
  */
56
+
54
57
  // TODO: merge with PropTypes once react-docgen can parse `typeof array[number]`
58
+
55
59
  const mirrorMap = {
56
60
  center: 'center',
57
61
  start: 'end',
@@ -22,7 +22,7 @@ var _styles = _interopRequireDefault(require("./styles"));
22
22
  var _theme = _interopRequireDefault(require("./theme"));
23
23
  var _props = require("./props");
24
24
  var _calculateElementPosition = require("../calculateElementPosition");
25
- var _dec, _dec2, _dec3, _class, _class2;
25
+ var _dec, _dec2, _dec3, _class, _Position;
26
26
  /*
27
27
  * The MIT License (MIT)
28
28
  *
@@ -52,7 +52,7 @@ var _dec, _dec2, _dec3, _class, _class2;
52
52
  category: components/utilities
53
53
  ---
54
54
  **/
55
- let Position = exports.Position = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec3 = (0, _testable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Position extends _react.Component {
55
+ let Position = exports.Position = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec3 = (0, _testable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_Position = class Position extends _react.Component {
56
56
  constructor(props) {
57
57
  super(props);
58
58
  this.ref = null;
@@ -225,7 +225,7 @@ let Position = exports.Position = (_dec = (0, _withDeterministicId.withDetermini
225
225
  ref: this.handleRef
226
226
  }), this.renderTarget(), this.renderContent());
227
227
  }
228
- }, _class2.displayName = "Position", _class2.componentId = 'Position', _class2.allowedProps = _props.allowedProps, _class2.propTypes = _props.propTypes, _class2.defaultProps = {
228
+ }, _Position.displayName = "Position", _Position.componentId = 'Position', _Position.allowedProps = _props.allowedProps, _Position.propTypes = _props.propTypes, _Position.defaultProps = {
229
229
  placement: 'bottom center',
230
230
  mountNode: null,
231
231
  insertAt: 'bottom',
@@ -235,5 +235,5 @@ let Position = exports.Position = (_dec = (0, _withDeterministicId.withDetermini
235
235
  shouldTrackPosition: true,
236
236
  shouldPositionOverTarget: false,
237
237
  children: null
238
- }, _class2.locatorAttribute = 'data-position', _class2.targetLocatorAttribute = 'data-position-target', _class2.contentLocatorAttribute = 'data-position-content', _class2)) || _class) || _class) || _class);
238
+ }, _Position.locatorAttribute = 'data-position', _Position.targetLocatorAttribute = 'data-position-target', _Position.contentLocatorAttribute = 'data-position-content', _Position)) || _class) || _class) || _class);
239
239
  var _default = exports.default = Position;
@@ -52,13 +52,17 @@ const PositionPropTypes = exports.PositionPropTypes = {
52
52
  */
53
53
 
54
54
  // TODO: merge with PropTypes once react-docgen can parse `typeof array[number]`
55
+
55
56
  /**
56
57
  * An element or a function returning an element to use as the mount node
57
58
  */
59
+
58
60
  /**
59
61
  * The parent in which to constrain a placement
60
62
  */
63
+
61
64
  // TODO: merge with PropTypes once react-docgen can parse `typeof array[number]`
65
+
62
66
  const mirrorMap = exports.mirrorMap = {
63
67
  center: 'center',
64
68
  start: 'end',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-position",
3
- "version": "9.0.2-snapshot-2",
3
+ "version": "9.0.2-snapshot-4",
4
4
  "description": "A component for positioning content with respect to a designated target.",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,25 +23,25 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
- "@babel/runtime": "^7.23.2",
27
- "@instructure/debounce": "9.0.2-snapshot-2",
28
- "@instructure/emotion": "9.0.2-snapshot-2",
29
- "@instructure/shared-types": "9.0.2-snapshot-2",
30
- "@instructure/ui-dom-utils": "9.0.2-snapshot-2",
31
- "@instructure/ui-portal": "9.0.2-snapshot-2",
32
- "@instructure/ui-prop-types": "9.0.2-snapshot-2",
33
- "@instructure/ui-react-utils": "9.0.2-snapshot-2",
34
- "@instructure/ui-testable": "9.0.2-snapshot-2",
35
- "@instructure/ui-utils": "9.0.2-snapshot-2",
36
- "@instructure/uid": "9.0.2-snapshot-2",
26
+ "@babel/runtime": "^7.24.5",
27
+ "@instructure/debounce": "9.0.2-snapshot-4",
28
+ "@instructure/emotion": "9.0.2-snapshot-4",
29
+ "@instructure/shared-types": "9.0.2-snapshot-4",
30
+ "@instructure/ui-dom-utils": "9.0.2-snapshot-4",
31
+ "@instructure/ui-portal": "9.0.2-snapshot-4",
32
+ "@instructure/ui-prop-types": "9.0.2-snapshot-4",
33
+ "@instructure/ui-react-utils": "9.0.2-snapshot-4",
34
+ "@instructure/ui-testable": "9.0.2-snapshot-4",
35
+ "@instructure/ui-utils": "9.0.2-snapshot-4",
36
+ "@instructure/uid": "9.0.2-snapshot-4",
37
37
  "prop-types": "^15.8.1"
38
38
  },
39
39
  "devDependencies": {
40
- "@instructure/ui-babel-preset": "9.0.2-snapshot-2",
41
- "@instructure/ui-color-utils": "9.0.2-snapshot-2",
42
- "@instructure/ui-test-locator": "9.0.2-snapshot-2",
43
- "@instructure/ui-test-utils": "9.0.2-snapshot-2",
44
- "@instructure/ui-themes": "9.0.2-snapshot-2",
40
+ "@instructure/ui-babel-preset": "9.0.2-snapshot-4",
41
+ "@instructure/ui-color-utils": "9.0.2-snapshot-4",
42
+ "@instructure/ui-test-locator": "9.0.2-snapshot-4",
43
+ "@instructure/ui-test-utils": "9.0.2-snapshot-4",
44
+ "@instructure/ui-themes": "9.0.2-snapshot-4",
45
45
  "@testing-library/jest-dom": "^6.1.4",
46
46
  "@testing-library/react": "^14.1.2"
47
47
  },