diff --git a/notNeededPackages.json b/notNeededPackages.json index c47aeb45a6..496be1f6b9 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -5802,6 +5802,12 @@ "sourceRepoURL": "https://github.com/winstonjs/winston.git", "asOfVersion": "2.4.4" }, + { + "libraryName": "wix-style-react", + "typingsPackageName": "wix-style-react", + "sourceRepoURL": "https://github.com/wix/wix-style-react", + "asOfVersion": "7.47.1" + }, { "libraryName": "wolfy87-eventemitter", "typingsPackageName": "wolfy87-eventemitter", diff --git a/types/wix-style-react/BaseComponents.d.ts b/types/wix-style-react/BaseComponents.d.ts deleted file mode 100644 index d07a81d48e..0000000000 --- a/types/wix-style-react/BaseComponents.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import * as React from 'react'; - -export interface WixComponentProps { - dataHook?: string; - styles?: string; -} - -export default class WixComponent extends React.PureComponent {} diff --git a/types/wix-style-react/Button.d.ts b/types/wix-style-react/Button.d.ts deleted file mode 100644 index 62b68e44e8..0000000000 --- a/types/wix-style-react/Button.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import * as React from 'react'; - -export interface ButtonProps { - as?: any; - className?: string; - skin?: ButtonSkin; - priority?: ButtonPriority; - size?: ButtonSize; - onClick?: React.MouseEventHandler; - fullWidth?: boolean; - suffixIcon?: React.ReactElement; - prefixIcon?: React.ReactElement; - disabled?: boolean; - dataHook?: string; -} - -export default class Button extends React.Component {} - -export type ButtonSkin = - | 'standard' - | 'inverted' - | 'destructive' - | 'premium' - | 'dark' - | 'light' - | 'transparent' - | 'premium-light'; - -export type ButtonPriority = 'primary' | 'secondary'; - -export type ButtonSize = 'tiny' | 'small' | 'medium' | 'large'; diff --git a/types/wix-style-react/Loader.d.ts b/types/wix-style-react/Loader.d.ts deleted file mode 100644 index fdc7dad7fb..0000000000 --- a/types/wix-style-react/Loader.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import * as React from 'react'; -import WixComponent, { WixComponentProps } from './BaseComponents'; - -export interface LoaderProps extends WixComponentProps { - size?: LoaderSize; - color?: LoaderColor; - text?: React.ReactNode; - status?: LoaderStatus; - statusMessage?: string; - shouldLoadAsync?: boolean; -} - -export default class Loader extends WixComponent {} - -export type LoaderSize = 'tiny' | 'small' | 'medium' | 'large'; - -export type LoaderColor = 'blue' | 'white'; - -export type LoaderStatus = 'loading' | 'success' | 'error'; diff --git a/types/wix-style-react/Text.d.ts b/types/wix-style-react/Text.d.ts deleted file mode 100644 index 97a3f1ba89..0000000000 --- a/types/wix-style-react/Text.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import * as React from 'react'; - -export interface TextProps { - showTooltip?: boolean; - ellipsis?: boolean; - tagName?: string; - className?: string; - size?: TextSize; - secondary?: boolean; - skin?: TextSkin; - light?: boolean; - weight?: TextWeight; -} - -declare const Text: React.SFC; -export default Text; - -export type TextSize = 'tiny' | 'small' | 'medium'; - -export type TextSkin = - | 'standard' - | 'error' - | 'success' - | 'premium' - | 'disabled'; - -export type TextWeight = 'thin' | 'normal' | 'bold'; diff --git a/types/wix-style-react/index.d.ts b/types/wix-style-react/index.d.ts deleted file mode 100644 index e34adfbc1e..0000000000 --- a/types/wix-style-react/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -// Type definitions for wix-style-react 6.17 -// Project: https://github.com/wix/wix-style-react -// Definitions by: Gilad Segal -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 3.5 - -export { default as Button, ButtonProps } from './Button'; -export { default as Text, TextProps } from './Text'; -export { default as WixComponent, WixComponentProps } from './BaseComponents'; -export { default as Loader, LoaderProps } from './Loader'; diff --git a/types/wix-style-react/test/BaseComponents-tests.tsx b/types/wix-style-react/test/BaseComponents-tests.tsx deleted file mode 100644 index 01938fc3be..0000000000 --- a/types/wix-style-react/test/BaseComponents-tests.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import * as React from 'react'; -import WixComponent from 'wix-style-react/BaseComponents'; - -function WixComponentWithMandatoryProps() { - return ; -} - -function WixComponentWithAllProps() { - return ; -} diff --git a/types/wix-style-react/test/Button-tests.tsx b/types/wix-style-react/test/Button-tests.tsx deleted file mode 100644 index 3a961a6d7d..0000000000 --- a/types/wix-style-react/test/Button-tests.tsx +++ /dev/null @@ -1,24 +0,0 @@ -import * as React from 'react'; -import Button from 'wix-style-react/Button'; - -function ButtonWithMandatoryProps() { - return