@veristone/nuxt-v-app 0.2.0 → 0.2.2

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.
@@ -11,8 +11,8 @@ export function useVToast() {
11
11
  title,
12
12
  description,
13
13
  icon: 'i-lucide-check-circle',
14
- color: 'green',
15
- timeout
14
+ color: 'success',
15
+ duration: timeout
16
16
  })
17
17
  }
18
18
 
@@ -21,8 +21,8 @@ export function useVToast() {
21
21
  title,
22
22
  description,
23
23
  icon: 'i-lucide-info',
24
- color: 'blue',
25
- timeout
24
+ color: 'info',
25
+ duration: timeout
26
26
  })
27
27
  }
28
28
 
@@ -31,8 +31,8 @@ export function useVToast() {
31
31
  title,
32
32
  description,
33
33
  icon: 'i-lucide-alert-circle',
34
- color: 'red',
35
- timeout
34
+ color: 'error',
35
+ duration: timeout
36
36
  })
37
37
  }
38
38
 
@@ -41,8 +41,8 @@ export function useVToast() {
41
41
  title,
42
42
  description,
43
43
  icon: 'i-lucide-alert-triangle',
44
- color: 'amber',
45
- timeout
44
+ color: 'warning',
45
+ duration: timeout
46
46
  })
47
47
  }
48
48
 
@@ -50,7 +50,7 @@ export function useVToast() {
50
50
  err: any,
51
51
  friendlyName: string,
52
52
  action: string,
53
- successColor: string = 'green'
53
+ successColor: string = 'success'
54
54
  ) => {
55
55
  if (err.value) {
56
56
  error(
@@ -63,7 +63,7 @@ export function useVToast() {
63
63
  title: `${friendlyName} ${action} successful`,
64
64
  icon: 'i-lucide-check-circle',
65
65
  color: successColor as any,
66
- timeout
66
+ duration: timeout
67
67
  })
68
68
  return true
69
69
  }
@@ -106,7 +106,7 @@ const groups = computed(() => [
106
106
  </script>
107
107
 
108
108
  <template>
109
- <UDashboardGroup unit="rem">
109
+ <UDashboardGroup unit="rem" class="h-full overflow-hidden">
110
110
  <UDashboardSidebar
111
111
  resizable
112
112
  collapsible
@@ -173,7 +173,9 @@ const groups = computed(() => [
173
173
 
174
174
  <UDashboardSearch :groups="groups" />
175
175
 
176
- <slot />
176
+ <div class="flex-1 overflow-y-auto">
177
+ <slot />
178
+ </div>
177
179
  <VaLayoutNotificationsSlideover />
178
180
  </UDashboardGroup>
179
181
  </template>