@teamix/pro 2.0.0-beta.1 → 2.0.0-beta.10

Sign up to get free protection for your applications and to get access to all the features.
package/es/index.d.ts CHANGED
@@ -1,23 +1,26 @@
1
- import TeamixIcon from '@teamix/icon';
2
- import ProAction from '../../actions/src';
1
+ import ProAction from '@teamix/pro-action';
2
+ import ProCard from '@teamix/pro-card';
3
3
  import ProField from '@teamix/pro-field';
4
- import ProForm from '@teamix/pro-field';
4
+ import ProForm from '@teamix/pro-form';
5
5
  import ProInfo from '@teamix/pro-info';
6
6
  import ProPageContainer from '@teamix/pro-page-container';
7
- import ProPageHeader from '@teamix/pro-page-header';
8
7
  import ProTable from '@teamix/pro-table';
8
+ import * as hooks from '@teamix/hooks';
9
+ import TeamixProProvider from '@teamix/provider';
9
10
  import * as utils from '@teamix/utils';
10
11
  import './global.scss';
11
- import hooks from './hooks';
12
- declare const version = "1.5.18";
12
+ import ProSkeleton from '@teamix/pro-skeleton';
13
+ declare const version = "2.0.0-beta.10";
13
14
  export * from '@teamix/pro-action';
15
+ export * from '@teamix/pro-card';
14
16
  export * from '@teamix/pro-field';
15
17
  export * from '@teamix/pro-form';
16
18
  export * from '@teamix/pro-info';
17
19
  export * from '@teamix/pro-page-header';
18
- export * from '@teamix/pro-page-header';
19
20
  export * from '@teamix/pro-skeleton';
20
21
  export * from '@teamix/pro-table';
22
+ export * from '@teamix/provider';
21
23
  export * from '@teamix/utils';
22
- export { version, ProAction, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProTable, TeamixIcon, hooks, utils, };
24
+ export * from '@teamix/hooks';
25
+ export { ProCard, ProSkeleton, hooks, ProAction, ProField, ProForm, ProPageContainer, ProInfo, ProTable, TeamixProProvider, utils };
23
26
  export default version;
package/es/index.js CHANGED
@@ -1,57 +1,54 @@
1
- var _window;
2
1
  // import ProLayout from './layout';
3
2
  // import utils from './utils';
4
-
5
- import TeamixIcon from '@teamix/icon';
6
- import ProAction from "../../actions/src";
3
+ import ProAction from '@teamix/pro-action';
4
+ import ProCard from '@teamix/pro-card';
7
5
  import ProField from '@teamix/pro-field';
8
- import ProForm from '@teamix/pro-field';
6
+ import ProForm from '@teamix/pro-form';
9
7
  import ProInfo from '@teamix/pro-info';
10
8
  import ProPageContainer from '@teamix/pro-page-container';
11
- import ProPageHeader from '@teamix/pro-page-header';
12
9
  import ProTable from '@teamix/pro-table';
10
+ import * as hooks from '@teamix/hooks';
11
+ import TeamixProProvider from '@teamix/provider';
12
+
13
+ // import TeamixIcon from '@teamix/icon';
13
14
  // import { ProTimeline } from '../../timeline';
14
15
  import * as utils from '@teamix/utils';
15
16
  import "./global.scss";
16
- import hooks from "./hooks";
17
+ import ProSkeleton from '@teamix/pro-skeleton';
17
18
 
18
19
  // 设置图标源
19
20
  // @ts-ignore
20
- if (!((_window = window) !== null && _window !== void 0 && _window.TEAMIXPRO_WITHOUT_ICON)) {
21
- TeamixIcon.setConfig(utils.getTeamixIconConfig());
22
- }
23
- var version = '1.5.18';
21
+ // if (!window?.TEAMIXPRO_WITHOUT_ICON) {
22
+ // TeamixIcon.setConfig(utils.getTeamixIconConfig());
23
+ // }
24
+
25
+ var version = '2.0.0-beta.10';
24
26
  export * from '@teamix/pro-action';
27
+ export * from '@teamix/pro-card';
25
28
  export * from '@teamix/pro-field';
26
29
  export * from '@teamix/pro-form';
27
30
  export * from '@teamix/pro-info';
28
31
  export * from '@teamix/pro-page-header';
29
- export * from '@teamix/pro-page-header';
30
32
  // export * from '@teamix/pro-sidebar';
31
33
  export * from '@teamix/pro-skeleton';
32
34
  export * from '@teamix/pro-table';
35
+ export * from '@teamix/provider';
33
36
  // export * from '../../timeline';
34
37
  export * from '@teamix/utils';
35
- export { version, ProAction, ProField, ProForm, ProInfo,
36
- // ProLayout,
37
- ProPageContainer, ProPageHeader,
38
- // ProSkeleton,
39
- ProTable,
40
- // ProSidebar,
41
- // ProTimeline,
42
- TeamixIcon, hooks,
43
- // nocode,
44
- // templates,
45
- utils };
46
-
38
+ export * from '@teamix/hooks';
39
+ export { ProCard, ProSkeleton, hooks, ProAction, ProField, ProForm, ProPageContainer, ProInfo, ProTable, TeamixProProvider, utils };
47
40
  // By TeamixTest
48
- window.postMessage({
49
- source: 'teamix-test-devtools',
50
- url: window.location.href,
51
- event: 'getModuleInfo',
52
- moduleName: '@teamix/pro',
53
- moduleVersion: version,
54
- moduleType: 'TeamixPro',
55
- componentName: 'TeamixPro'
56
- }, '*');
41
+ // window.postMessage(
42
+ // {
43
+ // source: 'teamix-test-devtools',
44
+ // url: window.location.href,
45
+ // event: 'getModuleInfo',
46
+ // moduleName: '@teamix/pro',
47
+ // moduleVersion: version,
48
+ // moduleType: 'TeamixPro',
49
+ // componentName: 'TeamixPro',
50
+ // },
51
+ // '*',
52
+ // );
53
+
57
54
  export default version;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import './index.scss';
3
2
  export declare const DetailPage: () => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import './index.scss';
3
2
  export declare const FormPage: () => JSX.Element;
package/lib/index.d.ts CHANGED
@@ -1,23 +1,26 @@
1
- import TeamixIcon from '@teamix/icon';
2
- import ProAction from '../../actions/src';
1
+ import ProAction from '@teamix/pro-action';
2
+ import ProCard from '@teamix/pro-card';
3
3
  import ProField from '@teamix/pro-field';
4
- import ProForm from '@teamix/pro-field';
4
+ import ProForm from '@teamix/pro-form';
5
5
  import ProInfo from '@teamix/pro-info';
6
6
  import ProPageContainer from '@teamix/pro-page-container';
7
- import ProPageHeader from '@teamix/pro-page-header';
8
7
  import ProTable from '@teamix/pro-table';
8
+ import * as hooks from '@teamix/hooks';
9
+ import TeamixProProvider from '@teamix/provider';
9
10
  import * as utils from '@teamix/utils';
10
11
  import './global.scss';
11
- import hooks from './hooks';
12
- declare const version = "1.5.18";
12
+ import ProSkeleton from '@teamix/pro-skeleton';
13
+ declare const version = "2.0.0-beta.10";
13
14
  export * from '@teamix/pro-action';
15
+ export * from '@teamix/pro-card';
14
16
  export * from '@teamix/pro-field';
15
17
  export * from '@teamix/pro-form';
16
18
  export * from '@teamix/pro-info';
17
19
  export * from '@teamix/pro-page-header';
18
- export * from '@teamix/pro-page-header';
19
20
  export * from '@teamix/pro-skeleton';
20
21
  export * from '@teamix/pro-table';
22
+ export * from '@teamix/provider';
21
23
  export * from '@teamix/utils';
22
- export { version, ProAction, ProField, ProForm, ProInfo, ProPageContainer, ProPageHeader, ProTable, TeamixIcon, hooks, utils, };
24
+ export * from '@teamix/hooks';
25
+ export { ProCard, ProSkeleton, hooks, ProAction, ProField, ProForm, ProPageContainer, ProInfo, ProTable, TeamixProProvider, utils };
23
26
  export default version;
package/lib/index.js CHANGED
@@ -5,22 +5,28 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  var _exportNames = {
8
- version: true,
9
- TeamixIcon: true,
10
8
  ProAction: true,
9
+ ProCard: true,
11
10
  ProField: true,
12
11
  ProForm: true,
13
12
  ProInfo: true,
14
13
  ProPageContainer: true,
15
- ProPageHeader: true,
16
14
  ProTable: true,
15
+ hooks: true,
16
+ TeamixProProvider: true,
17
17
  utils: true,
18
- hooks: true
18
+ ProSkeleton: true
19
19
  };
20
20
  Object.defineProperty(exports, "ProAction", {
21
21
  enumerable: true,
22
22
  get: function get() {
23
- return _src.default;
23
+ return _proAction.default;
24
+ }
25
+ });
26
+ Object.defineProperty(exports, "ProCard", {
27
+ enumerable: true,
28
+ get: function get() {
29
+ return _proCard.default;
24
30
  }
25
31
  });
26
32
  Object.defineProperty(exports, "ProField", {
@@ -32,7 +38,7 @@ Object.defineProperty(exports, "ProField", {
32
38
  Object.defineProperty(exports, "ProForm", {
33
39
  enumerable: true,
34
40
  get: function get() {
35
- return _proField.default;
41
+ return _proForm.default;
36
42
  }
37
43
  });
38
44
  Object.defineProperty(exports, "ProInfo", {
@@ -47,10 +53,10 @@ Object.defineProperty(exports, "ProPageContainer", {
47
53
  return _proPageContainer.default;
48
54
  }
49
55
  });
50
- Object.defineProperty(exports, "ProPageHeader", {
56
+ Object.defineProperty(exports, "ProSkeleton", {
51
57
  enumerable: true,
52
58
  get: function get() {
53
- return _proPageHeader.default;
59
+ return _proSkeleton.default;
54
60
  }
55
61
  });
56
62
  Object.defineProperty(exports, "ProTable", {
@@ -59,22 +65,37 @@ Object.defineProperty(exports, "ProTable", {
59
65
  return _proTable.default;
60
66
  }
61
67
  });
62
- Object.defineProperty(exports, "TeamixIcon", {
68
+ Object.defineProperty(exports, "TeamixProProvider", {
63
69
  enumerable: true,
64
70
  get: function get() {
65
- return _icon.default;
71
+ return _provider.default;
66
72
  }
67
73
  });
68
- exports.default = void 0;
69
- Object.defineProperty(exports, "hooks", {
70
- enumerable: true,
71
- get: function get() {
72
- return _hooks.default;
73
- }
74
+ exports.utils = exports.hooks = exports.default = void 0;
75
+ var _proAction = _interopRequireWildcard(require("@teamix/pro-action"));
76
+ Object.keys(_proAction).forEach(function (key) {
77
+ if (key === "default" || key === "__esModule") return;
78
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
79
+ if (key in exports && exports[key] === _proAction[key]) return;
80
+ Object.defineProperty(exports, key, {
81
+ enumerable: true,
82
+ get: function get() {
83
+ return _proAction[key];
84
+ }
85
+ });
86
+ });
87
+ var _proCard = _interopRequireWildcard(require("@teamix/pro-card"));
88
+ Object.keys(_proCard).forEach(function (key) {
89
+ if (key === "default" || key === "__esModule") return;
90
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
91
+ if (key in exports && exports[key] === _proCard[key]) return;
92
+ Object.defineProperty(exports, key, {
93
+ enumerable: true,
94
+ get: function get() {
95
+ return _proCard[key];
96
+ }
97
+ });
74
98
  });
75
- exports.version = exports.utils = void 0;
76
- var _icon = _interopRequireDefault(require("@teamix/icon"));
77
- var _src = _interopRequireDefault(require("../../actions/src"));
78
99
  var _proField = _interopRequireWildcard(require("@teamix/pro-field"));
79
100
  Object.keys(_proField).forEach(function (key) {
80
101
  if (key === "default" || key === "__esModule") return;
@@ -87,31 +108,31 @@ Object.keys(_proField).forEach(function (key) {
87
108
  }
88
109
  });
89
110
  });
90
- var _proInfo = _interopRequireWildcard(require("@teamix/pro-info"));
91
- Object.keys(_proInfo).forEach(function (key) {
111
+ var _proForm = _interopRequireWildcard(require("@teamix/pro-form"));
112
+ Object.keys(_proForm).forEach(function (key) {
92
113
  if (key === "default" || key === "__esModule") return;
93
114
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
94
- if (key in exports && exports[key] === _proInfo[key]) return;
115
+ if (key in exports && exports[key] === _proForm[key]) return;
95
116
  Object.defineProperty(exports, key, {
96
117
  enumerable: true,
97
118
  get: function get() {
98
- return _proInfo[key];
119
+ return _proForm[key];
99
120
  }
100
121
  });
101
122
  });
102
- var _proPageContainer = _interopRequireDefault(require("@teamix/pro-page-container"));
103
- var _proPageHeader = _interopRequireWildcard(require("@teamix/pro-page-header"));
104
- Object.keys(_proPageHeader).forEach(function (key) {
123
+ var _proInfo = _interopRequireWildcard(require("@teamix/pro-info"));
124
+ Object.keys(_proInfo).forEach(function (key) {
105
125
  if (key === "default" || key === "__esModule") return;
106
126
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
107
- if (key in exports && exports[key] === _proPageHeader[key]) return;
127
+ if (key in exports && exports[key] === _proInfo[key]) return;
108
128
  Object.defineProperty(exports, key, {
109
129
  enumerable: true,
110
130
  get: function get() {
111
- return _proPageHeader[key];
131
+ return _proInfo[key];
112
132
  }
113
133
  });
114
134
  });
135
+ var _proPageContainer = _interopRequireDefault(require("@teamix/pro-page-container"));
115
136
  var _proTable = _interopRequireWildcard(require("@teamix/pro-table"));
116
137
  Object.keys(_proTable).forEach(function (key) {
117
138
  if (key === "default" || key === "__esModule") return;
@@ -124,46 +145,46 @@ Object.keys(_proTable).forEach(function (key) {
124
145
  }
125
146
  });
126
147
  });
127
- var utils = _interopRequireWildcard(require("@teamix/utils"));
128
- exports.utils = utils;
129
- Object.keys(utils).forEach(function (key) {
148
+ var hooks = _interopRequireWildcard(require("@teamix/hooks"));
149
+ exports.hooks = hooks;
150
+ Object.keys(hooks).forEach(function (key) {
130
151
  if (key === "default" || key === "__esModule") return;
131
152
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
132
- if (key in exports && exports[key] === utils[key]) return;
153
+ if (key in exports && exports[key] === hooks[key]) return;
133
154
  Object.defineProperty(exports, key, {
134
155
  enumerable: true,
135
156
  get: function get() {
136
- return utils[key];
157
+ return hooks[key];
137
158
  }
138
159
  });
139
160
  });
140
- require("./global.scss");
141
- var _hooks = _interopRequireDefault(require("./hooks"));
142
- var _proAction = require("@teamix/pro-action");
143
- Object.keys(_proAction).forEach(function (key) {
161
+ var _provider = _interopRequireWildcard(require("@teamix/provider"));
162
+ Object.keys(_provider).forEach(function (key) {
144
163
  if (key === "default" || key === "__esModule") return;
145
164
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
146
- if (key in exports && exports[key] === _proAction[key]) return;
165
+ if (key in exports && exports[key] === _provider[key]) return;
147
166
  Object.defineProperty(exports, key, {
148
167
  enumerable: true,
149
168
  get: function get() {
150
- return _proAction[key];
169
+ return _provider[key];
151
170
  }
152
171
  });
153
172
  });
154
- var _proForm = require("@teamix/pro-form");
155
- Object.keys(_proForm).forEach(function (key) {
173
+ var utils = _interopRequireWildcard(require("@teamix/utils"));
174
+ exports.utils = utils;
175
+ Object.keys(utils).forEach(function (key) {
156
176
  if (key === "default" || key === "__esModule") return;
157
177
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
158
- if (key in exports && exports[key] === _proForm[key]) return;
178
+ if (key in exports && exports[key] === utils[key]) return;
159
179
  Object.defineProperty(exports, key, {
160
180
  enumerable: true,
161
181
  get: function get() {
162
- return _proForm[key];
182
+ return utils[key];
163
183
  }
164
184
  });
165
185
  });
166
- var _proSkeleton = require("@teamix/pro-skeleton");
186
+ require("./global.scss");
187
+ var _proSkeleton = _interopRequireWildcard(require("@teamix/pro-skeleton"));
167
188
  Object.keys(_proSkeleton).forEach(function (key) {
168
189
  if (key === "default" || key === "__esModule") return;
169
190
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -175,26 +196,46 @@ Object.keys(_proSkeleton).forEach(function (key) {
175
196
  }
176
197
  });
177
198
  });
178
- var _window;
199
+ var _proPageHeader = require("@teamix/pro-page-header");
200
+ Object.keys(_proPageHeader).forEach(function (key) {
201
+ if (key === "default" || key === "__esModule") return;
202
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
203
+ if (key in exports && exports[key] === _proPageHeader[key]) return;
204
+ Object.defineProperty(exports, key, {
205
+ enumerable: true,
206
+ get: function get() {
207
+ return _proPageHeader[key];
208
+ }
209
+ });
210
+ });
211
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
179
212
  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); }
180
213
  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; }
181
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
214
+ // import ProLayout from './layout';
215
+ // import utils from './utils';
216
+
217
+ // import TeamixIcon from '@teamix/icon';
218
+ // import { ProTimeline } from '../../timeline';
219
+
182
220
  // 设置图标源
183
221
  // @ts-ignore
184
- if (!((_window = window) !== null && _window !== void 0 && _window.TEAMIXPRO_WITHOUT_ICON)) {
185
- _icon.default.setConfig(utils.getTeamixIconConfig());
186
- }
187
- var version = '1.5.18';
188
- exports.version = version;
222
+ // if (!window?.TEAMIXPRO_WITHOUT_ICON) {
223
+ // TeamixIcon.setConfig(utils.getTeamixIconConfig());
224
+ // }
225
+
226
+ var version = '2.0.0-beta.10';
189
227
  // By TeamixTest
190
- window.postMessage({
191
- source: 'teamix-test-devtools',
192
- url: window.location.href,
193
- event: 'getModuleInfo',
194
- moduleName: '@teamix/pro',
195
- moduleVersion: version,
196
- moduleType: 'TeamixPro',
197
- componentName: 'TeamixPro'
198
- }, '*');
228
+ // window.postMessage(
229
+ // {
230
+ // source: 'teamix-test-devtools',
231
+ // url: window.location.href,
232
+ // event: 'getModuleInfo',
233
+ // moduleName: '@teamix/pro',
234
+ // moduleVersion: version,
235
+ // moduleType: 'TeamixPro',
236
+ // componentName: 'TeamixPro',
237
+ // },
238
+ // '*',
239
+ // );
199
240
  var _default = version;
200
241
  exports.default = _default;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import './index.scss';
3
2
  export declare const DetailPage: () => JSX.Element;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import './index.scss';
3
2
  export declare const FormPage: () => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamix/pro",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0-beta.10",
4
4
  "description": "TeamixPro大包",
5
5
  "keywords": [
6
6
  "aliyun",
@@ -57,7 +57,7 @@
57
57
  "@teamix/pro-field": "^2.0.0-beta.1",
58
58
  "@teamix/pro-page-header": "^2.0.0-beta.1",
59
59
  "@teamix/pro-page-container": "^2.0.0-beta.1",
60
- "@teamix/pro-skection": "^2.0.0-beta.1",
60
+ "@teamix/pro-skeleton": "^2.0.0-beta.1",
61
61
  "@teamix/pro-action": "^2.0.0-beta.1",
62
62
  "@teamix/utils": "^2.0.0-beta.1"
63
63
 
@@ -67,6 +67,7 @@
67
67
  "@types/lodash.debounce": "^4.0.6",
68
68
  "@types/lodash.isempty": "^4.4.6",
69
69
  "@types/react-helmet": "^6.1.4",
70
+ "father": "^4.0.0",
70
71
  "react-router-dom": "^5.3.0"
71
72
  },
72
73
  "peerDependencies": {