@digigov/css 0.7.1 → 0.7.2
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.json +20 -0
- package/CHANGELOG.md +9 -1
- package/dist/base/index.css +2 -2
- package/dist/base.css +2 -2
- package/dist/digigov.css +2 -2
- package/index.js +22 -1
- package/package.json +2 -2
package/CHANGELOG.json
CHANGED
|
@@ -1,6 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/css",
|
|
3
3
|
"entries": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.7.2",
|
|
6
|
+
"tag": "@digigov/css_v0.7.2",
|
|
7
|
+
"date": "Wed, 02 Feb 2022 15:44:29 GMT",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"comment": "fix package.json inconsistencies by running cli-lab verify-and-update-local-package-versions"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"comment": "Fix bug that when @digigov/css is used as a tailwind plugin the order of definition for CSS rules and media queries caused visual bugs when media queries were not in the correct order."
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"dependency": [
|
|
18
|
+
{
|
|
19
|
+
"comment": "Updating dependency \"@digigov/postcss-banner\" from `0.3.9` to `0.3.10`"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
4
24
|
{
|
|
5
25
|
"version": "0.7.1",
|
|
6
26
|
"tag": "@digigov/css_v0.7.1",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
# Change Log - @digigov/css
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 02 Feb 2022 15:44:29 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 0.7.2
|
|
6
|
+
Wed, 02 Feb 2022 15:44:29 GMT
|
|
7
|
+
|
|
8
|
+
### Patches
|
|
9
|
+
|
|
10
|
+
- fix package.json inconsistencies by running cli-lab verify-and-update-local-package-versions
|
|
11
|
+
- Fix bug that when @digigov/css is used as a tailwind plugin the order of definition for CSS rules and media queries caused visual bugs when media queries were not in the correct order.
|
|
4
12
|
|
|
5
13
|
## 0.7.1
|
|
6
14
|
Tue, 01 Feb 2022 16:41:11 GMT
|
package/dist/base/index.css
CHANGED
package/dist/base.css
CHANGED
package/dist/digigov.css
CHANGED
package/index.js
CHANGED
|
@@ -24,8 +24,29 @@ const mainFunction = ({ addBase, addComponents, addUtilities, config }) => {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// inject components
|
|
27
|
+
let classNames = [];
|
|
28
|
+
let mediaQueries = [];
|
|
29
|
+
// split compiled components in two different sectors
|
|
30
|
+
// to load them in the correct order, since media queries
|
|
31
|
+
// should be always after the main CSS rules
|
|
32
|
+
Object.keys(components).forEach(selector => {
|
|
33
|
+
// checking if selectors are media queries
|
|
34
|
+
if (selector.startsWith('@media')) {
|
|
35
|
+
mediaQueries.push({[selector]: components[selector]});
|
|
36
|
+
// ... or just regular css rules
|
|
37
|
+
} else {
|
|
38
|
+
classNames.push({[selector]: components[selector]});
|
|
39
|
+
}
|
|
40
|
+
});
|
|
27
41
|
if (config('digigovCss.components') != false) {
|
|
28
|
-
|
|
42
|
+
// this order is important for loading CSS rules and media queries
|
|
43
|
+
// consistently, since the keys in js objects are not ordered and
|
|
44
|
+
// sometimes order can be different. By spreading them in sequence
|
|
45
|
+
// we fix this bug
|
|
46
|
+
addComponents([
|
|
47
|
+
...classNames,
|
|
48
|
+
...mediaQueries,
|
|
49
|
+
])
|
|
29
50
|
digigovCssIncludedItems.push('components')
|
|
30
51
|
}
|
|
31
52
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digigov/css",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.2",
|
|
4
4
|
"description": "Digigov CSS - Tailwind CSS Components",
|
|
5
5
|
"author": "GRNET Devs",
|
|
6
6
|
"license": "MIT",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"tailwindcss": "2.2.4",
|
|
48
48
|
"nodemon": "~2.0.7",
|
|
49
49
|
"next": "10.0.9",
|
|
50
|
-
"@digigov/postcss-banner": "
|
|
50
|
+
"@digigov/postcss-banner": "0.3.10",
|
|
51
51
|
"rimraf": "3.0.2"
|
|
52
52
|
},
|
|
53
53
|
"scripts": {
|