@instructure/ui-buttons 11.7.2-snapshot-52 → 11.7.2-snapshot-60
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 +17 -17
- package/src/BaseButton/v2/props.ts +1 -1
- package/src/BaseButton/v2/styles.ts +2 -2
- package/src/Button/v2/props.ts +1 -1
- package/src/CloseButton/v2/props.ts +4 -1
- package/src/CloseButton/v2/styles.ts +2 -2
- package/src/CondensedButton/v2/props.ts +1 -1
- package/src/IconButton/v2/props.ts +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/BaseButton/v2/props.d.ts +1 -1
- package/types/BaseButton/v2/props.d.ts.map +1 -1
- package/types/BaseButton/v2/styles.d.ts +1 -1
- package/types/BaseButton/v2/styles.d.ts.map +1 -1
- package/types/Button/v2/props.d.ts +1 -1
- package/types/Button/v2/props.d.ts.map +1 -1
- package/types/CloseButton/v2/props.d.ts +1 -1
- package/types/CloseButton/v2/props.d.ts.map +1 -1
- package/types/CloseButton/v2/styles.d.ts +1 -1
- package/types/CloseButton/v2/styles.d.ts.map +1 -1
- package/types/CondensedButton/v2/props.d.ts +1 -1
- package/types/CondensedButton/v2/props.d.ts.map +1 -1
- package/types/IconButton/v2/props.d.ts +1 -1
- package/types/IconButton/v2/props.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,11 +3,12 @@
|
|
|
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.2-snapshot-
|
|
6
|
+
## [11.7.2-snapshot-60](https://github.com/instructure/instructure-ui/compare/v11.7.1...v11.7.2-snapshot-60) (2026-04-23)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Features
|
|
10
10
|
|
|
11
|
+
* **many:** fix issues ([9d623ed](https://github.com/instructure/instructure-ui/commit/9d623ed9ba2be49549b625d1e436edc230a4df41))
|
|
11
12
|
* **many:** rework TopNavBar ([bf40e4f](https://github.com/instructure/instructure-ui/commit/bf40e4f380dce5edc45a0f0bc83d5a5070d3be2b))
|
|
12
13
|
|
|
13
14
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-buttons",
|
|
3
|
-
"version": "11.7.2-snapshot-
|
|
3
|
+
"version": "11.7.2-snapshot-60",
|
|
4
4
|
"description": "Accessible button components",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -16,28 +16,28 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.27.6",
|
|
18
18
|
"keycode": "^2",
|
|
19
|
-
"@instructure/
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/ui-a11y-
|
|
23
|
-
"@instructure/
|
|
24
|
-
"@instructure/ui-color-utils": "11.7.2-snapshot-
|
|
25
|
-
"@instructure/ui-dom-utils": "11.7.2-snapshot-
|
|
26
|
-
"@instructure/ui-
|
|
27
|
-
"@instructure/ui-
|
|
28
|
-
"@instructure/ui-
|
|
29
|
-
"@instructure/ui-utils": "11.7.2-snapshot-
|
|
30
|
-
"@instructure/ui-
|
|
31
|
-
"@instructure/ui-view": "11.7.2-snapshot-
|
|
19
|
+
"@instructure/console": "11.7.2-snapshot-60",
|
|
20
|
+
"@instructure/shared-types": "11.7.2-snapshot-60",
|
|
21
|
+
"@instructure/emotion": "11.7.2-snapshot-60",
|
|
22
|
+
"@instructure/ui-a11y-content": "11.7.2-snapshot-60",
|
|
23
|
+
"@instructure/ui-a11y-utils": "11.7.2-snapshot-60",
|
|
24
|
+
"@instructure/ui-color-utils": "11.7.2-snapshot-60",
|
|
25
|
+
"@instructure/ui-dom-utils": "11.7.2-snapshot-60",
|
|
26
|
+
"@instructure/ui-position": "11.7.2-snapshot-60",
|
|
27
|
+
"@instructure/ui-react-utils": "11.7.2-snapshot-60",
|
|
28
|
+
"@instructure/ui-icons": "11.7.2-snapshot-60",
|
|
29
|
+
"@instructure/ui-utils": "11.7.2-snapshot-60",
|
|
30
|
+
"@instructure/ui-tooltip": "11.7.2-snapshot-60",
|
|
31
|
+
"@instructure/ui-view": "11.7.2-snapshot-60"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@testing-library/jest-dom": "^6.6.3",
|
|
35
35
|
"@testing-library/react": "15.0.7",
|
|
36
36
|
"@testing-library/user-event": "^14.6.1",
|
|
37
37
|
"vitest": "^3.2.2",
|
|
38
|
-
"@instructure/ui-axe-check": "11.7.2-snapshot-
|
|
39
|
-
"@instructure/ui-babel-preset": "11.7.2-snapshot-
|
|
40
|
-
"@instructure/ui-themes": "11.7.2-snapshot-
|
|
38
|
+
"@instructure/ui-axe-check": "11.7.2-snapshot-60",
|
|
39
|
+
"@instructure/ui-babel-preset": "11.7.2-snapshot-60",
|
|
40
|
+
"@instructure/ui-themes": "11.7.2-snapshot-60"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"react": ">=18 <=19"
|
|
@@ -179,7 +179,7 @@ type PropKeys = keyof BaseButtonOwnProps
|
|
|
179
179
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
180
180
|
|
|
181
181
|
type BaseButtonProps = BaseButtonOwnProps &
|
|
182
|
-
WithStyleProps<NewComponentTypes['BaseButton']
|
|
182
|
+
WithStyleProps<ReturnType<NewComponentTypes['BaseButton']>, BaseButtonStyle> &
|
|
183
183
|
OtherHTMLAttributes<BaseButtonOwnProps> &
|
|
184
184
|
ToProp
|
|
185
185
|
|
|
@@ -30,7 +30,7 @@ import type {
|
|
|
30
30
|
} from './props'
|
|
31
31
|
|
|
32
32
|
const generateStyle = (
|
|
33
|
-
componentTheme: NewComponentTypes['BaseButton']
|
|
33
|
+
componentTheme: ReturnType<NewComponentTypes['BaseButton']>,
|
|
34
34
|
params: BaseButtonProps,
|
|
35
35
|
_sharedTokens: SharedTokens,
|
|
36
36
|
extraArgs: BaseButtonStyleProps
|
|
@@ -262,7 +262,7 @@ const generateStyle = (
|
|
|
262
262
|
boxShadow: componentTheme.secondaryGhostBoxShadow
|
|
263
263
|
},
|
|
264
264
|
active: {
|
|
265
|
-
background: componentTheme.secondaryGhostActiveBackground
|
|
265
|
+
background: componentTheme.secondaryGhostActiveBackground
|
|
266
266
|
},
|
|
267
267
|
hover: {
|
|
268
268
|
background: componentTheme.secondaryGhostHoverBackground,
|
package/src/Button/v2/props.ts
CHANGED
|
@@ -133,7 +133,7 @@ type PropKeys = keyof ButtonOwnProps
|
|
|
133
133
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
134
134
|
|
|
135
135
|
type ButtonProps = ButtonOwnProps &
|
|
136
|
-
WithStyleProps<NewComponentTypes['BaseButton']
|
|
136
|
+
WithStyleProps<ReturnType<NewComponentTypes['BaseButton']>, null> &
|
|
137
137
|
OtherHTMLAttributes<ButtonOwnProps> &
|
|
138
138
|
ToProp
|
|
139
139
|
const allowedProps: AllowedPropKeys = [
|
|
@@ -122,7 +122,10 @@ type PropKeys = keyof CloseButtonOwnProps
|
|
|
122
122
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
123
123
|
|
|
124
124
|
type CloseButtonProps = CloseButtonOwnProps &
|
|
125
|
-
WithStyleProps<
|
|
125
|
+
WithStyleProps<
|
|
126
|
+
ReturnType<NewComponentTypes['BaseButton']>,
|
|
127
|
+
CloseButtonStyle
|
|
128
|
+
> &
|
|
126
129
|
OtherHTMLAttributes<CloseButtonOwnProps> &
|
|
127
130
|
ToProp
|
|
128
131
|
|
|
@@ -36,7 +36,7 @@ import type { CloseButtonProps, CloseButtonStyle } from './props'
|
|
|
36
36
|
* @return {Object} The final style object, which will be used in the component
|
|
37
37
|
*/
|
|
38
38
|
const generateStyle = (
|
|
39
|
-
_componentTheme: NewComponentTypes['BaseButton']
|
|
39
|
+
_componentTheme: ReturnType<NewComponentTypes['BaseButton']>,
|
|
40
40
|
props: CloseButtonProps,
|
|
41
41
|
sharedTokens: SharedTokens
|
|
42
42
|
): CloseButtonStyle => {
|
|
@@ -46,7 +46,7 @@ const generateStyle = (
|
|
|
46
46
|
none: 0,
|
|
47
47
|
'x-small': sharedTokens.spacing.general.spaceXs,
|
|
48
48
|
small: sharedTokens.spacing.general.spaceSm,
|
|
49
|
-
medium: sharedTokens.spacing.general.spaceMd
|
|
49
|
+
medium: sharedTokens.spacing.general.spaceMd
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
const getOffsetStyle = () => {
|
|
@@ -110,7 +110,7 @@ type PropKeys = keyof CondensedButtonOwnProps
|
|
|
110
110
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
111
111
|
|
|
112
112
|
type CondensedButtonProps = CondensedButtonOwnProps &
|
|
113
|
-
WithStyleProps<NewComponentTypes['BaseButton']
|
|
113
|
+
WithStyleProps<ReturnType<NewComponentTypes['BaseButton']>, null> &
|
|
114
114
|
OtherHTMLAttributes<CondensedButtonOwnProps> &
|
|
115
115
|
ToProp
|
|
116
116
|
|
|
@@ -139,7 +139,7 @@ type PropKeys = keyof IconButtonOwnProps
|
|
|
139
139
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
140
140
|
|
|
141
141
|
type IconButtonProps = IconButtonOwnProps &
|
|
142
|
-
WithStyleProps<NewComponentTypes['BaseButton']
|
|
142
|
+
WithStyleProps<ReturnType<NewComponentTypes['BaseButton']>, null> &
|
|
143
143
|
OtherHTMLAttributes<IconButtonOwnProps> &
|
|
144
144
|
ToProp
|
|
145
145
|
const allowedProps: AllowedPropKeys = [
|