@esportsplus/ui 0.0.2 → 0.0.4
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/components/accordion/scss/accordion.scss +1 -1
- package/components/alert/scss/alert.scss +2 -2
- package/components/anchor/scss/anchor.scss +2 -2
- package/components/anchor/scss/anchors.scss +1 -1
- package/components/banner/scss/banner.scss +1 -1
- package/components/button/scss/button.scss +2 -2
- package/components/button/scss/variables.scss +2 -2
- package/components/card/scss/card.scss +2 -2
- package/components/card/scss/variables.scss +1 -1
- package/components/field/scss/_check.scss +2 -2
- package/components/field/scss/_text.scss +2 -2
- package/components/field/scss/field.scss +4 -3
- package/components/field/scss/variables.scss +1 -1
- package/components/group/scss/variables.scss +2 -2
- package/components/link/scss/link.scss +2 -2
- package/components/link/scss/variables.scss +2 -2
- package/components/processing/scss/processing.scss +1 -1
- package/components/root/scss/variables.scss +2 -2
- package/components/sidebar/scss/sidebar.scss +2 -2
- package/components/sidebar/scss/sidebars.scss +1 -1
- package/components/sidebar/scss/variables.scss +1 -1
- package/components/tooltip/scss/tooltip.scss +2 -2
- package/css-utilities/[margin,padding]/scss/variables.scss +2 -2
- package/css-utilities/absolute/scss/absolute.scss +1 -1
- package/css-utilities/background/scss/variables.scss +2 -2
- package/css-utilities/border/scss/variables.scss +2 -2
- package/css-utilities/color/scss/variables.scss +2 -2
- package/css-utilities/flex/scss/flex.scss +1 -1
- package/css-utilities/hidden/scss/hidden.scss +2 -2
- package/css-utilities/index.scss +2 -2
- package/css-utilities/line-height/scss/variables.scss +2 -2
- package/css-utilities/size/scss/variables.scss +2 -2
- package/css-utilities/text/scss/text.scss +2 -2
- package/css-utilities/text/scss/variables.scss +2 -2
- package/css-utilities/width/scss/variables.scss +3 -3
- package/package.json +4 -1
- package/tokens/scss/breakpoints.scss +1 -1
- package/tokens/scss/color.scss +1 -1
- package/tokens/scss/state.scss +1 -1
- package/webpack.sass.config.js +23 -1
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
@use 'ui/lib';
|
|
12
|
-
@use 'ui/tokens';
|
|
11
|
+
@use '~@esportsplus/ui/lib';
|
|
12
|
+
@use '~@esportsplus/ui/tokens';
|
|
13
13
|
@use 'check' as check;
|
|
14
14
|
@use 'normalize' as *;
|
|
15
15
|
@use 'text' as text;
|
|
@@ -66,7 +66,8 @@
|
|
|
66
66
|
word-wrap: break-word;
|
|
67
67
|
|
|
68
68
|
&:empty {
|
|
69
|
-
|
|
69
|
+
height: 0px;
|
|
70
|
+
margin: 0;
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
|
package/css-utilities/index.scss
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@use 'background/scss/variables' as background;
|
|
2
2
|
@use 'border/scss/variables' as border;
|
|
3
3
|
@use 'color/scss/variables' as color;
|
|
4
|
-
@use 'ui/lib';
|
|
5
|
-
@use 'ui/tokens';
|
|
4
|
+
@use '~@esportsplus/ui/lib';
|
|
5
|
+
@use '~@esportsplus/ui/tokens';
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
@mixin css-variables($colors) {
|
package/package.json
CHANGED
|
@@ -2,9 +2,12 @@
|
|
|
2
2
|
"author": "ICJR",
|
|
3
3
|
"dependencies": {
|
|
4
4
|
"autoprefixer": "^10.4.8",
|
|
5
|
+
"clean-webpack-plugin": "^4.0.0",
|
|
5
6
|
"css-loader": "^6.7.1",
|
|
7
|
+
"css-minimizer-webpack-plugin": "^4.0.0",
|
|
6
8
|
"cssnano": "^5.1.13",
|
|
7
9
|
"glob": "^8.0.3",
|
|
10
|
+
"mini-css-extract-plugin": "^2.6.1",
|
|
8
11
|
"modern-normalize": "^1.1.0",
|
|
9
12
|
"path-browserify": "^1.0.1",
|
|
10
13
|
"postcss-loader": "^7.0.1",
|
|
@@ -18,5 +21,5 @@
|
|
|
18
21
|
"description": "UI",
|
|
19
22
|
"name": "@esportsplus/ui",
|
|
20
23
|
"private": false,
|
|
21
|
-
"version": "0.0.
|
|
24
|
+
"version": "0.0.4"
|
|
22
25
|
}
|
package/tokens/scss/color.scss
CHANGED
package/tokens/scss/state.scss
CHANGED
package/webpack.sass.config.js
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
|
2
|
+
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
|
|
3
|
+
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|
4
|
+
|
|
1
5
|
const autoprefixer = require('autoprefixer');
|
|
2
6
|
const cssnano = require('cssnano');
|
|
3
7
|
const glob = require('glob');
|
|
@@ -31,6 +35,7 @@ module.exports = ({ filename, input, output, production, theme }) => {
|
|
|
31
35
|
{
|
|
32
36
|
test: /\.(c|sc|sa)ss$/,
|
|
33
37
|
use: [
|
|
38
|
+
MiniCssExtractPlugin.loader,
|
|
34
39
|
{
|
|
35
40
|
loader: 'css-loader',
|
|
36
41
|
options: {
|
|
@@ -52,8 +57,25 @@ module.exports = ({ filename, input, output, production, theme }) => {
|
|
|
52
57
|
},
|
|
53
58
|
],
|
|
54
59
|
},
|
|
60
|
+
optimization: {
|
|
61
|
+
minimize: true,
|
|
62
|
+
minimizer: [new CssMinimizerPlugin()]
|
|
63
|
+
},
|
|
55
64
|
output: {
|
|
56
65
|
path: paths.output
|
|
57
|
-
}
|
|
66
|
+
},
|
|
67
|
+
plugins: [
|
|
68
|
+
new MiniCssExtractPlugin({
|
|
69
|
+
filename: '[name].css',
|
|
70
|
+
chunkFilename: '[id].css',
|
|
71
|
+
}),
|
|
72
|
+
new CleanWebpackPlugin({
|
|
73
|
+
cleanAfterEveryBuildPatterns: [`${paths.output}/**/*.js`],
|
|
74
|
+
cleanOnceBeforeBuildPatterns: [],
|
|
75
|
+
dangerouslyAllowCleanPatternsOutsideProject: true,
|
|
76
|
+
dry: false,
|
|
77
|
+
verbose: false
|
|
78
|
+
})
|
|
79
|
+
]
|
|
58
80
|
};
|
|
59
81
|
};
|