-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #763 from WestpacGEL/kate-patterns-26mar
Kate patterns 26mar
- Loading branch information
Showing
26 changed files
with
332 additions
and
58 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
File renamed without changes.
File renamed without changes.
137 changes: 137 additions & 0 deletions
137
apps/site/src/content/design-system/components/header/code/default/content.mdoc
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,137 @@ | ||
### Default | ||
|
||
Default usage example | ||
|
||
```tsx | ||
<> | ||
<Header brand="wbc" /> | ||
</> | ||
``` | ||
|
||
### Right button | ||
|
||
Example with a button on the right | ||
|
||
```tsx | ||
<> | ||
<Header brand="wbc"> | ||
<Button | ||
look="faint" | ||
onClick={function Ya(){}} | ||
size={{ | ||
initial: 'small', | ||
sm: 'medium' | ||
}} | ||
soft | ||
> | ||
Sign Out | ||
</Button> | ||
</Header> | ||
</> | ||
``` | ||
|
||
### Centre at Xsl | ||
|
||
Example of logo centering when XSL | ||
|
||
```tsx | ||
<> | ||
<Header | ||
brand="wbc" | ||
logoCenter | ||
/> | ||
</> | ||
``` | ||
|
||
### Logo onClick | ||
|
||
Example of logo with onClick | ||
|
||
```tsx | ||
<> | ||
<Header | ||
brand="wbc" | ||
logoOnClick={function Ya(){}} | ||
/> | ||
</> | ||
``` | ||
|
||
### Logo with skiplink | ||
|
||
Example of header with skiplink | ||
|
||
```tsx | ||
<> | ||
<Header | ||
brand="wbc" | ||
skipToContentId="#" | ||
/> | ||
</> | ||
``` | ||
|
||
### Fixed | ||
|
||
Example fixed header. Does not show correctly in Docs view as it will show how it looks when scrolled, check specific story for non-scrolled view | ||
|
||
```tsx | ||
<div className="h-10"> | ||
<Header | ||
brand="wbc" | ||
fixed | ||
/> | ||
</div> | ||
``` | ||
|
||
### With back arrow | ||
|
||
Example of header with arrow button | ||
|
||
```tsx | ||
<> | ||
<Header | ||
brand="wbc" | ||
leftIcon="arrow" | ||
/> | ||
</> | ||
``` | ||
|
||
### With back arrow onClick | ||
|
||
Example of header with back arrow button with onClick | ||
|
||
```tsx | ||
<> | ||
<Header | ||
brand="wbc" | ||
leftIcon="arrow" | ||
leftOnClick={function Ya(){}} | ||
/> | ||
</> | ||
``` | ||
|
||
### With hamburger | ||
|
||
Example of header with hamburger (only visible below xsl) | ||
|
||
```tsx | ||
<> | ||
<Header | ||
brand="wbc" | ||
leftIcon="hamburger" | ||
/> | ||
</> | ||
``` | ||
|
||
### With hamburger onClick | ||
|
||
Example of header with hamburger (only visible below xsl) with onClick | ||
|
||
```tsx | ||
<> | ||
<Header | ||
brand="wbc" | ||
leftIcon="hamburger" | ||
leftOnClick={function Ya(){}} | ||
/> | ||
</> | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
31 changes: 31 additions & 0 deletions
31
apps/site/src/content/design-system/footer-usage/design/originations-footer/content.mdoc
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,31 @@ | ||
sdfsdf | ||
|
||
```jsx | ||
<> | ||
<Footer | ||
brand="wbc" | ||
hideLogo | ||
> | ||
<div> | ||
<SecurityIcon | ||
className="float-left shrink-0 max-md:mr-1 md:mr-2" | ||
color="muted" | ||
size={{ | ||
initial: 'small', | ||
md: 'medium' | ||
}} | ||
/> | ||
<p className="text-muted"> | ||
Our site and your online application are secure. For more information read our{' '} | ||
<Link | ||
href="https://www.westpac.com.au/security/" | ||
type="inline" | ||
> | ||
information on security | ||
</Link> | ||
. © Copyright © Westpac Banking Corporation ABN 33 007 457 141 AFSL and Australian credit licence 233714. | ||
</p> | ||
</div> | ||
</Footer> | ||
</> | ||
``` |
12 changes: 12 additions & 0 deletions
12
apps/site/src/content/design-system/footer-usage/index.yaml
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,12 @@ | ||
name: Footer usage | ||
namedExport: | ||
discriminant: false | ||
excludeFromNavbar: false | ||
design: | ||
- title: | ||
name: Originations footer | ||
slug: originations-footer | ||
noTitle: false | ||
accessibility: [] | ||
relatedComponents: [] | ||
code: [] |
Empty file.
7 changes: 0 additions & 7 deletions
7
apps/site/src/content/design-system/header/code/default/content.mdoc
This file was deleted.
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
Oops, something went wrong.