ketekny-ui-kit 1.0.94 → 1.0.96

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.94",
4
+ "version": "1.0.96",
5
5
  "description": "A Vue 3 UI component library with Tailwind CSS styling",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -15,3 +15,9 @@ body {
15
15
  font-family: 'Ubuntu', ui-sans-serif, system-ui, sans-serif;
16
16
  -webkit-font-smoothing: antialiased;
17
17
  }
18
+
19
+ @layer base {
20
+ html {
21
+ font-size: 14px;
22
+ }
23
+ }
@@ -314,7 +314,7 @@ export default {
314
314
  type="text"
315
315
  placeholder="Αναζήτηση μενού..."
316
316
  aria-label="Αναζήτηση μενού"
317
- class="w-full py-2 pl-8 pr-9 text-sm border rounded-md border-sidebar-border/35 bg-sidebar-accent/40 text-sidebar-foreground placeholder:text-sidebar-muted focus:border-white/15 focus:outline-none focus:ring-1 focus:ring-white/10"
317
+ class="w-full border rounded-md border-sidebar-border/35 bg-sidebar-accent/40 py-2 pl-8 pr-9 text-sidebar-foreground placeholder:text-sidebar-muted focus:border-white/15 focus:outline-none focus:ring-1 focus:ring-white/10"
318
318
  />
319
319
  <button
320
320
  v-if="query"
@@ -348,7 +348,7 @@ export default {
348
348
  </ul>
349
349
  <p
350
350
  v-if="!collapsed && filteredMenu.length === 0"
351
- class="px-3 py-6 text-sm text-center text-sidebar-muted"
351
+ class="px-3 py-6 text-center text-sidebar-muted"
352
352
  >
353
353
  Δεν βρέθηκαν αποτελέσματα.
354
354
  </p>
@@ -359,7 +359,7 @@ export default {
359
359
  <div v-if="!collapsed" class="flex items-center gap-2">
360
360
  <button
361
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"
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 font-medium text-sidebar-foreground/80 outline-none transition-colors duration-150 hover:bg-sidebar-accent hover:text-sidebar-foreground"
363
363
  @click="handleFooterSelect('my-profile')"
364
364
  >
365
365
  <CircleUser class="sidebar-footer-item-icon size-4 shrink-0" :stroke-width="1.9" />
@@ -382,7 +382,7 @@ export default {
382
382
  v-if="collapsed"
383
383
  type="button"
384
384
  v-tooltip.right="link.label"
385
- class="flex items-center w-full text-sm transition-colors duration-150 rounded-md"
385
+ class="flex items-center w-full rounded-md transition-colors duration-150"
386
386
  :class="[
387
387
  'justify-center px-0 py-2',
388
388
  activeId === link.id
@@ -412,7 +412,7 @@ export default {
412
412
  :key="`${link.id}-expanded`"
413
413
  v-else
414
414
  type="button"
415
- class="flex items-center w-full text-sm transition-colors duration-150 rounded-md"
415
+ class="flex items-center w-full rounded-md transition-colors duration-150"
416
416
  :class="[
417
417
  'gap-2.5 px-2 py-2 text-left',
418
418
  activeId === link.id
@@ -82,7 +82,7 @@ export default {
82
82
  <button
83
83
  type="button"
84
84
  :style="isCollapsedTop ? undefined : indentStyle"
85
- class="group relative flex w-full items-center rounded-md text-left text-sm transition-colors duration-150"
85
+ class="group relative flex w-full items-center rounded-md text-left transition-colors duration-150"
86
86
  :class="[
87
87
  isCollapsedTop ? 'h-10 justify-center px-0' : 'gap-2.5 py-2 pr-2',
88
88
  isActiveLeaf || (isCollapsedTop && isActive)
@@ -181,7 +181,7 @@ export default {
181
181
  >
182
182
  <button
183
183
  type="button"
184
- class="mb-1 flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-sm font-semibold"
184
+ class="mb-1 flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left font-semibold"
185
185
  :class="isActive ? 'text-brand' : 'text-sidebar-foreground hover:bg-sidebar-accent'"
186
186
  @click="!hasChildren && $emit('select', item)"
187
187
  >
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