@itcase/config 1.0.23 → 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.23",
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,21 +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: [
78
- '/--.*/gi',
79
- '/gap.*/gi',
80
- '/border.*/gi',
81
- '/margin.*/gi',
82
- '/top.*/gi',
83
- '/left.*/gi',
84
- '/right.*/gi',
85
- '/bottom.*/gi',
86
- ],
87
- to: 'px',
73
+ units: [{ from: 'm', convert: (val) => val * 8 + 'px' }],
88
74
  },
89
75
  ],
90
76
  [
@@ -36,22 +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: [
45
- '/--.*/gi',
46
- '/gap.*/gi',
47
- '/border.*/gi',
48
- '/margin.*/gi',
49
- '/top.*/gi',
50
- '/left.*/gi',
51
- '/right.*/gi',
52
- '/bottom.*/gi',
53
- ],
54
- to: 'px',
39
+ require('postcss-custom-unit')({
40
+ units: [{ from: 'm', convert: (val) => val * 8 + 'px' }],
55
41
  }),
56
42
 
57
43
  require('postcss-sort-media-queries')({
@@ -36,22 +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: [
45
- '/--.*/gi',
46
- '/gap.*/gi',
47
- '/border.*/gi',
48
- '/margin.*/gi',
49
- '/top.*/gi',
50
- '/left.*/gi',
51
- '/right.*/gi',
52
- '/bottom.*/gi',
53
- ],
54
- to: 'px',
39
+ require('postcss-custom-unit')({
40
+ units: [{ from: 'm', convert: (val) => val * 8 + 'px' }],
55
41
  }),
56
42
 
57
43
  require('postcss-sort-media-queries')({
@@ -44,22 +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: [
53
- '/--.*/gi',
54
- '/gap.*/gi',
55
- '/border.*/gi',
56
- '/margin.*/gi',
57
- '/top.*/gi',
58
- '/left.*/gi',
59
- '/right.*/gi',
60
- '/bottom.*/gi',
61
- ],
62
- to: 'px',
47
+ require('postcss-custom-unit')({
48
+ units: [{ from: 'm', convert: (val) => val * 8 + 'px' }],
63
49
  }),
64
50
  require('@lehoczky/postcss-fluid'),
65
51
  ]
@@ -67,22 +53,8 @@ module.exports = {
67
53
  require('postcss-normalize'),
68
54
  require('postcss-import-ext-glob'),
69
55
  require('postcss-import'),
70
- require('postcss-unit')({
71
- convert: (number) => number * 8,
72
- from: 'm',
73
- mediaQuery: false,
74
- minValue: 0,
75
- propWhiteList: [
76
- '/--.*/gi',
77
- '/gap.*/gi',
78
- '/border.*/gi',
79
- '/margin.*/gi',
80
- '/top.*/gi',
81
- '/left.*/gi',
82
- '/right.*/gi',
83
- '/bottom.*/gi',
84
- ],
85
- to: 'px',
56
+ require('postcss-custom-unit')({
57
+ units: [{ from: 'm', convert: (val) => val * 8 + 'px' }],
86
58
  }),
87
59
  ],
88
60
  }