@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.
- package/CHANGELOG.md +8 -0
- package/LICENSE.md +1 -0
- package/{lib/CondensedButton/v1/props.js → babel.config.cjs} +12 -7
- package/es/BaseButton/v1/index.js +5 -6
- package/es/BaseButton/v2/index.js +4 -5
- package/es/Button/v1/index.js +4 -4
- package/es/Button/v1/theme.js +2 -1
- package/es/Button/v2/index.js +3 -3
- package/es/CloseButton/v1/index.js +5 -5
- package/es/CloseButton/v2/index.js +4 -4
- package/es/CondensedButton/v1/index.js +4 -4
- package/es/CondensedButton/v1/theme.js +2 -1
- package/es/CondensedButton/v2/index.js +3 -3
- package/es/IconButton/v1/index.js +4 -4
- package/es/IconButton/v1/theme.js +2 -1
- package/es/IconButton/v2/index.js +3 -3
- package/es/ToggleButton/v1/index.js +3 -3
- package/es/ToggleButton/v2/index.js +3 -3
- package/es/exports/a.js +7 -6
- package/es/exports/b.js +7 -6
- package/package.json +19 -24
- package/src/BaseButton/v1/index.tsx +5 -4
- package/src/BaseButton/v2/index.tsx +4 -3
- package/src/Button/v1/index.tsx +4 -3
- package/src/Button/v1/theme.ts +1 -1
- package/src/Button/v2/index.tsx +3 -2
- package/src/CloseButton/v1/index.tsx +5 -4
- package/src/CloseButton/v2/index.tsx +4 -3
- package/src/CondensedButton/v1/index.tsx +4 -3
- package/src/CondensedButton/v1/theme.ts +1 -1
- package/src/CondensedButton/v2/index.tsx +3 -2
- package/src/IconButton/v1/index.tsx +4 -3
- package/src/IconButton/v1/theme.ts +1 -1
- package/src/IconButton/v2/index.tsx +3 -2
- package/src/ToggleButton/v1/index.tsx +3 -2
- package/src/ToggleButton/v2/index.tsx +3 -2
- package/src/exports/a.ts +6 -6
- package/src/exports/b.ts +6 -6
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/BaseButton/v1/index.d.ts +3 -2
- package/types/BaseButton/v1/index.d.ts.map +1 -1
- package/types/BaseButton/v2/index.d.ts +3 -2
- package/types/BaseButton/v2/index.d.ts.map +1 -1
- package/types/Button/v1/index.d.ts +2 -1
- package/types/Button/v1/index.d.ts.map +1 -1
- package/types/Button/v1/theme.d.ts +1 -1
- package/types/Button/v1/theme.d.ts.map +1 -1
- package/types/Button/v2/index.d.ts +2 -1
- package/types/Button/v2/index.d.ts.map +1 -1
- package/types/CloseButton/v1/index.d.ts +1 -0
- package/types/CloseButton/v1/index.d.ts.map +1 -1
- package/types/CloseButton/v2/index.d.ts +1 -0
- package/types/CloseButton/v2/index.d.ts.map +1 -1
- package/types/CondensedButton/v1/index.d.ts +2 -1
- package/types/CondensedButton/v1/index.d.ts.map +1 -1
- package/types/CondensedButton/v1/theme.d.ts +1 -1
- package/types/CondensedButton/v1/theme.d.ts.map +1 -1
- package/types/CondensedButton/v2/index.d.ts +2 -1
- package/types/CondensedButton/v2/index.d.ts.map +1 -1
- package/types/IconButton/v1/index.d.ts +2 -1
- package/types/IconButton/v1/index.d.ts.map +1 -1
- package/types/IconButton/v1/theme.d.ts +1 -1
- package/types/IconButton/v1/theme.d.ts.map +1 -1
- package/types/IconButton/v2/index.d.ts +2 -1
- package/types/IconButton/v2/index.d.ts.map +1 -1
- package/types/ToggleButton/v1/index.d.ts +1 -0
- package/types/ToggleButton/v1/index.d.ts.map +1 -1
- package/types/ToggleButton/v2/index.d.ts +1 -0
- package/types/ToggleButton/v2/index.d.ts.map +1 -1
- package/types/exports/a.d.ts +6 -6
- package/types/exports/a.d.ts.map +1 -1
- package/types/exports/b.d.ts +6 -6
- package/types/exports/b.d.ts.map +1 -1
- package/lib/BaseButton/v1/index.js +0 -307
- package/lib/BaseButton/v1/props.js +0 -31
- package/lib/BaseButton/v1/styles.js +0 -465
- package/lib/BaseButton/v1/theme.js +0 -187
- package/lib/BaseButton/v2/index.js +0 -327
- package/lib/BaseButton/v2/props.js +0 -31
- package/lib/BaseButton/v2/styles.js +0 -589
- package/lib/Button/v1/index.js +0 -130
- package/lib/Button/v1/props.js +0 -31
- package/lib/Button/v1/theme.js +0 -13
- package/lib/Button/v2/index.js +0 -128
- package/lib/Button/v2/props.js +0 -31
- package/lib/CloseButton/v1/index.js +0 -137
- package/lib/CloseButton/v1/props.js +0 -31
- package/lib/CloseButton/v1/styles.js +0 -76
- package/lib/CloseButton/v1/theme.js +0 -51
- package/lib/CloseButton/v2/index.js +0 -138
- package/lib/CloseButton/v2/props.js +0 -31
- package/lib/CloseButton/v2/styles.js +0 -76
- package/lib/CondensedButton/v1/index.js +0 -119
- package/lib/CondensedButton/v1/theme.js +0 -13
- package/lib/CondensedButton/v2/index.js +0 -117
- package/lib/CondensedButton/v2/props.js +0 -31
- package/lib/IconButton/v1/index.js +0 -129
- package/lib/IconButton/v1/props.js +0 -31
- package/lib/IconButton/v1/theme.js +0 -13
- package/lib/IconButton/v2/index.js +0 -127
- package/lib/IconButton/v2/props.js +0 -31
- package/lib/ToggleButton/v1/index.js +0 -129
- package/lib/ToggleButton/v1/props.js +0 -31
- package/lib/ToggleButton/v2/index.js +0 -128
- package/lib/ToggleButton/v2/props.js +0 -31
- package/lib/exports/a.js +0 -47
- package/lib/exports/b.js +0 -47
- 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
|
@@ -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
|
-
|
|
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
|
|
39
|
-
import generateComponentTheme from
|
|
40
|
-
import { allowedProps } from
|
|
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/
|
|
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 =
|
|
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
|
|
40
|
-
import { allowedProps } from
|
|
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/
|
|
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 =
|
|
64
|
+
static displayName = 'BaseButton';
|
|
66
65
|
static componentId = 'BaseButton';
|
|
67
66
|
static allowedProps = allowedProps;
|
|
68
67
|
static defaultProps = {
|
package/es/Button/v1/index.js
CHANGED
|
@@ -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
|
|
30
|
-
import { BaseButton } from
|
|
31
|
-
import { allowedProps } from
|
|
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 =
|
|
40
|
+
static displayName = 'Button';
|
|
41
41
|
static componentId = 'Button';
|
|
42
42
|
static allowedProps = allowedProps;
|
|
43
43
|
static defaultProps = {
|
package/es/Button/v1/theme.js
CHANGED
package/es/Button/v2/index.js
CHANGED
|
@@ -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
|
|
30
|
-
import { allowedProps } from
|
|
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 =
|
|
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
|
|
32
|
-
import generateComponentTheme from
|
|
33
|
-
import { BaseButton } from
|
|
34
|
-
import { allowedProps } from
|
|
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 =
|
|
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
|
|
32
|
-
import { BaseButton } from
|
|
33
|
-
import { allowedProps } from
|
|
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 =
|
|
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
|
|
30
|
-
import { BaseButton } from
|
|
31
|
-
import { allowedProps } from
|
|
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 =
|
|
40
|
+
static displayName = 'CondensedButton';
|
|
41
41
|
static componentId = 'CondensedButton';
|
|
42
42
|
static allowedProps = allowedProps;
|
|
43
43
|
static defaultProps = {
|
|
@@ -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
|
|
30
|
-
import { allowedProps } from
|
|
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 =
|
|
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
|
|
32
|
-
import { BaseButton } from
|
|
33
|
-
import { allowedProps } from
|
|
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 =
|
|
42
|
+
static displayName = 'IconButton';
|
|
43
43
|
static componentId = 'IconButton';
|
|
44
44
|
static allowedProps = allowedProps;
|
|
45
45
|
static defaultProps = {
|
|
@@ -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
|
|
32
|
-
import { allowedProps } from
|
|
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 =
|
|
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
|
|
29
|
-
import { allowedProps } from
|
|
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 =
|
|
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
|
|
29
|
-
import { allowedProps } from
|
|
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 =
|
|
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
|
-
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
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
|
-
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
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
|
+
"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.
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/ui-a11y-
|
|
22
|
-
"@instructure/
|
|
23
|
-
"@instructure/
|
|
24
|
-
"@instructure/ui-color-utils": "11.7.
|
|
25
|
-
"@instructure/ui-dom-utils": "11.7.
|
|
26
|
-
"@instructure/ui-
|
|
27
|
-
"@instructure/ui-
|
|
28
|
-
"@instructure/ui-
|
|
29
|
-
"@instructure/ui-
|
|
30
|
-
"@instructure/ui-
|
|
31
|
-
"@instructure/ui-utils": "11.7.
|
|
32
|
-
"@instructure/ui-view": "11.7.
|
|
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.
|
|
40
|
-
"@instructure/ui-babel-preset": "11.7.
|
|
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
|
|
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/
|
|
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/
|
|
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
|
package/src/Button/v1/index.tsx
CHANGED
|
@@ -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
|
package/src/Button/v1/theme.ts
CHANGED
package/src/Button/v2/index.tsx
CHANGED
|
@@ -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
|