@instructure/ui-options 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-options
9
9
 
@@ -1,4 +1,4 @@
1
- var _dec, _dec2, _dec3, _class, _class2;
1
+ var _dec, _dec2, _dec3, _class, _Item;
2
2
  /*
3
3
  * The MIT License (MIT)
4
4
  *
@@ -38,7 +38,7 @@ parent: Options
38
38
  id: Options.Item
39
39
  ---
40
40
  **/
41
- let Item = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyles, generateComponentTheme), _dec3 = testable(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Item extends Component {
41
+ let Item = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyles, generateComponentTheme), _dec3 = testable(), _dec(_class = _dec2(_class = _dec3(_class = (_Item = class Item extends Component {
42
42
  constructor(props) {
43
43
  super(props);
44
44
  this.ref = null;
@@ -111,13 +111,13 @@ let Item = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyles, gene
111
111
  id: this._descriptionId
112
112
  }, descriptionContent)), renderBeforeLabel && this.renderContent(renderBeforeLabel, styles === null || styles === void 0 ? void 0 : styles.contentBefore), renderAfterLabel && this.renderContent(renderAfterLabel, styles === null || styles === void 0 ? void 0 : styles.contentAfter));
113
113
  }
114
- }, _class2.displayName = "Item", _class2.componentId = 'Options.Item', _class2.allowedProps = allowedProps, _class2.propTypes = propTypes, _class2.defaultProps = {
114
+ }, _Item.displayName = "Item", _Item.componentId = 'Options.Item', _Item.allowedProps = allowedProps, _Item.propTypes = propTypes, _Item.defaultProps = {
115
115
  as: 'span',
116
116
  variant: 'default',
117
117
  role: 'listitem',
118
118
  voiceoverRoleBugWorkaround: false,
119
119
  beforeLabelContentVAlign: 'center',
120
120
  afterLabelContentVAlign: 'center'
121
- }, _class2)) || _class) || _class) || _class);
121
+ }, _Item)) || _class) || _class) || _class);
122
122
  export default Item;
123
123
  export { Item };
@@ -184,5 +184,4 @@ const generateStyle = (componentTheme, props) => {
184
184
  }
185
185
  };
186
186
  };
187
-
188
187
  export default generateStyle;
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  const _excluded = ["as", "styles"];
3
- var _dec, _class, _class2;
3
+ var _dec, _class, _Separator;
4
4
  /*
5
5
  * The MIT License (MIT)
6
6
  *
@@ -40,7 +40,7 @@ id: Options.Separator
40
40
  ---
41
41
  @module Separator
42
42
  **/
43
- let Separator = (_dec = withStyle(generateStyles, generateComponentTheme), _dec(_class = (_class2 = class Separator extends Component {
43
+ let Separator = (_dec = withStyle(generateStyles, generateComponentTheme), _dec(_class = (_Separator = class Separator extends Component {
44
44
  componentDidMount() {
45
45
  var _this$props$makeStyle, _this$props;
46
46
  (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
@@ -62,8 +62,8 @@ let Separator = (_dec = withStyle(generateStyles, generateComponentTheme), _dec(
62
62
  role: "presentation"
63
63
  })));
64
64
  }
65
- }, _class2.displayName = "Separator", _class2.componentId = 'Options.Separator', _class2.allowedProps = allowedProps, _class2.propTypes = propTypes, _class2.defaultProps = {
65
+ }, _Separator.displayName = "Separator", _Separator.componentId = 'Options.Separator', _Separator.allowedProps = allowedProps, _Separator.propTypes = propTypes, _Separator.defaultProps = {
66
66
  as: 'span'
67
- }, _class2)) || _class);
67
+ }, _Separator)) || _class);
68
68
  export default Separator;
69
69
  export { Separator };
@@ -1,4 +1,4 @@
1
- var _dec, _dec2, _dec3, _class, _class2;
1
+ var _dec, _dec2, _dec3, _class, _Options;
2
2
  /*
3
3
  * The MIT License (MIT)
4
4
  *
@@ -39,7 +39,7 @@ import { allowedProps, propTypes } from './props';
39
39
  category: components
40
40
  ---
41
41
  **/
42
- let Options = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyles, generateComponentTheme), _dec3 = testable(), _dec(_class = _dec2(_class = _dec3(_class = (_class2 = class Options extends Component {
42
+ let Options = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyles, generateComponentTheme), _dec3 = testable(), _dec(_class = _dec2(_class = _dec3(_class = (_Options = class Options extends Component {
43
43
  constructor(...args) {
44
44
  super(...args);
45
45
  this.ref = null;
@@ -129,12 +129,12 @@ let Options = (_dec = withDeterministicId(), _dec2 = withStyle(generateStyles, g
129
129
  "aria-labelledby": this.ariaLabelledby
130
130
  }), this.renderChildren()));
131
131
  }
132
- }, _class2.displayName = "Options", _class2.componentId = 'Options', _class2.allowedProps = allowedProps, _class2.propTypes = propTypes, _class2.defaultProps = {
132
+ }, _Options.displayName = "Options", _Options.componentId = 'Options', _Options.allowedProps = allowedProps, _Options.propTypes = propTypes, _Options.defaultProps = {
133
133
  as: 'span',
134
134
  role: 'list',
135
135
  elementRef: () => {},
136
136
  renderLabel: null,
137
137
  children: null
138
- }, _class2.Item = Item, _class2.Separator = Separator, _class2)) || _class) || _class) || _class);
138
+ }, _Options.Item = Item, _Options.Separator = Separator, _Options)) || _class) || _class) || _class);
139
139
  export default Options;
140
140
  export { Options };
@@ -12,7 +12,7 @@ var _emotion = require("@instructure/emotion");
12
12
  var _styles = _interopRequireDefault(require("./styles"));
13
13
  var _theme = _interopRequireDefault(require("./theme"));
14
14
  var _props = require("./props");
15
- var _dec, _dec2, _dec3, _class, _class2;
15
+ var _dec, _dec2, _dec3, _class, _Item;
16
16
  /*
17
17
  * The MIT License (MIT)
18
18
  *
@@ -43,7 +43,7 @@ parent: Options
43
43
  id: Options.Item
44
44
  ---
45
45
  **/
46
- 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 {
46
+ 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 = (_Item = class Item extends _react.Component {
47
47
  constructor(props) {
48
48
  super(props);
49
49
  this.ref = null;
@@ -116,12 +116,12 @@ let Item = exports.Item = (_dec = (0, _uiReactUtils.withDeterministicId)(), _dec
116
116
  id: this._descriptionId
117
117
  }, descriptionContent)), renderBeforeLabel && this.renderContent(renderBeforeLabel, styles === null || styles === void 0 ? void 0 : styles.contentBefore), renderAfterLabel && this.renderContent(renderAfterLabel, styles === null || styles === void 0 ? void 0 : styles.contentAfter));
118
118
  }
119
- }, _class2.displayName = "Item", _class2.componentId = 'Options.Item', _class2.allowedProps = _props.allowedProps, _class2.propTypes = _props.propTypes, _class2.defaultProps = {
119
+ }, _Item.displayName = "Item", _Item.componentId = 'Options.Item', _Item.allowedProps = _props.allowedProps, _Item.propTypes = _props.propTypes, _Item.defaultProps = {
120
120
  as: 'span',
121
121
  variant: 'default',
122
122
  role: 'listitem',
123
123
  voiceoverRoleBugWorkaround: false,
124
124
  beforeLabelContentVAlign: 'center',
125
125
  afterLabelContentVAlign: 'center'
126
- }, _class2)) || _class) || _class) || _class);
126
+ }, _Item)) || _class) || _class) || _class);
127
127
  var _default = exports.default = Item;
@@ -13,7 +13,7 @@ var _styles = _interopRequireDefault(require("./styles"));
13
13
  var _theme = _interopRequireDefault(require("./theme"));
14
14
  var _props = require("./props");
15
15
  const _excluded = ["as", "styles"];
16
- var _dec, _class, _class2;
16
+ var _dec, _class, _Separator;
17
17
  /*
18
18
  * The MIT License (MIT)
19
19
  *
@@ -45,7 +45,7 @@ id: Options.Separator
45
45
  ---
46
46
  @module Separator
47
47
  **/
48
- let Separator = exports.Separator = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_class2 = class Separator extends _react.Component {
48
+ let Separator = exports.Separator = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = (_Separator = class Separator extends _react.Component {
49
49
  componentDidMount() {
50
50
  var _this$props$makeStyle, _this$props;
51
51
  (_this$props$makeStyle = (_this$props = this.props).makeStyles) === null || _this$props$makeStyle === void 0 ? void 0 : _this$props$makeStyle.call(_this$props);
@@ -67,7 +67,7 @@ let Separator = exports.Separator = (_dec = (0, _emotion.withStyle)(_styles.defa
67
67
  role: "presentation"
68
68
  })));
69
69
  }
70
- }, _class2.displayName = "Separator", _class2.componentId = 'Options.Separator', _class2.allowedProps = _props.allowedProps, _class2.propTypes = _props.propTypes, _class2.defaultProps = {
70
+ }, _Separator.displayName = "Separator", _Separator.componentId = 'Options.Separator', _Separator.allowedProps = _props.allowedProps, _Separator.propTypes = _props.propTypes, _Separator.defaultProps = {
71
71
  as: 'span'
72
- }, _class2)) || _class);
72
+ }, _Separator)) || _class);
73
73
  var _default = exports.default = Separator;
@@ -16,7 +16,7 @@ var _theme = _interopRequireDefault(require("./theme"));
16
16
  var _Item = require("./Item");
17
17
  var _Separator = require("./Separator");
18
18
  var _props = require("./props");
19
- var _dec, _dec2, _dec3, _class, _class2;
19
+ var _dec, _dec2, _dec3, _class, _Options;
20
20
  /*
21
21
  * The MIT License (MIT)
22
22
  *
@@ -46,7 +46,7 @@ var _dec, _dec2, _dec3, _class, _class2;
46
46
  category: components
47
47
  ---
48
48
  **/
49
- 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 {
49
+ 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 = (_Options = class Options extends _react.Component {
50
50
  constructor(...args) {
51
51
  super(...args);
52
52
  this.ref = null;
@@ -136,11 +136,11 @@ let Options = exports.Options = (_dec = (0, _uiReactUtils.withDeterministicId)()
136
136
  "aria-labelledby": this.ariaLabelledby
137
137
  }), this.renderChildren()));
138
138
  }
139
- }, _class2.displayName = "Options", _class2.componentId = 'Options', _class2.allowedProps = _props.allowedProps, _class2.propTypes = _props.propTypes, _class2.defaultProps = {
139
+ }, _Options.displayName = "Options", _Options.componentId = 'Options', _Options.allowedProps = _props.allowedProps, _Options.propTypes = _props.propTypes, _Options.defaultProps = {
140
140
  as: 'span',
141
141
  role: 'list',
142
142
  elementRef: () => {},
143
143
  renderLabel: null,
144
144
  children: null
145
- }, _class2.Item = _Item.Item, _class2.Separator = _Separator.Separator, _class2)) || _class) || _class) || _class);
145
+ }, _Options.Item = _Item.Item, _Options.Separator = _Separator.Separator, _Options)) || _class) || _class) || _class);
146
146
  var _default = exports.default = Options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-options",
3
- "version": "9.0.2-snapshot-2",
3
+ "version": "9.0.2-snapshot-4",
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": "9.0.2-snapshot-2",
27
- "@instructure/ui-color-utils": "9.0.2-snapshot-2",
28
- "@instructure/ui-test-locator": "9.0.2-snapshot-2",
29
- "@instructure/ui-test-utils": "9.0.2-snapshot-2",
30
- "@instructure/ui-themes": "9.0.2-snapshot-2"
26
+ "@instructure/ui-babel-preset": "9.0.2-snapshot-4",
27
+ "@instructure/ui-color-utils": "9.0.2-snapshot-4",
28
+ "@instructure/ui-test-locator": "9.0.2-snapshot-4",
29
+ "@instructure/ui-test-utils": "9.0.2-snapshot-4",
30
+ "@instructure/ui-themes": "9.0.2-snapshot-4"
31
31
  },
32
32
  "dependencies": {
33
- "@babel/runtime": "^7.23.2",
34
- "@instructure/emotion": "9.0.2-snapshot-2",
35
- "@instructure/shared-types": "9.0.2-snapshot-2",
36
- "@instructure/ui-icons": "9.0.2-snapshot-2",
37
- "@instructure/ui-prop-types": "9.0.2-snapshot-2",
38
- "@instructure/ui-react-utils": "9.0.2-snapshot-2",
39
- "@instructure/ui-testable": "9.0.2-snapshot-2",
40
- "@instructure/ui-view": "9.0.2-snapshot-2",
33
+ "@babel/runtime": "^7.24.5",
34
+ "@instructure/emotion": "9.0.2-snapshot-4",
35
+ "@instructure/shared-types": "9.0.2-snapshot-4",
36
+ "@instructure/ui-icons": "9.0.2-snapshot-4",
37
+ "@instructure/ui-prop-types": "9.0.2-snapshot-4",
38
+ "@instructure/ui-react-utils": "9.0.2-snapshot-4",
39
+ "@instructure/ui-testable": "9.0.2-snapshot-4",
40
+ "@instructure/ui-view": "9.0.2-snapshot-4",
41
41
  "prop-types": "^15.8.1"
42
42
  },
43
43
  "peerDependencies": {