toggle-components-library 1.34.0-beta.5 → 1.34.0-beta.7

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 (29) hide show
  1. package/dist/img/airship-feedback-hover.a207c947.svg +10 -0
  2. package/dist/img/airship-feedback.1f7c858c.svg +10 -0
  3. package/dist/toggle-components-library.common.js +238 -201
  4. package/dist/toggle-components-library.common.js.map +1 -1
  5. package/dist/toggle-components-library.css +1 -1
  6. package/dist/toggle-components-library.umd.js +238 -201
  7. package/dist/toggle-components-library.umd.js.map +1 -1
  8. package/dist/toggle-components-library.umd.min.js +1 -1
  9. package/dist/toggle-components-library.umd.min.js.map +1 -1
  10. package/package-lock.json +89 -70
  11. package/package.json +1 -1
  12. package/src/assets/icons/airship-feedback-hover.svg +10 -0
  13. package/src/assets/icons/airship-feedback.svg +10 -0
  14. package/src/components/boosters/ToggleBoosterButton.vue +13 -27
  15. package/src/components/buttons/ToggleButton.vue +9 -39
  16. package/src/components/buttons/ToggleMetricsButton.vue +18 -2
  17. package/src/components/cards/ToggleCommentCard.vue +66 -0
  18. package/src/components/metrics/ToggleMetricSingleMetric.vue +6 -5
  19. package/src/components/metrics/ToggleMetricSparkLine.vue +1 -1
  20. package/src/components/tables/ToggleTableRow.vue +2 -20
  21. package/src/index.js +3 -1
  22. package/src/sass/includes/_as_boosters.scss +0 -34
  23. package/src/sass/includes/_as_buttons.scss +30 -77
  24. package/src/sass/includes/_as_cards.scss +28 -0
  25. package/src/sass/includes/_as_metrics.scss +6 -0
  26. package/src/sass/includes/_as_navs.scss +16 -0
  27. package/src/sass/includes/_as_table.scss +2 -4
  28. package/dist/img/contacts-greyblue.ef6f8a9a.svg +0 -1
  29. package/dist/img/contacts-white.95d07c7a.svg +0 -1
@@ -395,7 +395,7 @@
395
395
  }
396
396
 
397
397
  &:hover .contacts-icon {
398
- background-image: url("../assets/icons/contacts-white.svg");
398
+ background-color: white;
399
399
  }
400
400
  }
401
401
  //icons
@@ -418,9 +418,11 @@
418
418
  }
419
419
 
420
420
  .contacts-icon {
421
- background-image: url("../assets/icons/contacts-greyblue.svg");
422
- background-repeat:no-repeat;
423
- background-size:contain;
421
+ --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='.9em' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --%3E%3Cstyle%3Esvg%7Bfill:%23fff%7D%3C/style%3E%3Cpath d='M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464H398.7c-8.9-63.3-63.3-112-129-112H178.3c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3z'/%3E%3C/svg%3E");
422
+ background-color: #6d90b4;
423
+ -webkit-mask: var(--svg);
424
+ mask: var(--svg);
425
+ mask-repeat: no-repeat;
424
426
  margin-right: 6px;
425
427
  width: 14px;
426
428
  height: 14px;
@@ -428,83 +430,34 @@
428
430
  }
429
431
  }
430
432
 
431
- .toggle-button-booster-badge {
432
- display: flex;
433
- align-items: center;
434
- padding: 0.2rem 0.2rem 0.2rem 1rem !important;
435
- }
436
-
437
- .shimmer {
438
- color: grey;
439
- display: inline-block;
440
- mask: linear-gradient(-60deg, #000 30%, #0005, #000 70%) right/400% 100%;
441
- background-repeat: no-repeat;
442
- animation: shimmer 4s infinite;
443
- }
444
-
445
- .toggle-button-booster-image-badge {
446
- z-index: 99;
447
- width: 6rem;
448
- height: 2rem;
449
- display: flex;
450
- align-items: center;
451
- justify-content: center;
452
- border-radius: 4px;
453
- margin: 0 0 0 20px;
454
- padding: 0px 8px 0px 8px;
455
- width: 6rem;
456
- height: 1.8rem;
457
- .toggle-button-booster-image {
458
- width: 100%;
459
- height: 100%;
433
+ .toggle-metrics-button-small {
434
+ padding: 0px 13px;
435
+ font-size: 12px;
436
+ &.mini-contacts {
437
+ font-size: 0.65rem;
438
+ padding: 5px 12px;
439
+ }
440
+ .heatmap-icon {
441
+ width: 21px;
442
+ height: 21px;
460
443
  }
461
- &.loading {
462
- opacity: 0
444
+ .email-icon {
445
+ width: 25px;
446
+ height: 25px;
463
447
  }
464
- &.disabled {
465
- opacity: 0.3;
448
+ .contacts-icon {
449
+ --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='.8em' viewBox='0 0 448 512'%3E%3C!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --%3E%3Cstyle%3Esvg%7Bfill:%23fff%7D%3C/style%3E%3Cpath d='M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464H398.7c-8.9-63.3-63.3-112-129-112H178.3c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3z'/%3E%3C/svg%3E");
450
+ -webkit-mask: var(--svg);
451
+ mask: var(--svg);
452
+ mask-repeat: no-repeat;
466
453
  }
467
454
  }
468
455
 
469
- /* Tooltip container */
470
- .toggle-button-tooltip-container {
471
- position: relative;
472
- justify-content: center;
473
- display: flex;
474
- }
475
-
476
- /* Tooltip text */
477
- .toggle-button-tooltip-container .toggle-button-tooltip-text {
478
- visibility: hidden;
479
- width: 120px;
480
- height: fit-content;
481
- background-color: black;
482
- color: #fff;
483
- text-align: center;
484
- padding: 5px;
485
- border-radius: 6px;
486
- position: absolute;
487
- z-index: 999;
488
- top: 100%;
489
- }
490
-
491
- .toggle-button-tooltip-text {
492
- font-family: $toggle-font-family;
493
- }
494
-
495
- .toggle-button-tooltip-container:hover .toggle-button-tooltip-text {
496
- visibility: visible;
497
- }
498
-
499
- // Shimmer animation for booster badge
500
- @keyframes shimmer {
501
- 0% {
502
- mask-position: right;
503
- }
504
- 30% {
505
- mask-position: left;
506
- }
507
- 100% {
508
- mask-position: left;
456
+ .toggle-metrics-button-large {
457
+ padding: 23px 27px;
458
+ font-size: 17px;
459
+ &.mini-contacts {
460
+ font-size: .92rem;
461
+ padding: 10px 25px;
509
462
  }
510
463
  }
@@ -164,3 +164,31 @@
164
164
 
165
165
  }
166
166
 
167
+ .toggle-comment-card {
168
+ display: flex;
169
+ flex-direction: row;
170
+ max-width: 750px;
171
+ height: 250px;
172
+ border-radius: 18px;
173
+ margin: 16px;
174
+ font-size: $toggle-font-size-regular;
175
+ font-family: $toggle-font-family;
176
+ }
177
+
178
+ .toggle-comment-card-info {
179
+ display: flex;
180
+ flex-direction: column;
181
+ justify-content: space-between;
182
+ padding: 40px 20px 20px 20px;
183
+ color: white;
184
+ border-radius: 30px;
185
+
186
+ .toggle-comment-card-text {
187
+ text-align: left;
188
+ line-height: 1.5rem;
189
+
190
+ p {
191
+ margin: 0
192
+ }
193
+ }
194
+ }
@@ -134,4 +134,10 @@
134
134
 
135
135
  .increase-padding-bottom {
136
136
  padding-bottom: 3rem !important;
137
+ }
138
+
139
+ .toggle-metric-score::after {
140
+ content: '/5';
141
+ font-size: 27px;
142
+ margin-left: -8px;
137
143
  }
@@ -342,6 +342,11 @@
342
342
  &.airship-hat-icon span::before {
343
343
  background-image: url("../assets/icons/airship-hat-hover.svg");
344
344
  }
345
+
346
+ &.airship-feedback-icon a::before,
347
+ &.airship-feedback-icon span::before {
348
+ background-image: url("../assets/icons/airship-feedback-hover.svg");
349
+ }
345
350
  }
346
351
  }
347
352
 
@@ -506,6 +511,17 @@
506
511
  animation: tilt-shake 0.4s;
507
512
  background-image: url("../assets/icons/airship-audiences-hover.svg");
508
513
  }
514
+ // add feedbacl
515
+ &.airship-feedback-icon a::before,
516
+ &.airship-feedback-icon span::before {
517
+ background-image: url("../assets/icons/airship-feedback.svg");
518
+ }
519
+
520
+ &.airship-feedback-icon a:hover::before,
521
+ &.airship-feedback-icon span:hover::before {
522
+ animation: tilt-shake 0.4s;
523
+ background-image: url("../assets/icons/airship-feedback-hover.svg");
524
+ }
509
525
 
510
526
  }
511
527
  }
@@ -117,7 +117,9 @@ table.toggle-table {
117
117
  }
118
118
  }
119
119
 
120
+
120
121
  tr.toggle-tablee-tr {
122
+
121
123
  &:hover {
122
124
  background-color: #FFF;
123
125
  .arrow-order {
@@ -144,10 +146,6 @@ table.toggle-table {
144
146
 
145
147
 
146
148
  }
147
- tr.toggle-tablee-tr.tr-disabled * {
148
- opacity: 0.5;
149
- cursor: not-allowed;
150
- }
151
149
 
152
150
  }
153
151
 
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><style>svg{fill:#6d90b4}</style><path d="M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464H398.7c-8.9-63.3-63.3-112-129-112H178.3c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3z"/></svg>
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 448 512"><!--! Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --><style>svg{fill:#fff}</style><path d="M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464H398.7c-8.9-63.3-63.3-112-129-112H178.3c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3z"/></svg>