Skip to content

Commit

Permalink
adding 0 item for GROW_SIZES and SHRINK_SIZES arrays and FlexItemGrow…
Browse files Browse the repository at this point in the history
…Size and FlexItemShrinkSize types

Signed-off-by: Samuel Valdes Gutierrez <[email protected]>
  • Loading branch information
BigSamu committed Jan 12, 2024
1 parent ceed1ce commit 01e94ea
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/components/flex/flex_item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import classNames from 'classnames';
import { CommonProps } from '../common';

export type FlexItemGrowSize =
| 0
| 1
| 2
| 3
Expand All @@ -47,6 +48,7 @@ export type FlexItemGrowSize =
| false
| null;
export type FlexItemShrinkSize =
| 0
| 1
| 2
| 3
Expand All @@ -69,8 +71,21 @@ export interface OuiFlexItemProps {
component?: keyof JSX.IntrinsicElements;
}

export const GROW_SIZES: FlexItemGrowSize[] = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
export const GROW_SIZES: FlexItemGrowSize[] = [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
];
export const SHRINK_SIZES: FlexItemShrinkSize[] = [
0,
1,
2,
3,
Expand Down

0 comments on commit 01e94ea

Please sign in to comment.