@instructure/ui-options 8.46.2-snapshot-5 → 8.46.2-snapshot-7
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/lib/Options/Item/OptionsItemLocator.js +2 -3
- package/lib/Options/Item/__examples__/Item.examples.js +2 -3
- package/lib/Options/Item/index.js +2 -4
- package/lib/Options/Item/locator.js +1 -2
- package/lib/Options/Item/props.js +2 -4
- package/lib/Options/Item/styles.js +1 -2
- package/lib/Options/Item/theme.js +1 -2
- package/lib/Options/OptionsLocator.js +2 -3
- package/lib/Options/Separator/index.js +2 -4
- package/lib/Options/Separator/props.js +2 -4
- package/lib/Options/Separator/styles.js +1 -2
- package/lib/Options/Separator/theme.js +1 -2
- package/lib/Options/__examples__/Options.examples.js +2 -3
- package/lib/Options/index.js +2 -4
- package/lib/Options/locator.js +1 -2
- package/lib/Options/props.js +2 -4
- package/lib/Options/styles.js +1 -2
- package/lib/Options/theme.js +1 -2
- package/package.json +14 -14
- package/tsconfig.build.tsbuildinfo +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
|
-
## [8.46.2-snapshot-
|
|
6
|
+
## [8.46.2-snapshot-7](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.46.2-snapshot-7) (2023-10-20)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-options
|
|
9
9
|
|
|
@@ -32,9 +32,8 @@ var _index = require("./index");
|
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
34
|
// @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
35
|
-
const OptionsItemLocator = (0, _uiTestLocator.locator)(_index.Item.selector, {
|
|
35
|
+
const OptionsItemLocator = exports.OptionsItemLocator = (0, _uiTestLocator.locator)(_index.Item.selector, {
|
|
36
36
|
findNestedOptions: (...args) => {
|
|
37
37
|
return _OptionsLocator.OptionsLocator.find(...args);
|
|
38
38
|
}
|
|
39
|
-
});
|
|
40
|
-
exports.OptionsItemLocator = OptionsItemLocator;
|
|
39
|
+
});
|
|
@@ -28,7 +28,7 @@ var _uiIcons = require("@instructure/ui-icons");
|
|
|
28
28
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
29
29
|
* SOFTWARE.
|
|
30
30
|
*/
|
|
31
|
-
var _default = {
|
|
31
|
+
var _default = exports.default = {
|
|
32
32
|
maxExamplesPerPage: 50,
|
|
33
33
|
propValues: {
|
|
34
34
|
renderAfterLabel: [null, _uiIcons.IconArrowOpenEndSolid],
|
|
@@ -69,5 +69,4 @@ var _default = {
|
|
|
69
69
|
}
|
|
70
70
|
return false;
|
|
71
71
|
}
|
|
72
|
-
};
|
|
73
|
-
exports.default = _default;
|
|
72
|
+
};
|
|
@@ -44,7 +44,7 @@ id: Options.Item
|
|
|
44
44
|
---
|
|
45
45
|
@tsProps
|
|
46
46
|
**/
|
|
47
|
-
let Item = (_dec = (0, _uiReactUtils.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec3 = (0, _uiTestable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Item extends _react.Component {
|
|
47
|
+
let Item = exports.Item = (_dec = (0, _uiReactUtils.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec3 = (0, _uiTestable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Item extends _react.Component {
|
|
48
48
|
constructor(props) {
|
|
49
49
|
super(props);
|
|
50
50
|
this.ref = null;
|
|
@@ -121,6 +121,4 @@ let Item = (_dec = (0, _uiReactUtils.withDeterministicId)(), _dec2 = (0, _emotio
|
|
|
121
121
|
beforeLabelContentVAlign: 'center',
|
|
122
122
|
afterLabelContentVAlign: 'center'
|
|
123
123
|
}, _class2)) || _class) || _class) || _class);
|
|
124
|
-
exports.
|
|
125
|
-
var _default = Item;
|
|
126
|
-
exports.default = _default;
|
|
124
|
+
var _default = exports.default = Item;
|
|
@@ -34,5 +34,4 @@ var _OptionsItemLocator = require("./OptionsItemLocator");
|
|
|
34
34
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
35
35
|
* SOFTWARE.
|
|
36
36
|
*/
|
|
37
|
-
var _default = _OptionsItemLocator.OptionsItemLocator;
|
|
38
|
-
exports.default = _default;
|
|
37
|
+
var _default = exports.default = _OptionsItemLocator.OptionsItemLocator;
|
|
@@ -30,7 +30,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
30
30
|
* SOFTWARE.
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
-
const propTypes = {
|
|
33
|
+
const propTypes = exports.propTypes = {
|
|
34
34
|
as: _propTypes.default.elementType,
|
|
35
35
|
variant: _propTypes.default.oneOf(['default', 'highlighted', 'selected', 'disabled', 'highlighted-disabled']),
|
|
36
36
|
role: _propTypes.default.string,
|
|
@@ -44,6 +44,4 @@ const propTypes = {
|
|
|
44
44
|
elementRef: _propTypes.default.func,
|
|
45
45
|
children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func])
|
|
46
46
|
};
|
|
47
|
-
exports.
|
|
48
|
-
const allowedProps = ['as', 'variant', 'role', 'renderBeforeLabel', 'renderAfterLabel', 'beforeLabelContentVAlign', 'afterLabelContentVAlign', 'description', 'descriptionRole', 'href', 'elementRef', 'children'];
|
|
49
|
-
exports.allowedProps = allowedProps;
|
|
47
|
+
const allowedProps = exports.allowedProps = ['as', 'variant', 'role', 'renderBeforeLabel', 'renderAfterLabel', 'beforeLabelContentVAlign', 'afterLabelContentVAlign', 'description', 'descriptionRole', 'href', 'elementRef', 'children'];
|
|
@@ -32,12 +32,11 @@ var _OptionsItemLocator = require("./Item/OptionsItemLocator");
|
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
34
|
// @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
35
|
-
const OptionsLocator = (0, _uiTestLocator.locator)(_index.Options.selector, {
|
|
35
|
+
const OptionsLocator = exports.OptionsLocator = (0, _uiTestLocator.locator)(_index.Options.selector, {
|
|
36
36
|
findAllItems: (...args) => {
|
|
37
37
|
return _OptionsItemLocator.OptionsItemLocator.findAll(...args);
|
|
38
38
|
},
|
|
39
39
|
findItem: (...args) => {
|
|
40
40
|
return _OptionsItemLocator.OptionsItemLocator.find(...args);
|
|
41
41
|
}
|
|
42
|
-
});
|
|
43
|
-
exports.OptionsLocator = OptionsLocator;
|
|
42
|
+
});
|
|
@@ -46,7 +46,7 @@ id: Options.Separator
|
|
|
46
46
|
@module Separator
|
|
47
47
|
@tsProps
|
|
48
48
|
**/
|
|
49
|
-
let Separator = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Separator extends _react.Component {
|
|
49
|
+
let Separator = exports.Separator = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Separator extends _react.Component {
|
|
50
50
|
componentDidMount() {
|
|
51
51
|
var _this$props$makeStyle, _this$props;
|
|
52
52
|
(_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
|
|
@@ -71,6 +71,4 @@ let Separator = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default)
|
|
|
71
71
|
}, _class2.displayName = "Separator", _class2.componentId = 'Options.Separator', _class2.allowedProps = _props.allowedProps, _class2.propTypes = _props.propTypes, _class2.defaultProps = {
|
|
72
72
|
as: 'span'
|
|
73
73
|
}, _class2)) || _class);
|
|
74
|
-
exports.
|
|
75
|
-
var _default = Separator;
|
|
76
|
-
exports.default = _default;
|
|
74
|
+
var _default = exports.default = Separator;
|
|
@@ -30,9 +30,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
30
30
|
* SOFTWARE.
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
-
const propTypes = {
|
|
33
|
+
const propTypes = exports.propTypes = {
|
|
34
34
|
as: _propTypes.default.elementType
|
|
35
35
|
};
|
|
36
|
-
exports.
|
|
37
|
-
const allowedProps = ['as'];
|
|
38
|
-
exports.allowedProps = allowedProps;
|
|
36
|
+
const allowedProps = exports.allowedProps = ['as'];
|
|
@@ -31,7 +31,7 @@ var _index = require("../index");
|
|
|
31
31
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
32
32
|
* SOFTWARE.
|
|
33
33
|
*/
|
|
34
|
-
var _default = {
|
|
34
|
+
var _default = exports.default = {
|
|
35
35
|
maxExamplesPerPage: 50,
|
|
36
36
|
propValues: {
|
|
37
37
|
children: [[/*#__PURE__*/_react.default.createElement(_index.Options.Item, {
|
|
@@ -77,5 +77,4 @@ var _default = {
|
|
|
77
77
|
key: "option-3"
|
|
78
78
|
}, "Option two")]]
|
|
79
79
|
}
|
|
80
|
-
};
|
|
81
|
-
exports.default = _default;
|
|
80
|
+
};
|
package/lib/Options/index.js
CHANGED
|
@@ -47,7 +47,7 @@ category: components
|
|
|
47
47
|
---
|
|
48
48
|
@tsProps
|
|
49
49
|
**/
|
|
50
|
-
let Options = (_dec = (0, _uiReactUtils.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec3 = (0, _uiTestable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Options extends _react.Component {
|
|
50
|
+
let Options = exports.Options = (_dec = (0, _uiReactUtils.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec3 = (0, _uiTestable.testable)(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Options extends _react.Component {
|
|
51
51
|
constructor(...args) {
|
|
52
52
|
super(...args);
|
|
53
53
|
this.ref = null;
|
|
@@ -144,6 +144,4 @@ let Options = (_dec = (0, _uiReactUtils.withDeterministicId)(), _dec2 = (0, _emo
|
|
|
144
144
|
renderLabel: null,
|
|
145
145
|
children: null
|
|
146
146
|
}, _class2.Item = _Item.Item, _class2.Separator = _Separator.Separator, _class2)) || _class) || _class) || _class);
|
|
147
|
-
exports.
|
|
148
|
-
var _default = Options;
|
|
149
|
-
exports.default = _default;
|
|
147
|
+
var _default = exports.default = Options;
|
package/lib/Options/locator.js
CHANGED
|
@@ -34,5 +34,4 @@ var _OptionsLocator = require("./OptionsLocator");
|
|
|
34
34
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
35
35
|
* SOFTWARE.
|
|
36
36
|
*/
|
|
37
|
-
var _default = _OptionsLocator.OptionsLocator;
|
|
38
|
-
exports.default = _default;
|
|
37
|
+
var _default = exports.default = _OptionsLocator.OptionsLocator;
|
package/lib/Options/props.js
CHANGED
|
@@ -31,13 +31,11 @@ var _uiPropTypes = require("@instructure/ui-prop-types");
|
|
|
31
31
|
* SOFTWARE.
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
-
const propTypes = {
|
|
34
|
+
const propTypes = exports.propTypes = {
|
|
35
35
|
as: _propTypes.default.elementType,
|
|
36
36
|
role: _propTypes.default.string,
|
|
37
37
|
elementRef: _propTypes.default.func,
|
|
38
38
|
renderLabel: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
39
39
|
children: _uiPropTypes.Children.oneOf(['Options', 'Item', 'Separator'])
|
|
40
40
|
};
|
|
41
|
-
exports.
|
|
42
|
-
const allowedProps = ['as', 'role', 'elementRef', 'renderLabel', 'children'];
|
|
43
|
-
exports.allowedProps = allowedProps;
|
|
41
|
+
const allowedProps = exports.allowedProps = ['as', 'role', 'elementRef', 'renderLabel', 'children'];
|
package/lib/Options/styles.js
CHANGED
package/lib/Options/theme.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-options",
|
|
3
|
-
"version": "8.46.2-snapshot-
|
|
3
|
+
"version": "8.46.2-snapshot-7",
|
|
4
4
|
"description": "A view-only component for composing interactive lists and menus.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,21 +23,21 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "8.46.2-snapshot-
|
|
27
|
-
"@instructure/ui-color-utils": "8.46.2-snapshot-
|
|
28
|
-
"@instructure/ui-test-locator": "8.46.2-snapshot-
|
|
29
|
-
"@instructure/ui-test-utils": "8.46.2-snapshot-
|
|
30
|
-
"@instructure/ui-themes": "8.46.2-snapshot-
|
|
26
|
+
"@instructure/ui-babel-preset": "8.46.2-snapshot-7",
|
|
27
|
+
"@instructure/ui-color-utils": "8.46.2-snapshot-7",
|
|
28
|
+
"@instructure/ui-test-locator": "8.46.2-snapshot-7",
|
|
29
|
+
"@instructure/ui-test-utils": "8.46.2-snapshot-7",
|
|
30
|
+
"@instructure/ui-themes": "8.46.2-snapshot-7"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@babel/runtime": "^7.
|
|
34
|
-
"@instructure/emotion": "8.46.2-snapshot-
|
|
35
|
-
"@instructure/shared-types": "8.46.2-snapshot-
|
|
36
|
-
"@instructure/ui-icons": "8.46.2-snapshot-
|
|
37
|
-
"@instructure/ui-prop-types": "8.46.2-snapshot-
|
|
38
|
-
"@instructure/ui-react-utils": "8.46.2-snapshot-
|
|
39
|
-
"@instructure/ui-testable": "8.46.2-snapshot-
|
|
40
|
-
"@instructure/ui-view": "8.46.2-snapshot-
|
|
33
|
+
"@babel/runtime": "^7.23.2",
|
|
34
|
+
"@instructure/emotion": "8.46.2-snapshot-7",
|
|
35
|
+
"@instructure/shared-types": "8.46.2-snapshot-7",
|
|
36
|
+
"@instructure/ui-icons": "8.46.2-snapshot-7",
|
|
37
|
+
"@instructure/ui-prop-types": "8.46.2-snapshot-7",
|
|
38
|
+
"@instructure/ui-react-utils": "8.46.2-snapshot-7",
|
|
39
|
+
"@instructure/ui-testable": "8.46.2-snapshot-7",
|
|
40
|
+
"@instructure/ui-view": "8.46.2-snapshot-7",
|
|
41
41
|
"prop-types": "^15.8.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|