@road-signs/react 0.1.0 → 0.1.2

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/CHANGELOG.md ADDED
@@ -0,0 +1,22 @@
1
+ # @road-signs/react
2
+
3
+ ## 0.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 29e5d76: Fix `ERR_MODULE_NOT_FOUND` when importing the ESM build in Node. Relative imports in `dist/esm` now end in `.js`, as Node's ESM loader requires. Bundlers were unaffected.
8
+ - Updated dependencies [29e5d76]
9
+ - @road-signs/core@0.1.2
10
+
11
+ ## 0.1.1
12
+
13
+ ### Patch Changes
14
+
15
+ - f798cfd: Add a README to every package, so the npm page for each one documents what it
16
+ contains and how to use it instead of rendering blank.
17
+
18
+ Country READMEs are generated from the same metadata that drives the docs site
19
+ plus live counts read from each registry, so they cannot drift from the code.
20
+
21
+ - Updated dependencies [f798cfd]
22
+ - @road-signs/core@0.1.1
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # @road-signs/react
2
+
3
+ Accessible React component for road signs — works with any country package.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ npm install @road-signs/react
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import { getSign } from '@road-signs/us';
15
+ import { RoadSign } from '@road-signs/react';
16
+
17
+ const sign = getSign('w1-1r-turn-right')!;
18
+
19
+ <RoadSign sign={sign} size={64} />;
20
+ ```
21
+
22
+ Every sign renders from its country package alone — the artwork is inline
23
+ SVG, with the accessible name and description injected into it automatically.
24
+
25
+ ## Links
26
+
27
+ - [Documentation](https://karlnorling.github.io/road-signs)
28
+ - [Source](https://github.com/karlnorling/road-signs/tree/main/packages/@road-signs/react)
29
+
30
+ ## License
31
+
32
+ MIT © Karl Norling
@@ -1,4 +1,4 @@
1
- export { RoadSign } from './RoadSign';
2
- export type { RoadSignProps } from './RoadSign';
1
+ export { RoadSign } from './RoadSign.js';
2
+ export type { RoadSignProps } from './RoadSign.js';
3
3
  export type { Sign, SignAssets } from '@road-signs/core';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.RoadSign = void 0;
4
- var RoadSign_1 = require("./RoadSign");
5
- Object.defineProperty(exports, "RoadSign", { enumerable: true, get: function () { return RoadSign_1.RoadSign; } });
4
+ var RoadSign_js_1 = require("./RoadSign.js");
5
+ Object.defineProperty(exports, "RoadSign", { enumerable: true, get: function () { return RoadSign_js_1.RoadSign; } });
6
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AAAhC,uGAAA,QAAQ,OAAA"}
@@ -1,4 +1,4 @@
1
- export { RoadSign } from './RoadSign';
2
- export type { RoadSignProps } from './RoadSign';
1
+ export { RoadSign } from './RoadSign.js';
2
+ export type { RoadSignProps } from './RoadSign.js';
3
3
  export type { Sign, SignAssets } from '@road-signs/core';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AACnD,YAAY,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC"}
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { RoadSign } from './RoadSign';
1
+ export { RoadSign } from './RoadSign.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@road-signs/react",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Accessible React components for road signs — works with any @road-signs/* country package",
5
5
  "keywords": [
6
6
  "react",
@@ -36,7 +36,7 @@
36
36
  "type-check": "tsc --noEmit -p tsconfig.json"
37
37
  },
38
38
  "dependencies": {
39
- "@road-signs/core": "0.1.0"
39
+ "@road-signs/core": "0.1.2"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/jest": "^30.0.0",