@tds/util-helpers
Advanced tools
Comparing version 1.5.1 to 1.6.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.6.0](https://github.com/telus/tds-core/compare/@tds/util-helpers@1.5.1...@tds/util-helpers@1.6.0) (2021-01-15) | ||
### Features | ||
* **util-helpers:** add pixelToRem() ([39b8594](https://github.com/telus/tds-core/commit/39b8594c365a62c75bb3e27d65687b75c35945fe)) | ||
## [1.5.1](https://github.com/telus/tds-core/compare/@tds/util-helpers@1.5.0...@tds/util-helpers@1.5.1) (2020-09-11) | ||
@@ -8,0 +19,0 @@ |
@@ -76,2 +76,8 @@ 'use strict'; | ||
var BASE_FONT_SIZE = 16; | ||
var pixelToRem = function pixelToRem(pixel) { | ||
return "".concat(pixel / BASE_FONT_SIZE, "rem"); | ||
}; | ||
var DependentIconSizeContext = react.createContext({}); | ||
@@ -257,4 +263,5 @@ | ||
exports.handleResponsiveStyles = handleResponsiveStyles; | ||
exports.pixelToRem = pixelToRem; | ||
exports.prepareArray = prepareArray; | ||
exports.safeRest = safeRest; | ||
exports.uniqueId = uniqueId; |
@@ -72,2 +72,8 @@ import { createContext } from 'react'; | ||
var BASE_FONT_SIZE = 16; | ||
var pixelToRem = function pixelToRem(pixel) { | ||
return "".concat(pixel / BASE_FONT_SIZE, "rem"); | ||
}; | ||
var DependentIconSizeContext = createContext({}); | ||
@@ -248,2 +254,2 @@ | ||
export { DependentIconSizeContext, generateResponsiveStyles, generateStyles, getCopy, handleResponsiveStyles, prepareArray, safeRest, uniqueId }; | ||
export { DependentIconSizeContext, generateResponsiveStyles, generateStyles, getCopy, handleResponsiveStyles, pixelToRem, prepareArray, safeRest, uniqueId }; |
@@ -5,2 +5,3 @@ /* eslint-disable import/prefer-default-export */ | ||
export { default as safeRest } from './safeRest' | ||
export { default as pixelToRem } from './pixelToRem' | ||
export { default as DependentIconSizeContext } from './DependentIconSizeContext' | ||
@@ -7,0 +8,0 @@ export { |
{ | ||
"name": "@tds/util-helpers", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"description": "TDS helpers", | ||
@@ -26,3 +26,3 @@ "main": "index.cjs.js", | ||
}, | ||
"gitHead": "75cca2ccb763f7a4d8834024e2e64d0ad88f0981" | ||
"gitHead": "7e200d67011651c14f894191e0667af9817d2377" | ||
} |
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
34272
19
968