windly-ui 1.1.0 → 1.1.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/dist/module.json +1 -1
- package/dist/runtime/components/FileUploader.vue +1 -1
- package/dist/runtime/components/Input.vue +2 -2
- package/dist/runtime/components/Select.vue +1 -1
- package/dist/runtime/components/Textarea.vue +1 -1
- package/dist/runtime/components/Toggle.vue +2 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -96,7 +96,7 @@ const computedClass = computed(() => {
|
|
|
96
96
|
classes += " text-base";
|
|
97
97
|
}
|
|
98
98
|
if (props.color && !isHex(props.color)) {
|
|
99
|
-
classes += ` border-${props.color} focus:ring-
|
|
99
|
+
classes += ` border-${props.color} focus:ring-0 `;
|
|
100
100
|
}
|
|
101
101
|
if (props.width && !supportsWidthValue(props.width)) {
|
|
102
102
|
classes += ` w-${props.width}`;
|
|
@@ -203,9 +203,9 @@ const computedClass = computed(() => {
|
|
|
203
203
|
classes += " capitalize";
|
|
204
204
|
}
|
|
205
205
|
if (hasError.value) {
|
|
206
|
-
classes += " border-red-500 focus:ring-
|
|
206
|
+
classes += " border-red-500 focus:ring-0 ";
|
|
207
207
|
} else {
|
|
208
|
-
classes += ` ${props.color && !isHex(props.color) ? `border-${props.color} focus:ring-
|
|
208
|
+
classes += ` ${props.color && !isHex(props.color) ? `border-${props.color} focus:ring-0 ` : ""}`;
|
|
209
209
|
}
|
|
210
210
|
if (props.width && !supportsWidthValue(props.width)) {
|
|
211
211
|
classes += `w-${props.width} `;
|
|
@@ -73,7 +73,7 @@ const computedClass = computed(() => {
|
|
|
73
73
|
classes += " text-base";
|
|
74
74
|
}
|
|
75
75
|
if (props.color && !isHex(props.color)) {
|
|
76
|
-
classes += ` border-${props.color} focus:ring-
|
|
76
|
+
classes += ` border-${props.color} focus:ring-0 `;
|
|
77
77
|
}
|
|
78
78
|
if (props.width && !supportsWidthValue(props.width)) {
|
|
79
79
|
classes += ` w-${props.width}`;
|
|
@@ -176,7 +176,7 @@ onBeforeUnmount(() => {
|
|
|
176
176
|
|
|
177
177
|
<template>
|
|
178
178
|
<div class="flex flex-col gap-1">
|
|
179
|
-
<label v-if="label" class="font-medium">
|
|
179
|
+
<label v-if="label" class="font-medium" :class="!isHex(color) ? `text-${color}` : ''" :style="isHex(color) ? `color: ${color}` : ''">
|
|
180
180
|
{{ label }}
|
|
181
181
|
</label>
|
|
182
182
|
|
|
@@ -71,7 +71,7 @@ const toggle = () => {
|
|
|
71
71
|
:aria-checked="isActive"
|
|
72
72
|
:aria-disabled="disabled"
|
|
73
73
|
:class="[
|
|
74
|
-
'relative inline-flex items-center cursor-pointer rounded-full focus-visible:outline-none focus-visible:ring-
|
|
74
|
+
'relative inline-flex items-center cursor-pointer rounded-full focus-visible:outline-none focus-visible:ring-0 focus-visible:ring-offset-1',
|
|
75
75
|
error ? 'focus-visible:ring-red-500' : 'focus-visible:ring-blue-500',
|
|
76
76
|
{ 'opacity-50 pointer-events-none': disabled }
|
|
77
77
|
]"
|
|
@@ -84,7 +84,7 @@ const toggle = () => {
|
|
|
84
84
|
'block rounded-full transition-colors duration-300 ease-in-out',
|
|
85
85
|
toggleSize.bg,
|
|
86
86
|
toggleBgClasses,
|
|
87
|
-
error ? 'ring-
|
|
87
|
+
error ? 'ring-0 ring-red-400' : ''
|
|
88
88
|
]"
|
|
89
89
|
:style="toggleBgStyle"
|
|
90
90
|
/>
|