@onereach/idw-ui-components 0.1.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/README.md +18 -0
- package/dist/cjs/format-idw-summary.js +11 -0
- package/dist/cjs/format-idw-summary.js.map +1 -0
- package/dist/cjs/index.js +18 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/esm/format-idw-summary.js +8 -0
- package/dist/esm/format-idw-summary.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/types/format-idw-summary.d.ts +7 -0
- package/dist/types/format-idw-summary.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +37 -0
package/README.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# @onereach/idw-ui-components
|
|
2
|
+
|
|
3
|
+
> Shared IDW UI components and browser helpers. Consumed by `idw-ui`.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @onereach/idw-ui-components
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { formatIdwSummary } from '@onereach/idw-ui-components';
|
|
15
|
+
import type { IdwSummary } from '@onereach/idw-contracts';
|
|
16
|
+
|
|
17
|
+
const label = formatIdwSummary(summary satisfies IdwSummary);
|
|
18
|
+
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatIdwSummary = formatIdwSummary;
|
|
4
|
+
/**
|
|
5
|
+
* Formats an IDW summary for display in the UI.
|
|
6
|
+
* Replace with real component exports as the library grows.
|
|
7
|
+
*/
|
|
8
|
+
function formatIdwSummary(summary) {
|
|
9
|
+
return `${summary.name} (${summary.id})`;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=format-idw-summary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-idw-summary.js","sourceRoot":"","sources":["../../src/format-idw-summary.ts"],"names":[],"mappings":";;AAMA,4CAEC;AAND;;;GAGG;AACH,SAAgB,gBAAgB,CAAC,OAAmB;IAClD,OAAO,GAAG,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,EAAE,GAAG,CAAC;AAC3C,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./format-idw-summary"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-idw-summary.js","sourceRoot":"","sources":["../../src/format-idw-summary.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,OAAmB;IAClD,OAAO,GAAG,OAAO,CAAC,IAAI,KAAK,OAAO,CAAC,EAAE,GAAG,CAAC;AAC3C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { IdwSummary } from '@onereach/idw-contracts';
|
|
2
|
+
/**
|
|
3
|
+
* Formats an IDW summary for display in the UI.
|
|
4
|
+
* Replace with real component exports as the library grows.
|
|
5
|
+
*/
|
|
6
|
+
export declare function formatIdwSummary(summary: IdwSummary): string;
|
|
7
|
+
//# sourceMappingURL=format-idw-summary.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-idw-summary.d.ts","sourceRoot":"","sources":["../../src/format-idw-summary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAE1D;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,CAE5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@onereach/idw-ui-components",
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Shared IDW UI components and browser helpers (consumed by idw-ui).",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"main": "dist/cjs/index.js",
|
|
7
|
+
"module": "dist/esm/index.js",
|
|
8
|
+
"types": "dist/types/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "pnpm clean && concurrently 'pnpm:build:*(!watch)'",
|
|
14
|
+
"build:cjs": "tsc --project tsconfig.json",
|
|
15
|
+
"build:esm": "tsc --project tsconfig.esm.json",
|
|
16
|
+
"build:types": "tsc --project tsconfig.types.json",
|
|
17
|
+
"build:watch": "concurrently 'pnpm:build:watch:*'",
|
|
18
|
+
"build:watch:cjs": "pnpm build:cjs -w",
|
|
19
|
+
"build:watch:esm": "pnpm build:esm -w",
|
|
20
|
+
"build:watch:types": "pnpm build:types -w",
|
|
21
|
+
"clean": "rm -rf ./dist",
|
|
22
|
+
"dev": "pnpm build:watch:esm",
|
|
23
|
+
"test": "vitest --run",
|
|
24
|
+
"test:watch": "vitest --watch"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@onereach/idw-contracts": "0.1.1"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"concurrently": "9.2.0",
|
|
31
|
+
"typescript": "5.6.2"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"gitHead": "38fbf320361316c3700582c9ab3370a0f199d6cb"
|
|
37
|
+
}
|