toggle-components-library 1.34.0-beta.3 → 1.34.0-beta.5
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/toggle-components-library.common.js +90 -90
- package/dist/toggle-components-library.common.js.map +1 -1
- package/dist/toggle-components-library.css +1 -1
- package/dist/toggle-components-library.umd.js +90 -90
- package/dist/toggle-components-library.umd.js.map +1 -1
- package/dist/toggle-components-library.umd.min.js +1 -1
- package/dist/toggle-components-library.umd.min.js.map +1 -1
- package/package-lock.json +1 -1
- package/package.json +1 -1
- package/src/components/boosters/ToggleBoosterButton.vue +2 -2
- package/src/components/buttons/ToggleButton.vue +13 -13
- package/src/sass/includes/_as_buttons.scss +21 -20
package/package-lock.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :class="[{'toggle-booster-button-tooltip-container': tooltipText }]">
|
|
3
|
-
<button :class="['toggle-booster-button-container', boosterType, {'toggle-booster-button-disabled': disabled
|
|
2
|
+
<div :class="[{'toggle-booster-button-tooltip-container': !!tooltipText }]">
|
|
3
|
+
<button :class="['toggle-booster-button-container', boosterType, {'toggle-booster-button-disabled': disabled}]" :disabled="disabled" @click="click">
|
|
4
4
|
|
|
5
5
|
<img
|
|
6
6
|
:src="logo.src"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div :class="[ 'toggle-button-container', {'toggle-button-container-mini':isMini, 'toggle-button-tooltip-container': tooltipText}]">
|
|
2
|
+
<div :class="[ 'toggle-button-container', {'toggle-button-container-mini':isMini, 'toggle-button-tooltip-container': !!tooltipText }]">
|
|
3
3
|
<button
|
|
4
4
|
v-if="!$slots.default"
|
|
5
5
|
:type="type"
|
|
@@ -10,20 +10,20 @@
|
|
|
10
10
|
<div class="toggle-button-loader" v-if="loading" ></div>
|
|
11
11
|
<span v-html="buttonText" v-if="!isMini"/>
|
|
12
12
|
|
|
13
|
-
<div v-if="boosterImageProperties" :class="['toggle-button-booster-image-badge', {'shimmer': boosterShimmer && !disabled, '
|
|
13
|
+
<div v-if="boosterImageProperties" :class="['toggle-button-booster-image-badge', {'shimmer': boosterShimmer && !disabled, 'disabled': disabled, 'loading': loading}]" :style="'background-color: ' + boosterImageProperties.bgColor">
|
|
14
14
|
<img class="toggle-button-booster-image" :src="boosterImageProperties.src" :alt="boosterImageProperties.alt">
|
|
15
15
|
</div>
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
16
|
+
</button>
|
|
17
|
+
<div v-else :class="[ 'toggle-button-a', buttonStyle, {'toggle-button-a-loading':loading, 'disabled':disabled, 'toggle-button-subscribed': !subscribed}]">
|
|
18
|
+
<div class="toggle-button-loader" v-if="loading" ></div>
|
|
19
|
+
<div class="toggle-button-a-border" />
|
|
20
|
+
<!--
|
|
21
|
+
@slot String of button text
|
|
22
|
+
-->
|
|
23
|
+
<slot>{{buttonText}}</slot>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="toggle-button-tooltip-text" v-if="tooltipText">
|
|
26
|
+
<div >{{ tooltipText }}</div>
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
29
|
</template>
|
|
@@ -458,37 +458,38 @@
|
|
|
458
458
|
width: 100%;
|
|
459
459
|
height: 100%;
|
|
460
460
|
}
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
461
|
+
&.loading {
|
|
462
|
+
opacity: 0
|
|
463
|
+
}
|
|
464
|
+
&.disabled {
|
|
465
|
+
opacity: 0.3;
|
|
466
|
+
}
|
|
465
467
|
}
|
|
466
468
|
|
|
467
469
|
/* Tooltip container */
|
|
468
470
|
.toggle-button-tooltip-container {
|
|
469
|
-
|
|
471
|
+
position: relative;
|
|
472
|
+
justify-content: center;
|
|
473
|
+
display: flex;
|
|
470
474
|
}
|
|
471
475
|
|
|
472
476
|
/* Tooltip text */
|
|
473
477
|
.toggle-button-tooltip-container .toggle-button-tooltip-text {
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
left: 50%;
|
|
486
|
-
margin-left: -60px;
|
|
487
|
-
margin-top: 2px;
|
|
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%;
|
|
488
489
|
}
|
|
489
490
|
|
|
490
491
|
.toggle-button-tooltip-text {
|
|
491
|
-
|
|
492
|
+
font-family: $toggle-font-family;
|
|
492
493
|
}
|
|
493
494
|
|
|
494
495
|
.toggle-button-tooltip-container:hover .toggle-button-tooltip-text {
|