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
|
@@ -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
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
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
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
-
icon: "w-
|
|
11
|
-
loader: "w-
|
|
12
|
-
gap: "mr-
|
|
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-
|
|
32
|
-
icon: "w-
|
|
33
|
-
loader: "w-
|
|
34
|
-
gap: "mr-
|
|
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
|
|