@codecavepro/brand 3.2.5 → 3.2.6
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.
|
@@ -36,7 +36,7 @@ const imageUrl = (url: string) => props.resolveImage?.(url) ?? url
|
|
|
36
36
|
${className ?? ''}`">
|
|
37
37
|
<div class="flex flex-col sm:flex-row gap-5 sm:gap-8 h-fit">
|
|
38
38
|
<div class="w-full h-full p-1">
|
|
39
|
-
<img loading="lazy" class="sm:w-[132px] sm:h-[132px] rounded-xl object-
|
|
39
|
+
<img loading="lazy" class="sm:w-[132px] sm:h-[132px] rounded-xl object-cover"
|
|
40
40
|
:src="imageUrl(article.cover.url)"
|
|
41
41
|
:alt="article.title"
|
|
42
42
|
:width="100"
|
|
@@ -9,7 +9,7 @@ defineProps<{
|
|
|
9
9
|
placeholder: string
|
|
10
10
|
isRequired?: boolean
|
|
11
11
|
isError?: boolean
|
|
12
|
-
errorMessage?: string
|
|
12
|
+
errorMessage?: string
|
|
13
13
|
modelValue?: string
|
|
14
14
|
}>()
|
|
15
15
|
|
|
@@ -22,8 +22,17 @@ defineEmits(['update:modelValue'])
|
|
|
22
22
|
<span>{{ label }}</span>
|
|
23
23
|
<AsteriskIcon v-if="isRequired" />
|
|
24
24
|
</label>
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
|
|
26
|
+
<input
|
|
27
|
+
:id="id"
|
|
28
|
+
:type="type"
|
|
29
|
+
:autocomplete="autocomplete"
|
|
30
|
+
:placeholder="placeholder"
|
|
31
|
+
:required="isRequired"
|
|
32
|
+
:value="modelValue"
|
|
33
|
+
:aria-invalid="isError ? 'true' : undefined"
|
|
34
|
+
:aria-describedby="isError ? `${id}-error` : undefined"
|
|
35
|
+
:class="`
|
|
27
36
|
w-full p-3 pt-7 bg-surface-secondary rounded-lg placeholder:text-xs placeholder:text-body-secondary
|
|
28
37
|
focus:outline-none transition-colors border border-surface-tertiary
|
|
29
38
|
hover:bg-surface-tertiary
|
|
@@ -55,4 +64,4 @@ input.input-error:focus,
|
|
|
55
64
|
box-shadow: 0 0 16px 0 hsl(from var(--color-error-200) h s l / 0.5),
|
|
56
65
|
0 0 4px 0 hsl(from var(--color-error-100) h s l / 0.6);
|
|
57
66
|
}
|
|
58
|
-
</style>
|
|
67
|
+
</style>
|
package/package.json
CHANGED