-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Theming] Update Colors Export (#480)
* Bump @types/react from 16.9.53 to 16.9.55 (#473) * Bump @types/react-dom from 16.9.8 to 16.9.9 (#469) * Bump @types/enzyme from 3.10.7 to 3.10.8 (#470) * Bump lint-staged from 10.4.0 to 10.5.0 (#468) * Bump typescript from 4.0.3 to 4.0.5 (#471) * Bump chromatic from 5.2.0 to 5.3.0 (#478) * Bump @react-aria/focus from 3.2.2 to 3.2.3 (#479) * Mass commit: add TODO to existing COLORS export, fix lingering COLORS imports, update stories * Add react-is as devDependency to fix install warning * Fix visual regression in Available Constants story Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4a5e75d
commit effc32f
Showing
24 changed files
with
646 additions
and
1,240 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
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,12 +1,14 @@ | ||
export { default as ANIMATION } from './animation'; | ||
export { default as BOX_SHADOWS } from './boxShadows'; | ||
export { default as BREAKPOINTS } from './breakpoints'; | ||
export { default as COLORS, COLORS_PROP_TYPES } from './colors'; | ||
// TODO: Remove once all consumer usage is using theming | ||
export { default as COLORS } from './colors'; | ||
export { default as FONTS } from './fonts'; | ||
export { default as GRID } from './grid'; | ||
export { default as LAYOUT } from './layout'; | ||
export { default as MEDIA_QUERIES } from './mediaQueries'; | ||
export { default as PROGRESS_BAR_STATUS } from './progressBarStatus'; | ||
export { default as SPACER } from './spacer'; | ||
export { primaryTheme, secondaryTheme, COLORS_PROP_TYPES } from './themes'; | ||
export { default as TYPOGRAPHY_CONSTANTS } from './typography'; | ||
export { default as Z_SCALE } from './zScale'; |
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,2 +1,3 @@ | ||
export { default as primaryTheme } from './primaryTheme'; | ||
export { default as secondaryTheme } from './secondaryTheme'; | ||
export { primaryTheme } from './primaryTheme'; | ||
export { secondaryTheme } from './secondaryTheme'; | ||
export { COLORS_PROP_TYPES } from './types'; |
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,9 +1,7 @@ | ||
import PRIMARY_COLORS from '../colors/primary'; | ||
|
||
const primaryTheme = { | ||
export const primaryTheme = { | ||
__type: 'primary', | ||
BOX_SHADOW: {}, | ||
COLORS: PRIMARY_COLORS, | ||
} as const; | ||
|
||
export default primaryTheme; |
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,9 +1,7 @@ | ||
import SECONDARY_COLORS from '../colors/secondary'; | ||
|
||
const secondaryTheme = { | ||
export const secondaryTheme = { | ||
__type: 'secondary', | ||
BOX_SHADOW: {}, | ||
COLORS: SECONDARY_COLORS, | ||
} as const; | ||
|
||
export default secondaryTheme; |
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
Oops, something went wrong.