@instructure/ui-buttons 11.7.3 → 11.7.4-pr-snapshot-1781695314229

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 (108) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE.md +1 -0
  3. package/{lib/CondensedButton/v1/props.js → babel.config.cjs} +12 -7
  4. package/es/BaseButton/v1/index.js +5 -6
  5. package/es/BaseButton/v2/index.js +4 -5
  6. package/es/Button/v1/index.js +4 -4
  7. package/es/Button/v1/theme.js +2 -1
  8. package/es/Button/v2/index.js +3 -3
  9. package/es/CloseButton/v1/index.js +5 -5
  10. package/es/CloseButton/v2/index.js +4 -4
  11. package/es/CondensedButton/v1/index.js +4 -4
  12. package/es/CondensedButton/v1/theme.js +2 -1
  13. package/es/CondensedButton/v2/index.js +3 -3
  14. package/es/IconButton/v1/index.js +4 -4
  15. package/es/IconButton/v1/theme.js +2 -1
  16. package/es/IconButton/v2/index.js +3 -3
  17. package/es/ToggleButton/v1/index.js +3 -3
  18. package/es/ToggleButton/v2/index.js +3 -3
  19. package/es/exports/a.js +7 -6
  20. package/es/exports/b.js +7 -6
  21. package/package.json +19 -24
  22. package/src/BaseButton/v1/index.tsx +5 -4
  23. package/src/BaseButton/v2/index.tsx +4 -3
  24. package/src/Button/v1/index.tsx +4 -3
  25. package/src/Button/v1/theme.ts +1 -1
  26. package/src/Button/v2/index.tsx +3 -2
  27. package/src/CloseButton/v1/index.tsx +5 -4
  28. package/src/CloseButton/v2/index.tsx +4 -3
  29. package/src/CondensedButton/v1/index.tsx +4 -3
  30. package/src/CondensedButton/v1/theme.ts +1 -1
  31. package/src/CondensedButton/v2/index.tsx +3 -2
  32. package/src/IconButton/v1/index.tsx +4 -3
  33. package/src/IconButton/v1/theme.ts +1 -1
  34. package/src/IconButton/v2/index.tsx +3 -2
  35. package/src/ToggleButton/v1/index.tsx +3 -2
  36. package/src/ToggleButton/v2/index.tsx +3 -2
  37. package/src/exports/a.ts +6 -6
  38. package/src/exports/b.ts +6 -6
  39. package/tsconfig.build.tsbuildinfo +1 -1
  40. package/types/BaseButton/v1/index.d.ts +3 -2
  41. package/types/BaseButton/v1/index.d.ts.map +1 -1
  42. package/types/BaseButton/v2/index.d.ts +3 -2
  43. package/types/BaseButton/v2/index.d.ts.map +1 -1
  44. package/types/Button/v1/index.d.ts +2 -1
  45. package/types/Button/v1/index.d.ts.map +1 -1
  46. package/types/Button/v1/theme.d.ts +1 -1
  47. package/types/Button/v1/theme.d.ts.map +1 -1
  48. package/types/Button/v2/index.d.ts +2 -1
  49. package/types/Button/v2/index.d.ts.map +1 -1
  50. package/types/CloseButton/v1/index.d.ts +1 -0
  51. package/types/CloseButton/v1/index.d.ts.map +1 -1
  52. package/types/CloseButton/v2/index.d.ts +1 -0
  53. package/types/CloseButton/v2/index.d.ts.map +1 -1
  54. package/types/CondensedButton/v1/index.d.ts +2 -1
  55. package/types/CondensedButton/v1/index.d.ts.map +1 -1
  56. package/types/CondensedButton/v1/theme.d.ts +1 -1
  57. package/types/CondensedButton/v1/theme.d.ts.map +1 -1
  58. package/types/CondensedButton/v2/index.d.ts +2 -1
  59. package/types/CondensedButton/v2/index.d.ts.map +1 -1
  60. package/types/IconButton/v1/index.d.ts +2 -1
  61. package/types/IconButton/v1/index.d.ts.map +1 -1
  62. package/types/IconButton/v1/theme.d.ts +1 -1
  63. package/types/IconButton/v1/theme.d.ts.map +1 -1
  64. package/types/IconButton/v2/index.d.ts +2 -1
  65. package/types/IconButton/v2/index.d.ts.map +1 -1
  66. package/types/ToggleButton/v1/index.d.ts +1 -0
  67. package/types/ToggleButton/v1/index.d.ts.map +1 -1
  68. package/types/ToggleButton/v2/index.d.ts +1 -0
  69. package/types/ToggleButton/v2/index.d.ts.map +1 -1
  70. package/types/exports/a.d.ts +6 -6
  71. package/types/exports/a.d.ts.map +1 -1
  72. package/types/exports/b.d.ts +6 -6
  73. package/types/exports/b.d.ts.map +1 -1
  74. package/lib/BaseButton/v1/index.js +0 -307
  75. package/lib/BaseButton/v1/props.js +0 -31
  76. package/lib/BaseButton/v1/styles.js +0 -465
  77. package/lib/BaseButton/v1/theme.js +0 -187
  78. package/lib/BaseButton/v2/index.js +0 -327
  79. package/lib/BaseButton/v2/props.js +0 -31
  80. package/lib/BaseButton/v2/styles.js +0 -589
  81. package/lib/Button/v1/index.js +0 -130
  82. package/lib/Button/v1/props.js +0 -31
  83. package/lib/Button/v1/theme.js +0 -13
  84. package/lib/Button/v2/index.js +0 -128
  85. package/lib/Button/v2/props.js +0 -31
  86. package/lib/CloseButton/v1/index.js +0 -137
  87. package/lib/CloseButton/v1/props.js +0 -31
  88. package/lib/CloseButton/v1/styles.js +0 -76
  89. package/lib/CloseButton/v1/theme.js +0 -51
  90. package/lib/CloseButton/v2/index.js +0 -138
  91. package/lib/CloseButton/v2/props.js +0 -31
  92. package/lib/CloseButton/v2/styles.js +0 -76
  93. package/lib/CondensedButton/v1/index.js +0 -119
  94. package/lib/CondensedButton/v1/theme.js +0 -13
  95. package/lib/CondensedButton/v2/index.js +0 -117
  96. package/lib/CondensedButton/v2/props.js +0 -31
  97. package/lib/IconButton/v1/index.js +0 -129
  98. package/lib/IconButton/v1/props.js +0 -31
  99. package/lib/IconButton/v1/theme.js +0 -13
  100. package/lib/IconButton/v2/index.js +0 -127
  101. package/lib/IconButton/v2/props.js +0 -31
  102. package/lib/ToggleButton/v1/index.js +0 -129
  103. package/lib/ToggleButton/v1/props.js +0 -31
  104. package/lib/ToggleButton/v2/index.js +0 -128
  105. package/lib/ToggleButton/v2/props.js +0 -31
  106. package/lib/exports/a.js +0 -47
  107. package/lib/exports/b.js +0 -47
  108. package/lib/package.json +0 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.4-pr-snapshot-1781695314229](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-pr-snapshot-1781695314229) (2026-06-17)
7
+
8
+ **Note:** Version bump only for package @instructure/ui-buttons
9
+
10
+
11
+
12
+
13
+
6
14
  ## [11.7.3](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3) (2026-05-07)
7
15
 
8
16
 
package/LICENSE.md CHANGED
@@ -2,6 +2,7 @@
2
2
  title: The MIT License (MIT)
3
3
  category: Getting Started
4
4
  order: 9
5
+ isWIP: true
5
6
  ---
6
7
 
7
8
  # The MIT License (MIT)
@@ -1,9 +1,3 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.allowedProps = void 0;
7
1
  /*
8
2
  * The MIT License (MIT)
9
3
  *
@@ -28,4 +22,15 @@ exports.allowedProps = void 0;
28
22
  * SOFTWARE.
29
23
  */
30
24
 
31
- const allowedProps = exports.allowedProps = ['as', 'children', 'color', 'cursor', 'elementRef', 'href', 'interaction', 'margin', 'renderIcon', 'size', 'type', 'onClick', 'display'];
25
+ module.exports = {
26
+ presets: [
27
+ [
28
+ require('@instructure/ui-babel-preset'),
29
+ {
30
+ esModules: Boolean(process.env.ES_MODULES),
31
+ removeConsole: process.env.NODE_ENV === 'production',
32
+ transformImports: Boolean(process.env.TRANSFORM_IMPORTS)
33
+ }
34
+ ]
35
+ ]
36
+ }
@@ -1,5 +1,4 @@
1
1
  var _dec, _class;
2
- import "core-js/modules/es.array.includes.js";
3
2
  /*
4
3
  * The MIT License (MIT)
5
4
  *
@@ -35,17 +34,17 @@ import { View } from '@instructure/ui-view/v11_6';
35
34
  import { isSafari } from '@instructure/ui-utils';
36
35
  import { combineDataCid } from '@instructure/ui-utils';
37
36
  import { withStyle } from '@instructure/emotion';
38
- import generateStyles from "./styles.js";
39
- import generateComponentTheme from "./theme.js";
40
- import { allowedProps } from "./props.js";
37
+ import generateStyles from './styles.js';
38
+ import generateComponentTheme from './theme.js';
39
+ import { allowedProps } from './props.js';
41
40
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
42
41
  /**
43
42
  ---
44
- category: components/utilities
43
+ category: components/Util Components
45
44
  ---
46
45
  **/
47
46
  let BaseButton = (_dec = withStyle(generateStyles, generateComponentTheme), _dec(_class = class BaseButton extends Component {
48
- static displayName = "BaseButton";
47
+ static displayName = 'BaseButton';
49
48
  static componentId = 'BaseButton';
50
49
  static allowedProps = allowedProps;
51
50
  static defaultProps = {
@@ -1,5 +1,4 @@
1
1
  var _dec, _class;
2
- import "core-js/modules/es.array.includes.js";
3
2
  /*
4
3
  * The MIT License (MIT)
5
4
  *
@@ -36,8 +35,8 @@ import { View } from '@instructure/ui-view/latest';
36
35
  import { isSafari } from '@instructure/ui-utils';
37
36
  import { combineDataCid } from '@instructure/ui-utils';
38
37
  import { withStyleNew } from '@instructure/emotion';
39
- import generateStyles from "./styles.js";
40
- import { allowedProps } from "./props.js";
38
+ import generateStyles from './styles.js';
39
+ import { allowedProps } from './props.js';
41
40
  import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
42
41
  const buttonSizeToIconSize = {
43
42
  small: 'sm',
@@ -58,11 +57,11 @@ const buttonColorToIconColor = {
58
57
 
59
58
  /**
60
59
  ---
61
- category: components/utilities
60
+ category: components/Util Components
62
61
  ---
63
62
  **/
64
63
  let BaseButton = (_dec = withStyleNew(generateStyles), _dec(_class = class BaseButton extends Component {
65
- static displayName = "BaseButton";
64
+ static displayName = 'BaseButton';
66
65
  static componentId = 'BaseButton';
67
66
  static allowedProps = allowedProps;
68
67
  static defaultProps = {
@@ -26,9 +26,9 @@ var _dec, _class;
26
26
  import { Component } from 'react';
27
27
  import { getInteraction, passthroughProps } from '@instructure/ui-react-utils';
28
28
  import { withStyle } from '@instructure/emotion';
29
- import generateComponentTheme from "./theme.js";
30
- import { BaseButton } from "../../BaseButton/v1/index.js";
31
- import { allowedProps } from "./props.js";
29
+ import generateComponentTheme from './theme.js';
30
+ import { BaseButton } from '../../BaseButton/v1/index.js';
31
+ import { allowedProps } from './props.js';
32
32
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
33
33
  /**
34
34
  ---
@@ -37,7 +37,7 @@ category: components
37
37
  **/
38
38
  // needed for listing the available theme variables on docs page
39
39
  let Button = (_dec = withStyle(null, generateComponentTheme), _dec(_class = class Button extends Component {
40
- static displayName = "Button";
40
+ static displayName = 'Button';
41
41
  static componentId = 'Button';
42
42
  static allowedProps = allowedProps;
43
43
  static defaultProps = {
@@ -21,4 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { default } from "../../BaseButton/v1/theme.js";
24
+
25
+ export { default } from '../../BaseButton/v1/theme.js';
@@ -26,8 +26,8 @@ var _dec, _class;
26
26
  import { Component } from 'react';
27
27
  import { getInteraction, passthroughProps } from '@instructure/ui-react-utils';
28
28
  import { withStyleNew } from '@instructure/emotion';
29
- import { BaseButton } from "../../BaseButton/v2/index.js";
30
- import { allowedProps } from "./props.js";
29
+ import { BaseButton } from '../../BaseButton/v2/index.js';
30
+ import { allowedProps } from './props.js';
31
31
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
32
32
  /**
33
33
  ---
@@ -36,7 +36,7 @@ category: components
36
36
  **/
37
37
  // needed for listing the available theme variables on docs page
38
38
  let Button = (_dec = withStyleNew(null, 'BaseButton'), _dec(_class = class Button extends Component {
39
- static displayName = "Button";
39
+ static displayName = 'Button';
40
40
  static componentId = 'Button';
41
41
  static allowedProps = allowedProps;
42
42
  static defaultProps = {
@@ -28,10 +28,10 @@ import { IconXSolid } from '@instructure/ui-icons';
28
28
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
29
29
  import { getInteraction, passthroughProps } from '@instructure/ui-react-utils';
30
30
  import { withStyle } from '@instructure/emotion';
31
- import generateStyle from "./styles.js";
32
- import generateComponentTheme from "./theme.js";
33
- import { BaseButton } from "../../BaseButton/v1/index.js";
34
- import { allowedProps } from "./props.js";
31
+ import generateStyle from './styles.js';
32
+ import generateComponentTheme from './theme.js';
33
+ import { BaseButton } from '../../BaseButton/v1/index.js';
34
+ import { allowedProps } from './props.js';
35
35
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
36
36
  /**
37
37
  ---
@@ -39,7 +39,7 @@ category: components
39
39
  ---
40
40
  **/
41
41
  let CloseButton = (_dec = withStyle(generateStyle, generateComponentTheme), _dec(_class = class CloseButton extends Component {
42
- static displayName = "CloseButton";
42
+ static displayName = 'CloseButton';
43
43
  static componentId = 'CloseButton';
44
44
  static allowedProps = allowedProps;
45
45
  static defaultProps = {
@@ -28,9 +28,9 @@ import { XInstUIIcon } from '@instructure/ui-icons';
28
28
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
29
29
  import { getInteraction, passthroughProps } from '@instructure/ui-react-utils';
30
30
  import { withStyleNew } from '@instructure/emotion';
31
- import generateStyle from "./styles.js";
32
- import { BaseButton } from "../../BaseButton/v2/index.js";
33
- import { allowedProps } from "./props.js";
31
+ import generateStyle from './styles.js';
32
+ import { BaseButton } from '../../BaseButton/v2/index.js';
33
+ import { allowedProps } from './props.js';
34
34
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
35
35
  /**
36
36
  ---
@@ -38,7 +38,7 @@ category: components
38
38
  ---
39
39
  **/
40
40
  let CloseButton = (_dec = withStyleNew(generateStyle, 'BaseButton'), _dec(_class = class CloseButton extends Component {
41
- static displayName = "CloseButton";
41
+ static displayName = 'CloseButton';
42
42
  static componentId = 'CloseButton';
43
43
  static allowedProps = allowedProps;
44
44
  static defaultProps = {
@@ -26,9 +26,9 @@ var _dec, _class;
26
26
  import { Component } from 'react';
27
27
  import { passthroughProps } from '@instructure/ui-react-utils';
28
28
  import { withStyle } from '@instructure/emotion';
29
- import generateComponentTheme from "./theme.js";
30
- import { BaseButton } from "../../BaseButton/v1/index.js";
31
- import { allowedProps } from "./props.js";
29
+ import generateComponentTheme from './theme.js';
30
+ import { BaseButton } from '../../BaseButton/v1/index.js';
31
+ import { allowedProps } from './props.js';
32
32
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
33
33
  /**
34
34
  ---
@@ -37,7 +37,7 @@ category: components
37
37
  **/
38
38
  // needed for listing the available theme variables on docs page
39
39
  let CondensedButton = (_dec = withStyle(null, generateComponentTheme), _dec(_class = class CondensedButton extends Component {
40
- static displayName = "CondensedButton";
40
+ static displayName = 'CondensedButton';
41
41
  static componentId = 'CondensedButton';
42
42
  static allowedProps = allowedProps;
43
43
  static defaultProps = {
@@ -21,4 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { default } from "../../BaseButton/v1/theme.js";
24
+
25
+ export { default } from '../../BaseButton/v1/theme.js';
@@ -26,8 +26,8 @@ var _dec, _class;
26
26
  import { Component } from 'react';
27
27
  import { passthroughProps } from '@instructure/ui-react-utils';
28
28
  import { withStyleNew } from '@instructure/emotion';
29
- import { BaseButton } from "../../BaseButton/v2/index.js";
30
- import { allowedProps } from "./props.js";
29
+ import { BaseButton } from '../../BaseButton/v2/index.js';
30
+ import { allowedProps } from './props.js';
31
31
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
32
32
  /**
33
33
  ---
@@ -36,7 +36,7 @@ category: components
36
36
  **/
37
37
  // needed for listing the available theme variables on docs page
38
38
  let CondensedButton = (_dec = withStyleNew(null, 'BaseButton'), _dec(_class = class CondensedButton extends Component {
39
- static displayName = "CondensedButton";
39
+ static displayName = 'CondensedButton';
40
40
  static componentId = 'CondensedButton';
41
41
  static allowedProps = allowedProps;
42
42
  static defaultProps = {
@@ -28,9 +28,9 @@ import { passthroughProps } from '@instructure/ui-react-utils';
28
28
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
29
29
  import { combineDataCid } from '@instructure/ui-utils';
30
30
  import { withStyle } from '@instructure/emotion';
31
- import generateComponentTheme from "./theme.js";
32
- import { BaseButton } from "../../BaseButton/v1/index.js";
33
- import { allowedProps } from "./props.js";
31
+ import generateComponentTheme from './theme.js';
32
+ import { BaseButton } from '../../BaseButton/v1/index.js';
33
+ import { allowedProps } from './props.js';
34
34
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
35
35
  /**
36
36
  ---
@@ -39,7 +39,7 @@ category: components
39
39
  **/
40
40
  // needed for listing the available theme variables on docs page
41
41
  let IconButton = (_dec = withStyle(null, generateComponentTheme), _dec(_class = class IconButton extends Component {
42
- static displayName = "IconButton";
42
+ static displayName = 'IconButton';
43
43
  static componentId = 'IconButton';
44
44
  static allowedProps = allowedProps;
45
45
  static defaultProps = {
@@ -21,4 +21,5 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { default } from "../../BaseButton/v1/theme.js";
24
+
25
+ export { default } from '../../BaseButton/v1/theme.js';
@@ -28,8 +28,8 @@ import { passthroughProps } from '@instructure/ui-react-utils';
28
28
  import { ScreenReaderContent } from '@instructure/ui-a11y-content';
29
29
  import { combineDataCid } from '@instructure/ui-utils';
30
30
  import { withStyleNew } from '@instructure/emotion';
31
- import { BaseButton } from "../../BaseButton/v2/index.js";
32
- import { allowedProps } from "./props.js";
31
+ import { BaseButton } from '../../BaseButton/v2/index.js';
32
+ import { allowedProps } from './props.js';
33
33
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
34
34
  /**
35
35
  ---
@@ -38,7 +38,7 @@ category: components
38
38
  **/
39
39
  // needed for listing the available theme variables on docs page
40
40
  let IconButton = (_dec = withStyleNew(null, 'BaseButton'), _dec(_class = class IconButton extends Component {
41
- static displayName = "IconButton";
41
+ static displayName = 'IconButton';
42
42
  static componentId = 'IconButton';
43
43
  static allowedProps = allowedProps;
44
44
  static defaultProps = {
@@ -25,8 +25,8 @@
25
25
  import { Component } from 'react';
26
26
  import { callRenderProp, passthroughProps } from '@instructure/ui-react-utils';
27
27
  import { Tooltip } from '@instructure/ui-tooltip/v11_6';
28
- import { IconButton } from "../../IconButton/v1/index.js";
29
- import { allowedProps } from "./props.js";
28
+ import { IconButton } from '../../IconButton/v1/index.js';
29
+ import { allowedProps } from './props.js';
30
30
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
31
31
  /**
32
32
  ---
@@ -35,7 +35,7 @@ category: components
35
35
  **/
36
36
 
37
37
  class ToggleButton extends Component {
38
- static displayName = "ToggleButton";
38
+ static displayName = 'ToggleButton';
39
39
  static componentId = 'ToggleButton';
40
40
  static allowedProps = allowedProps;
41
41
  static defaultProps = {
@@ -25,8 +25,8 @@
25
25
  import { Component } from 'react';
26
26
  import { passthroughProps } from '@instructure/ui-react-utils';
27
27
  import { Tooltip } from '@instructure/ui-tooltip/latest';
28
- import { IconButton } from "../../IconButton/v2/index.js";
29
- import { allowedProps } from "./props.js";
28
+ import { IconButton } from '../../IconButton/v2/index.js';
29
+ import { allowedProps } from './props.js';
30
30
  import { jsx as _jsx } from "@emotion/react/jsx-runtime";
31
31
  /**
32
32
  ---
@@ -35,7 +35,7 @@ category: components
35
35
  **/
36
36
 
37
37
  class ToggleButton extends Component {
38
- static displayName = "ToggleButton";
38
+ static displayName = 'ToggleButton';
39
39
  static componentId = 'ToggleButton';
40
40
  static allowedProps = allowedProps;
41
41
  static defaultProps = {
package/es/exports/a.js CHANGED
@@ -21,9 +21,10 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { BaseButton } from "../BaseButton/v1/index.js";
25
- export { Button } from "../Button/v1/index.js";
26
- export { CloseButton } from "../CloseButton/v1/index.js";
27
- export { CondensedButton } from "../CondensedButton/v1/index.js";
28
- export { IconButton } from "../IconButton/v1/index.js";
29
- export { ToggleButton } from "../ToggleButton/v1/index.js";
24
+
25
+ export { BaseButton } from '../BaseButton/v1/index.js';
26
+ export { Button } from '../Button/v1/index.js';
27
+ export { CloseButton } from '../CloseButton/v1/index.js';
28
+ export { CondensedButton } from '../CondensedButton/v1/index.js';
29
+ export { IconButton } from '../IconButton/v1/index.js';
30
+ export { ToggleButton } from '../ToggleButton/v1/index.js';
package/es/exports/b.js CHANGED
@@ -21,9 +21,10 @@
21
21
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
22
  * SOFTWARE.
23
23
  */
24
- export { BaseButton } from "../BaseButton/v2/index.js";
25
- export { Button } from "../Button/v2/index.js";
26
- export { CloseButton } from "../CloseButton/v2/index.js";
27
- export { CondensedButton } from "../CondensedButton/v2/index.js";
28
- export { IconButton } from "../IconButton/v2/index.js";
29
- export { ToggleButton } from "../ToggleButton/v2/index.js";
24
+
25
+ export { BaseButton } from '../BaseButton/v2/index.js';
26
+ export { Button } from '../Button/v2/index.js';
27
+ export { CloseButton } from '../CloseButton/v2/index.js';
28
+ export { CondensedButton } from '../CondensedButton/v2/index.js';
29
+ export { IconButton } from '../IconButton/v2/index.js';
30
+ export { ToggleButton } from '../ToggleButton/v2/index.js';
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@instructure/ui-buttons",
3
- "version": "11.7.3",
3
+ "version": "11.7.4-pr-snapshot-1781695314229",
4
+ "type": "module",
4
5
  "description": "Accessible button components",
5
6
  "author": "Instructure, Inc. Engineering and Product Design",
6
7
  "module": "./es/index.js",
7
- "main": "./lib/index.js",
8
8
  "types": "./types/index.d.ts",
9
9
  "repository": {
10
10
  "type": "git",
@@ -16,28 +16,28 @@
16
16
  "dependencies": {
17
17
  "@babel/runtime": "^7.29.2",
18
18
  "keycode": "^2",
19
- "@instructure/console": "11.7.3",
20
- "@instructure/emotion": "11.7.3",
21
- "@instructure/ui-a11y-utils": "11.7.3",
22
- "@instructure/shared-types": "11.7.3",
23
- "@instructure/ui-a11y-content": "11.7.3",
24
- "@instructure/ui-color-utils": "11.7.3",
25
- "@instructure/ui-dom-utils": "11.7.3",
26
- "@instructure/ui-react-utils": "11.7.3",
27
- "@instructure/ui-position": "11.7.3",
28
- "@instructure/ui-tooltip": "11.7.3",
29
- "@instructure/ui-icons": "11.7.3",
30
- "@instructure/ui-themes": "11.7.3",
31
- "@instructure/ui-utils": "11.7.3",
32
- "@instructure/ui-view": "11.7.3"
19
+ "@instructure/console": "11.7.4-pr-snapshot-1781695314229",
20
+ "@instructure/shared-types": "11.7.4-pr-snapshot-1781695314229",
21
+ "@instructure/ui-a11y-content": "11.7.4-pr-snapshot-1781695314229",
22
+ "@instructure/ui-a11y-utils": "11.7.4-pr-snapshot-1781695314229",
23
+ "@instructure/emotion": "11.7.4-pr-snapshot-1781695314229",
24
+ "@instructure/ui-color-utils": "11.7.4-pr-snapshot-1781695314229",
25
+ "@instructure/ui-dom-utils": "11.7.4-pr-snapshot-1781695314229",
26
+ "@instructure/ui-position": "11.7.4-pr-snapshot-1781695314229",
27
+ "@instructure/ui-react-utils": "11.7.4-pr-snapshot-1781695314229",
28
+ "@instructure/ui-icons": "11.7.4-pr-snapshot-1781695314229",
29
+ "@instructure/ui-themes": "11.7.4-pr-snapshot-1781695314229",
30
+ "@instructure/ui-tooltip": "11.7.4-pr-snapshot-1781695314229",
31
+ "@instructure/ui-utils": "11.7.4-pr-snapshot-1781695314229",
32
+ "@instructure/ui-view": "11.7.4-pr-snapshot-1781695314229"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@testing-library/jest-dom": "^6.6.3",
36
36
  "@testing-library/react": "15.0.7",
37
37
  "@testing-library/user-event": "^14.6.1",
38
38
  "vitest": "^3.2.2",
39
- "@instructure/ui-axe-check": "11.7.3",
40
- "@instructure/ui-babel-preset": "11.7.3"
39
+ "@instructure/ui-axe-check": "11.7.4-pr-snapshot-1781695314229",
40
+ "@instructure/ui-babel-preset": "11.7.4-pr-snapshot-1781695314229"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "react": ">=18 <=19"
@@ -47,7 +47,6 @@
47
47
  },
48
48
  "sideEffects": false,
49
49
  "exports": {
50
- "./lib/*": "./lib/*",
51
50
  "./es/*": "./es/*",
52
51
  "./types/*": "./types/*",
53
52
  "./package.json": "./package.json",
@@ -56,28 +55,24 @@
56
55
  "src": "./src/exports/a.ts",
57
56
  "types": "./types/exports/a.d.ts",
58
57
  "import": "./es/exports/a.js",
59
- "require": "./lib/exports/a.js",
60
58
  "default": "./es/exports/a.js"
61
59
  },
62
60
  "./v11_6": {
63
61
  "src": "./src/exports/a.ts",
64
62
  "types": "./types/exports/a.d.ts",
65
63
  "import": "./es/exports/a.js",
66
- "require": "./lib/exports/a.js",
67
64
  "default": "./es/exports/a.js"
68
65
  },
69
66
  "./v11_7": {
70
67
  "src": "./src/exports/b.ts",
71
68
  "types": "./types/exports/b.d.ts",
72
69
  "import": "./es/exports/b.js",
73
- "require": "./lib/exports/b.js",
74
70
  "default": "./es/exports/b.js"
75
71
  },
76
72
  "./latest": {
77
73
  "src": "./src/exports/b.ts",
78
74
  "types": "./types/exports/b.d.ts",
79
75
  "import": "./es/exports/b.js",
80
- "require": "./lib/exports/b.js",
81
76
  "default": "./es/exports/b.js"
82
77
  }
83
78
  },
@@ -85,7 +80,7 @@
85
80
  "lint": "ui-scripts lint",
86
81
  "lint:fix": "ui-scripts lint --fix",
87
82
  "clean": "ui-scripts clean",
88
- "build": "ui-scripts build --modules es,cjs",
83
+ "build": "ui-scripts build",
89
84
  "build:watch": "pnpm run ts:check -- --watch & ui-scripts build --watch",
90
85
  "build:types": "tsc -p tsconfig.build.json",
91
86
  "ts:check": "tsc -p tsconfig.build.json --noEmit --emitDeclarationOnly false"
@@ -43,20 +43,21 @@ import { combineDataCid } from '@instructure/ui-utils'
43
43
 
44
44
  import { withStyle } from '@instructure/emotion'
45
45
 
46
- import generateStyles from './styles'
47
- import generateComponentTheme from './theme'
46
+ import generateStyles from './styles.js'
47
+ import generateComponentTheme from './theme.js'
48
48
 
49
- import { allowedProps } from './props'
49
+ import { allowedProps } from './props.js'
50
50
  import type { BaseButtonProps, BaseButtonStyleProps } from './props'
51
51
 
52
52
  /**
53
53
  ---
54
- category: components/utilities
54
+ category: components/Util Components
55
55
  ---
56
56
  **/
57
57
 
58
58
  @withStyle(generateStyles, generateComponentTheme)
59
59
  class BaseButton extends Component<BaseButtonProps> {
60
+ static displayName = 'BaseButton'
60
61
  static readonly componentId = 'BaseButton'
61
62
 
62
63
  static allowedProps = allowedProps
@@ -43,9 +43,9 @@ import { combineDataCid } from '@instructure/ui-utils'
43
43
 
44
44
  import { withStyleNew } from '@instructure/emotion'
45
45
 
46
- import generateStyles from './styles'
46
+ import generateStyles from './styles.js'
47
47
 
48
- import { allowedProps } from './props'
48
+ import { allowedProps } from './props.js'
49
49
  import type { BaseButtonProps, BaseButtonStyleProps } from './props'
50
50
 
51
51
  const buttonSizeToIconSize = {
@@ -68,11 +68,12 @@ const buttonColorToIconColor = {
68
68
 
69
69
  /**
70
70
  ---
71
- category: components/utilities
71
+ category: components/Util Components
72
72
  ---
73
73
  **/
74
74
  @withStyleNew(generateStyles)
75
75
  class BaseButton extends Component<BaseButtonProps> {
76
+ static displayName = 'BaseButton'
76
77
  static readonly componentId = 'BaseButton'
77
78
 
78
79
  static allowedProps = allowedProps
@@ -28,10 +28,10 @@ import { getInteraction, passthroughProps } from '@instructure/ui-react-utils'
28
28
 
29
29
  import { withStyle } from '@instructure/emotion'
30
30
 
31
- import generateComponentTheme from './theme'
32
- import { BaseButton } from '../../BaseButton/v1'
31
+ import generateComponentTheme from './theme.js'
32
+ import { BaseButton } from '../../BaseButton/v1/index.js'
33
33
 
34
- import { allowedProps } from './props'
34
+ import { allowedProps } from './props.js'
35
35
  import type { ButtonProps } from './props'
36
36
 
37
37
  /**
@@ -42,6 +42,7 @@ category: components
42
42
  // needed for listing the available theme variables on docs page
43
43
  @withStyle(null, generateComponentTheme)
44
44
  class Button extends Component<ButtonProps> {
45
+ static displayName = 'Button'
45
46
  static readonly componentId = 'Button'
46
47
 
47
48
  static allowedProps = allowedProps
@@ -22,4 +22,4 @@
22
22
  * SOFTWARE.
23
23
  */
24
24
 
25
- export { default } from '../../BaseButton/v1/theme'
25
+ export { default } from '../../BaseButton/v1/theme.js'
@@ -27,9 +27,9 @@ import { Component } from 'react'
27
27
  import { getInteraction, passthroughProps } from '@instructure/ui-react-utils'
28
28
 
29
29
  import { withStyleNew } from '@instructure/emotion'
30
- import { BaseButton } from '../../BaseButton/v2'
30
+ import { BaseButton } from '../../BaseButton/v2/index.js'
31
31
 
32
- import { allowedProps } from './props'
32
+ import { allowedProps } from './props.js'
33
33
  import type { ButtonProps } from './props'
34
34
 
35
35
  /**
@@ -40,6 +40,7 @@ category: components
40
40
  // needed for listing the available theme variables on docs page
41
41
  @withStyleNew(null, 'BaseButton')
42
42
  class Button extends Component<ButtonProps> {
43
+ static displayName = 'Button'
43
44
  static readonly componentId = 'Button'
44
45
 
45
46
  static allowedProps = allowedProps
@@ -30,11 +30,11 @@ import { getInteraction, passthroughProps } from '@instructure/ui-react-utils'
30
30
 
31
31
  import { withStyle } from '@instructure/emotion'
32
32
 
33
- import generateStyle from './styles'
34
- import generateComponentTheme from './theme'
35
- import { BaseButton } from '../../BaseButton/v1'
33
+ import generateStyle from './styles.js'
34
+ import generateComponentTheme from './theme.js'
35
+ import { BaseButton } from '../../BaseButton/v1/index.js'
36
36
 
37
- import { allowedProps } from './props'
37
+ import { allowedProps } from './props.js'
38
38
  import type { CloseButtonProps } from './props'
39
39
 
40
40
  /**
@@ -44,6 +44,7 @@ category: components
44
44
  **/
45
45
  @withStyle(generateStyle, generateComponentTheme)
46
46
  class CloseButton extends Component<CloseButtonProps> {
47
+ static displayName = 'CloseButton'
47
48
  static readonly componentId = 'CloseButton'
48
49
 
49
50
  static allowedProps = allowedProps