@itcase/config 1.0.22 → 1.0.24

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/config",
3
- "version": "1.0.22",
3
+ "version": "1.0.24",
4
4
  "author": "ITCase",
5
5
  "description": "Config",
6
6
  "engines": {
@@ -40,6 +40,7 @@
40
40
  "postcss-cli": "^11.0.0",
41
41
  "postcss-color-hsla-fallback": "^1.0.0",
42
42
  "postcss-combine-duplicated-selectors": "^10.0.3",
43
+ "postcss-custom-unit": "^1.0.0",
43
44
  "postcss-dark-theme-class": "^1.3.0",
44
45
  "postcss-discard-duplicates": "^7.0.1",
45
46
  "postcss-each": "^1.1.0",
@@ -60,13 +61,9 @@
60
61
  "postcss-preset-env": "^10.1.5",
61
62
  "postcss-pxtorem": "^6.1.0",
62
63
  "postcss-sort-media-queries": "^5.2.0",
63
- "postcss-unit": "^0.0.3",
64
64
  "postcss-url": "^10.1.3"
65
65
  },
66
66
  "devDependencies": {
67
- "eslint": "^9.22.0",
68
- "stylelint": "^16.15.0",
69
- "prettier": "^3.5.3",
70
67
  "@commitlint/cli": "^19.8.0",
71
68
  "@commitlint/config-conventional": "^19.8.0",
72
69
  "@itcase/lint": "^1.0.41",
@@ -74,8 +71,11 @@
74
71
  "@semantic-release/git": "^10.0.1",
75
72
  "@semantic-release/release-notes-generator": "14.0.3",
76
73
  "conventional-changelog-conventionalcommits": "^8.0.0",
74
+ "eslint": "^9.22.0",
77
75
  "husky": "^9.1.7",
78
76
  "lint-staged": "^15.4.3",
79
- "semantic-release": "^24.2.3"
77
+ "prettier": "^3.5.3",
78
+ "semantic-release": "^24.2.3",
79
+ "stylelint": "^16.15.0"
80
80
  }
81
81
  }
package/postcss/index.js CHANGED
@@ -70,12 +70,7 @@ export default {
70
70
  [
71
71
  'postcss-unit',
72
72
  {
73
- convert: (number) => number * 8,
74
- from: 'm',
75
- mediaQuery: false,
76
- minValue: 0,
77
- propWhiteList: ['/gap.*/gi', '/border.*/gi', '/margin.*/gi', '/top.*/gi', '/left.*/gi', '/right.*/gi', '/bottom.*/gi'],
78
- to: 'px',
73
+ units: [{ from: 'm', convert: (val) => val * 8 + 'px' }],
79
74
  },
80
75
  ],
81
76
  [
@@ -36,13 +36,8 @@ module.exports = {
36
36
  rootValue: 16,
37
37
  }),
38
38
  require('postcss-merge-at-rules')(),
39
- require('postcss-unit')({
40
- convert: (number) => number * 8,
41
- from: 'm',
42
- mediaQuery: false,
43
- minValue: 0,
44
- propWhiteList: ['/gap.*/gi', '/border.*/gi', '/margin.*/gi', '/top.*/gi', '/left.*/gi', '/right.*/gi', '/bottom.*/gi'],
45
- to: 'px',
39
+ require('postcss-custom-unit')({
40
+ units: [{ from: 'm', convert: (val) => val * 8 + 'px' }],
46
41
  }),
47
42
 
48
43
  require('postcss-sort-media-queries')({
@@ -36,13 +36,8 @@ module.exports = {
36
36
  rootValue: 16,
37
37
  }),
38
38
  require('postcss-merge-at-rules')(),
39
- require('postcss-unit')({
40
- convert: (number) => number * 8,
41
- from: 'm',
42
- mediaQuery: false,
43
- minValue: 0,
44
- propWhiteList: ['/gap.*/gi', '/border.*/gi', '/margin.*/gi', '/top.*/gi', '/left.*/gi', '/right.*/gi', '/bottom.*/gi'],
45
- to: 'px',
39
+ require('postcss-custom-unit')({
40
+ units: [{ from: 'm', convert: (val) => val * 8 + 'px' }],
46
41
  }),
47
42
 
48
43
  require('postcss-sort-media-queries')({
@@ -44,13 +44,8 @@ module.exports = {
44
44
  require('postcss-sort-media-queries')({
45
45
  sort: 'mobile-first',
46
46
  }),
47
- require('postcss-unit')({
48
- convert: (number) => number * 8,
49
- from: 'm',
50
- mediaQuery: false,
51
- minValue: 0,
52
- propWhiteList: ['/gap.*/gi', '/border.*/gi', '/margin.*/gi', '/top.*/gi', '/left.*/gi', '/right.*/gi', '/bottom.*/gi'],
53
- to: 'px',
47
+ require('postcss-custom-unit')({
48
+ units: [{ from: 'm', convert: (val) => val * 8 + 'px' }],
54
49
  }),
55
50
  require('@lehoczky/postcss-fluid'),
56
51
  ]
@@ -58,5 +53,8 @@ module.exports = {
58
53
  require('postcss-normalize'),
59
54
  require('postcss-import-ext-glob'),
60
55
  require('postcss-import'),
56
+ require('postcss-custom-unit')({
57
+ units: [{ from: 'm', convert: (val) => val * 8 + 'px' }],
58
+ }),
61
59
  ],
62
60
  }