@cencomalls/cencob2b-storybook 1.0.4 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,2 @@
1
+ declare const Banner: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Banner;
@@ -0,0 +1 @@
1
+ export { default as Banner } from "./Banner";
@@ -0,0 +1 @@
1
+ export * from "./Banner";
@@ -0,0 +1 @@
1
+ export * from "./components";
package/dist/index.js ADDED
@@ -0,0 +1,2 @@
1
+ import{jsx as r}from"react/jsx-runtime";var e=()=>r("div",{children:r("h1",{children:"Banner"})}),n=e;export{n as Banner};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/components/Banner/Banner.tsx"],
4
+ "sourcesContent": ["const Banner = () => {\n return (\n <div>\n <h1>Banner</h1>\n </div>\n );\n};\n\nexport default Banner;"],
5
+ "mappings": "AAGY,cAAAA,MAAA,oBAHZ,IAAMC,EAAS,IAEPD,EAAC,OACG,SAAAA,EAAC,MAAG,kBAAM,EACd,EAIDE,EAAQD",
6
+ "names": ["jsx", "Banner", "Banner_default"]
7
+ }
package/package.json CHANGED
@@ -1,21 +1,22 @@
1
1
  {
2
2
  "name": "@cencomalls/cencob2b-storybook",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "types": "dist/index.d.ts",
7
+ "type": "module",
7
8
  "sideEffects": false,
8
9
  "scripts": {
9
- "build": "node build.js && tsc",
10
+ "build": "node build.mjs && tsc",
10
11
  "storybook": "storybook dev",
11
12
  "build-storybook": "storybook build",
12
- "publish": "npm publish --access public"
13
+ "publish": "npm run build && npm publish --access public"
13
14
  },
14
15
  "keywords": [],
15
16
  "author": "Jonas",
16
17
  "license": "ISC",
17
18
  "description": "",
18
- "dependencies": {
19
+ "peerDependencies": {
19
20
  "react": "^19.0.0",
20
21
  "react-dom": "^19.0.0"
21
22
  },
@@ -0,0 +1,9 @@
1
+ const Banner = () => {
2
+ return (
3
+ <div>
4
+ <h1>Banner</h1>
5
+ </div>
6
+ );
7
+ };
8
+
9
+ export default Banner;
@@ -0,0 +1 @@
1
+ export { default as Banner } from "./Banner";
@@ -0,0 +1 @@
1
+ export * from "./Banner";
package/src/index.tsx CHANGED
@@ -1,9 +1 @@
1
- import React from "react";
2
-
3
- type ButtonProps = {
4
- label: string;
5
- };
6
-
7
- export const Button: React.FC<ButtonProps> = ({ label }) => {
8
- return <button>{label}</button>;
9
- };
1
+ export * from "./components";
package/tsconfig.json CHANGED
@@ -7,7 +7,9 @@
7
7
  "target": "ESNext",
8
8
  "jsx": "react-jsx",
9
9
  "moduleResolution": "node",
10
+ "allowSyntheticDefaultImports": true,
10
11
  "strict": true
11
12
  },
12
- "include": ["src"]
13
+ "include": ["src"],
14
+ "exclude": ["**/node_modules", "**/.*/"]
13
15
  }
File without changes
File without changes