@fluentui-react-native/default-theme 0.27.0 → 0.27.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/lib/__tests__/default-theme.test.d.ts +1 -1
  3. package/lib/__tests__/default-theme.test.js +22 -22
  4. package/lib/createAliasTokens.d.ts +1 -1
  5. package/lib/createAliasTokens.js +5 -5
  6. package/lib/createDefaultTheme.d.ts +1 -1
  7. package/lib/createDefaultTheme.js +21 -21
  8. package/lib/defaultColors.d.ts +1 -1
  9. package/lib/defaultColors.js +254 -254
  10. package/lib/defaultTheme.d.ts +1 -1
  11. package/lib/defaultTheme.js +86 -86
  12. package/lib/index.d.ts +1 -1
  13. package/lib/index.js +1 -1
  14. package/lib/stockWebPalette.d.ts +1 -1
  15. package/lib/stockWebPalette.js +89 -92
  16. package/lib/stockWebPalette.macos.d.ts +1 -1
  17. package/lib/stockWebPalette.macos.js +67 -70
  18. package/lib/stockWebPalette.win32.d.ts +1 -1
  19. package/lib/stockWebPalette.win32.js +67 -70
  20. package/lib-commonjs/__tests__/default-theme.test.d.ts +1 -1
  21. package/lib-commonjs/__tests__/default-theme.test.js +27 -27
  22. package/lib-commonjs/createAliasTokens.d.ts +1 -1
  23. package/lib-commonjs/createAliasTokens.js +10 -10
  24. package/lib-commonjs/createDefaultTheme.d.ts +1 -1
  25. package/lib-commonjs/createDefaultTheme.js +31 -33
  26. package/lib-commonjs/defaultColors.d.ts +1 -1
  27. package/lib-commonjs/defaultColors.js +257 -257
  28. package/lib-commonjs/defaultTheme.d.ts +1 -1
  29. package/lib-commonjs/defaultTheme.js +93 -93
  30. package/lib-commonjs/index.d.ts +1 -1
  31. package/lib-commonjs/index.js +10 -30
  32. package/lib-commonjs/stockWebPalette.d.ts +1 -1
  33. package/lib-commonjs/stockWebPalette.js +94 -97
  34. package/lib-commonjs/stockWebPalette.macos.d.ts +1 -1
  35. package/lib-commonjs/stockWebPalette.macos.js +72 -75
  36. package/lib-commonjs/stockWebPalette.win32.d.ts +1 -1
  37. package/lib-commonjs/stockWebPalette.win32.js +72 -75
  38. package/package.json +18 -17
@@ -1,81 +1,78 @@
1
- 'use strict';
2
- Object.defineProperty(exports, '__esModule', { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getStockWebPalette = getStockWebPalette;
4
4
  exports.getStockWebDarkPalette = getStockWebDarkPalette;
5
- const theme_tokens_1 = require('@fluentui-react-native/theme-tokens');
6
- const createAliasTokens_1 = require('./createAliasTokens');
7
- const defaultColors_1 = require('./defaultColors');
5
+ const theme_tokens_1 = require("@fluentui-react-native/theme-tokens");
6
+ const createAliasTokens_1 = require("./createAliasTokens");
7
+ const defaultColors_1 = require("./defaultColors");
8
8
  function getStockWebPalette() {
9
- return {
10
- ...(0, defaultColors_1.paletteFromFabricColors)({
11
- black: theme_tokens_1.globalTokens.color.black,
12
- neutralDark: '#201f1e',
13
- neutralPrimary: '#323130',
14
- neutralPrimaryAlt: '#3b3a39',
15
- neutralSecondary: '#605e5c',
16
- neutralSecondaryAlt: '#8a8886',
17
- neutralTertiary: '#a19f9d',
18
- neutralTertiaryAlt: '#c8c6c4',
19
- neutralQuaternary: '#d2d0ce',
20
- neutralQuaternaryAlt: '#e1dfdd',
21
- neutralLight: '#edebe9',
22
- neutralLighter: '#f3f2f1',
23
- neutralLighterAlt: '#faf9f8',
24
- white: theme_tokens_1.globalTokens.color.white,
25
- // Shared Colors
26
- red: theme_tokens_1.globalTokens.color.red.primary,
27
- redDark: theme_tokens_1.globalTokens.color.burgundy.primary,
28
- themeDarker: theme_tokens_1.globalTokens.color.brand.shade40,
29
- themeDark: theme_tokens_1.globalTokens.color.brand.shade20,
30
- themeDarkAlt: theme_tokens_1.globalTokens.color.brand.shade10,
31
- themePrimary: theme_tokens_1.globalTokens.color.brand.primary,
32
- themeSecondary: '#2b88d8',
33
- themeTertiary: '#71afe5',
34
- themeLight: theme_tokens_1.globalTokens.color.brand.tint40,
35
- themeLighter: theme_tokens_1.globalTokens.color.brand.tint50,
36
- themeLighterAlt: theme_tokens_1.globalTokens.color.brand.tint60,
37
- accent: theme_tokens_1.globalTokens.color.brand.primary,
38
- blackTranslucent40: 'rgba(0,0,0,.4)',
39
- }),
40
- ...(0, createAliasTokens_1.createColorAliasTokens)('light'),
41
- };
9
+ return {
10
+ ...(0, defaultColors_1.paletteFromFabricColors)({
11
+ black: theme_tokens_1.globalTokens.color.black,
12
+ neutralDark: '#201f1e',
13
+ neutralPrimary: '#323130',
14
+ neutralPrimaryAlt: '#3b3a39',
15
+ neutralSecondary: '#605e5c',
16
+ neutralSecondaryAlt: '#8a8886',
17
+ neutralTertiary: '#a19f9d',
18
+ neutralTertiaryAlt: '#c8c6c4',
19
+ neutralQuaternary: '#d2d0ce',
20
+ neutralQuaternaryAlt: '#e1dfdd',
21
+ neutralLight: '#edebe9',
22
+ neutralLighter: '#f3f2f1',
23
+ neutralLighterAlt: '#faf9f8',
24
+ white: theme_tokens_1.globalTokens.color.white,
25
+ // Shared Colors
26
+ red: theme_tokens_1.globalTokens.color.red.primary,
27
+ redDark: theme_tokens_1.globalTokens.color.burgundy.primary,
28
+ themeDarker: theme_tokens_1.globalTokens.color.brand.shade40,
29
+ themeDark: theme_tokens_1.globalTokens.color.brand.shade20,
30
+ themeDarkAlt: theme_tokens_1.globalTokens.color.brand.shade10,
31
+ themePrimary: theme_tokens_1.globalTokens.color.brand.primary,
32
+ themeSecondary: '#2b88d8',
33
+ themeTertiary: '#71afe5',
34
+ themeLight: theme_tokens_1.globalTokens.color.brand.tint40,
35
+ themeLighter: theme_tokens_1.globalTokens.color.brand.tint50,
36
+ themeLighterAlt: theme_tokens_1.globalTokens.color.brand.tint60,
37
+ accent: theme_tokens_1.globalTokens.color.brand.primary,
38
+ blackTranslucent40: 'rgba(0,0,0,.4)',
39
+ }),
40
+ ...(0, createAliasTokens_1.createColorAliasTokens)('light'),
41
+ };
42
42
  }
43
43
  function getStockWebDarkPalette() {
44
- return {
45
- ...(0, defaultColors_1.paletteFromFabricColors)(
46
- {
47
- // colors taken from fluentui DarkCustomizations.ts
48
- themeDarker: '#82c7ff',
49
- themeDark: theme_tokens_1.globalTokens.color.brand.tint30,
50
- themeDarkAlt: theme_tokens_1.globalTokens.color.brand.tint20,
51
- themePrimary: theme_tokens_1.globalTokens.color.brand.tint10,
52
- themeSecondary: theme_tokens_1.globalTokens.color.brand.primary,
53
- themeTertiary: '#235a85',
54
- themeLight: theme_tokens_1.globalTokens.color.brand.shade30,
55
- themeLighter: theme_tokens_1.globalTokens.color.brand.shade50,
56
- themeLighterAlt: theme_tokens_1.globalTokens.color.brand.shade60,
57
- black: theme_tokens_1.globalTokens.color.white,
58
- neutralDark: '#faf9f8',
59
- neutralPrimary: '#f3f2f1',
60
- neutralPrimaryAlt: '#c8c6c4',
61
- neutralSecondary: '#a19f9d',
62
- neutralSecondaryAlt: '#979693',
63
- neutralTertiary: '#797775',
64
- neutralTertiaryAlt: '#484644',
65
- neutralQuaternary: '#3b3a39',
66
- neutralQuaternaryAlt: '#323130',
67
- neutralLight: '#292827',
68
- neutralLighter: '#252423',
69
- neutralLighterAlt: '#201f1e',
70
- white: '#1b1a19',
71
- red: theme_tokens_1.globalTokens.color.red.primary,
72
- accent: theme_tokens_1.globalTokens.color.brand.primary,
73
- redDark: '#f1707b',
74
- blackTranslucent40: 'rgba(0,0,0,.4)',
75
- },
76
- true,
77
- ),
78
- ...(0, createAliasTokens_1.createColorAliasTokens)('dark'),
79
- };
44
+ return {
45
+ ...(0, defaultColors_1.paletteFromFabricColors)({
46
+ // colors taken from fluentui DarkCustomizations.ts
47
+ themeDarker: '#82c7ff',
48
+ themeDark: theme_tokens_1.globalTokens.color.brand.tint30,
49
+ themeDarkAlt: theme_tokens_1.globalTokens.color.brand.tint20,
50
+ themePrimary: theme_tokens_1.globalTokens.color.brand.tint10,
51
+ themeSecondary: theme_tokens_1.globalTokens.color.brand.primary,
52
+ themeTertiary: '#235a85',
53
+ themeLight: theme_tokens_1.globalTokens.color.brand.shade30,
54
+ themeLighter: theme_tokens_1.globalTokens.color.brand.shade50,
55
+ themeLighterAlt: theme_tokens_1.globalTokens.color.brand.shade60,
56
+ black: theme_tokens_1.globalTokens.color.white,
57
+ neutralDark: '#faf9f8',
58
+ neutralPrimary: '#f3f2f1',
59
+ neutralPrimaryAlt: '#c8c6c4',
60
+ neutralSecondary: '#a19f9d',
61
+ neutralSecondaryAlt: '#979693',
62
+ neutralTertiary: '#797775',
63
+ neutralTertiaryAlt: '#484644',
64
+ neutralQuaternary: '#3b3a39',
65
+ neutralQuaternaryAlt: '#323130',
66
+ neutralLight: '#292827',
67
+ neutralLighter: '#252423',
68
+ neutralLighterAlt: '#201f1e',
69
+ white: '#1b1a19',
70
+ red: theme_tokens_1.globalTokens.color.red.primary,
71
+ accent: theme_tokens_1.globalTokens.color.brand.primary,
72
+ redDark: '#f1707b',
73
+ blackTranslucent40: 'rgba(0,0,0,.4)',
74
+ }, true),
75
+ ...(0, createAliasTokens_1.createColorAliasTokens)('dark'),
76
+ };
80
77
  }
81
- //# sourceMappingURL=stockWebPalette.win32.js.map
78
+ //# sourceMappingURL=stockWebPalette.win32.js.map
package/package.json CHANGED
@@ -1,54 +1,55 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/default-theme",
3
- "version": "0.27.0",
3
+ "version": "0.27.1",
4
4
  "description": "Typing only package for fluentui-react-native theme types",
5
5
  "keywords": [],
6
+ "license": "MIT",
7
+ "author": "",
6
8
  "repository": {
7
9
  "type": "git",
8
10
  "url": "https://github.com/microsoft/fluentui-react-native.git",
9
11
  "directory": "packages/theming/default-theme"
10
12
  },
11
- "license": "MIT",
12
- "author": "",
13
+ "main": "lib-commonjs/index.js",
14
+ "module": "lib/index.js",
15
+ "types": "lib/index.d.ts",
13
16
  "exports": {
14
17
  ".": {
15
18
  "types": "./lib/index.d.ts",
16
19
  "import": "./lib/index.js",
17
- "require": "./lib-commonjs/index.js"
20
+ "require": "./lib-commonjs/index.js",
21
+ "default": "./src/index.ts"
18
22
  }
19
23
  },
20
- "main": "lib-commonjs/index.js",
21
- "module": "lib/index.js",
22
- "types": "lib/index.d.ts",
23
24
  "scripts": {
24
25
  "build": "fluentui-scripts build",
25
26
  "build-cjs": "tsgo --outDir lib-commonjs",
26
- "build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
27
+ "build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
27
28
  "clean": "fluentui-scripts clean",
28
29
  "depcheck": "fluentui-scripts depcheck",
29
30
  "lint": "fluentui-scripts eslint",
30
31
  "lint-package": "fluentui-scripts lint-package",
31
- "prettier": "fluentui-scripts prettier",
32
+ "format": "fluentui-scripts format",
32
33
  "start": "fluentui-scripts dev",
33
34
  "start-test": "fluentui-scripts jest-watch",
34
35
  "test": "fluentui-scripts jest",
35
36
  "update-snapshots": "fluentui-scripts jest -u"
36
37
  },
37
38
  "dependencies": {
38
- "@fluentui-react-native/framework-base": "0.3.0",
39
- "@fluentui-react-native/theme": "0.12.0",
40
- "@fluentui-react-native/theme-tokens": "0.28.0",
41
- "@fluentui-react-native/theme-types": "0.44.0",
42
- "@fluentui-react-native/theming-utils": "0.27.0",
39
+ "@fluentui-react-native/framework-base": "0.3.1",
40
+ "@fluentui-react-native/theme": "0.12.1",
41
+ "@fluentui-react-native/theme-tokens": "0.28.1",
42
+ "@fluentui-react-native/theme-types": "0.44.1",
43
+ "@fluentui-react-native/theming-utils": "0.27.1",
43
44
  "assert-never": "^1.2.1"
44
45
  },
45
46
  "devDependencies": {
46
47
  "@babel/core": "^7.20.0",
47
48
  "@fluentui-react-native/babel-config": "0.1.1",
48
- "@fluentui-react-native/eslint-config-rules": "0.1.1",
49
- "@fluentui-react-native/jest-config": "0.1.1",
49
+ "@fluentui-react-native/eslint-config-rules": "0.1.2",
50
+ "@fluentui-react-native/jest-config": "0.1.0",
50
51
  "@fluentui-react-native/kit-config": "0.1.2",
51
- "@fluentui-react-native/scripts": "0.1.2",
52
+ "@fluentui-react-native/scripts": "0.1.0",
52
53
  "@office-iss/react-native-win32": "^0.74.0",
53
54
  "@react-native-community/cli": "^20.0.0",
54
55
  "@react-native-community/cli-platform-android": "^20.0.0",