-
Notifications
You must be signed in to change notification settings - Fork 959
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat(ui/radio): initial compomponent implementation * feat(ui/radio): state mapping support * feat(ui/radio): apply design styles * test(radio): add radio component tests * test(ui/radio): [temporary] radio tests * feat(theme): add appearances mapping config * refactor(theme): split theme service * refactor(theme): remove useless tests * refactor(theme): [temporary] mapping & style services * merge: style-consumer-appearance-support * refactor(theme): style-consumer methods refactor, move to service * refactor(theme): remove unused imports from style-consumer * refactor(theme): move method from hoc to service (style-consumer) * refactor(theme): framework ui-component imports refactor (style-component is decorator now). * test(theme): style-consumer-service spec add * refactor(theme): style-consumer-service functions refactor * refactor(theme): style-consumer-service as a class implement and integrate * build(tsconfig): allow using decorators switch-on * refactor(theme): styled decorator rename * feat(theme): createStyle function supporting appearances * refactor(theme): style consumer service * refactor(ui/radio): adopt component to new config * test(theme): adopt theme test to new config * refactor(playground): remove sample component * feat(playground): update radio screen examples * build(package): react-native-testing-library update * test(ui/radio): add radio component snapshot tests * refactor(playground): adopt radio screen to appearances config
- Loading branch information
1 parent
14f0cf9
commit 48c6cfe
Showing
45 changed files
with
2,855 additions
and
1,040 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,7 +1,7 @@ | ||
import React from 'react'; | ||
import { ThemeMappingType } from './type'; | ||
|
||
const defaultValue: ThemeMappingType[] = []; | ||
const defaultValue: ThemeMappingType = {}; | ||
const MappingContext = React.createContext(defaultValue); | ||
|
||
export default MappingContext; |
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,14 +1,25 @@ | ||
// TODO(mapping/type): declare Config/Token type | ||
export type ThemeMappingType = any; | ||
|
||
export type ThemeMappingConfigType = any; | ||
export interface ComponentMappingType { | ||
appearance: any; | ||
} | ||
|
||
export interface ThemeMappingType { | ||
parameters: string[]; | ||
variants: any; | ||
export interface AppearanceType { | ||
mapping: MappingType; | ||
variant?: any; | ||
} | ||
|
||
export type VariantGroupType = any; | ||
|
||
export interface VariantType { | ||
state: any; | ||
mapping: MappingType; | ||
} | ||
|
||
export interface MappingType { | ||
state?: StateType; | ||
} | ||
|
||
export type StateType = any; | ||
|
||
|
||
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
Oops, something went wrong.