@alveole/theme 0.30.0 → 0.30.2

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.
@@ -1,6 +1,46 @@
1
1
  import { ViewStyle } from 'react-native';
2
2
  import type { Color } from './Color';
3
3
  export declare const Elevations: {
4
+ raised: {
5
+ web: string;
6
+ mobile: {
7
+ shadowColor: Color;
8
+ shadowOffset: {
9
+ width: number;
10
+ height: number;
11
+ };
12
+ shadowOpacity: number;
13
+ shadowRadius: number;
14
+ elevation: number;
15
+ };
16
+ };
17
+ overlap: {
18
+ web: string;
19
+ mobile: {
20
+ shadowColor: Color;
21
+ shadowOffset: {
22
+ width: number;
23
+ height: number;
24
+ };
25
+ shadowOpacity: number;
26
+ shadowRadius: number;
27
+ elevation: number;
28
+ };
29
+ };
30
+ lifted: {
31
+ web: string;
32
+ mobile: {
33
+ shadowColor: Color;
34
+ shadowOffset: {
35
+ width: number;
36
+ height: number;
37
+ };
38
+ shadowOpacity: number;
39
+ shadowRadius: number;
40
+ elevation: number;
41
+ };
42
+ };
43
+ /** @deprecated */
4
44
  0: {
5
45
  web: string;
6
46
  mobile: {
@@ -14,6 +54,7 @@ export declare const Elevations: {
14
54
  elevation: number;
15
55
  };
16
56
  };
57
+ /** @deprecated */
17
58
  1: {
18
59
  web: string;
19
60
  mobile: {
@@ -27,6 +68,7 @@ export declare const Elevations: {
27
68
  elevation: number;
28
69
  };
29
70
  };
71
+ /** @deprecated */
30
72
  2: {
31
73
  web: string;
32
74
  mobile: {
@@ -40,6 +82,7 @@ export declare const Elevations: {
40
82
  elevation: number;
41
83
  };
42
84
  };
85
+ /** @deprecated */
43
86
  3: {
44
87
  web: string;
45
88
  mobile: {
@@ -53,6 +96,7 @@ export declare const Elevations: {
53
96
  elevation: number;
54
97
  };
55
98
  };
99
+ /** @deprecated */
56
100
  4: {
57
101
  web: string;
58
102
  mobile: {
@@ -67,7 +111,7 @@ export declare const Elevations: {
67
111
  };
68
112
  };
69
113
  };
70
- export type ElevationKey = number;
114
+ export type ElevationKey = number | 'raised' | 'overlap' | 'lifted';
71
115
  export type Elevation = {
72
116
  web: string;
73
117
  mobile: {
@@ -1 +1 @@
1
- {"version":3,"file":"Elevation.d.ts","sourceRoot":"","sources":["../../src/constants/Elevation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAIrC,eAAO,MAAM,UAAU;;;;yBAIa,KAAK;;;;;;;;;;;;;yBAUd,KAAK;;;;;;;;;;;;;yBAUL,KAAK;;;;;;;;;;;;;yBAUL,KAAK;;;;;;;;;;;;;yBAUL,KAAK;;;;;;;;;;CAOW,CAAC;AAG5C,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC;AAClC,MAAM,MAAM,SAAS,GAAG;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE;QACN,WAAW,EAAE,KAAK,CAAC;QACnB,YAAY,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;QACxC,aAAa,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;QAC1C,YAAY,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;QACxC,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;KACnC,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"Elevation.d.ts","sourceRoot":"","sources":["../../src/constants/Elevation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAIrC,eAAO,MAAM,UAAU;;;;yBAII,KAAK;;;;;;;;;;;;;yBAUL,KAAK;;;;;;;;;;;;;yBAUL,KAAK;;;;;;;;;;IAO9B,kBAAkB;;;;yBAIgB,KAAK;;;;;;;;;;IAOvC,kBAAkB;;;;yBAIO,KAAK;;;;;;;;;;IAO9B,kBAAkB;;;;yBAIO,KAAK;;;;;;;;;;IAO9B,kBAAkB;;;;yBAIO,KAAK;;;;;;;;;;IAO9B,kBAAkB;;;;yBAIO,KAAK;;;;;;;;;;CAOW,CAAC;AAG5C,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;AACpE,MAAM,MAAM,SAAS,GAAG;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE;QACN,WAAW,EAAE,KAAK,CAAC;QACnB,YAAY,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;QACxC,aAAa,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC;QAC1C,YAAY,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;QACxC,SAAS,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;KACnC,CAAC;CACH,CAAC"}
@@ -1,5 +1,36 @@
1
1
  const BASE = '#151617';
2
2
  export const Elevations = {
3
+ 'raised': {
4
+ web: '0 2px 6px 0 rgba(1, 43, 83, 0.16)',
5
+ mobile: {
6
+ shadowColor: BASE,
7
+ shadowOffset: { width: 0, height: 2 },
8
+ shadowOpacity: 0.16,
9
+ shadowRadius: 6,
10
+ elevation: 2,
11
+ },
12
+ },
13
+ 'overlap': {
14
+ web: '0 4px 12px 0 rgba(1, 43, 83, 0.16)',
15
+ mobile: {
16
+ shadowColor: BASE,
17
+ shadowOffset: { width: 0, height: 4 },
18
+ shadowOpacity: 0.16,
19
+ shadowRadius: 12,
20
+ elevation: 4,
21
+ },
22
+ },
23
+ 'lifted': {
24
+ web: '0 6px 18px 0 rgba(1, 43, 83, 0.16)',
25
+ mobile: {
26
+ shadowColor: BASE,
27
+ shadowOffset: { width: 0, height: 6 },
28
+ shadowOpacity: 0.16,
29
+ shadowRadius: 18,
30
+ elevation: 6,
31
+ },
32
+ },
33
+ /** @deprecated */
3
34
  0: {
4
35
  web: 'none',
5
36
  mobile: {
@@ -10,6 +41,7 @@ export const Elevations = {
10
41
  elevation: 0,
11
42
  },
12
43
  },
44
+ /** @deprecated */
13
45
  1: {
14
46
  web: `0px 1px 2px rgba(21,22,23,0.10), 0px 0px 1px rgba(21,22,23,0.04)`,
15
47
  mobile: {
@@ -20,6 +52,7 @@ export const Elevations = {
20
52
  elevation: 1,
21
53
  },
22
54
  },
55
+ /** @deprecated */
23
56
  2: {
24
57
  web: `0px 2px 4px rgba(21,22,23,0.10), 0px 1px 2px rgba(21,22,23,0.06)`,
25
58
  mobile: {
@@ -30,6 +63,7 @@ export const Elevations = {
30
63
  elevation: 2,
31
64
  },
32
65
  },
66
+ /** @deprecated */
33
67
  3: {
34
68
  web: `0px 4px 8px rgba(21,22,23,0.12), 0px 2px 4px rgba(21,22,23,0.07)`,
35
69
  mobile: {
@@ -40,6 +74,7 @@ export const Elevations = {
40
74
  elevation: 3,
41
75
  },
42
76
  },
77
+ /** @deprecated */
43
78
  4: {
44
79
  web: `0px 6px 12px rgba(21,22,23,0.14), 0px 3px 6px rgba(21,22,23,0.08)`,
45
80
  mobile: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alveole/theme",
3
- "version": "0.30.0",
3
+ "version": "0.30.2",
4
4
  "description": "Shared theme tokens and utilities.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",