@instructure/ui-heading 11.7.4-snapshot-102 → 11.7.4-snapshot-105
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 +2 -1
- package/package.json +10 -10
- package/src/Heading/v2/README.md +3 -3
- package/src/Heading/v2/props.ts +3 -3
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Heading/v2/props.d.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,12 +3,13 @@
|
|
|
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-
|
|
6
|
+
## [11.7.4-snapshot-105](https://github.com/instructure/instructure-ui/compare/v11.7.3...v11.7.4-snapshot-105) (2026-07-15)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
### Features
|
|
10
10
|
|
|
11
11
|
* **many:** remove deprecated v2 items ([eaf8876](https://github.com/instructure/instructure-ui/commit/eaf88767c9beb95c4e09ee5705c387dfd79e4cb7))
|
|
12
|
+
* **many:** support current spacing tokens in the margin prop for v2 components ([1b47c5f](https://github.com/instructure/instructure-ui/commit/1b47c5f23eaa60b532cdfd53c39bd71f0cf51aaa))
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
### BREAKING CHANGES
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-heading",
|
|
3
|
-
"version": "11.7.4-snapshot-
|
|
3
|
+
"version": "11.7.4-snapshot-105",
|
|
4
4
|
"description": "A component for creating typographic headings",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -15,20 +15,20 @@
|
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@babel/runtime": "^7.29.7",
|
|
18
|
-
"@instructure/
|
|
19
|
-
"@instructure/
|
|
20
|
-
"@instructure/
|
|
21
|
-
"@instructure/ui-
|
|
22
|
-
"@instructure/
|
|
23
|
-
"@instructure/ui-
|
|
24
|
-
"@instructure/ui-
|
|
18
|
+
"@instructure/console": "11.7.4-snapshot-105",
|
|
19
|
+
"@instructure/emotion": "11.7.4-snapshot-105",
|
|
20
|
+
"@instructure/ui-react-utils": "11.7.4-snapshot-105",
|
|
21
|
+
"@instructure/ui-icons": "11.7.4-snapshot-105",
|
|
22
|
+
"@instructure/shared-types": "11.7.4-snapshot-105",
|
|
23
|
+
"@instructure/ui-themes": "11.7.4-snapshot-105",
|
|
24
|
+
"@instructure/ui-view": "11.7.4-snapshot-105"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@testing-library/jest-dom": "^6.9.1",
|
|
28
28
|
"@testing-library/react": "16.3.2",
|
|
29
29
|
"vitest": "^4.1.9",
|
|
30
|
-
"@instructure/ui-
|
|
31
|
-
"@instructure/ui-
|
|
30
|
+
"@instructure/ui-axe-check": "11.7.4-snapshot-105",
|
|
31
|
+
"@instructure/ui-babel-preset": "11.7.4-snapshot-105"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": ">=18 <=19"
|
package/src/Heading/v2/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Variant covers almost all use cases for headings on pages. Their name reflects t
|
|
|
13
13
|
type: embed
|
|
14
14
|
---
|
|
15
15
|
<Alert variant="info">
|
|
16
|
-
<List margin="0 0
|
|
16
|
+
<List margin="0 0 general.spaceXl">
|
|
17
17
|
<List.Item>For legacy reasons, each <code>variant</code> has a default <code>level</code> set. This is not the recommended way and will be removed in a later major release. Please always specify the <code>level</code>!</List.Item>
|
|
18
18
|
<List.Item>When <code>variant</code> is set the <code>as</code> prop is ignored</List.Item>
|
|
19
19
|
<List.Item>A11Y GUIDELINE: There can be only one <code>h1</code> tag in a page</List.Item>
|
|
@@ -71,7 +71,7 @@ The `variant` and `level` props sets its appearance in this order.
|
|
|
71
71
|
type: example
|
|
72
72
|
---
|
|
73
73
|
<div>
|
|
74
|
-
<Heading level="h1" as="h3" margin="0 0
|
|
74
|
+
<Heading level="h1" as="h3" margin="0 0 general.spaceSm">This renders as <code><h3></code></Heading>
|
|
75
75
|
</div>
|
|
76
76
|
```
|
|
77
77
|
|
|
@@ -123,7 +123,7 @@ add either `top` or `bottom` borders to your heading.
|
|
|
123
123
|
type: example
|
|
124
124
|
---
|
|
125
125
|
<div>
|
|
126
|
-
<Heading margin="0 0
|
|
126
|
+
<Heading margin="0 0 general.spaceXl" border="bottom">I have a bottom border</Heading>
|
|
127
127
|
<Heading border="top">I have a top border</Heading>
|
|
128
128
|
</div>
|
|
129
129
|
```
|
package/src/Heading/v2/props.ts
CHANGED
|
@@ -75,9 +75,9 @@ type HeadingOwnProps = {
|
|
|
75
75
|
*/
|
|
76
76
|
as?: AsElementType
|
|
77
77
|
/**
|
|
78
|
-
* Valid values are `0`, `none`, `auto`,
|
|
79
|
-
*
|
|
80
|
-
* familiar CSS-like shorthand. For example
|
|
78
|
+
* Valid values are `0`, `none`, `auto`, and Spacing token values,
|
|
79
|
+
* see https://instructure.design/layout-spacing. Apply these values via
|
|
80
|
+
* familiar CSS-like shorthand. For example, `margin="general.spaceMd auto"`.
|
|
81
81
|
*/
|
|
82
82
|
margin?: Spacing
|
|
83
83
|
/**
|