mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Merge pull request #32886 from threehams/master
[styled-system]: Add missing justifyItems definition.
This commit is contained in:
2
types/styled-system/index.d.ts
vendored
2
types/styled-system/index.d.ts
vendored
@@ -421,6 +421,8 @@ export interface JustifyItemsProps {
|
||||
justifyItems?: ResponsiveValue<CSS.JustifyItemsProperty>;
|
||||
}
|
||||
|
||||
export function justifyItems(...args: any[]): any;
|
||||
|
||||
export interface JustifyContentProps {
|
||||
/**
|
||||
* The CSS justify-content property defines how the browser distributes space between and around content items
|
||||
|
||||
@@ -43,6 +43,8 @@ import {
|
||||
alignContent,
|
||||
justifyContent,
|
||||
JustifyContentProps,
|
||||
justifyItems,
|
||||
JustifyItemsProps,
|
||||
FlexWrapProps,
|
||||
flexWrap,
|
||||
flexBasis,
|
||||
@@ -253,7 +255,8 @@ interface FlexComponentProps
|
||||
JustifyContentProps,
|
||||
FlexWrapProps,
|
||||
FlexBasisProps,
|
||||
FlexDirectionProps {}
|
||||
FlexDirectionProps,
|
||||
JustifyItemsProps {}
|
||||
const Flex: React.ComponentType<FlexComponentProps> = styled`
|
||||
${alignItems};
|
||||
${alignContent};
|
||||
@@ -261,6 +264,7 @@ const Flex: React.ComponentType<FlexComponentProps> = styled`
|
||||
${flexWrap};
|
||||
${flexBasis};
|
||||
${flexDirection};
|
||||
${justifyItems};
|
||||
`;
|
||||
|
||||
interface GridComponentProps
|
||||
@@ -427,6 +431,10 @@ const test = () => (
|
||||
<Flex flexDirection="column" />
|
||||
<Flex flexDirection={["column"]} />
|
||||
<Flex flexDirection={{ sm: "column" }} />
|
||||
// justifyItems
|
||||
<Flex justifyItems="baseline" />
|
||||
<Flex justifyItems={["baseline", "center"]} />
|
||||
<Flex justifyItems={{ sm: "baseline", md: "center" }} />
|
||||
// gridGap
|
||||
<Grid gridGap="1px" />
|
||||
<Grid gridGap={["1", "2"]} />
|
||||
|
||||
Reference in New Issue
Block a user