@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 +5 -5
- package/src/controls/ActionButton.vue +4 -4
- package/src/controls/ToggleControl.vue +2 -2
- package/src/forms/FormGroup.vue +1 -1
- package/src/forms/SliderControl.vue +2 -2
- package/src/forms/SwitchToggle.vue +1 -1
- package/src/layout/ConfigSection.vue +2 -2
- package/src/tray/TrayIconButton.vue +3 -3
- package/src/window/TopBar.vue +3 -3
- package/dist/vue-libvasak.css +0 -0
- package/dist/vue-libvasak.es.js +0 -2477
- package/dist/vue-libvasak.umd.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vasakgroup/vue-libvasak",
|
|
3
|
-
"version": "0.2.
|
|
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.
|
|
45
|
+
"@tauri-apps/api": "^2.10.1",
|
|
46
46
|
"@vasakgroup/plugin-vicons": "^2.0.0",
|
|
47
|
-
"vue": "^3.5.
|
|
48
|
-
"vue-router": "^
|
|
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.
|
|
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-
|
|
39
|
-
secondary: 'bg-
|
|
40
|
-
danger: 'bg-
|
|
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-
|
|
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-
|
|
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-
|
|
7
|
+
'ring-2 ring-primary dark:ring-primary-dark': isActive,
|
|
8
8
|
'opacity-60': !isActive,
|
|
9
9
|
...customClass
|
|
10
10
|
}"
|
package/src/forms/FormGroup.vue
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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"
|
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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
|
{
|
package/src/window/TopBar.vue
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import {
|
|
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-
|
|
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>
|
package/dist/vue-libvasak.css
DELETED
|
File without changes
|