@zjlab-fe/data-hub-ui 0.2.3 → 0.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zjlab-fe/data-hub-ui",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "main": "lib/index.js",
5
5
  "module": "es/index.js",
6
6
  "types": "dist/types/index.d.ts",
package/postcss.config.js CHANGED
@@ -1,7 +1,7 @@
1
- module.exports = {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- 'postcss-nested': {},
6
- },
7
- };
1
+ module.exports = {
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ 'postcss-nested': {},
6
+ },
7
+ };
@@ -1,49 +1,49 @@
1
- /** @type {import('tailwindcss').Config} */
2
- module.exports = {
3
- content: [
4
- './src/components/uploadDrawer/**/*.{js,jsx,ts,tsx}',
5
- './src/components/FileUploader/**/*.{js,jsx,ts,tsx}',
6
- ],
7
- theme: {
8
- extend: {
9
- fontFamily: {
10
- sans: ['', 'Inter', 'sans-serif'],
11
- },
12
- colors: {
13
- 'blue-1': '#E8F1FF',
14
- 'blue-2': '#B9D6FF',
15
- 'blue-4': '#4591FE',
16
- 'blue-5': '#1775FE',
17
- red: '#FE4D4F',
18
- yellow: '#FAAD14',
19
- green: '#53C31B',
20
- 'assist-blue': '#1990FF',
21
- 'assist-bg-blue': '#F4F6FA',
22
- 'gray-2': '#EDF2FC',
23
- 'gray-3': '#D9E0ED',
24
- 'gray-5': '#87909E',
25
- 'gray-7': '#545B64',
26
- 'gray-9': '#30353A',
27
- 'gray-10': '#222427',
28
- },
29
- borderRadius: {
30
- ml: '10px',
31
- },
32
- height: {
33
- 162: '648px',
34
- },
35
- minHeight: {
36
- 162: '648px',
37
- },
38
- spacing: {
39
- 18: '72px',
40
- 29: '116px',
41
- 384: '1536px',
42
- },
43
- boxShadow: {
44
- float: '0px 12px 30px 0px rgba(32,60,48,0.2);',
45
- },
46
- },
47
- },
48
- plugins: [],
49
- };
1
+ /** @type {import('tailwindcss').Config} */
2
+ module.exports = {
3
+ content: [
4
+ './src/components/uploadDrawer/**/*.{js,jsx,ts,tsx}',
5
+ './src/components/FileUploader/**/*.{js,jsx,ts,tsx}',
6
+ ],
7
+ theme: {
8
+ extend: {
9
+ fontFamily: {
10
+ sans: ['', 'Inter', 'sans-serif'],
11
+ },
12
+ colors: {
13
+ 'blue-1': '#E8F1FF',
14
+ 'blue-2': '#B9D6FF',
15
+ 'blue-4': '#4591FE',
16
+ 'blue-5': '#1775FE',
17
+ red: '#FE4D4F',
18
+ yellow: '#FAAD14',
19
+ green: '#53C31B',
20
+ 'assist-blue': '#1990FF',
21
+ 'assist-bg-blue': '#F4F6FA',
22
+ 'gray-2': '#EDF2FC',
23
+ 'gray-3': '#D9E0ED',
24
+ 'gray-5': '#87909E',
25
+ 'gray-7': '#545B64',
26
+ 'gray-9': '#30353A',
27
+ 'gray-10': '#222427',
28
+ },
29
+ borderRadius: {
30
+ ml: '10px',
31
+ },
32
+ height: {
33
+ 162: '648px',
34
+ },
35
+ minHeight: {
36
+ 162: '648px',
37
+ },
38
+ spacing: {
39
+ 18: '72px',
40
+ 29: '116px',
41
+ 384: '1536px',
42
+ },
43
+ boxShadow: {
44
+ float: '0px 12px 30px 0px rgba(32,60,48,0.2);',
45
+ },
46
+ },
47
+ },
48
+ plugins: [],
49
+ };
package/webpack.common.js CHANGED
@@ -1,54 +1,54 @@
1
- module.exports = {
2
- module: {
3
- rules: [
4
- {
5
- test: /\.md$/,
6
- use: ['raw-loader'],
7
- },
8
- {
9
- test: /\.(svg|png|jpe?g)$/,
10
- use: [
11
- {
12
- loader: 'url-loader',
13
- options: {
14
- // 图片大小小于20kb,就会base64处理
15
- // limit: 300 * 1024,
16
- // url-loader默认使用es6模块化解析,html-loader引入图片使用的是commonjs规范
17
- // 关闭url-loader的es6模块化,使用commonjs解析
18
- // esModule: false,
19
- // outputPath: 'assets'
20
- // 图片编译之后重命名
21
- // [hash:10]获取图片hash前10位 [ext]取文件的原扩展名
22
- name: '[hash:10].[ext]',
23
- },
24
- },
25
- ],
26
-
27
- // type: 'asset/resource',
28
- // generator: {
29
- // filename: 'static/[contenthash].[ext]',
30
- // },
31
- },
32
- {
33
- test: /\.s?css$/,
34
- use: ['style-loader', 'css-loader', 'postcss-loader', 'sass-loader'],
35
- },
36
- {
37
- test: /\.(js|jsx|ts|tsx)$/,
38
- exclude: /node_modules/,
39
- use: [
40
- // {
41
- // loader: 'babel-loader',
42
- // options: {
43
- // // 开启 babel 缓存
44
- // cacheDirectory: true,
45
- // // 关闭缓存压缩
46
- // cacheCompression: false,
47
- // },
48
- // },
49
- { loader: 'ts-loader' },
50
- ],
51
- },
52
- ],
53
- },
54
- };
1
+ module.exports = {
2
+ module: {
3
+ rules: [
4
+ {
5
+ test: /\.md$/,
6
+ use: ['raw-loader'],
7
+ },
8
+ {
9
+ test: /\.(svg|png|jpe?g)$/,
10
+ use: [
11
+ {
12
+ loader: 'url-loader',
13
+ options: {
14
+ // 图片大小小于20kb,就会base64处理
15
+ // limit: 300 * 1024,
16
+ // url-loader默认使用es6模块化解析,html-loader引入图片使用的是commonjs规范
17
+ // 关闭url-loader的es6模块化,使用commonjs解析
18
+ // esModule: false,
19
+ // outputPath: 'assets'
20
+ // 图片编译之后重命名
21
+ // [hash:10]获取图片hash前10位 [ext]取文件的原扩展名
22
+ name: '[hash:10].[ext]',
23
+ },
24
+ },
25
+ ],
26
+
27
+ // type: 'asset/resource',
28
+ // generator: {
29
+ // filename: 'static/[contenthash].[ext]',
30
+ // },
31
+ },
32
+ {
33
+ test: /\.s?css$/,
34
+ use: ['style-loader', 'css-loader', 'postcss-loader', 'sass-loader'],
35
+ },
36
+ {
37
+ test: /\.(js|jsx|ts|tsx)$/,
38
+ exclude: /node_modules/,
39
+ use: [
40
+ // {
41
+ // loader: 'babel-loader',
42
+ // options: {
43
+ // // 开启 babel 缓存
44
+ // cacheDirectory: true,
45
+ // // 关闭缓存压缩
46
+ // cacheCompression: false,
47
+ // },
48
+ // },
49
+ { loader: 'ts-loader' },
50
+ ],
51
+ },
52
+ ],
53
+ },
54
+ };
@@ -1,2 +0,0 @@
1
- declare function Layout(): import("react/jsx-runtime").JSX.Element;
2
- export default Layout;