-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge snapshot management into main branch (#205)
Signed-off-by: bowenlan-amzn <[email protected]>
- Loading branch information
1 parent
13bea3b
commit 46dd590
Showing
63 changed files
with
5,591 additions
and
15 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,39 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import { EuiFlexGroup, EuiFlexItem, EuiSpacer, EuiText } from "@elastic/eui"; | ||
import React from "react"; | ||
|
||
interface CustomLabelProps { | ||
title: string; | ||
isOptional?: boolean; | ||
helpText?: string | JSX.Element; | ||
} | ||
|
||
const CustomLabel = ({ title, isOptional = false, helpText }: CustomLabelProps) => ( | ||
<> | ||
<EuiFlexGroup gutterSize="xs"> | ||
<EuiFlexItem grow={false}> | ||
<EuiText size="xs"> | ||
<h4>{title}</h4> | ||
</EuiText> | ||
</EuiFlexItem> | ||
|
||
{isOptional ? ( | ||
<EuiFlexItem> | ||
<EuiText size="xs" color="subdued"> | ||
<i> - optional</i> | ||
</EuiText> | ||
</EuiFlexItem> | ||
) : null} | ||
</EuiFlexGroup> | ||
|
||
{helpText && typeof helpText === "string" ? <span style={{ fontWeight: 200, fontSize: "12px" }}>{helpText}</span> : helpText} | ||
|
||
<EuiSpacer size="s" /> | ||
</> | ||
); | ||
|
||
export default CustomLabel; |
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,8 @@ | ||
/* | ||
* Copyright OpenSearch Contributors | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
import CustomLabel from "./CustomLabel"; | ||
|
||
export default CustomLabel; |
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
Oops, something went wrong.