@visns-studio/visns-components 4.10.14 → 4.10.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.
@@ -364,3 +364,162 @@ input[type='file']:hover {
364
364
  max-width: 15px;
365
365
  margin-right: 5px;
366
366
  }
367
+
368
+ .modalwrap {
369
+ background: var(--tertiary-color);
370
+ border-radius: 3px;
371
+ overflow: visible;
372
+ border-top-left-radius: var(--br);
373
+ border-top-right-radius: var(--br);
374
+
375
+ .modal {
376
+ width: 100%;
377
+ position: relative;
378
+
379
+ &__header {
380
+ width: 100%;
381
+ background: var(--primary-color);
382
+ border: 2px solid rgba(var(--primary-color), 1.05);
383
+ border-top-left-radius: var(--br);
384
+ border-top-right-radius: var(--br);
385
+ box-sizing: border-box;
386
+
387
+ h1 {
388
+ color: var(--secondary-color);
389
+ margin: 0;
390
+ padding: 0.75em 0.75em;
391
+ font-size: 1.15em;
392
+ }
393
+
394
+ .modal__close {
395
+ width: max-content;
396
+ position: absolute;
397
+ right: 5px;
398
+ top: 5px;
399
+ box-sizing: border-box;
400
+ background: rgba(var(--primary-color), 1.08);
401
+ cursor: pointer;
402
+ padding: 8px 8px;
403
+ margin: 0;
404
+ outline: none;
405
+ border: none;
406
+ border-radius: var(--br);
407
+ display: block;
408
+ line-height: 1;
409
+
410
+ svg {
411
+ color: var(--secondary-color);
412
+ display: block;
413
+ }
414
+ }
415
+ }
416
+
417
+ &__content {
418
+ width: 100%;
419
+ position: relative;
420
+ padding: 0.25rem;
421
+ box-sizing: border-box;
422
+ border-top-left-radius: var(--br);
423
+ border-top-right-radius: var(--br);
424
+
425
+ .btn {
426
+ background: var(--primary-color);
427
+ border: 1px solid rgba(var(--primary-color), 1.05);
428
+
429
+ &:hover {
430
+ background: var(--secondary-color);
431
+ color: var(--tertiary-color);
432
+ }
433
+ }
434
+ }
435
+ }
436
+ }
437
+
438
+ .top--modal {
439
+ width: 100%;
440
+ max-width: 1000px !important;
441
+ height: auto;
442
+ // display: none;
443
+ padding: 0 !important;
444
+ }
445
+
446
+ // Canvas
447
+
448
+ .drawDiv {
449
+ width: 100%;
450
+ display: flex;
451
+ justify-content: space-between;
452
+
453
+ img {
454
+ width: 100%;
455
+ max-width: 470px;
456
+ display: block;
457
+ margin: 0 auto;
458
+ }
459
+ }
460
+
461
+ .drawactions {
462
+ width: 100%;
463
+ height: auto;
464
+ list-style: none;
465
+ padding: 0 1em 0 0;
466
+ margin: 0;
467
+ flex: 1;
468
+ box-sizing: border-box;
469
+
470
+ li {
471
+ width: 100%;
472
+ margin: 0 0 2px 0;
473
+
474
+ button {
475
+ width: 100%;
476
+ color: var(--paragraph-color);
477
+ border: 1px solid transparent;
478
+ padding: 0.5em 1em;
479
+ border-radius: 6px;
480
+ text-align: left;
481
+ font-size: 0.875em;
482
+
483
+ .octicon {
484
+ margin-right: 8px;
485
+ transform: scale(0.8) translateY(-1px);
486
+ }
487
+ }
488
+
489
+ .drawactions--save {
490
+ background: #4ff1ba;
491
+ color: var(--paragraph-color);
492
+ }
493
+
494
+ .drawactions--clear {
495
+ background: #ff6a6a;
496
+ color: var(--paragraph-color);
497
+ }
498
+
499
+ .drawactive {
500
+ border: 1px solid rgba(var(--paragraph-color-rgb), 1.4);
501
+ background: rgba(var(--paragraph-color-rgb), 0.2);
502
+ color: rgba(var(--paragraph-color-rgb), 1.05);
503
+ }
504
+ }
505
+ }
506
+
507
+ .drawcontainer {
508
+ display: block;
509
+ flex: 0 1 80%;
510
+ margin: 0;
511
+ border: 1px dashed rgba(var(--primary-color-rgb), 1.2);
512
+ padding: 5px;
513
+ overflow: hidden;
514
+ box-sizing: border-box;
515
+ }
516
+
517
+ .canvasWrap {
518
+ display: block;
519
+ margin: 0 auto;
520
+ }
521
+
522
+ .canvas-container {
523
+ display: block;
524
+ margin: 0 auto;
525
+ }
@@ -497,3 +497,81 @@ select {
497
497
  padding: 0.35em 1em;
498
498
  margin: 0 0.15em;
499
499
  }
500
+
501
+ .modalwrap {
502
+ background: var(--tertiary-color);
503
+ border-radius: 3px;
504
+ overflow: visible;
505
+ border-top-left-radius: var(--br);
506
+ border-top-right-radius: var(--br);
507
+
508
+ .modal {
509
+ width: 100%;
510
+ position: relative;
511
+
512
+ &__header {
513
+ width: 100%;
514
+ background: var(--primary-color);
515
+ border: 2px solid rgba(var(--primary-color), 1.05);
516
+ border-top-left-radius: var(--br);
517
+ border-top-right-radius: var(--br);
518
+ box-sizing: border-box;
519
+
520
+ h1 {
521
+ color: var(--secondary-color);
522
+ margin: 0;
523
+ padding: 0.75em 0.75em;
524
+ font-size: 1.15em;
525
+ }
526
+
527
+ .modal__close {
528
+ width: max-content;
529
+ position: absolute;
530
+ right: 5px;
531
+ top: 5px;
532
+ box-sizing: border-box;
533
+ background: rgba(var(--primary-color), 1.08);
534
+ cursor: pointer;
535
+ padding: 8px 8px;
536
+ margin: 0;
537
+ outline: none;
538
+ border: none;
539
+ border-radius: var(--br);
540
+ display: block;
541
+ line-height: 1;
542
+
543
+ svg {
544
+ color: var(--secondary-color);
545
+ display: block;
546
+ }
547
+ }
548
+ }
549
+
550
+ &__content {
551
+ width: 100%;
552
+ position: relative;
553
+ padding: 0.25rem;
554
+ box-sizing: border-box;
555
+ border-top-left-radius: var(--br);
556
+ border-top-right-radius: var(--br);
557
+
558
+ .btn {
559
+ background: var(--primary-color);
560
+ border: 1px solid rgba(var(--primary-color), 1.05);
561
+
562
+ &:hover {
563
+ background: var(--secondary-color);
564
+ color: var(--tertiary-color);
565
+ }
566
+ }
567
+ }
568
+ }
569
+ }
570
+
571
+ .top--modal {
572
+ width: 100%;
573
+ max-width: 1000px !important;
574
+ height: auto;
575
+ // display: none;
576
+ padding: 0 !important;
577
+ }
package/src/index.js CHANGED
@@ -45,6 +45,10 @@ import GenericMain from './components/crm/generic/GenericMain';
45
45
  import GenericSort from './components/crm/generic/GenericSort';
46
46
  import NotificationList from './components/crm/generic/NotificationList';
47
47
 
48
+ /** Sketching Components */
49
+ import SketchField from './components/crm/sketch/SketchField';
50
+ import Tools from './components/crm/sketch/tools';
51
+
48
52
  export {
49
53
  AsyncSelect,
50
54
  AuditLog,
@@ -79,8 +83,10 @@ export {
79
83
  Reset,
80
84
  SelectList,
81
85
  Select,
86
+ SketchField,
82
87
  SortableList,
83
88
  Table,
84
89
  TableFilter,
90
+ Tools,
85
91
  Verify,
86
92
  };