@fluentui-react-native/apple-theme 0.12.0 → 0.12.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.
package/CHANGELOG.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@fluentui-react-native/apple-theme",
3
3
  "entries": [
4
4
  {
5
- "date": "Sat, 21 May 2022 01:46:23 GMT",
5
+ "date": "Sat, 21 May 2022 16:16:50 GMT",
6
+ "tag": "@fluentui-react-native/apple-theme_v0.12.1",
7
+ "version": "0.12.1",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "sanajmi@microsoft.com",
12
+ "package": "@fluentui-react-native/apple-theme",
13
+ "commit": "36ea0d81629f9326eb8c23912d9949381014dade",
14
+ "comment": "Fix shadow tokens not getting mapped properly"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Sat, 21 May 2022 01:47:57 GMT",
6
21
  "tag": "@fluentui-react-native/apple-theme_v0.12.0",
7
22
  "version": "0.12.0",
8
23
  "comments": {
@@ -17,25 +32,25 @@
17
32
  "author": "beachball",
18
33
  "package": "@fluentui-react-native/apple-theme",
19
34
  "comment": "Bump @fluentui-react-native/default-theme to v0.11.0",
20
- "commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
35
+ "commit": "36ea0d81629f9326eb8c23912d9949381014dade"
21
36
  },
22
37
  {
23
38
  "author": "beachball",
24
39
  "package": "@fluentui-react-native/apple-theme",
25
40
  "comment": "Bump @fluentui-react-native/theme to v0.6.9",
26
- "commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
41
+ "commit": "36ea0d81629f9326eb8c23912d9949381014dade"
27
42
  },
28
43
  {
29
44
  "author": "beachball",
30
45
  "package": "@fluentui-react-native/apple-theme",
31
46
  "comment": "Bump @fluentui-react-native/theme-types to v0.15.0",
32
- "commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
47
+ "commit": "36ea0d81629f9326eb8c23912d9949381014dade"
33
48
  },
34
49
  {
35
50
  "author": "beachball",
36
51
  "package": "@fluentui-react-native/apple-theme",
37
52
  "comment": "Bump @fluentui-react-native/theming-utils to v0.11.0",
38
- "commit": "5c1efc2232601998fc0dd0bb1607e7ffafbe5613"
53
+ "commit": "36ea0d81629f9326eb8c23912d9949381014dade"
39
54
  }
40
55
  ]
41
56
  }
package/CHANGELOG.md CHANGED
@@ -1,12 +1,20 @@
1
1
  # Change Log - @fluentui-react-native/apple-theme
2
2
 
3
- This log was last generated on Sat, 21 May 2022 01:46:23 GMT and should not be manually modified.
3
+ This log was last generated on Sat, 21 May 2022 16:16:50 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.12.1
8
+
9
+ Sat, 21 May 2022 16:16:50 GMT
10
+
11
+ ### Patches
12
+
13
+ - Fix shadow tokens not getting mapped properly (sanajmi@microsoft.com)
14
+
7
15
  ## 0.12.0
8
16
 
9
- Sat, 21 May 2022 01:46:23 GMT
17
+ Sat, 21 May 2022 01:47:57 GMT
10
18
 
11
19
  ### Minor changes
12
20
 
@@ -1,4 +1,4 @@
1
- import { getMacOSAliasTokens } from './getMacOSTokens';
1
+ import { getMacOSAliasTokens, getMacOSShadowTokens } from './getMacOSTokens';
2
2
  import { mapPipelineToTheme, mapPipelineToShadow } from '@fluentui-react-native/theming-utils';
3
3
  import { memoize } from '@fluentui-react-native/memo-cache';
4
4
  function createMacOSColorAliasTokensWorker(mode, isHighContrast) {
@@ -7,7 +7,7 @@ function createMacOSColorAliasTokensWorker(mode, isHighContrast) {
7
7
  }
8
8
  export var createMacOSColorAliasTokens = memoize(createMacOSColorAliasTokensWorker);
9
9
  function createMacOSShadowAliasTokensWorker(mode, isHighContrast) {
10
- var aliasTokens = getMacOSAliasTokens(mode, isHighContrast);
10
+ var aliasTokens = getMacOSShadowTokens(mode, isHighContrast);
11
11
  return mapPipelineToShadow(aliasTokens);
12
12
  }
13
13
  export var createMacOSShadowAliasTokens = memoize(createMacOSShadowAliasTokensWorker);
@@ -1 +1 @@
1
- {"version":3,"file":"createMacOSAliasTokens.js","sourceRoot":"","sources":["../src/createMacOSAliasTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAG5D,SAAS,iCAAiC,CAAC,IAAuB,EAAE,cAAuB;IACzF,IAAM,WAAW,GAAG,mBAAmB,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAC9D,OAAO,kBAAkB,CAAC,WAAW,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,CAAC,IAAM,2BAA2B,GAAG,OAAO,CAAC,iCAAiC,CAAC,CAAC;AAEtF,SAAS,kCAAkC,CAAC,IAAuB,EAAE,cAAuB;IAC1F,IAAM,WAAW,GAAG,mBAAmB,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAC9D,OAAO,mBAAmB,CAAC,WAAW,CAAC,CAAC;AAC1C,CAAC;AAED,MAAM,CAAC,IAAM,4BAA4B,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAAC"}
1
+ {"version":3,"file":"createMacOSAliasTokens.js","sourceRoot":"","sources":["../src/createMacOSAliasTokens.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAE7E,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAC/F,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAG5D,SAAS,iCAAiC,CAAC,IAAuB,EAAE,cAAuB;IACzF,IAAM,WAAW,GAAG,mBAAmB,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAC9D,OAAO,kBAAkB,CAAC,WAAW,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,CAAC,IAAM,2BAA2B,GAAG,OAAO,CAAC,iCAAiC,CAAC,CAAC;AAEtF,SAAS,kCAAkC,CAAC,IAAuB,EAAE,cAAuB;IAC1F,IAAM,WAAW,GAAG,oBAAoB,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAC/D,OAAO,mBAAmB,CAAC,WAAW,CAAC,CAAC;AAC1C,CAAC;AAED,MAAM,CAAC,IAAM,4BAA4B,GAAG,OAAO,CAAC,kCAAkC,CAAC,CAAC"}
@@ -10,7 +10,7 @@ function createMacOSColorAliasTokensWorker(mode, isHighContrast) {
10
10
  }
11
11
  exports.createMacOSColorAliasTokens = (0, memo_cache_1.memoize)(createMacOSColorAliasTokensWorker);
12
12
  function createMacOSShadowAliasTokensWorker(mode, isHighContrast) {
13
- var aliasTokens = (0, getMacOSTokens_1.getMacOSAliasTokens)(mode, isHighContrast);
13
+ var aliasTokens = (0, getMacOSTokens_1.getMacOSShadowTokens)(mode, isHighContrast);
14
14
  return (0, theming_utils_1.mapPipelineToShadow)(aliasTokens);
15
15
  }
16
16
  exports.createMacOSShadowAliasTokens = (0, memo_cache_1.memoize)(createMacOSShadowAliasTokensWorker);
@@ -1 +1 @@
1
- {"version":3,"file":"createMacOSAliasTokens.js","sourceRoot":"","sources":["../src/createMacOSAliasTokens.ts"],"names":[],"mappings":";;;AAAA,mDAAuD;AAEvD,sEAA+F;AAC/F,gEAA4D;AAG5D,SAAS,iCAAiC,CAAC,IAAuB,EAAE,cAAuB;IACzF,IAAM,WAAW,GAAG,IAAA,oCAAmB,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAC9D,OAAO,IAAA,kCAAkB,EAAC,WAAW,CAAC,CAAC;AACzC,CAAC;AAEY,QAAA,2BAA2B,GAAG,IAAA,oBAAO,EAAC,iCAAiC,CAAC,CAAC;AAEtF,SAAS,kCAAkC,CAAC,IAAuB,EAAE,cAAuB;IAC1F,IAAM,WAAW,GAAG,IAAA,oCAAmB,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAC9D,OAAO,IAAA,mCAAmB,EAAC,WAAW,CAAC,CAAC;AAC1C,CAAC;AAEY,QAAA,4BAA4B,GAAG,IAAA,oBAAO,EAAC,kCAAkC,CAAC,CAAC"}
1
+ {"version":3,"file":"createMacOSAliasTokens.js","sourceRoot":"","sources":["../src/createMacOSAliasTokens.ts"],"names":[],"mappings":";;;AAAA,mDAA6E;AAE7E,sEAA+F;AAC/F,gEAA4D;AAG5D,SAAS,iCAAiC,CAAC,IAAuB,EAAE,cAAuB;IACzF,IAAM,WAAW,GAAG,IAAA,oCAAmB,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAC9D,OAAO,IAAA,kCAAkB,EAAC,WAAW,CAAC,CAAC;AACzC,CAAC;AAEY,QAAA,2BAA2B,GAAG,IAAA,oBAAO,EAAC,iCAAiC,CAAC,CAAC;AAEtF,SAAS,kCAAkC,CAAC,IAAuB,EAAE,cAAuB;IAC1F,IAAM,WAAW,GAAG,IAAA,qCAAoB,EAAC,IAAI,EAAE,cAAc,CAAC,CAAC;IAC/D,OAAO,IAAA,mCAAmB,EAAC,WAAW,CAAC,CAAC;AAC1C,CAAC;AAEY,QAAA,4BAA4B,GAAG,IAAA,oBAAO,EAAC,kCAAkC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/apple-theme",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "A FluentUI React Native theme that pulls constants from FluentUI Apple",
5
5
  "license": "MIT",
6
6
  "author": "Microsoft <fluentuinativeowners@microsoft.com>",
@@ -1,4 +1,4 @@
1
- import { getMacOSAliasTokens } from './getMacOSTokens';
1
+ import { getMacOSAliasTokens, getMacOSShadowTokens } from './getMacOSTokens';
2
2
  import { AliasColorTokens, AppearanceOptions } from '@fluentui-react-native/theme-types';
3
3
  import { mapPipelineToTheme, mapPipelineToShadow } from '@fluentui-react-native/theming-utils';
4
4
  import { memoize } from '@fluentui-react-native/memo-cache';
@@ -12,7 +12,7 @@ function createMacOSColorAliasTokensWorker(mode: AppearanceOptions, isHighContra
12
12
  export const createMacOSColorAliasTokens = memoize(createMacOSColorAliasTokensWorker);
13
13
 
14
14
  function createMacOSShadowAliasTokensWorker(mode: AppearanceOptions, isHighContrast: boolean): ThemeShadowDefinition {
15
- const aliasTokens = getMacOSAliasTokens(mode, isHighContrast);
15
+ const aliasTokens = getMacOSShadowTokens(mode, isHighContrast);
16
16
  return mapPipelineToShadow(aliasTokens);
17
17
  }
18
18