tntd 3.0.73 → 3.0.74
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/tntd-action/Action.js +87 -10
- package/es/tntd-action/index.less +22 -4
- package/lib/tntd-action/index.less +22 -4
- package/package.json +113 -114
- package/es/checkbox/checkbox-group.js +0 -12
- package/es/checkbox/checkbox-group.js.map +0 -1
- package/es/radio/radio-group.js +0 -12
- package/es/radio/radio-group.js.map +0 -1
- package/es/steps/stepStyle/small.less +0 -5
- package/es/table/total-shower.js +0 -16
- package/es/table/total-shower.js.map +0 -1
- package/es/utils/simple-template.js +0 -19
- package/es/utils/simple-template.js.map +0 -1
- package/lib/checkbox/checkbox-group.d.ts +0 -8
- package/lib/checkbox/checkbox-group.d.ts.map +0 -1
- package/lib/checkbox/checkbox-group.js +0 -16
- package/lib/checkbox/checkbox-group.js.map +0 -1
- package/lib/radio/radio-group.d.ts +0 -8
- package/lib/radio/radio-group.d.ts.map +0 -1
- package/lib/radio/radio-group.js +0 -16
- package/lib/radio/radio-group.js.map +0 -1
- package/lib/steps/stepStyle/small.less +0 -5
- package/lib/table/total-shower.d.ts +0 -9
- package/lib/table/total-shower.d.ts.map +0 -1
- package/lib/table/total-shower.js +0 -20
- package/lib/table/total-shower.js.map +0 -1
- package/lib/utils/simple-template.d.ts +0 -9
- package/lib/utils/simple-template.d.ts.map +0 -1
- package/lib/utils/simple-template.js +0 -19
- package/lib/utils/simple-template.js.map +0 -1
package/es/tntd-action/Action.js
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) {
|
|
3
|
+
function _typeof(o) {
|
|
4
|
+
"@babel/helpers - typeof";
|
|
5
|
+
|
|
6
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
7
|
+
return typeof o;
|
|
8
|
+
} : function (o) {
|
|
9
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
10
|
+
}, _typeof(o);
|
|
11
|
+
}
|
|
4
12
|
Object.defineProperty(exports, "__esModule", {
|
|
5
13
|
value: true
|
|
6
14
|
});
|
|
@@ -11,15 +19,84 @@ var _configProvider = require("antd/es/config-provider");
|
|
|
11
19
|
var _LocaleReceiver = _interopRequireDefault(require("antd/es/locale-provider/LocaleReceiver"));
|
|
12
20
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
13
21
|
var _button = require("../button");
|
|
14
|
-
function _interopRequireDefault(e) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
function
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
function _interopRequireDefault(e) {
|
|
23
|
+
return e && e.__esModule ? e : {
|
|
24
|
+
"default": e
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
function _getRequireWildcardCache(e) {
|
|
28
|
+
if ("function" != typeof WeakMap) return null;
|
|
29
|
+
var r = new WeakMap(),
|
|
30
|
+
t = new WeakMap();
|
|
31
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache(e) {
|
|
32
|
+
return e ? t : r;
|
|
33
|
+
})(e);
|
|
34
|
+
}
|
|
35
|
+
function _interopRequireWildcard(e, r) {
|
|
36
|
+
if (!r && e && e.__esModule) return e;
|
|
37
|
+
if (null === e || "object" != _typeof(e) && "function" != typeof e) return {
|
|
38
|
+
"default": e
|
|
39
|
+
};
|
|
40
|
+
var t = _getRequireWildcardCache(r);
|
|
41
|
+
if (t && t.has(e)) return t.get(e);
|
|
42
|
+
var n = {
|
|
43
|
+
__proto__: null
|
|
44
|
+
},
|
|
45
|
+
a = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
46
|
+
for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) {
|
|
47
|
+
var i = a ? Object.getOwnPropertyDescriptor(e, u) : null;
|
|
48
|
+
i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u];
|
|
49
|
+
}
|
|
50
|
+
return n["default"] = e, t && t.set(e, n), n;
|
|
51
|
+
}
|
|
52
|
+
function _slicedToArray(r, e) {
|
|
53
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
54
|
+
}
|
|
55
|
+
function _nonIterableRest() {
|
|
56
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
57
|
+
}
|
|
58
|
+
function _unsupportedIterableToArray(r, a) {
|
|
59
|
+
if (r) {
|
|
60
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
61
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
62
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function _arrayLikeToArray(r, a) {
|
|
66
|
+
(null == a || a > r.length) && (a = r.length);
|
|
67
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
68
|
+
return n;
|
|
69
|
+
}
|
|
70
|
+
function _iterableToArrayLimit(r, l) {
|
|
71
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
72
|
+
if (null != t) {
|
|
73
|
+
var e,
|
|
74
|
+
n,
|
|
75
|
+
i,
|
|
76
|
+
u,
|
|
77
|
+
a = [],
|
|
78
|
+
f = !0,
|
|
79
|
+
o = !1;
|
|
80
|
+
try {
|
|
81
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
82
|
+
if (Object(t) !== t) return;
|
|
83
|
+
f = !1;
|
|
84
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
85
|
+
} catch (r) {
|
|
86
|
+
o = !0, n = r;
|
|
87
|
+
} finally {
|
|
88
|
+
try {
|
|
89
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
90
|
+
} finally {
|
|
91
|
+
if (o) throw n;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
return a;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function _arrayWithHoles(r) {
|
|
98
|
+
if (Array.isArray(r)) return r;
|
|
99
|
+
}
|
|
23
100
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
24
101
|
var t = {};
|
|
25
102
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
@@ -9,11 +9,13 @@
|
|
|
9
9
|
z-index: 200;
|
|
10
10
|
cursor: grab;
|
|
11
11
|
box-shadow: 0px 4px 7px 0px rgba(0, 0, 0, 0.25), 0px 1px 1px 0px #263354 inset;
|
|
12
|
+
|
|
12
13
|
&-text {
|
|
13
14
|
color: @white;
|
|
14
15
|
margin-left: 20px;
|
|
15
16
|
font-size: 14px;
|
|
16
17
|
user-select: none;
|
|
18
|
+
|
|
17
19
|
.num {
|
|
18
20
|
display: inline-block;
|
|
19
21
|
width: 16px;
|
|
@@ -26,7 +28,8 @@
|
|
|
26
28
|
text-align: center;
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
|
-
|
|
31
|
+
|
|
32
|
+
>.tnt-btn-tertiary {
|
|
30
33
|
opacity: 0.5;
|
|
31
34
|
background: #454f64;
|
|
32
35
|
color: @white;
|
|
@@ -37,46 +40,61 @@
|
|
|
37
40
|
line-height: @tnt-action-close-width;
|
|
38
41
|
margin-top: 4px;
|
|
39
42
|
font-size: 14px;
|
|
43
|
+
|
|
40
44
|
&:hover {
|
|
41
45
|
opacity: 0.8;
|
|
42
46
|
}
|
|
43
47
|
}
|
|
48
|
+
|
|
44
49
|
.fr {
|
|
45
50
|
float: right;
|
|
51
|
+
|
|
46
52
|
.ant-btn {
|
|
47
53
|
margin-left: 10px;
|
|
54
|
+
|
|
48
55
|
.tntd-anticon {
|
|
49
56
|
margin-right: 4px;
|
|
50
57
|
}
|
|
51
58
|
}
|
|
59
|
+
|
|
52
60
|
.ant-btn:not(.ant-btn-danger) {
|
|
53
61
|
background: rgba(69, 79, 100, 0.5);
|
|
54
62
|
color: @white;
|
|
55
63
|
border-width: 0;
|
|
64
|
+
|
|
56
65
|
&:hover {
|
|
57
66
|
background: rgba(69, 79, 100, 0.8);
|
|
58
67
|
}
|
|
59
68
|
}
|
|
60
69
|
}
|
|
70
|
+
|
|
61
71
|
&-dropdown {
|
|
62
72
|
&-btn {
|
|
63
73
|
margin-left: 8px !important;
|
|
64
74
|
border-radius: @border-radius-base !important;
|
|
65
75
|
}
|
|
76
|
+
|
|
66
77
|
.ant-dropdown-menu-item {
|
|
67
78
|
.ant-btn {
|
|
68
|
-
display:
|
|
79
|
+
display: block;
|
|
69
80
|
padding: 0;
|
|
70
81
|
height: auto;
|
|
71
82
|
border: none;
|
|
72
83
|
background-color: transparent;
|
|
73
84
|
color: inherit;
|
|
85
|
+
width: calc(100% + 24px);
|
|
86
|
+
text-align: left;
|
|
87
|
+
padding: 5px 12px;
|
|
88
|
+
margin: -5px -12px;
|
|
89
|
+
|
|
74
90
|
&:hover,
|
|
75
91
|
&:active {
|
|
76
92
|
color: inherit;
|
|
77
93
|
}
|
|
94
|
+
|
|
78
95
|
&[disabled] {
|
|
79
96
|
color: @disabled-color;
|
|
97
|
+
|
|
80
98
|
&:hover,
|
|
81
99
|
&:active {
|
|
82
100
|
color: @disabled-color;
|
|
@@ -89,8 +107,8 @@
|
|
|
89
107
|
|
|
90
108
|
// 全局设置
|
|
91
109
|
.ant-btn-group:has(.tnt-action-dropdown-btn) {
|
|
92
|
-
|
|
110
|
+
&>.ant-btn:nth-last-child(2) {
|
|
93
111
|
border-top-right-radius: @border-radius-base;
|
|
94
112
|
border-bottom-right-radius: @border-radius-base;
|
|
95
113
|
}
|
|
96
|
-
}
|
|
114
|
+
}
|
|
@@ -9,11 +9,13 @@
|
|
|
9
9
|
z-index: 200;
|
|
10
10
|
cursor: grab;
|
|
11
11
|
box-shadow: 0px 4px 7px 0px rgba(0, 0, 0, 0.25), 0px 1px 1px 0px #263354 inset;
|
|
12
|
+
|
|
12
13
|
&-text {
|
|
13
14
|
color: @white;
|
|
14
15
|
margin-left: 20px;
|
|
15
16
|
font-size: 14px;
|
|
16
17
|
user-select: none;
|
|
18
|
+
|
|
17
19
|
.num {
|
|
18
20
|
display: inline-block;
|
|
19
21
|
width: 16px;
|
|
@@ -26,7 +28,8 @@
|
|
|
26
28
|
text-align: center;
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
|
-
|
|
31
|
+
|
|
32
|
+
>.tnt-btn-tertiary {
|
|
30
33
|
opacity: 0.5;
|
|
31
34
|
background: #454f64;
|
|
32
35
|
color: @white;
|
|
@@ -37,46 +40,61 @@
|
|
|
37
40
|
line-height: @tnt-action-close-width;
|
|
38
41
|
margin-top: 4px;
|
|
39
42
|
font-size: 14px;
|
|
43
|
+
|
|
40
44
|
&:hover {
|
|
41
45
|
opacity: 0.8;
|
|
42
46
|
}
|
|
43
47
|
}
|
|
48
|
+
|
|
44
49
|
.fr {
|
|
45
50
|
float: right;
|
|
51
|
+
|
|
46
52
|
.ant-btn {
|
|
47
53
|
margin-left: 10px;
|
|
54
|
+
|
|
48
55
|
.tntd-anticon {
|
|
49
56
|
margin-right: 4px;
|
|
50
57
|
}
|
|
51
58
|
}
|
|
59
|
+
|
|
52
60
|
.ant-btn:not(.ant-btn-danger) {
|
|
53
61
|
background: rgba(69, 79, 100, 0.5);
|
|
54
62
|
color: @white;
|
|
55
63
|
border-width: 0;
|
|
64
|
+
|
|
56
65
|
&:hover {
|
|
57
66
|
background: rgba(69, 79, 100, 0.8);
|
|
58
67
|
}
|
|
59
68
|
}
|
|
60
69
|
}
|
|
70
|
+
|
|
61
71
|
&-dropdown {
|
|
62
72
|
&-btn {
|
|
63
73
|
margin-left: 8px !important;
|
|
64
74
|
border-radius: @border-radius-base !important;
|
|
65
75
|
}
|
|
76
|
+
|
|
66
77
|
.ant-dropdown-menu-item {
|
|
67
78
|
.ant-btn {
|
|
68
|
-
display:
|
|
79
|
+
display: block;
|
|
69
80
|
padding: 0;
|
|
70
81
|
height: auto;
|
|
71
82
|
border: none;
|
|
72
83
|
background-color: transparent;
|
|
73
84
|
color: inherit;
|
|
85
|
+
width: calc(100% + 24px);
|
|
86
|
+
text-align: left;
|
|
87
|
+
padding: 5px 12px;
|
|
88
|
+
margin: -5px -12px;
|
|
89
|
+
|
|
74
90
|
&:hover,
|
|
75
91
|
&:active {
|
|
76
92
|
color: inherit;
|
|
77
93
|
}
|
|
94
|
+
|
|
78
95
|
&[disabled] {
|
|
79
96
|
color: @disabled-color;
|
|
97
|
+
|
|
80
98
|
&:hover,
|
|
81
99
|
&:active {
|
|
82
100
|
color: @disabled-color;
|
|
@@ -89,8 +107,8 @@
|
|
|
89
107
|
|
|
90
108
|
// 全局设置
|
|
91
109
|
.ant-btn-group:has(.tnt-action-dropdown-btn) {
|
|
92
|
-
|
|
110
|
+
&>.ant-btn:nth-last-child(2) {
|
|
93
111
|
border-top-right-radius: @border-radius-base;
|
|
94
112
|
border-bottom-right-radius: @border-radius-base;
|
|
95
113
|
}
|
|
96
|
-
}
|
|
114
|
+
}
|
package/package.json
CHANGED
|
@@ -1,117 +1,116 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"rc-util": "^5.25.2",
|
|
17
|
-
"rc-motion": "^2.6.1",
|
|
18
|
-
"array-tree-filter": "^2.1.0",
|
|
19
|
-
"rc-select": "~14.2.0",
|
|
20
|
-
"rc-tree": "~5.7.0",
|
|
21
|
-
"rc-overflow": "^1.0.0",
|
|
22
|
-
"rc-trigger": "^5.0.4",
|
|
23
|
-
"rc-notification": "~3.3.1",
|
|
24
|
-
"rc-virtual-list": "~3.16.1",
|
|
25
|
-
"rc-align": "^4.0.0",
|
|
26
|
-
"react-color": "^2.17.2",
|
|
27
|
-
"lodash": "~4.17.21",
|
|
28
|
-
"color-alpha": "~1.1.3",
|
|
29
|
-
"rc-segmented": "~2.2.2",
|
|
30
|
-
"rc-field-form": "~1.34.0",
|
|
31
|
-
"scroll-into-view-if-needed": "^2.2.25",
|
|
32
|
-
"@tntd/icons": "^1.0.10",
|
|
33
|
-
"@ant-design/colors": "^3.1.0",
|
|
34
|
-
"rc-resize-observer": "~1.4.0",
|
|
35
|
-
"react-resizable": "~3.0.4",
|
|
36
|
-
"@types/react-resizable": "~3.0.8"
|
|
37
|
-
},
|
|
38
|
-
"devDependencies": {
|
|
39
|
-
"@react-types/shared": "^3.10.1",
|
|
40
|
-
"@types/react": "~16.14.23",
|
|
41
|
-
"@types/react-dom": "~16.9.14",
|
|
42
|
-
"@types/styled-components": "~5.1.26",
|
|
43
|
-
"@rushstack/eslint-config": "~2.5.1",
|
|
44
|
-
"@rushstack/heft": "~0.44.2",
|
|
45
|
-
"@rushstack/heft-storybook-plugin": "~0.1.91",
|
|
46
|
-
"@types/jest": "~28.1.6",
|
|
47
|
-
"@tntd/heft-rig": "0.1.0",
|
|
48
|
-
"@tntd/storybook-react-storykit": "0.0.0",
|
|
49
|
-
"antd": "^3.26.19",
|
|
50
|
-
"react": "~16.14.0",
|
|
51
|
-
"react-dom": "~16.14.0",
|
|
52
|
-
"jest": "~28.1.0",
|
|
53
|
-
"eslint-plugin-react-hooks": "~4.3.0",
|
|
54
|
-
"eslint": "~8.11.0",
|
|
55
|
-
"eslint-plugin-import": "~2.25.4",
|
|
56
|
-
"typescript": "~4.6.2",
|
|
57
|
-
"@types/lodash-es": "~4.17.6",
|
|
58
|
-
"@types/lodash": "~4.14.191",
|
|
59
|
-
"babel-plugin-lodash": "~3.3.4",
|
|
60
|
-
"@babel/cli": "~7.21.0",
|
|
61
|
-
"@babel/core": "~7.21.0",
|
|
62
|
-
"@babel/preset-env": "~7.20.2",
|
|
63
|
-
"moment": "~2.29.4"
|
|
64
|
-
},
|
|
65
|
-
"peerDependencies": {
|
|
66
|
-
"antd": "^3.0.0 || ^4.0.0",
|
|
67
|
-
"react": "^16.0.0 || ^17.0.0",
|
|
68
|
-
"react-dom": "^16.0.0 || ^17.0.0"
|
|
69
|
-
},
|
|
70
|
-
"svgr": {
|
|
71
|
-
"typescript": true,
|
|
72
|
-
"memo": true,
|
|
73
|
-
"dimensions": false,
|
|
74
|
-
"filenameCase": "kebab",
|
|
75
|
-
"replaceAttrValues": {
|
|
76
|
-
"#126bfb": "currentColor"
|
|
2
|
+
"name": "tntd",
|
|
3
|
+
"version": "3.0.74",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"start": "heft start --storybook",
|
|
7
|
+
"build": "heft build --clean && npm run build:es && npm run build:cjs && npm run post:build",
|
|
8
|
+
"build:es": "ES_MODULE=true babel es --presets @babel/preset-env --out-dir es",
|
|
9
|
+
"build:cjs": "babel es --presets @babel/preset-env --out-dir lib",
|
|
10
|
+
"post:build": "node ./scripts/postbuild.js",
|
|
11
|
+
"build:watch": "heft build --clean --watch",
|
|
12
|
+
"watch": "rush build:watch --changed-projects-only --to-except tntd",
|
|
13
|
+
"svgr": "npx svgr ./svg --out-dir ./src/svg-components",
|
|
14
|
+
"test": "heft test",
|
|
15
|
+
"test:watch": "heft test --watch --clean"
|
|
77
16
|
},
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@dnd-kit/core": "~6.1.0",
|
|
19
|
+
"@dnd-kit/modifiers": "~7.0.0",
|
|
20
|
+
"@dnd-kit/sortable": "~8.0.0",
|
|
21
|
+
"@dnd-kit/utilities": "~3.2.2",
|
|
22
|
+
"@icon-park/react": "^1.3.5",
|
|
23
|
+
"@stellaris/hooks": "~0.4.6",
|
|
24
|
+
"classnames": "^2.2.6",
|
|
25
|
+
"@tntx/logo-icon": "~1.0.4",
|
|
26
|
+
"delete-all-cookies": "~0.3.0",
|
|
27
|
+
"styled-components": "^5.3.0",
|
|
28
|
+
"rc-util": "^5.25.2",
|
|
29
|
+
"rc-motion": "^2.6.1",
|
|
30
|
+
"array-tree-filter": "^2.1.0",
|
|
31
|
+
"rc-select": "~14.2.0",
|
|
32
|
+
"rc-tree": "~5.7.0",
|
|
33
|
+
"rc-overflow": "^1.0.0",
|
|
34
|
+
"rc-trigger": "^5.0.4",
|
|
35
|
+
"rc-notification": "~3.3.1",
|
|
36
|
+
"rc-virtual-list": "~3.16.1",
|
|
37
|
+
"rc-align": "^4.0.0",
|
|
38
|
+
"react-color": "^2.17.2",
|
|
39
|
+
"lodash": "~4.17.21",
|
|
40
|
+
"color-alpha": "~1.1.3",
|
|
41
|
+
"rc-segmented": "~2.2.2",
|
|
42
|
+
"rc-field-form": "~1.34.0",
|
|
43
|
+
"scroll-into-view-if-needed": "^2.2.25",
|
|
44
|
+
"@tntd/icons": "^1.0.10",
|
|
45
|
+
"@ant-design/colors": "^3.1.0",
|
|
46
|
+
"rc-resize-observer": "~1.4.0",
|
|
47
|
+
"react-resizable": "~3.0.4",
|
|
48
|
+
"@types/react-resizable": "~3.0.8"
|
|
49
|
+
},
|
|
50
|
+
"devDependencies": {
|
|
51
|
+
"@react-types/shared": "^3.10.1",
|
|
52
|
+
"@types/react": "~16.14.23",
|
|
53
|
+
"@types/react-dom": "~16.9.14",
|
|
54
|
+
"@types/styled-components": "~5.1.26",
|
|
55
|
+
"@rushstack/eslint-config": "~2.5.1",
|
|
56
|
+
"@rushstack/heft": "~0.44.2",
|
|
57
|
+
"@rushstack/heft-storybook-plugin": "~0.1.91",
|
|
58
|
+
"@types/jest": "~28.1.6",
|
|
59
|
+
"@tntd/heft-rig": "workspace:*",
|
|
60
|
+
"@tntd/storybook-react-storykit": "workspace:*",
|
|
61
|
+
"antd": "^3.26.19",
|
|
62
|
+
"react": "~16.14.0",
|
|
63
|
+
"react-dom": "~16.14.0",
|
|
64
|
+
"jest": "~28.1.0",
|
|
65
|
+
"eslint-plugin-react-hooks": "~4.3.0",
|
|
66
|
+
"eslint": "~8.11.0",
|
|
67
|
+
"eslint-plugin-import": "~2.25.4",
|
|
68
|
+
"typescript": "~4.6.2",
|
|
69
|
+
"@types/lodash-es": "~4.17.6",
|
|
70
|
+
"@types/lodash": "~4.14.191",
|
|
71
|
+
"babel-plugin-lodash": "~3.3.4",
|
|
72
|
+
"@babel/cli": "~7.21.0",
|
|
73
|
+
"@babel/core": "~7.21.0",
|
|
74
|
+
"@babel/preset-env": "~7.20.2",
|
|
75
|
+
"moment": "~2.29.4"
|
|
76
|
+
},
|
|
77
|
+
"peerDependencies": {
|
|
78
|
+
"antd": "^3.0.0 || ^4.0.0",
|
|
79
|
+
"react": "^16.0.0 || ^17.0.0",
|
|
80
|
+
"react-dom": "^16.0.0 || ^17.0.0"
|
|
81
|
+
},
|
|
82
|
+
"svgr": {
|
|
83
|
+
"typescript": true,
|
|
84
|
+
"memo": true,
|
|
85
|
+
"dimensions": false,
|
|
86
|
+
"filenameCase": "kebab",
|
|
87
|
+
"replaceAttrValues": {
|
|
88
|
+
"#126bfb": "currentColor"
|
|
89
|
+
},
|
|
90
|
+
"ref": true
|
|
91
|
+
},
|
|
92
|
+
"repository": {
|
|
93
|
+
"type": "git",
|
|
94
|
+
"url": "git@gitlab.tongdun.cn:app/tntd.git"
|
|
95
|
+
},
|
|
96
|
+
"keywords": [
|
|
97
|
+
"react",
|
|
98
|
+
"component",
|
|
99
|
+
"components",
|
|
100
|
+
"framework",
|
|
101
|
+
"frontend",
|
|
102
|
+
"react-component",
|
|
103
|
+
"react-ui",
|
|
104
|
+
"tntd"
|
|
105
|
+
],
|
|
106
|
+
"files": [
|
|
107
|
+
"lib",
|
|
108
|
+
"es",
|
|
109
|
+
"themes",
|
|
110
|
+
"LICENSE",
|
|
111
|
+
"README.md"
|
|
112
|
+
],
|
|
113
|
+
"main": "lib/index.js",
|
|
114
|
+
"module": "es/index.js",
|
|
115
|
+
"typings": "lib/index.d.ts"
|
|
117
116
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
require("react");
|
|
8
|
-
var _checkbox = _interopRequireDefault(require("antd/es/checkbox"));
|
|
9
|
-
var _connect = require("../connect");
|
|
10
|
-
var _previewText = require("../preview-text");
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
-
var _default = exports["default"] = (0, _connect.connectReadonlyComponent)(_checkbox["default"].Group, _previewText.PreviewText.Select);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-group.js","sourceRoot":"","sources":["../../src/checkbox/checkbox-group.tsx"],"names":[],"mappings":"AAAA,OAAkC,OAAO,CAAA;AACzC,OAAO,QAAQ,MAAM,kBAAkB,CAAA;AAEvC,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAM7C,eAAe,wBAAwB,CAAC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA","sourcesContent":["import React, { forwardRef } from 'react'\nimport Checkbox from 'antd/es/checkbox'\nimport type { CheckboxGroupProps as AntdCheckboxGroupProps } from 'antd/es/checkbox/Group'\nimport { connectReadonlyComponent } from '../connect'\nimport { PreviewText } from '../preview-text'\n\nexport type CheckboxGroupProps = AntdCheckboxGroupProps & {\n readonly?: boolean\n}\n\nexport default connectReadonlyComponent(Checkbox.Group, PreviewText.Select)\n"]}
|
package/es/radio/radio-group.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
require("react");
|
|
8
|
-
var _radio = _interopRequireDefault(require("antd/es/radio"));
|
|
9
|
-
var _connect = require("../connect");
|
|
10
|
-
var _previewText = _interopRequireDefault(require("../preview-text"));
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
|
-
var _default = exports["default"] = (0, _connect.connectReadonlyComponent)(_radio["default"].Group, _previewText["default"].Select);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../src/radio/radio-group.tsx"],"names":[],"mappings":"AAAA,OAAkB,OAAO,CAAA;AAEzB,OAAO,KAAK,MAAM,eAAe,CAAA;AACjC,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAA;AACrD,OAAO,WAAW,MAAM,iBAAiB,CAAA;AAMzC,eAAe,wBAAwB,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAA","sourcesContent":["import React from 'react'\nimport type { RadioGroupProps as AntdRadioGroupProps } from 'antd/es/radio'\nimport Radio from 'antd/es/radio'\nimport { connectReadonlyComponent } from '../connect'\nimport PreviewText from '../preview-text'\n\nexport type RadioGroupProps = AntdRadioGroupProps & {\n readonly?: boolean\n}\n\nexport default connectReadonlyComponent(Radio.Group, PreviewText.Select)\n"]}
|
package/es/table/total-shower.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.TotalShower = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _utils = require("../utils");
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
-
var TotalShower = exports.TotalShower = function TotalShower(_ref) {
|
|
11
|
-
var total = _ref.total,
|
|
12
|
-
locale = _ref.locale;
|
|
13
|
-
return _react["default"].createElement(_react["default"].Fragment, null, (0, _utils.simpleTemplate)(locale.total, {
|
|
14
|
-
total: total
|
|
15
|
-
}));
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"total-shower.js","sourceRoot":"","sources":["../../src/table/total-shower.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAC1B,KAAK,EACL,MAAM,GAMP,EAAE,EAAE;IACH,OAAO,0CAAG,cAAc,CAAC,MAAM,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAI,CAAA;AACvD,CAAC,CAAA","sourcesContent":["import React from 'react'\n\nimport type { TableProps as AntdTableProps } from 'antd/es/table'\nimport { simpleTemplate } from '../utils'\n\nexport const TotalShower = ({\n total,\n locale,\n}: {\n total: number\n locale: AntdTableProps<unknown>['locale'] & {\n total?: string\n }\n}) => {\n return <>{simpleTemplate(locale.total, { total })}</>\n}\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.simpleTemplate = simpleTemplate;
|
|
7
|
-
/**
|
|
8
|
-
* 简单的模板替换
|
|
9
|
-
*
|
|
10
|
-
* @param template
|
|
11
|
-
* @param data
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
function simpleTemplate(template) {
|
|
15
|
-
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
16
|
-
return template === null || template === void 0 ? void 0 : template.replace(/\${(.*?)}/g, function (match, key) {
|
|
17
|
-
return data[key.trim()].toString();
|
|
18
|
-
});
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"simple-template.js","sourceRoot":"","sources":["../../src/utils/simple-template.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,QAAiB,EAAE,OAAwC,EAAE;IAC1F,OAAO,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,CAAC,YAAY,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAA;AACrF,CAAC","sourcesContent":["/**\n * 简单的模板替换\n *\n * @param template\n * @param data\n * @returns\n */\nexport function simpleTemplate(template?: string, data: Record<string, string | number> = {}) {\n return template?.replace(/\\${(.*?)}/g, (match, key) => data[key.trim()].toString())\n}\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { CheckboxGroupProps as AntdCheckboxGroupProps } from 'antd/lib/checkbox/Group';
|
|
3
|
-
export declare type CheckboxGroupProps = AntdCheckboxGroupProps & {
|
|
4
|
-
readonly?: boolean;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: React.ForwardRefExoticComponent<AntdCheckboxGroupProps & React.RefAttributes<unknown>>;
|
|
7
|
-
export default _default;
|
|
8
|
-
//# sourceMappingURL=checkbox-group.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-group.d.ts","sourceRoot":"","sources":["../../src/checkbox/checkbox-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,EAAE,kBAAkB,IAAI,sBAAsB,EAAE,MAAM,wBAAwB,CAAA;AAI1F,oBAAY,kBAAkB,GAAG,sBAAsB,GAAG;IACxD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;;AAED,wBAA2E"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
require("react");
|
|
8
|
-
var _checkbox = _interopRequireDefault(require("antd/lib/checkbox"));
|
|
9
|
-
var _connect = require("../connect");
|
|
10
|
-
var _previewText = require("../preview-text");
|
|
11
|
-
function _interopRequireDefault(e) {
|
|
12
|
-
return e && e.__esModule ? e : {
|
|
13
|
-
"default": e
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
var _default = exports["default"] = (0, _connect.connectReadonlyComponent)(_checkbox["default"].Group, _previewText.PreviewText.Select);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-group.js","sourceRoot":"","sources":["../../src/checkbox/checkbox-group.tsx"],"names":[],"mappings":";;;;;AAAA,iBAAyC;AACzC,gEAAuC;AAEvC,wCAAqD;AACrD,kDAA6C;AAM7C,kBAAe,IAAA,kCAAwB,EAAC,kBAAQ,CAAC,KAAK,EAAE,0BAAW,CAAC,MAAM,CAAC,CAAA","sourcesContent":["import React, { forwardRef } from 'react'\nimport Checkbox from 'antd/lib/checkbox'\nimport type { CheckboxGroupProps as AntdCheckboxGroupProps } from 'antd/lib/checkbox/Group'\nimport { connectReadonlyComponent } from '../connect'\nimport { PreviewText } from '../preview-text'\n\nexport type CheckboxGroupProps = AntdCheckboxGroupProps & {\n readonly?: boolean\n}\n\nexport default connectReadonlyComponent(Checkbox.Group, PreviewText.Select)\n"]}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { RadioGroupProps as AntdRadioGroupProps } from 'antd/lib/radio';
|
|
3
|
-
export declare type RadioGroupProps = AntdRadioGroupProps & {
|
|
4
|
-
readonly?: boolean;
|
|
5
|
-
};
|
|
6
|
-
declare const _default: React.ForwardRefExoticComponent<AntdRadioGroupProps & React.RefAttributes<unknown>>;
|
|
7
|
-
export default _default;
|
|
8
|
-
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../src/radio/radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,eAAe,IAAI,mBAAmB,EAAE,MAAM,eAAe,CAAA;AAK3E,oBAAY,eAAe,GAAG,mBAAmB,GAAG;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;;AAED,wBAAwE"}
|
package/lib/radio/radio-group.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
require("react");
|
|
8
|
-
var _radio = _interopRequireDefault(require("antd/lib/radio"));
|
|
9
|
-
var _connect = require("../connect");
|
|
10
|
-
var _previewText = _interopRequireDefault(require("../preview-text"));
|
|
11
|
-
function _interopRequireDefault(e) {
|
|
12
|
-
return e && e.__esModule ? e : {
|
|
13
|
-
"default": e
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
var _default = exports["default"] = (0, _connect.connectReadonlyComponent)(_radio["default"].Group, _previewText["default"].Select);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../src/radio/radio-group.tsx"],"names":[],"mappings":";;;;;AAAA,iBAAyB;AAEzB,0DAAiC;AACjC,wCAAqD;AACrD,mEAAyC;AAMzC,kBAAe,IAAA,kCAAwB,EAAC,eAAK,CAAC,KAAK,EAAE,sBAAW,CAAC,MAAM,CAAC,CAAA","sourcesContent":["import React from 'react'\nimport type { RadioGroupProps as AntdRadioGroupProps } from 'antd/lib/radio'\nimport Radio from 'antd/lib/radio'\nimport { connectReadonlyComponent } from '../connect'\nimport PreviewText from '../preview-text'\n\nexport type RadioGroupProps = AntdRadioGroupProps & {\n readonly?: boolean\n}\n\nexport default connectReadonlyComponent(Radio.Group, PreviewText.Select)\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TableProps as AntdTableProps } from 'antd/lib/table';
|
|
3
|
-
export declare const TotalShower: ({ total, locale, }: {
|
|
4
|
-
total: number;
|
|
5
|
-
locale: import("antd/lib/table").TableLocale & {
|
|
6
|
-
total?: string | undefined;
|
|
7
|
-
};
|
|
8
|
-
}) => React.JSX.Element;
|
|
9
|
-
//# sourceMappingURL=total-shower.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"total-shower.d.ts","sourceRoot":"","sources":["../../src/table/total-shower.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AAGjE,eAAO,MAAM,WAAW;WAIf,MAAM;;;;uBAMd,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.TotalShower = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _utils = require("../utils");
|
|
9
|
-
function _interopRequireDefault(e) {
|
|
10
|
-
return e && e.__esModule ? e : {
|
|
11
|
-
"default": e
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
var TotalShower = exports.TotalShower = function TotalShower(_ref) {
|
|
15
|
-
var total = _ref.total,
|
|
16
|
-
locale = _ref.locale;
|
|
17
|
-
return _react["default"].createElement(_react["default"].Fragment, null, (0, _utils.simpleTemplate)(locale.total, {
|
|
18
|
-
total: total
|
|
19
|
-
}));
|
|
20
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"total-shower.js","sourceRoot":"","sources":["../../src/table/total-shower.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAAyB;AAGzB,oCAAyC;AAElC,MAAM,WAAW,GAAG,CAAC,EAC1B,KAAK,EACL,MAAM,GAMP,EAAE,EAAE;IACH,OAAO,8DAAG,IAAA,sBAAc,EAAC,MAAM,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,CAAC,CAAI,CAAA;AACvD,CAAC,CAAA;AAVY,QAAA,WAAW,eAUvB","sourcesContent":["import React from 'react'\n\nimport type { TableProps as AntdTableProps } from 'antd/lib/table'\nimport { simpleTemplate } from '../utils'\n\nexport const TotalShower = ({\n total,\n locale,\n}: {\n total: number\n locale: AntdTableProps<unknown>['locale'] & {\n total?: string\n }\n}) => {\n return <>{simpleTemplate(locale.total, { total })}</>\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"simple-template.d.ts","sourceRoot":"","sources":["../../src/utils/simple-template.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAM,sBAE3F"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.simpleTemplate = simpleTemplate;
|
|
7
|
-
/**
|
|
8
|
-
* 简单的模板替换
|
|
9
|
-
*
|
|
10
|
-
* @param template
|
|
11
|
-
* @param data
|
|
12
|
-
* @returns
|
|
13
|
-
*/
|
|
14
|
-
function simpleTemplate(template) {
|
|
15
|
-
var data = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
16
|
-
return template === null || template === void 0 ? void 0 : template.replace(/\${(.*?)}/g, function (match, key) {
|
|
17
|
-
return data[key.trim()].toString();
|
|
18
|
-
});
|
|
19
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"simple-template.js","sourceRoot":"","sources":["../../src/utils/simple-template.ts"],"names":[],"mappings":";;;AAAA;;;;;;GAMG;AACH,SAAgB,cAAc,CAAC,QAAiB,EAAE,OAAwC,EAAE;IAC1F,OAAO,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,OAAO,CAAC,YAAY,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAA;AACrF,CAAC;AAFD,wCAEC","sourcesContent":["/**\n * 简单的模板替换\n *\n * @param template\n * @param data\n * @returns\n */\nexport function simpleTemplate(template?: string, data: Record<string, string | number> = {}) {\n return template?.replace(/\\${(.*?)}/g, (match, key) => data[key.trim()].toString())\n}\n"]}
|