forked from opensearch-project/oui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workspace icons (opensearch-project#1365)
Also: * Synced CHANGELOG.md Signed-off-by: Miki <[email protected]>
- Loading branch information
Showing
17 changed files
with
517 additions
and
18 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,61 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
* | ||
* Modifications Copyright OpenSearch Contributors. See | ||
* GitHub history for details. | ||
*/ | ||
|
||
import React from 'react'; | ||
|
||
import { | ||
OuiFlexGrid, | ||
OuiFlexItem, | ||
OuiIcon, | ||
OuiPanel, | ||
OuiCodeBlock, | ||
OuiCopy, | ||
OuiSpacer, | ||
} from '../../../../src/components'; | ||
|
||
const iconTypes = [ | ||
'wsAnalytics', | ||
'wsEssentials', | ||
'wsObservability', | ||
'wsSearch', | ||
'wsSecurityAnalytics', | ||
'wsSelector', | ||
]; | ||
|
||
export default () => ( | ||
<> | ||
<OuiCodeBlock language="html" isCopyable paddingSize="m"> | ||
{'<OuiIcon type="wsSelector" />'} | ||
</OuiCodeBlock> | ||
<OuiSpacer /> | ||
<OuiFlexGrid direction="column" columns={3}> | ||
{iconTypes.map((iconType) => ( | ||
<OuiFlexItem key={iconType}> | ||
<OuiCopy | ||
display="block" | ||
textToCopy={iconType} | ||
afterMessage={`${iconType} copied`}> | ||
{(copy) => ( | ||
<OuiPanel | ||
hasShadow={false} | ||
hasBorder={false} | ||
onClick={copy} | ||
paddingSize="s"> | ||
<OuiIcon className="oui-alignMiddle" type={iconType} />  {' '} | ||
<small>{iconType}</small> | ||
</OuiPanel> | ||
)} | ||
</OuiCopy> | ||
</OuiFlexItem> | ||
))} | ||
</OuiFlexGrid> | ||
</> | ||
); |
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,25 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
* | ||
* Modifications Copyright OpenSearch Contributors. See | ||
* GitHub history for details. | ||
*/ | ||
|
||
import * as React from "react"; | ||
const OuiIconWsAnalytics = ({ title, titleId, ...props }) => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width={16} | ||
height={16} | ||
viewBox="0 0 16 16" | ||
aria-labelledby={titleId} | ||
{...props}> | ||
{title ? <title id={titleId}>{title}</title> : null} | ||
<path d="M1 8.7h4.2v5.6H1V8.7Zm9.8-3.5H15v9.1h-4.2V5.2ZM5.9 1.7h4.2v12.6H5.9V1.7Zm-3.5 8.4v2.8h1.4v-2.8H2.4Zm4.9-7v9.8h1.4V3.1H7.3Zm4.9 3.5v6.3h1.4V6.6h-1.4Z" /> | ||
</svg> | ||
); | ||
export const icon = OuiIconWsAnalytics; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,25 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
* | ||
* Modifications Copyright OpenSearch Contributors. See | ||
* GitHub history for details. | ||
*/ | ||
|
||
import * as React from "react"; | ||
const OuiIconWsEssentials = ({ title, titleId, ...props }) => ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width={16} | ||
height={16} | ||
viewBox="0 0 16 16" | ||
aria-labelledby={titleId} | ||
{...props}> | ||
{title ? <title id={titleId}>{title}</title> : null} | ||
<path d="M6.552 11.929h.734V8.357h1.428v3.572h.734c.094-.859.532-1.567 1.243-2.341.08-.088.594-.62.655-.695a4.286 4.286 0 1 0-6.693-.001c.061.076.576.609.655.695.712.775 1.15 1.483 1.244 2.342Zm.02 1.428v.714h2.857v-.714H6.57ZM3.538 9.785a5.714 5.714 0 1 1 8.922.002c-.444.552-1.604 1.427-1.604 2.499v1.785c0 .79-.64 1.429-1.428 1.429H6.57c-.789 0-1.428-.64-1.428-1.429v-1.785c0-1.072-1.161-1.948-1.604-2.5Z" /> | ||
</svg> | ||
); | ||
export const icon = OuiIconWsEssentials; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.