independer-design-system 1.4.1 → 1.4.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/module.json
CHANGED
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<button
|
|
34
34
|
v-else
|
|
35
35
|
class="inline-flex cursor-pointer justify-center rounded-lg border font-semibold outline-none ring-purple transition-all ease-out focus-visible:border-purple focus-visible:ring-1"
|
|
36
|
-
:class="[classes, loadingClasses,
|
|
36
|
+
:class="[classes, loadingClasses, sizeClasses]"
|
|
37
37
|
:disabled="disabled"
|
|
38
38
|
>
|
|
39
39
|
<slot>
|
|
@@ -92,13 +92,16 @@ const classes = computed(() => {
|
|
|
92
92
|
"naked-purple": "border-transparent text-purple hover:bg-purple-200 active:bg-purple/40",
|
|
93
93
|
"wire-white": "bg-transparent border-white text-white hover:bg-black/10 active:bg-black/30 ring-white focus-visible:border-white disabled:bg-transparent disabled:border-grey disabled:text-grey disabled:cursor-not-allowed",
|
|
94
94
|
"naked-white": "bg-transparent border-white text-white hover:bg-black/10 active:bg-black/30 ring-white focus-visible:border-white",
|
|
95
|
-
"link": "justify-start
|
|
95
|
+
"link": "justify-start bg-transparent border-transparent text-purple hover:text-purple-dark active:text-purple-900"
|
|
96
96
|
}[props.tone];
|
|
97
97
|
});
|
|
98
|
-
const
|
|
98
|
+
const sizeClasses = computed(() => {
|
|
99
99
|
if (props.label === void 0 && props.icon !== void 0) {
|
|
100
100
|
return "p-[0.6875rem]";
|
|
101
101
|
}
|
|
102
|
+
if (props.tone === "link") {
|
|
103
|
+
return "px-0 py-[0.6875rem]";
|
|
104
|
+
}
|
|
102
105
|
return "px-3 py-[0.6875rem]";
|
|
103
106
|
});
|
|
104
107
|
const loadingClasses = computed(() => {
|
package/package.json
CHANGED