terra-arrange
Advanced tools
Comparing version 3.55.0 to 3.56.0
@@ -5,2 +5,7 @@ # Changelog | ||
## 3.56.0 - (February 15, 2024) | ||
* Changed | ||
* Minor dependency version bump. | ||
## 3.55.0 - (November 13, 2023) | ||
@@ -7,0 +12,0 @@ |
@@ -18,4 +18,4 @@ "use strict"; | ||
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 _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); } | ||
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } | ||
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; } | ||
@@ -22,0 +22,0 @@ 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; } |
{ | ||
"name": "terra-arrange", | ||
"version": "3.55.0", | ||
"version": "3.56.0", | ||
"description": "The arrange component is used for horizontally arranging and vertically aligning a single row of container elements.", | ||
@@ -46,3 +46,3 @@ "author": "Cerner Corporation", | ||
}, | ||
"gitHead": "1be8c98fe2eeec64ef7a7fa457dd708da88e5170" | ||
"gitHead": "31ec38baf909fed741b41a204f7fa28884ab327e" | ||
} |
@@ -14,3 +14,3 @@ import React from 'react'; | ||
it('should render a arrange component with given fit and fill', () => { | ||
const wrapper = shallow(arrange); | ||
const wrapper = enzyme.shallow(arrange); | ||
expect(wrapper).toMatchSnapshot(); | ||
@@ -23,3 +23,3 @@ }); | ||
const arrangeAlignAll = <Arrange fitEnd={fitEnd} fill={fill} />; | ||
const wrapper = shallow(arrangeAlignAll); | ||
const wrapper = enzyme.shallow(arrangeAlignAll); | ||
expect(wrapper).toMatchSnapshot(); | ||
@@ -30,3 +30,3 @@ }); | ||
const arrangeAlignAll = <Arrange fitEnd={fitEnd} fill={fill} align="center" />; | ||
const wrapper = shallow(arrangeAlignAll); | ||
const wrapper = enzyme.shallow(arrangeAlignAll); | ||
expect(wrapper).toMatchSnapshot(); | ||
@@ -37,3 +37,3 @@ }); | ||
const arrangeAlignAll = <Arrange fitStart={fitStart} fill={fill} align="bottom" />; | ||
const wrapper = shallow(arrangeAlignAll); | ||
const wrapper = enzyme.shallow(arrangeAlignAll); | ||
expect(wrapper).toMatchSnapshot(); | ||
@@ -44,3 +44,3 @@ }); | ||
const arrangeAlignAll = <Arrange fitStart={fitStart} fill={fill} align="stretch" />; | ||
const wrapper = shallow(arrangeAlignAll); | ||
const wrapper = enzyme.shallow(arrangeAlignAll); | ||
expect(wrapper).toMatchSnapshot(); | ||
@@ -53,3 +53,3 @@ }); | ||
const arrange = <Arrange fitStart={fitStart} fitEnd={fitEnd} fill={fill} align="center" fitStartAttributes={{ style: { maxWidth: '10px' } }} fillAttributes={{ style: { maxWidth: '20px' } }} fitEndAttributes={{ style: { maxWidth: '30px' } }} />; | ||
const wrapper = shallow(arrange); | ||
const wrapper = enzyme.shallow(arrange); | ||
expect(wrapper).toMatchSnapshot(); | ||
@@ -60,3 +60,3 @@ }); | ||
const arrange = <Arrange fitStart={fitStart} fill={fill} />; | ||
const wrapper = shallow(arrange); | ||
const wrapper = enzyme.shallow(arrange); | ||
expect(wrapper).toMatchSnapshot(); | ||
@@ -68,3 +68,3 @@ }); | ||
const arrange = <Arrange fitStart={fitStart} fitEnd={fitEnd} fill={fill} />; | ||
const wrapper = shallow(arrange); | ||
const wrapper = enzyme.shallow(arrange); | ||
expect(wrapper.type()).toEqual('span'); | ||
@@ -78,3 +78,3 @@ expect(wrapper.childAt(0).hasClass('fit')).toEqual(true); | ||
const arrange = <Arrange fitStart={fitStart} fitEnd={fitEnd} fill={fill} alignFitStart="center" alignFill="stretch" />; | ||
const wrapper = shallow(arrange); | ||
const wrapper = enzyme.shallow(arrange); | ||
expect(wrapper.type()).toEqual('span'); | ||
@@ -88,3 +88,3 @@ expect(wrapper.childAt(0).hasClass('fit center')).toEqual(true); | ||
const arrange = <Arrange fitStart={fitStart} fitEnd={fitEnd} fill={fill} alignFitStart="stretch" alignFill="stretch" alignFitEnd="bottom" />; | ||
const wrapper = shallow(arrange); | ||
const wrapper = enzyme.shallow(arrange); | ||
expect(wrapper.type()).toEqual('span'); | ||
@@ -98,3 +98,3 @@ expect(wrapper.childAt(0).hasClass('fit stretch')).toEqual(true); | ||
const arrange = <Arrange fitStart={fitStart} fitEnd={fitEnd} fill={fill} align="stretch" />; | ||
const wrapper = shallow(arrange); | ||
const wrapper = enzyme.shallow(arrange); | ||
expect(wrapper.type()).toEqual('span'); | ||
@@ -108,3 +108,3 @@ expect(wrapper.childAt(0).hasClass('fit stretch')).toEqual(true); | ||
const arrange = <Arrange fitStart={fitStart} fitEnd={fitEnd} fill={fill} align="stretch" alignFitStart="center" />; | ||
const wrapper = shallow(arrange); | ||
const wrapper = enzyme.shallow(arrange); | ||
expect(wrapper.type()).toEqual('span'); | ||
@@ -120,5 +120,5 @@ expect(wrapper.childAt(0).hasClass('fit stretch')).toEqual(true); | ||
const arrange = <Arrange fitStart={fitStart} fill={fill} className={className} id="testkey" />; | ||
const wrapper = shallow(arrange); | ||
const wrapper = enzyme.shallow(arrange); | ||
expect(wrapper).toMatchSnapshot(); | ||
}); | ||
}); |
44207