@jotforminc/dnd-builder 2.4.2 → 2.4.3

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 (42) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/lib/cjs/assets/svg/page_settings.svg.js +4 -26
  3. package/lib/cjs/assets/svg/page_settings.svg.js.map +1 -1
  4. package/lib/cjs/assets/svg/presentation/enter_fullscreen.svg.js +6 -3
  5. package/lib/cjs/assets/svg/presentation/enter_fullscreen.svg.js.map +1 -1
  6. package/lib/cjs/assets/svg/presentation/exit_fullscreen.svg.js +7 -4
  7. package/lib/cjs/assets/svg/presentation/exit_fullscreen.svg.js.map +1 -1
  8. package/lib/cjs/components/Builder/ZoomControls.js +3 -3
  9. package/lib/cjs/components/Builder/ZoomControls.js.map +1 -1
  10. package/lib/cjs/components/TextEditor/CustomToolbar/CustomToolbar.js +2 -2
  11. package/lib/cjs/components/TextEditor/CustomToolbar/CustomToolbar.js.map +1 -1
  12. package/lib/cjs/styles/_jfDarkTheme.scss +1 -1
  13. package/lib/cjs/styles/_jfLightTheme.scss +1 -1
  14. package/lib/cjs/styles/_jfReportsFloatings.scss +61 -32
  15. package/lib/cjs/styles/_jfReportsPages.scss +5 -1
  16. package/lib/cjs/styles/_jfReportsPanelElements.scss +12 -8
  17. package/lib/cjs/styles/_jfReportsPanels.scss +1 -1
  18. package/lib/cjs/styles/_jfReportsReportItem.scss +21 -7
  19. package/lib/cjs/styles/_jfReportsSVG.scss +1 -1
  20. package/lib/cjs/styles/_jfReportsTextEditor.scss +76 -29
  21. package/lib/cjs/styles/_jfReportsVariables.scss +2 -2
  22. package/lib/esm/assets/svg/page_settings.svg.js +4 -26
  23. package/lib/esm/assets/svg/page_settings.svg.js.map +1 -1
  24. package/lib/esm/assets/svg/presentation/enter_fullscreen.svg.js +6 -3
  25. package/lib/esm/assets/svg/presentation/enter_fullscreen.svg.js.map +1 -1
  26. package/lib/esm/assets/svg/presentation/exit_fullscreen.svg.js +7 -4
  27. package/lib/esm/assets/svg/presentation/exit_fullscreen.svg.js.map +1 -1
  28. package/lib/esm/components/Builder/ZoomControls.js +3 -3
  29. package/lib/esm/components/Builder/ZoomControls.js.map +1 -1
  30. package/lib/esm/components/TextEditor/CustomToolbar/CustomToolbar.js +2 -2
  31. package/lib/esm/components/TextEditor/CustomToolbar/CustomToolbar.js.map +1 -1
  32. package/lib/esm/styles/_jfDarkTheme.scss +1 -1
  33. package/lib/esm/styles/_jfLightTheme.scss +1 -1
  34. package/lib/esm/styles/_jfReportsFloatings.scss +61 -32
  35. package/lib/esm/styles/_jfReportsPages.scss +5 -1
  36. package/lib/esm/styles/_jfReportsPanelElements.scss +12 -8
  37. package/lib/esm/styles/_jfReportsPanels.scss +1 -1
  38. package/lib/esm/styles/_jfReportsReportItem.scss +21 -7
  39. package/lib/esm/styles/_jfReportsSVG.scss +1 -1
  40. package/lib/esm/styles/_jfReportsTextEditor.scss +76 -29
  41. package/lib/esm/styles/_jfReportsVariables.scss +2 -2
  42. package/package.json +1 -1
@@ -15,7 +15,8 @@
15
15
  display: flex;
16
16
  flex-direction: column;
17
17
  background-color: $white;
18
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
18
+ box-shadow: 0 0 4px rgba(10, 21, 81, 0.06);
19
+ border-radius: 4px;
19
20
 
20
21
  .controllerItem {
21
22
  transition: $transition;
@@ -24,6 +25,10 @@
24
25
  background-color: $inputGray;
25
26
  }
26
27
 
28
+ &.isWhite {
29
+ background-color: $white;
30
+ }
31
+
27
32
  &.isSingle {
28
33
  border-radius: 6px;
29
34
  }
@@ -31,7 +36,6 @@
31
36
  &:hover .jfReportSVG:not(.icon-trashLine) {
32
37
  fill: $blue;
33
38
  }
34
-
35
39
  &:hover .jfReportSVG.icon-trashLine {
36
40
  fill: $danger;
37
41
  }
@@ -39,12 +43,14 @@
39
43
 
40
44
  .controllerIndicator {
41
45
  font-size: 0.75rem;
46
+ font-weight: 500;
42
47
  margin: 15px auto;
43
48
  text-align: center;
49
+ color: #0A1551;
44
50
  }
45
51
 
46
52
  & + .floatingController-container {
47
- margin-top: 10px;
53
+ margin-top: 8px;
48
54
  }
49
55
  }
50
56
 
@@ -54,18 +60,17 @@
54
60
 
55
61
  &.forBar {
56
62
  height: 50px;
57
- background: #404651;
63
+ background: #252D5B;
58
64
  border-radius: 6px;
59
65
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
60
66
  max-width: 436px;
61
- min-width: 280px;
62
- padding: 13px 15px;
67
+ padding: 12px;
63
68
  text-align: center;
64
69
 
65
70
  .divider {
66
71
  width: 1px;
67
- height: 30px;
68
- background: #272D3D;
72
+ height: 20px;
73
+ background: rgba(#FFFFFF, 0.1);
69
74
  }
70
75
 
71
76
  .select-zoom {
@@ -80,46 +85,58 @@
80
85
  }
81
86
 
82
87
  .forSlide {
83
- margin: 0 20px;
88
+ margin: 0 12px;
84
89
  }
85
90
 
86
91
  .jfReportButton, .controllerItem {
87
- height: 24px;
88
- width: 24px;
92
+ height: 28px;
93
+ width: 28px;
89
94
  padding: 0 4px;
90
95
  }
91
96
 
92
97
  .jfReportButton {
93
98
  &.download {
99
+ background-color: rgba(120, 187, 7, 0.2);
100
+ &:hover { background-color: rgba(120, 187, 7, 0.6); }
94
101
  .icon-download {
95
102
  width: 8px;
96
103
  height: 10px;
97
104
  }
98
105
  }
99
106
  &.print {
100
- border: 1px solid #A8AABF;
107
+ border: 1px solid #6F76A7;
108
+ background-color: rgba(111, 118, 167, 0.2);
109
+ &:hover { background-color: rgba(111, 118, 167, 0.6); }
101
110
  .icon-print {
102
- width: 10px;
103
- height: 10px;
104
- fill: #A8AABF;
111
+ width: 12px;
112
+ height: 12px;
113
+ fill: #FFF;
105
114
  }
106
115
  }
107
- &.download, &.print {
108
- background-color: rgba(1, 189, 111, 0.1);
109
- &:hover {
110
- background-color: #2e525c;
116
+ &.isSuccess {
117
+ border: 1px solid #78BB07;
118
+ background-color: rgba(120, 187, 7, 0.2);
119
+ &:hover { background-color: rgba(120, 187, 7, 0.6); }
120
+ .icon-download {
121
+ width: 11px;
122
+ height: 14px;
123
+ fill: #fff;
111
124
  }
112
125
  }
126
+ &.forAction {
127
+ .icon-close { fill: rgba(200, 206, 237, 0.6); }
128
+ &:hover .icon-close { fill: #fff; }
129
+ }
113
130
  .icon-fullscreen {
114
- width: 14px;
115
- height: 14px;
131
+ width: 12px;
132
+ height: 12px;
116
133
  }
117
134
  }
118
135
 
119
136
  .action-container {
120
- margin-left: 20px;
137
+ margin-left: 12px;
121
138
  .jfReportButton + .jfReportButton:not(.close) {
122
- margin-left: 10px;
139
+ margin-left: 8px;
123
140
  }
124
141
  .close {
125
142
  margin-left: 15px;
@@ -135,13 +152,13 @@
135
152
  }
136
153
 
137
154
  .controllerItem {
138
- background: #303339;
155
+ background: #343C6A;
139
156
  border-radius: 3px;
140
157
  border: none;
141
158
  transition: $transition;
142
159
 
143
160
  &:hover {
144
- background: lighten(#2E354A, 5);
161
+ background: rgba(111, 118, 167, 0.6);
145
162
  }
146
163
  }
147
164
 
@@ -171,7 +188,7 @@
171
188
  letter-spacing: .7px;
172
189
  font-size: 0.875rem;
173
190
  line-height: 28px;
174
- min-width: 65px;
191
+ min-width: 57px;
175
192
  padding: 0 5px;
176
193
 
177
194
  span {
@@ -187,6 +204,7 @@
187
204
 
188
205
  .floatingController-container {
189
206
  border-radius: 6px;
207
+ background-color: $inputGray;
190
208
 
191
209
  & > .controllerItem:not(.isSingle) {
192
210
  padding: 8px 6px;
@@ -219,9 +237,10 @@
219
237
 
220
238
  &.forSlides, &.forPageAction {
221
239
  .floatingController-container:not(.hasGroup) {
240
+ padding: 4px;
222
241
  .controllerItem {
223
- padding: 7px 6px;
224
- border-radius: 6px;
242
+ padding: 0;
243
+ border-radius: 3px;
225
244
  }
226
245
  }
227
246
  }
@@ -233,12 +252,22 @@
233
252
 
234
253
  .floatingController-container {
235
254
  border-radius: 3px;
236
- }
237
255
 
238
- .floatingController-container.hasGroup {
239
- padding: 6px 0;
240
256
  .controllerItem {
241
- padding: 6px 5px;
257
+ width: 20px;
258
+ height: 20px;
259
+ &:hover { background-color: #F3F3FE; }
260
+ }
261
+
262
+ &.hasGroup {
263
+ padding: 4px;
264
+ .controllerItem {
265
+ border-radius: 3px;
266
+ padding: 0;
267
+ margin-top: 4px;
268
+ &:first-child { margin-top: 0; }
269
+ }
270
+ .isDanger:hover { background-color: rgba(235, 63, 63, 0.1); }
242
271
  }
243
272
  }
244
273
  }
@@ -35,9 +35,11 @@
35
35
  width: 40px;
36
36
  padding: 3px;
37
37
  font-size: 0.875rem;
38
+ font-weight: 500;
38
39
  background-color: $white;
39
40
  border-radius: 3px;
40
- box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
41
+ box-shadow: 0 0 4px rgba(10, 21, 81, 0.06);
42
+ color: #0A1551;
41
43
  }
42
44
  }
43
45
  }
@@ -183,6 +185,8 @@
183
185
  height: 14px;
184
186
  fill: $blue;
185
187
  stroke: $blue;
188
+
189
+ > path { fill: $blue; }
186
190
  }
187
191
  }
188
192
 
@@ -717,7 +717,7 @@
717
717
  }
718
718
 
719
719
  .floatingController.forBar .toolSection-dropdownWrapper {
720
- margin-right: 20px;
720
+ margin-right: 12px;
721
721
 
722
722
  &:after {
723
723
  display: none;
@@ -725,18 +725,22 @@
725
725
 
726
726
  &:before {
727
727
  right: 7px;
728
- border-left: 4px solid transparent;
729
- border-right: 4px solid transparent;
730
- border-top: 6px solid $white;
731
- top: calc(50% - 3px);
728
+ top: calc(50% - 2px);
729
+ background-repeat: no-repeat;
730
+ background-image: url("data:image/svg+xml,%3Csvg width=%276%27 height=%274%27 viewBox=%270 0 6 4%27 fill=%27none%27 xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath d=%27M5.00506 0.413817C5.23825 0.191095 5.60551 0.195263 5.83143 0.427641C6.0582 0.660893 6.05369 1.03103 5.8167 1.2733L3.40473 3.58782C3.17841 3.80363 2.82568 3.80438 2.5933 3.58747C2.29148 3.29771 2.29148 3.29771 1.38603 2.42839C0.482784 1.56125 0.482784 1.56125 0.16829 1.25885C-0.0560968 1.02805 -0.0560968 0.65844 0.16829 0.427641C0.393201 0.196305 0.757388 0.191435 0.995763 0.413283L2.99983 2.33753L5.00506 0.413817Z%27 fill=%27white%27/%3E%3C/svg%3E%0A");
731
+ background-size: contain;
732
+ width: 8px;
733
+ height: 5px;
734
+ border: 0;
732
735
  }
733
736
 
734
737
  .toolSection-dropdown {
735
- width: 60px;
736
- height: 24px;
738
+ width: 58px;
739
+ height: 28px;
737
740
  font-size: 0.675rem;
738
- padding-left: 10px;
741
+ padding-left: 6px;
739
742
  color: $white;
743
+ appearance: none;
740
744
  }
741
745
  }
742
746
 
@@ -301,7 +301,7 @@
301
301
 
302
302
  &.addElementToggle {
303
303
  width: 160px;
304
- background-color: #303339;
304
+ background-color: #252D5B;
305
305
  height: 54px;
306
306
  border-radius: 0;
307
307
  border-top-right-radius: 100px;
@@ -221,7 +221,7 @@
221
221
  top: 0;
222
222
  right: -24px;
223
223
  background-color: $blue;
224
- border-radius: 3px;
224
+ border-radius: 4px;
225
225
  text-align: center;
226
226
  pointer-events: all;
227
227
  animation: .2s fadeRight forwards;
@@ -238,20 +238,34 @@
238
238
  transition: .3s ease-in-out;
239
239
  transform: translateZ(0);
240
240
  }
241
-
242
- &:hover svg {
243
- opacity: .7;
244
- }
245
241
  }
246
242
 
247
243
  &:not(.forLocked) {
244
+ padding: 0 4px;
248
245
  .reportItemMenu-item {
246
+ display: inline-flex;
247
+ align-items: center;
248
+ justify-content: center;
249
+ width: 20px;
250
+ height: 20px;
251
+ padding: 0;
252
+ border-radius: 3px;
253
+ transition: 0.3s ease-in;
254
+
255
+ + .reportItemMenu-item {
256
+ margin-top: 4px;
257
+ }
258
+
249
259
  &:first-child {
250
- margin-top: 6px;
260
+ margin-top: 4px;
251
261
  }
252
262
 
253
263
  &:last-child {
254
- margin-bottom: 6px;
264
+ margin-bottom: 4px;
265
+ }
266
+
267
+ &:hover {
268
+ background-color: rgba(255, 255, 255, 0.2);
255
269
  }
256
270
  }
257
271
  }
@@ -39,7 +39,7 @@
39
39
  }
40
40
 
41
41
  .controllerItem .jfReportSVG {
42
- fill: $additionalGray;
42
+ fill: $gray;
43
43
  }
44
44
 
45
45
  .toolItem-icon {
@@ -51,11 +51,6 @@
51
51
  }
52
52
  }
53
53
 
54
- .ql-toolbar.ql-snow {
55
- padding: 0;
56
- border: none;
57
- }
58
-
59
54
  .ql-toolbar {
60
55
  font-family: inherit;
61
56
  font-size: .75rem;
@@ -69,6 +64,8 @@
69
64
  border-radius: 3px;
70
65
  max-width: 100%;
71
66
  padding: 4px;
67
+ right: 0;
68
+ box-shadow: 0 2px 4px 0 rgba(#0A1551, 0.04);
72
69
 
73
70
  &.isOpened {
74
71
  width: auto;
@@ -76,11 +73,11 @@
76
73
  }
77
74
 
78
75
  .ql-button {
79
- width: 22px;
76
+ width: 20px;
80
77
  flex-shrink: 0;
81
78
 
82
79
  svg {
83
- width: 18px;
80
+ width: 16px;
84
81
  }
85
82
 
86
83
  &.hiddenVisibility {
@@ -88,21 +85,21 @@
88
85
  }
89
86
 
90
87
  .ql-stroke {
91
- stroke: #8D8FA8;
88
+ stroke: #6F76A7;
92
89
  }
93
90
 
94
91
  .ql-fill {
95
- fill: #8D8FA8;
92
+ fill: #6F76A7;
96
93
  stroke-width: 0;
97
94
  }
98
95
 
99
96
  &.ql-active {
100
97
  .ql-stroke {
101
- stroke: #8D8FA8;
98
+ stroke: #6F76A7;
102
99
  }
103
100
 
104
101
  .ql-fill {
105
- fill: #8D8FA8;
102
+ fill: #6F76A7;
106
103
  }
107
104
  }
108
105
  }
@@ -111,11 +108,11 @@
111
108
  display: inline-flex;
112
109
  justify-content: center;
113
110
  align-items: center;
114
- height: 22px;
111
+ height: 20px;
115
112
  padding: 0;
116
- border-radius: 2px;
113
+ border-radius: 3px;
117
114
  border: none;
118
- margin-left: 4px;
115
+ color: #6F76A7;
119
116
 
120
117
  &:hover {
121
118
  stroke: $blue;
@@ -124,13 +121,12 @@
124
121
  &.ql-active {
125
122
  color: #8D8FA8;
126
123
  background-color: rgba($inputGrayBorder, .3);
127
- border-radius: 2px;
124
+ border-radius: 3px;
128
125
  }
129
126
  }
130
127
 
131
-
132
128
  .qlMore {
133
- height: 22px;
129
+ height: 20px;
134
130
  color: #8D8FA8;
135
131
  position: absolute;
136
132
  right: 0;
@@ -143,7 +139,7 @@
143
139
  }
144
140
 
145
141
  .ql-picker.ql-size {
146
- width: 60px;
142
+ width: 52px;
147
143
 
148
144
  .ql-picker-label {
149
145
  justify-content: flex-start;
@@ -154,7 +150,7 @@
154
150
 
155
151
  .ql-select {
156
152
  width: auto;
157
- height: 22px;
153
+ height: 20px;
158
154
  flex-shrink: 0;
159
155
  font-size: .75rem;
160
156
 
@@ -170,7 +166,8 @@
170
166
  }
171
167
 
172
168
  .ql-select:not(.ql-size) .ql-picker-label {
173
- width: 22px;
169
+ width: 20px;
170
+ margin-left: 0;
174
171
  }
175
172
 
176
173
  .ql-divider {
@@ -189,7 +186,7 @@
189
186
  }
190
187
 
191
188
  .ql-color svg, .ql-align .ql-picker-label svg {
192
- width: 20px;
189
+ width: 16px;
193
190
  }
194
191
 
195
192
  .ql-align .ql-picker-options {
@@ -208,23 +205,27 @@
208
205
  /* stylelint-disable-next-line declaration-no-important */
209
206
  left: auto !important;
210
207
  align-items: center;
211
- height: 32px;
212
- transform: translate(100%, 150%);
208
+ height: 30px;
209
+ transform: translate(100%, 170%);
213
210
  background-color: $inputGray;
214
211
  border: 1px solid $inputGrayBorder;
215
212
  border-radius: 3px;
216
213
  box-shadow: none;
217
214
  font-size: .75rem;
218
215
  font-weight: 500;
219
- margin-left: -156px;
220
- padding: 4px;
216
+ margin-left: -207px;
217
+ padding: 4px 4px 4px 8px;
221
218
  color: #8483A9;
222
219
 
223
220
  input[type="text"] {
224
221
  border-radius: 3px;
225
- height: 26px;
222
+ height: 20px;
226
223
  font-size: .75rem;
227
224
  padding: 0 5px;
225
+ background-color: #F3F3FE;
226
+ color: rgba(#6F76A7, 0.6);
227
+ border: 0;
228
+ width: 217px;
228
229
  }
229
230
 
230
231
  &:not(.ql-hidden) {
@@ -233,11 +234,12 @@
233
234
 
234
235
  a.ql-action {
235
236
  margin-left: 4px;
236
- padding: 4px 10px;
237
+ padding: 2px 8px;
238
+ height: 20px;
237
239
  color: $white;
238
240
  background-color: $blue;
239
- line-height: inherit;
240
- border-radius: 2px;
241
+ line-height: 16px;
242
+ border-radius: 3px;
241
243
 
242
244
  &:after {
243
245
  margin: 0;
@@ -245,9 +247,54 @@
245
247
  border: none;
246
248
  }
247
249
  }
250
+
251
+ &.ql-editing {
252
+ background-color: $white;
253
+ box-shadow: 0 0 4px rgba(10, 21, 81, 0.06);
254
+ }
255
+
256
+ &[data-mode="link"]:before {
257
+ content: "Link";
258
+ color: #6F76A7;
259
+ }
248
260
  }
249
261
 
250
262
  .ql-editing {
251
263
  z-index: 100000;
252
264
  }
265
+
266
+ .ql-toolbar.ql-snow {
267
+ padding: 0;
268
+ border: none;
269
+
270
+ .ql-picker {
271
+ border-radius: 3px;
272
+ &:hover {
273
+ background-color: #F3F3FE;
274
+ }
275
+ }
276
+
277
+ .ql-button,
278
+ .ql-icon-picker,
279
+ .ql-color-picker,
280
+ .ql-color + .ql-divider {
281
+ margin-left: 8px;
282
+ }
283
+ }
284
+
285
+ .reportItemMenu + .ql-toolbar.ql-snow {
286
+ .ql-stroke {
287
+ /* stylelint-disable-next-line declaration-no-important */
288
+ stroke: #6F76A7 !important;
289
+ }
290
+
291
+ .ql-fill {
292
+ /* stylelint-disable-next-line declaration-no-important */
293
+ fill: #6F76A7 !important;
294
+ }
295
+ }
296
+ }
297
+
298
+ .reportItemMenu + .ql-toolbar.ql-snow .ql-button:hover {
299
+ background-color: #F3F3FE;
253
300
  }
@@ -10,9 +10,9 @@ $blue: #4277FF;
10
10
  $white: #FFFFFF;
11
11
  $danger: #d13723;
12
12
  $lightGray: #cccdd9;
13
- $gray: #9294aa;
13
+ $gray: #6F76A7;
14
14
  $inputGray: #fbfbfe;
15
- $inputGrayBorder: #d3d4de;
15
+ $inputGrayBorder: #E3E5F5;
16
16
  $inputDarkGrayBorder:#303339;
17
17
  $ctaGreen: #04bd6f;
18
18
  $ctaBlue: #0099FF;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jotforminc/dnd-builder",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "files": [
5
5
  "lib"
6
6
  ],