@instructure/ui-alerts 11.7.4-snapshot-103 → 11.7.4-snapshot-106

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,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.4-snapshot-103](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-103) (2026-07-14)
6
+ ## [11.7.4-snapshot-106](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-106) (2026-07-16)
7
7
 
8
8
 
9
9
  ### Bug Fixes
@@ -11,6 +11,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
11
  * **ui-motion,ui-alerts:** capture child DOM via elementRef in Transition to avoid React 'ref is not a prop' warning ([aaa4a58](https://github.com/instructure/instructure-ui/commit/aaa4a58c4fd8f0d678972a4dea6f2d7c3faaed46))
12
12
 
13
13
 
14
+ ### Features
15
+
16
+ * **many:** support current spacing tokens in the margin prop for v2 components ([1b47c5f](https://github.com/instructure/instructure-ui/commit/1b47c5f23eaa60b532cdfd53c39bd71f0cf51aaa))
17
+
18
+
14
19
 
15
20
 
16
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-alerts",
3
- "version": "11.7.4-snapshot-103",
3
+ "version": "11.7.4-snapshot-106",
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.7",
18
18
  "keycode": "^2",
19
- "@instructure/emotion": "11.7.4-snapshot-103",
20
- "@instructure/console": "11.7.4-snapshot-103",
21
- "@instructure/ui-buttons": "11.7.4-snapshot-103",
22
- "@instructure/ui-a11y-content": "11.7.4-snapshot-103",
23
- "@instructure/shared-types": "11.7.4-snapshot-103",
24
- "@instructure/ui-icons": "11.7.4-snapshot-103",
25
- "@instructure/ui-motion": "11.7.4-snapshot-103",
26
- "@instructure/ui-react-utils": "11.7.4-snapshot-103",
27
- "@instructure/ui-themes": "11.7.4-snapshot-103",
28
- "@instructure/ui-view": "11.7.4-snapshot-103"
19
+ "@instructure/console": "11.7.4-snapshot-106",
20
+ "@instructure/emotion": "11.7.4-snapshot-106",
21
+ "@instructure/shared-types": "11.7.4-snapshot-106",
22
+ "@instructure/ui-a11y-content": "11.7.4-snapshot-106",
23
+ "@instructure/ui-buttons": "11.7.4-snapshot-106",
24
+ "@instructure/ui-icons": "11.7.4-snapshot-106",
25
+ "@instructure/ui-motion": "11.7.4-snapshot-106",
26
+ "@instructure/ui-react-utils": "11.7.4-snapshot-106",
27
+ "@instructure/ui-themes": "11.7.4-snapshot-106",
28
+ "@instructure/ui-view": "11.7.4-snapshot-106"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@testing-library/jest-dom": "^6.9.1",
32
32
  "@testing-library/react": "16.3.2",
33
33
  "@testing-library/user-event": "^14.6.1",
34
34
  "vitest": "^4.1.9",
35
- "@instructure/ui-axe-check": "11.7.4-snapshot-103",
36
- "@instructure/ui-babel-preset": "11.7.4-snapshot-103",
37
- "@instructure/ui-color-utils": "11.7.4-snapshot-103",
38
- "@instructure/ui-scripts": "11.7.4-snapshot-103"
35
+ "@instructure/ui-axe-check": "11.7.4-snapshot-106",
36
+ "@instructure/ui-babel-preset": "11.7.4-snapshot-106",
37
+ "@instructure/ui-color-utils": "11.7.4-snapshot-106",
38
+ "@instructure/ui-scripts": "11.7.4-snapshot-106"
39
39
  },
40
40
  "peerDependencies": {
41
41
  "react": ">=18 <=19",
@@ -24,7 +24,7 @@ type: example
24
24
  <Alert
25
25
  variant="success"
26
26
  renderCloseButtonLabel="Close"
27
- margin="small"
27
+ margin="general.spaceMd"
28
28
  transition="none"
29
29
  variantScreenReaderLabel="Success, "
30
30
  >
@@ -33,7 +33,7 @@ type: example
33
33
  <Alert
34
34
  variant="info"
35
35
  renderCloseButtonLabel="Close"
36
- margin="small"
36
+ margin="general.spaceMd"
37
37
  variantScreenReaderLabel="Information, "
38
38
  >
39
39
  Sample info text. I will fade out if you close me.
@@ -41,7 +41,7 @@ type: example
41
41
  <Alert
42
42
  variant="error"
43
43
  renderCloseButtonLabel="Close"
44
- margin="small"
44
+ margin="general.spaceMd"
45
45
  variantScreenReaderLabel="Error, "
46
46
  >
47
47
  Sample error text that continues for a while
@@ -51,7 +51,7 @@ type: example
51
51
  </Alert>
52
52
  <Alert
53
53
  variant="warning"
54
- margin="small"
54
+ margin="general.spaceMd"
55
55
  variantScreenReaderLabel="Warning, "
56
56
  >
57
57
  Sample warning text. This alert is not dismissible and cannot be closed.
@@ -67,7 +67,7 @@ type: example
67
67
  ---
68
68
  <Alert
69
69
  variant="info"
70
- margin="small"
70
+ margin="general.spaceMd"
71
71
  timeout={5000}
72
72
  variantScreenReaderLabel="Information, "
73
73
  >
@@ -119,14 +119,14 @@ const Example = () => {
119
119
  <Button onClick={addAlert}>Add Alert</Button>
120
120
  {alerts.map((alert) => {
121
121
  return (
122
- <View key={alert.key} display="block" margin="small 0">
122
+ <View key={alert.key} display="block" margin="general.spaceMd 0">
123
123
  <Alert
124
124
  variant={alert.variant}
125
125
  renderCloseButtonLabel="Close"
126
126
  onDismiss={() => closeAlert(alert.key)}
127
127
  liveRegion={() => document.getElementById('flash-messages')}
128
128
  liveRegionPoliteness={alert.politeness}
129
- margin="small 0"
129
+ margin="general.spaceMd 0"
130
130
  >
131
131
  This is {alert.politeness === 'polite' ? 'a' : 'an'}{' '}
132
132
  {alert.politeness} {alert.variant} alert
@@ -164,7 +164,7 @@ const Example = () => {
164
164
  return (
165
165
  <div>
166
166
  <Button onClick={changeMessage}>Change Message</Button>
167
- <Button onClick={clearMessage} margin="0 0 0 small">
167
+ <Button onClick={clearMessage} margin="0 0 0 general.spaceMd">
168
168
  Clear Message
169
169
  </Button>
170
170
  <Alert
@@ -194,13 +194,13 @@ type: example
194
194
  padding="small medium"
195
195
  borderWidth="small"
196
196
  borderRadius="small"
197
- margin="x-small 0"
197
+ margin="general.spaceSm 0"
198
198
  >
199
199
  {lorem.paragraph()}
200
200
  </View>
201
201
  <Alert
202
202
  variant="info"
203
- margin="x-small 0"
203
+ margin="general.spaceSm 0"
204
204
  renderCloseButtonLabel="Close"
205
205
  hasShadow={false}
206
206
  >
@@ -212,7 +212,7 @@ type: example
212
212
  padding="small medium"
213
213
  borderWidth="small"
214
214
  borderRadius="small"
215
- margin="x-small 0"
215
+ margin="general.spaceSm 0"
216
216
  >
217
217
  {lorem.paragraph()}
218
218
  </View>
@@ -79,9 +79,9 @@ type AlertOwnProps = {
79
79
  */
80
80
  timeout?: number
81
81
  /**
82
- * Valid values are `0`, `none`, `auto`, `xxx-small`, `xx-small`, `x-small`,
83
- * `small`, `medium`, `large`, `x-large`, `xx-large`. Apply these values via
84
- * familiar CSS-like shorthand. For example: `margin="small auto large"`.
82
+ * Valid values are `0`, `none`, `auto`, and Spacing token values,
83
+ * see https://instructure.design/layout-spacing. Apply these values via
84
+ * familiar CSS-like shorthand. For example, `margin="general.spaceMd auto"`.
85
85
  */
86
86
  margin?: Spacing
87
87
  /**