@team-monolith/cds 0.1.1 → 0.1.3

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/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  import Button from "./components/Button";
2
- export { Button };
2
+ import CodleDesignSystemProvider from "./CodleDesignSystemProvider";
3
+ export { CodleDesignSystemProvider, Button };
package/dist/index.js CHANGED
@@ -1,2 +1,3 @@
1
1
  import Button from "./components/Button";
2
- export { Button };
2
+ import CodleDesignSystemProvider from "./CodleDesignSystemProvider";
3
+ export { CodleDesignSystemProvider, Button };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
@@ -13,14 +13,9 @@
13
13
  "@types/react-dom": "^17.0.11",
14
14
  "react": "^17.0.2",
15
15
  "react-dom": "^17.0.2",
16
- "react-scripts": "5.0.0",
17
16
  "typescript": "^4.5.5"
18
17
  },
19
18
  "scripts": {
20
- "start": "react-scripts start",
21
- "build": "react-script build",
22
- "test": "react-scripts test",
23
- "eject": "react-scripts eject",
24
19
  "clean": "rimraf dist",
25
20
  "compile": "npm run clean && mkdir dist && tsc"
26
21
  },
package/src/cds/index.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  import Button from "./components/Button";
2
+ import CodleDesignSystemProvider from "./CodleDesignSystemProvider";
2
3
 
3
- export { Button };
4
+ export { CodleDesignSystemProvider, Button };
package/src/svg.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ declare module "*.svg" {
2
+ import * as React from "react";
3
+
4
+ export const ReactComponent: React.FunctionComponent<
5
+ React.SVGProps<SVGSVGElement> & { title?: string }
6
+ >;
7
+
8
+ const src: string;
9
+ export default src;
10
+ }
package/tsconfig.json CHANGED
@@ -17,6 +17,6 @@
17
17
  "isolatedModules": true,
18
18
  "jsx": "react-jsx"
19
19
  },
20
- "include": ["src/cds", "src/react-app-env.d.ts"],
20
+ "include": ["src/cds", "src/svg.d.ts"],
21
21
  "exclude": ["node_modules", "dist"]
22
22
  }
@@ -1 +0,0 @@
1
- /// <reference types="react-scripts" />