-
Notifications
You must be signed in to change notification settings - Fork 221
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
Arianna Malakis
committed
Dec 18, 2024
1 parent
41b376d
commit 44f8c57
Showing
9 changed files
with
37 additions
and
89 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
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
19 changes: 4 additions & 15 deletions
19
modules/preview-react/InformationHighlight/stories/examples/attention.tsx
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,38 +1,27 @@ | ||
import React from 'react'; | ||
|
||
import {InformationHighlight} from '@workday/canvas-kit-preview-react/InformationHighlight'; | ||
import {ExternalHyperlink} from '@workday/canvas-kit-react/button'; | ||
export const Attention = () => { | ||
return ( | ||
<InformationHighlight variant={'attention'}> | ||
<InformationHighlight.Icon icon={undefined} /> | ||
<InformationHighlight.Heading> Information Highlight </InformationHighlight.Heading> | ||
<InformationHighlight.Heading> Attention! Highlight Something </InformationHighlight.Heading> | ||
<InformationHighlight.Body> | ||
If you select the link below it will just reroute you back to this page | ||
</InformationHighlight.Body> | ||
<InformationHighlight.Link | ||
as={ExternalHyperlink} | ||
href="https://workday.github.io/canvas-kit/?path=/docs/preview-information-highlight--docs" | ||
> | ||
View the Docs | ||
</InformationHighlight.Link> | ||
<InformationHighlight.Link href="#hyperlink">View the Docs</InformationHighlight.Link> | ||
</InformationHighlight> | ||
); | ||
}; | ||
export const AttentionHigh = () => { | ||
return ( | ||
<InformationHighlight variant={'attention'} emphasis={'high'}> | ||
<InformationHighlight.Icon icon={undefined} /> | ||
<InformationHighlight.Heading> Information Highlight </InformationHighlight.Heading> | ||
<InformationHighlight.Heading> Attention! Highlight Something </InformationHighlight.Heading> | ||
<InformationHighlight.Body> | ||
If you select the link below it will just reroute you back to this page | ||
</InformationHighlight.Body> | ||
<InformationHighlight.Link | ||
as={ExternalHyperlink} | ||
href="https://workday.github.io/canvas-kit/?path=/docs/preview-information-highlight--docs" | ||
> | ||
View the Docs | ||
</InformationHighlight.Link> | ||
<InformationHighlight.Link href="#hyperlink">View the Docs</InformationHighlight.Link> | ||
</InformationHighlight> | ||
); | ||
}; |
19 changes: 4 additions & 15 deletions
19
modules/preview-react/InformationHighlight/stories/examples/caution.tsx
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,38 +1,27 @@ | ||
import React from 'react'; | ||
|
||
import {InformationHighlight} from '@workday/canvas-kit-preview-react/InformationHighlight'; | ||
import {ExternalHyperlink} from '@workday/canvas-kit-react/button'; | ||
export const Caution = () => { | ||
return ( | ||
<InformationHighlight variant={'caution'}> | ||
<InformationHighlight.Icon icon={undefined} /> | ||
<InformationHighlight.Heading> Information Highlight </InformationHighlight.Heading> | ||
<InformationHighlight.Heading> Caution: Highlight Something </InformationHighlight.Heading> | ||
<InformationHighlight.Body> | ||
If you select the link below it will just reroute you back to this page | ||
</InformationHighlight.Body> | ||
<InformationHighlight.Link | ||
as={ExternalHyperlink} | ||
href="https://workday.github.io/canvas-kit/?path=/docs/preview-information-highlight--docs" | ||
> | ||
View the Docs | ||
</InformationHighlight.Link> | ||
<InformationHighlight.Link href="#hyperlink">View the Docs</InformationHighlight.Link> | ||
</InformationHighlight> | ||
); | ||
}; | ||
export const CautionHigh = () => { | ||
return ( | ||
<InformationHighlight variant={'caution'} emphasis={'high'}> | ||
<InformationHighlight.Icon icon={undefined} /> | ||
<InformationHighlight.Heading> Information Highlight </InformationHighlight.Heading> | ||
<InformationHighlight.Heading> Caution: Highlight Something </InformationHighlight.Heading> | ||
<InformationHighlight.Body> | ||
If you select the link below it will just reroute you back to this page | ||
</InformationHighlight.Body> | ||
<InformationHighlight.Link | ||
as={ExternalHyperlink} | ||
href="https://workday.github.io/canvas-kit/?path=/docs/preview-information-highlight--docs" | ||
> | ||
View the Docs | ||
</InformationHighlight.Link> | ||
<InformationHighlight.Link href="#hyperlink">View the Docs</InformationHighlight.Link> | ||
</InformationHighlight> | ||
); | ||
}; |
19 changes: 4 additions & 15 deletions
19
modules/preview-react/InformationHighlight/stories/examples/customIconAttention.tsx
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,39 +1,28 @@ | ||
import React from 'react'; | ||
|
||
import {InformationHighlight} from '@workday/canvas-kit-preview-react/InformationHighlight'; | ||
import {ExternalHyperlink} from '@workday/canvas-kit-react/button'; | ||
import {chartIcon} from '@workday/canvas-system-icons-web'; | ||
export const IconAttentionLow = () => { | ||
return ( | ||
<InformationHighlight variant={'attention'} emphasis={'low'}> | ||
<InformationHighlight.Icon icon={chartIcon} /> | ||
<InformationHighlight.Heading> Information Highlight </InformationHighlight.Heading> | ||
<InformationHighlight.Heading> Attention! Custom Highlight </InformationHighlight.Heading> | ||
<InformationHighlight.Body> | ||
A custom Icon can be added to the Information Highlight component | ||
</InformationHighlight.Body> | ||
<InformationHighlight.Link | ||
as={ExternalHyperlink} | ||
href="https://workday.github.io/canvas-kit/?path=/docs/preview-information-highlight--docs" | ||
> | ||
View the Docs | ||
</InformationHighlight.Link> | ||
<InformationHighlight.Link href="#hyperlink">View the Docs</InformationHighlight.Link> | ||
</InformationHighlight> | ||
); | ||
}; | ||
export const IconAttentionHigh = () => { | ||
return ( | ||
<InformationHighlight variant={'attention'} emphasis={'high'}> | ||
<InformationHighlight.Icon icon={chartIcon} /> | ||
<InformationHighlight.Heading> Information Highlight </InformationHighlight.Heading> | ||
<InformationHighlight.Heading> Attention! Custom Highlight </InformationHighlight.Heading> | ||
<InformationHighlight.Body> | ||
A custom Icon can be added to the Information Highlight component | ||
</InformationHighlight.Body> | ||
<InformationHighlight.Link | ||
as={ExternalHyperlink} | ||
href="https://workday.github.io/canvas-kit/?path=/docs/preview-information-highlight--docs" | ||
> | ||
View the Docs | ||
</InformationHighlight.Link> | ||
<InformationHighlight.Link href="#hyperlink">View the Docs</InformationHighlight.Link> | ||
</InformationHighlight> | ||
); | ||
}; |
19 changes: 4 additions & 15 deletions
19
modules/preview-react/InformationHighlight/stories/examples/informational.tsx
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,38 +1,27 @@ | ||
import React from 'react'; | ||
|
||
import {InformationHighlight} from '@workday/canvas-kit-preview-react/InformationHighlight'; | ||
import {ExternalHyperlink} from '@workday/canvas-kit-react/button'; | ||
export const Informational = () => { | ||
return ( | ||
<InformationHighlight variant={'informational'}> | ||
<InformationHighlight.Icon icon={undefined} /> | ||
<InformationHighlight.Heading> Information Highlight </InformationHighlight.Heading> | ||
<InformationHighlight.Heading> Informational Highlight </InformationHighlight.Heading> | ||
<InformationHighlight.Body> | ||
If you select the link below it will just reroute you back to this page | ||
</InformationHighlight.Body> | ||
<InformationHighlight.Link | ||
as={ExternalHyperlink} | ||
href="https://workday.github.io/canvas-kit/?path=/docs/preview-information-highlight--docs" | ||
> | ||
View the Docs | ||
</InformationHighlight.Link> | ||
<InformationHighlight.Link href="#hyperlink">View the Docs</InformationHighlight.Link> | ||
</InformationHighlight> | ||
); | ||
}; | ||
export const InformationalHigh = () => { | ||
return ( | ||
<InformationHighlight variant={'informational'} emphasis={'high'}> | ||
<InformationHighlight.Icon icon={undefined} /> | ||
<InformationHighlight.Heading> Information Highlight </InformationHighlight.Heading> | ||
<InformationHighlight.Heading> Informational Highlight </InformationHighlight.Heading> | ||
<InformationHighlight.Body> | ||
If you select the link below it will just reroute you back to this page | ||
</InformationHighlight.Body> | ||
<InformationHighlight.Link | ||
as={ExternalHyperlink} | ||
href="https://workday.github.io/canvas-kit/?path=/docs/preview-information-highlight--docs" | ||
> | ||
View the Docs | ||
</InformationHighlight.Link> | ||
<InformationHighlight.Link href="#hyperlink">View the Docs</InformationHighlight.Link> | ||
</InformationHighlight> | ||
); | ||
}; |