@clayui/pagination
Advanced tools
Comparing version 3.2.0 to 3.2.2
@@ -6,2 +6,10 @@ # Change Log | ||
## [3.2.2](https://github.com/liferay/clay/compare/@clayui/pagination@3.2.1...@clayui/pagination@3.2.2) (2020-07-07) | ||
**Note:** Version bump only for package @clayui/pagination | ||
## [3.2.1](https://github.com/liferay/clay/compare/@clayui/pagination@3.2.0...@clayui/pagination@3.2.1) (2020-06-18) | ||
**Note:** Version bump only for package @clayui/pagination | ||
# [3.2.0](https://github.com/liferay/clay/compare/@clayui/pagination@3.1.3...@clayui/pagination@3.2.0) (2020-05-21) | ||
@@ -8,0 +16,0 @@ |
@@ -37,7 +37,7 @@ "use strict"; | ||
}); | ||
return _react.default.createElement(_dropDown.ClayDropDownWithItems, { | ||
return /*#__PURE__*/_react.default.createElement(_dropDown.ClayDropDownWithItems, { | ||
className: "page-item", | ||
containerElement: "li", | ||
items: pages, | ||
trigger: _react.default.createElement(_button.default, { | ||
trigger: /*#__PURE__*/_react.default.createElement(_button.default, { | ||
className: "page-link", | ||
@@ -44,0 +44,0 @@ displayType: "unstyled" |
@@ -36,5 +36,5 @@ "use strict"; | ||
var ElementTag = href ? _link.default : 'button'; | ||
return _react.default.createElement("li", { | ||
return /*#__PURE__*/_react.default.createElement("li", { | ||
className: classes | ||
}, _react.default.createElement(ElementTag, _extends({ | ||
}, /*#__PURE__*/_react.default.createElement(ElementTag, _extends({ | ||
type: !href ? 'button' : undefined | ||
@@ -41,0 +41,0 @@ }, otherProps, { |
@@ -26,3 +26,3 @@ "use strict"; | ||
var ClayPagination = _react.default.forwardRef(function (_ref, ref) { | ||
var ClayPagination = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) { | ||
var children = _ref.children, | ||
@@ -33,3 +33,3 @@ className = _ref.className, | ||
return _react.default.createElement("ul", _extends({}, otherProps, { | ||
return /*#__PURE__*/_react.default.createElement("ul", _extends({}, otherProps, { | ||
className: (0, _classnames.default)('pagination pagination-root', className, _defineProperty({}, "pagination-".concat(size), size)), | ||
@@ -36,0 +36,0 @@ ref: ref |
@@ -26,3 +26,3 @@ "use strict"; | ||
var ClayPaginationWithBasicItems = _react.default.forwardRef(function (_ref, ref) { | ||
var ClayPaginationWithBasicItems = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) { | ||
var activePage = _ref.activePage, | ||
@@ -51,5 +51,5 @@ _ref$ariaLabels = _ref.ariaLabels, | ||
}); | ||
return _react.default.createElement(_Pagination.default, _extends({}, otherProps, { | ||
return /*#__PURE__*/_react.default.createElement(_Pagination.default, _extends({}, otherProps, { | ||
ref: ref | ||
}), _react.default.createElement(_Pagination.default.Item, { | ||
}), /*#__PURE__*/_react.default.createElement(_Pagination.default.Item, { | ||
"aria-label": ariaLabels.previous, | ||
@@ -61,3 +61,3 @@ disabled: activePage === 1, | ||
} | ||
}, _react.default.createElement(_icon.default, { | ||
}, /*#__PURE__*/_react.default.createElement(_icon.default, { | ||
spritemap: spritemap, | ||
@@ -74,5 +74,5 @@ symbol: "angle-left" | ||
}, ellipsisBuffer, activePage - 1) : pages).map(function (page, index) { | ||
return _react.default.isValidElement(page) ? _react.default.cloneElement(page, { | ||
return /*#__PURE__*/_react.default.isValidElement(page) ? /*#__PURE__*/_react.default.cloneElement(page, { | ||
key: "ellipsis".concat(index) | ||
}) : _react.default.createElement(_Pagination.default.Item, { | ||
}) : /*#__PURE__*/_react.default.createElement(_Pagination.default.Item, { | ||
active: page === activePage, | ||
@@ -86,3 +86,3 @@ disabled: disabledPages.includes(page), | ||
}, page); | ||
}), _react.default.createElement(_Pagination.default.Item, { | ||
}), /*#__PURE__*/_react.default.createElement(_Pagination.default.Item, { | ||
"aria-label": ariaLabels.next, | ||
@@ -94,3 +94,3 @@ disabled: activePage === totalPages, | ||
} | ||
}, _react.default.createElement(_icon.default, { | ||
}, /*#__PURE__*/_react.default.createElement(_icon.default, { | ||
spritemap: spritemap, | ||
@@ -97,0 +97,0 @@ symbol: "angle-right" |
{ | ||
"name": "@clayui/pagination", | ||
"version": "3.2.0", | ||
"version": "3.2.2", | ||
"description": "ClayPagination component", | ||
@@ -30,6 +30,6 @@ "license": "BSD-3-Clause", | ||
"@clayui/button": "^3.3.1", | ||
"@clayui/drop-down": "^3.4.3", | ||
"@clayui/drop-down": "^3.4.5", | ||
"@clayui/icon": "^3.0.5", | ||
"@clayui/link": "^3.1.1", | ||
"@clayui/shared": "^3.1.1", | ||
"@clayui/link": "^3.2.0", | ||
"@clayui/shared": "^3.1.3", | ||
"classnames": "^2.2.6" | ||
@@ -45,3 +45,3 @@ }, | ||
], | ||
"gitHead": "ad09878fa08a6b4b61f88d6dd94cc72974ece2ca" | ||
"gitHead": "578a373f4e7cef10c2bff36871d2693ee21844f7" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40757
20
Updated@clayui/drop-down@^3.4.5
Updated@clayui/link@^3.2.0
Updated@clayui/shared@^3.1.3