ketekny-ui-kit 1.0.130 → 1.0.131

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.131",
5
5
  "description": "A Vue 3 UI component library with Tailwind CSS styling",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -487,7 +487,7 @@ export default {
487
487
 
488
488
  <template>
489
489
  <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"
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-transform duration-200 ease-out lg:static lg:translate-x-0"
491
491
  :style="sidebarWidthStyle"
492
492
  :class="[
493
493
  themeClass,
@@ -634,7 +634,7 @@ export default {
634
634
  />
635
635
  </ul>
636
636
  <p
637
- v-if="!collapsed && displayedMenuItems.length === 0"
637
+ v-if="!collapsed && displayedMenuItems.length === 0 && (query.trim() || !$slots['sidebar-panel'])"
638
638
  class="px-3 py-6 text-center text-[var(--sidebar-text-muted)]"
639
639
  >
640
640
  Δεν βρέθηκαν αποτελέσματα.
@@ -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>