@instructure/ui-alerts 11.7.3-snapshot-33 → 11.7.3-snapshot-37
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/es/Alert/v1/index.js +1 -1
- package/es/Alert/v2/index.js +2 -2
- package/lib/Alert/v1/index.js +1 -1
- package/lib/Alert/v2/index.js +1 -1
- package/package.json +15 -15
- package/src/Alert/v1/index.tsx +1 -1
- package/src/Alert/v2/index.tsx +5 -5
- 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
|
-
## [11.7.3-snapshot-
|
|
6
|
+
## [11.7.3-snapshot-37](https://github.com/instructure/instructure-ui/compare/v11.7.2...v11.7.3-snapshot-37) (2026-05-07)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Bug Fixes
|
package/es/Alert/v1/index.js
CHANGED
|
@@ -33,7 +33,7 @@ import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
|
33
33
|
import { IconCheckMarkSolid, IconInfoBorderlessSolid, IconWarningBorderlessSolid, IconNoSolid } from '@instructure/ui-icons';
|
|
34
34
|
import { Transition } from '@instructure/ui-motion';
|
|
35
35
|
import { logError as error } from '@instructure/console';
|
|
36
|
-
import {
|
|
36
|
+
import { withStyle } from '@instructure/emotion';
|
|
37
37
|
import generateStyle from "./styles.js";
|
|
38
38
|
import generateComponentTheme from "./theme.js";
|
|
39
39
|
import { allowedProps } from "./props.js";
|
package/es/Alert/v2/index.js
CHANGED
|
@@ -33,7 +33,7 @@ import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
|
33
33
|
import { InfoInstUIIcon, XCircleInstUIIcon, CircleCheckInstUIIcon, TriangleAlertInstUIIcon } from '@instructure/ui-icons';
|
|
34
34
|
import { Transition } from '@instructure/ui-motion';
|
|
35
35
|
import { logError as error } from '@instructure/console';
|
|
36
|
-
import {
|
|
36
|
+
import { withStyleNew } from '@instructure/emotion';
|
|
37
37
|
import generateStyle from "./styles.js";
|
|
38
38
|
import { allowedProps } from "./props.js";
|
|
39
39
|
import { jsxs as _jsxs, jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
@@ -42,7 +42,7 @@ import { jsxs as _jsxs, jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
|
42
42
|
category: components
|
|
43
43
|
---
|
|
44
44
|
**/
|
|
45
|
-
let Alert = (_dec = withDeterministicId(), _dec2 =
|
|
45
|
+
let Alert = (_dec = withDeterministicId(), _dec2 = withStyleNew(generateStyle), _dec(_class = _dec2(_class = class Alert extends Component {
|
|
46
46
|
static displayName = "Alert";
|
|
47
47
|
static componentId = 'Alert';
|
|
48
48
|
static allowedProps = allowedProps;
|
package/lib/Alert/v1/index.js
CHANGED
|
@@ -54,7 +54,7 @@ var _dec, _dec2, _class;
|
|
|
54
54
|
category: components
|
|
55
55
|
---
|
|
56
56
|
**/
|
|
57
|
-
let Alert = exports.Alert = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.
|
|
57
|
+
let Alert = exports.Alert = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec(_class = _dec2(_class = class Alert extends _react.Component {
|
|
58
58
|
static displayName = "Alert";
|
|
59
59
|
static componentId = 'Alert';
|
|
60
60
|
static allowedProps = _props.allowedProps;
|
package/lib/Alert/v2/index.js
CHANGED
|
@@ -50,7 +50,7 @@ var _dec, _dec2, _class;
|
|
|
50
50
|
category: components
|
|
51
51
|
---
|
|
52
52
|
**/
|
|
53
|
-
let Alert = exports.Alert = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.
|
|
53
|
+
let Alert = exports.Alert = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyleNew)(_styles.default), _dec(_class = _dec2(_class = class Alert extends _react.Component {
|
|
54
54
|
static displayName = "Alert";
|
|
55
55
|
static componentId = 'Alert';
|
|
56
56
|
static allowedProps = _props.allowedProps;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-alerts",
|
|
3
|
-
"version": "11.7.3-snapshot-
|
|
3
|
+
"version": "11.7.3-snapshot-37",
|
|
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.29.2",
|
|
18
18
|
"keycode": "^2",
|
|
19
|
-
"@instructure/console": "11.7.3-snapshot-
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/
|
|
22
|
-
"@instructure/ui-
|
|
23
|
-
"@instructure/
|
|
24
|
-
"@instructure/ui-icons": "11.7.3-snapshot-
|
|
25
|
-
"@instructure/ui-
|
|
26
|
-
"@instructure/ui-
|
|
27
|
-
"@instructure/ui-
|
|
28
|
-
"@instructure/ui-themes": "11.7.3-snapshot-
|
|
19
|
+
"@instructure/console": "11.7.3-snapshot-37",
|
|
20
|
+
"@instructure/emotion": "11.7.3-snapshot-37",
|
|
21
|
+
"@instructure/shared-types": "11.7.3-snapshot-37",
|
|
22
|
+
"@instructure/ui-a11y-content": "11.7.3-snapshot-37",
|
|
23
|
+
"@instructure/ui-buttons": "11.7.3-snapshot-37",
|
|
24
|
+
"@instructure/ui-icons": "11.7.3-snapshot-37",
|
|
25
|
+
"@instructure/ui-react-utils": "11.7.3-snapshot-37",
|
|
26
|
+
"@instructure/ui-view": "11.7.3-snapshot-37",
|
|
27
|
+
"@instructure/ui-motion": "11.7.3-snapshot-37",
|
|
28
|
+
"@instructure/ui-themes": "11.7.3-snapshot-37"
|
|
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-axe-check": "11.7.3-snapshot-
|
|
36
|
-
"@instructure/ui-
|
|
37
|
-
"@instructure/ui-
|
|
38
|
-
"@instructure/ui-
|
|
35
|
+
"@instructure/ui-axe-check": "11.7.3-snapshot-37",
|
|
36
|
+
"@instructure/ui-color-utils": "11.7.3-snapshot-37",
|
|
37
|
+
"@instructure/ui-babel-preset": "11.7.3-snapshot-37",
|
|
38
|
+
"@instructure/ui-scripts": "11.7.3-snapshot-37"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
41
|
"react": ">=18 <=19",
|
package/src/Alert/v1/index.tsx
CHANGED
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
} from '@instructure/ui-icons'
|
|
44
44
|
import { Transition } from '@instructure/ui-motion'
|
|
45
45
|
import { logError as error } from '@instructure/console'
|
|
46
|
-
import {
|
|
46
|
+
import { withStyle } from '@instructure/emotion'
|
|
47
47
|
|
|
48
48
|
import generateStyle from './styles'
|
|
49
49
|
import generateComponentTheme from './theme'
|
package/src/Alert/v2/index.tsx
CHANGED
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
} from '@instructure/ui-icons'
|
|
44
44
|
import { Transition } from '@instructure/ui-motion'
|
|
45
45
|
import { logError as error } from '@instructure/console'
|
|
46
|
-
import {
|
|
46
|
+
import { withStyleNew } from '@instructure/emotion'
|
|
47
47
|
|
|
48
48
|
import generateStyle from './styles'
|
|
49
49
|
|
|
@@ -56,7 +56,7 @@ category: components
|
|
|
56
56
|
---
|
|
57
57
|
**/
|
|
58
58
|
@withDeterministicId()
|
|
59
|
-
@
|
|
59
|
+
@withStyleNew(generateStyle)
|
|
60
60
|
class Alert extends Component<AlertProps, AlertState> {
|
|
61
61
|
static readonly componentId = 'Alert'
|
|
62
62
|
|
|
@@ -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
|
|