@tedconf/monterey
Advanced tools
Comparing version 1.1.2-beta.2 to 1.1.2-beta.3
@@ -0,1 +1,3 @@ | ||
## [1.1.2-beta.3](https://github.com/tedconf/monterey/compare/v1.1.2-beta.2...v1.1.2-beta.3) (2019-10-02) | ||
## [1.1.2-beta.2](https://github.com/tedconf/monterey/compare/v1.1.2-beta.1...v1.1.2-beta.2) (2019-10-02) | ||
@@ -2,0 +4,0 @@ |
import * as React from 'react'; | ||
import { ResponsiveValue } from 'styled-system'; | ||
export declare type ButtonSize = 'sm' | 'md' | 'lg'; | ||
export interface ButtonProps<T> { | ||
export declare type ButtonProps<T> = React.HTMLAttributes<any> & { | ||
disabled?: boolean; | ||
size?: ResponsiveValue<ButtonSize>; | ||
variant?: ResponsiveValue<T>; | ||
} | ||
}; | ||
declare const Base: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ButtonProps<any>, object>; | ||
export default Base; |
@@ -80,3 +80,3 @@ /// <reference types="@emotion/core" /> | ||
declare type TextVariant = '1r' | '1b' | '2r' | '2b' | '3' | 3 | '4' | 4 | '5' | 5 | '6' | 6 | '-1r' | '-1b' | '-2r' | '-2u'; | ||
export interface TextProps { | ||
export declare type TextProps = React.HTMLAttributes<any> & { | ||
key?: any; | ||
@@ -86,4 +86,4 @@ as?: any; | ||
color?: string; | ||
} | ||
}; | ||
declare const Text: import("@emotion/styled-base").StyledComponent<import("react").DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, TextProps, object>; | ||
export { Text as default, styles }; |
import * as React from 'react'; | ||
import { SpaceProps, LayoutProps, BorderProps, ShadowProps, ColorProps, FlexboxProps, BackgroundProps, PositionProps } from 'styled-system'; | ||
declare type BaseViewProps = SpaceProps & LayoutProps & BorderProps & ShadowProps & ColorProps & FlexboxProps & BackgroundProps & PositionProps; | ||
export interface ViewProps { | ||
export declare type ViewProps = React.HTMLAttributes<any> & { | ||
as?: any; | ||
sx?: BaseViewProps; | ||
} | ||
}; | ||
declare const View: import("@emotion/styled-base").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, ViewProps, object>; | ||
export default View; |
import Button from './button'; | ||
import { ButtonProps } from './base'; | ||
import Ghost from './ghost'; | ||
import Link from './link'; | ||
export { Button as default, Link, Ghost }; | ||
export { Button as default, ButtonProps, Link, Ghost }; |
@@ -1,8 +0,8 @@ | ||
import Button, { Ghost, Link } from './components/button'; | ||
import View from './components/view'; | ||
import Text from './components/text'; | ||
import Button, { ButtonProps, Ghost, Link } from './components/button'; | ||
import View, { ViewProps } from './components/view'; | ||
import Text, { TextProps } from './components/text'; | ||
import sx from '@styled-system/css'; | ||
import { Logo, Lockup } from './components/branding'; | ||
import ThemeProvider, { useTheme, theme } from './components/theme'; | ||
import ThemeProvider, { Theme, useTheme, theme } from './components/theme'; | ||
import { jsx } from 'theme-ui'; | ||
export { Button, Logo, Lockup, Ghost as GhostButton, Link as LinkButton, View, Text, useTheme, theme, ThemeProvider, ThemeProvider as Monterey, jsx, sx, }; | ||
export { Button, Logo, Lockup, Ghost as GhostButton, Link as LinkButton, View, Text, useTheme, theme, ThemeProvider, ThemeProvider as Monterey, jsx, sx, ButtonProps, ViewProps, TextProps, Theme, }; |
{ | ||
"name": "@tedconf/monterey", | ||
"version": "1.1.2-beta.2", | ||
"version": "1.1.2-beta.3", | ||
"main": "dist/index.min.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.esm.min.js", |
@@ -11,7 +11,7 @@ import * as React from 'react'; | ||
export interface ButtonProps<T> { | ||
export type ButtonProps<T> = React.HTMLAttributes<any> & { | ||
disabled?: boolean; | ||
size?: ResponsiveValue<ButtonSize>; | ||
variant?: ResponsiveValue<T>; | ||
} | ||
}; | ||
@@ -18,0 +18,0 @@ const Base = styled('div', { shouldForwardProp })<ButtonProps<any>>( |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13973823
70377