@tds/core-text
Advanced tools
Comparing version 2.0.6 to 3.0.0
@@ -6,2 +6,18 @@ # Change Log | ||
# [3.0.0](https://github.com/telusdigital/tds/compare/@tds/core-text@2.0.6...@tds/core-text@3.0.0) (2019-11-18) | ||
### Features | ||
* **core-text:** remove text sup component ([0d32241](https://github.com/telusdigital/tds/commit/0d32241)) | ||
### BREAKING CHANGES | ||
* **core-text:** Remove text.sup component | ||
## [2.0.6](https://github.com/telusdigital/tds/compare/@tds/core-text@2.0.5...@tds/core-text@2.0.6) (2019-10-09) | ||
@@ -8,0 +24,0 @@ |
@@ -77,37 +77,2 @@ 'use strict'; | ||
/* eslint-disable import/prefer-default-export */ | ||
var deprecate = function deprecate(componentName, message) { | ||
if (process.env.NODE_ENV === 'production') { | ||
return; | ||
} | ||
console.warn("[TDS] [Deprecate] ".concat(componentName, ": ").concat(message)); // eslint-disable-line no-console | ||
}; | ||
var StyledTextSup = styled.sup.withConfig({ | ||
displayName: "TextSup__StyledTextSup", | ||
componentId: "sc-1jkhnsx-0" | ||
})(typography.sup); | ||
/** | ||
* @deprecated Superscript text an as HTML `<sup>` element. | ||
* | ||
* _This component can only be accessed as a name-spaced component: `Text.Sup`._ | ||
*/ | ||
var TextSup = function TextSup(_ref) { | ||
var children = _ref.children, | ||
rest = objectWithoutProperties(_ref, ["children"]); | ||
deprecate('@tds/core-text', 'The Text.Sup component is deprecated. Please use a standard HTML sup element instead.'); | ||
return React.createElement(StyledTextSup, utilHelpers.safeRest(rest), children); | ||
}; | ||
TextSup.propTypes = { | ||
/** | ||
* The text. | ||
*/ | ||
children: PropTypes.node.isRequired | ||
}; | ||
TextSup.displayName = 'Text.Sup'; | ||
var textColor = function textColor(_ref) { | ||
@@ -198,5 +163,4 @@ var invert = _ref.invert; | ||
}; | ||
Text.Sup = TextSup; | ||
exports.StyledText = StyledText; | ||
exports.default = Text; |
@@ -72,37 +72,2 @@ import React from 'react'; | ||
/* eslint-disable import/prefer-default-export */ | ||
var deprecate = function deprecate(componentName, message) { | ||
if (process.env.NODE_ENV === 'production') { | ||
return; | ||
} | ||
console.warn("[TDS] [Deprecate] ".concat(componentName, ": ").concat(message)); // eslint-disable-line no-console | ||
}; | ||
var StyledTextSup = styled.sup.withConfig({ | ||
displayName: "TextSup__StyledTextSup", | ||
componentId: "sc-1jkhnsx-0" | ||
})(sup); | ||
/** | ||
* @deprecated Superscript text an as HTML `<sup>` element. | ||
* | ||
* _This component can only be accessed as a name-spaced component: `Text.Sup`._ | ||
*/ | ||
var TextSup = function TextSup(_ref) { | ||
var children = _ref.children, | ||
rest = objectWithoutProperties(_ref, ["children"]); | ||
deprecate('@tds/core-text', 'The Text.Sup component is deprecated. Please use a standard HTML sup element instead.'); | ||
return React.createElement(StyledTextSup, safeRest(rest), children); | ||
}; | ||
TextSup.propTypes = { | ||
/** | ||
* The text. | ||
*/ | ||
children: PropTypes.node.isRequired | ||
}; | ||
TextSup.displayName = 'Text.Sup'; | ||
var textColor = function textColor(_ref) { | ||
@@ -193,5 +158,4 @@ var invert = _ref.invert; | ||
}; | ||
Text.Sup = TextSup; | ||
export default Text; | ||
export { StyledText }; |
{ | ||
"name": "@tds/core-text", | ||
"version": "2.0.6", | ||
"version": "3.0.0", | ||
"description": "Inline text", | ||
@@ -33,3 +33,3 @@ "main": "index.cjs.js", | ||
}, | ||
"gitHead": "e5c16dece2469304d5e6f4fc380c70f1fc071e13" | ||
"gitHead": "deb40dcfee2a07e20f24ac611d6dc906d61725bd" | ||
} |
@@ -8,4 +8,2 @@ import React from 'react' | ||
import TextSup from './TextSup/TextSup' | ||
const textColor = ({ invert }) => (invert ? typography.invertedColor : typography.color) | ||
@@ -67,4 +65,2 @@ const textInheritColor = ({ inheritColor }) => (inheritColor ? { color: 'inherit' } : undefined) | ||
Text.Sup = TextSup | ||
export default Text |
@@ -29,4 +29,2 @@ ### Minimal usage | ||
The `<Text.Sup>` component is deprecated. Use a standard HTML `<sup>` element instead. | ||
```jsx | ||
@@ -33,0 +31,0 @@ <Paragraph> |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
0
19474
13
376