From 95976e4e4f55f46f3cc698433cd1627fbfa144f9 Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Wed, 21 Aug 2024 14:39:25 -0700 Subject: [PATCH] Add workspace icons (#1365) (#1366) Also: * Synced CHANGELOG.md Signed-off-by: Miki (cherry picked from commit cf9cf4afdd2f46f35d22311ced3be35a938b9579) Signed-off-by: github-actions[bot] # Conflicts: # CHANGELOG.md Co-authored-by: github-actions[bot] --- src-docs/src/views/icon/icon_example.js | 11 ++ src-docs/src/views/icon/workspace.js | 61 +++++++++++ .../icon/__snapshots__/icon.test.tsx.snap | 103 ++++++++++++++++++ .../icon/assets/workspace/wsAnalytics.js | 25 +++++ .../icon/assets/workspace/wsAnalytics.svg | 29 +++++ .../icon/assets/workspace/wsEssentials.js | 25 +++++ .../icon/assets/workspace/wsEssentials.svg | 29 +++++ .../icon/assets/workspace/wsObservability.js | 25 +++++ .../icon/assets/workspace/wsObservability.svg | 37 +++++++ .../icon/assets/workspace/wsSearch.js | 25 +++++ .../icon/assets/workspace/wsSearch.svg | 29 +++++ .../assets/workspace/wsSecurityAnalytics.js | 25 +++++ .../assets/workspace/wsSecurityAnalytics.svg | 29 +++++ .../icon/assets/workspace/wsSelector.js | 25 +++++ .../icon/assets/workspace/wsSelector.svg | 14 +++ src/components/icon/icon.tsx | 6 + 16 files changed, 498 insertions(+) create mode 100644 src-docs/src/views/icon/workspace.js create mode 100644 src/components/icon/assets/workspace/wsAnalytics.js create mode 100644 src/components/icon/assets/workspace/wsAnalytics.svg create mode 100644 src/components/icon/assets/workspace/wsEssentials.js create mode 100644 src/components/icon/assets/workspace/wsEssentials.svg create mode 100644 src/components/icon/assets/workspace/wsObservability.js create mode 100644 src/components/icon/assets/workspace/wsObservability.svg create mode 100644 src/components/icon/assets/workspace/wsSearch.js create mode 100644 src/components/icon/assets/workspace/wsSearch.svg create mode 100644 src/components/icon/assets/workspace/wsSecurityAnalytics.js create mode 100644 src/components/icon/assets/workspace/wsSecurityAnalytics.svg create mode 100644 src/components/icon/assets/workspace/wsSelector.js create mode 100644 src/components/icon/assets/workspace/wsSelector.svg diff --git a/src-docs/src/views/icon/icon_example.js b/src-docs/src/views/icon/icon_example.js index 01d56a91ca..50db29deca 100644 --- a/src-docs/src/views/icon/icon_example.js +++ b/src-docs/src/views/icon/icon_example.js @@ -38,6 +38,8 @@ import Ml from './ml'; import Logos from './logos'; +import Workspace from './workspace'; + import IconSizes from './icon_sizes'; import IconColors from './icon_colors'; @@ -115,6 +117,15 @@ export const IconExample = { ), demo: , }, + { + title: 'Workspaces', + text: ( +

+ Workspace logos are usually displayed at 16x16 or above. +

+ ), + demo: , + }, { title: 'Apps', text: ( diff --git a/src-docs/src/views/icon/workspace.js b/src-docs/src/views/icon/workspace.js new file mode 100644 index 0000000000..8a2953100f --- /dev/null +++ b/src-docs/src/views/icon/workspace.js @@ -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 () => ( + <> + + {''} + + + + {iconTypes.map((iconType) => ( + + + {(copy) => ( + +  {' '} + {iconType} + + )} + + + ))} + + +); diff --git a/src/components/icon/__snapshots__/icon.test.tsx.snap b/src/components/icon/__snapshots__/icon.test.tsx.snap index 4d0f007aa3..fc5940ed05 100644 --- a/src/components/icon/__snapshots__/icon.test.tsx.snap +++ b/src/components/icon/__snapshots__/icon.test.tsx.snap @@ -10358,6 +10358,109 @@ exports[`OuiIcon props type wrench is rendered 1`] = ` `; +exports[`OuiIcon props type wsAnalytics is rendered 1`] = ` + +`; + +exports[`OuiIcon props type wsEssentials is rendered 1`] = ` + +`; + +exports[`OuiIcon props type wsObservability is rendered 1`] = ` + +`; + +exports[`OuiIcon props type wsSearch is rendered 1`] = ` + +`; + +exports[`OuiIcon props type wsSecurityAnalytics is rendered 1`] = ` + +`; + +exports[`OuiIcon props type wsSelector is rendered 1`] = ` + +`; + exports[`OuiIcon render different types of icons renders custom components 1`] = `