Skip to content

Commit

Permalink
bump flow (#1618)
Browse files Browse the repository at this point in the history
* bump flow
* v147.0.0
  • Loading branch information
PinkaminaDianePie authored Aug 16, 2019
1 parent dea44fa commit dff6af1
Show file tree
Hide file tree
Showing 97 changed files with 123 additions and 37 deletions.
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ module.name_mapper.extension='scss' -> 'empty/object'
module.system.node.resolve_dirname=node_modules
module.system.node.resolve_dirname=src/components
module.system.node.resolve_dirname=src/docs
exact_by_default=true

[strict]
nonstrict-import
Expand Down
6 changes: 3 additions & 3 deletions flow-typed/npm/classnames_v2.x.x.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// flow-typed signature: cf86673cc32d185bdab1d2ea90578d37
// flow-typed version: 614bf49aa8/classnames_v2.x.x/flow_>=v0.25.x
// flow-typed signature: a00cf41b09af4862583460529d5cfcb9
// flow-typed version: c6154227d1/classnames_v2.x.x/flow_>=v0.104.x

type $npm$classnames$Classes =
| string
| { [className: string]: * }
| { [className: string]: *, ... }
| false
| void
| null;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "style-guide",
"version": "146.2.4",
"version": "147.0.0",
"description": "Brainly Front-End Style Guide",
"author": "Brainly",
"private": true,
Expand Down Expand Up @@ -30,7 +30,7 @@
"eslint-plugin-react": "^7.14.3",
"eslint-plugin-react-hooks": "^1.7.0",
"file-loader": "^4.1.0",
"flow-bin": "^0.102.0",
"flow-bin": "^0.105.2",
"gulp": "^3.9.0",
"gulp-autoprefixer": "^4.0.0",
"gulp-base64": "^0.1.3",
Expand Down
1 change: 1 addition & 0 deletions src/components/action-list/ActionList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ type ActionListPropsType = {
noWrap?: ?boolean,
direction?: ?DirectionType,
align?: ?AligmentType,
...
};

const ActionList = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/action-list/ActionListHole.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ type ActionListHolePropsType = {
equalWidth?: ?boolean,
hideOverflow?: ?boolean,
className?: ?string,
...
};

const ActionListHole = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/avatar/Avatar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type PropsType = {
className?: string,
title?: string,
link?: string,
...
};

const Avatar = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/badges/TextBadge.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type PropsType = {
size?: BadgeModule.BadgeSizeType,
rounded?: boolean,
withAnimation?: boolean,
...
};

const TextBadge = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/badges/subcomponents/Badge.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type PropsType = {
size?: BadgeSizeType,
rounded?: boolean,
withAnimation?: boolean,
...
};

const Badge = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/box/Box.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ type BoxPropsType = {
* @todo add interactive example for this prop
*/
onClose?: ?(SyntheticInputEvent<HTMLDivElement>) => mixed,
...
};

/**
Expand Down
1 change: 1 addition & 0 deletions src/components/breadcrumbs/Breadcrumb.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ type PropsType = {
adaptive?: ?boolean,
short?: ?boolean,
elements: $ReadOnlyArray<Node>,
...
};

const Breadcrumb = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/bubble/Bubble.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ type BubblePropsType = {
color?: ?BubbleColorType,
full?: ?boolean,
noShadow?: ?boolean,
...
};

const Bubble = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/buttons/Button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ export type ButtonPropsType = {
* Additional class names
*/
className?: string,
...
};

const Button = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/buttons/ButtonPrimary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ type ButtonPrimaryPropsType = {
disabled?: ?boolean,
href?: ?string,
buttonType?: ?ButtonPrimaryTypeType,
...
};

const ButtonPrimary = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/buttons/ButtonRound.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type ButtonRoundType = {
small?: ?boolean,
href?: string,
label?: ?string,
...
};

const ButtonRound = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/buttons/ButtonSecondary.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ type ButtonSecondaryPropsType = {
small?: ?boolean,
href?: ?string,
buttonType?: ?ButtonSecondaryTypeType,
...
};

const ButtonSecondary = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/card/Card.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type PropsType = {
shadow?: boolean,
transparent?: boolean,
padding?: CardPaddingType,
...
};

const Card = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/card/CardHole.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ type PropsType = {
children: Node,
className?: string,
color?: ColorType,
...
};

const CardHole = ({color, children, className, ...props}: PropsType) => {
Expand Down
1 change: 1 addition & 0 deletions src/components/content-box/ContentBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export type ContentBoxPropsType = {
className?: ?string,
spacedTop?: ?SizeType,
spacedBottom?: ?SizeType,
...
};

const ContentBox = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/content-box/ContentBoxActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export type ContentBoxActionsPropsType = {
spacedTop?: ?SizeType,
spacedBottom?: ?SizeType,
align?: AligmentType,
...
};

const ContentBoxActions = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/content-box/ContentBoxContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export type ContentBoxContentPropsType = {
spacedTop?: ?SizeType,
spacedBottom?: ?SizeType,
align?: AligmentType,
...
};

const ContentBoxContent = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/content-box/ContentBoxHeader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export type ContentBoxHeaderPropsType = {
spacedTop?: ?SizeType,
spacedBottom?: ?SizeType,
align?: AligmentType,
...
};

const ContentBoxHeader = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/content-box/ContentBoxTitle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export type ContentBoxTitlePropsType = {
spacedTop?: ?SizeType,
spacedBottom?: ?SizeType,
align?: AligmentType,
...
};

const ContentBoxTitle = ({
Expand Down
2 changes: 2 additions & 0 deletions src/components/dropdowns/Dropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ type PropsType = {
items: Array<{
id: string,
text: string,
...
}>,
className?: string,
...
};

const Dropdown = ({
Expand Down
3 changes: 3 additions & 0 deletions src/components/dropdowns/DropdownContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Dropdown from './Dropdown';
type ItemType = {
id: string,
text: string,
...
};

type PropsType = {
Expand All @@ -18,11 +19,13 @@ type PropsType = {
currentItem?: ItemType,
onChange: string => mixed,
onToggle?: SyntheticMouseEvent<HTMLDivElement>,
...
};

type StateType = {
currentItem: ItemType,
label: string,
...
};

/* eslint-disable react/default-props-match-prop-types */
Expand Down
1 change: 1 addition & 0 deletions src/components/dropdowns/DropdownItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import React from 'react';
type PropsType = {
onClick: (SyntheticMouseEvent<HTMLDivElement>) => mixed,
text: string,
...
};

const DropdownItem = ({text, onClick}: PropsType) => (
Expand Down
1 change: 1 addition & 0 deletions src/components/flash-messages/FlashMessage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type PropsType = {
text: string,
type?: FlashMessageTypeType,
className?: string,
...
};

const FlashMessage = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/flex/Flex.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ export type FlexPropsType = {
* </Flex>
*/
marginLeft?: FlexMarginsType,
...
};

const Flex = (props: FlexPropsType) => {
Expand Down
1 change: 1 addition & 0 deletions src/components/footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import classNames from 'classnames';
type PropsType = {
children: Node,
className?: string,
...
};

const Footer = ({children, className, ...props}: PropsType) => {
Expand Down
1 change: 1 addition & 0 deletions src/components/footer/FooterLine.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import classNames from 'classnames';
type PropsType = {
children: Node,
className?: string,
...
};

const FooterLine = ({children, className, ...props}: PropsType) => {
Expand Down
5 changes: 2 additions & 3 deletions src/components/form-elements/Checkbox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ export type CheckboxPropsType = {
checked?: boolean,
id?: string,
className?: string,
...
};

export type CheckboxStateType = {
id: string,
};
export type CheckboxStateType = {id: string, ...};

class Checkbox extends PureComponent<CheckboxPropsType, CheckboxStateType> {
constructor(props: CheckboxPropsType) {
Expand Down
1 change: 1 addition & 0 deletions src/components/form-elements/Input.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export type InputPropsType = {
withIcon?: boolean,
className?: string,
setInputRef?: (ref: ?HTMLElement) => mixed,
...
};

const Input = (props: InputPropsType) => {
Expand Down
1 change: 1 addition & 0 deletions src/components/form-elements/Radio.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export type RadioPropsType = {
id?: string,
size?: ?RadioSizeType,
className?: string,
...
};

const Radio = (props: RadioPropsType) => {
Expand Down
2 changes: 2 additions & 0 deletions src/components/form-elements/Select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import classnames from 'classnames';
type OptionsPropsType = {
value: string,
text: string,
...
};

export type SelectPropsType = {
Expand All @@ -16,6 +17,7 @@ export type SelectPropsType = {
fullWidth?: boolean,
options?: Array<OptionsPropsType>,
className?: string,
...
};

const Select = (props: SelectPropsType) => {
Expand Down
1 change: 1 addition & 0 deletions src/components/form-elements/Textarea.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export type TextareaPropsType = {
noPadding?: boolean,
autoHeight?: boolean,
className?: string,
...
};

const Textarea = (props: TextareaPropsType) => {
Expand Down
1 change: 1 addition & 0 deletions src/components/header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type PropsType = {
children: Node,
fixed?: boolean,
className?: string,
...
};

const Header = ({children, fixed, className, ...props}: PropsType) => {
Expand Down
1 change: 1 addition & 0 deletions src/components/header/HeaderContainer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type PropsType = {
children: Node,
light?: boolean,
className?: string,
...
};

const HeaderContainer = ({children, light, className, ...props}: PropsType) => {
Expand Down
1 change: 1 addition & 0 deletions src/components/header/HeaderContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ type PropsType = {
children: Node,
autoHeight?: boolean,
className?: string,
...
};

const HeaderContent = ({
Expand Down
1 change: 1 addition & 0 deletions src/components/header/HeaderLeft.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import classnames from 'classnames';
type PropsType = {
children?: Node,
className?: string,
...
};

const HeaderLeft = ({children, className, ...props}: PropsType) => {
Expand Down
1 change: 1 addition & 0 deletions src/components/header/HeaderMiddle.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import classnames from 'classnames';
type PropsType = {
children?: Node,
className?: string,
...
};

const HeaderMiddle = ({children, className, ...props}: PropsType) => {
Expand Down
1 change: 1 addition & 0 deletions src/components/header/HeaderRight.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import classnames from 'classnames';
type PropsType = {
children?: Node,
className?: string,
...
};

const HeaderRight = ({children, className, ...props}: PropsType) => {
Expand Down
1 change: 1 addition & 0 deletions src/components/helpers/RwdHelper.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export const TYPE = {
type PropsType = {
hide: RwdHelperTypeType,
children: Element<*> | string,
...
};

const RwdHelper = ({hide, children}: PropsType) => {
Expand Down
2 changes: 2 additions & 0 deletions src/components/home-button/HomeButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type PropsType = {
type?: LogoModule.LogoTypeType,
href?: string,
className?: string,
...
};

const HomeButton = ({
Expand All @@ -34,6 +35,7 @@ const HomeButton = ({
className
);
const logoPath = `${BASE_URL}${LOGOS[type]}.svg`;
// $FlowFixMe - some icons are missing, we will investigate why
const mobilePath = `${BASE_URL}${ICONS[type]}.svg`;

return (
Expand Down
1 change: 1 addition & 0 deletions src/components/icon-as-button/IconAsButton.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ type IconAsButtonPropsType = {
active?: boolean,
href?: string,
className?: string,
...
};

const IconAsButton = ({
Expand Down
Loading

0 comments on commit dff6af1

Please sign in to comment.