@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 +1 -1
- package/es/Position/index.js +4 -4
- package/es/PositionPropTypes.js +4 -0
- package/lib/Position/index.js +4 -4
- package/lib/PositionPropTypes.js +4 -0
- package/package.json +17 -17
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Position/PositionContentLocator.d.ts +36 -36
- package/types/Position/PositionLocator.d.ts +144 -144
- package/types/Position/PositionTargetLocator.d.ts +36 -36
- package/types/Position/index.d.ts +1 -1
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-
|
|
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
|
|
package/es/Position/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _dec, _dec2, _dec3, _class,
|
|
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 = (
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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 };
|
package/es/PositionPropTypes.js
CHANGED
|
@@ -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',
|
package/lib/Position/index.js
CHANGED
|
@@ -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,
|
|
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 = (
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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;
|
package/lib/PositionPropTypes.js
CHANGED
|
@@ -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-
|
|
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.
|
|
27
|
-
"@instructure/debounce": "9.0.2-snapshot-
|
|
28
|
-
"@instructure/emotion": "9.0.2-snapshot-
|
|
29
|
-
"@instructure/shared-types": "9.0.2-snapshot-
|
|
30
|
-
"@instructure/ui-dom-utils": "9.0.2-snapshot-
|
|
31
|
-
"@instructure/ui-portal": "9.0.2-snapshot-
|
|
32
|
-
"@instructure/ui-prop-types": "9.0.2-snapshot-
|
|
33
|
-
"@instructure/ui-react-utils": "9.0.2-snapshot-
|
|
34
|
-
"@instructure/ui-testable": "9.0.2-snapshot-
|
|
35
|
-
"@instructure/ui-utils": "9.0.2-snapshot-
|
|
36
|
-
"@instructure/uid": "9.0.2-snapshot-
|
|
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-
|
|
41
|
-
"@instructure/ui-color-utils": "9.0.2-snapshot-
|
|
42
|
-
"@instructure/ui-test-locator": "9.0.2-snapshot-
|
|
43
|
-
"@instructure/ui-test-utils": "9.0.2-snapshot-
|
|
44
|
-
"@instructure/ui-themes": "9.0.2-snapshot-
|
|
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
|
},
|