Comparing version 0.0.5 to 0.1.0
@@ -220,6 +220,6 @@ var styled = require('styled-components'); | ||
const DOM_PROPS = ['children', 'onClick', 'type', 'role', 'id', 'tabIndex']; // NOTE: basis must be after flex! Otherwise, flex overrides basis | ||
const OWN_PROPS = ['basis', 'align', 'alignContent', 'direction', 'overflowProp', 'flex', 'justify', 'gap', 'height', 'width', 'fill', 'wrap', 'margin', 'pad', 'padding', 'alignSelf', 'gridArea']; // NOTE: basis must be after flex! Otherwise, flex overrides basis | ||
const Box = styled__default['default'].div.withConfig({ | ||
shouldForwardProp: prop => prop.startsWith('data') || DOM_PROPS.includes(prop) | ||
shouldForwardProp: prop => !OWN_PROPS.includes(prop) | ||
})` | ||
@@ -226,0 +226,0 @@ display: flex; |
@@ -230,6 +230,6 @@ import styled, { css } from 'styled-components'; | ||
const DOM_PROPS = ['children', 'onClick', 'type', 'role', 'id', 'tabIndex']; // NOTE: basis must be after flex! Otherwise, flex overrides basis | ||
const OWN_PROPS = ['basis', 'align', 'alignContent', 'direction', 'overflowProp', 'flex', 'justify', 'gap', 'height', 'width', 'fill', 'wrap', 'margin', 'pad', 'padding', 'alignSelf', 'gridArea']; // NOTE: basis must be after flex! Otherwise, flex overrides basis | ||
const Box = styled.div.withConfig({ | ||
shouldForwardProp: prop => prop.startsWith('data') || DOM_PROPS.includes(prop) | ||
shouldForwardProp: prop => !OWN_PROPS.includes(prop) | ||
})(_t9 || (_t9 = _` | ||
@@ -236,0 +236,0 @@ display: flex; |
@@ -216,6 +216,6 @@ import styled, { css } from 'styled-components'; | ||
const DOM_PROPS = ['children', 'onClick', 'type', 'role', 'id', 'tabIndex']; // NOTE: basis must be after flex! Otherwise, flex overrides basis | ||
const OWN_PROPS = ['basis', 'align', 'alignContent', 'direction', 'overflowProp', 'flex', 'justify', 'gap', 'height', 'width', 'fill', 'wrap', 'margin', 'pad', 'padding', 'alignSelf', 'gridArea']; // NOTE: basis must be after flex! Otherwise, flex overrides basis | ||
const Box = styled.div.withConfig({ | ||
shouldForwardProp: prop => prop.startsWith('data') || DOM_PROPS.includes(prop) | ||
shouldForwardProp: prop => !OWN_PROPS.includes(prop) | ||
})` | ||
@@ -222,0 +222,0 @@ display: flex; |
@@ -223,6 +223,6 @@ (function (global, factory) { | ||
const DOM_PROPS = ['children', 'onClick', 'type', 'role', 'id', 'tabIndex']; // NOTE: basis must be after flex! Otherwise, flex overrides basis | ||
const OWN_PROPS = ['basis', 'align', 'alignContent', 'direction', 'overflowProp', 'flex', 'justify', 'gap', 'height', 'width', 'fill', 'wrap', 'margin', 'pad', 'padding', 'alignSelf', 'gridArea']; // NOTE: basis must be after flex! Otherwise, flex overrides basis | ||
const Box = styled__default['default'].div.withConfig({ | ||
shouldForwardProp: prop => prop.startsWith('data') || DOM_PROPS.includes(prop) | ||
shouldForwardProp: prop => !OWN_PROPS.includes(prop) | ||
})` | ||
@@ -229,0 +229,0 @@ display: flex; |
{ | ||
"name": "boxible", | ||
"version": "0.0.5", | ||
"version": "0.1.0", | ||
"description": "Typescript React component to set flexbox properties on a element", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/nathanstitt/boxible", |
@@ -136,3 +136,6 @@ import styled, { css } from 'styled-components' | ||
const DOM_PROPS = ['children', 'onClick', 'type', 'role', 'id', 'tabIndex'] | ||
const OWN_PROPS = [ | ||
'basis', 'align', 'alignContent', 'direction', 'overflowProp', 'flex', 'justify', | ||
'gap', 'height','width', 'fill', 'wrap', 'margin', 'pad', 'padding', 'alignSelf', 'gridArea', | ||
] | ||
@@ -142,3 +145,3 @@ // NOTE: basis must be after flex! Otherwise, flex overrides basis | ||
.withConfig({ | ||
shouldForwardProp: (prop) => prop.startsWith('data') || DOM_PROPS.includes(prop), | ||
shouldForwardProp: (prop) => !OWN_PROPS.includes(prop) | ||
}) <BoxProps>` | ||
@@ -145,0 +148,0 @@ display: flex; |
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
105833
1360