ketekny-ui-kit 1.0.93 → 1.0.95

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ketekny-ui-kit",
3
3
  "type": "module",
4
- "version": "1.0.93",
4
+ "version": "1.0.95",
5
5
  "description": "A Vue 3 UI component library with Tailwind CSS styling",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -118,6 +118,9 @@ export default {
118
118
  collect(this.filteredMenu)
119
119
  return all
120
120
  },
121
+ expandedFooterLinks() {
122
+ return this.footerLinks.filter(link => link.id !== 'my-profile')
123
+ },
121
124
  },
122
125
  watch: {
123
126
  mainMenu: {
@@ -352,29 +355,27 @@ export default {
352
355
  </nav>
353
356
 
354
357
  <div class="p-3 mt-auto border-t border-sidebar-border">
355
- <div
356
- class="flex items-center py-2 rounded-md hover:bg-sidebar-accent"
357
- :class="collapsed ? 'justify-center px-0' : 'gap-2.5 px-2'"
358
- >
359
- <CircleUser class="size-8 shrink-0 text-sidebar-muted" :stroke-width="1.75" />
360
- <div v-if="!collapsed" class="flex-1 min-w-0">
361
- <p class="text-sm font-medium truncate text-sidebar-foreground">{{ accountDisplayName }}</p>
362
- <p class="text-xs truncate text-sidebar-muted">{{ accountEmail }}</p>
358
+ <div :class="collapsed ? 'flex flex-col items-center gap-1' : 'space-y-1'">
359
+ <div v-if="!collapsed" class="flex items-center gap-2">
360
+ <button
361
+ type="button"
362
+ class="sidebar-footer-item flex min-h-[38px] flex-1 items-center gap-2.5 rounded-md bg-transparent px-2 py-2 text-left text-sm font-medium text-sidebar-foreground/80 outline-none transition-colors duration-150 hover:bg-sidebar-accent hover:text-sidebar-foreground"
363
+ @click="handleFooterSelect('my-profile')"
364
+ >
365
+ <CircleUser class="sidebar-footer-item-icon size-4 shrink-0" :stroke-width="1.9" />
366
+ <span class="min-w-0 flex-1">
367
+ <span class="block truncate">Το προφίλ μου</span>
368
+ <span class="block truncate text-xs font-normal text-sidebar-muted">{{ accountEmail }}</span>
369
+ </span>
370
+ </button>
371
+ <button
372
+ type="button"
373
+ class="rounded-md p-1.5 text-sidebar-muted hover:bg-sidebar-accent hover:text-sidebar-foreground"
374
+ aria-label="Notifications"
375
+ >
376
+ <Bell class="size-4" :stroke-width="2" />
377
+ </button>
363
378
  </div>
364
- <button
365
- v-if="!collapsed"
366
- type="button"
367
- class="rounded-md p-1.5 text-sidebar-muted hover:bg-sidebar-accent hover:text-sidebar-foreground"
368
- aria-label="Notifications"
369
- >
370
- <Bell class="size-4" :stroke-width="2" />
371
- </button>
372
- </div>
373
-
374
- <div
375
- class="pt-2 mt-2 border-t border-sidebar-border/70"
376
- :class="collapsed ? 'flex flex-col items-center gap-1' : 'space-y-1'"
377
- >
378
379
  <button
379
380
  v-for="link in footerLinks"
380
381
  :key="link.id"
@@ -407,7 +408,7 @@ export default {
407
408
  />
408
409
  </button>
409
410
  <button
410
- v-for="link in footerLinks"
411
+ v-for="link in expandedFooterLinks"
411
412
  :key="`${link.id}-expanded`"
412
413
  v-else
413
414
  type="button"
package/src/ui/kTable.vue CHANGED
@@ -115,7 +115,7 @@ export default {
115
115
  }
116
116
 
117
117
  .table-custom--card th {
118
- @apply px-6 py-4 text-lg font-semibold text-left text-white bg-primary border-b border-primary;
118
+ @apply px-4 py-2.5 text-sm font-semibold text-left text-white bg-primary border-b border-primary;
119
119
  }
120
120
 
121
121
  .table-custom--plain th {
@@ -127,15 +127,15 @@ export default {
127
127
  }
128
128
 
129
129
  .table-custom--card td {
130
- @apply h-[3.2rem] px-6 py-4 text-base text-slate-800 dark:text-slate-200;
130
+ @apply h-10 px-4 py-2.5 text-sm text-slate-800 dark:text-slate-200;
131
131
  }
132
132
 
133
133
  .table-custom--plain td {
134
- @apply h-[3.2rem] px-2 py-2 text-base text-slate-800 dark:text-slate-200;
134
+ @apply h-10 px-2 py-2 text-sm text-slate-800 dark:text-slate-200;
135
135
  }
136
136
 
137
137
  .table-custom--flat td {
138
- @apply h-[3.2rem] px-4 py-2 text-base text-slate-900 dark:text-slate-200 align-middle;
138
+ @apply h-10 px-3 py-2 text-sm text-slate-900 dark:text-slate-200 align-middle;
139
139
  }
140
140
 
141
141
  .table-custom tr {
@@ -6,10 +6,10 @@ export const K_BUTTON_BASE = "inline-flex flex-row items-center justify-center f
6
6
  export const K_BUTTON_SIZE_STYLES = {
7
7
  normal: {
8
8
  regular: "h-9 px-4 text-sm",
9
- iconOnly: "h-10 w-10 p-0",
10
- icon: "w-5 h-5",
11
- loader: "w-5 h-5",
12
- gap: "mr-2",
9
+ iconOnly: "h-9 w-9 p-0",
10
+ icon: "w-4 h-4",
11
+ loader: "w-4 h-4",
12
+ gap: "mr-1.5",
13
13
  },
14
14
  small: {
15
15
  regular: "h-8 px-3 text-sm",
@@ -28,10 +28,10 @@ export const K_BUTTON_SIZE_STYLES = {
28
28
  // Backward compatibility aliases
29
29
  default: {
30
30
  regular: "h-9 px-4 text-sm",
31
- iconOnly: "h-10 w-10 p-0",
32
- icon: "w-5 h-5",
33
- loader: "w-5 h-5",
34
- gap: "mr-2",
31
+ iconOnly: "h-9 w-9 p-0",
32
+ icon: "w-4 h-4",
33
+ loader: "w-4 h-4",
34
+ gap: "mr-1.5",
35
35
  },
36
36
  };
37
37