Comparing version 1.7.5 to 1.7.6
@@ -142,5 +142,8 @@ import styled from '@emotion/styled'; | ||
const basisStyle = basis => `flex-basis: ${BASIS[basis] || basis};`; | ||
const basisStyle = basis => `flex-basis: ${BASIS[basis] || basis};`; // min-width and min-height needed because of this | ||
// https://stackoverflow.com/questions/36247140/why-doesnt-flex-item-shrink-past-content-size | ||
const directionStyle = direction => ` | ||
${direction.startsWith('col') ? 'min-width: 0; min-height: 0;' : ''} | ||
flex-direction: ${direction}; | ||
@@ -280,4 +283,2 @@ `; | ||
outline: none; | ||
min-width: 0; | ||
min-height: 0; | ||
${({ | ||
@@ -284,0 +285,0 @@ centered |
@@ -162,5 +162,8 @@ import styled from '@emotion/styled'; | ||
const basisStyle = basis => `flex-basis: ${BASIS[basis] || basis};`; | ||
const basisStyle = basis => `flex-basis: ${BASIS[basis] || basis};`; // min-width and min-height needed because of this | ||
// https://stackoverflow.com/questions/36247140/why-doesnt-flex-item-shrink-past-content-size | ||
const directionStyle = direction => ` | ||
${direction.startsWith('col') ? 'min-width: 0; min-height: 0;' : ''} | ||
flex-direction: ${direction}; | ||
@@ -301,4 +304,2 @@ `; | ||
outline: none; | ||
min-width: 0; | ||
min-height: 0; | ||
${0} | ||
@@ -305,0 +306,0 @@ ${0} |
@@ -149,5 +149,8 @@ (function (global, factory) { | ||
const basisStyle = basis => `flex-basis: ${BASIS[basis] || basis};`; | ||
const basisStyle = basis => `flex-basis: ${BASIS[basis] || basis};`; // min-width and min-height needed because of this | ||
// https://stackoverflow.com/questions/36247140/why-doesnt-flex-item-shrink-past-content-size | ||
const directionStyle = direction => ` | ||
${direction.startsWith('col') ? 'min-width: 0; min-height: 0;' : ''} | ||
flex-direction: ${direction}; | ||
@@ -287,4 +290,2 @@ `; | ||
outline: none; | ||
min-width: 0; | ||
min-height: 0; | ||
${({ | ||
@@ -291,0 +292,0 @@ centered |
{ | ||
"name": "boxible", | ||
"version": "1.7.5", | ||
"version": "1.7.6", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Typescript React component to set flexbox properties on a element", |
@@ -16,3 +16,6 @@ import styled, { CSSObject } from '@emotion/styled' | ||
// min-width and min-height needed because of this | ||
// https://stackoverflow.com/questions/36247140/why-doesnt-flex-item-shrink-past-content-size | ||
const directionStyle = (direction: Direction) => ` | ||
${direction.startsWith('col') ? 'min-width: 0; min-height: 0;' : ''} | ||
flex-direction: ${direction}; | ||
@@ -182,4 +185,2 @@ ` | ||
outline: none; | ||
min-width: 0; | ||
min-height: 0; | ||
${({ centered }) => centered && 'align-items: center; justify-content: center;'} | ||
@@ -186,0 +187,0 @@ ${({ align }) => align && responsiveStyle(align, 'align-items', ALIGN_MAP)} |
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
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
308146
3214