-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DevExp: Part 2 of 2 - the codebase no longer uses const enums, enabli…
…ng consumers to be able to use isolatedModules (#7119) * Completely eliminate const enums in our codebase * change back the IconNames * change file
- Loading branch information
Showing
7 changed files
with
112 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
common/changes/@uifabric/experiments/const-enum_2018-11-17-00-03.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@uifabric/experiments", | ||
"comment": "DevExp: const enums are replaced with constants, this allows the use of isolatedModules mode of compilation", | ||
"type": "minor" | ||
} | ||
], | ||
"packageName": "@uifabric/experiments", | ||
"email": "[email protected]" | ||
} |
11 changes: 11 additions & 0 deletions
11
common/changes/@uifabric/variants/const-enum_2018-11-17-00-03.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"changes": [ | ||
{ | ||
"packageName": "@uifabric/variants", | ||
"comment": "DevExp: const enums are replaced with constants, this allows the use of isolatedModules mode of compilation", | ||
"type": "minor" | ||
} | ||
], | ||
"packageName": "@uifabric/variants", | ||
"email": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,28 @@ | ||
/** | ||
* Const enum for variant theme types. | ||
* Variant theme types values | ||
* | ||
* @public | ||
*/ | ||
export const enum VariantThemeType { | ||
export const VariantThemeType = { | ||
/* | ||
* No variant. | ||
*/ | ||
None = 0, | ||
* No variant. | ||
*/ | ||
None: 0 as 0, | ||
/* | ||
* A variant where the background is a soft version of the background color. Most other colors remain unchanged. | ||
*/ | ||
Neutral = 1, | ||
* A variant where the background is a soft version of the background color. Most other colors remain unchanged. | ||
*/ | ||
Neutral: 1 as 1, | ||
/* | ||
* A variant where the background is a soft version of the primary color. Most other colors remain unchanged. | ||
*/ | ||
Soft = 2, | ||
* A variant where the background is a soft version of the primary color. Most other colors remain unchanged. | ||
*/ | ||
Soft: 2 as 2, | ||
/* | ||
* A variant where the background is a strong version of the primary color. All colors change. | ||
* The background becomes shades of the primary color. | ||
* The foreground/text becomes shades of the background color. | ||
* The primary color becomes shades of the background. | ||
*/ | ||
Strong = 3 | ||
} | ||
* A variant where the background is a strong version of the primary color. All colors change. | ||
* The background becomes shades of the primary color. | ||
* The foreground/text becomes shades of the background color. | ||
* The primary color becomes shades of the background. | ||
*/ | ||
Strong: 3 as 3 | ||
}; | ||
|
||
export type VariantThemeType = typeof VariantThemeType[keyof typeof VariantThemeType]; |