This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[terra-section-header] Removed templates from examples (#4084)
- Loading branch information
Showing
13 changed files
with
104 additions
and
186 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
111 changes: 0 additions & 111 deletions
111
...erra-core-docs/src/terra-dev-site/doc/section-header/example/AccordionExampleTemplate.jsx
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
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
9 changes: 7 additions & 2 deletions
9
...ges/terra-core-docs/src/terra-dev-site/doc/section-header/example/ClosedSectionHeader.jsx
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,11 +1,16 @@ | ||
import React from 'react'; | ||
import SectionHeaderExampleTemplate from './SectionHeaderExampleTemplate'; | ||
import SectionHeader from 'terra-section-header'; | ||
|
||
const sectionHeaderProps = { | ||
text: 'Closed', | ||
onClick: () => {}, | ||
}; | ||
|
||
const ClosedSectionHeader = () => <SectionHeaderExampleTemplate text="Closed Section Header" exampleProps={sectionHeaderProps} />; | ||
const ClosedSectionHeader = () => ( | ||
<div> | ||
<h2>Closed Section Header</h2> | ||
<SectionHeader {...sectionHeaderProps} /> | ||
</div> | ||
); | ||
|
||
export default ClosedSectionHeader; |
9 changes: 7 additions & 2 deletions
9
...es/terra-core-docs/src/terra-dev-site/doc/section-header/example/DefaultSectionHeader.jsx
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,6 +1,11 @@ | ||
import React from 'react'; | ||
import SectionHeaderExampleTemplate from './SectionHeaderExampleTemplate'; | ||
import SectionHeader from 'terra-section-header'; | ||
|
||
const DefaultSectionHeader = () => <SectionHeaderExampleTemplate text="Default" exampleProps={{ text: 'Default Section Header' }} />; | ||
const DefaultSectionHeader = () => ( | ||
<div> | ||
<h2>Default</h2> | ||
<SectionHeader text="Default Section Header" /> | ||
</div> | ||
); | ||
|
||
export default DefaultSectionHeader; |
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
9 changes: 7 additions & 2 deletions
9
.../terra-core-docs/src/terra-dev-site/doc/section-header/example/LongTitleSectionHeader.jsx
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,6 +1,11 @@ | ||
import React from 'react'; | ||
import SectionHeaderExampleTemplate from './SectionHeaderExampleTemplate'; | ||
import SectionHeader from 'terra-section-header'; | ||
|
||
const LongTitleSectionHeader = () => <SectionHeaderExampleTemplate text="Long Title" exampleProps={{ text: 'This is a header with long text .This is an element provides a customizable header layout with a prominent title options for the elements.This component saves time and effort in designing a header from scratch and ensures consistency across a websites pages.' }} />; | ||
const LongTitleSectionHeader = () => ( | ||
<div> | ||
<h2>Long Title</h2> | ||
<SectionHeader text="This is a header with long text .This is an element provides a customizable header layout with a prominent title options for the elements.This component saves time and effort in designing a header from scratch and ensures consistency across a websites pages." /> | ||
</div> | ||
); | ||
|
||
export default LongTitleSectionHeader; |
10 changes: 7 additions & 3 deletions
10
...es/terra-core-docs/src/terra-dev-site/doc/section-header/example/OnClickSectionHeader.jsx
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,18 @@ | ||
import React from 'react'; | ||
import SectionHeaderExampleTemplate from './SectionHeaderExampleTemplate'; | ||
import SectionHeader from 'terra-section-header'; | ||
|
||
const sectionHeaderProps = { | ||
text: 'I\'m clickable, click me', | ||
onClick: () => { | ||
// eslint-disable-next-line no-alert | ||
window.alert('The accordion has been clicked!'); | ||
}, | ||
}; | ||
|
||
const OnClickSectionHeader = () => <SectionHeaderExampleTemplate text="OnClick Section Header" exampleProps={sectionHeaderProps} />; | ||
const OnClickSectionHeader = () => ( | ||
<div> | ||
<h2>OnClick Section Header</h2> | ||
<SectionHeader {...sectionHeaderProps} /> | ||
</div> | ||
); | ||
|
||
export default OnClickSectionHeader; |
9 changes: 7 additions & 2 deletions
9
packages/terra-core-docs/src/terra-dev-site/doc/section-header/example/OpenSectionHeader.jsx
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,12 +1,17 @@ | ||
import React from 'react'; | ||
import SectionHeaderExampleTemplate from './SectionHeaderExampleTemplate'; | ||
import SectionHeader from 'terra-section-header'; | ||
|
||
const sectionHeaderProps = { | ||
text: 'Open', | ||
isOpen: true, | ||
onClick: () => {}, | ||
}; | ||
|
||
const OpenSectionheader = () => <SectionHeaderExampleTemplate text="Open Section Header" exampleProps={sectionHeaderProps} />; | ||
const OpenSectionheader = () => ( | ||
<div> | ||
<h2>Open Section Header</h2> | ||
<SectionHeader {...sectionHeaderProps} /> | ||
</div> | ||
); | ||
|
||
export default OpenSectionheader; |
26 changes: 0 additions & 26 deletions
26
...-core-docs/src/terra-dev-site/doc/section-header/example/SectionHeaderExampleTemplate.jsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.