toggle-components-library 1.36.1-beta.1 → 1.36.1-beta.2
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 +86 -77
- 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 +86 -77
- 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/buttons/ToggleMetricsButton.vue +5 -1
- package/src/sass/includes/_as_buttons.scss +9 -0
- package/src/sass/includes/_as_cards.scss +0 -1
package/package-lock.json
CHANGED
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<button :class="['toggle-metrics-button', buttonStyle, 'toggle-metrics-button-' + size]" :style="styles" @click="click">
|
|
2
|
+
<button :class="['toggle-metrics-button', buttonStyle, 'toggle-metrics-button-' + size, {'toggle-metrics-button-disabled': disabled }]" :style="styles" @click="click" :disabled="disabled">
|
|
3
3
|
<div :class="icon" :style="styles ? 'background-color:' + styles.color : ''"></div>
|
|
4
4
|
<slot>{{buttonText}}</slot>
|
|
5
5
|
</button>
|
|
@@ -36,6 +36,10 @@
|
|
|
36
36
|
type: Object,
|
|
37
37
|
required: false,
|
|
38
38
|
},
|
|
39
|
+
disabled: {
|
|
40
|
+
type: Boolean,
|
|
41
|
+
default: false
|
|
42
|
+
}
|
|
39
43
|
},
|
|
40
44
|
methods: {
|
|
41
45
|
click() {
|
|
@@ -462,6 +462,15 @@
|
|
|
462
462
|
}
|
|
463
463
|
}
|
|
464
464
|
|
|
465
|
+
.toggle-metrics-button-disabled {
|
|
466
|
+
opacity: 0.3;
|
|
467
|
+
cursor: default;
|
|
468
|
+
|
|
469
|
+
.heatmap-icon, .email-icon, .contacts-icon {
|
|
470
|
+
transform: none !important;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
|
|
465
474
|
.toggle-button-booster-badge {
|
|
466
475
|
display: flex;
|
|
467
476
|
align-items: center;
|