@utrecht/form-field-description-css 1.3.0 → 1.5.0

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
@@ -1,5 +1,17 @@
1
1
  # @utrecht/form-field-description-css
2
2
 
3
+ ## 1.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 725617a: Add `tokens.mjs` and `tokens.d.mts` files to CSS packages.
8
+
9
+ ## 1.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - e497b08: Export CSS string as default export in `dist/index.mjs`.
14
+
3
15
  ## 1.3.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.css CHANGED
@@ -1,10 +1,7 @@
1
1
  /**
2
2
  * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
4
- */
5
- /**
6
- * @license EUPL-1.2
7
- * Copyright (c) 2021 Robbert Broersma
3
+ * Copyright (c) 2020-2024 Frameless B.V.
4
+ * Copyright (c) 2021-2024 Gemeente Utrecht
8
5
  */
9
6
  .utrecht-form-field-description {
10
7
  --utrecht-document-color: currentColor;
@@ -0,0 +1 @@
1
+ .utrecht-form-field-description{--utrecht-document-color:currentColor;color:var(--utrecht-form-field-description-color);font-family:var(--utrecht-document-font-family,inherit);font-size:var(--utrecht-form-field-description-font-size,inherit);font-style:var(--utrecht-form-field-description-font-style);line-height:var(--utrecht-form-field-description-line-height);margin-block-end:calc(var(--utrecht-space-around, 0)*var(--utrecht-form-field-description-margin-block-end, var(--utrecht-paragraph-margin-block-end, 0)));margin-block-start:calc(var(--utrecht-space-around, 0)*var(--utrecht-form-field-description-margin-block-start, var(--utrecht-paragraph-margin-block-start, 0)))}.utrecht-form-field-description>*{--utrecht-space-around:1}.utrecht-form-field-description--distanced{--utrecht-space-around:1}.utrecht-form-field-description--invalid{color:var(--utrecht-form-field-description-invalid-color,var(--utrecht-feedback-invalid-color,var(--utrecht-feedback-danger-color)))}.utrecht-form-field-description--valid{color:var(--utrecht-form-field-description-valid-color,var(--utrecht-feedback-valid-color,var(--utrecht-feedback-safe-color)))}.utrecht-form-field-description--warning{color:var(--utrecht-form-field-description-warning-color,var(--utrecht-feedback-warning-color))}
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ export default ".utrecht-form-field-description{--utrecht-document-color:currentColor;color:var(--utrecht-form-field-description-color);font-family:var(--utrecht-document-font-family,inherit);font-size:var(--utrecht-form-field-description-font-size,inherit);font-style:var(--utrecht-form-field-description-font-style);line-height:var(--utrecht-form-field-description-line-height);margin-block-end:calc(var(--utrecht-space-around, 0)*var(--utrecht-form-field-description-margin-block-end, var(--utrecht-paragraph-margin-block-end, 0)));margin-block-start:calc(var(--utrecht-space-around, 0)*var(--utrecht-form-field-description-margin-block-start, var(--utrecht-paragraph-margin-block-start, 0)))}.utrecht-form-field-description>*{--utrecht-space-around:1}.utrecht-form-field-description--distanced{--utrecht-space-around:1}.utrecht-form-field-description--invalid{color:var(--utrecht-form-field-description-invalid-color,var(--utrecht-feedback-invalid-color,var(--utrecht-feedback-danger-color)))}.utrecht-form-field-description--valid{color:var(--utrecht-form-field-description-valid-color,var(--utrecht-feedback-valid-color,var(--utrecht-feedback-safe-color)))}.utrecht-form-field-description--warning{color:var(--utrecht-form-field-description-warning-color,var(--utrecht-feedback-warning-color))}";
@@ -0,0 +1,2 @@
1
+ declare const css: string;
2
+ export default css;
@@ -0,0 +1,4 @@
1
+
2
+ declare const tokens: any;
3
+
4
+ export default tokens;
@@ -0,0 +1,118 @@
1
+ export default {
2
+ "utrecht": {
3
+ "form-field-description": {
4
+ "color": {
5
+ "$extensions": {
6
+ "nl.nldesignsystem.css.property": {
7
+ "syntax": "<color>",
8
+ "inherits": true
9
+ },
10
+ "nl.nldesignsystem.figma.supports-token": true
11
+ },
12
+ "type": "color"
13
+ },
14
+ "font-family": {
15
+ "$extensions": {
16
+ "nl.nldesignsystem.css.property": {
17
+ "syntax": "*",
18
+ "inherits": true
19
+ },
20
+ "nl.nldesignsystem.figma.supports-token": true
21
+ },
22
+ "type": "fontFamilies"
23
+ },
24
+ "font-size": {
25
+ "$extensions": {
26
+ "nl.nldesignsystem.css.property": {
27
+ "syntax": "<length>",
28
+ "inherits": true
29
+ },
30
+ "nl.nldesignsystem.figma.supports-token": true
31
+ },
32
+ "type": "fontSizes"
33
+ },
34
+ "font-style": {
35
+ "$extensions": {
36
+ "nl.nldesignsystem.css.property": {
37
+ "syntax": [
38
+ "inherit",
39
+ "italic",
40
+ "normal"
41
+ ],
42
+ "inherits": true
43
+ },
44
+ "nl.nldesignsystem.figma.supports-token": false
45
+ },
46
+ "type": "other"
47
+ },
48
+ "line-height": {
49
+ "$extensions": {
50
+ "nl.nldesignsystem.css.property": {
51
+ "syntax": "<length>",
52
+ "inherits": true
53
+ },
54
+ "nl.nldesignsystem.figma.supports-token": true
55
+ },
56
+ "type": "lineHeights"
57
+ },
58
+ "margin-block-start": {
59
+ "$extensions": {
60
+ "nl.nldesignsystem.css.property": {
61
+ "syntax": "<length>",
62
+ "inherits": true
63
+ },
64
+ "nl.nldesignsystem.figma.supports-token": false
65
+ },
66
+ "type": "sizing"
67
+ },
68
+ "margin-block-end": {
69
+ "$extensions": {
70
+ "nl.nldesignsystem.css.property": {
71
+ "syntax": "<length>",
72
+ "inherits": true
73
+ },
74
+ "nl.nldesignsystem.figma.supports-token": false
75
+ },
76
+ "type": "sizing"
77
+ },
78
+ "invalid": {
79
+ "font-weight": {
80
+ "$extensions": {
81
+ "nl.nldesignsystem.css.property": {
82
+ "syntax": "<number>",
83
+ "inherits": true
84
+ },
85
+ "nl.nldesignsystem.deprecated": true,
86
+ "nl.nldesignsystem.redirect": "utrecht.form-field-error-message.font-weight",
87
+ "nl.nldesignsystem.figma.supports-token": false
88
+ },
89
+ "type": "fontWeights"
90
+ },
91
+ "color": {
92
+ "$extensions": {
93
+ "nl.nldesignsystem.css.property": {
94
+ "syntax": "<color>",
95
+ "inherits": true
96
+ },
97
+ "nl.nldesignsystem.deprecated": true,
98
+ "nl.nldesignsystem.redirect": "utrecht.form-field-error-message.color",
99
+ "nl.nldesignsystem.figma.supports-token": false
100
+ },
101
+ "type": "color"
102
+ }
103
+ },
104
+ "valid": {
105
+ "color": {
106
+ "$extensions": {
107
+ "nl.nldesignsystem.css.property": {
108
+ "syntax": "<color>",
109
+ "inherits": true
110
+ },
111
+ "nl.nldesignsystem.figma.supports-token": false
112
+ },
113
+ "type": "color"
114
+ }
115
+ }
116
+ }
117
+ }
118
+ };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.3.0",
2
+ "version": "1.5.0",
3
3
  "author": "Community for NL Design System",
4
4
  "description": "Form field description component for the Municipality of Utrecht based on the NL Design System architecture",
5
5
  "license": "EUPL-1.2",
@@ -12,7 +12,7 @@
12
12
  ],
13
13
  "main": "dist/index.css",
14
14
  "devDependencies": {
15
- "rollup": "4.18.0"
15
+ "@utrecht/build-utils-css": "0.0.1"
16
16
  },
17
17
  "keywords": [
18
18
  "nl-design-system"
@@ -26,7 +26,7 @@
26
26
  "directory": "components/form-field-description"
27
27
  },
28
28
  "scripts": {
29
- "build": "rollup -c ../rollup.config.mjs",
29
+ "build": "build-css-package",
30
30
  "clean": "rimraf dist"
31
31
  }
32
32
  }
package/src/_mixin.scss CHANGED
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
3
+ * Copyright (c) 2020-2024 Frameless B.V.
4
+ * Copyright (c) 2021-2024 Gemeente Utrecht
4
5
  */
5
6
 
6
7
  @mixin utrecht-form-field-description {
package/src/index.scss CHANGED
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * @license EUPL-1.2
3
- * Copyright (c) 2021 Robbert Broersma
3
+ * Copyright (c) 2020-2024 Frameless B.V.
4
+ * Copyright (c) 2021-2024 Gemeente Utrecht
4
5
  */
5
6
 
6
7
  @import "./mixin";
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @license EUPL-1.2
3
- * Copyright (c) 2020-2022 Gemeente Utrecht
4
- * Copyright (c) 2020-2022 Frameless B.V.
3
+ * Copyright (c) 2020-2024 Frameless B.V.
4
+ * Copyright (c) 2021-2024 Gemeente Utrecht
5
5
  */
6
6
 
7
7
  import clsx from 'clsx';
package/dist/index.js DELETED
@@ -1 +0,0 @@
1
- var undefined$1 = undefined;export{undefined$1 as default};