@instructure/ui-alerts 11.7.2-snapshot-54 → 11.7.2-snapshot-62
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 +6 -2
- package/es/Alert/v2/styles.js +0 -1
- package/package.json +15 -15
- package/src/Alert/v2/README.md +8 -2
- package/src/Alert/v2/index.tsx +3 -3
- package/src/Alert/v2/styles.ts +2 -3
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Alert/v2/styles.d.ts +1 -1
- package/types/Alert/v2/styles.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +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
|
-
## [11.7.2-snapshot-
|
|
6
|
+
## [11.7.2-snapshot-62](https://github.com/instructure/instructure-ui/compare/v11.7.1...v11.7.2-snapshot-62) (2026-04-23)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **many:** fix issues ([9d623ed](https://github.com/instructure/instructure-ui/commit/9d623ed9ba2be49549b625d1e436edc230a4df41))
|
|
12
|
+
* **ui-themes,ui-alerts,emotion:** fix primitives and semantics overrides and add freeze functionlionality to old components ([336fde9](https://github.com/instructure/instructure-ui/commit/336fde9952698eda020db4916f276e8532ed1669))
|
|
9
13
|
|
|
10
14
|
|
|
11
15
|
|
package/es/Alert/v2/styles.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-alerts",
|
|
3
|
-
"version": "11.7.2-snapshot-
|
|
3
|
+
"version": "11.7.2-snapshot-62",
|
|
4
4
|
"description": "An alert component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -16,26 +16,26 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.27.6",
|
|
18
18
|
"keycode": "^2",
|
|
19
|
-
"@instructure/
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/ui-
|
|
23
|
-
"@instructure/
|
|
24
|
-
"@instructure/ui-
|
|
25
|
-
"@instructure/ui-
|
|
26
|
-
"@instructure/ui-react-utils": "11.7.2-snapshot-
|
|
27
|
-
"@instructure/ui-
|
|
28
|
-
"@instructure/ui-
|
|
19
|
+
"@instructure/emotion": "11.7.2-snapshot-62",
|
|
20
|
+
"@instructure/ui-a11y-content": "11.7.2-snapshot-62",
|
|
21
|
+
"@instructure/shared-types": "11.7.2-snapshot-62",
|
|
22
|
+
"@instructure/ui-buttons": "11.7.2-snapshot-62",
|
|
23
|
+
"@instructure/console": "11.7.2-snapshot-62",
|
|
24
|
+
"@instructure/ui-icons": "11.7.2-snapshot-62",
|
|
25
|
+
"@instructure/ui-themes": "11.7.2-snapshot-62",
|
|
26
|
+
"@instructure/ui-react-utils": "11.7.2-snapshot-62",
|
|
27
|
+
"@instructure/ui-view": "11.7.2-snapshot-62",
|
|
28
|
+
"@instructure/ui-motion": "11.7.2-snapshot-62"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@testing-library/jest-dom": "^6.6.3",
|
|
32
32
|
"@testing-library/react": "15.0.7",
|
|
33
33
|
"@testing-library/user-event": "^14.6.1",
|
|
34
34
|
"vitest": "^3.2.2",
|
|
35
|
-
"@instructure/ui-
|
|
36
|
-
"@instructure/ui-
|
|
37
|
-
"@instructure/ui-scripts": "11.7.2-snapshot-
|
|
38
|
-
"@instructure/ui-
|
|
35
|
+
"@instructure/ui-axe-check": "11.7.2-snapshot-62",
|
|
36
|
+
"@instructure/ui-color-utils": "11.7.2-snapshot-62",
|
|
37
|
+
"@instructure/ui-scripts": "11.7.2-snapshot-62",
|
|
38
|
+
"@instructure/ui-babel-preset": "11.7.2-snapshot-62"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": ">=18 <=19",
|
package/src/Alert/v2/README.md
CHANGED
|
@@ -14,7 +14,13 @@ space above or below the alert.
|
|
|
14
14
|
---
|
|
15
15
|
type: example
|
|
16
16
|
---
|
|
17
|
-
<
|
|
17
|
+
<InstUISettingsProvider theme={{
|
|
18
|
+
componentOverrides: {
|
|
19
|
+
"Alert": {
|
|
20
|
+
dangerIconBackground: 'purple'
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}}>
|
|
18
24
|
<Alert
|
|
19
25
|
variant="success"
|
|
20
26
|
renderCloseButtonLabel="Close"
|
|
@@ -50,7 +56,7 @@ type: example
|
|
|
50
56
|
>
|
|
51
57
|
Sample warning text. This alert is not dismissible and cannot be closed.
|
|
52
58
|
</Alert>
|
|
53
|
-
</
|
|
59
|
+
</InstUISettingsProvider>
|
|
54
60
|
```
|
|
55
61
|
|
|
56
62
|
The `timeout` prop can be used to automatically dismiss an alert after a time.
|
package/src/Alert/v2/index.tsx
CHANGED
|
@@ -299,9 +299,9 @@ class Alert extends Component<AlertProps, AlertState> {
|
|
|
299
299
|
|
|
300
300
|
return open
|
|
301
301
|
? ReactDOM.createPortal(
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
302
|
+
<div id={this.srid}>{this.createScreenreaderContentNode()}</div>,
|
|
303
|
+
liveRegion
|
|
304
|
+
)
|
|
305
305
|
: null
|
|
306
306
|
}
|
|
307
307
|
|
package/src/Alert/v2/styles.ts
CHANGED
|
@@ -21,9 +21,8 @@
|
|
|
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
|
-
import type { NewComponentTypes, SharedTokens } from '@instructure/ui-themes'
|
|
26
24
|
import { boxShadowObjectsToCSSString } from '@instructure/ui-themes'
|
|
25
|
+
import type { NewComponentTypes, SharedTokens } from '@instructure/ui-themes'
|
|
27
26
|
import type { AlertProps, AlertStyle } from './props'
|
|
28
27
|
|
|
29
28
|
/**
|
|
@@ -37,7 +36,7 @@ import type { AlertProps, AlertStyle } from './props'
|
|
|
37
36
|
* @return {Object} The final style object, which will be used in the component
|
|
38
37
|
*/
|
|
39
38
|
const generateStyle = (
|
|
40
|
-
componentTheme: NewComponentTypes['Alert']
|
|
39
|
+
componentTheme: ReturnType<NewComponentTypes['Alert']>,
|
|
41
40
|
props: AlertProps,
|
|
42
41
|
sharedTokens: SharedTokens
|
|
43
42
|
): AlertStyle => {
|