@instructure/ui-alerts 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 +18 -18
- package/src/Alert/props.ts +9 -3
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Alert/index.d.ts +2 -2
- package/types/Alert/props.d.ts +2 -2
- package/types/Alert/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-alerts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-alerts",
|
|
3
|
-
"version": "8.26.
|
|
3
|
+
"version": "8.26.4-snapshot-6",
|
|
4
4
|
"description": "An alert component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-babel-preset": "8.26.
|
|
27
|
-
"@instructure/ui-color-utils": "8.26.
|
|
28
|
-
"@instructure/ui-test-utils": "8.26.
|
|
26
|
+
"@instructure/ui-babel-preset": "8.26.4-snapshot-6",
|
|
27
|
+
"@instructure/ui-color-utils": "8.26.4-snapshot-6",
|
|
28
|
+
"@instructure/ui-test-utils": "8.26.4-snapshot-6"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/runtime": "^7.13.10",
|
|
32
|
-
"@instructure/console": "8.26.
|
|
33
|
-
"@instructure/emotion": "8.26.
|
|
34
|
-
"@instructure/shared-types": "8.26.
|
|
35
|
-
"@instructure/ui-a11y-content": "8.26.
|
|
36
|
-
"@instructure/ui-buttons": "8.26.
|
|
37
|
-
"@instructure/ui-icons": "8.26.
|
|
38
|
-
"@instructure/ui-motion": "8.26.
|
|
39
|
-
"@instructure/ui-react-utils": "8.26.
|
|
40
|
-
"@instructure/ui-themes": "8.26.
|
|
41
|
-
"@instructure/ui-utils": "8.26.
|
|
42
|
-
"@instructure/ui-view": "8.26.
|
|
43
|
-
"@instructure/uid": "8.26.
|
|
32
|
+
"@instructure/console": "8.26.4-snapshot-6",
|
|
33
|
+
"@instructure/emotion": "8.26.4-snapshot-6",
|
|
34
|
+
"@instructure/shared-types": "8.26.4-snapshot-6",
|
|
35
|
+
"@instructure/ui-a11y-content": "8.26.4-snapshot-6",
|
|
36
|
+
"@instructure/ui-buttons": "8.26.4-snapshot-6",
|
|
37
|
+
"@instructure/ui-icons": "8.26.4-snapshot-6",
|
|
38
|
+
"@instructure/ui-motion": "8.26.4-snapshot-6",
|
|
39
|
+
"@instructure/ui-react-utils": "8.26.4-snapshot-6",
|
|
40
|
+
"@instructure/ui-themes": "8.26.4-snapshot-6",
|
|
41
|
+
"@instructure/ui-utils": "8.26.4-snapshot-6",
|
|
42
|
+
"@instructure/ui-view": "8.26.4-snapshot-6",
|
|
43
|
+
"@instructure/uid": "8.26.4-snapshot-6",
|
|
44
44
|
"keycode": "^2",
|
|
45
45
|
"prop-types": "^15"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"react": ">=16.8 <=
|
|
49
|
-
"react-dom": ">=16.8 <=
|
|
48
|
+
"react": ">=16.8 <=18",
|
|
49
|
+
"react-dom": ">=16.8 <=18"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
package/src/Alert/props.ts
CHANGED
|
@@ -32,7 +32,11 @@ import type {
|
|
|
32
32
|
WithStyleProps,
|
|
33
33
|
ComponentStyle
|
|
34
34
|
} from '@instructure/emotion'
|
|
35
|
-
import type {
|
|
35
|
+
import type {
|
|
36
|
+
AlertTheme,
|
|
37
|
+
PropValidators,
|
|
38
|
+
Renderable
|
|
39
|
+
} from '@instructure/shared-types'
|
|
36
40
|
import type { WithDeterministicIdProps } from '@instructure/ui-react-utils'
|
|
37
41
|
|
|
38
42
|
type AlertOwnProps = {
|
|
@@ -73,7 +77,7 @@ type AlertOwnProps = {
|
|
|
73
77
|
/**
|
|
74
78
|
* Close button label. Can be a React component
|
|
75
79
|
*/
|
|
76
|
-
renderCloseButtonLabel?:
|
|
80
|
+
renderCloseButtonLabel?: Renderable
|
|
77
81
|
/**
|
|
78
82
|
* Callback after the alert is closed
|
|
79
83
|
*/
|
|
@@ -97,7 +101,9 @@ type PropKeys = keyof AlertOwnProps
|
|
|
97
101
|
|
|
98
102
|
type AllowedPropKeys = Readonly<Array<PropKeys>>
|
|
99
103
|
|
|
100
|
-
type AlertProps = AlertOwnProps &
|
|
104
|
+
type AlertProps = AlertOwnProps &
|
|
105
|
+
WithStyleProps<AlertTheme, AlertStyle> &
|
|
106
|
+
WithDeterministicIdProps
|
|
101
107
|
|
|
102
108
|
type AlertStyle = ComponentStyle<'alert' | 'icon' | 'closeButton' | 'content'>
|
|
103
109
|
|