Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

terra-status

Package Overview
Dependencies
Maintainers
7
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terra-status - npm Package Compare versions

Comparing version 4.50.3 to 4.51.0

5

CHANGELOG.md

@@ -5,2 +5,7 @@ # Changelog

## 4.51.0 - (December 7, 2022)
* Changed
* Minor dependency version bump
## 4.50.3 - (July 5, 2022)

@@ -7,0 +12,0 @@

24

lib/Status.js

@@ -7,25 +7,13 @@ "use strict";

exports.default = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _bind = _interopRequireDefault(require("classnames/bind"));
var _terraVisuallyHiddenText = _interopRequireDefault(require("terra-visually-hidden-text"));
var _StatusModule = _interopRequireDefault(require("./Status.module.scss"));
var _excluded = ["children", "visuallyHiddenText", "colorClass"];
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
var cx = _bind.default.bind(_StatusModule.default);
var propTypes = {

@@ -36,3 +24,2 @@ /**

children: _propTypes.default.node.isRequired,
/**

@@ -42,3 +29,2 @@ * Visually hidden text used to convey the meaning of the status indicator to screen readers.

visuallyHiddenText: _propTypes.default.string,
/**

@@ -52,9 +38,7 @@ * Sets an author defined class, to control the colors of the status indicator.

};
var Status = function Status(_ref) {
var children = _ref.children,
visuallyHiddenText = _ref.visuallyHiddenText,
colorClass = _ref.colorClass,
customProps = _objectWithoutProperties(_ref, _excluded);
visuallyHiddenText = _ref.visuallyHiddenText,
colorClass = _ref.colorClass,
customProps = _objectWithoutProperties(_ref, _excluded);
if (process.env.NODE_ENV !== 'production' && !visuallyHiddenText) {

@@ -64,3 +48,2 @@ // eslint-disable-next-line no-console

}
return /*#__PURE__*/_react.default.createElement("div", _extends({}, customProps, {

@@ -72,5 +55,4 @@ className: cx('status', colorClass, customProps.className)

};
Status.propTypes = propTypes;
var _default = Status;
exports.default = _default;
{
"name": "terra-status",
"main": "lib/Status.js",
"version": "4.50.3",
"version": "4.51.0",
"description": "The status component provides a customizable color indictor to signify a specific condition.",

@@ -44,7 +44,7 @@ "repository": {

"prop-types": "^15.5.8",
"terra-arrange": "^3.49.0",
"terra-icon": "^3.48.0",
"terra-visually-hidden-text": "^2.35.0"
"terra-arrange": "^3.50.0",
"terra-icon": "^3.49.0",
"terra-visually-hidden-text": "^2.36.0"
},
"gitHead": "5d980c62d9a2c86597ccd689865c4090fc26c4b0"
"gitHead": "421b2643a58e6de628aa789a9cdd0778b0a942a2"
}

@@ -9,3 +9,3 @@ # Terra Status

- [Getting Started](#getting-started)
- [Documentation](https://engineering.cerner.com/terra-ui/components/terra-status/status/status)
- [Documentation](https://engineering.cerner.com/terra-ui/components/cerner-terra-core-docs/status/about)
- [LICENSE](#license)

@@ -12,0 +12,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc