formeo 4.2.4 → 5.0.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/dist/formeo.css CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  /**
3
3
  formeo - https://formeo.io
4
- Version: 4.2.3
4
+ Version: 4.2.5
5
5
  Author: Draggable https://draggable.io
6
6
  */
7
7
 
@@ -252,6 +252,149 @@ button[class*=-clone]:hover .svg-icon {
252
252
  background-color: #fff;
253
253
  }
254
254
 
255
+ .formeo-dialog {
256
+ border: none;
257
+ border-radius: 8px;
258
+ padding: 0;
259
+ max-width: min(90vw, 500px);
260
+ box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
261
+ position: absolute;
262
+ margin: 0;
263
+ }
264
+ .formeo-dialog.dialog-position-top {
265
+ left: 50%;
266
+ top: 20vh;
267
+ transform: translateX(-50%);
268
+ }
269
+ .formeo-dialog.dialog-position-center {
270
+ left: 50%;
271
+ top: 50%;
272
+ transform: translate(-50%, -50%);
273
+ }
274
+ .formeo-dialog.dialog-position-trigger {
275
+ left: -9999px;
276
+ top: -9999px;
277
+ }
278
+ .formeo-dialog::backdrop {
279
+ background-color: rgba(0, 0, 0, 0.5);
280
+ backdrop-filter: blur(2px);
281
+ animation: backdrop-fade-in 266ms ease-out;
282
+ }
283
+ .formeo-dialog .dialog-form {
284
+ display: flex;
285
+ flex-direction: column;
286
+ gap: 8px;
287
+ padding: 16px;
288
+ min-width: 300px;
289
+ }
290
+ .formeo-dialog .dialog-title {
291
+ margin: 0;
292
+ font-size: 1.25rem;
293
+ font-weight: 600;
294
+ color: rgb(25.5, 25.5, 25.5);
295
+ }
296
+ .formeo-dialog .dialog-body {
297
+ display: flex;
298
+ flex-direction: column;
299
+ gap: 8px;
300
+ }
301
+ .formeo-dialog .dialog-body label {
302
+ display: flex;
303
+ flex-direction: column;
304
+ gap: 4px;
305
+ font-weight: 500;
306
+ font-size: 0.9rem;
307
+ color: #333333;
308
+ }
309
+ .formeo-dialog .dialog-body label input,
310
+ .formeo-dialog .dialog-body label textarea,
311
+ .formeo-dialog .dialog-body label select {
312
+ padding: 0.3em 0.6em;
313
+ border: 1px solid #cccccc;
314
+ border-radius: 4px;
315
+ font-size: 1rem;
316
+ }
317
+ .formeo-dialog .dialog-body label input:focus,
318
+ .formeo-dialog .dialog-body label textarea:focus,
319
+ .formeo-dialog .dialog-body label select:focus {
320
+ outline: 2px solid rgb(50, 93, 136);
321
+ outline-offset: 0;
322
+ }
323
+ .formeo-dialog .dialog-message {
324
+ margin: 0;
325
+ line-height: 1.6;
326
+ color: rgb(25.5, 25.5, 25.5);
327
+ }
328
+ .formeo-dialog .dialog-prompt-label .dialog-message {
329
+ margin-bottom: 4px;
330
+ }
331
+ .formeo-dialog .dialog-prompt-input {
332
+ width: 100%;
333
+ }
334
+ .formeo-dialog .dialog-actions {
335
+ display: flex;
336
+ gap: 8px;
337
+ justify-content: flex-end;
338
+ margin-top: 4px;
339
+ }
340
+ .formeo-dialog .dialog-actions button {
341
+ min-width: 80px;
342
+ }
343
+ .formeo-dialog[open] {
344
+ animation: dialog-fade-in 266ms ease-out;
345
+ }
346
+ .formeo-dialog.config-item-dialog label {
347
+ display: flex;
348
+ flex-direction: row;
349
+ margin-bottom: 8px;
350
+ }
351
+
352
+ @keyframes dialog-fade-in {
353
+ from {
354
+ opacity: 0;
355
+ transform: scale(0.95);
356
+ }
357
+ to {
358
+ opacity: 1;
359
+ transform: scale(1);
360
+ }
361
+ }
362
+ @keyframes dialog-fade-in-top {
363
+ from {
364
+ opacity: 0;
365
+ transform: translateX(-50%) scale(0.95);
366
+ }
367
+ to {
368
+ opacity: 1;
369
+ transform: translateX(-50%) scale(1);
370
+ }
371
+ }
372
+ @keyframes dialog-fade-in-center {
373
+ from {
374
+ opacity: 0;
375
+ transform: translate(-50%, -50%) scale(0.95);
376
+ }
377
+ to {
378
+ opacity: 1;
379
+ transform: translate(-50%, -50%) scale(1);
380
+ }
381
+ }
382
+ .dialog-position-top[open] {
383
+ animation: dialog-fade-in-top 266ms ease-out;
384
+ }
385
+
386
+ .dialog-position-center[open] {
387
+ animation: dialog-fade-in-center 266ms ease-out;
388
+ }
389
+
390
+ @keyframes backdrop-fade-in {
391
+ from {
392
+ opacity: 0;
393
+ }
394
+ to {
395
+ opacity: 1;
396
+ }
397
+ }
255
398
  #formeo-sprite {
256
399
  display: none !important;
257
400
  visibility: hidden !important;
@@ -517,6 +660,16 @@ button[class*=-clone]:hover .svg-icon {
517
660
  .formeo .text-error {
518
661
  color: rgb(217, 83, 79);
519
662
  }
663
+ .formeo small.f-help-text {
664
+ display: block;
665
+ }
666
+ .formeo label .f-tooltip, .formeo .prev-label .f-tooltip {
667
+ margin: 0 4px;
668
+ }
669
+ .formeo label .f-tooltip svg, .formeo .prev-label .f-tooltip svg {
670
+ width: 16px;
671
+ height: 16px;
672
+ }
520
673
  .formeo.formeo-editor {
521
674
  display: flex;
522
675
  flex-direction: row;
@@ -994,10 +1147,11 @@ button[class*=-clone]:hover .svg-icon {
994
1147
  .formeo.formeo-editor .formeo-field .prev-label {
995
1148
  min-height: 24px;
996
1149
  max-width: calc(100% - 24px);
997
- display: flex;
998
- align-items: flex-end;
999
1150
  margin-bottom: 4px;
1000
1151
  }
1152
+ .formeo.formeo-editor .formeo-field .prev-label input {
1153
+ width: auto;
1154
+ }
1001
1155
  .formeo.formeo-editor .formeo-field [contenteditable] {
1002
1156
  padding: 1px 2px;
1003
1157
  user-select: text;
@@ -1113,6 +1267,7 @@ button[class*=-clone]:hover .svg-icon {
1113
1267
  }
1114
1268
  .formeo.formeo-editor .component-edit .component-prop {
1115
1269
  display: flex;
1270
+ gap: 8px;
1116
1271
  }
1117
1272
  .formeo.formeo-editor .component-edit .prop-controls {
1118
1273
  flex-shrink: 0;
@@ -1248,6 +1403,24 @@ button[class*=-clone]:hover .svg-icon {
1248
1403
  .formeo.formeo-editor .component-edit .prop-controls [contenteditable]:focus {
1249
1404
  z-index: 1;
1250
1405
  }
1406
+ .formeo.formeo-editor .f-input-wrap .component-edit [disabled] {
1407
+ display: none;
1408
+ }
1409
+ .formeo.formeo-editor .component-edit .f-input-wrap {
1410
+ display: flex;
1411
+ align-items: center;
1412
+ flex: 1;
1413
+ }
1414
+ .formeo.formeo-editor .component-edit .f-input-wrap.disabled-prop {
1415
+ display: none;
1416
+ }
1417
+ .formeo.formeo-editor .component-edit .f-input-wrap.locked-prop {
1418
+ pointer-events: none;
1419
+ opacity: 0.7;
1420
+ }
1421
+ .formeo.formeo-editor .component-edit .f-input-wrap.locked-prop select {
1422
+ background-image: none;
1423
+ }
1251
1424
  .formeo.formeo-editor .component-edit .control-count-2 .prop-controls:hover {
1252
1425
  width: 48px;
1253
1426
  }