@longline/aqua-ui 1.0.192 → 1.0.194

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/styled.d.ts +66 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longline/aqua-ui",
3
- "version": "1.0.192",
3
+ "version": "1.0.194",
4
4
  "description": "AquaUI",
5
5
  "author": "Alexander van Oostenrijk / Longline Environment",
6
6
  "license": "Commercial",
package/styled.d.ts ADDED
@@ -0,0 +1,66 @@
1
+ /**
2
+ * This types file extends the (empty) DefaultTheme from styled-components
3
+ * with theme elements for aqua-ui.
4
+ */
5
+
6
+ // import original module declarations
7
+ import 'styled-components';
8
+
9
+ // and extend them!
10
+ // (DefaultTheme interface is empty by default).
11
+ declare module 'styled-components' {
12
+ export interface DefaultTheme {
13
+ font: {
14
+ bodySmall: string;
15
+ bodyMedium: string;
16
+ bodyLarge: string;
17
+ dataSmall: string;
18
+ dataLarge: string;
19
+ labelCaps: string;
20
+ labelSmall: string;
21
+ labelMedium: string;
22
+ labelLarge: string;
23
+ headingSmall: string;
24
+ headingMedium: string;
25
+ headingLarge: string;
26
+ }
27
+ radius: {
28
+ normal: number,
29
+ strong: number
30
+ },
31
+ colors: {
32
+ primary: {
33
+ 1: string,
34
+ 2: string,
35
+ 3: string,
36
+ 4: string,
37
+ 5: string
38
+ },
39
+ neutral: {
40
+ 95: string,
41
+ 100: string,
42
+ 80: string,
43
+ 50: string,
44
+ 30: string,
45
+ 10: string
46
+ },
47
+ font: string,
48
+ accent: string,
49
+ positive: string,
50
+ negative: string
51
+ },
52
+ shadows: {
53
+ small: string;
54
+ medium: string;
55
+ large: string;
56
+ inner: string;
57
+ },
58
+ animation: {
59
+ duration: number; // Animation duration in ms
60
+ },
61
+ screen: {
62
+ small: number,
63
+ medium: number
64
+ }
65
+ }
66
+ }