ketekny-ui-kit 1.0.136 → 1.0.137

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/ui/kCard.vue +10 -15
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ketekny-ui-kit",
3
3
  "type": "module",
4
- "version": "1.0.136",
4
+ "version": "1.0.137",
5
5
  "description": "A Vue 3 UI component library with Tailwind CSS styling",
6
6
  "main": "index.js",
7
7
  "files": [
package/src/ui/kCard.vue CHANGED
@@ -26,19 +26,19 @@
26
26
  >
27
27
  <div class="min-w-0 flex-1">
28
28
  <slot name="header">
29
- <div class="flex items-center gap-3">
30
- <span
29
+ <div class="flex flex-row items-center gap-3">
30
+ <kIcon
31
31
  v-if="icon"
32
- class="inline-flex size-8 shrink-0 items-center justify-center rounded-lg"
33
- :class="iconClasses"
34
- >
35
- <kIcon :name="icon" :size="18" :color="iconColor" />
36
- </span>
32
+ :name="icon"
33
+ class="h-8 w-8 shrink-0"
34
+ :color="iconColor"
35
+ aria-hidden="true"
36
+ />
37
37
  <div class="min-w-0">
38
- <p v-if="title" class="text-sm font-semibold" :class="titleClasses">
38
+ <h4 v-if="title" class="font-semibold leading-tight" :class="titleClasses">
39
39
  {{ title }}
40
- </p>
41
- <p v-if="subtitle" class="text-sm" :class="[subtitleClasses, { 'mt-1': title }]">
40
+ </h4>
41
+ <p v-if="subtitle" class="text-sm leading-tight" :class="[subtitleClasses, { 'mt-0.5': title }]">
42
42
  {{ subtitle }}
43
43
  </p>
44
44
  </div>
@@ -153,11 +153,6 @@ export default {
153
153
  subtitleClasses() {
154
154
  return this.isDark ? 'text-slate-400' : 'text-slate-500'
155
155
  },
156
- iconClasses() {
157
- return this.isDark
158
- ? 'bg-white/10 text-slate-100'
159
- : 'bg-primary/10 text-primary'
160
- },
161
156
  iconColor() {
162
157
  return this.isDark ? '#f1f5f9' : 'currentColor'
163
158
  },