@stereopt/data-table 0.1.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 ADDED
@@ -0,0 +1,46 @@
1
+ # @stereopt/data-table
2
+
3
+ Simple React data table component packaged as an npm library.
4
+
5
+ ## Getting started
6
+
7
+ Install dependencies:
8
+
9
+ ```bash
10
+ npm install
11
+ ```
12
+
13
+ Build the package:
14
+
15
+ ```bash
16
+ npm run build
17
+ ```
18
+
19
+ Run the build in watch mode while developing:
20
+
21
+ ```bash
22
+ npm run dev
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ ```tsx
28
+ import { DataTable } from '@stereopt/data-table';
29
+
30
+ export function Example() {
31
+ return <DataTable />;
32
+ }
33
+ ```
34
+
35
+ ## GitHub repository
36
+
37
+ Repository: https://github.com/StereoPT/data-table
38
+
39
+ ## npm publishing
40
+
41
+ 1. Update the `name` field in `package.json` if you want a different npm package name.
42
+ 2. Bump the version in `package.json`.
43
+ 3. Log in to npm with `npm login`.
44
+ 4. Publish with `npm publish --access public`.
45
+
46
+ If you use an npm scope such as `@stereopt`, make sure that scope exists in your npm organization.
package/dist/index.cjs ADDED
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ DataTable: () => DataTable
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+
27
+ // src/DataTable.tsx
28
+ var import_jsx_runtime = require("react/jsx-runtime");
29
+ function DataTable() {
30
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: "Data Table" });
31
+ }
32
+ // Annotate the CommonJS export names for ESM import in node:
33
+ 0 && (module.exports = {
34
+ DataTable
35
+ });
@@ -0,0 +1,5 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare function DataTable(): react_jsx_runtime.JSX.Element;
4
+
5
+ export { DataTable };
@@ -0,0 +1,5 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare function DataTable(): react_jsx_runtime.JSX.Element;
4
+
5
+ export { DataTable };
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ // src/DataTable.tsx
2
+ import { jsx } from "react/jsx-runtime";
3
+ function DataTable() {
4
+ return /* @__PURE__ */ jsx("div", { children: "Data Table" });
5
+ }
6
+ export {
7
+ DataTable
8
+ };
package/package.json ADDED
@@ -0,0 +1,55 @@
1
+ {
2
+ "name": "@stereopt/data-table",
3
+ "version": "0.1.0",
4
+ "description": "Simple reusable React data table component",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.js",
13
+ "require": "./dist/index.cjs"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "sideEffects": false,
23
+ "scripts": {
24
+ "build": "tsup src/index.ts --format esm,cjs --dts --external react,react-dom",
25
+ "clean": "rm -rf dist",
26
+ "dev": "tsup src/index.ts --format esm,cjs --dts --watch --external react,react-dom",
27
+ "prepare": "npm run clean && npm run build",
28
+ "prepublishOnly": "npm run clean && npm run build"
29
+ },
30
+ "keywords": [
31
+ "react",
32
+ "table",
33
+ "data-table",
34
+ "component"
35
+ ],
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git+https://github.com/StereoPT/data-table.git"
39
+ },
40
+ "homepage": "https://github.com/StereoPT/data-table#readme",
41
+ "bugs": {
42
+ "url": "https://github.com/StereoPT/data-table/issues"
43
+ },
44
+ "license": "MIT",
45
+ "peerDependencies": {
46
+ "react": "^19.0.0",
47
+ "react-dom": "^19.0.0"
48
+ },
49
+ "devDependencies": {
50
+ "@types/react": "^19.2.14",
51
+ "@types/react-dom": "^19.2.3",
52
+ "tsup": "^8.5.1",
53
+ "typescript": "^5.9.3"
54
+ }
55
+ }