@cmsgov/design-system
Advanced tools
Comparing version 2.0.4 to 2.1.0
@@ -87,2 +87,5 @@ "use strict"; | ||
choiceProps.type = _this2.props.type; | ||
choiceProps.inputClassName = (0, _classnames.default)(choiceProps.inputClassName, { | ||
'ds-c-choice--error': _this2.props.errorMessage | ||
}); | ||
choiceProps.disabled = choiceProps.disabled || _this2.props.disabled; // Individual choices can be disabled as well as the entire field | ||
@@ -89,0 +92,0 @@ |
@@ -176,2 +176,14 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "Tooltip", { | ||
enumerable: true, | ||
get: function get() { | ||
return _Tooltip.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "TooltipIcon", { | ||
enumerable: true, | ||
get: function get() { | ||
return _TooltipIcon.default; | ||
} | ||
}); | ||
Object.defineProperty(exports, "VerticalNav", { | ||
@@ -236,2 +248,6 @@ enumerable: true, | ||
var _Tooltip = _interopRequireDefault(require("./Tooltip/Tooltip")); | ||
var _TooltipIcon = _interopRequireDefault(require("./Tooltip/TooltipIcon")); | ||
var _VerticalNav = _interopRequireDefault(require("./VerticalNav/VerticalNav")); | ||
@@ -238,0 +254,0 @@ |
@@ -73,2 +73,5 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); } | ||
choiceProps.type = _this2.props.type; | ||
choiceProps.inputClassName = classNames(choiceProps.inputClassName, { | ||
'ds-c-choice--error': _this2.props.errorMessage | ||
}); | ||
choiceProps.disabled = choiceProps.disabled || _this2.props.disabled; // Individual choices can be disabled as well as the entire field | ||
@@ -75,0 +78,0 @@ |
@@ -30,2 +30,4 @@ /** | ||
export { default as TextField, unmaskValue } from './TextField/TextField'; | ||
export { default as Tooltip } from './Tooltip/Tooltip'; | ||
export { default as TooltipIcon } from './Tooltip/TooltipIcon'; | ||
export { default as VerticalNav } from './VerticalNav/VerticalNav'; |
@@ -9,10 +9,3 @@ import * as React from 'react'; | ||
// Omit props that we override with values from the ChoiceList | ||
type OmitChoiceProp = | ||
| 'inversed' | ||
| 'name' | ||
| 'onBlur' | ||
| 'onChange' | ||
| 'size' | ||
| 'type' | ||
| 'inputRef'; | ||
type OmitChoiceProp = 'inversed' | 'name' | 'onBlur' | 'onChange' | 'size' | 'type' | 'inputRef'; | ||
export type ChoiceProps = Omit<ChoiceComponentProps, OmitChoiceProp>; | ||
@@ -19,0 +12,0 @@ |
{ | ||
"name": "@cmsgov/design-system", | ||
"version": "2.0.4", | ||
"version": "2.1.0", | ||
"publishConfig": { | ||
@@ -21,8 +21,12 @@ "access": "public", | ||
"dependencies": { | ||
"@popperjs/core": "^2.4.4", | ||
"classnames": "^2.2.5", | ||
"downshift": "^3.2.10", | ||
"ev-emitter": "^1.1.1", | ||
"focus-trap-react": "^6.0.0", | ||
"lodash.uniqueid": "^4.0.1", | ||
"prop-types": "^15.7.2", | ||
"react-aria-modal": "^2.11.1" | ||
"react-aria-modal": "^2.11.1", | ||
"react-transition-group": "^2.9.0", | ||
"uswds": "^2.8.1" | ||
}, | ||
@@ -33,3 +37,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "3562d381aa7bb78fe544cd42ddc6afcda3b18a32" | ||
"gitHead": "b6e50724fcae619066a4c30f436981e21d44ddae" | ||
} |
@@ -40,2 +40,5 @@ import Choice from './Choice'; | ||
choiceProps.type = this.props.type; | ||
choiceProps.inputClassName = classNames(choiceProps.inputClassName, { | ||
'ds-c-choice--error': this.props.errorMessage, | ||
}); | ||
choiceProps.disabled = choiceProps.disabled || this.props.disabled; // Individual choices can be disabled as well as the entire field | ||
@@ -42,0 +45,0 @@ choiceProps.inputRef = (ref) => { |
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
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
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
1803005
284
16929
12
+ Added@popperjs/core@^2.4.4
+ Addedfocus-trap-react@^6.0.0
+ Addeduswds@^2.8.1
+ Added@popperjs/core@2.11.8(transitive)
+ Addedclasslist-polyfill@1.2.0(transitive)
+ Addeddom-helpers@3.4.0(transitive)
+ Addeddomready@1.0.8(transitive)
+ Addedelement-closest@2.0.2(transitive)
+ Addedfocus-trap@4.0.2(transitive)
+ Addedfocus-trap-react@6.0.0(transitive)
+ Addedkeyboardevent-key-polyfill@1.1.0(transitive)
+ Addedmatches-selector@1.2.0(transitive)
+ Addedreact-lifecycles-compat@3.0.4(transitive)
+ Addedreact-transition-group@2.9.0(transitive)
+ Addedreceptor@1.0.0(transitive)
+ Addedresolve-id-refs@0.1.0(transitive)
+ Addedtabbable@3.1.2(transitive)
+ Addeduswds@2.14.0(transitive)
+ Addedxtend@4.0.2(transitive)