toggle-components-library 1.33.0-beta.10 → 1.33.0-beta.12

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.
@@ -1,15 +1,15 @@
1
1
 
2
2
  .toggle-input,
3
3
  .toggle-input-label,
4
- .toggle-input-counter,
4
+ .toggle-input-counter,
5
5
  .toggle-input-label-error,
6
- .toggle-input-radio-label,
6
+ .toggle-input-radio-label,
7
7
  .toggle-input-checkbox-label,
8
8
  .toggle-input-search-options,
9
9
  .toggle-input-select,
10
10
  .toggle-contact-search-container{
11
11
  @include toggle-global-font-config;
12
- }
12
+ }
13
13
 
14
14
  .toggle-input-counter{
15
15
  font-size: $toggle-font-size-small;
@@ -110,7 +110,7 @@
110
110
 
111
111
  padding : 0.8rem 1.2rem 1.4rem 1.2rem;
112
112
  background-color: $toggle-off-white;
113
- border-radius : 9px;
113
+ border-radius : 9px;
114
114
  box-sizing : border-box;
115
115
  border : 1px solid $toggle-off-white;
116
116
  position : relative;
@@ -122,7 +122,7 @@
122
122
  &.margin-bottom-0{
123
123
  padding-bottom:0;
124
124
  }
125
-
125
+
126
126
  }
127
127
 
128
128
  // When inputs are inside input groups or modals, they look a bit different
@@ -227,9 +227,13 @@
227
227
  }
228
228
  }
229
229
 
230
- .calendar-icon-disabled {
230
+ .toggle-date-input-calendar-icon-disabled {
231
231
  cursor: default;
232
- opacity: 0.5;
232
+ opacity: 0.4;
233
+ }
234
+
235
+ .toggle-date-input-disabled {
236
+ opacity: 0.7 !important;
233
237
  }
234
238
 
235
239
  .toggle-input-select-container{
@@ -241,18 +245,18 @@
241
245
  clear: both;
242
246
  width: 100%;
243
247
  &:after{
244
- content: '';
245
- width: 1.5rem;
246
- height: 1.5rem;
247
- background: transparent url("../assets/icons/arrow_down.svg") no-repeat 100% 50%;
248
- position: absolute;
249
- right: 1rem;
250
- top: 0.7rem;
251
- pointer-events: none;
248
+ content: '';
249
+ width: 1.5rem;
250
+ height: 1.5rem;
251
+ background: transparent url("../assets/icons/arrow_down.svg") no-repeat 100% 50%;
252
+ position: absolute;
253
+ right: 1rem;
254
+ top: 0.7rem;
255
+ pointer-events: none;
252
256
  }
253
257
  }
254
258
 
255
-
259
+
256
260
  .toggle-input-select{
257
261
 
258
262
  padding : 0.5rem 2.5rem 0.5rem 1rem;
@@ -334,7 +338,7 @@
334
338
  .toggle-input-radio{
335
339
  clear:both;
336
340
  float: left;
337
- margin-left:2.2rem;
341
+ margin-left:2.2rem;
338
342
  }
339
343
 
340
344
  }
@@ -368,8 +372,8 @@
368
372
  display : flex;
369
373
  align-items: center;
370
374
  }
371
-
372
-
375
+
376
+
373
377
  input[type="radio"], input[type="checkbox"]{
374
378
  display: none;
375
379
  }
@@ -396,7 +400,7 @@
396
400
  }
397
401
  }
398
402
 
399
-
403
+
400
404
 
401
405
  > input:disabled:checked + div{
402
406
  .toggle-input-radio-check-element {
@@ -435,6 +439,10 @@
435
439
  }
436
440
  }
437
441
 
442
+ .toggle-input-is-readonly:focus {
443
+ outline: none;
444
+ }
445
+
438
446
  .toggle-input-radio-label, .toggle-input-checkbox-label{
439
447
  display : inline-block;
440
448
  font-size: $toggle-font-size-large;
@@ -486,7 +494,7 @@
486
494
  }
487
495
 
488
496
  .toggle-input-checkbox-check-element {
489
- background: url('../assets/icons/checkbox_blank.svg') no-repeat;
497
+ background: url('../assets/icons/checkbox_blank.svg') no-repeat;
490
498
  }
491
499
 
492
500
  // image input
@@ -513,8 +521,8 @@ $iconWidth:20px;
513
521
  .toggle-dark-grey {
514
522
  border:7px solid inherit;
515
523
  }
516
- .toggle-draggable-group-item {
517
- position: relative;
524
+ .toggle-draggable-group-item {
525
+ position: relative;
518
526
  list-style: none;
519
527
  margin:5px 10px 5px 0px;
520
528
  .toggle-item-img {
@@ -539,7 +547,7 @@ $iconWidth:20px;
539
547
  background: url('../assets/icons/draggable.svg') no-repeat center center;
540
548
  cursor: move;
541
549
  }
542
-
550
+
543
551
  }
544
552
  .toggle-button-container{
545
553
  border:0px solid transparent!important;
@@ -548,7 +556,7 @@ $iconWidth:20px;
548
556
  height:$iconWidth;
549
557
  }
550
558
  }
551
-
559
+
552
560
 
553
561
  li:first-child div:first-child{
554
562
  border:4px solid #189ED1;
@@ -557,8 +565,8 @@ $iconWidth:20px;
557
565
  }
558
566
  }
559
567
 
560
-
561
-
568
+
569
+
562
570
  }
563
571
 
564
572
  .toggle-dropzone-container{
@@ -587,7 +595,7 @@ $iconWidth:20px;
587
595
  height:0.5vw;
588
596
  }
589
597
  }
590
-
598
+
591
599
 
592
600
  .vue-dropzone {
593
601
  border: 0;
@@ -611,7 +619,7 @@ $iconWidth:20px;
611
619
  background-color: $toggle-light-blue;
612
620
  }
613
621
  }
614
-
622
+
615
623
  }
616
624
 
617
625
  .dropzone{
@@ -645,7 +653,7 @@ $iconWidth:20px;
645
653
  .dropzone > .dz-preview {
646
654
  width: 40%;
647
655
  }
648
-
656
+
649
657
  }
650
658
 
651
659
  .toggle-dropzone-file-container {
@@ -670,7 +678,7 @@ $iconWidth:20px;
670
678
  cursor: pointer;
671
679
  float:left;
672
680
  height: 2rem;
673
- width: 2rem;
681
+ width: 2rem;
674
682
  border-radius: 0% 50% 50% 0%;
675
683
  margin-left: -5px;
676
684
  }
@@ -686,7 +694,7 @@ $iconWidth:20px;
686
694
 
687
695
 
688
696
  // input crud buttons
689
- //
697
+ //
690
698
  .toggle-input-crud-container{
691
699
  padding:1rem 3.5rem 1rem 1rem;;
692
700
  height:auto;
@@ -705,7 +713,7 @@ $iconWidth:20px;
705
713
  cursor: pointer;
706
714
  }
707
715
 
708
-
716
+
709
717
 
710
718
  .toggle-input-crud-container-description{
711
719
  text-align: center;
@@ -845,24 +853,24 @@ $iconWidth:20px;
845
853
  -webkit-font-smoothing: antialiased;
846
854
  -moz-osx-font-smoothing: grayscale;
847
855
  }
848
-
856
+
849
857
  @mixin toggle-input-border-base {
850
858
  border: 1px solid #ccc;
851
859
  }
852
-
860
+
853
861
  @mixin toggle-input-border {
854
862
  @include toggle-input-border-base;
855
863
  border-radius: 4px;
856
864
  box-sizing: border-box;
857
865
  }
858
-
866
+
859
867
  @mixin toggle-input-border-country-left {
860
868
  @include toggle-input-border-base;
861
869
  border-top-left-radius: 4px;
862
870
  border-bottom-left-radius: 4px;
863
871
  border-right: none;
864
872
  }
865
-
873
+
866
874
  @mixin toggle-input-border-country-right {
867
875
  @include toggle-input-border-base;
868
876
  border-top-right-radius: 4px;
@@ -879,7 +887,7 @@ $iconWidth:20px;
879
887
  width: 130px;
880
888
  margin: 5px 0px;
881
889
  @include toggle-input-border-country-left;
882
-
890
+
883
891
  select{
884
892
  position: relative;
885
893
  opacity: 0;
@@ -888,32 +896,32 @@ $iconWidth:20px;
888
896
  cursor: pointer;
889
897
  height: 100%;
890
898
  }
891
-
899
+
892
900
  .toggle-selected-wraper {
893
901
  top:20%;
894
902
  font-size: 0.9em;
895
903
  position: absolute;
896
904
  padding: 3px;
897
905
  left: 5px;
898
-
906
+
899
907
  &:before{
900
908
  float:left;
901
909
  content: url("data:image/svg+xml;charset=UTF-8, <svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 317 275'><path id='Arrow_downw' data-name='Arrow_Down' d='M158.5,0,317,275H0Z' transform='translate(317 275) rotate(180)' fill='gray'/></svg>");
902
910
  margin-top:1px;
903
911
  margin-right: 2px;
904
912
  }
905
-
913
+
906
914
  div {
907
915
  float:left;
908
916
  }
909
-
917
+
910
918
  .toggle-selected-country-emoji {
911
919
  margin-left: 5px;
912
920
  margin-top: 2px;
913
921
  }
914
922
  }
915
-
916
-
923
+
924
+
917
925
  }
918
926
 
919
927
  .toggle-input-label-error {
@@ -924,16 +932,16 @@ $iconWidth:20px;
924
932
  .toggle-input-select-country {
925
933
  padding: 3px 10px 22px 10px;
926
934
  margin: 5px 0px 5px 0px;
927
-
935
+
928
936
  &.toggle-number {
929
-
937
+
930
938
  position: relative;
931
939
  font-size:0.9em;
932
940
  padding:10px;
933
941
  @include toggle-input-border-country-right;
934
942
  width: 80%;
935
943
  }
936
-
944
+
937
945
  }
938
946
  .toggle-invalid-number {
939
947
  border:1px solid #ED7B7C !important;
@@ -21,6 +21,5 @@
21
21
  @import "./includes/_as_metrics.scss";
22
22
  @import "./includes/_as_threedots.scss";
23
23
  @import "./includes/_as_boosters.scss";
24
- @import "./includes/_as_statusbar.scss";
25
24
  @import "./includes/_as_cards.scss";
26
25
  @import "./includes/_as_carousels.scss";
@@ -1,73 +0,0 @@
1
- <template>
2
- <div :class="['toggle-status-bar-container', statusColours, statusSize]">
3
- <label class="toggle-status-bar-label">
4
- <span class="toggle-status-bar-dot blinking" v-if="showDot">&#9679;</span>
5
- {{ statusName }}
6
- </label>
7
-
8
- <div class="toggle-status-bar-tooltip-container" v-if="showToolTip && toolTipText.length">
9
- <div class="toggle-status-bar-tooltip">
10
- ?
11
- <span class="toggle-status-bar-tooltip-text">{{ toolTipText }}</span>
12
- </div>
13
- </div>
14
- </div>
15
- </template>
16
-
17
- <script>
18
- export default {
19
- name: 'StatusBar',
20
- props: {
21
- status: {
22
- type: String,
23
- required: true,
24
- validator: function (value) {
25
- return ['draft', 'processing', 'complete', 'inactive', 'active', 'submitted', 'failed'].indexOf(value) !== -1;
26
- }
27
- },
28
- size: {
29
- type: String,
30
- required: false,
31
- validator: function (value) {
32
- return ['small'].indexOf(value) !== -1;
33
- }
34
- },
35
- toolTipOptions: {
36
- type: Object,
37
- required: false
38
- }
39
- },
40
- computed: {
41
- // Capitalise the first letter of the status
42
- statusName() {
43
- return this.status.charAt(0).toUpperCase() + this.status.slice(1);
44
- },
45
- // Add the status to the class name
46
- statusColours() {
47
- return 'toggle-status-bar-' + this.status;
48
- },
49
- // Add the size to the class name
50
- statusSize() {
51
- return 'toggle-status-bar-' + this.size;
52
- },
53
- // Show the dot if the status is active or processing
54
- showDot() {
55
- return this.status === 'active' || this.status === 'processing' || this.status === 'submitted';
56
- },
57
- showToolTip() {
58
- return this.size !== 'small';
59
- },
60
- toolTipText() {
61
- if (!this.toolTipOptions) {
62
- return '';
63
- }
64
-
65
- if (this.toolTipOptions[this.status]) {
66
- return this.toolTipOptions[this.status];
67
- } else {
68
- return '';
69
- }
70
- }
71
- }
72
- }
73
- </script>
@@ -1,179 +0,0 @@
1
- .toggle-status-bar-container {
2
- font-family: $toggle-font-family;
3
- font-size: 16px !important;
4
- display: flex;
5
- justify-content: center;
6
- align-items: center;
7
- height: 50px;
8
- width: 100%;
9
- border-radius: 7px;
10
- }
11
-
12
- .toggle-status-bar-small {
13
- height: 35px;
14
- }
15
-
16
- // Tooltip
17
- .toggle-status-bar-tooltip-container{
18
- position: absolute;
19
- display: flex;
20
- justify-content: right;
21
- width: 100%;
22
- right: 32px;
23
- cursor: default;
24
-
25
- .toggle-status-bar-tooltip {
26
- position: relative;
27
- display: inline-block;
28
- width: 20px;
29
- text-align: center;
30
- border: 1px solid hotpink;
31
- border-radius: 50px;
32
- }
33
-
34
- // Tooltip text
35
- .toggle-status-bar-tooltip .toggle-status-bar-tooltip-text {
36
- visibility: hidden;
37
- width: 200px;
38
- background-color: rgba(0, 0, 0, .8);
39
- color: #fff;
40
- text-align: center;
41
- padding: 10px;
42
- border-radius: 6px;
43
- position: absolute;
44
- z-index: 1;
45
- top: -5px;
46
- right: 105%;
47
- }
48
-
49
- .toggle-status-bar-tooltip:hover .toggle-status-bar-tooltip-text {
50
- visibility: visible;
51
- }
52
- }
53
-
54
-
55
- // Draft colours
56
- .toggle-status-bar-draft {
57
- background-color: #FFB88D;
58
-
59
- .toggle-status-bar-label {
60
- color: #A34308;
61
- }
62
-
63
- .toggle-status-bar-tooltip {
64
- color: #A34308;
65
- border: 1px solid #A34308;
66
- }
67
- }
68
-
69
- // Processing colours
70
- .toggle-status-bar-processing {
71
- background-color: #D7E9F2;
72
-
73
- .toggle-status-bar-label {
74
- color: #269BE3;
75
- }
76
-
77
- .toggle-status-bar-tooltip {
78
- color: #269BE3;
79
- border: 1px solid #269BE3;
80
- }
81
- }
82
-
83
- // Complete colours
84
- .toggle-status-bar-complete {
85
- background-color: #B3E49F;
86
-
87
- .toggle-status-bar-label {
88
- color: #3BB40B;
89
- }
90
-
91
- .toggle-status-bar-tooltip {
92
- color: #3BB40B;
93
- border: 1px solid #3BB40B;
94
- }
95
- }
96
-
97
- // Inactive colours
98
- .toggle-status-bar-inactive {
99
- background-color: #D7E9F2;
100
-
101
- .toggle-status-bar-label {
102
- color: #269BE3;
103
- }
104
-
105
- .toggle-status-bar-tooltip {
106
- color: #269BE3;
107
- border: 1px solid #269BE3;
108
- }
109
- }
110
-
111
- // Active colours
112
- .toggle-status-bar-active {
113
- background-color: #D7E9F2;
114
- border: 1px solid #FF4848;
115
-
116
- .toggle-status-bar-label {
117
- color: #FF4848;
118
- }
119
-
120
- .toggle-status-bar-tooltip {
121
- color: #FF4848;
122
- border: 1px solid #FF4848;
123
- }
124
- }
125
-
126
- // Submitted colours
127
- .toggle-status-bar-submitted {
128
- background-color: #D7E9F2;
129
-
130
- .toggle-status-bar-label {
131
- color: #269BE3;
132
- }
133
-
134
- .toggle-status-bar-tooltip {
135
- color: #269BE3;
136
- border: 1px solid #269BE3;
137
- }
138
-
139
- }
140
-
141
- // Failed colours
142
- .toggle-status-bar-failed {
143
- background-color: #F2E3E3;
144
- border: 1px solid #ED7B7C;
145
-
146
- .toggle-status-bar-label {
147
- color: #ED7B7C;
148
- }
149
-
150
- .toggle-status-bar-tooltip {
151
- color: #ED7B7C;
152
- border: 1px solid #ED7B7C;
153
- }
154
- }
155
-
156
- .toggle-status-bar-dot {
157
- font-size: 20px;
158
- margin: 0 3px 0 0;
159
- float: none !important;
160
- padding: 0 !important;
161
- }
162
-
163
- // Dot blinking animation
164
-
165
- .blinking {
166
- animation: 2s blink ease infinite;
167
- }
168
-
169
- @keyframes blink {
170
-
171
- from,
172
- to {
173
- opacity: 0;
174
- }
175
-
176
- 50% {
177
- opacity: 1;
178
- }
179
- }