@pisell/common 0.0.5 → 0.0.7
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/es/components/Iconfont/index.d.ts +1 -1
- package/es/components/avatar/index.d.ts +13 -0
- package/es/components/avatar/index.js +25 -0
- package/es/components/button/index.d.ts +17 -3
- package/es/components/button/index.js +28 -4
- package/es/components/checkbox/index.d.ts +20 -0
- package/es/components/checkbox/index.js +43 -0
- package/es/components/configProvider/index.d.ts +109 -0
- package/es/components/configProvider/index.js +111 -0
- package/es/components/index.d.ts +17 -0
- package/es/components/index.js +8 -1
- package/es/components/input/index.d.ts +35 -0
- package/es/components/input/index.js +97 -0
- package/es/components/pagination/index.d.ts +10 -0
- package/es/components/pagination/index.js +18 -0
- package/es/components/radio/index.d.ts +13 -0
- package/es/components/radio/index.js +28 -0
- package/es/components/switch/index.d.ts +10 -0
- package/es/components/switch/index.js +18 -0
- package/es/index.d.ts +0 -2
- package/es/index.js +1 -3
- package/lib/components/Iconfont/index.d.ts +1 -1
- package/lib/components/avatar/index.d.ts +13 -0
- package/lib/components/avatar/index.js +42 -0
- package/lib/components/button/index.d.ts +17 -3
- package/lib/components/button/index.js +7 -2
- package/lib/components/checkbox/index.d.ts +20 -0
- package/lib/components/checkbox/index.js +36 -0
- package/lib/components/configProvider/index.d.ts +109 -0
- package/lib/components/configProvider/index.js +140 -0
- package/lib/components/index.d.ts +17 -0
- package/lib/components/index.js +22 -2
- package/lib/components/input/index.d.ts +35 -0
- package/lib/components/input/index.js +53 -0
- package/lib/components/pagination/index.d.ts +10 -0
- package/lib/components/pagination/index.js +42 -0
- package/lib/components/radio/index.d.ts +13 -0
- package/lib/components/radio/index.js +36 -0
- package/lib/components/switch/index.d.ts +10 -0
- package/lib/components/switch/index.js +42 -0
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -12
- package/package.json +1 -1
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/pagination/index.tsx
|
|
30
|
+
var pagination_exports = {};
|
|
31
|
+
__export(pagination_exports, {
|
|
32
|
+
default: () => pagination_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(pagination_exports);
|
|
35
|
+
var import_antd5 = require("antd5");
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var Pagination = (props) => {
|
|
38
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd5.Pagination, { ...props });
|
|
39
|
+
};
|
|
40
|
+
var pagination_default = Pagination;
|
|
41
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
+
0 && (module.exports = {});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { RadioGroupProps as AntRadioGroupProps, RadioProps as AntRadioProps } from 'antd5';
|
|
2
|
+
export declare type RadioGroupProps = AntRadioGroupProps;
|
|
3
|
+
export declare type RadioProps = AntRadioProps;
|
|
4
|
+
/**
|
|
5
|
+
* 单选框
|
|
6
|
+
* @param props
|
|
7
|
+
* @constructor
|
|
8
|
+
*/
|
|
9
|
+
declare const Radio: {
|
|
10
|
+
(props: RadioProps): JSX.Element;
|
|
11
|
+
Group: (props: RadioGroupProps) => JSX.Element;
|
|
12
|
+
};
|
|
13
|
+
export default Radio;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/radio/index.tsx
|
|
20
|
+
var radio_exports = {};
|
|
21
|
+
__export(radio_exports, {
|
|
22
|
+
default: () => radio_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(radio_exports);
|
|
25
|
+
var import_antd5 = require("antd5");
|
|
26
|
+
var { Group: AntGroup } = import_antd5.Radio;
|
|
27
|
+
var Radio = (props) => {
|
|
28
|
+
return /* @__PURE__ */ React.createElement(import_antd5.Radio, { ...props });
|
|
29
|
+
};
|
|
30
|
+
var Group = (props) => {
|
|
31
|
+
return /* @__PURE__ */ React.createElement(AntGroup, { ...props });
|
|
32
|
+
};
|
|
33
|
+
Radio.Group = Group;
|
|
34
|
+
var radio_default = Radio;
|
|
35
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
+
0 && (module.exports = {});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { SwitchProps as AntSwitchProps } from 'antd5';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export declare type SwitchProps = AntSwitchProps;
|
|
4
|
+
/**
|
|
5
|
+
* 开关
|
|
6
|
+
* @param props
|
|
7
|
+
* @constructor
|
|
8
|
+
*/
|
|
9
|
+
declare const Switch: React.FC<SwitchProps>;
|
|
10
|
+
export default Switch;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
27
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
+
|
|
29
|
+
// src/components/switch/index.tsx
|
|
30
|
+
var switch_exports = {};
|
|
31
|
+
__export(switch_exports, {
|
|
32
|
+
default: () => switch_default
|
|
33
|
+
});
|
|
34
|
+
module.exports = __toCommonJS(switch_exports);
|
|
35
|
+
var import_antd5 = require("antd5");
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
37
|
+
var Switch = (props) => {
|
|
38
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd5.Switch, { ...props });
|
|
39
|
+
};
|
|
40
|
+
var switch_default = Switch;
|
|
41
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
42
|
+
0 && (module.exports = {});
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -2,10 +2,6 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
5
|
var __copyProps = (to, from, except, desc) => {
|
|
10
6
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
7
|
for (let key of __getOwnPropNames(from))
|
|
@@ -19,16 +15,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
15
|
|
|
20
16
|
// src/index.ts
|
|
21
17
|
var src_exports = {};
|
|
22
|
-
__export(src_exports, {
|
|
23
|
-
ConfigProvider: () => import_antd5.ConfigProvider
|
|
24
|
-
});
|
|
25
18
|
module.exports = __toCommonJS(src_exports);
|
|
26
|
-
var import_antd5 = require("antd5");
|
|
27
19
|
__reExport(src_exports, require("./business-components"), module.exports);
|
|
28
20
|
__reExport(src_exports, require("./business-hooks"), module.exports);
|
|
29
21
|
__reExport(src_exports, require("./components"), module.exports);
|
|
30
22
|
__reExport(src_exports, require("./hooks"), module.exports);
|
|
31
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
-
0 && (module.exports = {
|
|
33
|
-
ConfigProvider
|
|
34
|
-
});
|