From 29db5e426cb068704694d53505f17da22e0d8f8f Mon Sep 17 00:00:00 2001 From: Linda_pp Date: Wed, 13 Apr 2016 00:03:52 +0900 Subject: [PATCH] Add rebass (#8925) * Add type definitions for 'rebass' module https://github.com/jxnblk/rebass * Add tests for rebass.d.ts --- rebass/rebass-tests.tsx | 625 ++++++++++++++++++++++++++++++++++++++++ rebass/rebass.d.ts | 497 ++++++++++++++++++++++++++++++++ 2 files changed, 1122 insertions(+) create mode 100644 rebass/rebass-tests.tsx create mode 100644 rebass/rebass.d.ts diff --git a/rebass/rebass-tests.tsx b/rebass/rebass-tests.tsx new file mode 100644 index 000000000..e933d3c43 --- /dev/null +++ b/rebass/rebass-tests.tsx @@ -0,0 +1,625 @@ +/// + +import * as React from "react"; +import { + Arrow + , Avatar + , Badge + , Banner + , Block + , Blockquote + , Breadcrumbs + , Button + , ButtonCircle + , ButtonOutline + , Card + , CardImage + , Checkbox + , Close + , Container + , Divider + , Donut + , DotIndicator + , Drawer + , Dropdown + , DropdownMenu + , Embed + , Fixed + , Footer + , Heading + , HeadingLink + , InlineForm + , Input + , Label + , LinkBlock + , Media + , Menu + , Message + , NavItem + , Overlay + , PageHeader + , Panel + , PanelFooter + , PanelHeader + , Pre + , Progress + , Radio + , Rating + , Section + , SectionHeader + , Select + , SequenceMap + , SequenceMapStep + , Slider + , Space + , Stat + , Switch + , Table + , Text + , Textarea + , Toolbar + , Tooltip +} from "rebass"; + +interface IconProps extends React.Props { + fill: string; + height: string; + name: string; + width: string; +} + +class Icon extends React.Component { + render() { + return
; + } +} + +class RebassTest extends React.Component<{}, {}> { + render() { + return
+ + + + +
+ + Rebass + + + + 0.2.0 + + + + Pill + + + + Pill + + + + Circular + + + + 4 + +
+ + + + Rebass + + + + + + + Block + + + Generic box for containing things + + + + +
+ In the sixteenth century, a series of common sizes developed among European typographers, and the series survived with little change and few additions for 400 years. […] Use the old familiar scale, or use new scales of your own devising, but limit yourself, at first, to a modest set of distinct and related intervals. +
+ + + +
+ +
+ +
+ + + + + + + + + + + + + + + + + Example Icon component from react-geomicons + +
+ +
+ + Button + + + Group + + +
+ + + + + Card + + + Cats like cards too + + + +
+ +
+ +
+ + +
+ + + + + Container + + +
+ + +
+ +
+ + + 9/16 + + + +
+ +
+ +
+ + + + + + Hello + + + Hi + + + + + +