Skip to content

Commit

Permalink
Replace Elastic with OpenSearch in the examples (opensearch-project#622
Browse files Browse the repository at this point in the history
…) (opensearch-project#623)

Signed-off-by: Andrey Myssak <[email protected]>
  • Loading branch information
andreymyssak authored and SergeyMyssak committed Apr 19, 2023
1 parent f5cd73a commit df32602
Show file tree
Hide file tree
Showing 21 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion src-docs/src/views/card/playground.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const cardConfig = () => {
propsToUse.icon = {
...propsToUse.icon,
type: PropTypes.ReactNode,
value: '<OuiIcon type="logoElastic" size="xl" />',
value: '<OuiIcon type="logoOpenSearch" size="xl" />',
};

propsToUse.children = {
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/header/header_alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export default () => {
<OuiHeader position={position} theme={theme}>
<OuiHeaderSection grow={false}>
<OuiHeaderSectionItem border="right">
<OuiHeaderLogo>Elastic</OuiHeaderLogo>
<OuiHeaderLogo>OpenSearch</OuiHeaderLogo>
</OuiHeaderSectionItem>
</OuiHeaderSection>
<OuiHeaderSection side="right">
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/header/header_animate.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export default () => {
<OuiHeader
sections={[
{
items: [<OuiHeaderLogo>Elastic</OuiHeaderLogo>],
items: [<OuiHeaderLogo>OpenSearch</OuiHeaderLogo>],
borders: 'none',
},
{
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/header/header_dark.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default ({ theme }: { theme: any }) => (
sections={[
{
items: [
<OuiHeaderLogo>Elastic</OuiHeaderLogo>,
<OuiHeaderLogo>OpenSearch</OuiHeaderLogo>,
<OuiHeaderLinks aria-label="App navigation dark theme example">
<OuiHeaderLink isActive>Docs</OuiHeaderLink>
<OuiHeaderLink>Code</OuiHeaderLink>
Expand Down
4 changes: 2 additions & 2 deletions src-docs/src/views/header/header_example.js
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ export const HeaderExample = {
},
},
{
title: 'The Elastic navigation pattern',
title: 'The OpenSearch navigation pattern',
source: [
{
type: GuideSectionTypes.JS,
Expand Down Expand Up @@ -507,7 +507,7 @@ export const HeaderExample = {
</>
),
fullScreen: {
slug: 'elastic-pattern',
slug: 'opensearch-pattern',
demo: <HeaderElasticPattern theme={lightColors} />,
},
},
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/page/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default () => (
<OuiPageSideBar>SideBar nav</OuiPageSideBar>
<OuiPageBody>
<OuiPageHeader
iconType="logoElastic"
iconType="logoOpenSearch"
pageTitle="Page title"
rightSideItems={[
<OuiButton fill>Add something</OuiButton>,
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/page/page_bottom_bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default ({ button = <></>, content, sideNav, bottomBar }) => {
<OuiPageHeader
bottomBorder
restrictWidth
iconType="logoElastic"
iconType="logoOpenSearch"
pageTitle="Page title"
rightSideItems={[button]}
/>
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/page/page_bottom_bar_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default ({ button = <></>, content, sideNav, bottomBar }) => {
<OuiPageTemplate
pageSideBar={sideNav}
pageHeader={{
iconType: 'logoElastic',
iconType: 'logoOpenSearch',
pageTitle: 'Page title',
rightSideItems: [button],
}}
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/page/page_centered_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default ({ button = <></>, content, sideNav }) => (
<OuiPageBody panelled>
<OuiPageHeader
restrictWidth
iconType="logoElastic"
iconType="logoOpenSearch"
pageTitle="Page title"
rightSideItems={[button]}
/>
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/page/page_centered_content_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default ({ button = <></>, content, sideNav }) => (
pageContentProps={{ paddingSize: 'none' }}
pageSideBar={sideNav}
pageHeader={{
iconType: 'logoElastic',
iconType: 'logoOpenSearch',
pageTitle: 'Page title',
rightSideItems: [button],
}}>
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/page/page_custom_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default ({ button = <></> }) => (
<OuiPage paddingSize="l">
<OuiPageBody>
<OuiPageHeader
iconType="logoElastic"
iconType="logoOpenSearch"
pageTitle="Page title"
rightSideItems={[button, <OuiButton>Do something</OuiButton>]}
bottomBorder
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/page/page_custom_content_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default ({ button = <></> }) => (
restrictWidth={false}
template="empty"
pageHeader={{
iconType: 'logoElastic',
iconType: 'logoOpenSearch',
pageTitle: 'Page title',
rightSideItems: [button, <OuiButton>Do something</OuiButton>],
}}>
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/page/page_new.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default ({ button = <></>, content, sideNav }) => (
<OuiPageBody panelled>
<OuiPageHeader
restrictWidth
iconType="logoElastic"
iconType="logoOpenSearch"
pageTitle="Page title"
rightSideItems={[button]}
tabs={[{ label: 'Tab 1', isSelected: true }, { label: 'Tab 2' }]}
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/page/page_restricting_width.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default ({ button = <></>, content, sideNav }) => {
<OuiPageBody panelled>
<OuiPageHeader
restrictWidth={'75%'}
iconType="logoElastic"
iconType="logoOpenSearch"
pageTitle="Page title"
rightSideItems={[button]}
description="Restricting the width to 75%."
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/page/page_restricting_width_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default ({ button = <></>, content, sideNav }) => {
pageSideBar={sideNav}
restrictWidth="75%"
pageHeader={{
iconType: 'logoElastic',
iconType: 'logoOpenSearch',
pageTitle: 'Page title',
rightSideItems: [button],
description: 'Restricting the width to 75%.',
Expand Down
2 changes: 1 addition & 1 deletion src-docs/src/views/page/page_simple_empty_content.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default ({ button = <></>, content }) => (
<OuiPageBody>
<OuiPageHeader
restrictWidth
iconType="logoElastic"
iconType="logoOpenSearch"
pageTitle="Page title"
rightSideItems={[button]}
paddingSize="l"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default ({ button = <></>, content }) => (
template="centeredContent"
pageContentProps={{ paddingSize: 'none' }}
pageHeader={{
iconType: 'logoElastic',
iconType: 'logoOpenSearch',
pageTitle: 'Page title',
rightSideItems: [button],
}}>
Expand Down
8 changes: 4 additions & 4 deletions src-docs/src/views/tables/actions/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,11 +181,11 @@ export const Table = () => {
'data-test-subj': 'action-share',
},
{
name: 'Elastic.co',
description: 'Go to elastic.co',
icon: 'logoElastic',
name: 'opensearch.org',
description: 'Go to opensearch.org',
icon: 'logoOpenSearch',
type: 'icon',
href: 'https://elastic.co',
href: 'https://opensearch.org/',
target: '_blank',
'data-test-subj': 'action-outboundlink',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ exports[`OuiLoadingLogo logo is rendered 1`] = `
class="ouiLoadingLogo__icon"
>
<span
data-ouiicon-type="logoElastic"
data-ouiicon-type="logoOpenSearch"
/>
</span>
</span>
Expand Down
2 changes: 1 addition & 1 deletion src/components/loading/loading_elastic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const OuiLoadingElasticComponent: FunctionComponent<

return (
<span className={classes} {...rest}>
<OuiIcon type="logoElastic" size={size} />
<OuiIcon type="logoOpenSearch" size={size} />
</span>
);
};
Expand Down
2 changes: 1 addition & 1 deletion src/components/loading/loading_logo.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('OuiLoadingLogo', () => {

test('logo is rendered', () => {
const component = render(
<OuiLoadingLogo logo="logoElastic" {...requiredProps} />
<OuiLoadingLogo logo="logoOpenSearch" {...requiredProps} />
);

expect(component).toMatchSnapshot();
Expand Down

0 comments on commit df32602

Please sign in to comment.