@frigear-nu/widget 0.0.4 → 0.1.0
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
|
@@ -33,11 +33,11 @@ function onKeydown(event, index) {
|
|
|
33
33
|
<template>
|
|
34
34
|
<div
|
|
35
35
|
v-if="tabs?.length"
|
|
36
|
-
class="flex flex-col gap-
|
|
36
|
+
class="flex flex-col gap-4"
|
|
37
37
|
>
|
|
38
38
|
<div
|
|
39
39
|
role="tablist"
|
|
40
|
-
class="
|
|
40
|
+
class="-mx-1 flex overflow-x-auto overflow-y-hidden border-b border-default"
|
|
41
41
|
>
|
|
42
42
|
<button
|
|
43
43
|
v-for="(tab, index) in tabs"
|
|
@@ -48,15 +48,15 @@ function onKeydown(event, index) {
|
|
|
48
48
|
:aria-selected="tab.id === active?.id"
|
|
49
49
|
:aria-controls="`tabpanel-${name}`"
|
|
50
50
|
:tabindex="tab.id === active?.id ? 0 : -1"
|
|
51
|
-
class="inline-flex shrink-0 items-center gap-
|
|
52
|
-
:class="tab.id === active?.id ? 'border-primary text-highlighted' : 'border-transparent text-muted hover:text-
|
|
51
|
+
class="inline-flex shrink-0 items-center gap-1.5 border-b-2 px-3 py-2 text-sm font-medium transition-colors focus-visible:outline-2 focus-visible:outline-primary/50"
|
|
52
|
+
:class="tab.id === active?.id ? 'border-primary text-highlighted' : 'border-transparent text-muted hover:text-highlighted'"
|
|
53
53
|
@click="select(tab.id)"
|
|
54
54
|
@keydown="onKeydown($event, index)"
|
|
55
55
|
>
|
|
56
56
|
<UIcon
|
|
57
57
|
v-if="tab.icon"
|
|
58
58
|
:name="tab.icon"
|
|
59
|
-
class="size-
|
|
59
|
+
class="size-5 shrink-0 max-sm:hidden"
|
|
60
60
|
/>
|
|
61
61
|
{{ tab.label }}
|
|
62
62
|
</button>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frigear-nu/widget",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Named widget areas - modules contribute widgets (extendWidgets) and hosts render them with <WidgetArea>, with ordering and a filter hook for gating.",
|
|
5
5
|
"homepage": "https://docs.frigear.dev/modules/widget",
|
|
6
6
|
"repository": {
|
|
@@ -30,21 +30,21 @@
|
|
|
30
30
|
"playground"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nuxt/kit": "^4.6.
|
|
34
|
-
"@frigear-nu/module-kit": "1.0
|
|
33
|
+
"@nuxt/kit": "^4.6.1",
|
|
34
|
+
"@frigear-nu/module-kit": "1.1.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@nuxt/devtools": "^3.4.2",
|
|
38
38
|
"@nuxt/eslint-config": "^1.17.0",
|
|
39
39
|
"@nuxt/module-builder": "^1.0.3",
|
|
40
|
-
"@nuxt/schema": "^4.6.
|
|
40
|
+
"@nuxt/schema": "^4.6.1",
|
|
41
41
|
"@nuxt/test-utils": "^4.3.2",
|
|
42
|
-
"@types/node": "
|
|
42
|
+
"@types/node": "^26.6.5",
|
|
43
43
|
"changelogen": "^0.6.2",
|
|
44
|
-
"eslint": "^10.
|
|
44
|
+
"eslint": "^10.12.0",
|
|
45
45
|
"nuxt": "^4.6.1",
|
|
46
46
|
"typescript": "^6.0.3",
|
|
47
|
-
"vitest": "^5.0.
|
|
47
|
+
"vitest": "^5.0.2",
|
|
48
48
|
"vue-tsc": "^3.3.11"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|