@hig/text-link
Advanced tools
Comparing version 0.1.0-alpha.16f1fbdc to 0.1.0-alpha.1b33075a
@@ -6,4 +6,11 @@ import React, { Component } from 'react'; | ||
var targets = Object.freeze(["_self", "_blank", "_parent", "_top"]); | ||
var targets = Object.freeze({ | ||
SELF: "_self", | ||
BLANK: "_blank", | ||
PARENT: "_parent", | ||
TOP: "_top" | ||
}); | ||
var availableTargets = Object.freeze(Object.values(targets)); | ||
/** @type {Object.<string, string>} */ | ||
@@ -93,3 +100,3 @@ var types = Object.freeze({ | ||
/** Specify the anchor tag's target */ | ||
target: PropTypes.oneOf(targets), | ||
target: PropTypes.oneOf(availableTargets), | ||
/** Indicates the style of link */ | ||
@@ -130,3 +137,3 @@ type: PropTypes.oneOf(AVAILABLE_TYPES) | ||
"computed": true, | ||
"value": "targets" | ||
"value": "availableTargets" | ||
}, | ||
@@ -133,0 +140,0 @@ "required": false, |
@@ -11,4 +11,11 @@ 'use strict'; | ||
var targets = Object.freeze(["_self", "_blank", "_parent", "_top"]); | ||
var targets = Object.freeze({ | ||
SELF: "_self", | ||
BLANK: "_blank", | ||
PARENT: "_parent", | ||
TOP: "_top" | ||
}); | ||
var availableTargets = Object.freeze(Object.values(targets)); | ||
/** @type {Object.<string, string>} */ | ||
@@ -98,3 +105,3 @@ var types = Object.freeze({ | ||
/** Specify the anchor tag's target */ | ||
target: PropTypes.oneOf(targets), | ||
target: PropTypes.oneOf(availableTargets), | ||
/** Indicates the style of link */ | ||
@@ -135,3 +142,3 @@ type: PropTypes.oneOf(AVAILABLE_TYPES) | ||
"computed": true, | ||
"value": "targets" | ||
"value": "availableTargets" | ||
}, | ||
@@ -138,0 +145,0 @@ "required": false, |
{ | ||
"name": "@hig/text-link", | ||
"version": "0.1.0-alpha.16f1fbdc", | ||
"version": "0.1.0-alpha.1b33075a", | ||
"description": "HIG Text Link", | ||
@@ -25,6 +25,6 @@ "author": "Autodesk Inc.", | ||
"devDependencies": { | ||
"@hig/babel-preset": "0.2.0-alpha.16f1fbdc", | ||
"@hig/eslint-config": "0.2.0-alpha.16f1fbdc", | ||
"@hig/scripts": "0.2.0-alpha.16f1fbdc", | ||
"@hig/styles": "0.1.0-alpha.16f1fbdc" | ||
"@hig/babel-preset": "0.2.0-alpha.1b33075a", | ||
"@hig/eslint-config": "0.2.0-alpha.1b33075a", | ||
"@hig/scripts": "0.2.0-alpha.1b33075a", | ||
"@hig/styles": "0.2.0-alpha.1b33075a" | ||
}, | ||
@@ -31,0 +31,0 @@ "scripts": { |
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
14224
327