Skip to content

Commit

Permalink
fix: finastra spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Sep 25, 2020
1 parent 0be83f2 commit c259a5f
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
16 changes: 8 additions & 8 deletions examples/stories/src/tutorial/design/tokens/colors.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
CometColorPalette,
DuetColorPalette,
ETradeColorPalette,
FinestraColorPalette,
FinastraColorPalette,
FishTankColorPalette,
} from '@component-controls/design-tokens';

Expand Down Expand Up @@ -720,16 +720,16 @@ import { ETradeColorPalette } from '@component-controls/design-tokens';
/>


## FinestraColor
## FinastraColor
FinastraColor
The [FinastraColor](/api/design-tokens-colors-finastracolor--overview) component displays the color as a small block, with name and hex color on the side. If the color is a primary color, will display as a circle.

The [FinestraColor](/api/design-tokens-colors-finestracolor--overview) component displays the color as a small block, with name and hex color on the side. If the color is a primary color, will display as a circle.

Design inspired from [Finestra](https://design.fusionfabric.cloud/foundations/colors).
Design inspired from [Finsstra](https://design.fusionfabric.cloud/foundations/colors).

```
import { FinestraColorPalette } from '@component-controls/design-tokens';
import { FinastraColorPalette } from '@component-controls/design-tokens';
<FinestraColorPalette
<FinastraColorPalette
palette={{
'C 100 - dark': {
value: '#2D2D2D',
Expand All @@ -752,7 +752,7 @@ import { FinestraColorPalette } from '@component-controls/design-tokens';
/>
```

<FinestraColorPalette
<FinastraColorPalette
palette={{
'C 100 - dark': {
value: '#2D2D2D',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import React from 'react';
import { FinestraColor, FinestraColorPalette } from './FinestraColor';
import { FinastraColor, FinastraColorPalette } from './FinastraColor';
import { ColorProps } from '../types';

export default {
title: 'Design Tokens/Colors/FinestraColor',
component: FinestraColor,
title: 'Design Tokens/Colors/FinastraColor',
component: FinastraColor,
};

export const overview = ({ name, color }: ColorProps) => (
<FinestraColor name={name} color={color} />
<FinastraColor name={name} color={color} />
);

overview.controls = {
Expand All @@ -24,7 +24,7 @@ overview.controls = {
};

export const palette = () => (
<FinestraColorPalette
<FinastraColorPalette
palette={{
'C 100 - dark': {
value: '#2D2D2D',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import { FlexContainerProps, FlexContainer } from '../FlexContainer';

/**
* Color item displaying the color as a small block, with name and hex color on the side. If the color is a primary color, will display as a circle.
* Design inspired from [Finestra](https://design.fusionfabric.cloud/foundations/colors).
* Design inspired from [Finastra](https://design.fusionfabric.cloud/foundations/colors).
*/

export const FinestraColor: FC<ColorBlockProps> = ({ name, color }) => {
export const FinastraColor: FC<ColorBlockProps> = ({ name, color }) => {
const colorObj: ColorValue =
typeof color === 'string' ? { value: color } : color;
const { value: colorValue, name: colorName, primary } = colorObj;
Expand Down Expand Up @@ -78,16 +78,16 @@ export const FinestraColor: FC<ColorBlockProps> = ({ name, color }) => {

/**
*
* palette displayed with FinestraColor items
* palette displayed with FinastraColor items
* using a css flex display direction column
*/
export const FinestraColorPalette: FC<Omit<
export const FinastraColorPalette: FC<Omit<
FlexContainerProps,
'children' | 'direction'
>> = props => (
<FlexContainer direction="column" sx={{ width: 250 }} {...props}>
{({ name, value, hover }) => (
<FinestraColor
<FinastraColor
key={`color_item_${name}}`}
name={name}
color={value}
Expand Down
1 change: 1 addition & 0 deletions ui/design-tokens/src/Colors/FinastraColor/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './FinastraColor';
1 change: 0 additions & 1 deletion ui/design-tokens/src/Colors/FinestraColor/index.ts

This file was deleted.

2 changes: 1 addition & 1 deletion ui/design-tokens/src/Colors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export * from './CedarColor';
export * from './CometColor';
export * from './DuetColor';
export * from './ETradeColor';
export * from './FinestraColor';
export * from './FinastraColor';
export * from './FishTankColor';

0 comments on commit c259a5f

Please sign in to comment.