@pisell/common 0.0.2 → 0.0.3
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/button/index.d.ts +4 -0
- package/es/components/button/index.js +12 -0
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -0
- package/lib/components/button/index.d.ts +4 -0
- package/lib/components/button/index.js +31 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +3 -0
- package/package.json +2 -3
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
|
+
import { Button } from 'antd';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
var TestButton = function TestButton(props) {
|
|
10
|
+
return /*#__PURE__*/_jsx(Button, _objectSpread({}, props));
|
|
11
|
+
};
|
|
12
|
+
export default TestButton;
|
package/es/components/index.d.ts
CHANGED
package/es/components/index.js
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
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/button/index.tsx
|
|
20
|
+
var button_exports = {};
|
|
21
|
+
__export(button_exports, {
|
|
22
|
+
default: () => button_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(button_exports);
|
|
25
|
+
var import_antd = require("antd");
|
|
26
|
+
var TestButton = (props) => {
|
|
27
|
+
return /* @__PURE__ */ React.createElement(import_antd.Button, { ...props });
|
|
28
|
+
};
|
|
29
|
+
var button_default = TestButton;
|
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
+
0 && (module.exports = {});
|
package/lib/components/index.js
CHANGED
|
@@ -29,18 +29,21 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
29
29
|
// src/components/index.ts
|
|
30
30
|
var components_exports = {};
|
|
31
31
|
__export(components_exports, {
|
|
32
|
+
Button: () => import_button.default,
|
|
32
33
|
Card: () => import_card.default,
|
|
33
34
|
ColorPicker: () => import_ColorPicker.default,
|
|
34
35
|
DragSort: () => import_DragSort.default,
|
|
35
36
|
IconFont: () => import_Iconfont.default
|
|
36
37
|
});
|
|
37
38
|
module.exports = __toCommonJS(components_exports);
|
|
39
|
+
var import_button = __toESM(require("./button"));
|
|
38
40
|
var import_card = __toESM(require("./card"));
|
|
39
41
|
var import_ColorPicker = __toESM(require("./ColorPicker"));
|
|
40
42
|
var import_DragSort = __toESM(require("./DragSort"));
|
|
41
43
|
var import_Iconfont = __toESM(require("./Iconfont"));
|
|
42
44
|
// Annotate the CommonJS export names for ESM import in node:
|
|
43
45
|
0 && (module.exports = {
|
|
46
|
+
Button,
|
|
44
47
|
Card,
|
|
45
48
|
ColorPicker,
|
|
46
49
|
DragSort,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "A collection of reusable UI components for web development",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": [
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
]
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
+
"antd": "5.5.0",
|
|
58
59
|
"array-move": "^3.0.1",
|
|
59
60
|
"react-beautiful-dnd": "^13.1.0",
|
|
60
61
|
"react-color": "^2.19.3"
|
|
@@ -68,7 +69,6 @@
|
|
|
68
69
|
"@umijs/fabric": "^2.0.0",
|
|
69
70
|
"@umijs/lint": "^4.0.0",
|
|
70
71
|
"ahooks": "^2.10.0",
|
|
71
|
-
"antd": "4.23.2",
|
|
72
72
|
"classnames": "^2.3.1",
|
|
73
73
|
"dumi": "^2.0.2",
|
|
74
74
|
"eslint": "^8.23.0",
|
|
@@ -88,7 +88,6 @@
|
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"@ant-design/icons": "^4.8.0",
|
|
90
90
|
"ahooks": "^2.10.0",
|
|
91
|
-
"antd": "4.23.2",
|
|
92
91
|
"classnames": "^2.3.1",
|
|
93
92
|
"react": ">=17.0",
|
|
94
93
|
"react-dom": ">=17.0",
|