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 ( -