adminforth 4.3.0 → 4.3.1

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.
@@ -93,15 +93,20 @@
93
93
  <IconChevronDown :class="{'rotate-180': opened.includes(i) }" class="w-3 h-3 text-lightSidebarIcons dark:text-darkSidebarIcons transition-transform duration-200" aria-hidden="true" />
94
94
  </button>
95
95
 
96
- <transition name="slow-drop">
97
- <ul v-show="opened.includes(i)" :id="`dropdown-example${i}`" role="none" class="af-sidebar-dropdown mt-0.5 ml-[1.25rem] pl-2 border-l border-lightSidebarDevider dark:border-darkSidebarDevider space-y-0.5 overflow-hidden">
98
- <template v-for="(child, j) in item.children" :key="`menu-${i}-${j}`">
99
- <li class="af-sidebar-menu-link">
100
- <MenuLink :item="child" isChild="true" @click="$emit('hideSidebar')"/>
101
- </li>
102
- </template>
103
- </ul>
104
- </transition>
96
+ <div class="grid transition-[grid-template-rows,opacity] duration-200 ease-in-out"
97
+ :class="opened.includes(i) ? 'grid-rows-[1fr] opacity-100' : 'grid-rows-[0fr] opacity-0'"
98
+ :inert="!opened.includes(i)"
99
+ >
100
+ <div class="min-h-0 overflow-hidden">
101
+ <ul :id="`dropdown-example${i}`" role="none" class="af-sidebar-dropdown mt-0.5 ml-[1.25rem] pl-2 border-l border-lightSidebarDevider dark:border-darkSidebarDevider space-y-0.5">
102
+ <template v-for="(child, j) in item.children" :key="`menu-${i}-${j}`">
103
+ <li class="af-sidebar-menu-link">
104
+ <MenuLink :item="child" isChild="true" @click="$emit('hideSidebar')"/>
105
+ </li>
106
+ </template>
107
+ </ul>
108
+ </div>
109
+ </div>
105
110
  </li>
106
111
  <li v-else class="af-sidebar-menu-link">
107
112
  <MenuLink :item="item" @click="$emit('hideSidebar')"/>
@@ -295,25 +300,6 @@
295
300
  background-color: rgba(75, 85, 99, 0.4);
296
301
  }
297
302
 
298
- /* Custom animation for dropdown */
299
- .slow-drop-enter-active,
300
- .slow-drop-leave-active {
301
- overflow: hidden;
302
- transition: opacity 0.2s ease, transform 0.2s ease;
303
- }
304
-
305
- .slow-drop-enter-from,
306
- .slow-drop-leave-to {
307
- opacity: 0;
308
- transform: translateY(-4px);
309
- }
310
-
311
- .slow-drop-enter-to,
312
- .slow-drop-leave-from {
313
- opacity: 1;
314
- transform: translateY(0);
315
- }
316
-
317
303
  /* For browsers that support overlay scrollbars natively */
318
304
  @supports (overflow: overlay) {
319
305
  .sidebar-scroll {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adminforth",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "OpenSource Agent-Native forth-generation admin panel",
5
5
  "keywords": [
6
6
  "adminforth",