@demos-europe/demosplan-ui 0.3.30 → 0.3.31
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 +5 -0
- package/package.json +1 -1
- package/scripts/utils/transformTokens.js +7 -1
- package/tokens/dist/js/boxShadow.js +1 -1
- package/tokens/dist/js/breakpoints.js +1 -1
- package/tokens/dist/js/color.brand.js +1 -1
- package/tokens/dist/js/color.data.js +1 -1
- package/tokens/dist/js/color.palette.js +1 -1
- package/tokens/dist/js/color.ui.js +1 -1
- package/tokens/dist/js/fontSize.js +1 -1
- package/tokens/dist/js/rounded.js +1 -1
- package/tokens/dist/js/space.js +1 -1
- package/tokens/dist/js/zIndex.js +1 -1
- package/tokens/dist/scss/_boxShadow.scss +1 -1
- package/tokens/dist/scss/_breakpoints.scss +1 -1
- package/tokens/dist/scss/_color.brand.scss +1 -1
- package/tokens/dist/scss/_color.data.scss +1 -1
- package/tokens/dist/scss/_color.palette.scss +1 -1
- package/tokens/dist/scss/_color.ui.scss +1 -1
- package/tokens/dist/scss/_fontSize.scss +1 -1
- package/tokens/dist/scss/_rounded.scss +1 -1
- package/tokens/dist/scss/_space.scss +1 -1
- package/tokens/dist/scss/_zIndex.scss +1 -1
- package/tokens/dist/tailwind/breakpoints.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,11 @@ Since v0.0.10, this Changelog is formatted according to the [Common Changelog][c
|
|
|
4
4
|
|
|
5
5
|
## UNRELEASED
|
|
6
6
|
|
|
7
|
+
## v0.3.31 - 2024-09-09
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
- ([#1011](https://github.com/demos-europe/demosplan-ui/pull/1011)) Fix breakpoint values in Tailwind config ([@spiess-demos](https://github.com/spiess-demos))
|
|
11
|
+
|
|
7
12
|
## v0.3.30 - 2024-09-04
|
|
8
13
|
|
|
9
14
|
### Added
|
package/package.json
CHANGED
|
@@ -33,11 +33,17 @@ const lowerCamelToDash = (str) => {
|
|
|
33
33
|
|
|
34
34
|
// Build Css variables chain to resolve aliases
|
|
35
35
|
const transformTailwindTokenValue = (token, formatterArguments) => {
|
|
36
|
+
let current = token
|
|
37
|
+
|
|
38
|
+
// Css variables are not supported within media queries. See https://stackoverflow.com/a/40723269
|
|
39
|
+
if (token.path[0] === 'breakpoints') {
|
|
40
|
+
return current.original.value
|
|
41
|
+
}
|
|
42
|
+
|
|
36
43
|
const { dictionary, platform } = formatterArguments
|
|
37
44
|
const varName = `--${platform.prefix}${transformTailwindTokenName(token, true).replace(/\./g, '-')}`
|
|
38
45
|
let fallback = resolveValue(token, dictionary)
|
|
39
46
|
|
|
40
|
-
let current = token
|
|
41
47
|
let cssVar = `var(${varName}`
|
|
42
48
|
while (current.original && current.original.value.startsWith('{')) {
|
|
43
49
|
const ref = dictionary.getReferences(current.original.value)[0]
|
package/tokens/dist/js/space.js
CHANGED
package/tokens/dist/js/zIndex.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
"sm": "
|
|
3
|
-
"md": "
|
|
4
|
-
"lg": "
|
|
5
|
-
"xl": "
|
|
2
|
+
"sm": "620px",
|
|
3
|
+
"md": "904px",
|
|
4
|
+
"lg": "1200px",
|
|
5
|
+
"xl": "1400px"
|
|
6
6
|
};
|