@bpmn-io/form-js-playground 0.8.0-alpha.1 → 0.9.0

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
@@ -12,12 +12,6 @@ A tool to try out and explore [@bpmn-io/form-js](../form-js) in a playful manner
12
12
  Integrate the playground into your application:
13
13
 
14
14
  ```javascript
15
- import '@bpmn-io/form-js/dist/assets/form-js.css';
16
- import '@bpmn-io/form-js/dist/assets/form-js-editor.css';
17
- import '@bpmn-io/form-js/dist/assets/dragula.css';
18
- import '@bpmn-io/form-js/dist/assets/properties-panel.css';
19
- import '@bpmn-io/form-js-playground/dist/assets/form-js-playground.css';
20
-
21
15
  import { Playground } from '@bpmn-io/form-js-playground';
22
16
 
23
17
  const playground = new Playground({
@@ -32,6 +26,21 @@ const {
32
26
  } = playground.getState();
33
27
  ```
34
28
 
29
+ ## Styling
30
+
31
+ For proper styling include the necessary stylesheets, and font used:
32
+
33
+ ```html
34
+ <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,400;0,600;1,400&display=swap" rel="stylesheet">
35
+ <link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap" rel="stylesheet">
36
+
37
+ <link rel="stylesheet" href="https://unpkg.com/@bpmn-io/form-js@0.7.0/dist/assets/form-js.css">
38
+ <link rel="stylesheet" href="https://unpkg.com/@bpmn-io/form-js@0.7.0/dist/assets/form-js-editor.css">
39
+ <link rel="stylesheet" href="https://unpkg.com/@bpmn-io/form-js@0.7.0/dist/assets/dragula.css">
40
+ <link rel="stylesheet" href="https://unpkg.com/@bpmn-io/form-js@0.7.0/dist/assets/properties-panel.css">
41
+ <link rel="stylesheet" href="https://unpkg.com/@bpmn-io/form-js@0.7.0/dist/assets/form-js-playground.css">
42
+ ```
43
+
35
44
  ## Resources
36
45
 
37
46
  * [Demo](https://demo.bpmn.io/form)
@@ -8,9 +8,12 @@
8
8
  --color-palette-container-background: var(--color-grey-225-10-97);
9
9
  --color-palette-container-border: var(--color-grey-225-10-80);
10
10
 
11
+ --color-properties-container-background: var(--color-white);
12
+
11
13
  --color-text: var(--color-grey-225-10-15);
12
14
 
13
15
  --font-family: 'IBM Plex Sans', sans-serif;
16
+ --font-family-monospace: 'IBM Plex Mono', monospace;
14
17
  }
15
18
 
16
19
  .fjs-pgl-root {
@@ -28,10 +31,14 @@
28
31
  height: 100%;
29
32
 
30
33
  display: grid;
31
- grid-template-columns: 65% 35%;
34
+ grid-template-columns: 50% 50%;
32
35
  grid-template-rows: 70% 30%;
33
36
  }
34
37
 
38
+ .fjs-pgl-inline-editor-panel .fjs-pgl-main {
39
+ grid-template-columns: 65% 35%;
40
+ }
41
+
35
42
  /**
36
43
  * Palette
37
44
  */
@@ -53,12 +60,33 @@
53
60
 
54
61
  .fjs-pgl-palette-container .fjs-palette-container .fjs-palette-field {
55
62
  justify-content: center;
63
+ flex-direction: column;
64
+ }
65
+
66
+ .fjs-pgl-palette-container .fjs-palette-container .fjs-palette-header {
67
+ text-align: center;
56
68
  }
57
69
 
58
70
  .fjs-pgl-palette-container .fjs-palette-container .fjs-palette-field-icon {
59
71
  margin: 0;
60
72
  }
61
73
 
74
+ /**
75
+ * Properties Panel
76
+ */
77
+ .fjs-pgl-properties-container {
78
+ position: relative;
79
+ display: flex;
80
+ height: 100%;
81
+ overflow-y: auto;
82
+ background-color: var(--color-properties-container-background);
83
+ --properties-panel-width: 200px;
84
+ }
85
+
86
+ .fjs-pgl-properties-container .bio-properties-panel {
87
+ --font-family: var(--font-family);
88
+ }
89
+
62
90
  /**
63
91
  * Section
64
92
  */
@@ -159,6 +187,10 @@
159
187
  height: 100%;
160
188
  }
161
189
 
190
+ .fjs-pgl-text-container > .cm-editor > .cm-scroller {
191
+ font-family: var(--font-family-monospace);
192
+ }
193
+
162
194
  .fjs-pgl-form-container > .fjs-container {
163
195
  overflow: auto;
164
196
  }