terra-arrange
Advanced tools
Comparing version 3.49.0 to 3.50.0
@@ -5,2 +5,7 @@ # Changelog | ||
## 3.50.0 - (December 7, 2022) | ||
* Changed | ||
* Minor dependency version bump | ||
## 3.49.0 - (September 28, 2021) | ||
@@ -7,0 +12,0 @@ |
"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", { | ||
value: true | ||
}); | ||
exports.AlignmentTypes = exports.default = void 0; | ||
exports.default = exports.AlignmentTypes = void 0; | ||
var _react = _interopRequireDefault(require("react")); | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var _bind = _interopRequireDefault(require("classnames/bind")); | ||
var _ArrangeModule = _interopRequireDefault(require("./Arrange.module.scss")); | ||
var _excluded = ["fitStart", "fill", "fitEnd", "align", "alignFitStart", "alignFill", "alignFitEnd", "fitStartAttributes", "fillAttributes", "fitEndAttributes"]; | ||
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 ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (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 = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { 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 _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) { 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 AlignmentTypes = { | ||
@@ -38,5 +28,3 @@ CENTER: 'center', | ||
exports.AlignmentTypes = AlignmentTypes; | ||
var cx = _bind.default.bind(_ArrangeModule.default); | ||
var propTypes = { | ||
@@ -47,3 +35,2 @@ /** | ||
fitStart: _propTypes.default.element, | ||
/** | ||
@@ -53,3 +40,2 @@ * The content to display in the body of the fill. | ||
fill: _propTypes.default.element.isRequired, | ||
/** | ||
@@ -59,3 +45,2 @@ * The content to display in the body of the fitEnd. | ||
fitEnd: _propTypes.default.element, | ||
/** | ||
@@ -65,3 +50,2 @@ * The vertical orientation of all three containers. It will override the alignment of alignFitStart, alignFill and alignFitEnd if given. One of: `center`, `bottom`, `stretch`. | ||
align: _propTypes.default.oneOf(['center', 'bottom', 'stretch']), | ||
/** | ||
@@ -71,3 +55,2 @@ * The vertical orientation of fitStart. One of: `center`, `bottom`, `stretch`. | ||
alignFitStart: _propTypes.default.oneOf(['center', 'bottom', 'stretch']), | ||
/** | ||
@@ -77,3 +60,2 @@ * The vertical orientation of fitEnd. One of: `center`, `bottom`, `stretch`. | ||
alignFitEnd: _propTypes.default.oneOf(['center', 'bottom', 'stretch']), | ||
/** | ||
@@ -83,3 +65,2 @@ * The vertical orientation of fill. One of: `center`, `bottom`, `stretch`. | ||
alignFill: _propTypes.default.oneOf(['center', 'bottom', 'stretch']), | ||
/** | ||
@@ -90,3 +71,2 @@ * The attributes to be set on the fitStart wrapper element | ||
fitStartAttributes: _propTypes.default.object, | ||
/** | ||
@@ -97,3 +77,2 @@ * The attributes to be set on the fill wrapper element | ||
fillAttributes: _propTypes.default.object, | ||
/** | ||
@@ -105,22 +84,17 @@ * The attributes to be set on the fitEnd wrapper element | ||
}; | ||
var Arrange = function Arrange(_ref) { | ||
var fitStart = _ref.fitStart, | ||
fill = _ref.fill, | ||
fitEnd = _ref.fitEnd, | ||
align = _ref.align, | ||
alignFitStart = _ref.alignFitStart, | ||
alignFill = _ref.alignFill, | ||
alignFitEnd = _ref.alignFitEnd, | ||
fitStartAttributes = _ref.fitStartAttributes, | ||
fillAttributes = _ref.fillAttributes, | ||
fitEndAttributes = _ref.fitEndAttributes, | ||
customProps = _objectWithoutProperties(_ref, _excluded); | ||
fill = _ref.fill, | ||
fitEnd = _ref.fitEnd, | ||
align = _ref.align, | ||
alignFitStart = _ref.alignFitStart, | ||
alignFill = _ref.alignFill, | ||
alignFitEnd = _ref.alignFitEnd, | ||
fitStartAttributes = _ref.fitStartAttributes, | ||
fillAttributes = _ref.fillAttributes, | ||
fitEndAttributes = _ref.fitEndAttributes, | ||
customProps = _objectWithoutProperties(_ref, _excluded); | ||
var fitStartProps = _objectSpread({}, fitStartAttributes); | ||
var fillProps = _objectSpread({}, fillAttributes); | ||
var fitEndProps = _objectSpread({}, fitEndAttributes); | ||
return /*#__PURE__*/_react.default.createElement("div", _extends({}, customProps, { | ||
@@ -136,5 +110,4 @@ className: cx('arrange', customProps.className) | ||
}; | ||
Arrange.propTypes = propTypes; | ||
var _default = Arrange; | ||
exports.default = _default; |
{ | ||
"name": "terra-arrange", | ||
"main": "lib/Arrange.js", | ||
"version": "3.49.0", | ||
"version": "3.50.0", | ||
"description": "The arrange component is used for horizontally arranging and vertically aligning a single row of container elements.", | ||
@@ -46,3 +46,3 @@ "repository": { | ||
}, | ||
"gitHead": "53b726ea1b8907bb54f86ec1b348591f6abb2224" | ||
"gitHead": "421b2643a58e6de628aa789a9cdd0778b0a942a2" | ||
} |
@@ -10,3 +10,3 @@ # Terra Arrange | ||
- [Getting Started](#getting-started) | ||
- [Documentation](https://engineering.cerner.com/terra-ui/components/terra-arrange/arrange/arrange) | ||
- [Documentation](https://engineering.cerner.com/terra-ui/components/cerner-terra-core-docs/arrange/about) | ||
- [LICENSE](#license) | ||
@@ -13,0 +13,0 @@ |
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
43358
325
1