xmirror-components 1.0.2 → 1.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/build/dist/xmirror-components.css +1 -0
- package/build/dist/xmirror-components.js +580 -243
- package/build/dist/xmirror-components.umd.cjs +15 -11
- package/build/es/AntdApp/index.d.ts +12 -0
- package/build/es/AntdApp/index.js +14 -0
- package/build/es/Button/button.js +9 -4
- package/build/es/Button/index.js +7 -2
- package/build/es/CheckboxValue/index.d.ts +40 -0
- package/build/es/CheckboxValue/index.js +33 -0
- package/build/es/ChunkUploader/FileItem.d.ts +13 -0
- package/build/es/ChunkUploader/FileItem.js +472 -0
- package/build/es/ChunkUploader/UploaderContext.d.ts +8 -0
- package/build/es/ChunkUploader/UploaderContext.js +65 -0
- package/build/es/ChunkUploader/generateFileUniqueID.d.ts +2 -0
- package/build/es/ChunkUploader/generateFileUniqueID.js +140 -0
- package/build/es/ChunkUploader/index.d.ts +4 -0
- package/build/es/ChunkUploader/index.js +259 -0
- package/build/es/GlobalLoading/index.d.ts +11 -0
- package/build/es/GlobalLoading/index.js +32 -0
- package/build/es/IconButton/index.d.ts +42 -0
- package/build/es/IconButton/index.js +51 -0
- package/build/es/IconFont/index.d.ts +21 -0
- package/build/es/IconFont/index.js +32 -0
- package/build/es/LevelGroup/index.d.ts +10 -0
- package/build/es/LevelGroup/index.js +33 -0
- package/build/es/LevelTag/index.d.ts +21 -0
- package/build/es/LevelTag/index.js +84 -0
- package/build/es/SearchArea/Item/index.d.ts +13 -0
- package/build/es/SearchArea/Item/index.js +38 -0
- package/build/es/SearchArea/ToggleButton/index.d.ts +9 -0
- package/build/es/SearchArea/ToggleButton/index.js +24 -0
- package/build/es/SearchArea/index.d.ts +13 -0
- package/build/es/SearchArea/index.js +153 -0
- package/build/es/SwitchValue/index.d.ts +30 -0
- package/build/es/SwitchValue/index.js +36 -0
- package/build/es/Table/Footer/index.d.ts +3 -0
- package/build/es/Table/Footer/index.js +82 -0
- package/build/es/Table/PopoverSetColumns/index.d.ts +11 -0
- package/build/es/Table/PopoverSetColumns/index.js +164 -0
- package/build/es/Table/index.d.ts +4 -0
- package/build/es/Table/index.js +230 -0
- package/build/es/Uploader/index.d.ts +10 -0
- package/build/es/Uploader/index.js +175 -0
- package/build/es/index.d.ts +5 -1
- package/build/es/index.js +5 -1
- package/build/lib/AntdApp/index.js +19 -0
- package/build/lib/CheckboxValue/index.js +38 -0
- package/build/lib/IconButton/index.js +91 -0
- package/build/lib/IconFont/index.js +67 -0
- package/build/lib/SwitchValue/index.js +41 -0
- package/build/lib/index.js +14 -3
- package/build/package.json +11 -4
- package/package.json +11 -4
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __assign = (this && this.__assign) || function () {
|
|
3
|
+
__assign = Object.assign || function(t) {
|
|
4
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
+
s = arguments[i];
|
|
6
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
+
t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
var react_1 = __importDefault(require("react"));
|
|
29
|
+
var antd_1 = require("antd");
|
|
30
|
+
/**
|
|
31
|
+
* Switch 可自定义 value
|
|
32
|
+
*/
|
|
33
|
+
var Index = function (_a) {
|
|
34
|
+
var checked = _a.checked, onChange = _a.onChange, _b = _a.trueValue, trueValue = _b === void 0 ? true : _b, _c = _a.falseValue, falseValue = _c === void 0 ? false : _c, props = __rest(_a, ["checked", "onChange", "trueValue", "falseValue"]);
|
|
35
|
+
var _checked = checked === trueValue;
|
|
36
|
+
var change = function (checked, event) {
|
|
37
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(checked ? trueValue : falseValue, event);
|
|
38
|
+
};
|
|
39
|
+
return (react_1.default.createElement(antd_1.Switch, __assign({ checked: _checked, onChange: change }, props)));
|
|
40
|
+
};
|
|
41
|
+
exports.default = Index;
|
package/build/lib/index.js
CHANGED
|
@@ -3,6 +3,17 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
var
|
|
8
|
-
Object.defineProperty(exports, "
|
|
6
|
+
exports.modal = exports.notification = exports.message = exports.App = exports.SwitchValue = exports.IconFont = exports.IconButton = exports.CheckboxValue = void 0;
|
|
7
|
+
var CheckboxValue_1 = require("./CheckboxValue");
|
|
8
|
+
Object.defineProperty(exports, "CheckboxValue", { enumerable: true, get: function () { return __importDefault(CheckboxValue_1).default; } });
|
|
9
|
+
var IconButton_1 = require("./IconButton");
|
|
10
|
+
Object.defineProperty(exports, "IconButton", { enumerable: true, get: function () { return __importDefault(IconButton_1).default; } });
|
|
11
|
+
var IconFont_1 = require("./IconFont");
|
|
12
|
+
Object.defineProperty(exports, "IconFont", { enumerable: true, get: function () { return __importDefault(IconFont_1).default; } });
|
|
13
|
+
var SwitchValue_1 = require("./SwitchValue");
|
|
14
|
+
Object.defineProperty(exports, "SwitchValue", { enumerable: true, get: function () { return __importDefault(SwitchValue_1).default; } });
|
|
15
|
+
var AntdApp_1 = require("./AntdApp");
|
|
16
|
+
Object.defineProperty(exports, "App", { enumerable: true, get: function () { return __importDefault(AntdApp_1).default; } });
|
|
17
|
+
Object.defineProperty(exports, "message", { enumerable: true, get: function () { return AntdApp_1.message; } });
|
|
18
|
+
Object.defineProperty(exports, "notification", { enumerable: true, get: function () { return AntdApp_1.notification; } });
|
|
19
|
+
Object.defineProperty(exports, "modal", { enumerable: true, get: function () { return AntdApp_1.modal; } });
|
package/build/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xmirror-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "build/lib/index.js",
|
|
6
6
|
"module": "build/es/index.js",
|
|
@@ -22,23 +22,30 @@
|
|
|
22
22
|
"publish:npm": "npm publish --access public"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
+
"antd": ">=5.0.0",
|
|
25
26
|
"react": ">=16.9.0",
|
|
26
|
-
"react-dom": ">=16.9.0"
|
|
27
|
-
"antd": ">=5.0.0"
|
|
27
|
+
"react-dom": ">=16.9.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@ant-design/icons": "^5.6.1"
|
|
30
|
+
"@ant-design/icons": "^5.6.1",
|
|
31
|
+
"ahooks": "^3.8.5",
|
|
32
|
+
"lodash-es": "^4.17.21",
|
|
33
|
+
"react-intl": "^7.1.11",
|
|
34
|
+
"react-transition-group": "^4.4.5"
|
|
31
35
|
},
|
|
32
36
|
"devDependencies": {
|
|
37
|
+
"@types/lodash-es": "^4.17.12",
|
|
33
38
|
"@types/node": "^22.13.10",
|
|
34
39
|
"@types/react": "^19.0.10",
|
|
35
40
|
"@types/react-dom": "^19.0.4",
|
|
41
|
+
"@types/react-transition-group": "^4.4.12",
|
|
36
42
|
"@vitejs/plugin-react-swc": "^3.8.0",
|
|
37
43
|
"antd": "^5.24.3",
|
|
38
44
|
"eslint": "^9.21.0",
|
|
39
45
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
40
46
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
41
47
|
"globals": "^15.15.0",
|
|
48
|
+
"less": "^4.3.0",
|
|
42
49
|
"react": "^19.0.0",
|
|
43
50
|
"react-dom": "^19.0.0",
|
|
44
51
|
"typescript": "~5.7.2",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xmirror-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "build/lib/index.js",
|
|
6
6
|
"module": "build/es/index.js",
|
|
@@ -22,23 +22,30 @@
|
|
|
22
22
|
"publish:npm": "npm publish --access public"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
+
"antd": ">=5.0.0",
|
|
25
26
|
"react": ">=16.9.0",
|
|
26
|
-
"react-dom": ">=16.9.0"
|
|
27
|
-
"antd": ">=5.0.0"
|
|
27
|
+
"react-dom": ">=16.9.0"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@ant-design/icons": "^5.6.1"
|
|
30
|
+
"@ant-design/icons": "^5.6.1",
|
|
31
|
+
"ahooks": "^3.8.5",
|
|
32
|
+
"lodash-es": "^4.17.21",
|
|
33
|
+
"react-intl": "^7.1.11",
|
|
34
|
+
"react-transition-group": "^4.4.5"
|
|
31
35
|
},
|
|
32
36
|
"devDependencies": {
|
|
37
|
+
"@types/lodash-es": "^4.17.12",
|
|
33
38
|
"@types/node": "^22.13.10",
|
|
34
39
|
"@types/react": "^19.0.10",
|
|
35
40
|
"@types/react-dom": "^19.0.4",
|
|
41
|
+
"@types/react-transition-group": "^4.4.12",
|
|
36
42
|
"@vitejs/plugin-react-swc": "^3.8.0",
|
|
37
43
|
"antd": "^5.24.3",
|
|
38
44
|
"eslint": "^9.21.0",
|
|
39
45
|
"eslint-plugin-react-hooks": "^5.1.0",
|
|
40
46
|
"eslint-plugin-react-refresh": "^0.4.19",
|
|
41
47
|
"globals": "^15.15.0",
|
|
48
|
+
"less": "^4.3.0",
|
|
42
49
|
"react": "^19.0.0",
|
|
43
50
|
"react-dom": "^19.0.0",
|
|
44
51
|
"typescript": "~5.7.2",
|