@contractspec/lib.ui-link 3.7.12 → 3.7.14
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 +32 -33
- package/dist/browser/index.js +1 -16
- package/dist/browser/ui/link.js +1 -16
- package/dist/index.js +1 -16
- package/dist/ui/link.js +1 -16
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,53 +1,52 @@
|
|
|
1
1
|
# @contractspec/lib.ui-link
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
`@contractspec/lib.ui-link` provides a tiny link component for shared UI surfaces that should not be coupled to framework-specific routers.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
Website: https://contractspec.io
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Installation
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
- **Consumers**: bundles, apps
|
|
9
|
+
`bun add @contractspec/lib.ui-link`
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
or
|
|
13
12
|
|
|
14
13
|
`npm install @contractspec/lib.ui-link`
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
## What belongs here
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
This package is intentionally narrow:
|
|
18
|
+
|
|
19
|
+
- Generic anchor-style link behavior.
|
|
20
|
+
- Minimal styling composition via `@contractspec/lib.ui-kit-core`.
|
|
21
|
+
|
|
22
|
+
Use this package when you want shared link behavior without Expo-router or Next-specific coupling.
|
|
19
23
|
|
|
20
|
-
##
|
|
24
|
+
## API map
|
|
21
25
|
|
|
22
|
-
|
|
26
|
+
- root default export
|
|
27
|
+
- `./ui/link`
|
|
28
|
+
- `Link` component with anchor-style props and required `href`
|
|
23
29
|
|
|
24
|
-
##
|
|
30
|
+
## Operational semantics and gotchas
|
|
25
31
|
|
|
26
|
-
-
|
|
27
|
-
-
|
|
32
|
+
- The component renders a plain anchor.
|
|
33
|
+
- It depends on `@contractspec/lib.ui-kit-core` for `cn()`.
|
|
34
|
+
- Unlike `ui-kit` and `ui-kit-web`, this package should stay router-agnostic.
|
|
35
|
+
- The root export is just the default export from `./ui/link`.
|
|
28
36
|
|
|
29
|
-
##
|
|
37
|
+
## When not to use this package
|
|
30
38
|
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
-
|
|
34
|
-
- `bun run lint:check` — biome check .
|
|
35
|
-
- `bun run lint:fix` — biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .
|
|
36
|
-
- `bun run typecheck` — tsc --noEmit
|
|
37
|
-
- `bun run publish:pkg` — bun publish --tolerate-republish --ignore-scripts --verbose
|
|
38
|
-
- `bun run publish:pkg:canary` — bun publish:pkg --tag canary
|
|
39
|
-
- `bun run clean` — rm -rf dist
|
|
40
|
-
- `bun run build:bundle` — contractspec-bun-build transpile
|
|
41
|
-
- `bun run build:types` — contractspec-bun-build types
|
|
42
|
-
- `bun run prebuild` — contractspec-bun-build prebuild
|
|
39
|
+
- Do not use it for Expo-router navigation.
|
|
40
|
+
- Do not use it for Next.js `Link` behavior.
|
|
41
|
+
- Do not use it for complex navigation abstractions.
|
|
43
42
|
|
|
44
|
-
##
|
|
43
|
+
## Related packages
|
|
45
44
|
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
45
|
+
- `@contractspec/lib.ui-kit-core`
|
|
46
|
+
- `@contractspec/lib.ui-kit`
|
|
47
|
+
- `@contractspec/lib.ui-kit-web`
|
|
49
48
|
|
|
50
|
-
##
|
|
49
|
+
## Local commands
|
|
51
50
|
|
|
52
|
-
-
|
|
53
|
-
-
|
|
51
|
+
- `bun run lint:check`
|
|
52
|
+
- `bun run typecheck`
|
package/dist/browser/index.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { cn } from "@contractspec/lib.ui-kit-core";
|
|
3
|
-
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
4
|
-
function Link({
|
|
5
|
-
className,
|
|
6
|
-
...props
|
|
7
|
-
}) {
|
|
8
|
-
return /* @__PURE__ */ jsxDEV("a", {
|
|
9
|
-
className: cn("", className),
|
|
10
|
-
...props
|
|
11
|
-
}, undefined, false, undefined, this);
|
|
12
|
-
}
|
|
13
|
-
var link_default = Link;
|
|
14
|
-
export {
|
|
15
|
-
link_default as default
|
|
16
|
-
};
|
|
1
|
+
import{cn as t}from"@contractspec/lib.ui-kit-core";import{jsx as a}from"react/jsx-runtime";function e({className:r,...o}){return a("a",{className:t("",r),...o})}var f=e;export{f as default};
|
package/dist/browser/ui/link.js
CHANGED
|
@@ -1,16 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { cn } from "@contractspec/lib.ui-kit-core";
|
|
3
|
-
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
4
|
-
function Link({
|
|
5
|
-
className,
|
|
6
|
-
...props
|
|
7
|
-
}) {
|
|
8
|
-
return /* @__PURE__ */ jsxDEV("a", {
|
|
9
|
-
className: cn("", className),
|
|
10
|
-
...props
|
|
11
|
-
}, undefined, false, undefined, this);
|
|
12
|
-
}
|
|
13
|
-
var link_default = Link;
|
|
14
|
-
export {
|
|
15
|
-
link_default as default
|
|
16
|
-
};
|
|
1
|
+
import{cn as t}from"@contractspec/lib.ui-kit-core";import{jsx as n}from"react/jsx-runtime";function e({className:r,...o}){return n("a",{className:t("",r),...o})}var f=e;export{f as default};
|
package/dist/index.js
CHANGED
|
@@ -1,17 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
import { cn } from "@contractspec/lib.ui-kit-core";
|
|
4
|
-
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
5
|
-
function Link({
|
|
6
|
-
className,
|
|
7
|
-
...props
|
|
8
|
-
}) {
|
|
9
|
-
return /* @__PURE__ */ jsxDEV("a", {
|
|
10
|
-
className: cn("", className),
|
|
11
|
-
...props
|
|
12
|
-
}, undefined, false, undefined, this);
|
|
13
|
-
}
|
|
14
|
-
var link_default = Link;
|
|
15
|
-
export {
|
|
16
|
-
link_default as default
|
|
17
|
-
};
|
|
2
|
+
import{cn as t}from"@contractspec/lib.ui-kit-core";import{jsx as a}from"react/jsx-runtime";function e({className:r,...o}){return a("a",{className:t("",r),...o})}var f=e;export{f as default};
|
package/dist/ui/link.js
CHANGED
|
@@ -1,17 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
|
|
3
|
-
import { cn } from "@contractspec/lib.ui-kit-core";
|
|
4
|
-
import { jsxDEV } from "react/jsx-dev-runtime";
|
|
5
|
-
function Link({
|
|
6
|
-
className,
|
|
7
|
-
...props
|
|
8
|
-
}) {
|
|
9
|
-
return /* @__PURE__ */ jsxDEV("a", {
|
|
10
|
-
className: cn("", className),
|
|
11
|
-
...props
|
|
12
|
-
}, undefined, false, undefined, this);
|
|
13
|
-
}
|
|
14
|
-
var link_default = Link;
|
|
15
|
-
export {
|
|
16
|
-
link_default as default
|
|
17
|
-
};
|
|
2
|
+
import{cn as t}from"@contractspec/lib.ui-kit-core";import{jsx as n}from"react/jsx-runtime";function e({className:r,...o}){return n("a",{className:t("",r),...o})}var f=e;export{f as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contractspec/lib.ui-link",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.14",
|
|
4
4
|
"description": "Deep linking utilities for navigation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"contractspec",
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"dev": "contractspec-bun-build dev",
|
|
22
22
|
"clean": "rm -rf dist",
|
|
23
23
|
"lint": "bun run lint:fix",
|
|
24
|
-
"lint:fix": "biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .",
|
|
25
|
-
"lint:check": "biome check .",
|
|
24
|
+
"lint:fix": "node ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .",
|
|
25
|
+
"lint:check": "node ../../../scripts/biome.cjs check .",
|
|
26
26
|
"prebuild": "contractspec-bun-build prebuild",
|
|
27
27
|
"typecheck": "tsc --noEmit"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@contractspec/lib.ui-kit-core": "3.7.
|
|
30
|
+
"@contractspec/lib.ui-kit-core": "3.7.13",
|
|
31
31
|
"react": "19.2.0",
|
|
32
32
|
"react-dom": "19.2.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@contractspec/tool.typescript": "3.7.
|
|
35
|
+
"@contractspec/tool.typescript": "3.7.13",
|
|
36
36
|
"typescript": "^5.9.3",
|
|
37
|
-
"@contractspec/tool.bun": "3.7.
|
|
37
|
+
"@contractspec/tool.bun": "3.7.14"
|
|
38
38
|
},
|
|
39
39
|
"files": [
|
|
40
40
|
"dist",
|