Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@arvinxu/layout-kit

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arvinxu/layout-kit - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

4

es/Flexbox.d.ts

@@ -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>;

4

es/Flexbox.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc