@vasakgroup/vue-libvasak 0.2.0 → 0.2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vasakgroup/vue-libvasak",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Vue componenets for VSK Applications",
5
5
  "main": "./dist/vue-libvasak.umd.js",
6
6
  "module": "./dist/vue-libvasak.es.js",
@@ -42,10 +42,10 @@
42
42
  },
43
43
  "license": "GPLv3",
44
44
  "dependencies": {
45
- "@tauri-apps/api": "^2.9.1",
45
+ "@tauri-apps/api": "^2.10.1",
46
46
  "@vasakgroup/plugin-vicons": "^2.0.0",
47
- "vue": "^3.5.27",
48
- "vue-router": "^4.6.4"
47
+ "vue": "^3.5.28",
48
+ "vue-router": "^5.0.3"
49
49
  },
50
50
  "peerDependencies": {
51
51
  "vue": "^3.0.0"
@@ -53,7 +53,7 @@
53
53
  "devDependencies": {
54
54
  "typescript": "^5.9.3",
55
55
  "vite": "^7.3.1",
56
- "@vitejs/plugin-vue": "^6.0.3"
56
+ "@vitejs/plugin-vue": "^6.0.4"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "vite build",
@@ -35,9 +35,9 @@ const emit = defineEmits<{
35
35
  }>();
36
36
 
37
37
  const variantClasses: Record<string, string> = {
38
- primary: 'bg-vsk-primary text-white hover:bg-vsk-primary/90',
39
- secondary: 'bg-vsk-border text-vsk-text hover:bg-vsk-border/80',
40
- danger: 'bg-red-600 text-white hover:bg-red-700',
38
+ primary: 'bg-primary dark:bg-primary-dark text-tx-on-primary dark:text-tx-on-primary-dark hover:bg-primary/90 dark:hover:bg-primary-dark/90',
39
+ secondary: 'bg-secondary dark:bg-secondary-dark text-tx-on-primary dark:text-tx-on-primary-dark hover:bg-secondary/80 dark:hover:bg-secondary-dark/80',
40
+ danger: 'bg-status-error dark:bg-status-error-dark text-tx-on-primary dark:text-tx-on-primary-dark hover:bg-status-error/90 dark:hover:bg-status-error-dark/90',
41
41
  };
42
42
 
43
43
  const sizeClasses: Record<'sm' | 'md' | 'lg', string> = {
@@ -59,7 +59,7 @@ const handleClick = (event: Event) => {
59
59
  <button
60
60
  :type="props.type"
61
61
  @click="handleClick"
62
- class="rounded-vsk transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2"
62
+ class="rounded-corner transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed flex items-center justify-center gap-2"
63
63
  :class="[
64
64
  variantClasses[props.variant],
65
65
  sizeClasses[props.size],
@@ -1,10 +1,10 @@
1
1
  <template>
2
2
  <button
3
3
  @click="handleClick"
4
- class="p-2 rounded-vsk background hover:opacity-50 transition-all duration-300 h-17.5 w-17.5 group relative overflow-hidden hover:scale-105 hover:shadow-lg active:scale-95"
4
+ class="p-2 rounded-corner background hover:opacity-50 transition-all duration-300 h-17.5 w-17.5 group relative overflow-hidden hover:scale-105 hover:shadow-lg active:scale-95"
5
5
  :class="{
6
6
  'animate-pulse': isLoading,
7
- 'ring-2 ring-vsk-primary/50': isActive,
7
+ 'ring-2 ring-primary dark:ring-primary-dark': isActive,
8
8
  'opacity-60': !isActive,
9
9
  ...customClass
10
10
  }"
@@ -15,7 +15,7 @@ withDefaults(defineProps<Props>(), {
15
15
 
16
16
  <template>
17
17
  <div class="flex flex-col gap-2" :class="customClass">
18
- <label v-if="label" :for="htmlFor" class="text-sm font-medium text-vsk-primary" :class="labelClass">
18
+ <label v-if="label" :for="htmlFor" class="text-sm font-medium text-primary dark:text-primary-dark" :class="labelClass">
19
19
  {{ label }}
20
20
  </label>
21
21
  <slot />
@@ -1,11 +1,11 @@
1
1
  <template>
2
2
  <div
3
- class="background rounded-vsk flex flex-row items-center gap-2 justify-between w-full h-auto p-4 transition-all duration-200 hover:bg-white/60 dark:hover:bg-black/60"
3
+ class="background rounded-corner flex flex-row items-center gap-2 justify-between w-full h-auto p-4 transition-all duration-200 hover:bg-ui-surface/80 dark:hover:bg-ui-surface-dark/80"
4
4
  >
5
5
  <button
6
6
  v-if="showButton"
7
7
  @click="handleButtonClick"
8
- class="w-8 h-8 flex items-center justify-center rounded-vsk transition-all duration-200 hover:bg-white/30 dark:hover:bg-black/30 hover:scale-110 active:scale-95"
8
+ class="w-8 h-8 flex items-center justify-center rounded-corner transition-all duration-200 hover:bg-ui-surface/80 dark:hover:bg-ui-surface-dark/80 hover:scale-110 active:scale-95"
9
9
  >
10
10
  <img
11
11
  :src="icon"
@@ -34,7 +34,7 @@ interface Props {
34
34
  const props = withDefaults(defineProps<Props>(), {
35
35
  disabled: false,
36
36
  size: 'small',
37
- activeClass: 'bg-vsk-primary',
37
+ activeClass: 'bg-primary dark:bg-primary-dark',
38
38
  inactiveClass: 'background',
39
39
  customClass: '',
40
40
  });
@@ -13,10 +13,10 @@ withDefaults(defineProps<Props>(), {
13
13
 
14
14
  <template>
15
15
  <div
16
- class="flex flex-col gap-4 p-4 background rounded-vsk"
16
+ class="flex flex-col gap-4 p-4 background rounded-corner"
17
17
  :class="customClass"
18
18
  >
19
- <h3 class="text-base font-semibold m-0 text-vsk-primary">
19
+ <h3 class="text-base font-semibold m-0 text-primary dark:text-primary-dark">
20
20
  {{ icon ? `${icon} ${title}` : title }}
21
21
  </h3>
22
22
  <slot />
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div
3
- class="p-1 rounded-vsk relative hover:bg-vsk-primary/30 group transition-all duration-300"
3
+ class="p-1 rounded-corner relative hover:bg-primary dark:hover:bg-primary-dark group transition-all duration-300"
4
4
  :class="customClass"
5
5
  :title="tooltip"
6
6
  @click="handleClick"
@@ -17,7 +17,7 @@
17
17
  <!-- Badge/Counter -->
18
18
  <div
19
19
  v-if="badge !== null && badge > 0"
20
- class="absolute bottom-1 right-1 bg-vsk-primary text-white text-xs rounded-full w-4 h-4 flex items-center justify-center font-bold animate-bounce"
20
+ class="absolute bottom-1 right-1 bg-primary dark:bg-primary-dark text-white text-xs rounded-full w-4 h-4 flex items-center justify-center font-bold animate-bounce"
21
21
  >
22
22
  {{ badge }}
23
23
  </div>
@@ -25,7 +25,7 @@
25
25
  <!-- Tooltip personalizado -->
26
26
  <div
27
27
  v-if="showCustomTooltip && customTooltipText"
28
- class="absolute top-1 left-1/2 transform -translate-x-1/2 text-xs font-semibold p-1 rounded-vsk transition-all duration-300 pointer-events-none background"
28
+ class="absolute top-1 left-1/2 transform -translate-x-1/2 text-xs font-semibold p-1 rounded-corner transition-all duration-300 pointer-events-none background"
29
29
  :class="[
30
30
  tooltipClass,
31
31
  {
@@ -1,5 +1,5 @@
1
1
  <script lang="ts" setup>
2
- import { defineProps, ref, Ref, onMounted } from "vue";
2
+ import { ref, Ref, onMounted } from "vue";
3
3
  import { getCurrentWindow } from "@tauri-apps/api/window";
4
4
  import { getIconSource } from "@vasakgroup/plugin-vicons";
5
5
 
@@ -24,11 +24,11 @@ onMounted(async () => {
24
24
  <template>
25
25
  <div
26
26
  data-tauri-drag-region
27
- class="flex h-8 px-4 py-1 bg-vsk-primary rounded-t-window justify-between align-center"
27
+ class="flex h-8 px-4 py-1 bg-primary dark:bg-primary-dark rounded-t-corner-window justify-between align-center"
28
28
  ref="bar"
29
29
  >
30
30
  <div data-tauri-drag-region>
31
- <img :src="props.image" data-tauri-drag-region class="h-6 w-auto" />
31
+ <img :src="props.image" data-tauri-drag-region class="h-6 w-auto" :alt="props.title" />
32
32
  </div>
33
33
  <div data-tauri-drag-region>{{ props.title }}</div>
34
34
  <div data-tauri-drag-region>
File without changes