@betty-blocks/option-helpers
Advanced tools
Comparing version 27.0.0 to 27.15.0
@@ -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 @@ |
@@ -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'; |
@@ -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
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
55545
825