-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33412e9
commit f024bd4
Showing
58 changed files
with
1,779 additions
and
1,698 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 |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { ComponentInfo } from '../components'; | ||
import { BaseComponent } from '../entities'; | ||
import { checkmark, indexByOptionId, stringArray } from '../utils'; | ||
|
||
const componentId = 'appBar'; | ||
|
||
export interface AppBar extends BaseComponent { | ||
componentId: typeof componentId; | ||
options: { | ||
api: ('children' | 'customComponents' | 'props')[]; | ||
denseMode: boolean; | ||
sticky: boolean; | ||
themeMode: boolean; | ||
}; | ||
} | ||
|
||
export const appBarComponent: ComponentInfo = { | ||
cannonicalName: 'AppBar', | ||
componentId, | ||
description: 'The AppBar displays information and actions relating to the current screen.', | ||
indefiniteArticle: 'an', | ||
optionsById: indexByOptionId([ | ||
{ | ||
criteria: 'The API style used for the components contained within the AppBar.', | ||
name: 'API', | ||
optionId: 'api', | ||
...stringArray, | ||
}, | ||
{ | ||
criteria: 'There is a built-in way to make the bar take up less vertical space.', | ||
name: 'Dense', | ||
optionId: 'denseMode', | ||
...checkmark, | ||
}, | ||
{ | ||
criteria: 'A prop exists which can set the bar into a mode where it remains at the top of the screen, independent of scroll depth.', | ||
name: 'Sticky', | ||
optionId: 'sticky', | ||
...checkmark, | ||
}, | ||
{ | ||
criteria: 'The bar can be individually themed to use a theme mode that doesn\'t match the rest of the app. E.g. dark mode AppBar in a light mode app.', | ||
name: 'Theme Mode', | ||
optionId: 'themeMode', | ||
...checkmark, | ||
}, | ||
]), | ||
}; |
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
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.