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.
Files changed (34) hide show
  1. package/README.md +25 -0
  2. package/dist/table.umd.es5.production.css +0 -0
  3. package/dist/table.umd.es5.production.js +227 -0
  4. package/es2017/index.d.ts +2 -0
  5. package/es2017/index.js +2 -0
  6. package/es2017/index.module.css +4 -0
  7. package/es2017/index/347/232/204/345/211/257/346/234/254.d.ts +7 -0
  8. package/es2017/index/347/232/204/345/211/257/346/234/254.js +10 -0
  9. package/es2017/provider/config.d.ts +3 -0
  10. package/es2017/provider/config.js +13 -0
  11. package/es2017/provider/index.d.ts +3 -0
  12. package/es2017/provider/index.js +14 -0
  13. package/es2017/table/index.d.ts +3 -0
  14. package/es2017/table/index.js +15 -0
  15. package/es2017/table/index.module.less +3 -0
  16. package/es2017/table/index/347/232/204/345/211/257/346/234/254.d.ts +7 -0
  17. package/es2017/table/index/347/232/204/345/211/257/346/234/254.js +10 -0
  18. package/es2017/typings.d.ts +1 -0
  19. package/esm/index.d.ts +2 -0
  20. package/esm/index.js +2 -0
  21. package/esm/index.module.css +4 -0
  22. package/esm/index/347/232/204/345/211/257/346/234/254.d.ts +7 -0
  23. package/esm/index/347/232/204/345/211/257/346/234/254.js +10 -0
  24. package/esm/provider/config.d.ts +3 -0
  25. package/esm/provider/config.js +13 -0
  26. package/esm/provider/index.d.ts +3 -0
  27. package/esm/provider/index.js +14 -0
  28. package/esm/table/index.d.ts +3 -0
  29. package/esm/table/index.js +16 -0
  30. package/esm/table/index.module.less +3 -0
  31. package/esm/table/index/347/232/204/345/211/257/346/234/254.d.ts +7 -0
  32. package/esm/table/index/347/232/204/345/211/257/346/234/254.js +10 -0
  33. package/esm/typings.d.ts +1 -0
  34. package/package.json +72 -0
@@ -0,0 +1,2 @@
1
+ export { default as Provider } from "./provider";
2
+ export { default as Table } from "./table";
@@ -0,0 +1,2 @@
1
+ export { default as Provider } from "./provider/index";
2
+ export { default as Table } from "./table/index";
@@ -0,0 +1,4 @@
1
+ /* Write your style here. */
2
+ .BhdComponents {
3
+ color: red;
4
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface ComponentProps {
3
+ /** Title for BhdComponents. */
4
+ title: string;
5
+ }
6
+ export default function BhdComponents(props: ComponentProps): JSX.Element;
7
+ export {};
@@ -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,3 @@
1
+ import type { ConfigProviderProps } from "antd/es/config-provider";
2
+ declare const config: ConfigProviderProps;
3
+ export default config;
@@ -0,0 +1,13 @@
1
+ const config = {
2
+ prefixCls: "bhd",
3
+ theme: {
4
+ token: {
5
+ colorPrimary: "#f4523b",
6
+ colorSuccess: "#f4523b",
7
+ borderRadius: 8,
8
+ borderRadiusSM: 6,
9
+ wireframe: true
10
+ }
11
+ }
12
+ };
13
+ export default config;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Provider: (Component: any) => (props: any) => JSX.Element;
3
+ export default Provider;
@@ -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,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -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,3 @@
1
+ .Table{
2
+
3
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface ComponentProps {
3
+ /** Title for BhdComponents. */
4
+ title: string;
5
+ }
6
+ export default function BhdComponents(props: ComponentProps): JSX.Element;
7
+ export {};
@@ -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
@@ -0,0 +1,2 @@
1
+ export { default as Provider } from "./provider";
2
+ export { default as Table } from "./table";
package/esm/index.js ADDED
@@ -0,0 +1,2 @@
1
+ export { default as Provider } from "./provider/index";
2
+ export { default as Table } from "./table/index";
@@ -0,0 +1,4 @@
1
+ /* Write your style here. */
2
+ .BhdComponents {
3
+ color: red;
4
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface ComponentProps {
3
+ /** Title for BhdComponents. */
4
+ title: string;
5
+ }
6
+ export default function BhdComponents(props: ComponentProps): JSX.Element;
7
+ export {};
@@ -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,3 @@
1
+ import type { ConfigProviderProps } from "antd/es/config-provider";
2
+ declare const config: ConfigProviderProps;
3
+ export default config;
@@ -0,0 +1,13 @@
1
+ var config = {
2
+ prefixCls: "bhd",
3
+ theme: {
4
+ token: {
5
+ colorPrimary: "#f4523b",
6
+ colorSuccess: "#f4523b",
7
+ borderRadius: 8,
8
+ borderRadiusSM: 6,
9
+ wireframe: true
10
+ }
11
+ }
12
+ };
13
+ export default config;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const Provider: (Component: any) => (props: any) => JSX.Element;
3
+ export default Provider;
@@ -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,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: (props: any) => JSX.Element;
3
+ export default _default;
@@ -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,3 @@
1
+ .Table{
2
+
3
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface ComponentProps {
3
+ /** Title for BhdComponents. */
4
+ title: string;
5
+ }
6
+ export default function BhdComponents(props: ComponentProps): JSX.Element;
7
+ export {};
@@ -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 @@
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
+ }