@hixme-ui/text
Advanced tools
Comparing version 2.0.0-alpha.12 to 3.0.2
@@ -27,2 +27,6 @@ 'use strict'; | ||
var _styledComponents = require('styled-components'); | ||
var _styledComponents2 = _interopRequireDefault(_styledComponents); | ||
var _theme = require('@hixme-ui/theme'); | ||
@@ -44,8 +48,8 @@ | ||
var TextLink = exports.TextLink = _TextBase2.default.withComponent('a'); | ||
var HyperLink = exports.HyperLink = TextLink.extend(_templateObject, function (props) { | ||
return props.color || (0, _themeProps.getTextColor)(props, _theme2.default.textColors.darkBlue); | ||
var HyperLink = exports.HyperLink = (0, _styledComponents2.default)(TextLink)(_templateObject, function (props) { | ||
return props.color || (0, _themeProps.getTextColor)(props, _theme2.default.textColors.primary); | ||
}); | ||
var LabelBase = exports.LabelBase = _TextBase2.default.withComponent('label'); | ||
var Label = exports.Label = LabelBase.extend(_templateObject2, function (props) { | ||
var Label = exports.Label = (0, _styledComponents2.default)(LabelBase)(_templateObject2, function (props) { | ||
return props.color || (0, _themeProps.getTextColor)(props, '#394651'); | ||
@@ -52,0 +56,0 @@ }, function (props) { |
{ | ||
"name": "@hixme-ui/text", | ||
"version": "2.0.0-alpha.12", | ||
"version": "3.0.2", | ||
"description": "hixme-ui text component. For all your communictation needs.", | ||
@@ -81,5 +81,5 @@ "publishConfig": { | ||
"dependencies": { | ||
"@hixme-ui/theme": "^2.0.0-alpha.12", | ||
"@hixme-ui/theme-props": "^2.0.0-alpha.12", | ||
"styled-components": "^2.3.3" | ||
"@hixme-ui/theme": "^3.0.2", | ||
"@hixme-ui/theme-props": "^1.20.7", | ||
"styled-components": "^5.3.1" | ||
}, | ||
@@ -89,3 +89,4 @@ "peerDependencies": { | ||
"react": "~15 || ~16" | ||
} | ||
}, | ||
"gitHead": "b0acaf739551b2cbb6f7fab3816743f197600c0b" | ||
} |
import React from 'react' | ||
import PropTypes from 'prop-types' | ||
import styled from 'styled-components' | ||
import theme from '@hixme-ui/theme' | ||
@@ -12,4 +13,4 @@ import { getTextColor } from '@hixme-ui/theme-props' | ||
export const TextLink = TextBase.withComponent('a') | ||
export const HyperLink = TextLink.extend` | ||
color: ${props => props.color || getTextColor(props, theme.textColors.darkBlue)}; | ||
export const HyperLink = styled(TextLink)` | ||
color: ${props => props.color || getTextColor(props, theme.textColors.primary)}; | ||
cursor: pointer; | ||
@@ -19,3 +20,3 @@ ` | ||
export const LabelBase = TextBase.withComponent('label') | ||
export const Label = LabelBase.extend` | ||
export const Label = styled(LabelBase)` | ||
color: ${props => props.color || getTextColor(props, '#394651')}; | ||
@@ -22,0 +23,0 @@ line-height: ${props => props.lineHeight || '19px'}; |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
26382
275
1
1
+ Added@ampproject/remapping@2.3.0(transitive)
+ Added@babel/code-frame@7.26.2(transitive)
+ Added@babel/compat-data@7.26.5(transitive)
+ Added@babel/core@7.26.0(transitive)
+ Added@babel/generator@7.26.5(transitive)
+ Added@babel/helper-annotate-as-pure@7.25.9(transitive)
+ Added@babel/helper-compilation-targets@7.26.5(transitive)
+ Added@babel/helper-module-imports@7.25.9(transitive)
+ Added@babel/helper-module-transforms@7.26.0(transitive)
+ Added@babel/helper-plugin-utils@7.26.5(transitive)
+ Added@babel/helper-string-parser@7.25.9(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Added@babel/helper-validator-option@7.25.9(transitive)
+ Added@babel/helpers@7.26.0(transitive)
+ Added@babel/parser@7.26.5(transitive)
+ Added@babel/plugin-syntax-jsx@7.25.9(transitive)
+ Added@babel/template@7.25.9(transitive)
+ Added@babel/traverse@7.26.5(transitive)
+ Added@babel/types@7.26.5(transitive)
+ Added@emotion/is-prop-valid@1.3.1(transitive)
+ Added@emotion/memoize@0.9.0(transitive)
+ Added@emotion/stylis@0.8.5(transitive)
+ Added@emotion/unitless@0.7.5(transitive)
+ Added@hixme-ui/theme@3.0.2(transitive)
+ Added@hixme-ui/theme-props@1.20.7(transitive)
+ Added@jridgewell/gen-mapping@0.3.8(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Addedbabel-plugin-styled-components@2.1.4(transitive)
+ Addedbrowserslist@4.24.4(transitive)
+ Addedcaniuse-lite@1.0.30001692(transitive)
+ Addedconvert-source-map@2.0.0(transitive)
+ Addedcss-to-react-native@3.2.0(transitive)
+ Addeddebug@4.4.0(transitive)
+ Addedelectron-to-chromium@1.5.80(transitive)
+ Addedescalade@3.2.0(transitive)
+ Addedgensync@1.0.0-beta.2(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedhoist-non-react-statics@3.3.2(transitive)
+ Addedjsesc@3.1.0(transitive)
+ Addedjson5@2.2.3(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlru-cache@5.1.1(transitive)
+ Addedms@2.1.3(transitive)
+ Addednode-releases@2.0.19(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedpicomatch@2.3.1(transitive)
+ Addedpostcss-value-parser@4.2.0(transitive)
+ Addedreact@19.0.0(transitive)
+ Addedreact-dom@19.0.0(transitive)
+ Addedscheduler@0.25.0(transitive)
+ Addedsemver@6.3.1(transitive)
+ Addedshallowequal@1.1.0(transitive)
+ Addedstyled-components@5.3.11(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedupdate-browserslist-db@1.1.2(transitive)
+ Addedyallist@3.1.1(transitive)
- Removed@hixme-ui/theme@2.2.0(transitive)
- Removed@hixme-ui/theme-props@2.2.0(transitive)
- Removedasap@2.0.6(transitive)
- Removedbase64-js@1.5.1(transitive)
- Removedbuffer@5.7.1(transitive)
- Removedcore-js@1.2.7(transitive)
- Removedcss-to-react-native@2.3.2(transitive)
- Removedencoding@0.1.13(transitive)
- Removedfbjs@0.8.18(transitive)
- Removedhas-flag@1.0.0(transitive)
- Removedhoist-non-react-statics@1.2.0(transitive)
- Removediconv-lite@0.6.3(transitive)
- Removedieee754@1.2.1(transitive)
- Removedis-plain-object@2.0.4(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisobject@3.0.1(transitive)
- Removedisomorphic-fetch@2.2.1(transitive)
- Removednode-fetch@1.7.3(transitive)
- Removedpostcss-value-parser@3.3.1(transitive)
- Removedpromise@7.3.1(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsetimmediate@1.0.5(transitive)
- Removedstyled-components@2.4.1(transitive)
- Removedstylis@3.5.4(transitive)
- Removedsupports-color@3.2.3(transitive)
- Removedua-parser-js@0.7.40(transitive)
- Removedwhatwg-fetch@3.6.20(transitive)
Updated@hixme-ui/theme@^3.0.2
Updatedstyled-components@^5.3.1