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

onno

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onno - npm Package Compare versions

Comparing version 0.0.18 to 0.1.0

8

cjs/index.js

@@ -100,3 +100,3 @@ "use strict"

const BREAKPOINTS = ["xs", "sm", "md", "lg", "xl"].map((alias, index) => ({
const BREAKPOINTS = ["all", "sm", "md", "lg", "xl"].map((alias, index) => ({
alias,

@@ -191,4 +191,6 @@ value: index * 360

const breakpoint = get(index, breakpoints)
const isZero = parseInt(breakpoint, 10) === 0
const query = isZero ? null : mq(breakpoint)
const styleValue = resolve([index, value.alias], propsValue)
if (!isNil(styleValue)) pushStyle(styleValue, mq(breakpoint))
if (!isNil(styleValue)) pushStyle(styleValue, query)
})

@@ -731,3 +733,3 @@ }

transform: addPx,
defaults: [12, 14, 16, 20, 24, 32, 48, 64]
defaults: [12, 14, 16, 20, 24, 32, 40, 48, 56, 64]
})

@@ -734,0 +736,0 @@ const fontStyle = style({

@@ -96,3 +96,3 @@ const PX_SCALE = [0, 2, 4, 8, 16, 32, 64, 128, 256, 512]

const BREAKPOINTS = ["xs", "sm", "md", "lg", "xl"].map((alias, index) => ({
const BREAKPOINTS = ["all", "sm", "md", "lg", "xl"].map((alias, index) => ({
alias,

@@ -187,4 +187,6 @@ value: index * 360

const breakpoint = get(index, breakpoints)
const isZero = parseInt(breakpoint, 10) === 0
const query = isZero ? null : mq(breakpoint)
const styleValue = resolve([index, value.alias], propsValue)
if (!isNil(styleValue)) pushStyle(styleValue, mq(breakpoint))
if (!isNil(styleValue)) pushStyle(styleValue, query)
})

@@ -727,3 +729,3 @@ }

transform: addPx,
defaults: [12, 14, 16, 20, 24, 32, 48, 64]
defaults: [12, 14, 16, 20, 24, 32, 40, 48, 56, 64]
})

@@ -730,0 +732,0 @@ const fontStyle = style({

{
"name": "onno",
"license": "MIT",
"version": "0.0.18",
"version": "0.1.0",
"description": "Responsive style props for building themed design systems",

@@ -33,3 +33,3 @@ "homepage": "https://github.com/wagerfield/onno/tree/master/packages/onno#readme",

},
"gitHead": "7a5145c7f092640a61ecd97aeb5570e782c63659"
"gitHead": "e930b2abbf3ee93c4a272aa65e180564ab8fa77b"
}
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