@cocoar/vue-ui 2.1.0 → 2.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/dist/components/_internal/use-router-link.d.ts +32 -0
- package/dist/components/_internal/use-router-link.d.ts.map +1 -0
- package/dist/components/breadcrumb/CoarBreadcrumbItem.vue.d.ts +50 -2
- package/dist/components/breadcrumb/CoarBreadcrumbItem.vue.d.ts.map +1 -1
- package/dist/components/button/CoarButton.vue.d.ts +19 -3
- package/dist/components/button/CoarButton.vue.d.ts.map +1 -1
- package/dist/components/link/CoarLink.vue.d.ts +62 -0
- package/dist/components/link/CoarLink.vue.d.ts.map +1 -0
- package/dist/components/link/index.d.ts +3 -0
- package/dist/components/link/index.d.ts.map +1 -0
- package/dist/components/menu/CoarMenuItem.vue.d.ts +39 -2
- package/dist/components/menu/CoarMenuItem.vue.d.ts.map +1 -1
- package/dist/components/number-input/CoarNumberInput.vue.d.ts +1 -1
- package/dist/components/number-input/CoarNumberInput.vue.d.ts.map +1 -1
- package/dist/components/overlay/CoarOverlayOutlet.vue.d.ts.map +1 -1
- package/dist/components/sidebar/CoarSidebarItem.vue.d.ts +30 -2
- package/dist/components/sidebar/CoarSidebarItem.vue.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1732 -1378
- package/package.json +11 -4
- package/styles/link.css +14 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocoar/vue-ui",
|
|
3
|
-
"version": "2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Cocoar Design System — a touch-first Vue 3 component library with 30+ accessible, themeable components",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"typecheck": "vue-tsc --noEmit"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@cocoar/vue-localization": "2.1
|
|
52
|
+
"@cocoar/vue-localization": "2.2.1",
|
|
53
53
|
"@fontsource/cascadia-code": "^5.2.3",
|
|
54
54
|
"@fontsource/inter": "^5.2.8",
|
|
55
55
|
"@fontsource/poppins": "^5.2.7",
|
|
@@ -60,11 +60,18 @@
|
|
|
60
60
|
"prismjs": "^1.30.0"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
|
-
"vue": "^3.5.0"
|
|
63
|
+
"vue": "^3.5.0",
|
|
64
|
+
"vue-router": "^4.0.0"
|
|
65
|
+
},
|
|
66
|
+
"peerDependenciesMeta": {
|
|
67
|
+
"vue-router": {
|
|
68
|
+
"optional": true
|
|
69
|
+
}
|
|
64
70
|
},
|
|
65
71
|
"devDependencies": {
|
|
66
72
|
"@types/prismjs": "^1.26.6",
|
|
67
73
|
"overlayscrollbars": "^2.15.1",
|
|
68
|
-
"vue": "^3.5.32"
|
|
74
|
+
"vue": "^3.5.32",
|
|
75
|
+
"vue-router": "^4.6.4"
|
|
69
76
|
}
|
|
70
77
|
}
|
package/styles/link.css
CHANGED
|
@@ -60,6 +60,20 @@
|
|
|
60
60
|
text-decoration: none;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
/* `<button class="coar-link coar-link--as-button">` — emitted by the
|
|
64
|
+
`<CoarLink>` SFC when neither `to` nor `href` is provided (a "fake link"
|
|
65
|
+
that triggers a callback rather than navigating). Reset the native
|
|
66
|
+
button chrome so it visually matches the `<a class="coar-link">` siblings. */
|
|
67
|
+
.coar-link--as-button {
|
|
68
|
+
background: transparent;
|
|
69
|
+
border: 0;
|
|
70
|
+
padding: 0;
|
|
71
|
+
margin: 0;
|
|
72
|
+
font: inherit;
|
|
73
|
+
line-height: inherit;
|
|
74
|
+
text-align: inherit;
|
|
75
|
+
}
|
|
76
|
+
|
|
63
77
|
/* Reduced motion */
|
|
64
78
|
@media (prefers-reduced-motion: reduce) {
|
|
65
79
|
.coar-link {
|