Socket
Socket
Sign inDemoInstall

@betty-blocks/option-helpers

Package Overview
Dependencies
Maintainers
23
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@betty-blocks/option-helpers - npm Package Compare versions

Comparing version 27.0.0 to 27.15.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [27.15.0](https://gitlab.betty.services/code/js-mono/compare/v27.14.0...v27.15.0) (2020-06-12)
### Features
* add viewport units to unit option ([f88ca46](https://gitlab.betty.services/code/js-mono/commit/f88ca46))
# [27.0.0](https://gitlab.betty.services/code/js-mono/compare/v26.36.0...v27.0.0) (2020-05-19)

@@ -8,0 +19,0 @@

3

dist/constants.d.ts

@@ -10,2 +10,5 @@ export declare const None = "None";

export declare const Percentage = "%";
export declare const ViewportHeight = "vh";
export declare const ViewportWidth = "vw";
export declare const ViewportMax = "vmax";
export declare const InheritKeyword = "Inherit";

@@ -12,0 +15,0 @@ export declare const TransparentKeyword = "Transparent";

@@ -12,2 +12,5 @@ "use strict";

exports.Percentage = '%';
exports.ViewportHeight = 'vh';
exports.ViewportWidth = 'vw';
exports.ViewportMax = 'vmax';
exports.InheritKeyword = 'Inherit';

@@ -14,0 +17,0 @@ exports.TransparentKeyword = 'Transparent';

2

dist/guards.js

@@ -29,3 +29,3 @@ "use strict";

exports.isUnit = function (size) {
return /^(\d+(\.\d+)?)(px|rem|%)$/gim.test(size);
return /^(\d+(\.\d+)?)(px|rem|%|vh|vw|vmax)$/gim.test(size);
};

@@ -32,0 +32,0 @@ exports.isHex = function (color) {

@@ -16,7 +16,13 @@ export declare type Uuid = string;

export declare type PercentageValue = string;
export declare type ViewportHeightValue = string;
export declare type ViewportWidthValue = string;
export declare type ViewportMaxValue = string;
export declare type PercentageUnit = '%';
export declare type RemUnit = 'rem';
export declare type PixelUnit = 'px';
export declare type SizeUnit = PercentageUnit | RemUnit | PixelUnit;
export declare type SizeValue = RemValue | PercentageValue | PixelValue;
export declare type ViewportHeightUnit = 'vh';
export declare type ViewportWidthUnit = 'vw';
export declare type ViewportMaxUnit = 'vmax';
export declare type SizeUnit = PercentageUnit | RemUnit | PixelUnit | ViewportHeightUnit | ViewportWidthUnit | ViewportMaxUnit;
export declare type SizeValue = RemValue | PercentageValue | PixelValue | ViewportHeightValue | ViewportWidthValue | ViewportMaxValue;
export declare type Size = Magnitude | SizeValue;

@@ -23,0 +29,0 @@ export declare type Sizes = [Size, Size, Size, Size];

@@ -8,2 +8,5 @@ "use strict";

{ name: 'Pixel', value: 'px' },
{ name: 'ViewportHeight', value: 'vh' },
{ name: 'ViewportWidth', value: 'vw' },
{ name: 'ViewportMax', value: 'vmax' },
];

@@ -10,0 +13,0 @@ exports.sizes = [

{
"name": "@betty-blocks/option-helpers",
"description": "Betty Blocks option helpers",
"version": "27.0.0",
"version": "27.15.0",
"main": "dist/index.js",

@@ -48,3 +48,3 @@ "license": "UNLICENSED",

},
"gitHead": "5ce5353e1722a2c37ee1ceb02859896aa93051fe"
"gitHead": "104333ad96805269efc5ade79913679ff9361f59"
}

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