@instructure/ui-buttons 10.24.3-snapshot-22 → 10.24.3-snapshot-24
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 +2 -1
- package/package.json +19 -19
- package/src/BaseButton/index.tsx +3 -3
- package/src/BaseButton/props.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/BaseButton/index.d.ts +2 -2
- package/types/BaseButton/index.d.ts.map +1 -1
- package/types/BaseButton/props.d.ts +1 -1
- package/types/BaseButton/props.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,12 +3,13 @@
|
|
|
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
|
-
## [10.24.3-snapshot-
|
|
6
|
+
## [10.24.3-snapshot-24](https://github.com/instructure/instructure-ui/compare/v10.24.2...v10.24.3-snapshot-24) (2025-09-09)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
|
10
10
|
|
|
11
11
|
* **ui-buttons:** fix seondary ai iconbutton when shape is circle ([5098202](https://github.com/instructure/instructure-ui/commit/5098202843490098326c41e928811244f65f36c1))
|
|
12
|
+
* **ui-view,ui-buttons:** clarify typing of elementRefs ([f8bdf91](https://github.com/instructure/instructure-ui/commit/f8bdf91544e56f804677be6709f4896ff9176c3f))
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-buttons",
|
|
3
|
-
"version": "10.24.3-snapshot-
|
|
3
|
+
"version": "10.24.3-snapshot-24",
|
|
4
4
|
"description": "Accessible button components",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-axe-check": "10.24.3-snapshot-
|
|
27
|
-
"@instructure/ui-babel-preset": "10.24.3-snapshot-
|
|
28
|
-
"@instructure/ui-themes": "10.24.3-snapshot-
|
|
26
|
+
"@instructure/ui-axe-check": "10.24.3-snapshot-24",
|
|
27
|
+
"@instructure/ui-babel-preset": "10.24.3-snapshot-24",
|
|
28
|
+
"@instructure/ui-themes": "10.24.3-snapshot-24",
|
|
29
29
|
"@testing-library/jest-dom": "^6.6.3",
|
|
30
30
|
"@testing-library/react": "^16.0.1",
|
|
31
31
|
"@testing-library/user-event": "^14.6.1",
|
|
@@ -33,21 +33,21 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@babel/runtime": "^7.27.6",
|
|
36
|
-
"@instructure/console": "10.24.3-snapshot-
|
|
37
|
-
"@instructure/emotion": "10.24.3-snapshot-
|
|
38
|
-
"@instructure/shared-types": "10.24.3-snapshot-
|
|
39
|
-
"@instructure/ui-a11y-content": "10.24.3-snapshot-
|
|
40
|
-
"@instructure/ui-a11y-utils": "10.24.3-snapshot-
|
|
41
|
-
"@instructure/ui-color-utils": "10.24.3-snapshot-
|
|
42
|
-
"@instructure/ui-dom-utils": "10.24.3-snapshot-
|
|
43
|
-
"@instructure/ui-icons": "10.24.3-snapshot-
|
|
44
|
-
"@instructure/ui-position": "10.24.3-snapshot-
|
|
45
|
-
"@instructure/ui-prop-types": "10.24.3-snapshot-
|
|
46
|
-
"@instructure/ui-react-utils": "10.24.3-snapshot-
|
|
47
|
-
"@instructure/ui-testable": "10.24.3-snapshot-
|
|
48
|
-
"@instructure/ui-tooltip": "10.24.3-snapshot-
|
|
49
|
-
"@instructure/ui-utils": "10.24.3-snapshot-
|
|
50
|
-
"@instructure/ui-view": "10.24.3-snapshot-
|
|
36
|
+
"@instructure/console": "10.24.3-snapshot-24",
|
|
37
|
+
"@instructure/emotion": "10.24.3-snapshot-24",
|
|
38
|
+
"@instructure/shared-types": "10.24.3-snapshot-24",
|
|
39
|
+
"@instructure/ui-a11y-content": "10.24.3-snapshot-24",
|
|
40
|
+
"@instructure/ui-a11y-utils": "10.24.3-snapshot-24",
|
|
41
|
+
"@instructure/ui-color-utils": "10.24.3-snapshot-24",
|
|
42
|
+
"@instructure/ui-dom-utils": "10.24.3-snapshot-24",
|
|
43
|
+
"@instructure/ui-icons": "10.24.3-snapshot-24",
|
|
44
|
+
"@instructure/ui-position": "10.24.3-snapshot-24",
|
|
45
|
+
"@instructure/ui-prop-types": "10.24.3-snapshot-24",
|
|
46
|
+
"@instructure/ui-react-utils": "10.24.3-snapshot-24",
|
|
47
|
+
"@instructure/ui-testable": "10.24.3-snapshot-24",
|
|
48
|
+
"@instructure/ui-tooltip": "10.24.3-snapshot-24",
|
|
49
|
+
"@instructure/ui-utils": "10.24.3-snapshot-24",
|
|
50
|
+
"@instructure/ui-view": "10.24.3-snapshot-24",
|
|
51
51
|
"keycode": "^2",
|
|
52
52
|
"prop-types": "^15.8.1"
|
|
53
53
|
},
|
package/src/BaseButton/index.tsx
CHANGED
|
@@ -76,7 +76,7 @@ class BaseButton extends Component<BaseButtonProps> {
|
|
|
76
76
|
cursor: 'pointer'
|
|
77
77
|
} as const
|
|
78
78
|
|
|
79
|
-
ref:
|
|
79
|
+
ref: HTMLElement | null = null
|
|
80
80
|
|
|
81
81
|
componentDidMount() {
|
|
82
82
|
this.props.makeStyles?.(this.makeStylesVariables)
|
|
@@ -143,10 +143,10 @@ class BaseButton extends Component<BaseButtonProps> {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
focus() {
|
|
146
|
-
this.ref &&
|
|
146
|
+
this.ref && this.ref.focus()
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
handleElementRef = (el:
|
|
149
|
+
handleElementRef = (el: HTMLElement | null) => {
|
|
150
150
|
const { elementRef } = this.props
|
|
151
151
|
|
|
152
152
|
this.ref = el
|
package/src/BaseButton/props.ts
CHANGED
|
@@ -61,7 +61,7 @@ type BaseButtonOwnProps = {
|
|
|
61
61
|
/**
|
|
62
62
|
* Provides a reference to the `Button`'s underlying html element.
|
|
63
63
|
*/
|
|
64
|
-
elementRef?: (element:
|
|
64
|
+
elementRef?: (element: HTMLElement | null) => void
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
67
|
* The element to render as the component root, `Button` by default.
|