@teamix/pro 2.0.0-beta.8 → 2.0.0-beta.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/es/index.d.ts +49 -1
- package/es/index.js +18 -2
- package/lib/index.d.ts +49 -1
- package/lib/index.js +66 -39
- package/package.json +1 -1
package/es/index.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import './global.scss';
|
2
|
-
declare const version = "2.0.0-beta.
|
3
|
+
declare const version = "2.0.0-beta.9";
|
3
4
|
export * from '@teamix/pro-action';
|
4
5
|
export * from '@teamix/pro-card';
|
5
6
|
export * from '@teamix/pro-field';
|
@@ -10,4 +11,51 @@ export * from '@teamix/pro-skeleton';
|
|
10
11
|
export * from '@teamix/pro-table';
|
11
12
|
export * from '@teamix/provider';
|
12
13
|
export * from '@teamix/utils';
|
14
|
+
export declare const ProAction: {
|
15
|
+
(props: import("@teamix/pro-action").ProActionProps): JSX.Element;
|
16
|
+
ProActionGroup: typeof import("@teamix/pro-action").ProActionGroup;
|
17
|
+
};
|
18
|
+
export declare const ProCard: {
|
19
|
+
(props: import("@teamix/pro-card").ProCardProps): JSX.Element;
|
20
|
+
defaultProps: {
|
21
|
+
bordered: boolean;
|
22
|
+
spacing: number;
|
23
|
+
direction: string;
|
24
|
+
};
|
25
|
+
Divider: {
|
26
|
+
(props: import("react").HTMLAttributes<HTMLElement>): JSX.Element;
|
27
|
+
isProCardDivider: boolean;
|
28
|
+
};
|
29
|
+
Selectable: {
|
30
|
+
(props: import("packages/card/lib/components/selectable").ProCardSelectableProps): JSX.Element;
|
31
|
+
defaultProps: {
|
32
|
+
hoveredShadow: boolean;
|
33
|
+
};
|
34
|
+
isProCard: boolean;
|
35
|
+
};
|
36
|
+
Tab: {
|
37
|
+
(props: import("@alifd/next/types/tab").TabProps): JSX.Element;
|
38
|
+
Item: typeof import("@alifd/next/types/tab").Item;
|
39
|
+
};
|
40
|
+
isProCard: boolean;
|
41
|
+
};
|
42
|
+
export declare const ProField: import("react").ForwardRefExoticComponent<import("@teamix/pro-field").ProFieldProps> & {
|
43
|
+
registerComponent?: ((components: import("@teamix/pro-field").IComponent) => void) | undefined;
|
44
|
+
};
|
45
|
+
export declare const ProForm: import("react").FC<import("@teamix/pro-form").ProFormProps>;
|
46
|
+
export declare const ProInfo: {
|
47
|
+
(props: import("@teamix/pro-info").ProInfoProps): JSX.Element;
|
48
|
+
Group: import("react").FC<import("@teamix/pro-info").ProInfoGroupProps>;
|
49
|
+
ProInfoGroup: import("react").FC<import("@teamix/pro-info").ProInfoGroupProps>;
|
50
|
+
};
|
51
|
+
export declare const ProPageContainer: {
|
52
|
+
(props: import("@teamix/pro-page-container").ProPageContainerProps): JSX.Element;
|
53
|
+
FixedFooter: (props: import("packages/page-container/lib/fixed-footer").ProPageContainerFixedFooterProps) => JSX.Element | null;
|
54
|
+
Tab: {
|
55
|
+
(props: import("packages/page-container/lib/tab").ProPageContainerTabProps): JSX.Element;
|
56
|
+
Item: typeof import("@alifd/next/types/tab").Item;
|
57
|
+
};
|
58
|
+
};
|
59
|
+
export declare const ProTable: (props: import("@teamix/pro-table").ProTableProps) => JSX.Element;
|
60
|
+
export declare const TeamixProProvider: import("react").FC<import("@teamix/provider").TeamixProProviderProps>;
|
13
61
|
export default version;
|
package/es/index.js
CHANGED
@@ -1,17 +1,25 @@
|
|
1
1
|
var _window;
|
2
2
|
// import ProLayout from './layout';
|
3
3
|
// import utils from './utils';
|
4
|
-
|
4
|
+
import ProActionComponent from '@teamix/pro-action';
|
5
|
+
import ProCardComponent from '@teamix/pro-card';
|
6
|
+
import ProFieldComponent from '@teamix/pro-field';
|
7
|
+
import ProFormComponent from '@teamix/pro-form';
|
8
|
+
import ProInfoComponent from '@teamix/pro-info';
|
9
|
+
import ProPageContainerComponent from '@teamix/pro-page-container';
|
10
|
+
import ProTableComponent from '@teamix/pro-table';
|
11
|
+
import TeamixProProviderComponent from '@teamix/provider';
|
5
12
|
import TeamixIcon from '@teamix/icon';
|
6
13
|
// import { ProTimeline } from '../../timeline';
|
7
14
|
import * as utils from '@teamix/utils';
|
8
15
|
import "./global.scss";
|
16
|
+
|
9
17
|
// 设置图标源
|
10
18
|
// @ts-ignore
|
11
19
|
if (!((_window = window) !== null && _window !== void 0 && _window.TEAMIXPRO_WITHOUT_ICON)) {
|
12
20
|
TeamixIcon.setConfig(utils.getTeamixIconConfig());
|
13
21
|
}
|
14
|
-
var version = '2.0.0-beta.
|
22
|
+
var version = '2.0.0-beta.9';
|
15
23
|
export * from '@teamix/pro-action';
|
16
24
|
export * from '@teamix/pro-card';
|
17
25
|
export * from '@teamix/pro-field';
|
@@ -24,6 +32,14 @@ export * from '@teamix/pro-table';
|
|
24
32
|
export * from '@teamix/provider';
|
25
33
|
// export * from '../../timeline';
|
26
34
|
export * from '@teamix/utils';
|
35
|
+
export var ProAction = ProActionComponent;
|
36
|
+
export var ProCard = ProCardComponent;
|
37
|
+
export var ProField = ProFieldComponent;
|
38
|
+
export var ProForm = ProFormComponent;
|
39
|
+
export var ProInfo = ProInfoComponent;
|
40
|
+
export var ProPageContainer = ProPageContainerComponent;
|
41
|
+
export var ProTable = ProTableComponent;
|
42
|
+
export var TeamixProProvider = TeamixProProviderComponent;
|
27
43
|
|
28
44
|
// By TeamixTest
|
29
45
|
window.postMessage({
|
package/lib/index.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import './global.scss';
|
2
|
-
declare const version = "2.0.0-beta.
|
3
|
+
declare const version = "2.0.0-beta.9";
|
3
4
|
export * from '@teamix/pro-action';
|
4
5
|
export * from '@teamix/pro-card';
|
5
6
|
export * from '@teamix/pro-field';
|
@@ -10,4 +11,51 @@ export * from '@teamix/pro-skeleton';
|
|
10
11
|
export * from '@teamix/pro-table';
|
11
12
|
export * from '@teamix/provider';
|
12
13
|
export * from '@teamix/utils';
|
14
|
+
export declare const ProAction: {
|
15
|
+
(props: import("@teamix/pro-action").ProActionProps): JSX.Element;
|
16
|
+
ProActionGroup: typeof import("@teamix/pro-action").ProActionGroup;
|
17
|
+
};
|
18
|
+
export declare const ProCard: {
|
19
|
+
(props: import("@teamix/pro-card").ProCardProps): JSX.Element;
|
20
|
+
defaultProps: {
|
21
|
+
bordered: boolean;
|
22
|
+
spacing: number;
|
23
|
+
direction: string;
|
24
|
+
};
|
25
|
+
Divider: {
|
26
|
+
(props: import("react").HTMLAttributes<HTMLElement>): JSX.Element;
|
27
|
+
isProCardDivider: boolean;
|
28
|
+
};
|
29
|
+
Selectable: {
|
30
|
+
(props: import("packages/card/lib/components/selectable").ProCardSelectableProps): JSX.Element;
|
31
|
+
defaultProps: {
|
32
|
+
hoveredShadow: boolean;
|
33
|
+
};
|
34
|
+
isProCard: boolean;
|
35
|
+
};
|
36
|
+
Tab: {
|
37
|
+
(props: import("@alifd/next/types/tab").TabProps): JSX.Element;
|
38
|
+
Item: typeof import("@alifd/next/types/tab").Item;
|
39
|
+
};
|
40
|
+
isProCard: boolean;
|
41
|
+
};
|
42
|
+
export declare const ProField: import("react").ForwardRefExoticComponent<import("@teamix/pro-field").ProFieldProps> & {
|
43
|
+
registerComponent?: ((components: import("@teamix/pro-field").IComponent) => void) | undefined;
|
44
|
+
};
|
45
|
+
export declare const ProForm: import("react").FC<import("@teamix/pro-form").ProFormProps>;
|
46
|
+
export declare const ProInfo: {
|
47
|
+
(props: import("@teamix/pro-info").ProInfoProps): JSX.Element;
|
48
|
+
Group: import("react").FC<import("@teamix/pro-info").ProInfoGroupProps>;
|
49
|
+
ProInfoGroup: import("react").FC<import("@teamix/pro-info").ProInfoGroupProps>;
|
50
|
+
};
|
51
|
+
export declare const ProPageContainer: {
|
52
|
+
(props: import("@teamix/pro-page-container").ProPageContainerProps): JSX.Element;
|
53
|
+
FixedFooter: (props: import("packages/page-container/lib/fixed-footer").ProPageContainerFixedFooterProps) => JSX.Element | null;
|
54
|
+
Tab: {
|
55
|
+
(props: import("packages/page-container/lib/tab").ProPageContainerTabProps): JSX.Element;
|
56
|
+
Item: typeof import("@alifd/next/types/tab").Item;
|
57
|
+
};
|
58
|
+
};
|
59
|
+
export declare const ProTable: (props: import("@teamix/pro-table").ProTableProps) => JSX.Element;
|
60
|
+
export declare const TeamixProProvider: import("react").FC<import("@teamix/provider").TeamixProProviderProps>;
|
13
61
|
export default version;
|
package/lib/index.js
CHANGED
@@ -4,23 +4,18 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
5
5
|
value: true
|
6
6
|
});
|
7
|
-
var _exportNames = {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
}
|
20
|
-
});
|
21
|
-
});
|
22
|
-
require("./global.scss");
|
23
|
-
var _proAction = require("@teamix/pro-action");
|
7
|
+
var _exportNames = {
|
8
|
+
ProAction: true,
|
9
|
+
ProCard: true,
|
10
|
+
ProField: true,
|
11
|
+
ProForm: true,
|
12
|
+
ProInfo: true,
|
13
|
+
ProPageContainer: true,
|
14
|
+
ProTable: true,
|
15
|
+
TeamixProProvider: true
|
16
|
+
};
|
17
|
+
exports.default = exports.TeamixProProvider = exports.ProTable = exports.ProPageContainer = exports.ProInfo = exports.ProForm = exports.ProField = exports.ProCard = exports.ProAction = void 0;
|
18
|
+
var _proAction = _interopRequireWildcard(require("@teamix/pro-action"));
|
24
19
|
Object.keys(_proAction).forEach(function (key) {
|
25
20
|
if (key === "default" || key === "__esModule") return;
|
26
21
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -32,7 +27,7 @@ Object.keys(_proAction).forEach(function (key) {
|
|
32
27
|
}
|
33
28
|
});
|
34
29
|
});
|
35
|
-
var _proCard = require("@teamix/pro-card");
|
30
|
+
var _proCard = _interopRequireWildcard(require("@teamix/pro-card"));
|
36
31
|
Object.keys(_proCard).forEach(function (key) {
|
37
32
|
if (key === "default" || key === "__esModule") return;
|
38
33
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -44,7 +39,7 @@ Object.keys(_proCard).forEach(function (key) {
|
|
44
39
|
}
|
45
40
|
});
|
46
41
|
});
|
47
|
-
var _proField = require("@teamix/pro-field");
|
42
|
+
var _proField = _interopRequireWildcard(require("@teamix/pro-field"));
|
48
43
|
Object.keys(_proField).forEach(function (key) {
|
49
44
|
if (key === "default" || key === "__esModule") return;
|
50
45
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -56,7 +51,7 @@ Object.keys(_proField).forEach(function (key) {
|
|
56
51
|
}
|
57
52
|
});
|
58
53
|
});
|
59
|
-
var _proForm = require("@teamix/pro-form");
|
54
|
+
var _proForm = _interopRequireWildcard(require("@teamix/pro-form"));
|
60
55
|
Object.keys(_proForm).forEach(function (key) {
|
61
56
|
if (key === "default" || key === "__esModule") return;
|
62
57
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -68,7 +63,7 @@ Object.keys(_proForm).forEach(function (key) {
|
|
68
63
|
}
|
69
64
|
});
|
70
65
|
});
|
71
|
-
var _proInfo = require("@teamix/pro-info");
|
66
|
+
var _proInfo = _interopRequireWildcard(require("@teamix/pro-info"));
|
72
67
|
Object.keys(_proInfo).forEach(function (key) {
|
73
68
|
if (key === "default" || key === "__esModule") return;
|
74
69
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
@@ -80,65 +75,97 @@ Object.keys(_proInfo).forEach(function (key) {
|
|
80
75
|
}
|
81
76
|
});
|
82
77
|
});
|
83
|
-
var
|
84
|
-
|
78
|
+
var _proPageContainer = _interopRequireDefault(require("@teamix/pro-page-container"));
|
79
|
+
var _proTable = _interopRequireWildcard(require("@teamix/pro-table"));
|
80
|
+
Object.keys(_proTable).forEach(function (key) {
|
85
81
|
if (key === "default" || key === "__esModule") return;
|
86
82
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
87
|
-
if (key in exports && exports[key] ===
|
83
|
+
if (key in exports && exports[key] === _proTable[key]) return;
|
88
84
|
Object.defineProperty(exports, key, {
|
89
85
|
enumerable: true,
|
90
86
|
get: function get() {
|
91
|
-
return
|
87
|
+
return _proTable[key];
|
92
88
|
}
|
93
89
|
});
|
94
90
|
});
|
95
|
-
var
|
96
|
-
Object.keys(
|
91
|
+
var _provider = _interopRequireWildcard(require("@teamix/provider"));
|
92
|
+
Object.keys(_provider).forEach(function (key) {
|
97
93
|
if (key === "default" || key === "__esModule") return;
|
98
94
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
99
|
-
if (key in exports && exports[key] ===
|
95
|
+
if (key in exports && exports[key] === _provider[key]) return;
|
100
96
|
Object.defineProperty(exports, key, {
|
101
97
|
enumerable: true,
|
102
98
|
get: function get() {
|
103
|
-
return
|
99
|
+
return _provider[key];
|
104
100
|
}
|
105
101
|
});
|
106
102
|
});
|
107
|
-
var
|
108
|
-
|
103
|
+
var _icon = _interopRequireDefault(require("@teamix/icon"));
|
104
|
+
var utils = _interopRequireWildcard(require("@teamix/utils"));
|
105
|
+
Object.keys(utils).forEach(function (key) {
|
109
106
|
if (key === "default" || key === "__esModule") return;
|
110
107
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
111
|
-
if (key in exports && exports[key] ===
|
108
|
+
if (key in exports && exports[key] === utils[key]) return;
|
112
109
|
Object.defineProperty(exports, key, {
|
113
110
|
enumerable: true,
|
114
111
|
get: function get() {
|
115
|
-
return
|
112
|
+
return utils[key];
|
116
113
|
}
|
117
114
|
});
|
118
115
|
});
|
119
|
-
|
120
|
-
|
116
|
+
require("./global.scss");
|
117
|
+
var _proPageHeader = require("@teamix/pro-page-header");
|
118
|
+
Object.keys(_proPageHeader).forEach(function (key) {
|
121
119
|
if (key === "default" || key === "__esModule") return;
|
122
120
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
123
|
-
if (key in exports && exports[key] ===
|
121
|
+
if (key in exports && exports[key] === _proPageHeader[key]) return;
|
124
122
|
Object.defineProperty(exports, key, {
|
125
123
|
enumerable: true,
|
126
124
|
get: function get() {
|
127
|
-
return
|
125
|
+
return _proPageHeader[key];
|
126
|
+
}
|
127
|
+
});
|
128
|
+
});
|
129
|
+
var _proSkeleton = require("@teamix/pro-skeleton");
|
130
|
+
Object.keys(_proSkeleton).forEach(function (key) {
|
131
|
+
if (key === "default" || key === "__esModule") return;
|
132
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
133
|
+
if (key in exports && exports[key] === _proSkeleton[key]) return;
|
134
|
+
Object.defineProperty(exports, key, {
|
135
|
+
enumerable: true,
|
136
|
+
get: function get() {
|
137
|
+
return _proSkeleton[key];
|
128
138
|
}
|
129
139
|
});
|
130
140
|
});
|
131
141
|
var _window;
|
142
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
132
143
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
133
144
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
134
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
135
145
|
// 设置图标源
|
136
146
|
// @ts-ignore
|
137
147
|
if (!((_window = window) !== null && _window !== void 0 && _window.TEAMIXPRO_WITHOUT_ICON)) {
|
138
148
|
_icon.default.setConfig(utils.getTeamixIconConfig());
|
139
149
|
}
|
140
|
-
var version = '2.0.0-beta.
|
150
|
+
var version = '2.0.0-beta.9';
|
151
|
+
var ProAction = _proAction.default;
|
152
|
+
exports.ProAction = ProAction;
|
153
|
+
var ProCard = _proCard.default;
|
154
|
+
exports.ProCard = ProCard;
|
155
|
+
var ProField = _proField.default;
|
156
|
+
exports.ProField = ProField;
|
157
|
+
var ProForm = _proForm.default;
|
158
|
+
exports.ProForm = ProForm;
|
159
|
+
var ProInfo = _proInfo.default;
|
160
|
+
exports.ProInfo = ProInfo;
|
161
|
+
var ProPageContainer = _proPageContainer.default;
|
162
|
+
exports.ProPageContainer = ProPageContainer;
|
163
|
+
var ProTable = _proTable.default;
|
164
|
+
exports.ProTable = ProTable;
|
165
|
+
var TeamixProProvider = _provider.default;
|
166
|
+
|
141
167
|
// By TeamixTest
|
168
|
+
exports.TeamixProProvider = TeamixProProvider;
|
142
169
|
window.postMessage({
|
143
170
|
source: 'teamix-test-devtools',
|
144
171
|
url: window.location.href,
|