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

boxible

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

boxible - npm Package Compare versions

Comparing version 0.0.5 to 0.1.0

4

dist/index.js

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

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