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

terra-heading

Package Overview
Dependencies
Maintainers
7
Versions
124
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

terra-heading - npm Package Compare versions

Comparing version 4.48.1 to 4.49.0

5

CHANGELOG.md

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

## 4.49.0 - (December 7, 2022)
* Changed
* Minor dependency version bump
## 4.48.1 - (December 14, 2021)

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

48

lib/Heading.js
"use strict";
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
Object.defineProperty(exports, "__esModule", {

@@ -7,31 +8,19 @@ value: true

exports.default = exports.HeadingWeight = exports.HeadingSize = exports.HeadingLevel = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _bind = _interopRequireDefault(require("classnames/bind"));
var _HeadingModule = _interopRequireDefault(require("./Heading.module.scss"));
var _excluded = ["level", "children", "isVisuallyHidden", "isItalic", "size", "weight", "colorClass"];
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _extends() { _extends = Object.assign || 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 _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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
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(_HeadingModule.default);
var cx = _bind.default.bind(_HeadingModule.default);
/* eslint-disable quote-props */
var HeadingLevel = {

@@ -61,3 +50,2 @@ '1': 1,

/* eslint-enable quote-props */
exports.HeadingWeight = HeadingWeight;

@@ -69,3 +57,2 @@ var propTypes = {

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

@@ -75,3 +62,2 @@ * Sets the heading level. One of `1`, `2`, `3`, `4`, `5`, `6`.

level: _propTypes.default.oneOf([1, 2, 3, 4, 5, 6]).isRequired,
/**

@@ -81,3 +67,2 @@ * Sets the text to display in italics.

isItalic: _propTypes.default.bool,
/**

@@ -87,3 +72,2 @@ * Sets the text to appear visually hidden. The text will still be available to screen readers.

isVisuallyHidden: _propTypes.default.bool,
/**

@@ -93,3 +77,2 @@ * Sets the text size. One of `mini`, `tiny`, `small`, `medium`, `large`, `huge`.

size: _propTypes.default.oneOf(['mini', 'tiny', 'small', 'medium', 'large', 'huge']),
/**

@@ -99,3 +82,2 @@ * Sets the text size. One of `200`, `400`, `700`.

weight: _propTypes.default.oneOf([200, 400, 700]),
/**

@@ -114,15 +96,12 @@ * Sets an author defined class, to control the colors of the heading.

};
var Heading = function Heading(_ref) {
var level = _ref.level,
children = _ref.children,
isVisuallyHidden = _ref.isVisuallyHidden,
isItalic = _ref.isItalic,
size = _ref.size,
weight = _ref.weight,
colorClass = _ref.colorClass,
customProps = _objectWithoutProperties(_ref, _excluded);
children = _ref.children,
isVisuallyHidden = _ref.isVisuallyHidden,
isItalic = _ref.isItalic,
size = _ref.size,
weight = _ref.weight,
colorClass = _ref.colorClass,
customProps = _objectWithoutProperties(_ref, _excluded);
var attributes = _objectSpread({}, customProps);
var TextClassNames = cx(['heading', {

@@ -138,3 +117,2 @@ italic: isItalic

};
Heading.propTypes = propTypes;

@@ -141,0 +119,0 @@ Heading.defaultProps = defaultProps;

{
"name": "terra-heading",
"main": "lib/Heading.js",
"version": "4.48.1",
"version": "4.49.0",
"description": "Terra includes styling for all standard headings `h1` through `h6`, as well as styles that match the size of their respective heading.",

@@ -32,3 +32,3 @@ "repository": {

"prop-types": "^15.5.8",
"terra-arrange": "^3.49.0"
"terra-arrange": "^3.50.0"
},

@@ -48,3 +48,3 @@ "scripts": {

},
"gitHead": "7e2b4ffb8f4db441bf7489958f1a5a588a727272"
"gitHead": "421b2643a58e6de628aa789a9cdd0778b0a942a2"
}

@@ -10,3 +10,3 @@ # Terra Heading

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

@@ -13,0 +13,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