ads-nuxt 0.6.1 → 0.6.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.
|
@@ -108,7 +108,12 @@ const dividerClass =
|
|
|
108
108
|
|
|
109
109
|
const surfaceClass = computed(() => {
|
|
110
110
|
if (props.disabled) return "cursor-not-allowed bg-[var(--ads-surface-card)]";
|
|
111
|
-
if (props.mode === "radio" && props.selected)
|
|
111
|
+
if (props.mode === "radio" && props.selected) {
|
|
112
|
+
/** Figma pinta o item de sugestão com innovation/100 a 30%. O sólido equivalente é surface/ai. */
|
|
113
|
+
return props.badge?.tone === "ai"
|
|
114
|
+
? "bg-[var(--ads-surface-ai)]"
|
|
115
|
+
: "bg-[var(--ads-select-item-selected)]";
|
|
116
|
+
}
|
|
112
117
|
return "bg-[var(--ads-surface-card)] hover:bg-[var(--ads-select-item-hover)] focus-visible:bg-[var(--ads-select-item-hover)]";
|
|
113
118
|
});
|
|
114
119
|
|