@instructure/ui-alerts 10.15.2-snapshot-0 → 10.15.2-snapshot-2
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 +5 -2
- package/es/Alert/props.js +1 -2
- package/lib/Alert/props.js +1 -2
- package/package.json +16 -16
- package/src/Alert/props.ts +1 -3
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Alert/props.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,9 +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
|
-
## [10.15.2-snapshot-
|
|
6
|
+
## [10.15.2-snapshot-2](https://github.com/instructure/instructure-ui/compare/v10.15.1...v10.15.2-snapshot-2) (2025-04-04)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* update PropTypes to align with the new spacing tokens ([223d55b](https://github.com/instructure/instructure-ui/commit/223d55bad95e2a3a8b298d622e5b1d0fbab6b289))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/es/Alert/props.js
CHANGED
|
@@ -23,11 +23,10 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import PropTypes from 'prop-types';
|
|
26
|
-
import { ThemeablePropTypes } from '@instructure/emotion';
|
|
27
26
|
const propTypes = {
|
|
28
27
|
children: PropTypes.node,
|
|
29
28
|
variant: PropTypes.oneOf(['info', 'success', 'warning', 'error']),
|
|
30
|
-
margin:
|
|
29
|
+
margin: PropTypes.string,
|
|
31
30
|
liveRegion: PropTypes.func,
|
|
32
31
|
liveRegionPoliteness: PropTypes.oneOf(['polite', 'assertive']),
|
|
33
32
|
isLiveRegionAtomic: PropTypes.bool,
|
package/lib/Alert/props.js
CHANGED
|
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.propTypes = exports.allowedProps = void 0;
|
|
8
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
|
-
var _emotion = require("@instructure/emotion");
|
|
10
9
|
/*
|
|
11
10
|
* The MIT License (MIT)
|
|
12
11
|
*
|
|
@@ -34,7 +33,7 @@ var _emotion = require("@instructure/emotion");
|
|
|
34
33
|
const propTypes = exports.propTypes = {
|
|
35
34
|
children: _propTypes.default.node,
|
|
36
35
|
variant: _propTypes.default.oneOf(['info', 'success', 'warning', 'error']),
|
|
37
|
-
margin:
|
|
36
|
+
margin: _propTypes.default.string,
|
|
38
37
|
liveRegion: _propTypes.default.func,
|
|
39
38
|
liveRegionPoliteness: _propTypes.default.oneOf(['polite', 'assertive']),
|
|
40
39
|
isLiveRegionAtomic: _propTypes.default.bool,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-alerts",
|
|
3
|
-
"version": "10.15.2-snapshot-
|
|
3
|
+
"version": "10.15.2-snapshot-2",
|
|
4
4
|
"description": "An alert component",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@instructure/ui-axe-check": "10.15.2-snapshot-
|
|
27
|
-
"@instructure/ui-babel-preset": "10.15.2-snapshot-
|
|
28
|
-
"@instructure/ui-color-utils": "10.15.2-snapshot-
|
|
29
|
-
"@instructure/ui-scripts": "10.15.2-snapshot-
|
|
30
|
-
"@instructure/ui-test-utils": "10.15.2-snapshot-
|
|
26
|
+
"@instructure/ui-axe-check": "10.15.2-snapshot-2",
|
|
27
|
+
"@instructure/ui-babel-preset": "10.15.2-snapshot-2",
|
|
28
|
+
"@instructure/ui-color-utils": "10.15.2-snapshot-2",
|
|
29
|
+
"@instructure/ui-scripts": "10.15.2-snapshot-2",
|
|
30
|
+
"@instructure/ui-test-utils": "10.15.2-snapshot-2",
|
|
31
31
|
"@testing-library/jest-dom": "^6.6.3",
|
|
32
32
|
"@testing-library/react": "^16.0.1",
|
|
33
33
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@babel/runtime": "^7.26.0",
|
|
38
|
-
"@instructure/console": "10.15.2-snapshot-
|
|
39
|
-
"@instructure/emotion": "10.15.2-snapshot-
|
|
40
|
-
"@instructure/shared-types": "10.15.2-snapshot-
|
|
41
|
-
"@instructure/ui-a11y-content": "10.15.2-snapshot-
|
|
42
|
-
"@instructure/ui-buttons": "10.15.2-snapshot-
|
|
43
|
-
"@instructure/ui-icons": "10.15.2-snapshot-
|
|
44
|
-
"@instructure/ui-motion": "10.15.2-snapshot-
|
|
45
|
-
"@instructure/ui-react-utils": "10.15.2-snapshot-
|
|
46
|
-
"@instructure/ui-themes": "10.15.2-snapshot-
|
|
47
|
-
"@instructure/ui-view": "10.15.2-snapshot-
|
|
38
|
+
"@instructure/console": "10.15.2-snapshot-2",
|
|
39
|
+
"@instructure/emotion": "10.15.2-snapshot-2",
|
|
40
|
+
"@instructure/shared-types": "10.15.2-snapshot-2",
|
|
41
|
+
"@instructure/ui-a11y-content": "10.15.2-snapshot-2",
|
|
42
|
+
"@instructure/ui-buttons": "10.15.2-snapshot-2",
|
|
43
|
+
"@instructure/ui-icons": "10.15.2-snapshot-2",
|
|
44
|
+
"@instructure/ui-motion": "10.15.2-snapshot-2",
|
|
45
|
+
"@instructure/ui-react-utils": "10.15.2-snapshot-2",
|
|
46
|
+
"@instructure/ui-themes": "10.15.2-snapshot-2",
|
|
47
|
+
"@instructure/ui-view": "10.15.2-snapshot-2",
|
|
48
48
|
"keycode": "^2",
|
|
49
49
|
"prop-types": "^15.8.1"
|
|
50
50
|
},
|
package/src/Alert/props.ts
CHANGED
|
@@ -25,8 +25,6 @@
|
|
|
25
25
|
import { ReactNode } from 'react'
|
|
26
26
|
import PropTypes from 'prop-types'
|
|
27
27
|
|
|
28
|
-
import { ThemeablePropTypes } from '@instructure/emotion'
|
|
29
|
-
|
|
30
28
|
import type {
|
|
31
29
|
Spacing,
|
|
32
30
|
WithStyleProps,
|
|
@@ -122,7 +120,7 @@ type AlertStyle = ComponentStyle<'alert' | 'icon' | 'closeButton' | 'content'>
|
|
|
122
120
|
const propTypes: PropValidators<PropKeys> = {
|
|
123
121
|
children: PropTypes.node,
|
|
124
122
|
variant: PropTypes.oneOf(['info', 'success', 'warning', 'error']),
|
|
125
|
-
margin:
|
|
123
|
+
margin: PropTypes.string,
|
|
126
124
|
liveRegion: PropTypes.func,
|
|
127
125
|
liveRegionPoliteness: PropTypes.oneOf(['polite', 'assertive']),
|
|
128
126
|
isLiveRegionAtomic: PropTypes.bool,
|