schyma 1.0.0 → 1.0.2

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.
package/README.md CHANGED
@@ -37,7 +37,7 @@ Then use it in your app:
37
37
  ```js
38
38
  import React from 'react';
39
39
  import Schyma from 'schyma';
40
- import 'schyma/src/style.css'
40
+ import 'schyma/esm/style.css'
41
41
  import schema from '../config/2.6.0.json';
42
42
 
43
43
  export default function App() {
@@ -0,0 +1,484 @@
1
+ /* this gets exported as style.css and can be used for the default theming */
2
+ /* these are the necessary styles for React Flow, they get used by base.css and style.css */
3
+
4
+ .body-wrapper{
5
+ display: flex;
6
+ justify-content: space-between;
7
+ }
8
+
9
+ .node-container{
10
+ width: 60%;
11
+ display: flex;
12
+ flex-direction: column;
13
+ }
14
+
15
+ .panel{
16
+ padding: 6px;
17
+ min-width: 40%;
18
+ max-width: 40%;
19
+ border-left: 1px solid #334155;
20
+ height: 100vh;
21
+ overflow-y: scroll;
22
+ }
23
+
24
+ .panel > h1 {
25
+ margin: 10px;
26
+ font-weight: bold;
27
+ font-size: 25px;
28
+ }
29
+
30
+ .panel > h1::first-letter{
31
+ text-transform: uppercase;
32
+ }
33
+
34
+ .panel > p {
35
+ font-size: 16px;
36
+ margin: 10px;
37
+ }
38
+
39
+ .panel_table-wrapper{
40
+ position: relative;
41
+ overflow-x: auto;
42
+ margin-top: 20px;
43
+ border-radius: 10px;
44
+ }
45
+
46
+
47
+ .panel_table-wrapper > table {
48
+ width: 100%;
49
+ font-size: 14px;
50
+ text-align: left;
51
+ }
52
+
53
+ .panel_table-wrapper > table > thead {
54
+ background-color: #1E293B;
55
+ color: white;
56
+ }
57
+
58
+ .panel_table-wrapper > table > thead > tr > th {
59
+ padding: 15px
60
+ }
61
+
62
+ .panel_table-wrapper_tbody {
63
+ border-bottom: 1px solid rgba(128, 128, 128, 0.297);
64
+ }
65
+
66
+ .panel_table-wrapper_tbody > th {
67
+ padding: 18px;
68
+ font-weight: 400;
69
+ white-space: nowrap;
70
+ }
71
+
72
+ .panel_table-wrapper_tbody_active{
73
+ background: #1E293B;
74
+ height: 50px;
75
+ border-bottom: 1px solid rgba(128, 128, 128, 0.297);
76
+ color: white;
77
+ }
78
+
79
+ .react-flow__container {
80
+ position: absolute;
81
+ width: 100%;
82
+ height: 100%;
83
+ top: 0;
84
+ left: 0;
85
+ }
86
+ .react-flow__pane {
87
+ z-index: 1;
88
+ cursor: -webkit-grab;
89
+ cursor: grab;
90
+ }
91
+ .react-flow__pane.selection {
92
+ cursor: pointer;
93
+ }
94
+ .react-flow__pane.dragging {
95
+ cursor: -webkit-grabbing;
96
+ cursor: grabbing;
97
+ }
98
+ .react-flow__viewport {
99
+ transform-origin: 0 0;
100
+ z-index: 2;
101
+ pointer-events: none;
102
+ }
103
+ .react-flow__renderer {
104
+ z-index: 4;
105
+ }
106
+ .react-flow__selection {
107
+ z-index: 6;
108
+ }
109
+ .react-flow__nodesselection-rect:focus,
110
+ .react-flow__nodesselection-rect:focus-visible {
111
+ outline: none;
112
+ }
113
+ .react-flow .react-flow__edges {
114
+ pointer-events: none;
115
+ overflow: visible;
116
+ }
117
+ .react-flow__edge-path,
118
+ .react-flow__connection-path {
119
+ stroke: #b1b1b7;
120
+ stroke-width: 1;
121
+ fill: none;
122
+ }
123
+ .react-flow__edge {
124
+ pointer-events: visibleStroke;
125
+ cursor: pointer;
126
+ }
127
+ .react-flow__edge.animated path {
128
+ stroke-dasharray: 5;
129
+ -webkit-animation: dashdraw 0.5s linear infinite;
130
+ animation: dashdraw 0.5s linear infinite;
131
+ }
132
+ .react-flow__edge.animated path.react-flow__edge-interaction {
133
+ stroke-dasharray: none;
134
+ -webkit-animation: none;
135
+ animation: none;
136
+ }
137
+ .react-flow__edge.inactive {
138
+ pointer-events: none;
139
+ }
140
+ .react-flow__edge.selected,
141
+ .react-flow__edge:focus,
142
+ .react-flow__edge:focus-visible {
143
+ outline: none;
144
+ }
145
+ .react-flow__edge.selected .react-flow__edge-path,
146
+ .react-flow__edge:focus .react-flow__edge-path,
147
+ .react-flow__edge:focus-visible .react-flow__edge-path {
148
+ stroke: #555;
149
+ }
150
+ .react-flow__edge-textwrapper {
151
+ pointer-events: all;
152
+ }
153
+ .react-flow__edge-textbg {
154
+ fill: white;
155
+ }
156
+ .react-flow__edge .react-flow__edge-text {
157
+ pointer-events: none;
158
+ -webkit-user-select: none;
159
+ -moz-user-select: none;
160
+ user-select: none;
161
+ }
162
+ .react-flow__connection {
163
+ pointer-events: none;
164
+ }
165
+ .react-flow__connection .animated {
166
+ stroke-dasharray: 5;
167
+ -webkit-animation: dashdraw 0.5s linear infinite;
168
+ animation: dashdraw 0.5s linear infinite;
169
+ }
170
+ .react-flow__connectionline {
171
+ z-index: 1001;
172
+ }
173
+ .react-flow__nodes {
174
+ pointer-events: none;
175
+ transform-origin: 0 0;
176
+ }
177
+ .react-flow__node {
178
+ position: absolute;
179
+ -webkit-user-select: none;
180
+ -moz-user-select: none;
181
+ user-select: none;
182
+ pointer-events: all;
183
+ transform-origin: 0 0;
184
+ box-sizing: border-box;
185
+ cursor: -webkit-grab;
186
+ cursor: grab;
187
+ }
188
+ .react-flow__node.dragging {
189
+ cursor: -webkit-grabbing;
190
+ cursor: grabbing;
191
+ }
192
+ .react-flow__nodesselection {
193
+ z-index: 3;
194
+ transform-origin: left top;
195
+ pointer-events: none;
196
+ }
197
+ .react-flow__nodesselection-rect {
198
+ position: absolute;
199
+ pointer-events: all;
200
+ cursor: -webkit-grab;
201
+ cursor: grab;
202
+ }
203
+ .react-flow__handle {
204
+ position: absolute;
205
+ pointer-events: none;
206
+ min-width: 5px;
207
+ min-height: 5px;
208
+ width: 6px;
209
+ height: 6px;
210
+ background: #1a192b;
211
+ border: 1px solid white;
212
+ border-radius: 100%;
213
+ }
214
+ .react-flow__handle.connectionindicator {
215
+ pointer-events: all;
216
+ cursor: crosshair;
217
+ }
218
+ .react-flow__handle-bottom {
219
+ top: auto;
220
+ left: 50%;
221
+ bottom: -4px;
222
+ transform: translate(-50%, 0);
223
+ }
224
+ .react-flow__handle-top {
225
+ left: 50%;
226
+ top: -4px;
227
+ transform: translate(-50%, 0);
228
+ }
229
+ .react-flow__handle-left {
230
+ top: 50%;
231
+ left: -4px;
232
+ transform: translate(0, -50%);
233
+ }
234
+ .react-flow__handle-right {
235
+ right: -4px;
236
+ top: 50%;
237
+ transform: translate(0, -50%);
238
+ }
239
+ .react-flow__edgeupdater {
240
+ cursor: move;
241
+ pointer-events: all;
242
+ }
243
+ .react-flow__panel {
244
+ position: absolute;
245
+ z-index: 5;
246
+ margin: 15px;
247
+ }
248
+ .react-flow__panel.top {
249
+ top: 0;
250
+ }
251
+ .react-flow__panel.bottom {
252
+ bottom: 0;
253
+ }
254
+ .react-flow__panel.left {
255
+ left: 0;
256
+ }
257
+ .react-flow__panel.right {
258
+ right: 0;
259
+ }
260
+ .react-flow__panel.center {
261
+ left: 50%;
262
+ transform: translateX(-50%);
263
+ }
264
+ .react-flow__attribution {
265
+ display: none;
266
+ font-size: 10px;
267
+ background: rgba(255, 255, 255, 0.5);
268
+ padding: 2px 3px;
269
+ margin: 0;
270
+ }
271
+ .react-flow__attribution a {
272
+ text-decoration: none;
273
+ color: #999;
274
+ }
275
+ @-webkit-keyframes dashdraw {
276
+ from {
277
+ stroke-dashoffset: 10;
278
+ }
279
+ }
280
+ @keyframes dashdraw {
281
+ from {
282
+ stroke-dashoffset: 10;
283
+ }
284
+ }
285
+ .react-flow__edgelabel-renderer {
286
+ position: absolute;
287
+ width: 100%;
288
+ height: 100%;
289
+ pointer-events: none;
290
+ -webkit-user-select: none;
291
+ -moz-user-select: none;
292
+ user-select: none;
293
+ }
294
+ .react-flow__edge.updating .react-flow__edge-path {
295
+ stroke: #777;
296
+ }
297
+ .react-flow__edge-text {
298
+ font-size: 10px;
299
+ }
300
+ .react-flow__node.selectable:focus,
301
+ .react-flow__node.selectable:focus-visible {
302
+ outline: none;
303
+ }
304
+ .react-flow__node-default,
305
+ .react-flow__node-input,
306
+ .react-flow__node-output,
307
+ .react-flow__node-group {
308
+ padding: 10px;
309
+ border-radius: 3px;
310
+ width: 150px;
311
+ font-size: 12px;
312
+ color: #222;
313
+ text-align: center;
314
+ border-width: 1px;
315
+ border-style: solid;
316
+ border-color: #1a192b;
317
+ background-color: white;
318
+ }
319
+ .react-flow__node-default.selectable:hover, .react-flow__node-input.selectable:hover, .react-flow__node-output.selectable:hover, .react-flow__node-group.selectable:hover {
320
+ box-shadow: 0 1px 4px 1px rgba(0, 0, 0, 0.08);
321
+ }
322
+ .react-flow__node-default.selectable.selected,
323
+ .react-flow__node-default.selectable:focus,
324
+ .react-flow__node-default.selectable:focus-visible,
325
+ .react-flow__node-input.selectable.selected,
326
+ .react-flow__node-input.selectable:focus,
327
+ .react-flow__node-input.selectable:focus-visible,
328
+ .react-flow__node-output.selectable.selected,
329
+ .react-flow__node-output.selectable:focus,
330
+ .react-flow__node-output.selectable:focus-visible,
331
+ .react-flow__node-group.selectable.selected,
332
+ .react-flow__node-group.selectable:focus,
333
+ .react-flow__node-group.selectable:focus-visible {
334
+ box-shadow: 0 0 0 0.5px #1a192b;
335
+ }
336
+ .react-flow__node-group {
337
+ background-color: rgba(240, 240, 240, 0.25);
338
+ }
339
+ .react-flow__nodesselection-rect,
340
+ .react-flow__selection {
341
+ background: rgba(0, 89, 220, 0.08);
342
+ border: 1px dotted rgba(0, 89, 220, 0.8);
343
+ }
344
+ .react-flow__nodesselection-rect:focus,
345
+ .react-flow__nodesselection-rect:focus-visible,
346
+ .react-flow__selection:focus,
347
+ .react-flow__selection:focus-visible {
348
+ outline: none;
349
+ }
350
+ .react-flow__controls {
351
+ box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.08);
352
+ }
353
+ .react-flow__controls-button {
354
+ border: none;
355
+ background: #fefefe;
356
+ border-bottom: 1px solid #eee;
357
+ box-sizing: content-box;
358
+ display: flex;
359
+ justify-content: center;
360
+ align-items: center;
361
+ width: 16px;
362
+ height: 16px;
363
+ cursor: pointer;
364
+ -webkit-user-select: none;
365
+ -moz-user-select: none;
366
+ user-select: none;
367
+ padding: 5px;
368
+ }
369
+ .react-flow__controls-button:hover {
370
+ background: #f4f4f4;
371
+ }
372
+ .react-flow__controls-button svg {
373
+ width: 100%;
374
+ max-width: 12px;
375
+ max-height: 12px;
376
+ }
377
+ .react-flow__controls-button:disabled {
378
+ pointer-events: none;
379
+ }
380
+ .react-flow__controls-button:disabled svg {
381
+ fill-opacity: 0.4;
382
+ }
383
+ .react-flow__minimap {
384
+ background-color: #fff;
385
+ }
386
+ .react-flow__resize-control {
387
+ position: absolute;
388
+ }
389
+ .react-flow__resize-control.left,
390
+ .react-flow__resize-control.right {
391
+ cursor: ew-resize;
392
+ }
393
+ .react-flow__resize-control.top,
394
+ .react-flow__resize-control.bottom {
395
+ cursor: ns-resize;
396
+ }
397
+ .react-flow__resize-control.top.left,
398
+ .react-flow__resize-control.bottom.right {
399
+ cursor: nwse-resize;
400
+ }
401
+ .react-flow__resize-control.bottom.left,
402
+ .react-flow__resize-control.top.right {
403
+ cursor: nesw-resize;
404
+ }
405
+ /* handle styles */
406
+ .react-flow__resize-control.handle {
407
+ width: 4px;
408
+ height: 4px;
409
+ border: 1px solid #fff;
410
+ border-radius: 1px;
411
+ background-color: #3367d9;
412
+ transform: translate(-50%, -50%);
413
+ }
414
+ .react-flow__resize-control.handle.left {
415
+ left: 0;
416
+ top: 50%;
417
+ }
418
+ .react-flow__resize-control.handle.right {
419
+ left: 100%;
420
+ top: 50%;
421
+ }
422
+ .react-flow__resize-control.handle.top {
423
+ left: 50%;
424
+ top: 0;
425
+ }
426
+ .react-flow__resize-control.handle.bottom {
427
+ left: 50%;
428
+ top: 100%;
429
+ }
430
+ .react-flow__resize-control.handle.top.left {
431
+ left: 0;
432
+ }
433
+ .react-flow__resize-control.handle.bottom.left {
434
+ left: 0;
435
+ }
436
+ .react-flow__resize-control.handle.top.right {
437
+ left: 100%;
438
+ }
439
+ .react-flow__resize-control.handle.bottom.right {
440
+ left: 100%;
441
+ }
442
+ /* line styles */
443
+ .react-flow__resize-control.line {
444
+ border-color: #3367d9;
445
+ border-width: 0;
446
+ border-style: solid;
447
+ }
448
+ .react-flow__resize-control.line.left,
449
+ .react-flow__resize-control.line.right {
450
+ width: 1px;
451
+ transform: translate(-50%, 0);
452
+ top: 0;
453
+ height: 100%;
454
+ }
455
+ .react-flow__resize-control.line.left {
456
+ left: 0;
457
+ border-left-width: 1px;
458
+ }
459
+ .react-flow__resize-control.line.right {
460
+ left: 100%;
461
+ border-right-width: 1px;
462
+ }
463
+ .react-flow__resize-control.line.top,
464
+ .react-flow__resize-control.line.bottom {
465
+ height: 1px;
466
+ transform: translate(0, -50%);
467
+ left: 0;
468
+ width: 100%;
469
+ }
470
+ .react-flow__resize-control.line.top {
471
+ top: 0;
472
+ border-top-width: 1px;
473
+ }
474
+ .react-flow__resize-control.line.bottom {
475
+ border-bottom-width: 1px;
476
+ top: 100%;
477
+ }
478
+ .examples-wrapper{
479
+ margin-top: 50px;
480
+ }
481
+
482
+ .examples-wrapper > h1 {
483
+ padding-bottom: 10px;
484
+ }