ketekny-ui-kit 1.0.130 → 1.0.132

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.130",
4
+ "version": "1.0.132",
5
5
  "description": "A Vue 3 UI component library with Tailwind CSS styling",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -81,6 +81,10 @@ export default {
81
81
  type: Object,
82
82
  default: null,
83
83
  },
84
+ accountMenuItems: {
85
+ type: Array,
86
+ default: () => [],
87
+ },
84
88
  contactEmail: {
85
89
  type: String,
86
90
  default: "grammateia@ketekny.gr",
@@ -214,6 +218,7 @@ export default {
214
218
  icon: 'UserRound',
215
219
  action: () => this.handleFooterSelect('my-profile'),
216
220
  },
221
+ ...this.accountMenuItems,
217
222
  {
218
223
  label: 'Βοήθεια',
219
224
  icon: 'CircleHelp',
@@ -487,7 +492,7 @@ export default {
487
492
 
488
493
  <template>
489
494
  <aside
490
- class="group/sidebar sidebar-root fixed inset-y-0 left-0 z-40 flex h-full shrink-0 flex-col border-r border-[var(--sidebar-border)] bg-[var(--sidebar-bg)] text-[var(--sidebar-text)] transition-[width,transform] duration-200 ease-out lg:static lg:translate-x-0"
495
+ class="group/sidebar sidebar-root fixed inset-y-0 left-0 z-40 flex h-full shrink-0 flex-col border-r border-[var(--sidebar-border)] bg-[var(--sidebar-bg)] text-[var(--sidebar-text)] transition-transform duration-200 ease-out lg:static lg:translate-x-0"
491
496
  :style="sidebarWidthStyle"
492
497
  :class="[
493
498
  themeClass,
@@ -634,7 +639,7 @@ export default {
634
639
  />
635
640
  </ul>
636
641
  <p
637
- v-if="!collapsed && displayedMenuItems.length === 0"
642
+ v-if="!collapsed && displayedMenuItems.length === 0 && (query.trim() || !$slots['sidebar-panel'])"
638
643
  class="px-3 py-6 text-center text-[var(--sidebar-text-muted)]"
639
644
  >
640
645
  Δεν βρέθηκαν αποτελέσματα.
@@ -13,6 +13,7 @@
13
13
  :show-menu-search="showMenuSearch"
14
14
  :mobile-open="mobileMenuOpen"
15
15
  :account="account"
16
+ :account-menu-items="accountMenuItems"
16
17
  :contact-email="contactEmail"
17
18
  :help-url="helpUrl"
18
19
  @logo-click="handleLogoClick"
@@ -100,6 +101,10 @@ export default {
100
101
  type: Object,
101
102
  default: null,
102
103
  },
104
+ accountMenuItems: {
105
+ type: Array,
106
+ default: () => [],
107
+ },
103
108
  contactEmail: {
104
109
  type: String,
105
110
  default: "grammateia@ketekny.gr",
@@ -77,7 +77,7 @@
77
77
  </div>
78
78
 
79
79
  <pre class="p-4 overflow-x-auto rounded-lg text-[11px] leading-5 cp-pre">
80
- <code class="font-mono text-[11px]" v-html="highlightedCode"></code>
80
+ <code class="font-mono text-[11px]">{{ code.trim() }}</code>
81
81
  </pre>
82
82
  </div>
83
83
  </div>
@@ -85,11 +85,6 @@
85
85
  </template>
86
86
 
87
87
  <script>
88
- import hljs from "highlight.js/lib/core";
89
- import xml from "highlight.js/lib/languages/xml";
90
-
91
- hljs.registerLanguage("xml", xml);
92
-
93
88
  export default {
94
89
  name: "ComponentShowcase",
95
90
  props: {
@@ -113,14 +108,6 @@ export default {
113
108
  };
114
109
  },
115
110
  computed: {
116
- highlightedCode() {
117
- if (!this.code) return "";
118
- try {
119
- return hljs.highlight(this.code.trim(), { language: "xml" }).value;
120
- } catch {
121
- return this.escapeHtml(this.code.trim());
122
- }
123
- },
124
111
  previewViewportClass() {
125
112
  if (this.activeViewport === "mobile") return "max-w-[430px]";
126
113
  if (this.activeViewport === "tablet") return "max-w-[820px]";
@@ -137,11 +124,6 @@ export default {
137
124
  console.error("Failed to copy code:", err);
138
125
  }
139
126
  },
140
- escapeHtml(text) {
141
- const div = document.createElement("div");
142
- div.textContent = text;
143
- return div.innerHTML;
144
- },
145
127
  },
146
128
  };
147
129
  </script>