From d50e08515d4436bd2c5341b66c9b76d239e2fcb4 Mon Sep 17 00:00:00 2001 From: Roland Warmerdam Date: Wed, 19 Jun 2019 16:18:37 -0700 Subject: [PATCH] Remove ui-box (#36278) --- notNeededPackages.json | 6 +++ types/ui-box/index.d.ts | 92 ----------------------------------- types/ui-box/package.json | 6 --- types/ui-box/tsconfig.json | 25 ---------- types/ui-box/tslint.json | 3 -- types/ui-box/ui-box-tests.tsx | 27 ---------- 6 files changed, 6 insertions(+), 153 deletions(-) delete mode 100644 types/ui-box/index.d.ts delete mode 100644 types/ui-box/package.json delete mode 100644 types/ui-box/tsconfig.json delete mode 100644 types/ui-box/tslint.json delete mode 100644 types/ui-box/ui-box-tests.tsx diff --git a/notNeededPackages.json b/notNeededPackages.json index 8f9bb75824..0a04d4f24a 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -3210,6 +3210,12 @@ "sourceRepoURL": "https://github.com/Microsoft/TypeScript", "asOfVersion": "2.0.0" }, + { + "libraryName": "ui-box", + "typingsPackageName": "ui-box", + "sourceRepoURL": "https://github.com/segmentio/ui-box", + "asOfVersion": "2.0.0" + }, { "libraryName": "uk.co.workingedge.phonegap.plugin.istablet", "typingsPackageName": "uk.co.workingedge.phonegap.plugin.istablet", diff --git a/types/ui-box/index.d.ts b/types/ui-box/index.d.ts deleted file mode 100644 index ee91dc72ce..0000000000 --- a/types/ui-box/index.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -// Type definitions for ui-box 1.4 -// Project: https://github.com/segmentio/ui-box -// Definitions by: Netto Farah -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.8 - -import { Component, ComponentClass, ReactNode } from "react"; -import * as CSS from "csstype"; - -/** Placeholder type for UI box props */ -type UIBoxProp = string | number | boolean | null | undefined; - -/** A prop defining which */ -type UIBoxIsProp = string | ReactNode; - -type CSSProps = CSS.StandardProperties; - -export interface BoxProps { - /** - * Callback that gets passed a ref to inner DOM node (or component if the is prop is set to a - * React component type). - */ - innerRef?(node: ReactNode): any; - - /** - * Lets you change the underlying element type. - * You can pass either a string to change the DOM element type, or a React component type to - * inherit another component. The component just needs to accept a className prop to work. - * A good example is inheriting the react-router Link component - */ - is?: UIBoxIsProp; - - /** - * The className prop you know and love. Internally it gets enhanced with additional class - * names for the CSS properties you specify. - */ - className?: string; - - /** Set to border - box by default. */ - boxSizing?: UIBoxProp; - - /** Sets marginLeft and marginRight to the same value */ - marginX?: UIBoxProp; - - /** Sets marginTop and marginBottom to the same value */ - marginY?: UIBoxProp; - - /** Sets paddingLeft and paddingRight to the same value */ - paddingX?: UIBoxProp; - - /** Sets paddingTop and paddingBottom to the same value */ - paddingY?: UIBoxProp; - - /** Utility property for easily adding clearfix styles to the element. */ - clearfix?: boolean; - - // accept any other arbitrary prop - [key: string]: any; -} - -export type Box = Component; -export const Box: ComponentClass; -export default Box; - -type CacheEntry = ReadonlyArray<[/** key */ string, /** value */ string]>; - -/** - * Returns a { cache, styles } object which contains the cache entries and rendered styles - * for server rendering. The styles can be output in a