ketekny-ui-kit 1.0.88 → 1.0.89

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.88",
4
+ "version": "1.0.89",
5
5
  "description": "A Vue 3 UI component library with Tailwind CSS styling",
6
6
  "main": "index.js",
7
7
  "files": [
@@ -12,18 +12,19 @@
12
12
  <component
13
13
  :is="menuItemComponent(item)"
14
14
  v-bind="item.bindings"
15
- class="flex min-w-0 flex-1 appearance-none items-center gap-3 border-0 bg-transparent px-2 py-1.5 text-left outline-none transition-all duration-150"
15
+ class="sidebar-menu-item flex min-w-0 flex-1 appearance-none items-center gap-3 rounded-r-xl border-l-2 border-transparent bg-transparent px-3 py-2 text-left outline-none transition-all duration-150"
16
16
  :class="itemRowClasses(item)"
17
17
  @click="handleItemClick(item, $event)"
18
18
  >
19
19
  <span
20
- class="flex h-5 w-5 shrink-0 items-center justify-center text-[#eef2f7] transition-colors duration-150"
20
+ class="flex h-5 w-5 shrink-0 items-center justify-center transition-colors duration-150"
21
+ :class="item.active ? 'text-[#eef2f7]' : 'text-gray-500'"
21
22
  >
22
23
  <kIcon
23
24
  v-if="showFullIcon(item)"
24
25
  :name="item.icon"
25
26
  size="18"
26
- color="#eef2f7"
27
+ :color="item.active ? '#eef2f7' : '#9ca3af'"
27
28
  />
28
29
  <span
29
30
  v-else
@@ -37,7 +38,7 @@
37
38
  <span
38
39
  v-if="item.description"
39
40
  class="mt-1 block truncate"
40
- :class="[itemDescriptionClasses, item.active ? 'text-[#9fa6b5]' : 'text-[#6f7786]']"
41
+ :class="[itemDescriptionClasses, item.active ? 'text-[#9fa6b5]' : 'sidebar-menu-item-description text-[#6f7786]']"
41
42
  >
42
43
  {{ item.description }}
43
44
  </span>
@@ -105,11 +106,6 @@ export default {
105
106
  ? "text-[12px] leading-4"
106
107
  : "text-[11px] leading-4";
107
108
  },
108
- activeIndicatorClasses() {
109
- return this.level === 0
110
- ? "before:left-0"
111
- : "before:-left-4";
112
- },
113
109
  },
114
110
  methods: {
115
111
  menuItemComponent(item) {
@@ -135,9 +131,11 @@ export default {
135
131
  return this.level === 0 && Boolean(item?.icon);
136
132
  },
137
133
  itemRowClasses(item) {
138
- return item.active
139
- ? `relative rounded-xl bg-[#1f232b] text-white before:absolute before:bottom-2 before:top-2 before:w-[3px] before:rounded-r-full before:bg-[#2491ff] ${this.activeIndicatorClasses}`
140
- : "rounded-xl text-[#e5e7eb] hover:bg-[#242424] hover:text-white";
134
+ if (item.active) {
135
+ return "sidebar-menu-item--active text-white border-l-[#2491ff] bg-[#141922]";
136
+ }
137
+
138
+ return "text-[#e5e7eb] hover:text-white";
141
139
  },
142
140
  toggle(key) {
143
141
  this.$emit("toggle-branch", key);
@@ -145,3 +143,13 @@ export default {
145
143
  },
146
144
  };
147
145
  </script>
146
+
147
+ <style scoped>
148
+ .sidebar-menu-item--active {
149
+ box-shadow: inset 0 0 0 1px rgba(36, 145, 255, 0.1);
150
+ }
151
+
152
+ .sidebar-menu-item:hover .sidebar-menu-item-description {
153
+ color: #ffffff;
154
+ }
155
+ </style>