@codecavepro/brand 3.2.5 → 3.2.7

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.
@@ -35,13 +35,11 @@ const imageUrl = (url: string) => props.resolveImage?.(url) ?? url
35
35
  rounded-[2.25rem] bg-surface-secondary hover:bg-surface-tertiary transition-colors cursor-pointer border-surface-tertiary border
36
36
  ${className ?? ''}`">
37
37
  <div class="flex flex-col sm:flex-row gap-5 sm:gap-8 h-fit">
38
- <div class="w-full h-full p-1">
39
- <img loading="lazy" class="sm:w-[132px] sm:h-[132px] rounded-xl object-scale-down"
38
+ <img loading="lazy" class="sm:w-33 sm:h-33 rounded-xl object-cover"
40
39
  :src="imageUrl(article.cover.url)"
41
40
  :alt="article.title"
42
41
  :width="100"
43
42
  :height="100"/>
44
- </div>
45
43
  <div class="space-y-2 sm:space-y-3">
46
44
  <time class="text-body-secondary text-xs sm:text-sm" :datetime="article.date?.toString()">
47
45
  {{ formattedDate(article.locale, article.date) }}
@@ -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
- <input :id="id" :type="type" :autocomplete="autocomplete" :placeholder="placeholder" :required="isRequired" :value="modelValue" @input="$emit('update:modelValue', ($event.target as HTMLInputElement).value)"
26
- :class="`
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codecavepro/brand",
3
- "version": "3.2.5",
3
+ "version": "3.2.7",
4
4
  "description": "CODECAVE design system — colour, typography and layout tokens as CSS custom properties and as a typed module.",
5
5
  "license": "Unlicense",
6
6
  "type": "module",