@contractspec/lib.ui-link 1.56.1 → 1.58.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.
@@ -0,0 +1,16 @@
1
+ // ui/link.tsx
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
+ };
package/dist/link.d.ts CHANGED
@@ -1,13 +1,6 @@
1
- import * as React from "react";
2
- import * as react_jsx_runtime0 from "react/jsx-runtime";
3
-
4
- //#region ui/link.d.ts
5
- declare function Link({
6
- className,
7
- ...props
8
- }: React.HTMLProps<HTMLAnchorElement> & {
9
- href: string;
10
- }): react_jsx_runtime0.JSX.Element;
11
- //#endregion
12
- export { Link as default };
1
+ import * as React from 'react';
2
+ declare function Link({ className, ...props }: React.HTMLProps<HTMLAnchorElement> & {
3
+ href: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
5
+ export default Link;
13
6
  //# sourceMappingURL=link.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"link.d.ts","names":[],"sources":["../ui/link.tsx"],"sourcesContent":[],"mappings":";;;;iBAGS,IAAA;;;GAGN,KAAA,CAAM,UAAU;;IAElB,kBAAA,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../ui/link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,iBAAS,IAAI,CAAC,EACZ,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,GAAG;IACtC,IAAI,EAAE,MAAM,CAAC;CACd,2CAEA;AAED,eAAe,IAAI,CAAC"}
package/dist/link.js CHANGED
@@ -1,16 +1,17 @@
1
- import "react";
1
+ // @bun
2
+ // ui/link.tsx
2
3
  import { cn } from "@contractspec/lib.ui-kit-core";
3
- import { jsx } from "react/jsx-runtime";
4
-
5
- //#region ui/link.tsx
6
- function Link({ className, ...props }) {
7
- return /* @__PURE__ */ jsx("a", {
8
- className: cn("", className),
9
- ...props
10
- });
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);
11
13
  }
12
14
  var link_default = Link;
13
-
14
- //#endregion
15
- export { link_default as default };
16
- //# sourceMappingURL=link.js.map
15
+ export {
16
+ link_default as default
17
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contractspec/lib.ui-link",
3
- "version": "1.56.1",
3
+ "version": "1.58.0",
4
4
  "description": "Deep linking utilities for navigation",
5
5
  "keywords": [
6
6
  "contractspec",
@@ -15,38 +15,49 @@
15
15
  "scripts": {
16
16
  "publish:pkg": "bun publish --tolerate-republish --ignore-scripts --verbose",
17
17
  "publish:pkg:canary": "bun publish:pkg --tag canary",
18
- "build": "bun run build:bundle && bun run build:types",
19
- "build:bundle": "tsdown",
20
- "build:types": "tsc --noEmit",
21
- "dev": "bun run build:bundle --watch",
18
+ "build": "bun run prebuild && bun run build:bundle && bun run build:types",
19
+ "build:bundle": "contractspec-bun-build transpile",
20
+ "build:types": "contractspec-bun-build types",
21
+ "dev": "contractspec-bun-build dev",
22
22
  "clean": "rm -rf dist",
23
23
  "lint": "bun run lint:fix",
24
24
  "lint:fix": "eslint ui --fix",
25
- "lint:check": "eslint ui"
25
+ "lint:check": "eslint ui",
26
+ "prebuild": "contractspec-bun-build prebuild",
27
+ "typecheck": "tsc --noEmit"
26
28
  },
27
29
  "dependencies": {
28
- "@contractspec/lib.ui-kit-core": "1.56.1",
30
+ "@contractspec/lib.ui-kit-core": "1.58.0",
29
31
  "react": "19.2.4",
30
32
  "react-dom": "19.2.4"
31
33
  },
32
34
  "devDependencies": {
33
- "@contractspec/tool.typescript": "1.56.1",
34
- "@contractspec/tool.tsdown": "1.56.1",
35
- "tsdown": "^0.19.0",
36
- "typescript": "^5.9.3"
35
+ "@contractspec/tool.typescript": "1.58.0",
36
+ "typescript": "^5.9.3",
37
+ "@contractspec/tool.bun": "1.57.0"
37
38
  },
38
39
  "files": [
39
40
  "dist",
40
41
  "README.md"
41
42
  ],
42
43
  "exports": {
43
- ".": "./dist/link.js",
44
- "./*": "./*"
44
+ ".": "./ui/link.tsx",
45
+ "./ui/link": "./ui/link.tsx"
45
46
  },
46
47
  "publishConfig": {
47
48
  "exports": {
48
- ".": "./dist/link.js",
49
- "./*": "./*"
49
+ ".": {
50
+ "types": "./dist/link.d.ts",
51
+ "bun": "./dist/link.js",
52
+ "browser": "./dist/browser/link.js",
53
+ "default": "./dist/link.js"
54
+ },
55
+ "./ui/link": {
56
+ "types": "./dist/link.d.ts",
57
+ "bun": "./dist/link.js",
58
+ "browser": "./dist/browser/link.js",
59
+ "default": "./dist/link.js"
60
+ }
50
61
  },
51
62
  "registry": "https://registry.npmjs.org/",
52
63
  "access": "public"
package/dist/link.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"link.js","names":[],"sources":["../ui/link.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '@contractspec/lib.ui-kit-core';\n\nfunction Link({\n className,\n ...props\n}: React.HTMLProps<HTMLAnchorElement> & {\n href: string;\n}) {\n return <a className={cn('', className)} {...props} />;\n}\n\nexport default Link;\n"],"mappings":";;;;;AAGA,SAAS,KAAK,EACZ,WACA,GAAG,SAGF;AACD,QAAO,oBAAC;EAAE,WAAW,GAAG,IAAI,UAAU;EAAE,GAAI;GAAS;;AAGvD,mBAAe"}