@una-ui/nuxt 0.55.1 → 0.55.3
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
package/dist/module.mjs
CHANGED
|
@@ -79,7 +79,7 @@ const [DefineTemplate, ReuseTemplate] = createReusableTemplate();
|
|
|
79
79
|
una?.btn,
|
|
80
80
|
props.class
|
|
81
81
|
)"
|
|
82
|
-
:disabled="
|
|
82
|
+
:disabled="disabled || loading"
|
|
83
83
|
:aria-label="props.ariaLabel ? props.ariaLabel : props.icon ? props.label : void 0"
|
|
84
84
|
:rounded
|
|
85
85
|
:size
|
|
@@ -12,6 +12,11 @@ export default defineComponent({
|
|
|
12
12
|
type: String,
|
|
13
13
|
default: void 0
|
|
14
14
|
},
|
|
15
|
+
/** Force the link to be active independent of the current route. */
|
|
16
|
+
active: {
|
|
17
|
+
type: Boolean,
|
|
18
|
+
default: void 0
|
|
19
|
+
},
|
|
15
20
|
exact: {
|
|
16
21
|
type: Boolean,
|
|
17
22
|
default: false
|
|
@@ -46,6 +51,12 @@ export default defineComponent({
|
|
|
46
51
|
setup(props) {
|
|
47
52
|
const route = useRoute();
|
|
48
53
|
function resolveLinkClass(route2, $route, { isActive, isExactActive }) {
|
|
54
|
+
if (props.active === true) {
|
|
55
|
+
return props.activeClass;
|
|
56
|
+
}
|
|
57
|
+
if (props.active === false) {
|
|
58
|
+
return props.inactiveClass;
|
|
59
|
+
}
|
|
49
60
|
if (props.exactQuery && !isEqual(route2.query, $route.query))
|
|
50
61
|
return props.inactiveClass;
|
|
51
62
|
if (props.exactHash && !isEqual(route2.hash, $route.hash))
|
|
@@ -28,6 +28,12 @@ export interface NLinkProps extends NuxtLinkProps {
|
|
|
28
28
|
* @default false
|
|
29
29
|
*/
|
|
30
30
|
disabled?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Force the link to be active independent of the current route.
|
|
33
|
+
*
|
|
34
|
+
* @default false
|
|
35
|
+
*/
|
|
36
|
+
active?: boolean;
|
|
31
37
|
/**
|
|
32
38
|
* Active classes to apply when the link is inactive
|
|
33
39
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@una-ui/nuxt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.55.
|
|
4
|
+
"version": "0.55.3",
|
|
5
5
|
"description": "Nuxt module for @una-ui",
|
|
6
6
|
"author": "Phojie Rengel <phojrengel@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -58,17 +58,17 @@
|
|
|
58
58
|
"unocss": "^66.0.0",
|
|
59
59
|
"unocss-preset-animations": "^1.2.1",
|
|
60
60
|
"vaul-vue": "^0.4.1",
|
|
61
|
-
"@una-ui/
|
|
62
|
-
"@una-ui/
|
|
61
|
+
"@una-ui/extractor-vue-script": "^0.55.3",
|
|
62
|
+
"@una-ui/preset": "^0.55.3"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@iconify-json/lucide": "^1.2.
|
|
65
|
+
"@iconify-json/lucide": "^1.2.44",
|
|
66
66
|
"@iconify-json/radix-icons": "^1.2.2",
|
|
67
|
-
"@iconify-json/tabler": "^1.2.
|
|
67
|
+
"@iconify-json/tabler": "^1.2.18",
|
|
68
68
|
"@nuxt/module-builder": "^1.0.1",
|
|
69
69
|
"@nuxt/schema": "^3.17.3",
|
|
70
70
|
"nuxt": "^3.17.3",
|
|
71
|
-
"zod": "^3.
|
|
71
|
+
"zod": "^3.25.7"
|
|
72
72
|
},
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|