bhd-components 0.1.0
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/README.md +25 -0
- package/dist/table.umd.es5.production.css +0 -0
- package/dist/table.umd.es5.production.js +227 -0
- package/es2017/index.d.ts +2 -0
- package/es2017/index.js +2 -0
- package/es2017/index.module.css +4 -0
- package/es2017/index/347/232/204/345/211/257/346/234/254.d.ts +7 -0
- package/es2017/index/347/232/204/345/211/257/346/234/254.js +10 -0
- package/es2017/provider/config.d.ts +3 -0
- package/es2017/provider/config.js +13 -0
- package/es2017/provider/index.d.ts +3 -0
- package/es2017/provider/index.js +14 -0
- package/es2017/table/index.d.ts +3 -0
- package/es2017/table/index.js +15 -0
- package/es2017/table/index.module.less +3 -0
- package/es2017/table/index/347/232/204/345/211/257/346/234/254.d.ts +7 -0
- package/es2017/table/index/347/232/204/345/211/257/346/234/254.js +10 -0
- package/es2017/typings.d.ts +1 -0
- package/esm/index.d.ts +2 -0
- package/esm/index.js +2 -0
- package/esm/index.module.css +4 -0
- package/esm/index/347/232/204/345/211/257/346/234/254.d.ts +7 -0
- package/esm/index/347/232/204/345/211/257/346/234/254.js +10 -0
- package/esm/provider/config.d.ts +3 -0
- package/esm/provider/config.js +13 -0
- package/esm/provider/index.d.ts +3 -0
- package/esm/provider/index.js +14 -0
- package/esm/table/index.d.ts +3 -0
- package/esm/table/index.js +16 -0
- package/esm/table/index.module.less +3 -0
- package/esm/table/index/347/232/204/345/211/257/346/234/254.d.ts +7 -0
- package/esm/table/index/347/232/204/345/211/257/346/234/254.js +10 -0
- package/esm/typings.d.ts +1 -0
- package/package.json +72 -0
package/es2017/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
export default function BhdComponents(props) {
|
|
5
|
+
const { title ='Hello World!' } = props;
|
|
6
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
7
|
+
className: styles.BhdComponents,
|
|
8
|
+
children: title
|
|
9
|
+
});
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import _object_spread from "@swc/helpers/src/_object_spread.mjs";
|
|
2
|
+
import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs";
|
|
3
|
+
import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { ConfigProvider } from "antd";
|
|
6
|
+
import config from "./config";
|
|
7
|
+
const Provider = (Component)=>{
|
|
8
|
+
return (props)=>{
|
|
9
|
+
return /*#__PURE__*/ _jsx(ConfigProvider, _object_spread_props(_object_spread({}, config), {
|
|
10
|
+
children: /*#__PURE__*/ _jsx(Component, _object_spread({}, props))
|
|
11
|
+
}));
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default Provider;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import styles from "./index.module.less";
|
|
4
|
+
import Provider from "../provider";
|
|
5
|
+
import { Table as AntdTable } from "antd";
|
|
6
|
+
const Table = ({ columns , dataSource })=>{
|
|
7
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
8
|
+
className: styles.Table,
|
|
9
|
+
children: /*#__PURE__*/ _jsx(AntdTable, {
|
|
10
|
+
columns: columns,
|
|
11
|
+
dataSource: dataSource
|
|
12
|
+
})
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
export default Provider(Table);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
export default function BhdComponents(props) {
|
|
5
|
+
const { title ='Hello World!' } = props;
|
|
6
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
7
|
+
className: styles.BhdComponents,
|
|
8
|
+
children: title
|
|
9
|
+
});
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="@ice/pkg/types" />
|
package/esm/index.d.ts
ADDED
package/esm/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
export default function BhdComponents(props) {
|
|
5
|
+
var _props_title = props.title, title = _props_title === void 0 ? "Hello World!" : _props_title;
|
|
6
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
7
|
+
className: styles.BhdComponents,
|
|
8
|
+
children: title
|
|
9
|
+
});
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import _object_spread from "@swc/helpers/src/_object_spread.mjs";
|
|
2
|
+
import _object_spread_props from "@swc/helpers/src/_object_spread_props.mjs";
|
|
3
|
+
import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { ConfigProvider } from "antd";
|
|
6
|
+
import config from "./config";
|
|
7
|
+
var Provider = function(Component) {
|
|
8
|
+
return function(props) {
|
|
9
|
+
return /*#__PURE__*/ _jsx(ConfigProvider, _object_spread_props(_object_spread({}, config), {
|
|
10
|
+
children: /*#__PURE__*/ _jsx(Component, _object_spread({}, props))
|
|
11
|
+
}));
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export default Provider;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import styles from "./index.module.less";
|
|
4
|
+
import Provider from "../provider";
|
|
5
|
+
import { Table as AntdTable } from "antd";
|
|
6
|
+
var Table = function(param) {
|
|
7
|
+
var columns = param.columns, dataSource = param.dataSource;
|
|
8
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
9
|
+
className: styles.Table,
|
|
10
|
+
children: /*#__PURE__*/ _jsx(AntdTable, {
|
|
11
|
+
columns: columns,
|
|
12
|
+
dataSource: dataSource
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
};
|
|
16
|
+
export default Provider(Table);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as _jsx } from "@ice/jsx-runtime/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import styles from "./index.module.css";
|
|
4
|
+
export default function BhdComponents(props) {
|
|
5
|
+
var _props_title = props.title, title = _props_title === void 0 ? "Hello World!" : _props_title;
|
|
6
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
7
|
+
className: styles.BhdComponents,
|
|
8
|
+
children: title
|
|
9
|
+
});
|
|
10
|
+
}
|
package/esm/typings.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="@ice/pkg/types" />
|
package/package.json
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "bhd-components",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "组件功能描述",
|
|
5
|
+
"files": [
|
|
6
|
+
"esm",
|
|
7
|
+
"es2017",
|
|
8
|
+
"cjs",
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"main": "esm/index.js",
|
|
12
|
+
"module": "esm/index.js",
|
|
13
|
+
"types": "esm/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"es2017": {
|
|
17
|
+
"types": "./es2017/index.d.ts",
|
|
18
|
+
"default": "./es2017/index.js"
|
|
19
|
+
},
|
|
20
|
+
"default": {
|
|
21
|
+
"types": "./esm/index.d.ts",
|
|
22
|
+
"default": "./esm/index.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"./*": "./*"
|
|
26
|
+
},
|
|
27
|
+
"sideEffects": [
|
|
28
|
+
"dist/*",
|
|
29
|
+
"*.scss",
|
|
30
|
+
"*.less",
|
|
31
|
+
"*.css"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"start": "ice-pkg start",
|
|
35
|
+
"build": "ice-pkg build",
|
|
36
|
+
"prepublishOnly": "npm run build",
|
|
37
|
+
"eslint": "eslint --cache --ext .js,.jsx,.ts,.tsx ./",
|
|
38
|
+
"eslint:fix": "npm run eslint -- --fix",
|
|
39
|
+
"stylelint": "stylelint \"**/*.{css,scss,less}\"",
|
|
40
|
+
"lint": "npm run eslint && npm run stylelint"
|
|
41
|
+
},
|
|
42
|
+
"keywords": [
|
|
43
|
+
"ice",
|
|
44
|
+
"react",
|
|
45
|
+
"component"
|
|
46
|
+
],
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@ice/jsx-runtime": "^0.2.0",
|
|
49
|
+
"@swc/helpers": "^0.4.14",
|
|
50
|
+
"antd": "^5.2.3",
|
|
51
|
+
"less": "^4.1.3",
|
|
52
|
+
"less-loader": "^11.1.0"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@ice/pkg": "^1.0.0",
|
|
56
|
+
"@ice/pkg-plugin-docusaurus": "^1.0.0",
|
|
57
|
+
"@iceworks/spec": "^1.0.0",
|
|
58
|
+
"eslint": "^7.0.0",
|
|
59
|
+
"react": "^18.0.0",
|
|
60
|
+
"react-dom": "^18.0.0",
|
|
61
|
+
"@types/react": "^18.0.0",
|
|
62
|
+
"@types/react-dom": "^18.0.0",
|
|
63
|
+
"stylelint": "^13.7.2"
|
|
64
|
+
},
|
|
65
|
+
"peerDependencies": {
|
|
66
|
+
"react": "^17 || ^18"
|
|
67
|
+
},
|
|
68
|
+
"publishConfig": {
|
|
69
|
+
"access": "public"
|
|
70
|
+
},
|
|
71
|
+
"license": "MIT"
|
|
72
|
+
}
|