@teamias/rex-design 0.0.7 → 0.0.8

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.
@@ -1,4 +1,7 @@
1
+ import enUS from "../../../locales/en-US.json";
1
2
  import { RexProConfigProvider } from "../../..";
3
+ import { crush } from 'radash';
4
+ import { createIntl } from 'react-intl';
2
5
  import { BaseListTable } from "../base-list-table";
3
6
  import { jsx as _jsx } from "react/jsx-runtime";
4
7
  import { Fragment as _Fragment } from "react/jsx-runtime";
@@ -6,11 +9,10 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
6
9
  export default (function () {
7
10
  return /*#__PURE__*/_jsx(RexProConfigProvider, {
8
11
  value: {
9
- // intl: createIntl({
10
- // locale: 'en-US',
11
- // messages: crush(designDataDisplayEnUS) as Record<string, string>,
12
- // onError: () => {},
13
- // }),
12
+ intl: createIntl({
13
+ locale: 'en-US',
14
+ messages: crush(enUS)
15
+ })
14
16
  },
15
17
  children: /*#__PURE__*/_jsx(BaseListTable, {
16
18
  defaultExpandAllCollapse: true,
@@ -1,15 +1,17 @@
1
+ import enUS from "../../../locales/en-US.json";
1
2
  import { RexProConfigProvider } from "../../..";
3
+ import { crush } from 'radash';
4
+ import { createIntl } from 'react-intl';
2
5
  import { BaseTable } from "../base-table";
3
6
  import { tableData } from "./tableData";
4
7
  import { jsx as _jsx } from "react/jsx-runtime";
5
8
  export default (function () {
6
9
  return /*#__PURE__*/_jsx(RexProConfigProvider, {
7
10
  value: {
8
- // intl: createIntl({
9
- // locale: 'en-US',
10
- // messages: crush(designDataDisplayEnUS) as Record<string, string>,
11
- // onError: () => {},
12
- // }),
11
+ intl: createIntl({
12
+ locale: 'en-US',
13
+ messages: crush(enUS)
14
+ })
13
15
  },
14
16
  children: /*#__PURE__*/_jsx(BaseTable, {
15
17
  fieldsConfig: [{
@@ -1,9 +1,17 @@
1
- import { Icons } from "../../..";
1
+ import enUS from "../../../locales/en-US.json";
2
+ import { Icons, RexProConfigProvider } from "../../..";
3
+ import { crush } from 'radash';
4
+ import { createIntl } from 'react-intl';
2
5
  import { jsx as _jsx } from "react/jsx-runtime";
3
- import { Fragment as _Fragment } from "react/jsx-runtime";
4
6
  import { jsxs as _jsxs } from "react/jsx-runtime";
5
7
  export default (function () {
6
- return /*#__PURE__*/_jsxs(_Fragment, {
8
+ return /*#__PURE__*/_jsxs(RexProConfigProvider, {
9
+ value: {
10
+ intl: createIntl({
11
+ locale: 'en-US',
12
+ messages: crush(enUS)
13
+ })
14
+ },
7
15
  children: [/*#__PURE__*/_jsx(Icons, {
8
16
  color: "green",
9
17
  size: 50
@@ -9,9 +9,9 @@ import { useRexProConfigProvider } from "../rex-pro-config-provider/use-rex-pro-
9
9
  import { RequestFieldsContainerContext } from "./request-fields-container-context";
10
10
  import { jsx as _jsx } from "react/jsx-runtime";
11
11
  import { Fragment as _Fragment } from "react/jsx-runtime";
12
- /**
13
- * 用于收集所有包含(requestFields)组件加载完成
14
- * TODO: 需要组件(requestFields),去实现这部分逻辑
12
+ /**
13
+ * 用于收集所有包含(requestFields)组件加载完成
14
+ * TODO: 需要组件(requestFields),去实现这部分逻辑
15
15
  */
16
16
  export var RequestFieldsContainer = function RequestFieldsContainer(_ref) {
17
17
  var children = _ref.children,
@@ -1,39 +1,39 @@
1
- {
2
- "rex": {
3
- "components": {
4
- "base-list-table": {
5
- "expand-more-data": "There are still {count} pieces of data not displayed",
6
- "expand-more-data-hide": "Close"
7
- },
8
- "base-table": {
9
- "column-serial-number-title": "Serial number"
10
- },
11
- "base-form": {
12
- "placeholder": {
13
- "input": "Please enter",
14
- "select": "Please select",
15
- "date-range": {
16
- "start": "Start time",
17
- "end": "End time"
18
- },
19
- "input-number-range": {
20
- "min": "Minimum value",
21
- "max": "Maximum value"
22
- }
23
- },
24
- "value-type-match-error": "Not matched"
25
- },
26
- "action-buttons": {
27
- "item-label-fallback": "Unconfigured button label",
28
- "group-label-fallback": "Unconfigured group label"
29
- },
30
- "icons": {
31
- "loader-error": "Icon loading failed",
32
- "not-found": "Icon not found",
33
- "type-not-matched": "Icon type not supported"
34
- }
35
- },
36
- "context": {},
37
- "hooks": {}
38
- }
39
- }
1
+ {
2
+ "rex": {
3
+ "components": {
4
+ "base-list-table": {
5
+ "expand-more-data": "There are still {count} pieces of data not displayed",
6
+ "expand-more-data-hide": "Close"
7
+ },
8
+ "base-table": {
9
+ "column-serial-number-title": "Serial number"
10
+ },
11
+ "base-form": {
12
+ "placeholder": {
13
+ "input": "Please enter",
14
+ "select": "Please select",
15
+ "date-range": {
16
+ "start": "Start time",
17
+ "end": "End time"
18
+ },
19
+ "input-number-range": {
20
+ "min": "Minimum value",
21
+ "max": "Maximum value"
22
+ }
23
+ },
24
+ "value-type-match-error": "Not matched"
25
+ },
26
+ "action-buttons": {
27
+ "item-label-fallback": "Unconfigured button label",
28
+ "group-label-fallback": "Unconfigured group label"
29
+ },
30
+ "icons": {
31
+ "loader-error": "Icon loading failed",
32
+ "not-found": "Icon not found",
33
+ "type-not-matched": "Icon type not supported"
34
+ }
35
+ },
36
+ "context": {},
37
+ "hooks": {}
38
+ }
39
+ }
@@ -1,39 +1,39 @@
1
- {
2
- "rex": {
3
- "components": {
4
- "base-list-table": {
5
- "expand-more-data-hide": "收起",
6
- "expand-more-data": "还有{count}条数据未展示"
7
- },
8
- "base-table": {
9
- "column-serial-number-title": "序号"
10
- },
11
- "base-form": {
12
- "placeholder": {
13
- "input": "请输入",
14
- "select": "请选择",
15
- "date-range": {
16
- "start": "开始时间",
17
- "end": "结束时间"
18
- },
19
- "input-number-range": {
20
- "min": "最小值",
21
- "max": "最大值"
22
- }
23
- },
24
- "value-type-match-error": "匹配不到"
25
- },
26
- "action-buttons": {
27
- "item-label-fallback": "未配置按钮标签",
28
- "group-label-fallback": "未配置分组标签"
29
- },
30
- "icons": {
31
- "loader-error": "图标加载失败",
32
- "not-found": "图标未找到",
33
- "type-not-matched": "图标类型不支持"
34
- }
35
- },
36
- "context": {},
37
- "hooks": {}
38
- }
39
- }
1
+ {
2
+ "rex": {
3
+ "components": {
4
+ "base-list-table": {
5
+ "expand-more-data-hide": "收起",
6
+ "expand-more-data": "还有{count}条数据未展示"
7
+ },
8
+ "base-table": {
9
+ "column-serial-number-title": "序号"
10
+ },
11
+ "base-form": {
12
+ "placeholder": {
13
+ "input": "请输入",
14
+ "select": "请选择",
15
+ "date-range": {
16
+ "start": "开始时间",
17
+ "end": "结束时间"
18
+ },
19
+ "input-number-range": {
20
+ "min": "最小值",
21
+ "max": "最大值"
22
+ }
23
+ },
24
+ "value-type-match-error": "匹配不到"
25
+ },
26
+ "action-buttons": {
27
+ "item-label-fallback": "未配置按钮标签",
28
+ "group-label-fallback": "未配置分组标签"
29
+ },
30
+ "icons": {
31
+ "loader-error": "图标加载失败",
32
+ "not-found": "图标未找到",
33
+ "type-not-matched": "图标类型不支持"
34
+ }
35
+ },
36
+ "context": {},
37
+ "hooks": {}
38
+ }
39
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teamias/rex-design",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "A react library developed with dumi",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",