terra-paginator
Advanced tools
Comparing version 2.89.0 to 2.90.0
@@ -5,2 +5,7 @@ # Changelog | ||
## 2.90.0 - (February 15, 2024) | ||
* Changed | ||
* Minor dependency version bump. | ||
## 2.89.0 - (January 9, 2024) | ||
@@ -7,0 +12,0 @@ |
@@ -25,11 +25,11 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
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 _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } | ||
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
var cx = _bind.default.bind(_PaginatorModule.default); | ||
@@ -76,7 +76,6 @@ var propTypes = { | ||
_inherits(Paginator, _React$Component); | ||
var _super = _createSuper(Paginator); | ||
function Paginator(props) { | ||
var _this; | ||
_classCallCheck(this, Paginator); | ||
_this = _super.call(this, props); | ||
_this = _callSuper(this, Paginator, [props]); | ||
_this.handlePageChange = _this.handlePageChange.bind(_assertThisInitialized(_this)); | ||
@@ -83,0 +82,0 @@ _this.buildPageButtons = _this.buildPageButtons.bind(_assertThisInitialized(_this)); |
@@ -26,11 +26,11 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
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 _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } | ||
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
var cx = _bind.default.bind(_PaginatorModule.default); | ||
@@ -85,7 +85,6 @@ var propTypes = { | ||
_inherits(ControlledProgressivePaginator, _React$Component); | ||
var _super = _createSuper(ControlledProgressivePaginator); | ||
function ControlledProgressivePaginator(props) { | ||
var _this; | ||
_classCallCheck(this, ControlledProgressivePaginator); | ||
_this = _super.call(this, props); | ||
_this = _callSuper(this, ControlledProgressivePaginator, [props]); | ||
_this.handlePageChange = _this.handlePageChange.bind(_assertThisInitialized(_this)); | ||
@@ -92,0 +91,0 @@ _this.defaultProgressivePaginator = _this.defaultProgressivePaginator.bind(_assertThisInitialized(_this)); |
@@ -25,11 +25,11 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
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 _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } | ||
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
var cx = _bind.default.bind(_PaginatorModule.default); | ||
@@ -76,7 +76,6 @@ var propTypes = { | ||
_inherits(Paginator, _React$Component); | ||
var _super = _createSuper(Paginator); | ||
function Paginator(props) { | ||
var _this; | ||
_classCallCheck(this, Paginator); | ||
_this = _super.call(this, props); | ||
_this = _callSuper(this, Paginator, [props]); | ||
var _this$props = _this.props, | ||
@@ -83,0 +82,0 @@ selectedPage = _this$props.selectedPage, |
@@ -26,11 +26,11 @@ "use strict"; | ||
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } | ||
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 _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } | ||
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); } | ||
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); } | ||
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; } | ||
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); } | ||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | ||
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } | ||
var cx = _bind.default.bind(_PaginatorModule.default); | ||
@@ -85,7 +85,6 @@ var propTypes = { | ||
_inherits(ProgressivePaginator, _React$Component); | ||
var _super = _createSuper(ProgressivePaginator); | ||
function ProgressivePaginator(props) { | ||
var _this; | ||
_classCallCheck(this, ProgressivePaginator); | ||
_this = _super.call(this, props); | ||
_this = _callSuper(this, ProgressivePaginator, [props]); | ||
var selectedPage = _this.props.selectedPage; | ||
@@ -92,0 +91,0 @@ _this.state = { |
{ | ||
"name": "terra-paginator", | ||
"version": "2.89.0", | ||
"version": "2.90.0", | ||
"description": "Paginator to be used for data sets of known and unknown size. Provides first, last, previous, next, and paged functionality.", | ||
@@ -29,5 +29,5 @@ "author": "Cerner Corporation", | ||
"terra-mixins": "^1.41.0", | ||
"terra-responsive-element": "^5.39.0", | ||
"terra-responsive-element": "^5.40.0", | ||
"terra-theme-context": "^1.0.0", | ||
"terra-visually-hidden-text": "^2.37.0" | ||
"terra-visually-hidden-text": "^2.38.0" | ||
}, | ||
@@ -53,3 +53,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "11a2f3a121e9701433769d213d55bda871139935" | ||
"gitHead": "31ec38baf909fed741b41a204f7fa28884ab327e" | ||
} |
import React from 'react'; | ||
/* eslint-disable-next-line import/no-extraneous-dependencies */ | ||
import { shallowWithIntl, mountWithIntl } from 'terra-enzyme-intl'; | ||
import PaginatorButton from '../../src/_PaginatorButton'; | ||
@@ -9,3 +7,3 @@ | ||
const paginatorButton = <PaginatorButton id="test-button" />; | ||
const wrapper = mountWithIntl(paginatorButton); | ||
const wrapper = enzymeIntl.mountWithIntl(paginatorButton); | ||
wrapper.update(); | ||
@@ -17,3 +15,3 @@ expect(wrapper).toMatchSnapshot(); | ||
const paginatorButton = <PaginatorButton id="test-button" disabled />; | ||
const wrapper = shallowWithIntl(paginatorButton); | ||
const wrapper = enzymeIntl.shallowWithIntl(paginatorButton); | ||
@@ -25,3 +23,3 @@ expect(wrapper.prop('disabled')).toBeTruthy(); | ||
const paginatorButton = <PaginatorButton id="test-button"><span>test</span></PaginatorButton>; | ||
const wrapper = shallowWithIntl(paginatorButton); | ||
const wrapper = enzymeIntl.shallowWithIntl(paginatorButton); | ||
@@ -28,0 +26,0 @@ expect(wrapper).toMatchSnapshot(); |
import React from 'react'; | ||
import ThemeContextProvider from 'terra-theme-context/lib/ThemeContextProvider'; | ||
/* eslint-disable-next-line import/no-extraneous-dependencies */ | ||
import { shallowWithIntl, mountWithIntl } from 'terra-enzyme-intl'; | ||
import ControlledPaginator from '../../src/ControlledPaginator'; | ||
@@ -16,3 +14,3 @@ | ||
it('should render a Controlled Paginator - Tiny', () => { | ||
const wrapper = shallowWithIntl(defaultRender).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(defaultRender).dive(); | ||
wrapper.setState({ breakpoint: 'tiny' }); | ||
@@ -24,3 +22,3 @@ wrapper.update(); | ||
it('should render a Controlled Paginator - Large', () => { | ||
const wrapper = shallowWithIntl(defaultRender).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(defaultRender).dive(); | ||
wrapper.setState({ breakpoint: 'large' }); | ||
@@ -32,3 +30,3 @@ wrapper.update(); | ||
it('correctly applies the theme context className', () => { | ||
const wrapper = mountWithIntl( | ||
const wrapper = enzymeIntl.mountWithIntl( | ||
<ThemeContextProvider theme={{ className: 'orion-fusion-theme' }}> | ||
@@ -42,3 +40,3 @@ {defaultRender} | ||
it('should render a Controlled Paginator with visually hidden text', () => { | ||
const wrapper = shallowWithIntl(renderWithSelectedPage).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(renderWithSelectedPage).dive(); | ||
wrapper.setState({ breakpoint: 'tiny' }); | ||
@@ -53,3 +51,3 @@ wrapper.update(); | ||
it('should render a Controlled Paginator with heading id set - Tiny', () => { | ||
const wrapper = shallowWithIntl(renderWithHeadingId).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(renderWithHeadingId).dive(); | ||
wrapper.setState({ breakpoint: 'tiny' }); | ||
@@ -62,3 +60,3 @@ wrapper.update(); | ||
it('should render a Controlled Paginator with aria label set - Tiny', () => { | ||
const wrapper = shallowWithIntl(renderWithAriaLabel).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(renderWithAriaLabel).dive(); | ||
wrapper.setState({ breakpoint: 'tiny' }); | ||
@@ -65,0 +63,0 @@ wrapper.update(); |
import React from 'react'; | ||
import ThemeContextProvider from 'terra-theme-context/lib/ThemeContextProvider'; | ||
/* eslint-disable-next-line import/no-extraneous-dependencies */ | ||
import { shallowWithIntl, mountWithIntl } from 'terra-enzyme-intl'; | ||
import ControlledProgressivePaginator from '../../src/ControlledProgressivePaginator'; | ||
@@ -16,3 +14,3 @@ | ||
it('should render a Controlled ProgressivePaginator - Tiny', () => { | ||
const wrapper = shallowWithIntl(defaultRender).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(defaultRender).dive(); | ||
wrapper.setState({ breakpoint: 'tiny' }); | ||
@@ -24,3 +22,3 @@ wrapper.update(); | ||
it('should render a Controlled ProgressivePaginator - Large', () => { | ||
const wrapper = shallowWithIntl(defaultRender).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(defaultRender).dive(); | ||
wrapper.setState({ breakpoint: 'large' }); | ||
@@ -32,3 +30,3 @@ wrapper.update(); | ||
it('correctly applies the theme context className', () => { | ||
const wrapper = mountWithIntl( | ||
const wrapper = enzymeIntl.mountWithIntl( | ||
<ThemeContextProvider theme={{ className: 'orion-fusion-theme' }}> | ||
@@ -42,3 +40,3 @@ {defaultRender} | ||
it('should render a Controlled ProgressivePaginator with visually hidden text', () => { | ||
const wrapper = shallowWithIntl(renderWithSelectedPage).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(renderWithSelectedPage).dive(); | ||
wrapper.setState({ breakpoint: 'tiny' }); | ||
@@ -53,3 +51,3 @@ wrapper.update(); | ||
it('should render a Controlled ProgressivePaginator with heading id - Tiny', () => { | ||
const wrapper = shallowWithIntl(renderWithHeadingId).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(renderWithHeadingId).dive(); | ||
wrapper.setState({ breakpoint: 'tiny' }); | ||
@@ -62,3 +60,3 @@ wrapper.update(); | ||
it('should render a Controlled ProgressivePaginator with aria label - Tiny', () => { | ||
const wrapper = shallowWithIntl(renderWithAriaLabel).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(renderWithAriaLabel).dive(); | ||
wrapper.setState({ breakpoint: 'tiny' }); | ||
@@ -65,0 +63,0 @@ wrapper.update(); |
import React from 'react'; | ||
import ThemeContextProvider from 'terra-theme-context/lib/ThemeContextProvider'; | ||
/* eslint-disable-next-line import/no-extraneous-dependencies */ | ||
import { shallowWithIntl, mountWithIntl } from 'terra-enzyme-intl'; | ||
import Paginator from '../../src/Paginator'; | ||
@@ -17,3 +15,3 @@ | ||
it('should render a default paginator - Tiny', () => { | ||
const wrapper = shallowWithIntl(defaultRender).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(defaultRender).dive(); | ||
wrapper.setState({ breakpoint: 'tiny' }); | ||
@@ -25,3 +23,3 @@ wrapper.update(); | ||
it('should render a default paginator - Large', () => { | ||
const wrapper = shallowWithIntl(defaultRender).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(defaultRender).dive(); | ||
wrapper.setState({ breakpoint: 'large' }); | ||
@@ -33,3 +31,3 @@ wrapper.update(); | ||
it('should render a paginator without page links - Tiny', () => { | ||
const wrapper = shallowWithIntl(noPagesRender).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(noPagesRender).dive(); | ||
wrapper.setState({ breakpoint: 'tiny' }); | ||
@@ -41,3 +39,3 @@ wrapper.update(); | ||
it('should render a paginator without page links - Large', () => { | ||
const wrapper = shallowWithIntl(noPagesRender).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(noPagesRender).dive(); | ||
wrapper.setState({ breakpoint: 'large' }); | ||
@@ -49,3 +47,3 @@ wrapper.update(); | ||
it('correctly applies the theme context className', () => { | ||
const wrapper = mountWithIntl( | ||
const wrapper = enzymeIntl.mountWithIntl( | ||
<ThemeContextProvider theme={{ className: 'orion-fusion-theme' }}> | ||
@@ -59,3 +57,3 @@ {noPagesRender} | ||
it('should render a default paginator with visually hidden text', () => { | ||
const wrapper = shallowWithIntl(renderWithSelectedPage).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(renderWithSelectedPage).dive(); | ||
wrapper.setState({ breakpoint: 'tiny' }); | ||
@@ -70,3 +68,3 @@ wrapper.update(); | ||
it('should render a default paginator with heading id set - Tiny', () => { | ||
const wrapper = shallowWithIntl(renderWithHeadingId).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(renderWithHeadingId).dive(); | ||
wrapper.setState({ breakpoint: 'tiny' }); | ||
@@ -79,3 +77,3 @@ wrapper.update(); | ||
it('should render a default paginator with aria label set - Tiny', () => { | ||
const wrapper = shallowWithIntl(renderWithAriaLabel).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(renderWithAriaLabel).dive(); | ||
wrapper.setState({ breakpoint: 'tiny' }); | ||
@@ -82,0 +80,0 @@ wrapper.update(); |
import React from 'react'; | ||
import ThemeContextProvider from 'terra-theme-context/lib/ThemeContextProvider'; | ||
/* eslint-disable-next-line import/no-extraneous-dependencies */ | ||
import { shallowWithIntl, mountWithIntl } from 'terra-enzyme-intl'; | ||
import ProgressivePaginator from '../../src/ProgressivePaginator'; | ||
@@ -16,3 +14,3 @@ | ||
it('should render a default ProgressivePaginator - Tiny', () => { | ||
const wrapper = shallowWithIntl(defaultRender).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(defaultRender).dive(); | ||
wrapper.setState({ breakpoint: 'tiny' }); | ||
@@ -24,3 +22,3 @@ wrapper.update(); | ||
it('should render a default ProgressivePaginator - Large', () => { | ||
const wrapper = shallowWithIntl(defaultRender).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(defaultRender).dive(); | ||
wrapper.setState({ breakpoint: 'large' }); | ||
@@ -32,3 +30,3 @@ wrapper.update(); | ||
it('correctly applies the theme context className', () => { | ||
const wrapper = mountWithIntl( | ||
const wrapper = enzymeIntl.mountWithIntl( | ||
<ThemeContextProvider theme={{ className: 'orion-fusion-theme' }}> | ||
@@ -42,3 +40,3 @@ {defaultRender} | ||
it('should render a default ProgressivePaginator with visually hidden text', () => { | ||
const wrapper = shallowWithIntl(renderWithSelectedPage).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(renderWithSelectedPage).dive(); | ||
wrapper.setState({ breakpoint: 'tiny' }); | ||
@@ -53,3 +51,3 @@ wrapper.update(); | ||
it('should render a default ProgressivePaginator with heading id set - Tiny', () => { | ||
const wrapper = shallowWithIntl(renderWithHeadingId).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(renderWithHeadingId).dive(); | ||
wrapper.setState({ breakpoint: 'tiny' }); | ||
@@ -62,3 +60,3 @@ wrapper.update(); | ||
it('should render a default ProgressivePaginator with aria label set - Tiny', () => { | ||
const wrapper = shallowWithIntl(renderWithAriaLabel).dive(); | ||
const wrapper = enzymeIntl.shallowWithIntl(renderWithAriaLabel).dive(); | ||
wrapper.setState({ breakpoint: 'tiny' }); | ||
@@ -65,0 +63,0 @@ wrapper.update(); |
1342788
3782