@contractspec/lib.ui-link 3.0.0 → 3.2.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/README.md +37 -0
- package/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# @contractspec/lib.ui-link
|
|
2
|
+
|
|
3
|
+
Website: https://contractspec.io/
|
|
4
|
+
|
|
5
|
+
**Deep linking utilities for navigation.**
|
|
6
|
+
|
|
7
|
+
Provides a styled React `Link` component wrapping the native `<a>` element with `cn()` class merging from `@contractspec/lib.ui-kit-core`.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
bun add @contractspec/lib.ui-link
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Exports
|
|
16
|
+
|
|
17
|
+
- `.` -- Default `Link` component
|
|
18
|
+
- `./ui/link` -- Same `Link` component (explicit subpath)
|
|
19
|
+
|
|
20
|
+
## Usage
|
|
21
|
+
|
|
22
|
+
```tsx
|
|
23
|
+
import Link from "@contractspec/lib.ui-link";
|
|
24
|
+
|
|
25
|
+
function Nav() {
|
|
26
|
+
return (
|
|
27
|
+
<nav>
|
|
28
|
+
<Link href="/docs" className="text-blue-600 hover:underline">
|
|
29
|
+
Documentation
|
|
30
|
+
</Link>
|
|
31
|
+
<Link href="/studio">
|
|
32
|
+
Studio
|
|
33
|
+
</Link>
|
|
34
|
+
</nav>
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/lib.ui-link",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Deep linking utilities for navigation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -27,14 +27,14 @@
|
|
|
27
27
|
"typecheck": "tsc --noEmit"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@contractspec/lib.ui-kit-core": "3.
|
|
30
|
+
"@contractspec/lib.ui-kit-core": "3.2.0",
|
|
31
31
|
"react": "19.2.4",
|
|
32
32
|
"react-dom": "19.2.4"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@contractspec/tool.typescript": "3.
|
|
35
|
+
"@contractspec/tool.typescript": "3.2.0",
|
|
36
36
|
"typescript": "^5.9.3",
|
|
37
|
-
"@contractspec/tool.bun": "3.
|
|
37
|
+
"@contractspec/tool.bun": "3.2.0"
|
|
38
38
|
},
|
|
39
39
|
"files": [
|
|
40
40
|
"dist",
|