@instructure/ui-buttons 11.7.11-snapshot-25 → 11.7.11-snapshot-27

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.
Files changed (53) hide show
  1. package/CHANGELOG.md +1 -1
  2. package/es/BaseButton/v1/index.js +4 -3
  3. package/es/BaseButton/v2/index.js +3 -3
  4. package/es/Button/v1/index.js +3 -3
  5. package/es/Button/v2/index.js +3 -3
  6. package/es/CloseButton/v1/index.js +3 -3
  7. package/es/CloseButton/v2/index.js +3 -3
  8. package/es/CondensedButton/v1/index.js +3 -3
  9. package/es/CondensedButton/v2/index.js +3 -3
  10. package/es/IconButton/v1/index.js +4 -3
  11. package/es/IconButton/v2/index.js +4 -3
  12. package/lib/BaseButton/v1/index.js +7 -4
  13. package/lib/BaseButton/v2/index.js +6 -4
  14. package/lib/Button/v1/index.js +6 -4
  15. package/lib/Button/v2/index.js +6 -4
  16. package/lib/CloseButton/v1/index.js +6 -4
  17. package/lib/CloseButton/v2/index.js +6 -4
  18. package/lib/CondensedButton/v1/index.js +6 -4
  19. package/lib/CondensedButton/v2/index.js +6 -4
  20. package/lib/IconButton/v1/index.js +7 -4
  21. package/lib/IconButton/v2/index.js +7 -4
  22. package/package.json +17 -17
  23. package/src/BaseButton/v1/index.tsx +7 -2
  24. package/src/BaseButton/v2/index.tsx +4 -2
  25. package/src/Button/v1/index.tsx +4 -2
  26. package/src/Button/v2/index.tsx +4 -2
  27. package/src/CloseButton/v1/index.tsx +7 -2
  28. package/src/CloseButton/v2/index.tsx +4 -2
  29. package/src/CondensedButton/v1/index.tsx +7 -2
  30. package/src/CondensedButton/v2/index.tsx +4 -2
  31. package/src/IconButton/v1/index.tsx +4 -2
  32. package/src/IconButton/v2/index.tsx +4 -2
  33. package/tsconfig.build.tsbuildinfo +1 -1
  34. package/types/BaseButton/v1/index.d.ts +3 -1
  35. package/types/BaseButton/v1/index.d.ts.map +1 -1
  36. package/types/BaseButton/v2/index.d.ts +3 -1
  37. package/types/BaseButton/v2/index.d.ts.map +1 -1
  38. package/types/Button/v1/index.d.ts +3 -1
  39. package/types/Button/v1/index.d.ts.map +1 -1
  40. package/types/Button/v2/index.d.ts +3 -1
  41. package/types/Button/v2/index.d.ts.map +1 -1
  42. package/types/CloseButton/v1/index.d.ts +3 -1
  43. package/types/CloseButton/v1/index.d.ts.map +1 -1
  44. package/types/CloseButton/v2/index.d.ts +3 -1
  45. package/types/CloseButton/v2/index.d.ts.map +1 -1
  46. package/types/CondensedButton/v1/index.d.ts +3 -1
  47. package/types/CondensedButton/v1/index.d.ts.map +1 -1
  48. package/types/CondensedButton/v2/index.d.ts +3 -1
  49. package/types/CondensedButton/v2/index.d.ts.map +1 -1
  50. package/types/IconButton/v1/index.d.ts +3 -1
  51. package/types/IconButton/v1/index.d.ts.map +1 -1
  52. package/types/IconButton/v2/index.d.ts +3 -1
  53. package/types/IconButton/v2/index.d.ts.map +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
- ## [11.7.11-snapshot-25](https://github.com/instructure/instructure-ui/compare/v11.7.10...v11.7.11-snapshot-25) (2026-11-23)
6
+ ## [11.7.11-snapshot-27](https://github.com/instructure/instructure-ui/compare/v11.7.10...v11.7.11-snapshot-27) (2026-11-24)
7
7
 
8
8
  ### Bug Fixes
9
9
 
@@ -1,4 +1,3 @@
1
- var _dec, _class;
2
1
  /*
3
2
  * The MIT License (MIT)
4
3
  *
@@ -40,7 +39,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
40
39
  category: components/Util Components
41
40
  ---
42
41
  **/
43
- let BaseButton = (_dec = withStyle(generateStyles, generateComponentTheme), _dec(_class = class BaseButton extends Component {
42
+
43
+ export class BaseButtonBase extends Component {
44
44
  static displayName = 'BaseButton';
45
45
  static componentId = 'BaseButton';
46
46
  static allowedProps = allowedProps;
@@ -306,6 +306,7 @@ let BaseButton = (_dec = withStyle(generateStyles, generateComponentTheme), _dec
306
306
  })
307
307
  });
308
308
  }
309
- }) || _class);
309
+ }
310
+ const BaseButton = withStyle(generateStyles, generateComponentTheme)(BaseButtonBase);
310
311
  export { BaseButton };
311
312
  export default BaseButton;
@@ -1,4 +1,3 @@
1
- var _dec, _class;
2
1
  /*
3
2
  * The MIT License (MIT)
4
3
  *
@@ -57,7 +56,7 @@ const buttonColorToIconColor = {
57
56
  category: components/Util Components
58
57
  ---
59
58
  **/
60
- let BaseButton = (_dec = withStyleNew(generateStyles), _dec(_class = class BaseButton extends Component {
59
+ export class BaseButtonBase extends Component {
61
60
  static displayName = 'BaseButton';
62
61
  static componentId = 'BaseButton';
63
62
  static allowedProps = allowedProps;
@@ -327,6 +326,7 @@ let BaseButton = (_dec = withStyleNew(generateStyles), _dec(_class = class BaseB
327
326
  })
328
327
  });
329
328
  }
330
- }) || _class);
329
+ }
330
+ const BaseButton = withStyleNew(generateStyles)(BaseButtonBase);
331
331
  export { BaseButton };
332
332
  export default BaseButton;
@@ -1,4 +1,3 @@
1
- var _dec, _class;
2
1
  /*
3
2
  * The MIT License (MIT)
4
3
  *
@@ -36,7 +35,7 @@ category: components
36
35
  ---
37
36
  **/
38
37
  // needed for listing the available theme variables on docs page
39
- let Button = (_dec = withStyle(null, generateComponentTheme), _dec(_class = class Button extends Component {
38
+ export class ButtonBase extends Component {
40
39
  static displayName = 'Button';
41
40
  static componentId = 'Button';
42
41
  static allowedProps = allowedProps;
@@ -119,6 +118,7 @@ let Button = (_dec = withStyle(null, generateComponentTheme), _dec(_class = clas
119
118
  children: children
120
119
  });
121
120
  }
122
- }) || _class);
121
+ }
122
+ const Button = withStyle(null, generateComponentTheme)(ButtonBase);
123
123
  export default Button;
124
124
  export { Button };
@@ -1,4 +1,3 @@
1
- var _dec, _class;
2
1
  /*
3
2
  * The MIT License (MIT)
4
3
  *
@@ -35,7 +34,7 @@ category: components
35
34
  ---
36
35
  **/
37
36
  // needed for listing the available theme variables on docs page
38
- let Button = (_dec = withStyleNew(null, 'BaseButton'), _dec(_class = class Button extends Component {
37
+ export class ButtonBase extends Component {
39
38
  static displayName = 'Button';
40
39
  static componentId = 'Button';
41
40
  // Button v2 uses BaseButton's tokens; tell Document where to look for theme variables
@@ -120,6 +119,7 @@ let Button = (_dec = withStyleNew(null, 'BaseButton'), _dec(_class = class Butto
120
119
  children: children
121
120
  });
122
121
  }
123
- }) || _class);
122
+ }
123
+ const Button = withStyleNew(null, 'BaseButton')(ButtonBase);
124
124
  export default Button;
125
125
  export { Button };
@@ -1,4 +1,3 @@
1
- var _dec, _class;
2
1
  /*
3
2
  * The MIT License (MIT)
4
3
  *
@@ -38,7 +37,7 @@ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
38
37
  category: components
39
38
  ---
40
39
  **/
41
- let CloseButton = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class CloseButton extends Component {
40
+ export class CloseButtonBase extends Component {
42
41
  static displayName = 'CloseButton';
43
42
  static componentId = 'CloseButton';
44
43
  static allowedProps = allowedProps;
@@ -126,6 +125,7 @@ let CloseButton = (_dec = withStyle(generateStyle, generateComponentTheme), _dec
126
125
  })
127
126
  });
128
127
  }
129
- }) || _class);
128
+ }
129
+ const CloseButton = withStyle(generateStyle, generateComponentTheme)(CloseButtonBase);
130
130
  export default CloseButton;
131
131
  export { CloseButton };
@@ -1,4 +1,3 @@
1
- var _dec, _class;
2
1
  /*
3
2
  * The MIT License (MIT)
4
3
  *
@@ -37,7 +36,7 @@ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
37
36
  category: components
38
37
  ---
39
38
  **/
40
- let CloseButton = (_dec = withStyleNew(generateStyle, 'BaseButton'), _dec(_class = class CloseButton extends Component {
39
+ export class CloseButtonBase extends Component {
41
40
  static displayName = 'CloseButton';
42
41
  static componentId = 'CloseButton';
43
42
  // Uses BaseButton's tokens; tell Document where to look for theme variables
@@ -129,6 +128,7 @@ let CloseButton = (_dec = withStyleNew(generateStyle, 'BaseButton'), _dec(_class
129
128
  })
130
129
  });
131
130
  }
132
- }) || _class);
131
+ }
132
+ const CloseButton = withStyleNew(generateStyle, 'BaseButton')(CloseButtonBase);
133
133
  export default CloseButton;
134
134
  export { CloseButton };
@@ -1,4 +1,3 @@
1
- var _dec, _class;
2
1
  /*
3
2
  * The MIT License (MIT)
4
3
  *
@@ -36,7 +35,7 @@ category: components
36
35
  ---
37
36
  **/
38
37
  // needed for listing the available theme variables on docs page
39
- let CondensedButton = (_dec = withStyle(null, generateComponentTheme), _dec(_class = class CondensedButton extends Component {
38
+ export class CondensedButtonBase extends Component {
40
39
  static displayName = 'CondensedButton';
41
40
  static componentId = 'CondensedButton';
42
41
  static allowedProps = allowedProps;
@@ -109,6 +108,7 @@ let CondensedButton = (_dec = withStyle(null, generateComponentTheme), _dec(_cla
109
108
  children: children
110
109
  });
111
110
  }
112
- }) || _class);
111
+ }
112
+ const CondensedButton = withStyle(null, generateComponentTheme)(CondensedButtonBase);
113
113
  export default CondensedButton;
114
114
  export { CondensedButton };
@@ -1,4 +1,3 @@
1
- var _dec, _class;
2
1
  /*
3
2
  * The MIT License (MIT)
4
3
  *
@@ -35,7 +34,7 @@ category: components
35
34
  ---
36
35
  **/
37
36
  // needed for listing the available theme variables on docs page
38
- let CondensedButton = (_dec = withStyleNew(null, 'BaseButton'), _dec(_class = class CondensedButton extends Component {
37
+ export class CondensedButtonBase extends Component {
39
38
  static displayName = 'CondensedButton';
40
39
  static componentId = 'CondensedButton';
41
40
  // Uses BaseButton's tokens; tell Document where to look for theme variables
@@ -110,6 +109,7 @@ let CondensedButton = (_dec = withStyleNew(null, 'BaseButton'), _dec(_class = cl
110
109
  children: children
111
110
  });
112
111
  }
113
- }) || _class);
112
+ }
113
+ const CondensedButton = withStyleNew(null, 'BaseButton')(CondensedButtonBase);
114
114
  export default CondensedButton;
115
115
  export { CondensedButton };
@@ -1,4 +1,3 @@
1
- var _dec, _class;
2
1
  /*
3
2
  * The MIT License (MIT)
4
3
  *
@@ -37,8 +36,9 @@ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
37
36
  category: components
38
37
  ---
39
38
  **/
39
+
40
40
  // needed for listing the available theme variables on docs page
41
- let IconButton = (_dec = withStyle(null, generateComponentTheme), _dec(_class = class IconButton extends Component {
41
+ export class IconButtonBase extends Component {
42
42
  static displayName = 'IconButton';
43
43
  static componentId = 'IconButton';
44
44
  static allowedProps = allowedProps;
@@ -119,6 +119,7 @@ let IconButton = (_dec = withStyle(null, generateComponentTheme), _dec(_class =
119
119
  })
120
120
  });
121
121
  }
122
- }) || _class);
122
+ }
123
+ const IconButton = withStyle(null, generateComponentTheme)(IconButtonBase);
123
124
  export default IconButton;
124
125
  export { IconButton };
@@ -1,4 +1,3 @@
1
- var _dec, _class;
2
1
  /*
3
2
  * The MIT License (MIT)
4
3
  *
@@ -36,8 +35,9 @@ import { jsx as _jsx } from "@emotion/react/jsx-runtime";
36
35
  category: components
37
36
  ---
38
37
  **/
38
+
39
39
  // needed for listing the available theme variables on docs page
40
- let IconButton = (_dec = withStyleNew(null, 'BaseButton'), _dec(_class = class IconButton extends Component {
40
+ export class IconButtonBase extends Component {
41
41
  static displayName = 'IconButton';
42
42
  static componentId = 'IconButton';
43
43
  // Uses BaseButton's tokens; tell Document where to look for theme variables
@@ -120,6 +120,7 @@ let IconButton = (_dec = withStyleNew(null, 'BaseButton'), _dec(_class = class I
120
120
  })
121
121
  });
122
122
  }
123
- }) || _class);
123
+ }
124
+ const IconButton = withStyleNew(null, 'BaseButton')(IconButtonBase);
124
125
  export default IconButton;
125
126
  export { IconButton };
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = exports.BaseButton = void 0;
7
+ exports.default = exports.BaseButtonBase = exports.BaseButton = void 0;
8
8
  var _react = require("react");
9
9
  var _keycode = _interopRequireDefault(require("keycode"));
10
10
  var _uiReactUtils = require("@instructure/ui-react-utils");
@@ -17,7 +17,6 @@ var _styles = _interopRequireDefault(require("./styles.js"));
17
17
  var _theme = _interopRequireDefault(require("./theme.js"));
18
18
  var _props = require("./props.js");
19
19
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
20
- var _dec, _class;
21
20
  /*
22
21
  * The MIT License (MIT)
23
22
  *
@@ -41,12 +40,14 @@ var _dec, _class;
41
40
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
42
41
  * SOFTWARE.
43
42
  */
43
+
44
44
  /**
45
45
  ---
46
46
  category: components/Util Components
47
47
  ---
48
48
  **/
49
- let BaseButton = exports.BaseButton = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class BaseButton extends _react.Component {
49
+
50
+ class BaseButtonBase extends _react.Component {
50
51
  static displayName = 'BaseButton';
51
52
  static componentId = 'BaseButton';
52
53
  static allowedProps = _props.allowedProps;
@@ -312,5 +313,7 @@ let BaseButton = exports.BaseButton = (_dec = (0, _emotion.withStyle)(_styles.de
312
313
  })
313
314
  });
314
315
  }
315
- }) || _class);
316
+ }
317
+ exports.BaseButtonBase = BaseButtonBase;
318
+ const BaseButton = exports.BaseButton = (0, _emotion.withStyle)(_styles.default, _theme.default)(BaseButtonBase);
316
319
  var _default = exports.default = BaseButton;
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = exports.BaseButton = void 0;
7
+ exports.default = exports.BaseButtonBase = exports.BaseButton = void 0;
8
8
  var _react = require("react");
9
9
  var _keycode = _interopRequireDefault(require("keycode"));
10
10
  var _uiReactUtils = require("@instructure/ui-react-utils");
@@ -17,7 +17,6 @@ var _emotion = require("@instructure/emotion");
17
17
  var _styles = _interopRequireDefault(require("./styles.js"));
18
18
  var _props = require("./props.js");
19
19
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
20
- var _dec, _class;
21
20
  /*
22
21
  * The MIT License (MIT)
23
22
  *
@@ -41,6 +40,7 @@ var _dec, _class;
41
40
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
42
41
  * SOFTWARE.
43
42
  */
43
+
44
44
  const buttonSizeToIconSize = {
45
45
  small: 'sm',
46
46
  medium: 'md',
@@ -63,7 +63,7 @@ const buttonColorToIconColor = {
63
63
  category: components/Util Components
64
64
  ---
65
65
  **/
66
- let BaseButton = exports.BaseButton = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class BaseButton extends _react.Component {
66
+ class BaseButtonBase extends _react.Component {
67
67
  static displayName = 'BaseButton';
68
68
  static componentId = 'BaseButton';
69
69
  static allowedProps = _props.allowedProps;
@@ -333,5 +333,7 @@ let BaseButton = exports.BaseButton = (_dec = (0, _emotion.withStyleNew)(_styles
333
333
  })
334
334
  });
335
335
  }
336
- }) || _class);
336
+ }
337
+ exports.BaseButtonBase = BaseButtonBase;
338
+ const BaseButton = exports.BaseButton = (0, _emotion.withStyleNew)(_styles.default)(BaseButtonBase);
337
339
  var _default = exports.default = BaseButton;
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = exports.Button = void 0;
7
+ exports.default = exports.ButtonBase = exports.Button = void 0;
8
8
  var _react = require("react");
9
9
  var _uiReactUtils = require("@instructure/ui-react-utils");
10
10
  var _emotion = require("@instructure/emotion");
@@ -12,7 +12,6 @@ var _theme = _interopRequireDefault(require("./theme.js"));
12
12
  var _index = require("../../BaseButton/v1/index.js");
13
13
  var _props = require("./props.js");
14
14
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
15
- var _dec, _class;
16
15
  /*
17
16
  * The MIT License (MIT)
18
17
  *
@@ -36,13 +35,14 @@ var _dec, _class;
36
35
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37
36
  * SOFTWARE.
38
37
  */
38
+
39
39
  /**
40
40
  ---
41
41
  category: components
42
42
  ---
43
43
  **/
44
44
  // needed for listing the available theme variables on docs page
45
- let Button = exports.Button = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec(_class = class Button extends _react.Component {
45
+ class ButtonBase extends _react.Component {
46
46
  static displayName = 'Button';
47
47
  static componentId = 'Button';
48
48
  static allowedProps = _props.allowedProps;
@@ -125,5 +125,7 @@ let Button = exports.Button = (_dec = (0, _emotion.withStyle)(null, _theme.defau
125
125
  children: children
126
126
  });
127
127
  }
128
- }) || _class);
128
+ }
129
+ exports.ButtonBase = ButtonBase;
130
+ const Button = exports.Button = (0, _emotion.withStyle)(null, _theme.default)(ButtonBase);
129
131
  var _default = exports.default = Button;
@@ -3,14 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = exports.Button = void 0;
6
+ exports.default = exports.ButtonBase = exports.Button = void 0;
7
7
  var _react = require("react");
8
8
  var _uiReactUtils = require("@instructure/ui-react-utils");
9
9
  var _emotion = require("@instructure/emotion");
10
10
  var _index = require("../../BaseButton/v2/index.js");
11
11
  var _props = require("./props.js");
12
12
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
13
- var _dec, _class;
14
13
  /*
15
14
  * The MIT License (MIT)
16
15
  *
@@ -34,13 +33,14 @@ var _dec, _class;
34
33
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
34
  * SOFTWARE.
36
35
  */
36
+
37
37
  /**
38
38
  ---
39
39
  category: components
40
40
  ---
41
41
  **/
42
42
  // needed for listing the available theme variables on docs page
43
- let Button = exports.Button = (_dec = (0, _emotion.withStyleNew)(null, 'BaseButton'), _dec(_class = class Button extends _react.Component {
43
+ class ButtonBase extends _react.Component {
44
44
  static displayName = 'Button';
45
45
  static componentId = 'Button';
46
46
  // Button v2 uses BaseButton's tokens; tell Document where to look for theme variables
@@ -125,5 +125,7 @@ let Button = exports.Button = (_dec = (0, _emotion.withStyleNew)(null, 'BaseButt
125
125
  children: children
126
126
  });
127
127
  }
128
- }) || _class);
128
+ }
129
+ exports.ButtonBase = ButtonBase;
130
+ const Button = exports.Button = (0, _emotion.withStyleNew)(null, 'BaseButton')(ButtonBase);
129
131
  var _default = exports.default = Button;
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = exports.CloseButton = void 0;
7
+ exports.default = exports.CloseButtonBase = exports.CloseButton = void 0;
8
8
  var _react = require("react");
9
9
  var _uiIcons = require("@instructure/ui-icons");
10
10
  var _uiA11yContent = require("@instructure/ui-a11y-content");
@@ -15,7 +15,6 @@ var _theme = _interopRequireDefault(require("./theme.js"));
15
15
  var _index = require("../../BaseButton/v1/index.js");
16
16
  var _props = require("./props.js");
17
17
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
18
- var _dec, _class;
19
18
  /*
20
19
  * The MIT License (MIT)
21
20
  *
@@ -39,12 +38,13 @@ var _dec, _class;
39
38
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
40
39
  * SOFTWARE.
41
40
  */
41
+
42
42
  /**
43
43
  ---
44
44
  category: components
45
45
  ---
46
46
  **/
47
- let CloseButton = exports.CloseButton = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class CloseButton extends _react.Component {
47
+ class CloseButtonBase extends _react.Component {
48
48
  static displayName = 'CloseButton';
49
49
  static componentId = 'CloseButton';
50
50
  static allowedProps = _props.allowedProps;
@@ -132,5 +132,7 @@ let CloseButton = exports.CloseButton = (_dec = (0, _emotion.withStyle)(_styles.
132
132
  })
133
133
  });
134
134
  }
135
- }) || _class);
135
+ }
136
+ exports.CloseButtonBase = CloseButtonBase;
137
+ const CloseButton = exports.CloseButton = (0, _emotion.withStyle)(_styles.default, _theme.default)(CloseButtonBase);
136
138
  var _default = exports.default = CloseButton;
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = exports.CloseButton = void 0;
7
+ exports.default = exports.CloseButtonBase = exports.CloseButton = void 0;
8
8
  var _react = require("react");
9
9
  var _uiIcons = require("@instructure/ui-icons");
10
10
  var _uiA11yContent = require("@instructure/ui-a11y-content");
@@ -14,7 +14,6 @@ var _styles = _interopRequireDefault(require("./styles.js"));
14
14
  var _index = require("../../BaseButton/v2/index.js");
15
15
  var _props = require("./props.js");
16
16
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
17
- var _dec, _class;
18
17
  /*
19
18
  * The MIT License (MIT)
20
19
  *
@@ -38,12 +37,13 @@ var _dec, _class;
38
37
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
39
38
  * SOFTWARE.
40
39
  */
40
+
41
41
  /**
42
42
  ---
43
43
  category: components
44
44
  ---
45
45
  **/
46
- let CloseButton = exports.CloseButton = (_dec = (0, _emotion.withStyleNew)(_styles.default, 'BaseButton'), _dec(_class = class CloseButton extends _react.Component {
46
+ class CloseButtonBase extends _react.Component {
47
47
  static displayName = 'CloseButton';
48
48
  static componentId = 'CloseButton';
49
49
  // Uses BaseButton's tokens; tell Document where to look for theme variables
@@ -135,5 +135,7 @@ let CloseButton = exports.CloseButton = (_dec = (0, _emotion.withStyleNew)(_styl
135
135
  })
136
136
  });
137
137
  }
138
- }) || _class);
138
+ }
139
+ exports.CloseButtonBase = CloseButtonBase;
140
+ const CloseButton = exports.CloseButton = (0, _emotion.withStyleNew)(_styles.default, 'BaseButton')(CloseButtonBase);
139
141
  var _default = exports.default = CloseButton;
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = exports.CondensedButton = void 0;
7
+ exports.default = exports.CondensedButtonBase = exports.CondensedButton = void 0;
8
8
  var _react = require("react");
9
9
  var _uiReactUtils = require("@instructure/ui-react-utils");
10
10
  var _emotion = require("@instructure/emotion");
@@ -12,7 +12,6 @@ var _theme = _interopRequireDefault(require("./theme.js"));
12
12
  var _index = require("../../BaseButton/v1/index.js");
13
13
  var _props = require("./props.js");
14
14
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
15
- var _dec, _class;
16
15
  /*
17
16
  * The MIT License (MIT)
18
17
  *
@@ -36,13 +35,14 @@ var _dec, _class;
36
35
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37
36
  * SOFTWARE.
38
37
  */
38
+
39
39
  /**
40
40
  ---
41
41
  category: components
42
42
  ---
43
43
  **/
44
44
  // needed for listing the available theme variables on docs page
45
- let CondensedButton = exports.CondensedButton = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec(_class = class CondensedButton extends _react.Component {
45
+ class CondensedButtonBase extends _react.Component {
46
46
  static displayName = 'CondensedButton';
47
47
  static componentId = 'CondensedButton';
48
48
  static allowedProps = _props.allowedProps;
@@ -115,5 +115,7 @@ let CondensedButton = exports.CondensedButton = (_dec = (0, _emotion.withStyle)(
115
115
  children: children
116
116
  });
117
117
  }
118
- }) || _class);
118
+ }
119
+ exports.CondensedButtonBase = CondensedButtonBase;
120
+ const CondensedButton = exports.CondensedButton = (0, _emotion.withStyle)(null, _theme.default)(CondensedButtonBase);
119
121
  var _default = exports.default = CondensedButton;
@@ -3,14 +3,13 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = exports.CondensedButton = void 0;
6
+ exports.default = exports.CondensedButtonBase = exports.CondensedButton = void 0;
7
7
  var _react = require("react");
8
8
  var _uiReactUtils = require("@instructure/ui-react-utils");
9
9
  var _emotion = require("@instructure/emotion");
10
10
  var _index = require("../../BaseButton/v2/index.js");
11
11
  var _props = require("./props.js");
12
12
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
13
- var _dec, _class;
14
13
  /*
15
14
  * The MIT License (MIT)
16
15
  *
@@ -34,13 +33,14 @@ var _dec, _class;
34
33
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35
34
  * SOFTWARE.
36
35
  */
36
+
37
37
  /**
38
38
  ---
39
39
  category: components
40
40
  ---
41
41
  **/
42
42
  // needed for listing the available theme variables on docs page
43
- let CondensedButton = exports.CondensedButton = (_dec = (0, _emotion.withStyleNew)(null, 'BaseButton'), _dec(_class = class CondensedButton extends _react.Component {
43
+ class CondensedButtonBase extends _react.Component {
44
44
  static displayName = 'CondensedButton';
45
45
  static componentId = 'CondensedButton';
46
46
  // Uses BaseButton's tokens; tell Document where to look for theme variables
@@ -115,5 +115,7 @@ let CondensedButton = exports.CondensedButton = (_dec = (0, _emotion.withStyleNe
115
115
  children: children
116
116
  });
117
117
  }
118
- }) || _class);
118
+ }
119
+ exports.CondensedButtonBase = CondensedButtonBase;
120
+ const CondensedButton = exports.CondensedButton = (0, _emotion.withStyleNew)(null, 'BaseButton')(CondensedButtonBase);
119
121
  var _default = exports.default = CondensedButton;
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.default = exports.IconButton = void 0;
7
+ exports.default = exports.IconButtonBase = exports.IconButton = void 0;
8
8
  var _react = require("react");
9
9
  var _uiReactUtils = require("@instructure/ui-react-utils");
10
10
  var _uiA11yContent = require("@instructure/ui-a11y-content");
@@ -14,7 +14,6 @@ var _theme = _interopRequireDefault(require("./theme.js"));
14
14
  var _index = require("../../BaseButton/v1/index.js");
15
15
  var _props = require("./props.js");
16
16
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
17
- var _dec, _class;
18
17
  /*
19
18
  * The MIT License (MIT)
20
19
  *
@@ -38,13 +37,15 @@ var _dec, _class;
38
37
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
39
38
  * SOFTWARE.
40
39
  */
40
+
41
41
  /**
42
42
  ---
43
43
  category: components
44
44
  ---
45
45
  **/
46
+
46
47
  // needed for listing the available theme variables on docs page
47
- let IconButton = exports.IconButton = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec(_class = class IconButton extends _react.Component {
48
+ class IconButtonBase extends _react.Component {
48
49
  static displayName = 'IconButton';
49
50
  static componentId = 'IconButton';
50
51
  static allowedProps = _props.allowedProps;
@@ -125,5 +126,7 @@ let IconButton = exports.IconButton = (_dec = (0, _emotion.withStyle)(null, _the
125
126
  })
126
127
  });
127
128
  }
128
- }) || _class);
129
+ }
130
+ exports.IconButtonBase = IconButtonBase;
131
+ const IconButton = exports.IconButton = (0, _emotion.withStyle)(null, _theme.default)(IconButtonBase);
129
132
  var _default = exports.default = IconButton;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.default = exports.IconButton = void 0;
6
+ exports.default = exports.IconButtonBase = exports.IconButton = void 0;
7
7
  var _react = require("react");
8
8
  var _uiReactUtils = require("@instructure/ui-react-utils");
9
9
  var _uiA11yContent = require("@instructure/ui-a11y-content");
@@ -12,7 +12,6 @@ var _emotion = require("@instructure/emotion");
12
12
  var _index = require("../../BaseButton/v2/index.js");
13
13
  var _props = require("./props.js");
14
14
  var _jsxRuntime = require("@emotion/react/jsx-runtime");
15
- var _dec, _class;
16
15
  /*
17
16
  * The MIT License (MIT)
18
17
  *
@@ -36,13 +35,15 @@ var _dec, _class;
36
35
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
37
36
  * SOFTWARE.
38
37
  */
38
+
39
39
  /**
40
40
  ---
41
41
  category: components
42
42
  ---
43
43
  **/
44
+
44
45
  // needed for listing the available theme variables on docs page
45
- let IconButton = exports.IconButton = (_dec = (0, _emotion.withStyleNew)(null, 'BaseButton'), _dec(_class = class IconButton extends _react.Component {
46
+ class IconButtonBase extends _react.Component {
46
47
  static displayName = 'IconButton';
47
48
  static componentId = 'IconButton';
48
49
  // Uses BaseButton's tokens; tell Document where to look for theme variables
@@ -125,5 +126,7 @@ let IconButton = exports.IconButton = (_dec = (0, _emotion.withStyleNew)(null, '
125
126
  })
126
127
  });
127
128
  }
128
- }) || _class);
129
+ }
130
+ exports.IconButtonBase = IconButtonBase;
131
+ const IconButton = exports.IconButton = (0, _emotion.withStyleNew)(null, 'BaseButton')(IconButtonBase);
129
132
  var _default = exports.default = IconButton;