@therms/atalaya
Advanced tools
Comparing version 1.4.0-beta.1 to 1.4.0-beta.2
@@ -0,1 +1,16 @@ | ||
# [1.4.0-beta.2](http://bitbucket.org/thermsio/atalaya/compare/v1.4.0-beta.1...v1.4.0-beta.2) (2021-02-25) | ||
### Bug Fixes | ||
* **CORE-1244:** make Card background optional prop ([3efc6a0](http://bitbucket.org/thermsio/atalaya/commits/3efc6a02af9524d382355eb5486d9f969f8bdb78)) | ||
### Features | ||
* **CORE-1244:** add background prop to Card ([bb0fe4c](http://bitbucket.org/thermsio/atalaya/commits/bb0fe4cb5a1a1d34827a9ace6adb270e7e6d5073)) | ||
* **CORE-1244:** add fillY prop to columns ([81b3b47](http://bitbucket.org/thermsio/atalaya/commits/81b3b470439b156f2cee55b42ffa9cddcf1e6afb)) | ||
* **CORE-1244:** add horizontal and vertical props to margin and padding ([cbfcf15](http://bitbucket.org/thermsio/atalaya/commits/cbfcf151c861b59ce37316a4b5f98f2505db1455)) | ||
* **CORE-1244:** add vertical alignment to stack ([d4de3ae](http://bitbucket.org/thermsio/atalaya/commits/d4de3ae8406c3a61526205ee6db9a47b2a3dcc41)) | ||
# [1.4.0-beta.1](http://bitbucket.org/thermsio/atalaya/compare/v1.3.0...v1.4.0-beta.1) (2021-02-24) | ||
@@ -2,0 +17,0 @@ |
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Background } from '../../../layout/types'; | ||
interface CardProps { | ||
background?: Background; | ||
children: React.ReactNode; | ||
} | ||
declare const Card: { | ||
({ children }: CardProps): React.ReactElement; | ||
({ background, children, }: CardProps): React.ReactElement; | ||
propTypes: { | ||
@@ -9,0 +11,0 @@ children: PropTypes.Validator<string | number | boolean | {} | PropTypes.ReactElementLike | PropTypes.ReactNodeArray>; |
@@ -7,5 +7,7 @@ import { Alignment, BaseLayoutProps, Justification, Spacing } from '../../types'; | ||
alignY?: Array<Alignment> | Alignment; | ||
/** Should height stretch to fill container */ | ||
fillY?: Array<boolean> | boolean; | ||
/** Space between children */ | ||
space?: Array<Spacing> | Spacing; | ||
} | ||
export declare const makeColumnClasses: ({ alignX, alignY, space, ...restOfProps }: ColumnClassProps) => string; | ||
export declare const makeColumnClasses: ({ alignX, alignY, fillY, space, ...restOfProps }: ColumnClassProps) => string; |
@@ -1,5 +0,7 @@ | ||
import { Alignment, BaseLayoutProps, Spacing } from '../../types'; | ||
import { Alignment, BaseLayoutProps, Justification, Spacing } from '../../types'; | ||
export interface StackClassProps extends BaseLayoutProps { | ||
/** Horizontal alignment */ | ||
alignX?: Array<Alignment> | Alignment; | ||
/** Horizontal alignment */ | ||
alignY?: Array<Justification> | Justification; | ||
/** Should height stretch to fill container */ | ||
@@ -10,2 +12,2 @@ fillY?: Array<boolean> | boolean; | ||
} | ||
export declare const makeStackClasses: ({ alignX, fillY, space, ...restOfProps }: StackClassProps) => string; | ||
export declare const makeStackClasses: ({ alignX, alignY, fillY, space, ...restOfProps }: StackClassProps) => string; |
@@ -27,2 +27,4 @@ export declare type Alignment = 'baseline' | 'center' | 'end' | 'start' | 'stretch'; | ||
marginTop?: Array<Spacing> | Spacing; | ||
marginX?: Array<Spacing> | Spacing; | ||
marginY?: Array<Spacing> | Spacing; | ||
padding?: Array<Spacing> | Spacing; | ||
@@ -33,2 +35,4 @@ paddingBottom?: Array<Spacing> | Spacing; | ||
paddingTop?: Array<Spacing> | Spacing; | ||
paddingX?: Array<Spacing> | Spacing; | ||
paddingY?: Array<Spacing> | Spacing; | ||
} |
import { BaseLayoutProps } from '../types'; | ||
export declare const makeBaseLayoutClasses: (props: BaseLayoutProps) => string; | ||
export declare const makeFillValues: (fillY: boolean | Array<boolean>) => string | undefined; |
{ | ||
"name": "@therms/atalaya", | ||
"version": "1.4.0-beta.1", | ||
"version": "1.4.0-beta.2", | ||
"main": "./lib/cjs.js", | ||
@@ -5,0 +5,0 @@ "module": "./lib/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
169503
2618