ydb-components-material 0.1.14 → 0.1.16

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 (75) hide show
  1. package/build/docs/404.html +3 -3
  2. package/build/docs/_demos/:uuid +3 -3
  3. package/build/docs/colorful-button.html +3 -3
  4. package/build/docs/colorful-input.html +3 -3
  5. package/build/docs/index.html +3 -3
  6. package/build/docs/static/icon_errorMsg.4be47c18.svg +1 -0
  7. package/build/docs/static/upload.5b48382d.svg +1 -0
  8. package/build/docs/{umi.0a86c29b.css → umi.04e1542b.css} +1 -1
  9. package/build/docs/umi.6c098144.js +1 -0
  10. package/build/docs/~demos/:uuid.html +3 -3
  11. package/build/docs/~demos/colorful-button-demo.html +3 -3
  12. package/build/docs/~demos/colorful-input-demo.html +3 -3
  13. package/build/lowcode/assets-daily.json +11 -11
  14. package/build/lowcode/assets-dev.json +2 -2
  15. package/build/lowcode/assets-prod.json +11 -11
  16. package/build/lowcode/index.js +1 -1
  17. package/build/lowcode/meta.js +1 -1
  18. package/build/lowcode/preview.js +9 -9
  19. package/build/lowcode/render/default/view.css +1 -1
  20. package/build/lowcode/render/default/view.js +1 -1
  21. package/build/lowcode/view.css +1 -1
  22. package/build/lowcode/view.js +1 -1
  23. package/dist/BizComps.css +1 -1
  24. package/dist/BizComps.js +1 -1
  25. package/dist/BizComps.js.map +1 -1
  26. package/es/components/check-res/index.d.ts +2 -0
  27. package/es/components/check-res/index.js +9 -2
  28. package/es/components/check-res/index.scss +23 -0
  29. package/es/components/file-item/icon/icon_errorMsg.svg +1 -0
  30. package/es/components/file-item/icon/upload.svg +1 -0
  31. package/es/components/file-item/index.d.ts +12 -3
  32. package/es/components/file-item/index.js +123 -88
  33. package/es/components/file-item/index.scss +235 -216
  34. package/es/components/scene-tree/index.d.ts +11 -0
  35. package/es/components/scene-tree/index.js +206 -0
  36. package/es/components/tips/icon/icon_errorMsg.svg +1 -0
  37. package/es/components/tips/index.d.ts +1 -1
  38. package/es/components/tips/index.js +13 -12
  39. package/es/index.d.ts +2 -0
  40. package/es/index.js +1 -0
  41. package/es/style.js +1 -0
  42. package/lib/components/check-res/index.d.ts +2 -0
  43. package/lib/components/check-res/index.js +9 -2
  44. package/lib/components/check-res/index.scss +23 -0
  45. package/lib/components/file-item/icon/icon_errorMsg.svg +1 -0
  46. package/lib/components/file-item/icon/upload.svg +1 -0
  47. package/lib/components/file-item/index.d.ts +12 -3
  48. package/lib/components/file-item/index.js +123 -88
  49. package/lib/components/file-item/index.scss +235 -216
  50. package/lib/components/scene-tree/index.d.ts +11 -0
  51. package/lib/components/scene-tree/index.js +212 -0
  52. package/lib/components/tips/icon/icon_errorMsg.svg +1 -0
  53. package/lib/components/tips/index.d.ts +1 -1
  54. package/lib/components/tips/index.js +13 -12
  55. package/lib/index.d.ts +2 -0
  56. package/lib/index.js +3 -1
  57. package/lib/style.js +1 -0
  58. package/lowcode/check-res/meta.ts +30 -1
  59. package/lowcode/file-item/meta.ts +149 -14
  60. package/lowcode/scene-tree/meta.ts +81 -0
  61. package/lowcode/tips/meta.ts +9 -1
  62. package/lowcode_es/check-res/meta.js +27 -0
  63. package/lowcode_es/file-item/meta.js +139 -13
  64. package/lowcode_es/meta.js +3 -2
  65. package/lowcode_es/scene-tree/meta.d.ts +22 -0
  66. package/lowcode_es/scene-tree/meta.js +72 -0
  67. package/lowcode_es/tips/meta.js +6 -0
  68. package/lowcode_lib/check-res/meta.js +27 -0
  69. package/lowcode_lib/file-item/meta.js +139 -13
  70. package/lowcode_lib/meta.js +6 -5
  71. package/lowcode_lib/scene-tree/meta.d.ts +22 -0
  72. package/lowcode_lib/scene-tree/meta.js +77 -0
  73. package/lowcode_lib/tips/meta.js +6 -0
  74. package/package.json +3 -3
  75. package/build/docs/umi.5b93b1de.js +0 -1
@@ -1,113 +1,132 @@
1
- .file_item {
2
- border-radius: 8px;
3
- opacity: 1;
4
- background: #F7F7F7;
5
- padding: 12px;
6
-
7
- .file {
8
- display: flex;
9
- justify-content: space-between;
10
- align-items: center;
1
+ .file_main {
2
+ .file_name {
3
+ font-size: 14px;
4
+ font-weight: 500;
5
+ color: #323232;
6
+ margin-bottom: 8px;
7
+ }
8
+ .file_tip {
9
+ font-size: 12px;
10
+ color: #999999;
11
11
  margin-bottom: 12px;
12
+ }
13
+ .file_item {
14
+ border-radius: 8px;
15
+ opacity: 1;
16
+ background: #F7F7F7;
17
+ padding: 12px;
12
18
 
13
- .file_img {
14
- width: 80px;
15
- height: 80px;
16
- border-radius: 4px;
17
- position: relative;
18
- border-radius: 8px;
19
- position: relative;
19
+ .file {
20
20
  display: flex;
21
- justify-content: center;
21
+ justify-content: space-between;
22
22
  align-items: center;
23
- background: #fff;
24
- font-size: 12px;
25
- color: #666666;
26
- flex-direction: column;
23
+ margin-bottom: 12px;
27
24
 
28
- .filed {
25
+ .file_img {
26
+ width: 80px;
27
+ height: 80px;
28
+ border-radius: 4px;
29
+ position: relative;
30
+ border-radius: 8px;
31
+ position: relative;
29
32
  display: flex;
30
33
  justify-content: center;
31
34
  align-items: center;
35
+ background: #fff;
36
+ font-size: 12px;
37
+ color: #666666;
32
38
  flex-direction: column;
33
- }
34
39
 
35
- .small_img {
36
- width: 24px;
37
- height: 24px;
40
+ .filed {
41
+ display: flex;
42
+ justify-content: center;
43
+ align-items: center;
44
+ flex-direction: column;
45
+ }
38
46
 
39
- }
47
+ .small_img {
48
+ width: 24px;
49
+ height: 24px;
40
50
 
41
- .add {
42
- display: flex;
43
- flex-direction: column;
44
- justify-content: center;
45
- align-items: center;
46
- .add_icon {
47
- width: 14px;
48
- margin-left: -5px;
49
51
  }
50
- color: #1678FF;
51
- }
52
52
 
53
- .del {
54
- position: absolute;
55
- width: 16px;
56
- height: 16px;
57
- top: -6px;
58
- right: -6px;
59
- z-index: 9;
60
- }
53
+ .add {
54
+ display: flex;
55
+ flex-direction: column;
56
+ justify-content: center;
57
+ align-items: center;
58
+ .add_icon {
59
+ width: 14px;
60
+ margin-left: -5px;
61
+ }
62
+ color: #1678FF;
63
+ }
61
64
 
62
- .mask {
63
- // display: none !important;
64
- border-radius: 8px;
65
- position: absolute;
66
- top: 0;
67
- left: 0;
68
- width: 100%;
69
- height: 100%;
70
- // opacity: 0.5;
71
- background: #2222227d;
72
- display: flex;
73
- justify-content: center;
74
- align-items: center;
75
- color: #fff;
76
- z-index: 8;
65
+ .del {
66
+ position: absolute;
67
+ width: 16px;
68
+ height: 16px;
69
+ top: -6px;
70
+ right: -6px;
71
+ z-index: 9;
72
+ }
77
73
 
78
- .checked {
74
+ .error_msg {
75
+ position: absolute;
76
+ top: 30px;
77
+ right: 22px;
78
+ }
79
+
80
+ .mask {
81
+ // display: none !important;
82
+ border-radius: 8px;
83
+ position: absolute;
84
+ top: 0;
85
+ left: 0;
86
+ width: 100%;
87
+ height: 100%;
88
+ // opacity: 0.5;
89
+ background: #2222227d;
79
90
  display: flex;
91
+ justify-content: center;
80
92
  align-items: center;
93
+ color: #fff;
94
+ z-index: 8;
81
95
 
82
- img {
83
- width: 14px;
84
- height: 14px;
85
- margin-right: 3px;
96
+ .checked {
97
+ display: flex;
98
+ align-items: center;
99
+
100
+ img {
101
+ width: 14px;
102
+ height: 14px;
103
+ margin-right: 3px;
104
+ }
86
105
  }
87
106
  }
88
107
  }
89
- }
90
108
 
91
- .operation {
92
- .btn {
93
- display: flex;
94
- flex-direction: row;
109
+ .operation {
110
+ .btn {
111
+ display: flex;
112
+ flex-direction: row;
113
+
114
+ .img_btn {
115
+ margin-left: 8px;
116
+ width: 68px;
117
+ height: 26px;
118
+ border-radius: 4px;
119
+ opacity: 1;
120
+ box-sizing: border-box;
121
+ border: 1px solid #1678FF;
122
+ color: #1678FF;
123
+ font-size: 13px;
124
+ line-height: 26px;
125
+ text-align: center;
126
+ cursor: pointer;
127
+ }
95
128
 
96
- .img_btn {
97
- margin-left: 8px;
98
- width: 68px;
99
- height: 26px;
100
- border-radius: 4px;
101
- opacity: 1;
102
- box-sizing: border-box;
103
- border: 1px solid #1678FF;
104
- color: #1678FF;
105
- font-size: 13px;
106
- line-height: 26px;
107
- text-align: center;
108
- cursor: pointer;
109
129
  }
110
-
111
130
  .operation_btn {
112
131
  cursor: pointer;
113
132
  margin-left: 8px;
@@ -124,166 +143,166 @@
124
143
  }
125
144
  }
126
145
  }
127
- }
128
-
129
- .file_item_bottom {
130
- border-top: 1px solid #EAEAEA;
131
- display: flex;
132
- display: flex;
133
- justify-content: space-evenly;
134
- align-items: center;
135
- padding-top: 12px;
136
-
137
- .line {
138
- width: 1px;
139
- height: 20px;
140
- background-color: #EAEAEA;
141
- }
142
146
 
143
- .icon_text {
147
+ .file_item_bottom {
148
+ border-top: 1px solid #EAEAEA;
144
149
  display: flex;
150
+ display: flex;
151
+ justify-content: space-evenly;
145
152
  align-items: center;
146
- font-size: 14px;
147
- color: #1678FF;
153
+ padding-top: 12px;
154
+
155
+ .line {
156
+ width: 1px;
157
+ height: 20px;
158
+ background-color: #EAEAEA;
159
+ }
160
+
161
+ .icon_text {
162
+ display: flex;
163
+ align-items: center;
164
+ font-size: 14px;
165
+ color: #1678FF;
148
166
 
149
- img {
150
- width: 16px;
151
- height: 11px;
152
- margin-right: 5px;
167
+ img {
168
+ width: 16px;
169
+ height: 11px;
170
+ margin-right: 5px;
153
171
 
172
+ }
154
173
  }
155
174
  }
156
- }
157
175
 
158
- .img_view {
159
- position: absolute;
160
- top: 0;
161
- left: 0;
162
- width: 100%;
163
- height: 100%;
164
- background-color: rgba(0, 0, 0, 0.5);
165
- display: flex;
166
- justify-content: center;
167
- align-items: center;
168
-
169
- .close {
170
- width: 17px;
171
- height: 17px;
172
- color: #fff;
176
+ .img_view {
173
177
  position: absolute;
174
- top: 40px;
175
- right: 20px;
176
- }
177
-
178
- .view {
178
+ top: 0;
179
+ left: 0;
179
180
  width: 100%;
180
- height: auto;
181
- }
182
- }
181
+ height: 100%;
182
+ background-color: rgba(0, 0, 0, 0.5);
183
+ display: flex;
184
+ justify-content: center;
185
+ align-items: center;
183
186
 
184
- .material_lib {
185
- width: 100%;
186
- height: 100%;
187
- position: absolute;
188
- top: 0;
189
- left: 0;
190
- z-index: 999;
191
- background-color: rgba(0, 0, 0, 0.5);
187
+ .close {
188
+ width: 17px;
189
+ height: 17px;
190
+ color: #fff;
191
+ position: absolute;
192
+ top: 40px;
193
+ right: 20px;
194
+ }
195
+
196
+ .view {
197
+ width: 100%;
198
+ height: auto;
199
+ }
200
+ }
192
201
 
193
- .material_lib_content {
202
+ .material_lib {
194
203
  width: 100%;
204
+ height: 100%;
195
205
  position: absolute;
196
- bottom: 0;
206
+ top: 0;
197
207
  left: 0;
198
- background-color: #fff;
199
- border-radius: 16px 16px 0px 0px;
200
-
201
- .material_lib_title {
202
- font-size: 16px;
203
- color: #333333;
204
- line-height: 54px;
205
- text-align: center;
206
- }
207
-
208
- .tips {
209
- padding: 12px;
210
- background: #FFF6E8;
211
- font-size: 14px;
212
- line-height: 24px;
213
- color: #F29655;
214
- display: flex;
215
- align-items: flex-start;
216
-
217
- img {
218
- width: 14px;
219
- height: 14px;
220
- margin-right: 8px;
221
- margin-top: 5px;
222
- }
223
- }
208
+ z-index: 999;
209
+ background-color: rgba(0, 0, 0, 0.5);
224
210
 
225
- .list {
226
- padding: 12px 12px 0 12px;
211
+ .material_lib_content {
227
212
  width: 100%;
228
- background-color: #F5F5F5;
229
- margin-bottom: 64px;
230
- max-height: 300px;
231
- overflow: auto;
213
+ position: absolute;
214
+ bottom: 0;
215
+ left: 0;
216
+ background-color: #fff;
217
+ border-radius: 16px 16px 0px 0px;
232
218
 
233
- .item {
234
- padding: 16px 12px;
235
- border-radius: 8px;
236
- background: #FFF;
237
- display: flex;
238
- align-items: center;
219
+ .material_lib_title {
220
+ font-size: 16px;
239
221
  color: #333333;
222
+ line-height: 54px;
223
+ text-align: center;
224
+ }
225
+
226
+ .tips {
227
+ padding: 12px;
228
+ background: #FFF6E8;
240
229
  font-size: 14px;
241
- width: 100%;
242
- margin-bottom: 12px;
230
+ line-height: 24px;
231
+ color: #F29655;
232
+ display: flex;
233
+ align-items: flex-start;
234
+
235
+ img {
236
+ width: 14px;
237
+ height: 14px;
238
+ margin-right: 8px;
239
+ margin-top: 5px;
240
+ }
241
+ }
243
242
 
244
- .preview_icon {
245
- margin-left: auto;
243
+ .list {
244
+ padding: 12px 12px 0 12px;
245
+ width: 100%;
246
+ background-color: #F5F5F5;
247
+ margin-bottom: 64px;
248
+ max-height: 300px;
249
+ overflow: auto;
250
+
251
+ .item {
252
+ padding: 16px 12px;
253
+ border-radius: 8px;
254
+ background: #FFF;
246
255
  display: flex;
247
256
  align-items: center;
248
- color: #1678FF;
249
-
250
- img {
251
- width: 16px;
252
- margin-right: 4px;
257
+ color: #333333;
258
+ font-size: 14px;
259
+ width: 100%;
260
+ margin-bottom: 12px;
261
+
262
+ .preview_icon {
263
+ margin-left: auto;
264
+ display: flex;
265
+ align-items: center;
266
+ color: #1678FF;
267
+
268
+ img {
269
+ width: 16px;
270
+ margin-right: 4px;
271
+ }
253
272
  }
254
273
  }
255
274
  }
256
- }
257
-
258
- .bottom_btn {
259
- background-color: #fff;
260
- height: 64px;
261
- display: flex;
262
- align-items: center;
263
- justify-content: space-around;
264
- position: fixed;
265
- bottom: 0;
266
- left: 0;
267
- right: 0;
268
-
269
- .btn {
270
- width: 169px;
271
- height: 40px;
272
- border-radius: 50px;
273
- font-size: 16px;
274
- line-height: 40px;
275
- text-align: center;
276
- }
277
275
 
278
- .cancel {
276
+ .bottom_btn {
279
277
  background-color: #fff;
280
- border: 1px solid #E7E7E7;
281
- color: #333;
282
- }
278
+ height: 64px;
279
+ display: flex;
280
+ align-items: center;
281
+ justify-content: space-around;
282
+ position: fixed;
283
+ bottom: 0;
284
+ left: 0;
285
+ right: 0;
286
+
287
+ .btn {
288
+ width: 169px;
289
+ height: 40px;
290
+ border-radius: 50px;
291
+ font-size: 16px;
292
+ line-height: 40px;
293
+ text-align: center;
294
+ }
283
295
 
284
- .ok {
285
- background: linear-gradient(90deg, #73AEFF 0%, #1678FF 100%);
286
- color: #fff;
296
+ .cancel {
297
+ background-color: #fff;
298
+ border: 1px solid #E7E7E7;
299
+ color: #333;
300
+ }
301
+
302
+ .ok {
303
+ background: linear-gradient(90deg, #73AEFF 0%, #1678FF 100%);
304
+ color: #fff;
305
+ }
287
306
  }
288
307
  }
289
308
  }
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ export interface SceneTreeProps {
3
+ /**
4
+ * data
5
+ */
6
+ dataSource?: object;
7
+ style?: object;
8
+ valChange?: (value: any) => void;
9
+ }
10
+ declare const SceneTree: React.FC<SceneTreeProps>;
11
+ export default SceneTree;