@instructure/ui-buttons 11.7.4-snapshot-14 → 11.7.4-snapshot-50
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 +1 -1
- package/LICENSE.md +1 -0
- package/es/BaseButton/v1/index.js +5 -5
- package/es/BaseButton/v2/index.js +4 -4
- 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/lib/BaseButton/v1/index.js +5 -5
- package/lib/BaseButton/v2/index.js +4 -4
- package/lib/Button/v1/index.js +5 -5
- package/lib/Button/v1/theme.js +1 -1
- package/lib/Button/v2/index.js +4 -4
- package/lib/CloseButton/v1/index.js +6 -6
- package/lib/CloseButton/v2/index.js +5 -5
- package/lib/CondensedButton/v1/index.js +5 -5
- package/lib/CondensedButton/v1/theme.js +1 -1
- package/lib/CondensedButton/v2/index.js +4 -4
- package/lib/IconButton/v1/index.js +5 -5
- package/lib/IconButton/v1/theme.js +1 -1
- package/lib/IconButton/v2/index.js +4 -4
- package/lib/ToggleButton/v1/index.js +4 -4
- package/lib/ToggleButton/v2/index.js +4 -4
- package/lib/exports/a.js +12 -12
- package/lib/exports/b.js +12 -12
- package/package.json +17 -17
- 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/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.4-snapshot-
|
|
6
|
+
## [11.7.4-snapshot-50](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-50) (2026-06-18)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-buttons
|
|
9
9
|
|
package/LICENSE.md
CHANGED
|
@@ -34,17 +34,17 @@ import { View } from '@instructure/ui-view/v11_6';
|
|
|
34
34
|
import { isSafari } from '@instructure/ui-utils';
|
|
35
35
|
import { combineDataCid } from '@instructure/ui-utils';
|
|
36
36
|
import { withStyle } from '@instructure/emotion';
|
|
37
|
-
import generateStyles from
|
|
38
|
-
import generateComponentTheme from
|
|
39
|
-
import { allowedProps } from
|
|
37
|
+
import generateStyles from './styles.js';
|
|
38
|
+
import generateComponentTheme from './theme.js';
|
|
39
|
+
import { allowedProps } from './props.js';
|
|
40
40
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
41
41
|
/**
|
|
42
42
|
---
|
|
43
|
-
category: components/
|
|
43
|
+
category: components/Util Components
|
|
44
44
|
---
|
|
45
45
|
**/
|
|
46
46
|
let BaseButton = (_dec = withStyle(generateStyles, generateComponentTheme), _dec(_class = class BaseButton extends Component {
|
|
47
|
-
static displayName =
|
|
47
|
+
static displayName = 'BaseButton';
|
|
48
48
|
static componentId = 'BaseButton';
|
|
49
49
|
static allowedProps = allowedProps;
|
|
50
50
|
static defaultProps = {
|
|
@@ -35,8 +35,8 @@ import { View } from '@instructure/ui-view/latest';
|
|
|
35
35
|
import { isSafari } from '@instructure/ui-utils';
|
|
36
36
|
import { combineDataCid } from '@instructure/ui-utils';
|
|
37
37
|
import { withStyleNew } from '@instructure/emotion';
|
|
38
|
-
import generateStyles from
|
|
39
|
-
import { allowedProps } from
|
|
38
|
+
import generateStyles from './styles.js';
|
|
39
|
+
import { allowedProps } from './props.js';
|
|
40
40
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
41
41
|
const buttonSizeToIconSize = {
|
|
42
42
|
small: 'sm',
|
|
@@ -57,11 +57,11 @@ const buttonColorToIconColor = {
|
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
---
|
|
60
|
-
category: components/
|
|
60
|
+
category: components/Util Components
|
|
61
61
|
---
|
|
62
62
|
**/
|
|
63
63
|
let BaseButton = (_dec = withStyleNew(generateStyles), _dec(_class = class BaseButton extends Component {
|
|
64
|
-
static displayName =
|
|
64
|
+
static displayName = 'BaseButton';
|
|
65
65
|
static componentId = 'BaseButton';
|
|
66
66
|
static allowedProps = allowedProps;
|
|
67
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';
|
|
@@ -17,9 +17,9 @@ var _v11_ = require("@instructure/ui-view/v11_6");
|
|
|
17
17
|
var _uiUtils = require("@instructure/ui-utils");
|
|
18
18
|
var _combineDataCid = require("@instructure/ui-utils/lib/combineDataCid.js");
|
|
19
19
|
var _emotion = require("@instructure/emotion");
|
|
20
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
21
|
-
var _theme = _interopRequireDefault(require("./theme"));
|
|
22
|
-
var _props = require("./props");
|
|
20
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
21
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
22
|
+
var _props = require("./props.js");
|
|
23
23
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
24
24
|
var _dec, _class;
|
|
25
25
|
/*
|
|
@@ -49,11 +49,11 @@ var _dec, _class;
|
|
|
49
49
|
// this bug is very likely caused by `babel-plugin-transform-imports` and can be reverted once it is removed from the codebase
|
|
50
50
|
/**
|
|
51
51
|
---
|
|
52
|
-
category: components/
|
|
52
|
+
category: components/Util Components
|
|
53
53
|
---
|
|
54
54
|
**/
|
|
55
55
|
let BaseButton = exports.BaseButton = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class BaseButton extends _react.Component {
|
|
56
|
-
static displayName =
|
|
56
|
+
static displayName = 'BaseButton';
|
|
57
57
|
static componentId = 'BaseButton';
|
|
58
58
|
static allowedProps = _props.allowedProps;
|
|
59
59
|
static defaultProps = {
|
|
@@ -17,8 +17,8 @@ var _latest = require("@instructure/ui-view/latest");
|
|
|
17
17
|
var _uiUtils = require("@instructure/ui-utils");
|
|
18
18
|
var _combineDataCid = require("@instructure/ui-utils/lib/combineDataCid.js");
|
|
19
19
|
var _emotion = require("@instructure/emotion");
|
|
20
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
21
|
-
var _props = require("./props");
|
|
20
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
21
|
+
var _props = require("./props.js");
|
|
22
22
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
23
23
|
var _dec, _class;
|
|
24
24
|
/*
|
|
@@ -65,11 +65,11 @@ const buttonColorToIconColor = {
|
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
67
|
---
|
|
68
|
-
category: components/
|
|
68
|
+
category: components/Util Components
|
|
69
69
|
---
|
|
70
70
|
**/
|
|
71
71
|
let BaseButton = exports.BaseButton = (_dec = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = class BaseButton extends _react.Component {
|
|
72
|
-
static displayName =
|
|
72
|
+
static displayName = 'BaseButton';
|
|
73
73
|
static componentId = 'BaseButton';
|
|
74
74
|
static allowedProps = _props.allowedProps;
|
|
75
75
|
static defaultProps = {
|
package/lib/Button/v1/index.js
CHANGED
|
@@ -9,9 +9,9 @@ var _react = require("react");
|
|
|
9
9
|
var _getInteraction = require("@instructure/ui-react-utils/lib/getInteraction.js");
|
|
10
10
|
var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
|
|
11
11
|
var _emotion = require("@instructure/emotion");
|
|
12
|
-
var _theme = _interopRequireDefault(require("./theme"));
|
|
13
|
-
var
|
|
14
|
-
var _props = require("./props");
|
|
12
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
13
|
+
var _index = require("../../BaseButton/v1/index.js");
|
|
14
|
+
var _props = require("./props.js");
|
|
15
15
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
16
16
|
var _dec, _class;
|
|
17
17
|
/*
|
|
@@ -44,7 +44,7 @@ category: components
|
|
|
44
44
|
**/
|
|
45
45
|
// needed for listing the available theme variables on docs page
|
|
46
46
|
let Button = exports.Button = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec(_class = class Button extends _react.Component {
|
|
47
|
-
static displayName =
|
|
47
|
+
static displayName = 'Button';
|
|
48
48
|
static componentId = 'Button';
|
|
49
49
|
static allowedProps = _props.allowedProps;
|
|
50
50
|
static defaultProps = {
|
|
@@ -120,7 +120,7 @@ let Button = exports.Button = (_dec = (0, _emotion.withStyle)(null, _theme.defau
|
|
|
120
120
|
renderIcon,
|
|
121
121
|
themeOverride
|
|
122
122
|
};
|
|
123
|
-
return (0, _jsxRuntime.jsx)(
|
|
123
|
+
return (0, _jsxRuntime.jsx)(_index.BaseButton, {
|
|
124
124
|
...buttonProps,
|
|
125
125
|
"data-cid": "Button",
|
|
126
126
|
children: children
|
package/lib/Button/v1/theme.js
CHANGED
package/lib/Button/v2/index.js
CHANGED
|
@@ -8,8 +8,8 @@ var _react = require("react");
|
|
|
8
8
|
var _getInteraction = require("@instructure/ui-react-utils/lib/getInteraction.js");
|
|
9
9
|
var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
|
|
10
10
|
var _emotion = require("@instructure/emotion");
|
|
11
|
-
var
|
|
12
|
-
var _props = require("./props");
|
|
11
|
+
var _index = require("../../BaseButton/v2/index.js");
|
|
12
|
+
var _props = require("./props.js");
|
|
13
13
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
14
14
|
var _dec, _class;
|
|
15
15
|
/*
|
|
@@ -42,7 +42,7 @@ category: components
|
|
|
42
42
|
**/
|
|
43
43
|
// needed for listing the available theme variables on docs page
|
|
44
44
|
let Button = exports.Button = (_dec = (0, _emotion.withStyleNew)(null, 'BaseButton'), _dec(_class = class Button extends _react.Component {
|
|
45
|
-
static displayName =
|
|
45
|
+
static displayName = 'Button';
|
|
46
46
|
static componentId = 'Button';
|
|
47
47
|
static allowedProps = _props.allowedProps;
|
|
48
48
|
static defaultProps = {
|
|
@@ -118,7 +118,7 @@ let Button = exports.Button = (_dec = (0, _emotion.withStyleNew)(null, 'BaseButt
|
|
|
118
118
|
renderIcon,
|
|
119
119
|
themeOverride
|
|
120
120
|
};
|
|
121
|
-
return (0, _jsxRuntime.jsx)(
|
|
121
|
+
return (0, _jsxRuntime.jsx)(_index.BaseButton, {
|
|
122
122
|
...buttonProps,
|
|
123
123
|
"data-cid": "Button",
|
|
124
124
|
children: children
|
|
@@ -11,10 +11,10 @@ var _ScreenReaderContent = require("@instructure/ui-a11y-content/lib/ScreenReade
|
|
|
11
11
|
var _getInteraction = require("@instructure/ui-react-utils/lib/getInteraction.js");
|
|
12
12
|
var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
|
|
13
13
|
var _emotion = require("@instructure/emotion");
|
|
14
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
15
|
-
var _theme = _interopRequireDefault(require("./theme"));
|
|
16
|
-
var
|
|
17
|
-
var _props = require("./props");
|
|
14
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
15
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
16
|
+
var _index = require("../../BaseButton/v1/index.js");
|
|
17
|
+
var _props = require("./props.js");
|
|
18
18
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
19
19
|
var _dec, _class;
|
|
20
20
|
/*
|
|
@@ -46,7 +46,7 @@ category: components
|
|
|
46
46
|
---
|
|
47
47
|
**/
|
|
48
48
|
let CloseButton = exports.CloseButton = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = class CloseButton extends _react.Component {
|
|
49
|
-
static displayName =
|
|
49
|
+
static displayName = 'CloseButton';
|
|
50
50
|
static componentId = 'CloseButton';
|
|
51
51
|
static allowedProps = _props.allowedProps;
|
|
52
52
|
static defaultProps = {
|
|
@@ -109,7 +109,7 @@ let CloseButton = exports.CloseButton = (_dec = (0, _emotion.withStyle)(_styles.
|
|
|
109
109
|
ref: el => {
|
|
110
110
|
this.ref = el;
|
|
111
111
|
},
|
|
112
|
-
children: (0, _jsxRuntime.jsx)(
|
|
112
|
+
children: (0, _jsxRuntime.jsx)(_index.BaseButton, {
|
|
113
113
|
renderIcon: _IconXSolid.IconXSolid,
|
|
114
114
|
elementRef: this.handleRef,
|
|
115
115
|
interaction: this.interaction,
|
|
@@ -11,9 +11,9 @@ var _ScreenReaderContent = require("@instructure/ui-a11y-content/lib/ScreenReade
|
|
|
11
11
|
var _getInteraction = require("@instructure/ui-react-utils/lib/getInteraction.js");
|
|
12
12
|
var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
|
|
13
13
|
var _emotion = require("@instructure/emotion");
|
|
14
|
-
var _styles = _interopRequireDefault(require("./styles"));
|
|
15
|
-
var
|
|
16
|
-
var _props = require("./props");
|
|
14
|
+
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
15
|
+
var _index = require("../../BaseButton/v2/index.js");
|
|
16
|
+
var _props = require("./props.js");
|
|
17
17
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
18
18
|
var _dec, _class;
|
|
19
19
|
/*
|
|
@@ -45,7 +45,7 @@ category: components
|
|
|
45
45
|
---
|
|
46
46
|
**/
|
|
47
47
|
let CloseButton = exports.CloseButton = (_dec = (0, _emotion.withStyleNew)(_styles.default, 'BaseButton'), _dec(_class = class CloseButton extends _react.Component {
|
|
48
|
-
static displayName =
|
|
48
|
+
static displayName = 'CloseButton';
|
|
49
49
|
static componentId = 'CloseButton';
|
|
50
50
|
static allowedProps = _props.allowedProps;
|
|
51
51
|
static defaultProps = {
|
|
@@ -109,7 +109,7 @@ let CloseButton = exports.CloseButton = (_dec = (0, _emotion.withStyleNew)(_styl
|
|
|
109
109
|
ref: el => {
|
|
110
110
|
this.ref = el;
|
|
111
111
|
},
|
|
112
|
-
children: (0, _jsxRuntime.jsx)(
|
|
112
|
+
children: (0, _jsxRuntime.jsx)(_index.BaseButton, {
|
|
113
113
|
renderIcon: _uiIcons.XInstUIIcon,
|
|
114
114
|
elementRef: this.handleRef,
|
|
115
115
|
interaction: this.interaction,
|
|
@@ -8,9 +8,9 @@ exports.default = exports.CondensedButton = void 0;
|
|
|
8
8
|
var _react = require("react");
|
|
9
9
|
var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
|
|
10
10
|
var _emotion = require("@instructure/emotion");
|
|
11
|
-
var _theme = _interopRequireDefault(require("./theme"));
|
|
12
|
-
var
|
|
13
|
-
var _props = require("./props");
|
|
11
|
+
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
12
|
+
var _index = require("../../BaseButton/v1/index.js");
|
|
13
|
+
var _props = require("./props.js");
|
|
14
14
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
15
15
|
var _dec, _class;
|
|
16
16
|
/*
|
|
@@ -43,7 +43,7 @@ category: components
|
|
|
43
43
|
**/
|
|
44
44
|
// needed for listing the available theme variables on docs page
|
|
45
45
|
let CondensedButton = exports.CondensedButton = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec(_class = class CondensedButton extends _react.Component {
|
|
46
|
-
static displayName =
|
|
46
|
+
static displayName = 'CondensedButton';
|
|
47
47
|
static componentId = 'CondensedButton';
|
|
48
48
|
static allowedProps = _props.allowedProps;
|
|
49
49
|
static defaultProps = {
|
|
@@ -91,7 +91,7 @@ let CondensedButton = exports.CondensedButton = (_dec = (0, _emotion.withStyle)(
|
|
|
91
91
|
...props
|
|
92
92
|
} = this.props;
|
|
93
93
|
const themeOverride = this.props.themeOverride;
|
|
94
|
-
return (0, _jsxRuntime.jsx)(
|
|
94
|
+
return (0, _jsxRuntime.jsx)(_index.BaseButton, {
|
|
95
95
|
...(0, _passthroughProps.passthroughProps)(props),
|
|
96
96
|
isCondensed: true,
|
|
97
97
|
display: display,
|
|
@@ -7,8 +7,8 @@ exports.default = exports.CondensedButton = void 0;
|
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _passthroughProps = require("@instructure/ui-react-utils/lib/passthroughProps.js");
|
|
9
9
|
var _emotion = require("@instructure/emotion");
|
|
10
|
-
var
|
|
11
|
-
var _props = require("./props");
|
|
10
|
+
var _index = require("../../BaseButton/v2/index.js");
|
|
11
|
+
var _props = require("./props.js");
|
|
12
12
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
13
13
|
var _dec, _class;
|
|
14
14
|
/*
|
|
@@ -41,7 +41,7 @@ category: components
|
|
|
41
41
|
**/
|
|
42
42
|
// needed for listing the available theme variables on docs page
|
|
43
43
|
let CondensedButton = exports.CondensedButton = (_dec = (0, _emotion.withStyleNew)(null, 'BaseButton'), _dec(_class = class CondensedButton extends _react.Component {
|
|
44
|
-
static displayName =
|
|
44
|
+
static displayName = 'CondensedButton';
|
|
45
45
|
static componentId = 'CondensedButton';
|
|
46
46
|
static allowedProps = _props.allowedProps;
|
|
47
47
|
static defaultProps = {
|
|
@@ -89,7 +89,7 @@ let CondensedButton = exports.CondensedButton = (_dec = (0, _emotion.withStyleNe
|
|
|
89
89
|
...props
|
|
90
90
|
} = this.props;
|
|
91
91
|
const themeOverride = this.props.themeOverride;
|
|
92
|
-
return (0, _jsxRuntime.jsx)(
|
|
92
|
+
return (0, _jsxRuntime.jsx)(_index.BaseButton, {
|
|
93
93
|
...(0, _passthroughProps.passthroughProps)(props),
|
|
94
94
|
isCondensed: true,
|
|
95
95
|
display: display,
|