@gitlab/ui 78.12.0 → 78.14.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 +14 -0
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.dark.css +1 -1
- package/dist/tokens/js/tokens.dark.js +1 -1
- package/dist/tokens/js/tokens.js +1 -1
- package/dist/tokens/scss/_tokens.dark.scss +1 -1
- package/dist/tokens/scss/_tokens.scss +1 -1
- package/package.json +1 -1
- package/tailwind.defaults.js +9 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [78.14.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v78.13.0...v78.14.0) (2024-04-12)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **tailwind:** add transparent to supported colors ([8b43228](https://gitlab.com/gitlab-org/gitlab-ui/commit/8b43228294ee2c0d5adf864e5281fe73e9f79cc0))
|
|
7
|
+
|
|
8
|
+
# [78.13.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v78.12.0...v78.13.0) (2024-04-11)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **tailwind:** add data-viz colors to the preset ([9b31bd0](https://gitlab.com/gitlab-org/gitlab-ui/commit/9b31bd063e8284921048729ed4f130dcf312de82))
|
|
14
|
+
|
|
1
15
|
# [78.12.0](https://gitlab.com/gitlab-org/gitlab-ui/compare/v78.11.0...v78.12.0) (2024-04-10)
|
|
2
16
|
|
|
3
17
|
|
package/dist/tokens/js/tokens.js
CHANGED
package/package.json
CHANGED
package/tailwind.defaults.js
CHANGED
|
@@ -19,16 +19,25 @@ const themeColors = Object.entries(COMPILED_TOKENS.theme).reduce((acc, [, scales
|
|
|
19
19
|
return acc;
|
|
20
20
|
}, {});
|
|
21
21
|
|
|
22
|
+
const dataVizColors = Object.entries(COMPILED_TOKENS['data-viz']).reduce((acc, [, scales]) => {
|
|
23
|
+
Object.entries(scales).forEach(([, token]) => {
|
|
24
|
+
acc[token.path.join('-')] = cssCustomPropertyWithValue(token);
|
|
25
|
+
});
|
|
26
|
+
return acc;
|
|
27
|
+
}, {});
|
|
28
|
+
|
|
22
29
|
const textColors = Object.entries(COMPILED_TOKENS.text).reduce((acc, [scale, token]) => {
|
|
23
30
|
acc[scale] = cssCustomPropertyWithValue(token);
|
|
24
31
|
return acc;
|
|
25
32
|
}, {});
|
|
26
33
|
|
|
27
34
|
const colors = {
|
|
35
|
+
transparent: 'transparent',
|
|
28
36
|
white: cssCustomPropertyWithValue(COMPILED_TOKENS.white),
|
|
29
37
|
black: cssCustomPropertyWithValue(COMPILED_TOKENS.black),
|
|
30
38
|
...baseColors,
|
|
31
39
|
...themeColors,
|
|
40
|
+
...dataVizColors,
|
|
32
41
|
};
|
|
33
42
|
|
|
34
43
|
const gridSize = 0.5; // rem
|