@instructure/ui-buttons 9.0.2-snapshot-1 → 9.0.2-snapshot-3

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-1](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.0.2-snapshot-1) (2024-05-22)
6
+ ## [9.0.2-snapshot-3](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.0.2-snapshot-3) (2024-05-28)
7
7
 
8
8
  **Note:** Version bump only for package @instructure/ui-buttons
9
9
 
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  const _excluded = ["type", "size", "elementRef", "as", "href", "color", "focusColor", "textAlign", "shape", "display", "withBackground", "withBorder", "isCondensed", "margin", "cursor", "onClick", "renderIcon", "tabIndex", "styles", "makeStyles"];
3
- var _dec, _dec2, _class, _class2;
3
+ var _dec, _dec2, _class, _BaseButton;
4
4
  /*
5
5
  * The MIT License (MIT)
6
6
  *
@@ -42,7 +42,7 @@ import { propTypes, allowedProps } from './props';
42
42
  category: components/utilities
43
43
  ---
44
44
  **/
45
- let BaseButton = (_dec = withStyle(generateStyles, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_class2 = class BaseButton extends Component {
45
+ let BaseButton = (_dec = withStyle(generateStyles, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_BaseButton = class BaseButton extends Component {
46
46
  constructor(...args) {
47
47
  super(...args);
48
48
  this.ref = null;
@@ -233,7 +233,7 @@ let BaseButton = (_dec = withStyle(generateStyles, generateComponentTheme), _dec
233
233
  css: styles === null || styles === void 0 ? void 0 : styles.content
234
234
  }, this.renderChildren()));
235
235
  }
236
- }, _class2.displayName = "BaseButton", _class2.componentId = 'BaseButton', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
236
+ }, _BaseButton.displayName = "BaseButton", _BaseButton.componentId = 'BaseButton', _BaseButton.propTypes = propTypes, _BaseButton.allowedProps = allowedProps, _BaseButton.defaultProps = {
237
237
  type: 'button',
238
238
  size: 'medium',
239
239
  as: 'button',
@@ -248,6 +248,6 @@ let BaseButton = (_dec = withStyle(generateStyles, generateComponentTheme), _dec
248
248
  isCondensed: false,
249
249
  margin: '0',
250
250
  cursor: 'pointer'
251
- }, _class2)) || _class) || _class);
251
+ }, _BaseButton)) || _class) || _class);
252
252
  export { BaseButton };
253
253
  export default BaseButton;
@@ -256,11 +256,9 @@ const generateStyle = (componentTheme, props, state) => {
256
256
  '&::-moz-focus-inner': {
257
257
  border: '0' /* removes default dotted focus outline in Firefox */
258
258
  },
259
-
260
259
  '*': {
261
260
  pointerEvents: 'none' /* Ensures that button or link is always the event target */
262
261
  },
263
-
264
262
  '&:focus': {
265
263
  textDecoration: 'none'
266
264
  },
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  const _excluded = ["children", "type", "size", "as", "color", "focusColor", "display", "textAlign", "withBackground", "margin", "cursor", "href", "renderIcon"];
3
- var _dec, _dec2, _class, _class2;
3
+ var _dec, _dec2, _class, _Button;
4
4
  /*
5
5
  * The MIT License (MIT)
6
6
  *
@@ -38,7 +38,7 @@ category: components
38
38
  ---
39
39
  **/
40
40
  // needed for listing the available theme variables on docs page
41
- let Button = (_dec = withStyle(null, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_class2 = class Button extends Component {
41
+ let Button = (_dec = withStyle(null, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_Button = class Button extends Component {
42
42
  constructor(...args) {
43
43
  super(...args);
44
44
  this._buttonComponent = null;
@@ -101,7 +101,7 @@ let Button = (_dec = withStyle(null, generateComponentTheme), _dec2 = testable()
101
101
  };
102
102
  return /*#__PURE__*/React.createElement(BaseButton, buttonProps, children);
103
103
  }
104
- }, _class2.displayName = "Button", _class2.componentId = 'Button', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
104
+ }, _Button.displayName = "Button", _Button.componentId = 'Button', _Button.propTypes = propTypes, _Button.allowedProps = allowedProps, _Button.defaultProps = {
105
105
  type: 'button',
106
106
  size: 'medium',
107
107
  as: 'button',
@@ -113,6 +113,6 @@ let Button = (_dec = withStyle(null, generateComponentTheme), _dec2 = testable()
113
113
  withBackground: true,
114
114
  margin: '0',
115
115
  cursor: 'pointer'
116
- }, _class2)) || _class) || _class);
116
+ }, _Button)) || _class) || _class);
117
117
  export default Button;
118
118
  export { Button };
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  const _excluded = ["screenReaderLabel", "elementRef", "size", "onClick", "margin", "placement", "offset", "type", "as", "href", "cursor", "tabIndex", "styles"];
3
- var _dec, _dec2, _class, _class2;
3
+ var _dec, _dec2, _class, _CloseButton;
4
4
  /*
5
5
  * The MIT License (MIT)
6
6
  *
@@ -41,7 +41,7 @@ import { propTypes, allowedProps } from './props';
41
41
  category: components
42
42
  ---
43
43
  **/
44
- let CloseButton = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_class2 = class CloseButton extends Component {
44
+ let CloseButton = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_CloseButton = class CloseButton extends Component {
45
45
  constructor(...args) {
46
46
  super(...args);
47
47
  this.ref = null;
@@ -105,7 +105,7 @@ let CloseButton = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
105
105
  tabIndex: tabIndex
106
106
  }, jsx(ScreenReaderContent, null, screenReaderLabel)));
107
107
  }
108
- }, _class2.displayName = "CloseButton", _class2.componentId = 'CloseButton', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
108
+ }, _CloseButton.displayName = "CloseButton", _CloseButton.componentId = 'CloseButton', _CloseButton.propTypes = propTypes, _CloseButton.allowedProps = allowedProps, _CloseButton.defaultProps = {
109
109
  // Leave interaction default undefined so that `disabled` and `readOnly` can also be supplied
110
110
  interaction: void 0,
111
111
  type: 'button',
@@ -115,6 +115,6 @@ let CloseButton = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
115
115
  margin: '0',
116
116
  as: 'button',
117
117
  cursor: 'pointer'
118
- }, _class2)) || _class) || _class);
118
+ }, _CloseButton)) || _class) || _class);
119
119
  export default CloseButton;
120
120
  export { CloseButton };
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  const _excluded = ["children", "type", "size", "elementRef", "as", "interaction", "color", "margin", "cursor", "href", "renderIcon"];
3
- var _dec, _dec2, _class, _class2;
3
+ var _dec, _dec2, _class, _CondensedButton;
4
4
  /*
5
5
  * The MIT License (MIT)
6
6
  *
@@ -38,7 +38,7 @@ category: components
38
38
  ---
39
39
  **/
40
40
  // needed for listing the available theme variables on docs page
41
- let CondensedButton = (_dec = withStyle(null, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_class2 = class CondensedButton extends Component {
41
+ let CondensedButton = (_dec = withStyle(null, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_CondensedButton = class CondensedButton extends Component {
42
42
  constructor(...args) {
43
43
  super(...args);
44
44
  this._baseButton = null;
@@ -92,7 +92,7 @@ let CondensedButton = (_dec = withStyle(null, generateComponentTheme), _dec2 = t
92
92
  }
93
93
  }), children);
94
94
  }
95
- }, _class2.displayName = "CondensedButton", _class2.componentId = 'CondensedButton', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
95
+ }, _CondensedButton.displayName = "CondensedButton", _CondensedButton.componentId = 'CondensedButton', _CondensedButton.propTypes = propTypes, _CondensedButton.allowedProps = allowedProps, _CondensedButton.defaultProps = {
96
96
  type: 'button',
97
97
  size: 'medium',
98
98
  as: 'button',
@@ -101,6 +101,6 @@ let CondensedButton = (_dec = withStyle(null, generateComponentTheme), _dec2 = t
101
101
  color: 'primary',
102
102
  margin: '0',
103
103
  cursor: 'pointer'
104
- }, _class2)) || _class) || _class);
104
+ }, _CondensedButton)) || _class) || _class);
105
105
  export default CondensedButton;
106
106
  export { CondensedButton };
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  const _excluded = ["children", "renderIcon", "screenReaderLabel", "type", "size", "elementRef", "as", "interaction", "color", "focusColor", "shape", "withBackground", "withBorder", "margin", "cursor", "href"];
3
- var _dec, _dec2, _class, _class2;
3
+ var _dec, _dec2, _class, _IconButton;
4
4
  /*
5
5
  * The MIT License (MIT)
6
6
  *
@@ -39,7 +39,7 @@ category: components
39
39
  ---
40
40
  **/
41
41
  // needed for listing the available theme variables on docs page
42
- let IconButton = (_dec = withStyle(null, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_class2 = class IconButton extends Component {
42
+ let IconButton = (_dec = withStyle(null, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_IconButton = class IconButton extends Component {
43
43
  constructor(...args) {
44
44
  super(...args);
45
45
  this._baseButton = null;
@@ -99,7 +99,7 @@ let IconButton = (_dec = withStyle(null, generateComponentTheme), _dec2 = testab
99
99
  }
100
100
  }), /*#__PURE__*/React.createElement(ScreenReaderContent, null, screenReaderLabel));
101
101
  }
102
- }, _class2.displayName = "IconButton", _class2.componentId = 'IconButton', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
102
+ }, _IconButton.displayName = "IconButton", _IconButton.componentId = 'IconButton', _IconButton.propTypes = propTypes, _IconButton.allowedProps = allowedProps, _IconButton.defaultProps = {
103
103
  type: 'button',
104
104
  size: 'medium',
105
105
  as: 'button',
@@ -111,6 +111,6 @@ let IconButton = (_dec = withStyle(null, generateComponentTheme), _dec2 = testab
111
111
  withBorder: true,
112
112
  margin: '0',
113
113
  cursor: 'pointer'
114
- }, _class2)) || _class) || _class);
114
+ }, _IconButton)) || _class) || _class);
115
115
  export default IconButton;
116
116
  export { IconButton };
@@ -1,6 +1,6 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  const _excluded = ["as", "color", "elementRef", "size", "interaction", "mountNode", "renderIcon", "renderTooltipContent", "screenReaderLabel", "status", "placement", "onClick"];
3
- var _dec, _class, _class2;
3
+ var _dec, _class, _ToggleButton;
4
4
  /*
5
5
  * The MIT License (MIT)
6
6
  *
@@ -36,7 +36,7 @@ import { propTypes, allowedProps } from './props';
36
36
  category: components
37
37
  ---
38
38
  **/
39
- let ToggleButton = (_dec = testable(), _dec(_class = (_class2 = class ToggleButton extends Component {
39
+ let ToggleButton = (_dec = testable(), _dec(_class = (_ToggleButton = class ToggleButton extends Component {
40
40
  constructor(props) {
41
41
  super(props);
42
42
  this.ref = null;
@@ -99,7 +99,7 @@ let ToggleButton = (_dec = testable(), _dec(_class = (_class2 = class ToggleButt
99
99
  "aria-pressed": status === 'pressed'
100
100
  }), callRenderProp(renderIcon)));
101
101
  }
102
- }, _class2.displayName = "ToggleButton", _class2.componentId = 'ToggleButton', _class2.propTypes = propTypes, _class2.allowedProps = allowedProps, _class2.defaultProps = {
102
+ }, _ToggleButton.displayName = "ToggleButton", _ToggleButton.componentId = 'ToggleButton', _ToggleButton.propTypes = propTypes, _ToggleButton.allowedProps = allowedProps, _ToggleButton.defaultProps = {
103
103
  size: 'medium',
104
104
  as: 'button',
105
105
  // Leave interaction default undefined so that `disabled` and `readOnly` can also be supplied
@@ -108,6 +108,6 @@ let ToggleButton = (_dec = testable(), _dec(_class = (_class2 = class ToggleButt
108
108
  color: 'secondary',
109
109
  placement: 'top center',
110
110
  constrain: 'window'
111
- }, _class2)) || _class);
111
+ }, _ToggleButton)) || _class);
112
112
  export { ToggleButton };
113
113
  export default ToggleButton;
@@ -22,7 +22,7 @@ var _styles = _interopRequireDefault(require("./styles"));
22
22
  var _theme = _interopRequireDefault(require("./theme"));
23
23
  var _props = require("./props");
24
24
  const _excluded = ["type", "size", "elementRef", "as", "href", "color", "focusColor", "textAlign", "shape", "display", "withBackground", "withBorder", "isCondensed", "margin", "cursor", "onClick", "renderIcon", "tabIndex", "styles", "makeStyles"];
25
- var _dec, _dec2, _class, _class2;
25
+ var _dec, _dec2, _class, _BaseButton;
26
26
  /*
27
27
  * The MIT License (MIT)
28
28
  *
@@ -52,7 +52,7 @@ var _dec, _dec2, _class, _class2;
52
52
  category: components/utilities
53
53
  ---
54
54
  **/
55
- let BaseButton = exports.BaseButton = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class BaseButton extends _react.Component {
55
+ let BaseButton = exports.BaseButton = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_BaseButton = class BaseButton extends _react.Component {
56
56
  constructor(...args) {
57
57
  super(...args);
58
58
  this.ref = null;
@@ -243,7 +243,7 @@ let BaseButton = exports.BaseButton = (_dec = (0, _emotion.withStyle)(_styles.de
243
243
  css: styles === null || styles === void 0 ? void 0 : styles.content
244
244
  }, this.renderChildren()));
245
245
  }
246
- }, _class2.displayName = "BaseButton", _class2.componentId = 'BaseButton', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
246
+ }, _BaseButton.displayName = "BaseButton", _BaseButton.componentId = 'BaseButton', _BaseButton.propTypes = _props.propTypes, _BaseButton.allowedProps = _props.allowedProps, _BaseButton.defaultProps = {
247
247
  type: 'button',
248
248
  size: 'medium',
249
249
  as: 'button',
@@ -258,5 +258,5 @@ let BaseButton = exports.BaseButton = (_dec = (0, _emotion.withStyle)(_styles.de
258
258
  isCondensed: false,
259
259
  margin: '0',
260
260
  cursor: 'pointer'
261
- }, _class2)) || _class) || _class);
261
+ }, _BaseButton)) || _class) || _class);
262
262
  var _default = exports.default = BaseButton;
@@ -262,11 +262,9 @@ const generateStyle = (componentTheme, props, state) => {
262
262
  '&::-moz-focus-inner': {
263
263
  border: '0' /* removes default dotted focus outline in Firefox */
264
264
  },
265
-
266
265
  '*': {
267
266
  pointerEvents: 'none' /* Ensures that button or link is always the event target */
268
267
  },
269
-
270
268
  '&:focus': {
271
269
  textDecoration: 'none'
272
270
  },
@@ -16,7 +16,7 @@ var _theme = _interopRequireDefault(require("./theme"));
16
16
  var _BaseButton = require("../BaseButton");
17
17
  var _props = require("./props");
18
18
  const _excluded = ["children", "type", "size", "as", "color", "focusColor", "display", "textAlign", "withBackground", "margin", "cursor", "href", "renderIcon"];
19
- var _dec, _dec2, _class, _class2;
19
+ var _dec, _dec2, _class, _Button;
20
20
  /*
21
21
  * The MIT License (MIT)
22
22
  *
@@ -46,7 +46,7 @@ category: components
46
46
  ---
47
47
  **/
48
48
  // needed for listing the available theme variables on docs page
49
- let Button = exports.Button = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class Button extends _react.Component {
49
+ let Button = exports.Button = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_Button = class Button extends _react.Component {
50
50
  constructor(...args) {
51
51
  super(...args);
52
52
  this._buttonComponent = null;
@@ -109,7 +109,7 @@ let Button = exports.Button = (_dec = (0, _emotion.withStyle)(null, _theme.defau
109
109
  };
110
110
  return /*#__PURE__*/_react.default.createElement(_BaseButton.BaseButton, buttonProps, children);
111
111
  }
112
- }, _class2.displayName = "Button", _class2.componentId = 'Button', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
112
+ }, _Button.displayName = "Button", _Button.componentId = 'Button', _Button.propTypes = _props.propTypes, _Button.allowedProps = _props.allowedProps, _Button.defaultProps = {
113
113
  type: 'button',
114
114
  size: 'medium',
115
115
  as: 'button',
@@ -121,5 +121,5 @@ let Button = exports.Button = (_dec = (0, _emotion.withStyle)(null, _theme.defau
121
121
  withBackground: true,
122
122
  margin: '0',
123
123
  cursor: 'pointer'
124
- }, _class2)) || _class) || _class);
124
+ }, _Button)) || _class) || _class);
125
125
  var _default = exports.default = Button;
@@ -18,7 +18,7 @@ var _theme = _interopRequireDefault(require("./theme"));
18
18
  var _BaseButton = require("../BaseButton");
19
19
  var _props = require("./props");
20
20
  const _excluded = ["screenReaderLabel", "elementRef", "size", "onClick", "margin", "placement", "offset", "type", "as", "href", "cursor", "tabIndex", "styles"];
21
- var _dec, _dec2, _class, _class2;
21
+ var _dec, _dec2, _class, _CloseButton;
22
22
  /*
23
23
  * The MIT License (MIT)
24
24
  *
@@ -48,7 +48,7 @@ var _dec, _dec2, _class, _class2;
48
48
  category: components
49
49
  ---
50
50
  **/
51
- let CloseButton = exports.CloseButton = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class CloseButton extends _react.Component {
51
+ let CloseButton = exports.CloseButton = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_CloseButton = class CloseButton extends _react.Component {
52
52
  constructor(...args) {
53
53
  super(...args);
54
54
  this.ref = null;
@@ -112,7 +112,7 @@ let CloseButton = exports.CloseButton = (_dec = (0, _emotion.withStyle)(_styles.
112
112
  tabIndex: tabIndex
113
113
  }, (0, _emotion.jsx)(_ScreenReaderContent.ScreenReaderContent, null, screenReaderLabel)));
114
114
  }
115
- }, _class2.displayName = "CloseButton", _class2.componentId = 'CloseButton', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
115
+ }, _CloseButton.displayName = "CloseButton", _CloseButton.componentId = 'CloseButton', _CloseButton.propTypes = _props.propTypes, _CloseButton.allowedProps = _props.allowedProps, _CloseButton.defaultProps = {
116
116
  // Leave interaction default undefined so that `disabled` and `readOnly` can also be supplied
117
117
  interaction: void 0,
118
118
  type: 'button',
@@ -122,5 +122,5 @@ let CloseButton = exports.CloseButton = (_dec = (0, _emotion.withStyle)(_styles.
122
122
  margin: '0',
123
123
  as: 'button',
124
124
  cursor: 'pointer'
125
- }, _class2)) || _class) || _class);
125
+ }, _CloseButton)) || _class) || _class);
126
126
  var _default = exports.default = CloseButton;
@@ -15,7 +15,7 @@ var _theme = _interopRequireDefault(require("./theme"));
15
15
  var _BaseButton = require("../BaseButton");
16
16
  var _props = require("./props");
17
17
  const _excluded = ["children", "type", "size", "elementRef", "as", "interaction", "color", "margin", "cursor", "href", "renderIcon"];
18
- var _dec, _dec2, _class, _class2;
18
+ var _dec, _dec2, _class, _CondensedButton;
19
19
  /*
20
20
  * The MIT License (MIT)
21
21
  *
@@ -45,7 +45,7 @@ category: components
45
45
  ---
46
46
  **/
47
47
  // needed for listing the available theme variables on docs page
48
- let CondensedButton = exports.CondensedButton = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class CondensedButton extends _react.Component {
48
+ let CondensedButton = exports.CondensedButton = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_CondensedButton = class CondensedButton extends _react.Component {
49
49
  constructor(...args) {
50
50
  super(...args);
51
51
  this._baseButton = null;
@@ -99,7 +99,7 @@ let CondensedButton = exports.CondensedButton = (_dec = (0, _emotion.withStyle)(
99
99
  }
100
100
  }), children);
101
101
  }
102
- }, _class2.displayName = "CondensedButton", _class2.componentId = 'CondensedButton', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
102
+ }, _CondensedButton.displayName = "CondensedButton", _CondensedButton.componentId = 'CondensedButton', _CondensedButton.propTypes = _props.propTypes, _CondensedButton.allowedProps = _props.allowedProps, _CondensedButton.defaultProps = {
103
103
  type: 'button',
104
104
  size: 'medium',
105
105
  as: 'button',
@@ -108,5 +108,5 @@ let CondensedButton = exports.CondensedButton = (_dec = (0, _emotion.withStyle)(
108
108
  color: 'primary',
109
109
  margin: '0',
110
110
  cursor: 'pointer'
111
- }, _class2)) || _class) || _class);
111
+ }, _CondensedButton)) || _class) || _class);
112
112
  var _default = exports.default = CondensedButton;
@@ -16,7 +16,7 @@ var _theme = _interopRequireDefault(require("./theme"));
16
16
  var _BaseButton = require("../BaseButton");
17
17
  var _props = require("./props");
18
18
  const _excluded = ["children", "renderIcon", "screenReaderLabel", "type", "size", "elementRef", "as", "interaction", "color", "focusColor", "shape", "withBackground", "withBorder", "margin", "cursor", "href"];
19
- var _dec, _dec2, _class, _class2;
19
+ var _dec, _dec2, _class, _IconButton;
20
20
  /*
21
21
  * The MIT License (MIT)
22
22
  *
@@ -46,7 +46,7 @@ category: components
46
46
  ---
47
47
  **/
48
48
  // needed for listing the available theme variables on docs page
49
- let IconButton = exports.IconButton = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class IconButton extends _react.Component {
49
+ let IconButton = exports.IconButton = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_IconButton = class IconButton extends _react.Component {
50
50
  constructor(...args) {
51
51
  super(...args);
52
52
  this._baseButton = null;
@@ -106,7 +106,7 @@ let IconButton = exports.IconButton = (_dec = (0, _emotion.withStyle)(null, _the
106
106
  }
107
107
  }), /*#__PURE__*/_react.default.createElement(_ScreenReaderContent.ScreenReaderContent, null, screenReaderLabel));
108
108
  }
109
- }, _class2.displayName = "IconButton", _class2.componentId = 'IconButton', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
109
+ }, _IconButton.displayName = "IconButton", _IconButton.componentId = 'IconButton', _IconButton.propTypes = _props.propTypes, _IconButton.allowedProps = _props.allowedProps, _IconButton.defaultProps = {
110
110
  type: 'button',
111
111
  size: 'medium',
112
112
  as: 'button',
@@ -118,5 +118,5 @@ let IconButton = exports.IconButton = (_dec = (0, _emotion.withStyle)(null, _the
118
118
  withBorder: true,
119
119
  margin: '0',
120
120
  cursor: 'pointer'
121
- }, _class2)) || _class) || _class);
121
+ }, _IconButton)) || _class) || _class);
122
122
  var _default = exports.default = IconButton;
@@ -15,7 +15,7 @@ var _Tooltip = require("@instructure/ui-tooltip/lib/Tooltip");
15
15
  var _IconButton = require("../IconButton");
16
16
  var _props = require("./props");
17
17
  const _excluded = ["as", "color", "elementRef", "size", "interaction", "mountNode", "renderIcon", "renderTooltipContent", "screenReaderLabel", "status", "placement", "onClick"];
18
- var _dec, _class, _class2;
18
+ var _dec, _class, _ToggleButton;
19
19
  /*
20
20
  * The MIT License (MIT)
21
21
  *
@@ -44,7 +44,7 @@ var _dec, _class, _class2;
44
44
  category: components
45
45
  ---
46
46
  **/
47
- let ToggleButton = exports.ToggleButton = (_dec = (0, _testable.testable)(), _dec(_class = (_class2 = class ToggleButton extends _react.Component {
47
+ let ToggleButton = exports.ToggleButton = (_dec = (0, _testable.testable)(), _dec(_class = (_ToggleButton = class ToggleButton extends _react.Component {
48
48
  constructor(props) {
49
49
  super(props);
50
50
  this.ref = null;
@@ -107,7 +107,7 @@ let ToggleButton = exports.ToggleButton = (_dec = (0, _testable.testable)(), _de
107
107
  "aria-pressed": status === 'pressed'
108
108
  }), (0, _callRenderProp.callRenderProp)(renderIcon)));
109
109
  }
110
- }, _class2.displayName = "ToggleButton", _class2.componentId = 'ToggleButton', _class2.propTypes = _props.propTypes, _class2.allowedProps = _props.allowedProps, _class2.defaultProps = {
110
+ }, _ToggleButton.displayName = "ToggleButton", _ToggleButton.componentId = 'ToggleButton', _ToggleButton.propTypes = _props.propTypes, _ToggleButton.allowedProps = _props.allowedProps, _ToggleButton.defaultProps = {
111
111
  size: 'medium',
112
112
  as: 'button',
113
113
  // Leave interaction default undefined so that `disabled` and `readOnly` can also be supplied
@@ -116,5 +116,5 @@ let ToggleButton = exports.ToggleButton = (_dec = (0, _testable.testable)(), _de
116
116
  color: 'secondary',
117
117
  placement: 'top center',
118
118
  constrain: 'window'
119
- }, _class2)) || _class);
119
+ }, _ToggleButton)) || _class);
120
120
  var _default = exports.default = ToggleButton;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-buttons",
3
- "version": "9.0.2-snapshot-1",
3
+ "version": "9.0.2-snapshot-3",
4
4
  "description": "Accessible button components",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -23,30 +23,30 @@
23
23
  },
24
24
  "license": "MIT",
25
25
  "devDependencies": {
26
- "@instructure/ui-axe-check": "9.0.2-snapshot-1",
27
- "@instructure/ui-babel-preset": "9.0.2-snapshot-1",
28
- "@instructure/ui-test-utils": "9.0.2-snapshot-1",
29
- "@instructure/ui-themes": "9.0.2-snapshot-1",
30
- "@testing-library/jest-dom": "^6.1.4",
31
- "@testing-library/react": "^14.1.2",
32
- "@testing-library/user-event": "^14.5.1"
26
+ "@instructure/ui-axe-check": "9.0.2-snapshot-3",
27
+ "@instructure/ui-babel-preset": "9.0.2-snapshot-3",
28
+ "@instructure/ui-test-utils": "9.0.2-snapshot-3",
29
+ "@instructure/ui-themes": "9.0.2-snapshot-3",
30
+ "@testing-library/jest-dom": "^6.4.5",
31
+ "@testing-library/react": "^15.0.7",
32
+ "@testing-library/user-event": "^14.5.2"
33
33
  },
34
34
  "dependencies": {
35
- "@babel/runtime": "^7.23.2",
36
- "@instructure/console": "9.0.2-snapshot-1",
37
- "@instructure/emotion": "9.0.2-snapshot-1",
38
- "@instructure/shared-types": "9.0.2-snapshot-1",
39
- "@instructure/ui-a11y-content": "9.0.2-snapshot-1",
40
- "@instructure/ui-a11y-utils": "9.0.2-snapshot-1",
41
- "@instructure/ui-color-utils": "9.0.2-snapshot-1",
42
- "@instructure/ui-dom-utils": "9.0.2-snapshot-1",
43
- "@instructure/ui-icons": "9.0.2-snapshot-1",
44
- "@instructure/ui-position": "9.0.2-snapshot-1",
45
- "@instructure/ui-react-utils": "9.0.2-snapshot-1",
46
- "@instructure/ui-testable": "9.0.2-snapshot-1",
47
- "@instructure/ui-tooltip": "9.0.2-snapshot-1",
48
- "@instructure/ui-utils": "9.0.2-snapshot-1",
49
- "@instructure/ui-view": "9.0.2-snapshot-1",
35
+ "@babel/runtime": "^7.24.5",
36
+ "@instructure/console": "9.0.2-snapshot-3",
37
+ "@instructure/emotion": "9.0.2-snapshot-3",
38
+ "@instructure/shared-types": "9.0.2-snapshot-3",
39
+ "@instructure/ui-a11y-content": "9.0.2-snapshot-3",
40
+ "@instructure/ui-a11y-utils": "9.0.2-snapshot-3",
41
+ "@instructure/ui-color-utils": "9.0.2-snapshot-3",
42
+ "@instructure/ui-dom-utils": "9.0.2-snapshot-3",
43
+ "@instructure/ui-icons": "9.0.2-snapshot-3",
44
+ "@instructure/ui-position": "9.0.2-snapshot-3",
45
+ "@instructure/ui-react-utils": "9.0.2-snapshot-3",
46
+ "@instructure/ui-testable": "9.0.2-snapshot-3",
47
+ "@instructure/ui-tooltip": "9.0.2-snapshot-3",
48
+ "@instructure/ui-utils": "9.0.2-snapshot-3",
49
+ "@instructure/ui-view": "9.0.2-snapshot-3",
50
50
  "keycode": "^2.2.1",
51
51
  "prop-types": "^15.8.1"
52
52
  },