@designcrowd/fe-shared-lib 1.2.2-ast-disabled-1 → 1.2.2-data-id-1
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/package.json +1 -1
- package/public/css/tailwind-brandCrowd.css +0 -25
- package/public/css/tailwind-brandPage.css +0 -25
- package/public/css/tailwind-crazyDomains.css +0 -25
- package/public/css/tailwind-designCom.css +0 -25
- package/public/css/tailwind-designCrowd.css +0 -25
- package/src/atoms/components/ButtonGroup/ButtonGroup.stories.js +0 -1
- package/src/atoms/components/ButtonGroup/ButtonGroup.vue +12 -24
- package/src/atoms/components/Icon/Icon.vue +1 -0
package/package.json
CHANGED
|
@@ -719,9 +719,6 @@ video {
|
|
|
719
719
|
.theme-brandCrowd .tw-ml-auto {
|
|
720
720
|
margin-left: auto;
|
|
721
721
|
}
|
|
722
|
-
.theme-brandCrowd .tw-mr-1 {
|
|
723
|
-
margin-right: 0.25rem;
|
|
724
|
-
}
|
|
725
722
|
.theme-brandCrowd .tw-mr-2 {
|
|
726
723
|
margin-right: 0.5rem;
|
|
727
724
|
}
|
|
@@ -830,10 +827,6 @@ video {
|
|
|
830
827
|
.theme-brandCrowd .tw-h-auto {
|
|
831
828
|
height: auto;
|
|
832
829
|
}
|
|
833
|
-
.theme-brandCrowd .tw-h-fit {
|
|
834
|
-
height: -moz-fit-content;
|
|
835
|
-
height: fit-content;
|
|
836
|
-
}
|
|
837
830
|
.theme-brandCrowd .tw-h-full {
|
|
838
831
|
height: 100%;
|
|
839
832
|
}
|
|
@@ -1020,9 +1013,6 @@ video {
|
|
|
1020
1013
|
.theme-brandCrowd .tw-animate-spin {
|
|
1021
1014
|
animation: tw-spin 1s linear infinite;
|
|
1022
1015
|
}
|
|
1023
|
-
.\!tw-cursor-not-allowed {
|
|
1024
|
-
cursor: not-allowed !important;
|
|
1025
|
-
}
|
|
1026
1016
|
.theme-brandCrowd .tw-cursor-not-allowed {
|
|
1027
1017
|
cursor: not-allowed;
|
|
1028
1018
|
}
|
|
@@ -1456,17 +1446,6 @@ video {
|
|
|
1456
1446
|
.theme-brandCrowd .tw-bg-opacity-80 {
|
|
1457
1447
|
--tw-bg-opacity: 0.8;
|
|
1458
1448
|
}
|
|
1459
|
-
.theme-brandCrowd .tw-bg-gradient-to-t {
|
|
1460
|
-
background-image: linear-gradient(to top, var(--tw-gradient-stops));
|
|
1461
|
-
}
|
|
1462
|
-
.theme-brandCrowd .tw-from-\[\#d946ef\] {
|
|
1463
|
-
--tw-gradient-from: #d946ef var(--tw-gradient-from-position);
|
|
1464
|
-
--tw-gradient-to: rgb(217 70 239 / 0) var(--tw-gradient-to-position);
|
|
1465
|
-
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
1466
|
-
}
|
|
1467
|
-
.theme-brandCrowd .tw-to-\[\#8b5cf6\] {
|
|
1468
|
-
--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position);
|
|
1469
|
-
}
|
|
1470
1449
|
.theme-brandCrowd .tw-bg-no-repeat {
|
|
1471
1450
|
background-repeat: no-repeat;
|
|
1472
1451
|
}
|
|
@@ -2108,10 +2087,6 @@ video {
|
|
|
2108
2087
|
--tw-shadow-color: #0097D7 !important;
|
|
2109
2088
|
--tw-shadow: var(--tw-shadow-colored) !important;
|
|
2110
2089
|
}
|
|
2111
|
-
.theme-brandCrowd .hover\:tw-brightness-\[0\.85\]:hover {
|
|
2112
|
-
--tw-brightness: brightness(0.85);
|
|
2113
|
-
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2114
|
-
}
|
|
2115
2090
|
.theme-brandCrowd .focus\:tw-border-error-600:focus {
|
|
2116
2091
|
--tw-border-opacity: 1;
|
|
2117
2092
|
border-color: rgb(194 22 50 / var(--tw-border-opacity));
|
|
@@ -719,9 +719,6 @@ video {
|
|
|
719
719
|
.theme-brandPage .tw-ml-auto {
|
|
720
720
|
margin-left: auto;
|
|
721
721
|
}
|
|
722
|
-
.theme-brandPage .tw-mr-1 {
|
|
723
|
-
margin-right: 0.25rem;
|
|
724
|
-
}
|
|
725
722
|
.theme-brandPage .tw-mr-2 {
|
|
726
723
|
margin-right: 0.5rem;
|
|
727
724
|
}
|
|
@@ -830,10 +827,6 @@ video {
|
|
|
830
827
|
.theme-brandPage .tw-h-auto {
|
|
831
828
|
height: auto;
|
|
832
829
|
}
|
|
833
|
-
.theme-brandPage .tw-h-fit {
|
|
834
|
-
height: -moz-fit-content;
|
|
835
|
-
height: fit-content;
|
|
836
|
-
}
|
|
837
830
|
.theme-brandPage .tw-h-full {
|
|
838
831
|
height: 100%;
|
|
839
832
|
}
|
|
@@ -1020,9 +1013,6 @@ video {
|
|
|
1020
1013
|
.theme-brandPage .tw-animate-spin {
|
|
1021
1014
|
animation: tw-spin 1s linear infinite;
|
|
1022
1015
|
}
|
|
1023
|
-
.\!tw-cursor-not-allowed {
|
|
1024
|
-
cursor: not-allowed !important;
|
|
1025
|
-
}
|
|
1026
1016
|
.theme-brandPage .tw-cursor-not-allowed {
|
|
1027
1017
|
cursor: not-allowed;
|
|
1028
1018
|
}
|
|
@@ -1304,17 +1294,6 @@ video {
|
|
|
1304
1294
|
.theme-brandPage .tw-bg-opacity-80 {
|
|
1305
1295
|
--tw-bg-opacity: 0.8;
|
|
1306
1296
|
}
|
|
1307
|
-
.theme-brandPage .tw-bg-gradient-to-t {
|
|
1308
|
-
background-image: linear-gradient(to top, var(--tw-gradient-stops));
|
|
1309
|
-
}
|
|
1310
|
-
.theme-brandPage .tw-from-\[\#d946ef\] {
|
|
1311
|
-
--tw-gradient-from: #d946ef var(--tw-gradient-from-position);
|
|
1312
|
-
--tw-gradient-to: rgb(217 70 239 / 0) var(--tw-gradient-to-position);
|
|
1313
|
-
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
1314
|
-
}
|
|
1315
|
-
.theme-brandPage .tw-to-\[\#8b5cf6\] {
|
|
1316
|
-
--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position);
|
|
1317
|
-
}
|
|
1318
1297
|
.theme-brandPage .tw-bg-no-repeat {
|
|
1319
1298
|
background-repeat: no-repeat;
|
|
1320
1299
|
}
|
|
@@ -1812,10 +1791,6 @@ video {
|
|
|
1812
1791
|
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|
|
1813
1792
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1814
1793
|
}
|
|
1815
|
-
.theme-brandPage .hover\:tw-brightness-\[0\.85\]:hover {
|
|
1816
|
-
--tw-brightness: brightness(0.85);
|
|
1817
|
-
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1818
|
-
}
|
|
1819
1794
|
.theme-brandPage .focus\:tw-border-grayscale-600:focus {
|
|
1820
1795
|
--tw-border-opacity: 1;
|
|
1821
1796
|
border-color: rgb(94 94 94 / var(--tw-border-opacity));
|
|
@@ -719,9 +719,6 @@ video {
|
|
|
719
719
|
.theme-crazyDomains .tw-ml-auto {
|
|
720
720
|
margin-left: auto;
|
|
721
721
|
}
|
|
722
|
-
.theme-crazyDomains .tw-mr-1 {
|
|
723
|
-
margin-right: 0.25rem;
|
|
724
|
-
}
|
|
725
722
|
.theme-crazyDomains .tw-mr-2 {
|
|
726
723
|
margin-right: 0.5rem;
|
|
727
724
|
}
|
|
@@ -830,10 +827,6 @@ video {
|
|
|
830
827
|
.theme-crazyDomains .tw-h-auto {
|
|
831
828
|
height: auto;
|
|
832
829
|
}
|
|
833
|
-
.theme-crazyDomains .tw-h-fit {
|
|
834
|
-
height: -moz-fit-content;
|
|
835
|
-
height: fit-content;
|
|
836
|
-
}
|
|
837
830
|
.theme-crazyDomains .tw-h-full {
|
|
838
831
|
height: 100%;
|
|
839
832
|
}
|
|
@@ -1020,9 +1013,6 @@ video {
|
|
|
1020
1013
|
.theme-crazyDomains .tw-animate-spin {
|
|
1021
1014
|
animation: tw-spin 1s linear infinite;
|
|
1022
1015
|
}
|
|
1023
|
-
.\!tw-cursor-not-allowed {
|
|
1024
|
-
cursor: not-allowed !important;
|
|
1025
|
-
}
|
|
1026
1016
|
.theme-crazyDomains .tw-cursor-not-allowed {
|
|
1027
1017
|
cursor: not-allowed;
|
|
1028
1018
|
}
|
|
@@ -1456,17 +1446,6 @@ video {
|
|
|
1456
1446
|
.theme-crazyDomains .tw-bg-opacity-80 {
|
|
1457
1447
|
--tw-bg-opacity: 0.8;
|
|
1458
1448
|
}
|
|
1459
|
-
.theme-crazyDomains .tw-bg-gradient-to-t {
|
|
1460
|
-
background-image: linear-gradient(to top, var(--tw-gradient-stops));
|
|
1461
|
-
}
|
|
1462
|
-
.theme-crazyDomains .tw-from-\[\#d946ef\] {
|
|
1463
|
-
--tw-gradient-from: #d946ef var(--tw-gradient-from-position);
|
|
1464
|
-
--tw-gradient-to: rgb(217 70 239 / 0) var(--tw-gradient-to-position);
|
|
1465
|
-
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
1466
|
-
}
|
|
1467
|
-
.theme-crazyDomains .tw-to-\[\#8b5cf6\] {
|
|
1468
|
-
--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position);
|
|
1469
|
-
}
|
|
1470
1449
|
.theme-crazyDomains .tw-bg-no-repeat {
|
|
1471
1450
|
background-repeat: no-repeat;
|
|
1472
1451
|
}
|
|
@@ -2108,10 +2087,6 @@ video {
|
|
|
2108
2087
|
--tw-shadow-color: #00A1EF !important;
|
|
2109
2088
|
--tw-shadow: var(--tw-shadow-colored) !important;
|
|
2110
2089
|
}
|
|
2111
|
-
.theme-crazyDomains .hover\:tw-brightness-\[0\.85\]:hover {
|
|
2112
|
-
--tw-brightness: brightness(0.85);
|
|
2113
|
-
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2114
|
-
}
|
|
2115
2090
|
.theme-crazyDomains .focus\:tw-border-error-600:focus {
|
|
2116
2091
|
--tw-border-opacity: 1;
|
|
2117
2092
|
border-color: rgb(186 24 79 / var(--tw-border-opacity));
|
|
@@ -719,9 +719,6 @@ video {
|
|
|
719
719
|
.theme-designCom .tw-ml-auto {
|
|
720
720
|
margin-left: auto;
|
|
721
721
|
}
|
|
722
|
-
.theme-designCom .tw-mr-1 {
|
|
723
|
-
margin-right: 0.25rem;
|
|
724
|
-
}
|
|
725
722
|
.theme-designCom .tw-mr-2 {
|
|
726
723
|
margin-right: 0.5rem;
|
|
727
724
|
}
|
|
@@ -830,10 +827,6 @@ video {
|
|
|
830
827
|
.theme-designCom .tw-h-auto {
|
|
831
828
|
height: auto;
|
|
832
829
|
}
|
|
833
|
-
.theme-designCom .tw-h-fit {
|
|
834
|
-
height: -moz-fit-content;
|
|
835
|
-
height: fit-content;
|
|
836
|
-
}
|
|
837
830
|
.theme-designCom .tw-h-full {
|
|
838
831
|
height: 100%;
|
|
839
832
|
}
|
|
@@ -1020,9 +1013,6 @@ video {
|
|
|
1020
1013
|
.theme-designCom .tw-animate-spin {
|
|
1021
1014
|
animation: tw-spin 1s linear infinite;
|
|
1022
1015
|
}
|
|
1023
|
-
.\!tw-cursor-not-allowed {
|
|
1024
|
-
cursor: not-allowed !important;
|
|
1025
|
-
}
|
|
1026
1016
|
.theme-designCom .tw-cursor-not-allowed {
|
|
1027
1017
|
cursor: not-allowed;
|
|
1028
1018
|
}
|
|
@@ -1456,17 +1446,6 @@ video {
|
|
|
1456
1446
|
.theme-designCom .tw-bg-opacity-80 {
|
|
1457
1447
|
--tw-bg-opacity: 0.8;
|
|
1458
1448
|
}
|
|
1459
|
-
.theme-designCom .tw-bg-gradient-to-t {
|
|
1460
|
-
background-image: linear-gradient(to top, var(--tw-gradient-stops));
|
|
1461
|
-
}
|
|
1462
|
-
.theme-designCom .tw-from-\[\#d946ef\] {
|
|
1463
|
-
--tw-gradient-from: #d946ef var(--tw-gradient-from-position);
|
|
1464
|
-
--tw-gradient-to: rgb(217 70 239 / 0) var(--tw-gradient-to-position);
|
|
1465
|
-
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
1466
|
-
}
|
|
1467
|
-
.theme-designCom .tw-to-\[\#8b5cf6\] {
|
|
1468
|
-
--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position);
|
|
1469
|
-
}
|
|
1470
1449
|
.theme-designCom .tw-bg-no-repeat {
|
|
1471
1450
|
background-repeat: no-repeat;
|
|
1472
1451
|
}
|
|
@@ -2108,10 +2087,6 @@ video {
|
|
|
2108
2087
|
--tw-shadow-color: #3f59f6 !important;
|
|
2109
2088
|
--tw-shadow: var(--tw-shadow-colored) !important;
|
|
2110
2089
|
}
|
|
2111
|
-
.theme-designCom .hover\:tw-brightness-\[0\.85\]:hover {
|
|
2112
|
-
--tw-brightness: brightness(0.85);
|
|
2113
|
-
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2114
|
-
}
|
|
2115
2090
|
.theme-designCom .focus\:tw-border-error-600:focus {
|
|
2116
2091
|
--tw-border-opacity: 1;
|
|
2117
2092
|
border-color: rgb(182 58 42 / var(--tw-border-opacity));
|
|
@@ -719,9 +719,6 @@ video {
|
|
|
719
719
|
.theme-designCrowd .tw-ml-auto {
|
|
720
720
|
margin-left: auto;
|
|
721
721
|
}
|
|
722
|
-
.theme-designCrowd .tw-mr-1 {
|
|
723
|
-
margin-right: 0.25rem;
|
|
724
|
-
}
|
|
725
722
|
.theme-designCrowd .tw-mr-2 {
|
|
726
723
|
margin-right: 0.5rem;
|
|
727
724
|
}
|
|
@@ -830,10 +827,6 @@ video {
|
|
|
830
827
|
.theme-designCrowd .tw-h-auto {
|
|
831
828
|
height: auto;
|
|
832
829
|
}
|
|
833
|
-
.theme-designCrowd .tw-h-fit {
|
|
834
|
-
height: -moz-fit-content;
|
|
835
|
-
height: fit-content;
|
|
836
|
-
}
|
|
837
830
|
.theme-designCrowd .tw-h-full {
|
|
838
831
|
height: 100%;
|
|
839
832
|
}
|
|
@@ -1020,9 +1013,6 @@ video {
|
|
|
1020
1013
|
.theme-designCrowd .tw-animate-spin {
|
|
1021
1014
|
animation: tw-spin 1s linear infinite;
|
|
1022
1015
|
}
|
|
1023
|
-
.\!tw-cursor-not-allowed {
|
|
1024
|
-
cursor: not-allowed !important;
|
|
1025
|
-
}
|
|
1026
1016
|
.theme-designCrowd .tw-cursor-not-allowed {
|
|
1027
1017
|
cursor: not-allowed;
|
|
1028
1018
|
}
|
|
@@ -1456,17 +1446,6 @@ video {
|
|
|
1456
1446
|
.theme-designCrowd .tw-bg-opacity-80 {
|
|
1457
1447
|
--tw-bg-opacity: 0.8;
|
|
1458
1448
|
}
|
|
1459
|
-
.theme-designCrowd .tw-bg-gradient-to-t {
|
|
1460
|
-
background-image: linear-gradient(to top, var(--tw-gradient-stops));
|
|
1461
|
-
}
|
|
1462
|
-
.theme-designCrowd .tw-from-\[\#d946ef\] {
|
|
1463
|
-
--tw-gradient-from: #d946ef var(--tw-gradient-from-position);
|
|
1464
|
-
--tw-gradient-to: rgb(217 70 239 / 0) var(--tw-gradient-to-position);
|
|
1465
|
-
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
|
|
1466
|
-
}
|
|
1467
|
-
.theme-designCrowd .tw-to-\[\#8b5cf6\] {
|
|
1468
|
-
--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position);
|
|
1469
|
-
}
|
|
1470
1449
|
.theme-designCrowd .tw-bg-no-repeat {
|
|
1471
1450
|
background-repeat: no-repeat;
|
|
1472
1451
|
}
|
|
@@ -2108,10 +2087,6 @@ video {
|
|
|
2108
2087
|
--tw-shadow-color: #1197EB !important;
|
|
2109
2088
|
--tw-shadow: var(--tw-shadow-colored) !important;
|
|
2110
2089
|
}
|
|
2111
|
-
.theme-designCrowd .hover\:tw-brightness-\[0\.85\]:hover {
|
|
2112
|
-
--tw-brightness: brightness(0.85);
|
|
2113
|
-
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
2114
|
-
}
|
|
2115
2090
|
.theme-designCrowd .focus\:tw-border-error-600:focus {
|
|
2116
2091
|
--tw-border-opacity: 1;
|
|
2117
2092
|
border-color: rgb(195 50 48 / var(--tw-border-opacity));
|
|
@@ -10,14 +10,11 @@
|
|
|
10
10
|
<button
|
|
11
11
|
class="button-group-item tw-text-xs tw-shadow-inner tw-w-full tw-py-2"
|
|
12
12
|
:class="{
|
|
13
|
-
'!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected
|
|
14
|
-
'!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': !option.isSelected
|
|
15
|
-
'hover:!tw-shadow-info-500': !option.isSelected && !option.disabled,
|
|
16
|
-
'tw-opacity-50 !tw-cursor-not-allowed !tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': option.disabled,
|
|
13
|
+
'!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected,
|
|
14
|
+
'!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200 hover:!tw-shadow-info-500': !option.isSelected,
|
|
17
15
|
}"
|
|
18
|
-
:disabled="option.disabled"
|
|
19
16
|
v-bind="option.dataAttribute ? { [option.dataAttribute]: '' } : {}"
|
|
20
|
-
@click="
|
|
17
|
+
@click="$emit('on-select', option)"
|
|
21
18
|
>
|
|
22
19
|
<slot name="content" :option="option"></slot>
|
|
23
20
|
</button>
|
|
@@ -38,10 +35,8 @@
|
|
|
38
35
|
<button
|
|
39
36
|
v-if="variant === 'icon'"
|
|
40
37
|
:class="{
|
|
41
|
-
'!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected
|
|
42
|
-
'!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': !option.isSelected
|
|
43
|
-
'hover:!tw-shadow-info-500': !option.isSelected && !option.disabled,
|
|
44
|
-
'tw-opacity-50 !tw-cursor-not-allowed !tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': option.disabled,
|
|
38
|
+
'!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected,
|
|
39
|
+
'!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200 hover:!tw-shadow-info-500': !option.isSelected,
|
|
45
40
|
'tw-px-2': !option.iconViewBox,
|
|
46
41
|
'tw-px-px':
|
|
47
42
|
option.iconViewBox && !option.isSelected && !option.iconName.includes('display-style') && btnStyleVariant, // TODO - move style logic to computed prop
|
|
@@ -50,10 +45,9 @@
|
|
|
50
45
|
'tw-px-0 tw-py-0': option.iconName.includes('display-style') || btnStyleVariant === 'compressed',
|
|
51
46
|
}"
|
|
52
47
|
:style="option.iconName.includes('display-style') ? { lineHeight: 0 } : {}"
|
|
53
|
-
:disabled="option.disabled"
|
|
54
48
|
class="tw-text-xs button-group-icon-button tw-shadow-inner"
|
|
55
49
|
v-bind="option.dataAttribute ? { [option.dataAttribute]: '' } : {}"
|
|
56
|
-
@click="
|
|
50
|
+
@click="$emit('on-select', option)"
|
|
57
51
|
>
|
|
58
52
|
<div
|
|
59
53
|
:class="{
|
|
@@ -73,15 +67,12 @@
|
|
|
73
67
|
<button
|
|
74
68
|
v-else
|
|
75
69
|
:class="{
|
|
76
|
-
'!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected
|
|
77
|
-
'!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': !option.isSelected
|
|
78
|
-
'hover:!tw-shadow-info-500': !option.isSelected && !option.disabled,
|
|
79
|
-
'tw-opacity-50 !tw-cursor-not-allowed !tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': option.disabled,
|
|
70
|
+
'!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected,
|
|
71
|
+
'!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200 hover:!tw-shadow-info-500': !option.isSelected,
|
|
80
72
|
}"
|
|
81
|
-
:disabled="option.disabled"
|
|
82
73
|
class="tw-text-xs button-group-image-button tw-shadow-inner"
|
|
83
74
|
v-bind="option.dataAttribute ? { [option.dataAttribute]: '' } : {}"
|
|
84
|
-
@click="
|
|
75
|
+
@click="$emit('on-select', option)"
|
|
85
76
|
>
|
|
86
77
|
<img :src="option.src" :alt="option.alt" class="tw-w-full tw-h-full" />
|
|
87
78
|
</button>
|
|
@@ -99,14 +90,11 @@
|
|
|
99
90
|
:key="`button-${option.value}`"
|
|
100
91
|
:class="{
|
|
101
92
|
'tw-ml-2': idx > 0 && !columns,
|
|
102
|
-
'!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected
|
|
103
|
-
'!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': !option.isSelected
|
|
104
|
-
'hover:!tw-shadow-info-500': !option.isSelected && !option.disabled,
|
|
105
|
-
'tw-opacity-50 !tw-cursor-not-allowed !tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200': option.disabled,
|
|
93
|
+
'!tw-shadow-[0_0_0_2px] !tw-shadow-info-500': option.isSelected,
|
|
94
|
+
'!tw-shadow-[0_0_0_1px] !tw-shadow-secondary-200 hover:!tw-shadow-info-500': !option.isSelected,
|
|
106
95
|
}"
|
|
107
|
-
:disabled="option.disabled"
|
|
108
96
|
class="tw-text-xs button-group-button tw-shadow-inner"
|
|
109
|
-
@click="
|
|
97
|
+
@click="$emit('on-select', option)"
|
|
110
98
|
>
|
|
111
99
|
{{ option.label }}
|
|
112
100
|
</button>
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
role="graphics-symbol"
|
|
20
20
|
aria-labelledby="title"
|
|
21
21
|
aria-describedby="desc"
|
|
22
|
+
:data-id="`${name}-${id}-title`"
|
|
22
23
|
>
|
|
23
24
|
<title v-if="title" :id="`${name}-${id}-title`" lang="en">{{ title }}</title>
|
|
24
25
|
<desc v-if="description" :id="`${name}-${id}-desc`" lang="en">{{ description }}</desc>
|