@arvinxu/layout-kit
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -13,4 +13,8 @@ import type { DetailedHTMLProps, FC, HTMLAttributes } from 'react'; | ||
padding?: string | number | CommonSpaceNumber; | ||
/** | ||
* 是否隐藏内容 | ||
*/ | ||
hidden?: boolean; | ||
} | ||
export declare type FlexboxProps = IFlexbox & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>; | ||
export declare const Flexbox: FC<FlexboxProps>; |
@@ -11,3 +11,5 @@ var _templateObject; | ||
}; | ||
})(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: ", ";\n justify-content: ", ";\n align-items: ", ";\n\n width: ", ";\n height: ", ";\n\n padding: ", ";\n\n > *:not(:last-child) {\n margin-right: ", ";\n margin-bottom: ", ";\n }\n"])), function (props) { | ||
})(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n // \u662F\u5426\u663E\u793A\n display: ", ";\n\n flex-direction: ", ";\n justify-content: ", ";\n align-items: ", ";\n\n width: ", ";\n height: ", ";\n\n padding: ", ";\n\n > *:not(:last-child) {\n margin-right: ", ";\n margin-bottom: ", ";\n }\n"])), function (props) { | ||
return props.hidden ? 'none' : 'flex'; | ||
}, function (props) { | ||
return getFlexDirection(props.direction, props.horizontal); | ||
@@ -14,0 +16,0 @@ }, function (props) { |
@@ -13,4 +13,8 @@ import type { DetailedHTMLProps, FC, HTMLAttributes } from 'react'; | ||
padding?: string | number | CommonSpaceNumber; | ||
/** | ||
* 是否隐藏内容 | ||
*/ | ||
hidden?: boolean; | ||
} | ||
export declare type FlexboxProps = IFlexbox & DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>; | ||
export declare const Flexbox: FC<FlexboxProps>; |
@@ -22,3 +22,5 @@ "use strict"; | ||
}; | ||
})(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: ", ";\n justify-content: ", ";\n align-items: ", ";\n\n width: ", ";\n height: ", ";\n\n padding: ", ";\n\n > *:not(:last-child) {\n margin-right: ", ";\n margin-bottom: ", ";\n }\n"])), function (props) { | ||
})(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n // \u662F\u5426\u663E\u793A\n display: ", ";\n\n flex-direction: ", ";\n justify-content: ", ";\n align-items: ", ";\n\n width: ", ";\n height: ", ";\n\n padding: ", ";\n\n > *:not(:last-child) {\n margin-right: ", ";\n margin-bottom: ", ";\n }\n"])), function (props) { | ||
return props.hidden ? 'none' : 'flex'; | ||
}, function (props) { | ||
return (0, _utils.getFlexDirection)(props.direction, props.horizontal); | ||
@@ -25,0 +27,0 @@ }, function (props) { |
{ | ||
"name": "@arvinxu/layout-kit", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"files": [ | ||
@@ -5,0 +5,0 @@ "lib", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
10314
187
0