@utrecht/heading-4-css 3.0.0 → 3.0.1
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 +7 -0
- package/dist/html/index.css +0 -1
- package/dist/html/index.min.css +1 -1
- package/dist/html/index.mjs +1 -1
- package/dist/index.css +0 -1
- package/dist/index.min.css +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
- package/src/_mixin.scss +3 -5
- package/src/story-template.jsx +0 -47
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @utrecht/heading-4-css
|
|
2
2
|
|
|
3
|
+
## 3.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- ed56958: Remove dependency on `@utrecht/heading-css` SCSS, copy the CSS to each heading implementation.
|
|
8
|
+
- 0f759fc: Ensure package is published with provenance
|
|
9
|
+
|
|
3
10
|
## 3.0.0
|
|
4
11
|
|
|
5
12
|
### Major Changes
|
package/dist/html/index.css
CHANGED
|
@@ -7,7 +7,6 @@ h4 {
|
|
|
7
7
|
break-after: avoid;
|
|
8
8
|
break-inside: avoid-column;
|
|
9
9
|
break-inside: avoid;
|
|
10
|
-
break-after: avoid-page;
|
|
11
10
|
color: var(--utrecht-heading-4-color, var(--utrecht-heading-color, var(--utrecht-document-color, inherit)));
|
|
12
11
|
font-family: var(--utrecht-heading-4-font-family, var(--utrecht-heading-font-family, var(--utrecht-document-font-family)));
|
|
13
12
|
font-size: var(--utrecht-heading-4-font-size, revert);
|
package/dist/html/index.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
h4{break-after:avoid;break-
|
|
1
|
+
h4{break-after:avoid;break-inside:avoid-column;break-inside:avoid;color:var(--utrecht-heading-4-color,var(--utrecht-heading-color,var(--utrecht-document-color,inherit)));font-family:var(--utrecht-heading-4-font-family,var(--utrecht-heading-font-family,var(--utrecht-document-font-family)));font-size:var(--utrecht-heading-4-font-size,revert);font-weight:var(--utrecht-heading-4-font-weight,var(--utrecht-heading-font-weight,bold));line-height:var(--utrecht-heading-4-line-height);margin-block-end:calc(var(--utrecht-space-around, 0)*var(--utrecht-heading-4-margin-block-end, 0));margin-block-start:calc(var(--utrecht-space-around, 0)*var(--utrecht-heading-4-margin-block-start, 0));--utrecht-space-around:1}
|
package/dist/html/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default "h4{break-after:avoid;break-
|
|
1
|
+
export default "h4{break-after:avoid;break-inside:avoid-column;break-inside:avoid;color:var(--utrecht-heading-4-color,var(--utrecht-heading-color,var(--utrecht-document-color,inherit)));font-family:var(--utrecht-heading-4-font-family,var(--utrecht-heading-font-family,var(--utrecht-document-font-family)));font-size:var(--utrecht-heading-4-font-size,revert);font-weight:var(--utrecht-heading-4-font-weight,var(--utrecht-heading-font-weight,bold));line-height:var(--utrecht-heading-4-line-height);margin-block-end:calc(var(--utrecht-space-around, 0)*var(--utrecht-heading-4-margin-block-end, 0));margin-block-start:calc(var(--utrecht-space-around, 0)*var(--utrecht-heading-4-margin-block-start, 0));--utrecht-space-around:1}";
|
package/dist/index.css
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
break-after: avoid;
|
|
9
9
|
break-inside: avoid-column;
|
|
10
10
|
break-inside: avoid;
|
|
11
|
-
break-after: avoid-page;
|
|
12
11
|
color: var(--utrecht-heading-4-color, var(--utrecht-heading-color, var(--utrecht-document-color, inherit)));
|
|
13
12
|
font-family: var(--utrecht-heading-4-font-family, var(--utrecht-heading-font-family, var(--utrecht-document-font-family)));
|
|
14
13
|
font-size: var(--utrecht-heading-4-font-size, revert);
|
package/dist/index.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.utrecht-heading-4{break-after:avoid;break-
|
|
1
|
+
.utrecht-heading-4{break-after:avoid;break-inside:avoid-column;break-inside:avoid;color:var(--utrecht-heading-4-color,var(--utrecht-heading-color,var(--utrecht-document-color,inherit)));font-family:var(--utrecht-heading-4-font-family,var(--utrecht-heading-font-family,var(--utrecht-document-font-family)));font-size:var(--utrecht-heading-4-font-size,revert);font-weight:var(--utrecht-heading-4-font-weight,var(--utrecht-heading-font-weight,bold));line-height:var(--utrecht-heading-4-line-height);margin-block-end:calc(var(--utrecht-space-around, 0)*var(--utrecht-heading-4-margin-block-end, 0));margin-block-start:calc(var(--utrecht-space-around, 0)*var(--utrecht-heading-4-margin-block-start, 0))}.utrecht-heading-4--distanced{--utrecht-space-around:1}
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default ".utrecht-heading-4{break-after:avoid;break-
|
|
1
|
+
export default ".utrecht-heading-4{break-after:avoid;break-inside:avoid-column;break-inside:avoid;color:var(--utrecht-heading-4-color,var(--utrecht-heading-color,var(--utrecht-document-color,inherit)));font-family:var(--utrecht-heading-4-font-family,var(--utrecht-heading-font-family,var(--utrecht-document-font-family)));font-size:var(--utrecht-heading-4-font-size,revert);font-weight:var(--utrecht-heading-4-font-weight,var(--utrecht-heading-font-weight,bold));line-height:var(--utrecht-heading-4-line-height);margin-block-end:calc(var(--utrecht-space-around, 0)*var(--utrecht-heading-4-margin-block-end, 0));margin-block-start:calc(var(--utrecht-space-around, 0)*var(--utrecht-heading-4-margin-block-start, 0))}.utrecht-heading-4--distanced{--utrecht-space-around:1}";
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "3.0.
|
|
2
|
+
"version": "3.0.1",
|
|
3
3
|
"author": "Community for NL Design System",
|
|
4
4
|
"description": "Heading 4 component for the Municipality of Utrecht based on the NL Design System architecture",
|
|
5
5
|
"license": "EUPL-1.2",
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "dist/index.css",
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@utrecht/heading-css": "3.0.0",
|
|
16
15
|
"@utrecht/build-utils-css": "0.0.4"
|
|
17
16
|
},
|
|
18
17
|
"keywords": [
|
|
19
18
|
"nl-design-system"
|
|
20
19
|
],
|
|
21
20
|
"publishConfig": {
|
|
22
|
-
"access": "public"
|
|
21
|
+
"access": "public",
|
|
22
|
+
"provenance": true
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git+ssh",
|
package/src/_mixin.scss
CHANGED
|
@@ -4,12 +4,10 @@
|
|
|
4
4
|
* Copyright (c) 2021-2024 Gemeente Utrecht
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
@use "~@utrecht/heading-css/src/mixin" as *;
|
|
8
|
-
|
|
9
7
|
@mixin utrecht-heading-4 {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
break-
|
|
8
|
+
break-after: avoid;
|
|
9
|
+
break-inside: avoid-column;
|
|
10
|
+
break-inside: avoid;
|
|
13
11
|
color: var(--utrecht-heading-4-color, var(--utrecht-heading-color, var(--utrecht-document-color, inherit)));
|
|
14
12
|
font-family: var(
|
|
15
13
|
--utrecht-heading-4-font-family,
|
package/src/story-template.jsx
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license EUPL-1.2
|
|
3
|
-
* Copyright (c) 2020-2024 Frameless B.V.
|
|
4
|
-
* Copyright (c) 2021-2024 Gemeente Utrecht
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import clsx from 'clsx';
|
|
8
|
-
import React from 'react';
|
|
9
|
-
|
|
10
|
-
export const argTypes = {
|
|
11
|
-
textContent: {
|
|
12
|
-
description: 'De content van de header',
|
|
13
|
-
control: 'text',
|
|
14
|
-
},
|
|
15
|
-
distanced: {
|
|
16
|
-
description: 'Zet afstand tussen de header en nabije content',
|
|
17
|
-
control: 'boolean',
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const defaultArgs = {
|
|
22
|
-
textContent: '',
|
|
23
|
-
distanced: false,
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export const exampleArgs = {
|
|
27
|
-
textContent: 'The Quick Brown Fox Jumps Over The Lazy Dog',
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export const Heading4 = ({
|
|
31
|
-
children,
|
|
32
|
-
textContent = defaultArgs.textContent,
|
|
33
|
-
distanced = defaultArgs.distanced,
|
|
34
|
-
...restProps
|
|
35
|
-
}) => (
|
|
36
|
-
<h4
|
|
37
|
-
className={clsx('utrecht-heading-4', {
|
|
38
|
-
'utrecht-heading-4--distanced': distanced,
|
|
39
|
-
})}
|
|
40
|
-
{...restProps}
|
|
41
|
-
>
|
|
42
|
-
{children}
|
|
43
|
-
{textContent}
|
|
44
|
-
</h4>
|
|
45
|
-
);
|
|
46
|
-
|
|
47
|
-
export default Heading4;
|