ydb-components-material 0.1.1

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.
Files changed (80) hide show
  1. package/README.md +17 -0
  2. package/build/docs/404.html +47 -0
  3. package/build/docs/_demos/:uuid +47 -0
  4. package/build/docs/colorful-button.html +48 -0
  5. package/build/docs/colorful-input.html +48 -0
  6. package/build/docs/index.html +48 -0
  7. package/build/docs/umi.5f9a7940.css +8 -0
  8. package/build/docs/umi.6a874444.js +1 -0
  9. package/build/docs/~demos/:uuid.html +47 -0
  10. package/build/docs/~demos/colorful-button-demo.html +47 -0
  11. package/build/docs/~demos/colorful-input-demo.html +47 -0
  12. package/build/index.css +2 -0
  13. package/build/index.html +1 -0
  14. package/build/index.js +53 -0
  15. package/build/lowcode/assets-daily.json +67 -0
  16. package/build/lowcode/assets-dev.json +67 -0
  17. package/build/lowcode/assets-prod.json +67 -0
  18. package/build/lowcode/designer.html +302 -0
  19. package/build/lowcode/index.html +304 -0
  20. package/build/lowcode/index.js +1 -0
  21. package/build/lowcode/meta.js +1 -0
  22. package/build/lowcode/preview.css +1 -0
  23. package/build/lowcode/preview.html +33 -0
  24. package/build/lowcode/preview.js +309 -0
  25. package/build/lowcode/render/default/view.css +1 -0
  26. package/build/lowcode/render/default/view.js +1 -0
  27. package/build/lowcode/view.css +1 -0
  28. package/build/lowcode/view.js +1 -0
  29. package/dist/BizComps.css +1 -0
  30. package/dist/BizComps.js +2 -0
  31. package/dist/BizComps.js.map +1 -0
  32. package/es/components/colorful-button/colorful-button.d.ts +12 -0
  33. package/es/components/colorful-button/colorful-button.js +25 -0
  34. package/es/components/colorful-button/index.d.ts +3 -0
  35. package/es/components/colorful-button/index.js +2 -0
  36. package/es/components/colorful-button/index.scss +5 -0
  37. package/es/components/colorful-input/colorful-input.d.ts +8 -0
  38. package/es/components/colorful-input/colorful-input.js +19 -0
  39. package/es/components/colorful-input/index.d.ts +3 -0
  40. package/es/components/colorful-input/index.js +2 -0
  41. package/es/components/colorful-input/index.scss +5 -0
  42. package/es/index.d.ts +6 -0
  43. package/es/index.js +4 -0
  44. package/es/index.scss +2 -0
  45. package/es/style.js +3 -0
  46. package/es/variables.d.ts +2 -0
  47. package/es/variables.js +2 -0
  48. package/es/variables.scss +3 -0
  49. package/lib/components/colorful-button/colorful-button.d.ts +12 -0
  50. package/lib/components/colorful-button/colorful-button.js +31 -0
  51. package/lib/components/colorful-button/index.d.ts +3 -0
  52. package/lib/components/colorful-button/index.js +7 -0
  53. package/lib/components/colorful-button/index.scss +5 -0
  54. package/lib/components/colorful-input/colorful-input.d.ts +8 -0
  55. package/lib/components/colorful-input/colorful-input.js +25 -0
  56. package/lib/components/colorful-input/index.d.ts +3 -0
  57. package/lib/components/colorful-input/index.js +7 -0
  58. package/lib/components/colorful-input/index.scss +5 -0
  59. package/lib/index.d.ts +6 -0
  60. package/lib/index.js +10 -0
  61. package/lib/index.scss +2 -0
  62. package/lib/style.js +3 -0
  63. package/lib/variables.d.ts +2 -0
  64. package/lib/variables.js +5 -0
  65. package/lib/variables.scss +3 -0
  66. package/lowcode/colorful-button/meta.ts +102 -0
  67. package/lowcode/colorful-input/meta.ts +56 -0
  68. package/lowcode_es/colorful-button/meta.d.ts +22 -0
  69. package/lowcode_es/colorful-button/meta.js +85 -0
  70. package/lowcode_es/colorful-input/meta.d.ts +22 -0
  71. package/lowcode_es/colorful-input/meta.js +48 -0
  72. package/lowcode_es/meta.js +165 -0
  73. package/lowcode_es/view.js +18 -0
  74. package/lowcode_lib/colorful-button/meta.d.ts +22 -0
  75. package/lowcode_lib/colorful-button/meta.js +90 -0
  76. package/lowcode_lib/colorful-input/meta.d.ts +22 -0
  77. package/lowcode_lib/colorful-input/meta.js +53 -0
  78. package/lowcode_lib/meta.js +169 -0
  79. package/lowcode_lib/view.js +28 -0
  80. package/package.json +103 -0
@@ -0,0 +1,85 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ var ColorfulButtonMeta = {
3
+ "componentName": "ColorfulButton",
4
+ "title": "ColorfulButton",
5
+ "docUrl": "",
6
+ "screenshot": "",
7
+ "devMode": "proCode",
8
+ "npm": {
9
+ "package": "ydb-components-material",
10
+ "version": "0.1.0",
11
+ "exportName": "ColorfulButton",
12
+ "main": "src/index.tsx",
13
+ "destructuring": true,
14
+ "subName": ""
15
+ },
16
+ "configure": {
17
+ "props": [{
18
+ "title": {
19
+ "label": {
20
+ "type": "i18n",
21
+ "en-US": "type",
22
+ "zh-CN": "类型"
23
+ },
24
+ "tip": "type | 类型"
25
+ },
26
+ "name": "type",
27
+ "description": "类型",
28
+ "setter": {
29
+ "componentName": "RadioGroupSetter",
30
+ "props": {
31
+ "dataSource": [{
32
+ "label": "primary",
33
+ "value": "primary"
34
+ }, {
35
+ "label": "secondary",
36
+ "value": "secondary"
37
+ }, {
38
+ "label": "normal",
39
+ "value": "normal"
40
+ }],
41
+ "options": [{
42
+ "label": "primary",
43
+ "value": "primary"
44
+ }, {
45
+ "label": "secondary",
46
+ "value": "secondary"
47
+ }, {
48
+ "label": "normal",
49
+ "value": "normal"
50
+ }]
51
+ },
52
+ "initialValue": "primary"
53
+ }
54
+ }, {
55
+ "title": {
56
+ "label": {
57
+ "type": "i18n",
58
+ "en-US": "color",
59
+ "zh-CN": "color"
60
+ }
61
+ },
62
+ "name": "color",
63
+ "setter": {
64
+ "componentName": "StringSetter",
65
+ "isRequired": false,
66
+ "initialValue": ""
67
+ }
68
+ }],
69
+ "supports": {
70
+ "style": true
71
+ },
72
+ "component": {}
73
+ }
74
+ };
75
+ var snippets = [{
76
+ "title": "ColorfulButton",
77
+ "screenshot": "",
78
+ "schema": {
79
+ "componentName": "ColorfulButton",
80
+ "props": {}
81
+ }
82
+ }];
83
+ export default _extends({}, ColorfulButtonMeta, {
84
+ snippets: snippets
85
+ });
@@ -0,0 +1,22 @@
1
+ import { IPublicTypeSnippet } from '@alilc/lowcode-types';
2
+ declare const _default: {
3
+ snippets: IPublicTypeSnippet[];
4
+ componentName: string;
5
+ uri?: string;
6
+ title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
7
+ icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
8
+ tags?: string[];
9
+ description?: string;
10
+ docUrl?: string;
11
+ screenshot?: string;
12
+ devMode?: "proCode" | "lowCode";
13
+ npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
14
+ props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
15
+ configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
16
+ experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
17
+ schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
18
+ group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
19
+ category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
20
+ priority?: number;
21
+ };
22
+ export default _default;
@@ -0,0 +1,48 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ var ColorfulInputMeta = {
3
+ "componentName": "ColorfulInput",
4
+ "title": "ColorfulInput",
5
+ "docUrl": "",
6
+ "screenshot": "",
7
+ "devMode": "proCode",
8
+ "npm": {
9
+ "package": "ydb-components-material",
10
+ "version": "0.1.0",
11
+ "exportName": "ColorfulInput",
12
+ "main": "src/index.tsx",
13
+ "destructuring": true,
14
+ "subName": ""
15
+ },
16
+ "configure": {
17
+ "props": [{
18
+ "title": {
19
+ "label": {
20
+ "type": "i18n",
21
+ "en-US": "color",
22
+ "zh-CN": "color"
23
+ }
24
+ },
25
+ "name": "color",
26
+ "setter": {
27
+ "componentName": "StringSetter",
28
+ "isRequired": false,
29
+ "initialValue": ""
30
+ }
31
+ }],
32
+ "supports": {
33
+ "style": true
34
+ },
35
+ "component": {}
36
+ }
37
+ };
38
+ var snippets = [{
39
+ "title": "ColorfulInput",
40
+ "screenshot": "",
41
+ "schema": {
42
+ "componentName": "ColorfulInput",
43
+ "props": {}
44
+ }
45
+ }];
46
+ export default _extends({}, ColorfulInputMeta, {
47
+ snippets: snippets
48
+ });
@@ -0,0 +1,165 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import ColorfulButtonMeta from "./colorful-button/meta";
3
+ import ColorfulInputMeta from "./colorful-input/meta";
4
+ var componentCategorySort = {};
5
+ ["基础元素", "布局容器类", "表格类", "表单详情类", "帮助类", "对话框类", "业务类", "通用", "引导", "信息输入", "信息展示", "信息反馈"].reverse().forEach(function (item, index) {
6
+ componentCategorySort[item] = ++index;
7
+ });
8
+ function generateComponentList(components) {
9
+ var componentList = [{
10
+ title: '常用',
11
+ icon: '',
12
+ children: []
13
+ }, {
14
+ title: '容器',
15
+ icon: '',
16
+ children: []
17
+ }, {
18
+ title: '导航',
19
+ icon: '',
20
+ children: []
21
+ }, {
22
+ title: '内容',
23
+ icon: '',
24
+ children: []
25
+ }, {
26
+ title: 'Feedback 反馈',
27
+ icon: '',
28
+ children: []
29
+ }];
30
+ var groupMap = {
31
+ 原子组件: true
32
+ };
33
+ var compGroup = {};
34
+ components.forEach(function (comp) {
35
+ var category = comp.category || '其他';
36
+ if (comp.group && !compGroup[comp.componentName]) {
37
+ compGroup[comp.componentName] = comp.group;
38
+ }
39
+ if (comp.group && !groupMap[comp.group]) {
40
+ groupMap[comp.group] = true;
41
+ }
42
+ var target = componentList.find(function (item) {
43
+ return item.title === category;
44
+ });
45
+ if (!target) {
46
+ target = {
47
+ title: category,
48
+ icon: '',
49
+ children: []
50
+ };
51
+ componentList.push(target);
52
+ }
53
+ if (comp.snippets && comp.snippets.length) {
54
+ target.children.push({
55
+ componentName: comp.componentName,
56
+ title: comp.title || comp.componentName,
57
+ sort: {
58
+ category: target.title,
59
+ group: compGroup[comp.componentName] || '原子组件',
60
+ priority: componentCategorySort[target.title] || 0
61
+ },
62
+ icon: '',
63
+ "package": comp.npm.pkg,
64
+ snippets: comp.snippets || []
65
+ });
66
+ }
67
+ });
68
+ return componentList;
69
+ }
70
+ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
71
+ if (packageName === void 0) {
72
+ packageName = 'ydb-components-material';
73
+ }
74
+ if (version === void 0) {
75
+ version = '0.1.1';
76
+ }
77
+ if (basicLibraryVersion === void 0) {
78
+ basicLibraryVersion = {
79
+ "@alifd/next": "1.25.23",
80
+ "@alifd/meet": "2.6.3",
81
+ "antd": "4.17.3"
82
+ };
83
+ }
84
+ if (!meta || !version) {
85
+ return meta;
86
+ }
87
+ var npm = meta.npm;
88
+ if (!npm) {
89
+ return meta;
90
+ }
91
+ if (typeof basicLibraryVersion === 'object' && basicLibraryVersion[npm["package"]]) {
92
+ meta.npm = _extends({}, npm, {
93
+ version: basicLibraryVersion[npm["package"]]
94
+ });
95
+ } else if (npm["package"] === packageName) {
96
+ meta.npm = _extends({}, npm, {
97
+ version: version
98
+ });
99
+ }
100
+ return meta;
101
+ }
102
+ var componentMetas = [ColorfulButtonMeta, ColorfulInputMeta];
103
+ var components = [];
104
+ var npmInfo = {};
105
+ componentMetas.forEach(function (meta) {
106
+ if (Array.isArray(meta)) {
107
+ components.push.apply(components, meta.map(function (item) {
108
+ if (!item.npm) {
109
+ var componentName = item.componentName;
110
+ var names = componentName.split('.');
111
+ var exportName = names[0],
112
+ subName = names[1];
113
+ item.npm = {
114
+ exportName: exportName,
115
+ main: '',
116
+ destructuring: true,
117
+ subName: names.length > 1 ? componentName.slice(componentName.indexOf('.') + 1) : subName
118
+ };
119
+ }
120
+ item.npm = _extends({}, npmInfo, item.npm || {});
121
+ return fillRealVersion(item);
122
+ }));
123
+ } else if (meta.components) {
124
+ components.push.apply(components, meta.components.map(function (item) {
125
+ if (!item.npm) {
126
+ var componentName = item.componentName;
127
+ var names = componentName.split('.');
128
+ var exportName = names[0],
129
+ subName = names[1];
130
+ item.npm = {
131
+ exportName: exportName,
132
+ main: '',
133
+ destructuring: true,
134
+ subName: names.length > 1 ? componentName.slice(componentName.indexOf('.') + 1) : subName
135
+ };
136
+ }
137
+ item.npm = _extends({}, npmInfo, item.npm || {});
138
+ return fillRealVersion(item);
139
+ }));
140
+ } else {
141
+ if (!meta.npm) {
142
+ var componentName = meta.componentName;
143
+ var names = componentName.split('.');
144
+ var exportName = names[0],
145
+ subName = names[1];
146
+ meta.npm = {
147
+ exportName: exportName,
148
+ main: '',
149
+ destructuring: true,
150
+ subName: names.length > 1 ? componentName.slice(componentName.indexOf('.') + 1) : subName
151
+ };
152
+ }
153
+ meta.npm = _extends({}, npmInfo, meta.npm || {});
154
+ components.push(fillRealVersion(meta));
155
+ }
156
+ });
157
+ var componentList = generateComponentList(components);
158
+ export { components, componentList };
159
+ var execCompile = !!true;
160
+ if (!execCompile) {
161
+ window.YdbComponentsMaterialMeta = {
162
+ components: components,
163
+ componentList: componentList
164
+ };
165
+ }
@@ -0,0 +1,18 @@
1
+ import * as componentInstances from "../es/index";
2
+ import "../es/index.scss";
3
+ var entryDefault = componentInstances["default"];
4
+ export { entryDefault as default };
5
+ export * from "../es/index";
6
+ var coveredComponents = {};
7
+ var library = 'BizComps';
8
+ var execCompile = !!true;
9
+ if (!execCompile) {
10
+ window[library] = Object.assign({
11
+ __esModule: true
12
+ }, componentInstances || {}, coveredComponents || {});
13
+ }
14
+ function getRealComponent(component, componentName) {
15
+ if (component["default"]) return component["default"];
16
+ if (component[componentName]) return component[componentName];
17
+ return component;
18
+ }
@@ -0,0 +1,22 @@
1
+ import { IPublicTypeSnippet } from '@alilc/lowcode-types';
2
+ declare const _default: {
3
+ snippets: IPublicTypeSnippet[];
4
+ componentName: string;
5
+ uri?: string;
6
+ title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
7
+ icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
8
+ tags?: string[];
9
+ description?: string;
10
+ docUrl?: string;
11
+ screenshot?: string;
12
+ devMode?: "proCode" | "lowCode";
13
+ npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
14
+ props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
15
+ configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
16
+ experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
17
+ schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
18
+ group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
19
+ category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
20
+ priority?: number;
21
+ };
22
+ export default _default;
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ exports.__esModule = true;
5
+ exports["default"] = void 0;
6
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
7
+ var ColorfulButtonMeta = {
8
+ "componentName": "ColorfulButton",
9
+ "title": "ColorfulButton",
10
+ "docUrl": "",
11
+ "screenshot": "",
12
+ "devMode": "proCode",
13
+ "npm": {
14
+ "package": "ydb-components-material",
15
+ "version": "0.1.0",
16
+ "exportName": "ColorfulButton",
17
+ "main": "src/index.tsx",
18
+ "destructuring": true,
19
+ "subName": ""
20
+ },
21
+ "configure": {
22
+ "props": [{
23
+ "title": {
24
+ "label": {
25
+ "type": "i18n",
26
+ "en-US": "type",
27
+ "zh-CN": "类型"
28
+ },
29
+ "tip": "type | 类型"
30
+ },
31
+ "name": "type",
32
+ "description": "类型",
33
+ "setter": {
34
+ "componentName": "RadioGroupSetter",
35
+ "props": {
36
+ "dataSource": [{
37
+ "label": "primary",
38
+ "value": "primary"
39
+ }, {
40
+ "label": "secondary",
41
+ "value": "secondary"
42
+ }, {
43
+ "label": "normal",
44
+ "value": "normal"
45
+ }],
46
+ "options": [{
47
+ "label": "primary",
48
+ "value": "primary"
49
+ }, {
50
+ "label": "secondary",
51
+ "value": "secondary"
52
+ }, {
53
+ "label": "normal",
54
+ "value": "normal"
55
+ }]
56
+ },
57
+ "initialValue": "primary"
58
+ }
59
+ }, {
60
+ "title": {
61
+ "label": {
62
+ "type": "i18n",
63
+ "en-US": "color",
64
+ "zh-CN": "color"
65
+ }
66
+ },
67
+ "name": "color",
68
+ "setter": {
69
+ "componentName": "StringSetter",
70
+ "isRequired": false,
71
+ "initialValue": ""
72
+ }
73
+ }],
74
+ "supports": {
75
+ "style": true
76
+ },
77
+ "component": {}
78
+ }
79
+ };
80
+ var snippets = [{
81
+ "title": "ColorfulButton",
82
+ "screenshot": "",
83
+ "schema": {
84
+ "componentName": "ColorfulButton",
85
+ "props": {}
86
+ }
87
+ }];
88
+ var _default = exports["default"] = (0, _extends2["default"])({}, ColorfulButtonMeta, {
89
+ snippets: snippets
90
+ });
@@ -0,0 +1,22 @@
1
+ import { IPublicTypeSnippet } from '@alilc/lowcode-types';
2
+ declare const _default: {
3
+ snippets: IPublicTypeSnippet[];
4
+ componentName: string;
5
+ uri?: string;
6
+ title?: import("@alilc/lowcode-types").IPublicTypeTitleContent;
7
+ icon?: import("@alilc/lowcode-types").IPublicTypeIconType;
8
+ tags?: string[];
9
+ description?: string;
10
+ docUrl?: string;
11
+ screenshot?: string;
12
+ devMode?: "proCode" | "lowCode";
13
+ npm?: import("@alilc/lowcode-types").IPublicTypeNpmInfo;
14
+ props?: import("@alilc/lowcode-types").IPublicTypePropConfig[];
15
+ configure?: import("@alilc/lowcode-types").IPublicTypeFieldConfig[] | import("@alilc/lowcode-types").IPublicTypeConfigure;
16
+ experimental?: import("@alilc/lowcode-types").IPublicTypeAdvanced;
17
+ schema?: import("@alilc/lowcode-types").IPublicTypeComponentSchema;
18
+ group?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
19
+ category?: string | import("@alilc/lowcode-types").IPublicTypeI18nData;
20
+ priority?: number;
21
+ };
22
+ export default _default;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ exports.__esModule = true;
5
+ exports["default"] = void 0;
6
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
7
+ var ColorfulInputMeta = {
8
+ "componentName": "ColorfulInput",
9
+ "title": "ColorfulInput",
10
+ "docUrl": "",
11
+ "screenshot": "",
12
+ "devMode": "proCode",
13
+ "npm": {
14
+ "package": "ydb-components-material",
15
+ "version": "0.1.0",
16
+ "exportName": "ColorfulInput",
17
+ "main": "src/index.tsx",
18
+ "destructuring": true,
19
+ "subName": ""
20
+ },
21
+ "configure": {
22
+ "props": [{
23
+ "title": {
24
+ "label": {
25
+ "type": "i18n",
26
+ "en-US": "color",
27
+ "zh-CN": "color"
28
+ }
29
+ },
30
+ "name": "color",
31
+ "setter": {
32
+ "componentName": "StringSetter",
33
+ "isRequired": false,
34
+ "initialValue": ""
35
+ }
36
+ }],
37
+ "supports": {
38
+ "style": true
39
+ },
40
+ "component": {}
41
+ }
42
+ };
43
+ var snippets = [{
44
+ "title": "ColorfulInput",
45
+ "screenshot": "",
46
+ "schema": {
47
+ "componentName": "ColorfulInput",
48
+ "props": {}
49
+ }
50
+ }];
51
+ var _default = exports["default"] = (0, _extends2["default"])({}, ColorfulInputMeta, {
52
+ snippets: snippets
53
+ });