erp-blocks 1.1.4 → 1.1.5

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/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "erp-blocks",
3
3
  "configKey": "erp",
4
- "version": "1.1.4",
4
+ "version": "1.1.5",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.1"
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <div>
3
3
  <UCollapsible
4
+ v-if="breakpoints.isGreaterOrEqual('lg')"
4
5
  v-model:open="sidebarOpen"
5
6
  :ui="{
6
- root: 'max-lg:hidden',
7
7
  content: 'max-lg:fixed z-40 max-lg:bg-white left-0 top-0 data-[state=open]:animate-collapsible-right data-[state=closed]:animate-collapsible-left border-r border-scn-sidebar-border dark:border-default'
8
8
  }"
9
9
  >
@@ -19,15 +19,17 @@
19
19
  </template>
20
20
  </UCollapsible>
21
21
  <UDrawer
22
+ v-if="breakpoints.isSmaller('lg')"
22
23
  v-model:open="sidebarOpen"
23
24
  direction="left"
24
- :ui="{
25
- overlay: 'lg:hidden',
26
- content: 'lg:hidden'
27
- }"
28
25
  >
29
26
  <template #content>
30
- <div class="w-[40vw]">
27
+ <UIcon
28
+ name="i-lucide-x"
29
+ class="size-5 absolute z-50 top-4 right-4 cursor-pointer lg:hidden"
30
+ @click="closeSidebar"
31
+ />
32
+ <div class="w-[40vw] mt-10">
31
33
  <MainMenu />
32
34
  </div>
33
35
  </template>
@@ -37,7 +39,11 @@
37
39
 
38
40
  <script setup>
39
41
  import { useState } from "#app";
42
+ import { breakpointsTailwind, useBreakpoints } from "@vueuse/core";
40
43
  import MainMenu from "./MainMenu.vue";
44
+ const breakpoints = useBreakpoints(breakpointsTailwind, {
45
+ ssrWidth: 768
46
+ });
41
47
  const sidebarOpen = useState("sidebarOpen", () => true);
42
48
  function closeSidebar() {
43
49
  sidebarOpen.value = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "erp-blocks",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Ready-to-use UI layouts and components designed as ERP system elements ",
5
5
  "repository": {
6
6
  "type": "git",