-
Notifications
You must be signed in to change notification settings - Fork 952
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(theme): simplify theme mapping config (#209)
* refactor(theme): simplify theme mapping config * test(theme): add tests for undefined mappings
- Loading branch information
1 parent
e6d030c
commit 37274c4
Showing
12 changed files
with
143 additions
and
243 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,10 @@ | ||
export interface ThemeMappingType { | ||
name: string; | ||
parameters: ParameterType[]; | ||
variants: VariantType[]; | ||
} | ||
|
||
export interface ParameterType { | ||
name: string; | ||
} | ||
// TODO(mapping/type): declare Config/Token type | ||
|
||
export interface VariantType { | ||
name: string; | ||
mapping: MappingType[]; | ||
} | ||
export type ThemeMappingConfigType = any; | ||
|
||
export interface MappingType { | ||
parameter: string; | ||
token: string; | ||
export interface ThemeMappingType { | ||
parameters: string[]; | ||
variants: any; | ||
} | ||
|
||
// TODO(mapping/type): declare Token type | ||
export type TokenType = any; |
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
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.