@crestbase/web-shared-ui 1.0.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,13 @@
1
+ # @mycrestbase/web-shared-ui
2
+
3
+ Shared UI components for web app and admin.
4
+
5
+ ## Install
6
+
7
+ yarn add @mycrestbase/web-shared-ui
8
+
9
+ ## Usage
10
+
11
+ import { Button } from '@mycrestbase/web-shared-ui';
12
+
13
+ <Button title="Click" />
@@ -0,0 +1,3 @@
1
+ declare const Button: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Button;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,MAAM,+CAEX,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ const Button = () => {
3
+ return _jsx("div", { children: "Button" });
4
+ };
5
+ export default Button;
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/button/index.tsx"],"names":[],"mappings":";AAEA,MAAM,MAAM,GAAG,GAAG,EAAE;IAClB,OAAO,mCAAiB,CAAC;AAC3B,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default as Button } from "./button";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ // Component index file | Barrel file
2
+ export { default as Button } from "./button";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from "./components";
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ // Main index file, it exports all components | main entry
2
+ export * from "./components";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,0DAA0D;AAC1D,cAAc,cAAc,CAAC"}
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@crestbase/web-shared-ui",
3
+ "version": "1.0.0",
4
+ "description": "Shared UI components for Crestbase web app and admin",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "private": false,
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "build": "tsc",
13
+ "dev": "tsc --watch",
14
+ "prepublishOnly": "yarn build",
15
+ "lint": "eslint src --ext .ts,.tsx"
16
+ },
17
+ "keywords": [
18
+ "ui",
19
+ "components",
20
+ "react",
21
+ "nextjs"
22
+ ],
23
+ "repository": "https://github.com/mycrestbase/web-shared-ui.git",
24
+ "author": "EmmanuelChika <Developer.mycrestbase@gmail.com>",
25
+ "license": "MIT",
26
+ "peerDependencies": {
27
+ "@types/react": "^18.0.0",
28
+ "@types/react-dom": "^18.0.0",
29
+ "react": "^18.0.0",
30
+ "react-dom": "^18.0.0"
31
+ },
32
+ "devDependencies": {
33
+ "@types/react": "^19.2.2",
34
+ "@types/react-dom": "^19.2.2",
35
+ "@typescript-eslint/eslint-plugin": "^8.46.2",
36
+ "@typescript-eslint/parser": "^8.46.2",
37
+ "eslint": "^9.38.0",
38
+ "typescript": "^5.9.3"
39
+ }
40
+ }