@instructure/ui-buttons 8.46.2-snapshot-5 → 8.46.2-snapshot-6
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/lib/BaseButton/BaseButtonLocator.js +2 -3
- package/lib/BaseButton/index.js +2 -4
- package/lib/BaseButton/locator.js +1 -2
- package/lib/BaseButton/props.js +2 -4
- package/lib/BaseButton/styles.js +1 -2
- package/lib/BaseButton/theme.js +1 -2
- package/lib/Button/ButtonLocator.js +2 -3
- package/lib/Button/index.js +2 -4
- package/lib/Button/locator.js +2 -3
- package/lib/Button/props.js +2 -4
- package/lib/CloseButton/CloseButtonLocator.js +1 -2
- package/lib/CloseButton/index.js +2 -4
- package/lib/CloseButton/locator.js +1 -2
- package/lib/CloseButton/props.js +2 -4
- package/lib/CloseButton/styles.js +1 -2
- package/lib/CloseButton/theme.js +1 -2
- package/lib/CondensedButton/CondensedButtonLocator.js +2 -3
- package/lib/CondensedButton/index.js +2 -4
- package/lib/CondensedButton/locator.js +1 -2
- package/lib/CondensedButton/props.js +2 -4
- package/lib/IconButton/IconButtonLocator.js +2 -3
- package/lib/IconButton/index.js +2 -4
- package/lib/IconButton/locator.js +1 -2
- package/lib/IconButton/props.js +2 -4
- package/lib/ToggleButton/ToggleButtonLocator.js +2 -3
- package/lib/ToggleButton/index.js +2 -4
- package/lib/ToggleButton/props.js +2 -4
- package/package.json +21 -21
- package/tsconfig.build.tsbuildinfo +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
|
-
## [8.46.2-snapshot-
|
|
6
|
+
## [8.46.2-snapshot-6](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.46.2-snapshot-6) (2023-10-19)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-buttons
|
|
9
9
|
|
|
@@ -32,9 +32,8 @@ var _index = require("./index");
|
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
34
|
// @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
35
|
-
const BaseButtonLocator = (0, _locator.locator)(_index.BaseButton.selector, {
|
|
35
|
+
const BaseButtonLocator = exports.BaseButtonLocator = (0, _locator.locator)(_index.BaseButton.selector, {
|
|
36
36
|
click: async (element, ...args) => {
|
|
37
37
|
return (await (0, _uiTestQueries.find)(element, 'a,button,[role="button"]')).click(...args);
|
|
38
38
|
}
|
|
39
|
-
});
|
|
40
|
-
exports.BaseButtonLocator = BaseButtonLocator;
|
|
39
|
+
});
|
package/lib/BaseButton/index.js
CHANGED
|
@@ -54,7 +54,7 @@ category: components/utilities
|
|
|
54
54
|
---
|
|
55
55
|
@tsProps
|
|
56
56
|
**/
|
|
57
|
-
let BaseButton = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class BaseButton extends _react.Component {
|
|
57
|
+
let BaseButton = exports.BaseButton = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class BaseButton extends _react.Component {
|
|
58
58
|
constructor(...args) {
|
|
59
59
|
super(...args);
|
|
60
60
|
this.ref = null;
|
|
@@ -275,6 +275,4 @@ let BaseButton = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default
|
|
|
275
275
|
margin: '0',
|
|
276
276
|
cursor: 'pointer'
|
|
277
277
|
}, _class2)) || _class) || _class);
|
|
278
|
-
exports.
|
|
279
|
-
var _default = BaseButton;
|
|
280
|
-
exports.default = _default;
|
|
278
|
+
var _default = exports.default = BaseButton;
|
|
@@ -34,5 +34,4 @@ var _BaseButtonLocator = require("./BaseButtonLocator");
|
|
|
34
34
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
35
35
|
* SOFTWARE.
|
|
36
36
|
*/
|
|
37
|
-
var _default = _BaseButtonLocator.BaseButtonLocator;
|
|
38
|
-
exports.default = _default;
|
|
37
|
+
var _default = exports.default = _BaseButtonLocator.BaseButtonLocator;
|
package/lib/BaseButton/props.js
CHANGED
|
@@ -31,7 +31,7 @@ var _emotion = require("@instructure/emotion");
|
|
|
31
31
|
* SOFTWARE.
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
-
const propTypes = {
|
|
34
|
+
const propTypes = exports.propTypes = {
|
|
35
35
|
children: _propTypes.default.node,
|
|
36
36
|
type: _propTypes.default.oneOf(['button', 'submit', 'reset']),
|
|
37
37
|
size: _propTypes.default.oneOf(['small', 'medium', 'large']),
|
|
@@ -56,6 +56,4 @@ const propTypes = {
|
|
|
56
56
|
// TODO: remove string type in v9
|
|
57
57
|
tabIndex: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
|
|
58
58
|
};
|
|
59
|
-
exports.
|
|
60
|
-
const allowedProps = ['as', 'children', 'color', 'cursor', 'display', 'elementRef', 'focusColor', 'href', 'interaction', 'isCondensed', 'margin', 'onClick', 'onKeyDown', 'renderIcon', 'shape', 'size', 'tabIndex', 'textAlign', 'type', 'withBackground', 'withBorder'];
|
|
61
|
-
exports.allowedProps = allowedProps;
|
|
59
|
+
const allowedProps = exports.allowedProps = ['as', 'children', 'color', 'cursor', 'display', 'elementRef', 'focusColor', 'href', 'interaction', 'isCondensed', 'margin', 'onClick', 'onKeyDown', 'renderIcon', 'shape', 'size', 'tabIndex', 'textAlign', 'type', 'withBackground', 'withBorder'];
|
package/lib/BaseButton/styles.js
CHANGED
package/lib/BaseButton/theme.js
CHANGED
|
@@ -32,9 +32,8 @@ var _index = require("./index");
|
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
34
|
// @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
35
|
-
const ButtonLocator = (0, _locator.locator)(_index.Button.selector, {
|
|
35
|
+
const ButtonLocator = exports.ButtonLocator = (0, _locator.locator)(_index.Button.selector, {
|
|
36
36
|
click: async (element, ...args) => {
|
|
37
37
|
return (await (0, _uiTestQueries.find)(element, 'a,button,[role="button"]')).click(...args);
|
|
38
38
|
}
|
|
39
|
-
});
|
|
40
|
-
exports.ButtonLocator = ButtonLocator;
|
|
39
|
+
});
|
package/lib/Button/index.js
CHANGED
|
@@ -47,7 +47,7 @@ category: components
|
|
|
47
47
|
@tsProps
|
|
48
48
|
**/
|
|
49
49
|
// needed for listing the available theme variables on docs page
|
|
50
|
-
let Button = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class Button extends _react.Component {
|
|
50
|
+
let Button = exports.Button = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class Button extends _react.Component {
|
|
51
51
|
constructor(...args) {
|
|
52
52
|
super(...args);
|
|
53
53
|
this._buttonComponent = null;
|
|
@@ -123,6 +123,4 @@ let Button = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec2 = (0,
|
|
|
123
123
|
margin: '0',
|
|
124
124
|
cursor: 'pointer'
|
|
125
125
|
}, _class2)) || _class) || _class);
|
|
126
|
-
exports.
|
|
127
|
-
var _default = Button;
|
|
128
|
-
exports.default = _default;
|
|
126
|
+
var _default = exports.default = Button;
|
package/lib/Button/locator.js
CHANGED
|
@@ -34,7 +34,6 @@ var _ButtonLocator = require("./ButtonLocator");
|
|
|
34
34
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
35
35
|
* SOFTWARE.
|
|
36
36
|
*/
|
|
37
|
-
var _default = {
|
|
37
|
+
var _default = exports.default = {
|
|
38
38
|
ButtonLocator: _ButtonLocator.ButtonLocator
|
|
39
|
-
};
|
|
40
|
-
exports.default = _default;
|
|
39
|
+
};
|
package/lib/Button/props.js
CHANGED
|
@@ -31,7 +31,7 @@ var _emotion = require("@instructure/emotion");
|
|
|
31
31
|
* SOFTWARE.
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
-
const propTypes = {
|
|
34
|
+
const propTypes = exports.propTypes = {
|
|
35
35
|
children: _propTypes.default.node,
|
|
36
36
|
type: _propTypes.default.oneOf(['button', 'submit', 'reset']),
|
|
37
37
|
size: _propTypes.default.oneOf(['small', 'medium', 'large']),
|
|
@@ -49,6 +49,4 @@ const propTypes = {
|
|
|
49
49
|
renderIcon: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
50
50
|
onClick: _propTypes.default.func
|
|
51
51
|
};
|
|
52
|
-
exports.
|
|
53
|
-
const allowedProps = ['as', 'children', 'color', 'cursor', 'display', 'elementRef', 'focusColor', 'href', 'interaction', 'margin', 'renderIcon', 'size', 'textAlign', 'type', 'withBackground', 'onClick'];
|
|
54
|
-
exports.allowedProps = allowedProps;
|
|
52
|
+
const allowedProps = exports.allowedProps = ['as', 'children', 'color', 'cursor', 'display', 'elementRef', 'focusColor', 'href', 'interaction', 'margin', 'renderIcon', 'size', 'textAlign', 'type', 'withBackground', 'onClick'];
|
|
@@ -31,5 +31,4 @@ var _index = require("./index");
|
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
33
|
// @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
34
|
-
const CloseButtonLocator = (0, _locator.locator)(_index.CloseButton.selector);
|
|
35
|
-
exports.CloseButtonLocator = CloseButtonLocator;
|
|
34
|
+
const CloseButtonLocator = exports.CloseButtonLocator = (0, _locator.locator)(_index.CloseButton.selector);
|
package/lib/CloseButton/index.js
CHANGED
|
@@ -49,7 +49,7 @@ category: components
|
|
|
49
49
|
---
|
|
50
50
|
@tsProps
|
|
51
51
|
**/
|
|
52
|
-
let CloseButton = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class CloseButton extends _react.Component {
|
|
52
|
+
let CloseButton = exports.CloseButton = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class CloseButton extends _react.Component {
|
|
53
53
|
constructor(...args) {
|
|
54
54
|
super(...args);
|
|
55
55
|
this.ref = null;
|
|
@@ -124,6 +124,4 @@ let CloseButton = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.defaul
|
|
|
124
124
|
as: 'button',
|
|
125
125
|
cursor: 'pointer'
|
|
126
126
|
}, _class2)) || _class) || _class);
|
|
127
|
-
exports.
|
|
128
|
-
var _default = CloseButton;
|
|
129
|
-
exports.default = _default;
|
|
127
|
+
var _default = exports.default = CloseButton;
|
|
@@ -34,5 +34,4 @@ var _CloseButtonLocator = require("./CloseButtonLocator");
|
|
|
34
34
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
35
35
|
* SOFTWARE.
|
|
36
36
|
*/
|
|
37
|
-
var _default = _CloseButtonLocator.CloseButtonLocator;
|
|
38
|
-
exports.default = _default;
|
|
37
|
+
var _default = exports.default = _CloseButtonLocator.CloseButtonLocator;
|
package/lib/CloseButton/props.js
CHANGED
|
@@ -31,7 +31,7 @@ var _emotion = require("@instructure/emotion");
|
|
|
31
31
|
* SOFTWARE.
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
-
const propTypes = {
|
|
34
|
+
const propTypes = exports.propTypes = {
|
|
35
35
|
screenReaderLabel: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.node]).isRequired,
|
|
36
36
|
color: _propTypes.default.oneOf(['primary', 'primary-inverse']),
|
|
37
37
|
interaction: _propTypes.default.oneOf(['enabled', 'disabled', 'readonly']),
|
|
@@ -49,6 +49,4 @@ const propTypes = {
|
|
|
49
49
|
// TODO: remove string type in v9
|
|
50
50
|
tabIndex: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string])
|
|
51
51
|
};
|
|
52
|
-
exports.
|
|
53
|
-
const allowedProps = ['as', 'color', 'cursor', 'elementRef', 'href', 'interaction', 'margin', 'offset', 'onClick', 'placement', 'screenReaderLabel', 'size', 'tabIndex', 'type'];
|
|
54
|
-
exports.allowedProps = allowedProps;
|
|
52
|
+
const allowedProps = exports.allowedProps = ['as', 'color', 'cursor', 'elementRef', 'href', 'interaction', 'margin', 'offset', 'onClick', 'placement', 'screenReaderLabel', 'size', 'tabIndex', 'type'];
|
package/lib/CloseButton/theme.js
CHANGED
|
@@ -32,9 +32,8 @@ var _index = require("./index");
|
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
34
|
// @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
35
|
-
const CondensedButtonLocator = (0, _locator.locator)(_index.CondensedButton.selector, {
|
|
35
|
+
const CondensedButtonLocator = exports.CondensedButtonLocator = (0, _locator.locator)(_index.CondensedButton.selector, {
|
|
36
36
|
click: async (element, ...args) => {
|
|
37
37
|
return (await (0, _uiTestQueries.find)(element, 'a,button,[role="button"]')).click(...args);
|
|
38
38
|
}
|
|
39
|
-
});
|
|
40
|
-
exports.CondensedButtonLocator = CondensedButtonLocator;
|
|
39
|
+
});
|
|
@@ -46,7 +46,7 @@ category: components
|
|
|
46
46
|
@tsProps
|
|
47
47
|
**/
|
|
48
48
|
// needed for listing the available theme variables on docs page
|
|
49
|
-
let CondensedButton = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class CondensedButton extends _react.Component {
|
|
49
|
+
let CondensedButton = exports.CondensedButton = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class CondensedButton extends _react.Component {
|
|
50
50
|
constructor(...args) {
|
|
51
51
|
super(...args);
|
|
52
52
|
this._baseButton = null;
|
|
@@ -110,6 +110,4 @@ let CondensedButton = (_dec = (0, _emotion.withStyle)(null, _theme.default), _de
|
|
|
110
110
|
margin: '0',
|
|
111
111
|
cursor: 'pointer'
|
|
112
112
|
}, _class2)) || _class) || _class);
|
|
113
|
-
exports.
|
|
114
|
-
var _default = CondensedButton;
|
|
115
|
-
exports.default = _default;
|
|
113
|
+
var _default = exports.default = CondensedButton;
|
|
@@ -34,5 +34,4 @@ var _CondensedButtonLocator = require("./CondensedButtonLocator");
|
|
|
34
34
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
35
35
|
* SOFTWARE.
|
|
36
36
|
*/
|
|
37
|
-
var _default = _CondensedButtonLocator.CondensedButtonLocator;
|
|
38
|
-
exports.default = _default;
|
|
37
|
+
var _default = exports.default = _CondensedButtonLocator.CondensedButtonLocator;
|
|
@@ -31,7 +31,7 @@ var _emotion = require("@instructure/emotion");
|
|
|
31
31
|
* SOFTWARE.
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
-
const propTypes = {
|
|
34
|
+
const propTypes = exports.propTypes = {
|
|
35
35
|
children: _propTypes.default.node,
|
|
36
36
|
type: _propTypes.default.oneOf(['button', 'submit', 'reset']),
|
|
37
37
|
size: _propTypes.default.oneOf(['small', 'medium', 'large']),
|
|
@@ -45,6 +45,4 @@ const propTypes = {
|
|
|
45
45
|
renderIcon: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
46
46
|
onClick: _propTypes.default.func
|
|
47
47
|
};
|
|
48
|
-
exports.
|
|
49
|
-
const allowedProps = ['as', 'children', 'color', 'cursor', 'elementRef', 'href', 'interaction', 'margin', 'renderIcon', 'size', 'type', 'onClick'];
|
|
50
|
-
exports.allowedProps = allowedProps;
|
|
48
|
+
const allowedProps = exports.allowedProps = ['as', 'children', 'color', 'cursor', 'elementRef', 'href', 'interaction', 'margin', 'renderIcon', 'size', 'type', 'onClick'];
|
|
@@ -32,9 +32,8 @@ var _index = require("./index");
|
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
34
|
// @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
35
|
-
const IconButtonLocator = (0, _locator.locator)(_index.IconButton.selector, {
|
|
35
|
+
const IconButtonLocator = exports.IconButtonLocator = (0, _locator.locator)(_index.IconButton.selector, {
|
|
36
36
|
click: async (element, ...args) => {
|
|
37
37
|
return (await (0, _uiTestQueries.find)(element, 'a,button,[role="button"]')).click(...args);
|
|
38
38
|
}
|
|
39
|
-
});
|
|
40
|
-
exports.IconButtonLocator = IconButtonLocator;
|
|
39
|
+
});
|
package/lib/IconButton/index.js
CHANGED
|
@@ -47,7 +47,7 @@ category: components
|
|
|
47
47
|
@tsProps
|
|
48
48
|
**/
|
|
49
49
|
// needed for listing the available theme variables on docs page
|
|
50
|
-
let IconButton = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class IconButton extends _react.Component {
|
|
50
|
+
let IconButton = exports.IconButton = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_class2 = class IconButton extends _react.Component {
|
|
51
51
|
constructor(...args) {
|
|
52
52
|
super(...args);
|
|
53
53
|
this._baseButton = null;
|
|
@@ -120,6 +120,4 @@ let IconButton = (_dec = (0, _emotion.withStyle)(null, _theme.default), _dec2 =
|
|
|
120
120
|
margin: '0',
|
|
121
121
|
cursor: 'pointer'
|
|
122
122
|
}, _class2)) || _class) || _class);
|
|
123
|
-
exports.
|
|
124
|
-
var _default = IconButton;
|
|
125
|
-
exports.default = _default;
|
|
123
|
+
var _default = exports.default = IconButton;
|
|
@@ -34,5 +34,4 @@ var _IconButtonLocator = require("./IconButtonLocator");
|
|
|
34
34
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
35
35
|
* SOFTWARE.
|
|
36
36
|
*/
|
|
37
|
-
var _default = _IconButtonLocator.IconButtonLocator;
|
|
38
|
-
exports.default = _default;
|
|
37
|
+
var _default = exports.default = _IconButtonLocator.IconButtonLocator;
|
package/lib/IconButton/props.js
CHANGED
|
@@ -31,7 +31,7 @@ var _emotion = require("@instructure/emotion");
|
|
|
31
31
|
* SOFTWARE.
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
-
const propTypes = {
|
|
34
|
+
const propTypes = exports.propTypes = {
|
|
35
35
|
children: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
36
36
|
renderIcon: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]),
|
|
37
37
|
screenReaderLabel: _propTypes.default.string.isRequired,
|
|
@@ -50,6 +50,4 @@ const propTypes = {
|
|
|
50
50
|
href: _propTypes.default.string,
|
|
51
51
|
onClick: _propTypes.default.func
|
|
52
52
|
};
|
|
53
|
-
exports.
|
|
54
|
-
const allowedProps = ['as', 'children', 'color', 'cursor', 'elementRef', 'focusColor', 'href', 'interaction', 'margin', 'renderIcon', 'screenReaderLabel', 'shape', 'size', 'type', 'withBackground', 'withBorder', 'onClick'];
|
|
55
|
-
exports.allowedProps = allowedProps;
|
|
53
|
+
const allowedProps = exports.allowedProps = ['as', 'children', 'color', 'cursor', 'elementRef', 'focusColor', 'href', 'interaction', 'margin', 'renderIcon', 'screenReaderLabel', 'shape', 'size', 'type', 'withBackground', 'withBorder', 'onClick'];
|
|
@@ -36,7 +36,7 @@ var _index = require("./index");
|
|
|
36
36
|
// eslint-disable-next-line no-restricted-imports
|
|
37
37
|
|
|
38
38
|
// @ts-expect-error ts-migrate(2339) FIXME: Property 'selector' does not exist on type 'typeof... Remove this comment to see the full error message
|
|
39
|
-
const ToggleButtonLocator = (0, _locator.locator)(_index.ToggleButton.selector, {
|
|
39
|
+
const ToggleButtonLocator = exports.ToggleButtonLocator = (0, _locator.locator)(_index.ToggleButton.selector, {
|
|
40
40
|
findTooltipContent: async (...args) => {
|
|
41
41
|
const _parseQueryArguments = (0, _uiTestQueries.parseQueryArguments)(...args),
|
|
42
42
|
element = _parseQueryArguments.element,
|
|
@@ -48,5 +48,4 @@ const ToggleButtonLocator = (0, _locator.locator)(_index.ToggleButton.selector,
|
|
|
48
48
|
click: async (element, ...args) => {
|
|
49
49
|
return (await (0, _uiTestQueries.find)(element, 'a,button,[role="button"]')).click(...args);
|
|
50
50
|
}
|
|
51
|
-
});
|
|
52
|
-
exports.ToggleButtonLocator = ToggleButtonLocator;
|
|
51
|
+
});
|
|
@@ -45,7 +45,7 @@ category: components
|
|
|
45
45
|
---
|
|
46
46
|
@tsProps
|
|
47
47
|
**/
|
|
48
|
-
let ToggleButton = (_dec = (0, _testable.testable)(), _dec(_class = (_class2 = class ToggleButton extends _react.Component {
|
|
48
|
+
let ToggleButton = exports.ToggleButton = (_dec = (0, _testable.testable)(), _dec(_class = (_class2 = class ToggleButton extends _react.Component {
|
|
49
49
|
constructor(props) {
|
|
50
50
|
super(props);
|
|
51
51
|
this.ref = null;
|
|
@@ -118,6 +118,4 @@ let ToggleButton = (_dec = (0, _testable.testable)(), _dec(_class = (_class2 = c
|
|
|
118
118
|
placement: 'top center',
|
|
119
119
|
constrain: 'window'
|
|
120
120
|
}, _class2)) || _class);
|
|
121
|
-
exports.
|
|
122
|
-
var _default = ToggleButton;
|
|
123
|
-
exports.default = _default;
|
|
121
|
+
var _default = exports.default = ToggleButton;
|
|
@@ -31,7 +31,7 @@ var _PositionPropTypes = require("@instructure/ui-position/lib/PositionPropTypes
|
|
|
31
31
|
* SOFTWARE.
|
|
32
32
|
*/
|
|
33
33
|
|
|
34
|
-
const propTypes = {
|
|
34
|
+
const propTypes = exports.propTypes = {
|
|
35
35
|
screenReaderLabel: _propTypes.default.string.isRequired,
|
|
36
36
|
renderTooltipContent: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
|
|
37
37
|
renderIcon: _propTypes.default.oneOfType([_propTypes.default.node, _propTypes.default.func]).isRequired,
|
|
@@ -47,6 +47,4 @@ const propTypes = {
|
|
|
47
47
|
placement: _PositionPropTypes.PositionPropTypes.placement,
|
|
48
48
|
constrain: _PositionPropTypes.PositionPropTypes.constrain
|
|
49
49
|
};
|
|
50
|
-
exports.
|
|
51
|
-
const allowedProps = ['as', 'color', 'constrain', 'elementRef', 'interaction', 'isShowingTooltip', 'mountNode', 'onClick', 'placement', 'renderIcon', 'renderTooltipContent', 'screenReaderLabel', 'size', 'status'];
|
|
52
|
-
exports.allowedProps = allowedProps;
|
|
50
|
+
const allowedProps = exports.allowedProps = ['as', 'color', 'constrain', 'elementRef', 'interaction', 'isShowingTooltip', 'mountNode', 'onClick', 'placement', 'renderIcon', 'renderTooltipContent', 'screenReaderLabel', 'size', 'status'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-buttons",
|
|
3
|
-
"version": "8.46.2-snapshot-
|
|
3
|
+
"version": "8.46.2-snapshot-6",
|
|
4
4
|
"description": "Accessible button components",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,28 +23,28 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "8.46.2-snapshot-
|
|
27
|
-
"@instructure/ui-test-locator": "8.46.2-snapshot-
|
|
28
|
-
"@instructure/ui-test-queries": "8.46.2-snapshot-
|
|
29
|
-
"@instructure/ui-test-utils": "8.46.2-snapshot-
|
|
30
|
-
"@instructure/ui-themes": "8.46.2-snapshot-
|
|
26
|
+
"@instructure/ui-babel-preset": "8.46.2-snapshot-6",
|
|
27
|
+
"@instructure/ui-test-locator": "8.46.2-snapshot-6",
|
|
28
|
+
"@instructure/ui-test-queries": "8.46.2-snapshot-6",
|
|
29
|
+
"@instructure/ui-test-utils": "8.46.2-snapshot-6",
|
|
30
|
+
"@instructure/ui-themes": "8.46.2-snapshot-6"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@babel/runtime": "^7.
|
|
34
|
-
"@instructure/console": "8.46.2-snapshot-
|
|
35
|
-
"@instructure/emotion": "8.46.2-snapshot-
|
|
36
|
-
"@instructure/shared-types": "8.46.2-snapshot-
|
|
37
|
-
"@instructure/ui-a11y-content": "8.46.2-snapshot-
|
|
38
|
-
"@instructure/ui-a11y-utils": "8.46.2-snapshot-
|
|
39
|
-
"@instructure/ui-color-utils": "8.46.2-snapshot-
|
|
40
|
-
"@instructure/ui-dom-utils": "8.46.2-snapshot-
|
|
41
|
-
"@instructure/ui-icons": "8.46.2-snapshot-
|
|
42
|
-
"@instructure/ui-position": "8.46.2-snapshot-
|
|
43
|
-
"@instructure/ui-react-utils": "8.46.2-snapshot-
|
|
44
|
-
"@instructure/ui-testable": "8.46.2-snapshot-
|
|
45
|
-
"@instructure/ui-tooltip": "8.46.2-snapshot-
|
|
46
|
-
"@instructure/ui-utils": "8.46.2-snapshot-
|
|
47
|
-
"@instructure/ui-view": "8.46.2-snapshot-
|
|
33
|
+
"@babel/runtime": "^7.23.2",
|
|
34
|
+
"@instructure/console": "8.46.2-snapshot-6",
|
|
35
|
+
"@instructure/emotion": "8.46.2-snapshot-6",
|
|
36
|
+
"@instructure/shared-types": "8.46.2-snapshot-6",
|
|
37
|
+
"@instructure/ui-a11y-content": "8.46.2-snapshot-6",
|
|
38
|
+
"@instructure/ui-a11y-utils": "8.46.2-snapshot-6",
|
|
39
|
+
"@instructure/ui-color-utils": "8.46.2-snapshot-6",
|
|
40
|
+
"@instructure/ui-dom-utils": "8.46.2-snapshot-6",
|
|
41
|
+
"@instructure/ui-icons": "8.46.2-snapshot-6",
|
|
42
|
+
"@instructure/ui-position": "8.46.2-snapshot-6",
|
|
43
|
+
"@instructure/ui-react-utils": "8.46.2-snapshot-6",
|
|
44
|
+
"@instructure/ui-testable": "8.46.2-snapshot-6",
|
|
45
|
+
"@instructure/ui-tooltip": "8.46.2-snapshot-6",
|
|
46
|
+
"@instructure/ui-utils": "8.46.2-snapshot-6",
|
|
47
|
+
"@instructure/ui-view": "8.46.2-snapshot-6",
|
|
48
48
|
"keycode": "^2.2.1",
|
|
49
49
|
"prop-types": "^15.8.1"
|
|
50
50
|
},
|