@instructure/ui-buttons 8.26.3 → 8.26.4-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 +11 -0
- package/package.json +21 -21
- package/src/BaseButton/props.ts +2 -1
- package/src/IconButton/props.ts +6 -5
- package/src/ToggleButton/props.ts +2 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/BaseButton/index.d.ts +2 -2
- package/types/BaseButton/props.d.ts +2 -1
- package/types/BaseButton/props.d.ts.map +1 -1
- package/types/IconButton/index.d.ts +6 -6
- package/types/IconButton/props.d.ts +5 -5
- package/types/IconButton/props.d.ts.map +1 -1
- package/types/ToggleButton/index.d.ts +2 -2
- package/types/ToggleButton/props.d.ts +2 -1
- package/types/ToggleButton/props.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.26.4-snapshot-6](https://github.com/instructure/instructure-ui/compare/v8.26.3...v8.26.4-snapshot-6) (2022-07-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* support React 18 ([0a2bf0c](https://github.com/instructure/instructure-ui/commit/0a2bf0cdd4d8bcec6e42a7ccf28a787e4a35bc40))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [8.26.3](https://github.com/instructure/instructure-ui/compare/v8.26.2...v8.26.3) (2022-07-14)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @instructure/ui-buttons
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-buttons",
|
|
3
|
-
"version": "8.26.
|
|
3
|
+
"version": "8.26.4-snapshot-6",
|
|
4
4
|
"description": "Accessible button components",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,33 +23,33 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "8.26.
|
|
27
|
-
"@instructure/ui-test-locator": "8.26.
|
|
28
|
-
"@instructure/ui-test-queries": "8.26.
|
|
29
|
-
"@instructure/ui-test-utils": "8.26.
|
|
30
|
-
"@instructure/ui-themes": "8.26.
|
|
26
|
+
"@instructure/ui-babel-preset": "8.26.4-snapshot-6",
|
|
27
|
+
"@instructure/ui-test-locator": "8.26.4-snapshot-6",
|
|
28
|
+
"@instructure/ui-test-queries": "8.26.4-snapshot-6",
|
|
29
|
+
"@instructure/ui-test-utils": "8.26.4-snapshot-6",
|
|
30
|
+
"@instructure/ui-themes": "8.26.4-snapshot-6"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@babel/runtime": "^7.13.10",
|
|
34
|
-
"@instructure/console": "8.26.
|
|
35
|
-
"@instructure/emotion": "8.26.
|
|
36
|
-
"@instructure/shared-types": "8.26.
|
|
37
|
-
"@instructure/ui-a11y-content": "8.26.
|
|
38
|
-
"@instructure/ui-a11y-utils": "8.26.
|
|
39
|
-
"@instructure/ui-color-utils": "8.26.
|
|
40
|
-
"@instructure/ui-dom-utils": "8.26.
|
|
41
|
-
"@instructure/ui-icons": "8.26.
|
|
42
|
-
"@instructure/ui-position": "8.26.
|
|
43
|
-
"@instructure/ui-react-utils": "8.26.
|
|
44
|
-
"@instructure/ui-testable": "8.26.
|
|
45
|
-
"@instructure/ui-tooltip": "8.26.
|
|
46
|
-
"@instructure/ui-utils": "8.26.
|
|
47
|
-
"@instructure/ui-view": "8.26.
|
|
34
|
+
"@instructure/console": "8.26.4-snapshot-6",
|
|
35
|
+
"@instructure/emotion": "8.26.4-snapshot-6",
|
|
36
|
+
"@instructure/shared-types": "8.26.4-snapshot-6",
|
|
37
|
+
"@instructure/ui-a11y-content": "8.26.4-snapshot-6",
|
|
38
|
+
"@instructure/ui-a11y-utils": "8.26.4-snapshot-6",
|
|
39
|
+
"@instructure/ui-color-utils": "8.26.4-snapshot-6",
|
|
40
|
+
"@instructure/ui-dom-utils": "8.26.4-snapshot-6",
|
|
41
|
+
"@instructure/ui-icons": "8.26.4-snapshot-6",
|
|
42
|
+
"@instructure/ui-position": "8.26.4-snapshot-6",
|
|
43
|
+
"@instructure/ui-react-utils": "8.26.4-snapshot-6",
|
|
44
|
+
"@instructure/ui-testable": "8.26.4-snapshot-6",
|
|
45
|
+
"@instructure/ui-tooltip": "8.26.4-snapshot-6",
|
|
46
|
+
"@instructure/ui-utils": "8.26.4-snapshot-6",
|
|
47
|
+
"@instructure/ui-view": "8.26.4-snapshot-6",
|
|
48
48
|
"keycode": "^2",
|
|
49
49
|
"prop-types": "^15"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"react": ">=16.8 <=
|
|
52
|
+
"react": ">=16.8 <=18"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
package/src/BaseButton/props.ts
CHANGED
|
@@ -42,6 +42,7 @@ import type {
|
|
|
42
42
|
} from '@instructure/shared-types'
|
|
43
43
|
import type { Cursor } from '@instructure/ui-prop-types'
|
|
44
44
|
import type { ViewProps } from '@instructure/ui-view'
|
|
45
|
+
import { Renderable } from '@instructure/shared-types'
|
|
45
46
|
|
|
46
47
|
type BaseButtonOwnProps = {
|
|
47
48
|
/**
|
|
@@ -149,7 +150,7 @@ type BaseButtonOwnProps = {
|
|
|
149
150
|
/**
|
|
150
151
|
* An icon, or function that returns an icon.
|
|
151
152
|
*/
|
|
152
|
-
renderIcon?:
|
|
153
|
+
renderIcon?: Renderable
|
|
153
154
|
|
|
154
155
|
// Deprecated `string` tabIndex type
|
|
155
156
|
/**
|
package/src/IconButton/props.ts
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
|
-
import React from 'react'
|
|
25
|
+
import React, { ReactNode } from 'react'
|
|
26
26
|
import PropTypes from 'prop-types'
|
|
27
27
|
|
|
28
28
|
import { ThemeablePropTypes } from '@instructure/emotion'
|
|
@@ -33,7 +33,8 @@ import type {
|
|
|
33
33
|
AsElementType,
|
|
34
34
|
PropValidators,
|
|
35
35
|
BaseButtonTheme,
|
|
36
|
-
OtherHTMLAttributes
|
|
36
|
+
OtherHTMLAttributes,
|
|
37
|
+
Renderable
|
|
37
38
|
} from '@instructure/shared-types'
|
|
38
39
|
import type { Cursor } from '@instructure/ui-prop-types'
|
|
39
40
|
import type { ViewProps } from '@instructure/ui-view'
|
|
@@ -42,17 +43,17 @@ type IconButtonOwnProps = {
|
|
|
42
43
|
/**
|
|
43
44
|
* An icon, or function returning an icon (identical to the `renderIcon` prop).
|
|
44
45
|
*/
|
|
45
|
-
children?:
|
|
46
|
+
children?: Renderable
|
|
46
47
|
|
|
47
48
|
/**
|
|
48
49
|
* An icon, or function that returns an icon (identical to the `children` prop).
|
|
49
50
|
*/
|
|
50
|
-
renderIcon?:
|
|
51
|
+
renderIcon?: Renderable
|
|
51
52
|
|
|
52
53
|
/**
|
|
53
54
|
* An accessible label for the `IconButton`.
|
|
54
55
|
*/
|
|
55
|
-
screenReaderLabel:
|
|
56
|
+
screenReaderLabel: ReactNode
|
|
56
57
|
|
|
57
58
|
/**
|
|
58
59
|
* Specifies the type of the `IconButton`'s underlying html element.
|
|
@@ -38,6 +38,7 @@ import type {
|
|
|
38
38
|
PositionMountNode
|
|
39
39
|
} from '@instructure/ui-position'
|
|
40
40
|
import type { ViewProps } from '@instructure/ui-view'
|
|
41
|
+
import { Renderable } from '@instructure/shared-types'
|
|
41
42
|
|
|
42
43
|
type ToggleButtonOwnProps = {
|
|
43
44
|
/**
|
|
@@ -53,7 +54,7 @@ type ToggleButtonOwnProps = {
|
|
|
53
54
|
/**
|
|
54
55
|
* An icon or function that returns an icon
|
|
55
56
|
*/
|
|
56
|
-
renderIcon:
|
|
57
|
+
renderIcon: Renderable
|
|
57
58
|
|
|
58
59
|
/**
|
|
59
60
|
* Toggles the `aria-pressed` attribute on the button (`true` if `pressed`; `false` if `unpressed`)
|