@instructure/ui-alerts 8.26.2 → 8.26.4-snapshot-3

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 CHANGED
@@ -3,6 +3,21 @@
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-3](https://github.com/instructure/instructure-ui/compare/v8.26.3...v8.26.4-snapshot-3) (2022-07-18)
7
+
8
+
9
+ ### Features
10
+
11
+ * support React 18 ([0a2bf0c](https://github.com/instructure/instructure-ui/commit/0a2bf0cdd4d8bcec6e42a7ccf28a787e4a35bc40))
12
+
13
+
14
+
15
+
16
+
17
+ ## [8.26.3](https://github.com/instructure/instructure-ui/compare/v8.26.2...v8.26.3) (2022-07-14)
18
+
19
+ **Note:** Version bump only for package @instructure/ui-alerts
20
+
6
21
  ## [8.26.2](https://github.com/instructure/instructure-ui/compare/v8.26.1...v8.26.2) (2022-07-11)
7
22
 
8
23
  **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.2",
3
+ "version": "8.26.4-snapshot-3",
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.2",
27
- "@instructure/ui-color-utils": "8.26.2",
28
- "@instructure/ui-test-utils": "8.26.2"
26
+ "@instructure/ui-babel-preset": "8.26.4-snapshot-3",
27
+ "@instructure/ui-color-utils": "8.26.4-snapshot-3",
28
+ "@instructure/ui-test-utils": "8.26.4-snapshot-3"
29
29
  },
30
30
  "dependencies": {
31
31
  "@babel/runtime": "^7.13.10",
32
- "@instructure/console": "8.26.2",
33
- "@instructure/emotion": "8.26.2",
34
- "@instructure/shared-types": "8.26.2",
35
- "@instructure/ui-a11y-content": "8.26.2",
36
- "@instructure/ui-buttons": "8.26.2",
37
- "@instructure/ui-icons": "8.26.2",
38
- "@instructure/ui-motion": "8.26.2",
39
- "@instructure/ui-react-utils": "8.26.2",
40
- "@instructure/ui-themes": "8.26.2",
41
- "@instructure/ui-utils": "8.26.2",
42
- "@instructure/ui-view": "8.26.2",
43
- "@instructure/uid": "8.26.2",
32
+ "@instructure/console": "8.26.4-snapshot-3",
33
+ "@instructure/emotion": "8.26.4-snapshot-3",
34
+ "@instructure/shared-types": "8.26.4-snapshot-3",
35
+ "@instructure/ui-a11y-content": "8.26.4-snapshot-3",
36
+ "@instructure/ui-buttons": "8.26.4-snapshot-3",
37
+ "@instructure/ui-icons": "8.26.4-snapshot-3",
38
+ "@instructure/ui-motion": "8.26.4-snapshot-3",
39
+ "@instructure/ui-react-utils": "8.26.4-snapshot-3",
40
+ "@instructure/ui-themes": "8.26.4-snapshot-3",
41
+ "@instructure/ui-utils": "8.26.4-snapshot-3",
42
+ "@instructure/ui-view": "8.26.4-snapshot-3",
43
+ "@instructure/uid": "8.26.4-snapshot-3",
44
44
  "keycode": "^2",
45
45
  "prop-types": "^15"
46
46
  },
47
47
  "peerDependencies": {
48
- "react": ">=16.8 <=17",
49
- "react-dom": ">=16.8 <=17"
48
+ "react": ">=16.8 <=18",
49
+ "react-dom": ">=16.8 <=18"
50
50
  },
51
51
  "publishConfig": {
52
52
  "access": "public"
@@ -32,7 +32,11 @@ import type {
32
32
  WithStyleProps,
33
33
  ComponentStyle
34
34
  } from '@instructure/emotion'
35
- import type { AlertTheme, PropValidators } from '@instructure/shared-types'
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?: (() => ReactNode) | ReactNode
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 & WithStyleProps<AlertTheme, AlertStyle> & WithDeterministicIdProps
104
+ type AlertProps = AlertOwnProps &
105
+ WithStyleProps<AlertTheme, AlertStyle> &
106
+ WithDeterministicIdProps
101
107
 
102
108
  type AlertStyle = ComponentStyle<'alert' | 'icon' | 'closeButton' | 'content'>
103
109