From eb734a2f6e939f29b6e3e92e8d3e0a0f6c1f6e4c Mon Sep 17 00:00:00 2001
From: Josh Soref
Date: Mon, 22 Jun 2020 09:02:58 -0400
Subject: [PATCH] Chore: spelling - ui (#24435)
---
packages/grafana-ui/CHANGELOG.md | 2 +-
packages/grafana-ui/src/components/BarGauge/BarGauge.tsx | 2 +-
.../grafana-ui/src/components/BigValue/BigValueLayout.tsx | 2 +-
packages/grafana-ui/src/components/Cascader/Cascader.tsx | 2 +-
packages/grafana-ui/src/components/Chart/Tooltip.tsx | 2 +-
.../grafana-ui/src/components/ColorPicker/ColorPicker.mdx | 2 +-
.../components/ColorPicker/SeriesColorPickerPopover.tsx | 2 +-
.../src/components/ContextMenu/WithContextMenu.tsx | 4 ++--
.../grafana-ui/src/components/DataLinks/DataLinkInput.tsx | 2 +-
packages/grafana-ui/src/components/Drawer/Drawer.tsx | 4 ++--
packages/grafana-ui/src/components/Forms/Label.story.tsx | 4 ++--
.../Forms/Legacy/Select/ButtonSelect.story.internal.tsx | 6 +++---
.../Forms/Legacy/Select/IndicatorsContainer.tsx | 2 +-
.../components/Forms/Legacy/Select/NoOptionsMessage.tsx | 2 +-
.../Forms/Legacy/Select/Select.story.internal.tsx | 6 +++---
.../src/components/Forms/Legacy/Select/Select.tsx | 2 +-
.../src/components/Forms/Legacy/Select/SelectOption.tsx | 2 +-
packages/grafana-ui/src/components/Graph/Graph.test.tsx | 2 +-
.../grafana-ui/src/components/Graph/GraphLegend.story.tsx | 2 +-
.../Graph/GraphTooltip/MultiModeGraphTooltip.test.tsx | 8 ++++----
.../grafana-ui/src/components/InfoBox/InfoBox.story.tsx | 2 +-
.../JSONFormatter/json_explorer/json_explorer.ts | 2 +-
.../grafana-ui/src/components/Legend/Legend.story.tsx | 2 +-
.../grafana-ui/src/components/Logs/LogLabels.test.tsx | 2 +-
.../src/components/Logs/LogRowContextProvider.tsx | 6 +++---
.../src/components/QueryField/QueryField.test.tsx | 2 +-
.../src/components/Segment/SegmentInput.story.tsx | 2 +-
packages/grafana-ui/src/components/Select/SingleValue.tsx | 2 +-
.../grafana-ui/src/components/SetInterval/SetInterval.tsx | 8 ++++----
.../grafana-ui/src/themes/_variables.dark.scss.tmpl.ts | 2 +-
.../grafana-ui/src/themes/_variables.light.scss.tmpl.ts | 2 +-
packages/grafana-ui/src/utils/index.ts | 2 +-
packages/grafana-ui/src/utils/measureText.ts | 4 ++--
.../grafana-ui/src/utils/storybook/withStoryContainer.tsx | 4 ++--
packages/grafana-ui/src/utils/storybook/withTheme.tsx | 4 ++--
packages/grafana-ui/src/utils/useDelayedSwitch.ts | 2 +-
36 files changed, 54 insertions(+), 54 deletions(-)
diff --git a/packages/grafana-ui/CHANGELOG.md b/packages/grafana-ui/CHANGELOG.md
index ef84b2b04e6..d556bd73632 100644
--- a/packages/grafana-ui/CHANGELOG.md
+++ b/packages/grafana-ui/CHANGELOG.md
@@ -108,7 +108,7 @@ onCreateOption={(customValue) => {
- **@grafana/ui**: Create Icon component and replace icons. [#23402](https://github.com/grafana/grafana/pull/23402), [@ivanahuckova](https://github.com/ivanahuckova)
- **@grafana/ui**: Create slider component. [#22275](https://github.com/grafana/grafana/pull/22275), [@ivanahuckova](https://github.com/ivanahuckova)
-- **@grafana/ui**: Remove ColorPallete component. [#23592](https://github.com/grafana/grafana/pull/23592), [@ivanahuckova](https://github.com/ivanahuckova)
+- **@grafana/ui**: Remove ColorPalette component. [#23592](https://github.com/grafana/grafana/pull/23592), [@ivanahuckova](https://github.com/ivanahuckova)
- **Components**: IconButton. [#23510](https://github.com/grafana/grafana/pull/23510), [@torkelo](https://github.com/torkelo)
- **Docs**: Adding API reference documentation support for the packages libraries. [#21931](https://github.com/grafana/grafana/pull/21931), [@mckn](https://github.com/mckn)
- **Migration**: Add old Input to legacy namespace. [#23286](https://github.com/grafana/grafana/pull/23286), [@tskarhed](https://github.com/tskarhed)
diff --git a/packages/grafana-ui/src/components/BarGauge/BarGauge.tsx b/packages/grafana-ui/src/components/BarGauge/BarGauge.tsx
index 36698f8fb09..79a80ced44b 100644
--- a/packages/grafana-ui/src/components/BarGauge/BarGauge.tsx
+++ b/packages/grafana-ui/src/components/BarGauge/BarGauge.tsx
@@ -14,7 +14,7 @@ import {
FieldColorMode,
} from '@grafana/data';
-// Compontents
+// Components
import { FormattedValueDisplay } from '../FormattedValueDisplay/FormattedValueDisplay';
// Utils
diff --git a/packages/grafana-ui/src/components/BigValue/BigValueLayout.tsx b/packages/grafana-ui/src/components/BigValue/BigValueLayout.tsx
index b04af3c08f5..59f4d48cd0c 100644
--- a/packages/grafana-ui/src/components/BigValue/BigValueLayout.tsx
+++ b/packages/grafana-ui/src/components/BigValue/BigValueLayout.tsx
@@ -364,7 +364,7 @@ export class StackedWithChartLayout extends BigValueLayout {
// make title fontsize it's a bit smaller than valueFontSize
this.titleFontSize = Math.min(this.valueFontSize * 0.7, this.titleFontSize);
- // make chart take up onused space
+ // make chart take up unused space
this.chartHeight = height - this.titleFontSize * LINE_HEIGHT - this.valueFontSize * LINE_HEIGHT;
}
diff --git a/packages/grafana-ui/src/components/Cascader/Cascader.tsx b/packages/grafana-ui/src/components/Cascader/Cascader.tsx
index bbf55d0a0f4..6f46b254f28 100644
--- a/packages/grafana-ui/src/components/Cascader/Cascader.tsx
+++ b/packages/grafana-ui/src/components/Cascader/Cascader.tsx
@@ -9,7 +9,7 @@ import { css } from 'emotion';
import { onChangeCascader } from './optionMappings';
interface CascaderProps {
- /** The seperator between levels in the search */
+ /** The separator between levels in the search */
separator?: string;
placeholder?: string;
options: CascaderOption[];
diff --git a/packages/grafana-ui/src/components/Chart/Tooltip.tsx b/packages/grafana-ui/src/components/Chart/Tooltip.tsx
index cf4a877390e..fa8cef3782b 100644
--- a/packages/grafana-ui/src/components/Chart/Tooltip.tsx
+++ b/packages/grafana-ui/src/components/Chart/Tooltip.tsx
@@ -10,7 +10,7 @@ export type TooltipMode = 'single' | 'multi';
// Describes active dimensions user interacts with
// It's a key-value pair where:
// - key is the name of the dimension
-// - value is a tuple addresing which column and row from given dimension is active.
+// - value is a tuple addressing which column and row from given dimension is active.
// If row is undefined, it means that we are not hovering over a datapoint
export type ActiveDimensions = { [key in keyof T]: [number, number | undefined] | null };
diff --git a/packages/grafana-ui/src/components/ColorPicker/ColorPicker.mdx b/packages/grafana-ui/src/components/ColorPicker/ColorPicker.mdx
index 0976bea2258..6f1b631c526 100644
--- a/packages/grafana-ui/src/components/ColorPicker/ColorPicker.mdx
+++ b/packages/grafana-ui/src/components/ColorPicker/ColorPicker.mdx
@@ -7,7 +7,7 @@ import { ColorPicker } from './ColorPicker';
The `ColorPicker` component group consists of several building blocks that are combined in Grafana to create the `ColorPicker`: popover, pickers and palettes. There are different combinations of these building blocks depending on where the `ColorPicker` is used in Grafana.
-The `Popover` is a tabbed view where you can switch between `Palettes`. The `NamedColorsPalette` shows an arrangement of preset colors, while the `SpectrumPalette` is an unlimited HSB color picker. The preset colors are opimized to work well with both light and dark theme. `Popover` is triggered, for example, by the series legend of graphs, or by `Pickers`.
+The `Popover` is a tabbed view where you can switch between `Palettes`. The `NamedColorsPalette` shows an arrangement of preset colors, while the `SpectrumPalette` is an unlimited HSB color picker. The preset colors are optimized to work well with both light and dark theme. `Popover` is triggered, for example, by the series legend of graphs, or by `Pickers`.
The `Pickers` are single circular color fields that show the currently picked color. On click, they open the `Popover`.
diff --git a/packages/grafana-ui/src/components/ColorPicker/SeriesColorPickerPopover.tsx b/packages/grafana-ui/src/components/ColorPicker/SeriesColorPickerPopover.tsx
index bd64b5f230c..91c59ffb417 100644
--- a/packages/grafana-ui/src/components/ColorPicker/SeriesColorPickerPopover.tsx
+++ b/packages/grafana-ui/src/components/ColorPicker/SeriesColorPickerPopover.tsx
@@ -85,5 +85,5 @@ export class AxisSelector extends React.PureComponent = ({ children, getContextMenuItems }) => {
const [isMenuOpen, setIsMenuOpen] = useState(false);
- const [menuPosition, setMenuPositon] = useState({ x: 0, y: 0 });
+ const [menuPosition, setMenuPosition] = useState({ x: 0, y: 0 });
return (
<>
{children({
openMenu: e => {
setIsMenuOpen(true);
- setMenuPositon({
+ setMenuPosition({
x: e.pageX,
y: e.pageY,
});
diff --git a/packages/grafana-ui/src/components/DataLinks/DataLinkInput.tsx b/packages/grafana-ui/src/components/DataLinks/DataLinkInput.tsx
index 58ef2f98b5b..ca23d4bffa6 100644
--- a/packages/grafana-ui/src/components/DataLinks/DataLinkInput.tsx
+++ b/packages/grafana-ui/src/components/DataLinks/DataLinkInput.tsx
@@ -45,7 +45,7 @@ const getStyles = stylesFactory((theme: GrafanaTheme) => ({
}
`,
// Wrapper with child selector needed.
- // When classnames are appplied to the same element as the wrapper, it causes the suggestions to stop working
+ // When classnames are applied to the same element as the wrapper, it causes the suggestions to stop working
wrapperOverrides: css`
width: 100%;
> .slate-query-field__wrapper {
diff --git a/packages/grafana-ui/src/components/Drawer/Drawer.tsx b/packages/grafana-ui/src/components/Drawer/Drawer.tsx
index a5fedb24245..aa0f9474aeb 100644
--- a/packages/grafana-ui/src/components/Drawer/Drawer.tsx
+++ b/packages/grafana-ui/src/components/Drawer/Drawer.tsx
@@ -29,7 +29,7 @@ export interface Props {
onClose: () => void;
}
-const getStyles = stylesFactory((theme: GrafanaTheme, scollableContent: boolean) => {
+const getStyles = stylesFactory((theme: GrafanaTheme, scrollableContent: boolean) => {
return {
drawer: css`
.drawer-content {
@@ -61,7 +61,7 @@ const getStyles = stylesFactory((theme: GrafanaTheme, scollableContent: boolean)
content: css`
padding: ${theme.spacing.md};
flex-grow: 1;
- overflow: ${!scollableContent ? 'hidden' : 'auto'};
+ overflow: ${!scrollableContent ? 'hidden' : 'auto'};
z-index: 0;
height: 100%;
`,
diff --git a/packages/grafana-ui/src/components/Forms/Label.story.tsx b/packages/grafana-ui/src/components/Forms/Label.story.tsx
index b4b62f3e45d..052b8dce097 100644
--- a/packages/grafana-ui/src/components/Forms/Label.story.tsx
+++ b/packages/grafana-ui/src/components/Forms/Label.story.tsx
@@ -7,12 +7,12 @@ export default {
};
export const simple = () => {
- return ;
+ return ;
};
export const categorised = () => {
return (
-