@team-monolith/cds 0.4.0 → 0.4.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.
@@ -0,0 +1,70 @@
1
+ import "@emotion/react";
2
+
3
+ interface CodleColors {
4
+ background: {
5
+ neutralBase: string;
6
+ neutralAlt: string;
7
+ neutralAltActive: string;
8
+ neutralAltDisabled: string;
9
+ primary: string;
10
+ primaryActive: string;
11
+ primaryDisabled: string;
12
+ secondary: string;
13
+ secondaryActive: string;
14
+ secondaryDisabled: string;
15
+ danger: string;
16
+ dangerActive: string;
17
+ dangerDisabled: string;
18
+ success: string;
19
+ successActive: string;
20
+ successDisabled: string;
21
+ info: string;
22
+ infoActive: string;
23
+ infoDisabled: string;
24
+ warning: string;
25
+ warningActive: string;
26
+ warningDisabled: string;
27
+ };
28
+ foreground: {
29
+ neutralBase: string;
30
+ neutralBaseDisabled: string;
31
+ neutralAlt: string;
32
+ neutralAltDisabled: string;
33
+ primary: string;
34
+ primaryDisabled: string;
35
+ secondary: string;
36
+ secondaryDisabled: string;
37
+ danger: string;
38
+ dangerDisabled: string;
39
+ success: string;
40
+ successDisabled: string;
41
+ info: string;
42
+ infoDisabled: string;
43
+ warning: string;
44
+ warningDisabled: string;
45
+ };
46
+ container: {
47
+ primaryContainer: string;
48
+ primaryOnContainer: string;
49
+ secondaryContainer: string;
50
+ secondaryOnContainer: string;
51
+ dangerContainer: string;
52
+ dangerOnContainer: string;
53
+ successContainer: string;
54
+ successOnContainer: string;
55
+ infoContainer: string;
56
+ infoOnContainer: string;
57
+ warningContainer: string;
58
+ warningOnContainer: string;
59
+ obsidianContainer: string;
60
+ obsidianOnContainer: string;
61
+ marbleContainer: string;
62
+ marbleOnContainer: string;
63
+ };
64
+ }
65
+
66
+ declare module "@emotion/react" {
67
+ export interface Theme {
68
+ color: CodleColors;
69
+ }
70
+ }
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ /// <reference path="./svg.d.ts" />
2
+ /// <reference path="./emotion.d.ts" />
1
3
  export * from "./components/AlertDialog";
2
4
  export { default as Banner } from "./components/Banner";
3
5
  export * from "./components/Banner";
package/dist/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ /// <reference path="./svg.d.ts" />
2
+ /// <reference path="./emotion.d.ts" />
1
3
  export * from "./components/AlertDialog";
2
4
  export { default as Banner } from "./components/Banner";
3
5
  export * from "./components/Banner";
package/dist/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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "dependencies": {
package/src/cds/index.ts CHANGED
@@ -1,3 +1,6 @@
1
+ /// <reference path="./svg.d.ts" />
2
+ /// <reference path="./emotion.d.ts" />
3
+
1
4
  export * from "./components/AlertDialog";
2
5
 
3
6
  export { default as Banner } from "./components/Banner";
@@ -62,3 +65,4 @@ export * from "./patterns/Table";
62
65
 
63
66
  export { default as CodleDesignSystemProvider } from "./CodleDesignSystemProvider";
64
67
  export { light } from "./CodleDesignSystemProvider";
68
+
package/tsconfig.json CHANGED
@@ -2,6 +2,7 @@
2
2
  "compilerOptions": {
3
3
  "target": "es5",
4
4
  "lib": ["dom", "dom.iterable", "esnext"],
5
+ "typeRoots": ["./@types"],
5
6
  "outDir": "./dist",
6
7
  "declaration": true,
7
8
  "allowJs": true,
@@ -17,6 +18,6 @@
17
18
  "isolatedModules": true,
18
19
  "jsx": "react-jsx"
19
20
  },
20
- "include": ["src/cds", "src/cds/svg.d.ts"],
21
+ "include": ["src/cds"],
21
22
  "exclude": ["node_modules", "dist"]
22
23
  }