terra-action-footer
Advanced tools
Comparing version 2.63.0 to 2.64.0
@@ -5,2 +5,7 @@ # Changelog | ||
## 2.64.0 - (December 7, 2022) | ||
* Changed | ||
* Minor dependency version bump | ||
## 2.63.0 - (September 21, 2021) | ||
@@ -7,0 +12,0 @@ |
@@ -7,25 +7,13 @@ "use strict"; | ||
exports.default = void 0; | ||
var _react = _interopRequireDefault(require("react")); | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var _bind = _interopRequireDefault(require("classnames/bind")); | ||
var _BlockActionFooter = _interopRequireDefault(require("./BlockActionFooter")); | ||
var _ActionFooterModule = _interopRequireDefault(require("./ActionFooter.module.scss")); | ||
var _excluded = ["start", "end"]; | ||
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 _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(_ActionFooterModule.default); | ||
var propTypes = { | ||
@@ -36,3 +24,2 @@ /** | ||
start: _propTypes.default.node, | ||
/** | ||
@@ -47,8 +34,6 @@ * Actions to be displayed in the end socket | ||
}; | ||
var ActionFooter = function ActionFooter(_ref) { | ||
var start = _ref.start, | ||
end = _ref.end, | ||
customProps = _objectWithoutProperties(_ref, _excluded); | ||
end = _ref.end, | ||
customProps = _objectWithoutProperties(_ref, _excluded); | ||
var actionFooterClassnames = cx([{ | ||
@@ -67,3 +52,2 @@ 'action-footer': start | ||
}; | ||
ActionFooter.propTypes = propTypes; | ||
@@ -70,0 +54,0 @@ ActionFooter.defaultProps = defaultProps; |
@@ -7,27 +7,14 @@ "use strict"; | ||
exports.default = void 0; | ||
var _react = _interopRequireDefault(require("react")); | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _bind = _interopRequireDefault(require("classnames/bind")); | ||
var _terraThemeContext = _interopRequireDefault(require("terra-theme-context")); | ||
var _BlockActionFooterModule = _interopRequireDefault(require("./BlockActionFooter.module.scss")); | ||
var _excluded = ["children"]; | ||
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 _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(_BlockActionFooterModule.default); | ||
var propTypes = { | ||
@@ -39,9 +26,6 @@ children: _propTypes.default.node | ||
}; | ||
var BlockActionFooter = function BlockActionFooter(_ref) { | ||
var children = _ref.children, | ||
customProps = _objectWithoutProperties(_ref, _excluded); | ||
customProps = _objectWithoutProperties(_ref, _excluded); | ||
var theme = _react.default.useContext(_terraThemeContext.default); | ||
var isEmpty = !_react.default.Children.toArray(children).length; | ||
@@ -55,3 +39,2 @@ var blockActionFooterClassNames = (0, _classnames.default)(cx(['block-action-footer', { | ||
}; | ||
BlockActionFooter.propTypes = propTypes; | ||
@@ -58,0 +41,0 @@ BlockActionFooter.defaultProps = defaultProps; |
@@ -7,25 +7,13 @@ "use strict"; | ||
exports.default = void 0; | ||
var _react = _interopRequireDefault(require("react")); | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var _bind = _interopRequireDefault(require("classnames/bind")); | ||
var _BlockActionFooter = _interopRequireDefault(require("./BlockActionFooter")); | ||
var _CenteredActionFooterModule = _interopRequireDefault(require("./CenteredActionFooter.module.scss")); | ||
var _excluded = ["center"]; | ||
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 _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(_CenteredActionFooterModule.default); | ||
var propTypes = { | ||
@@ -40,7 +28,5 @@ /** | ||
}; | ||
var CenteredActionFooter = function CenteredActionFooter(_ref) { | ||
var center = _ref.center, | ||
customProps = _objectWithoutProperties(_ref, _excluded); | ||
customProps = _objectWithoutProperties(_ref, _excluded); | ||
var centeredActionFooterClassNames = cx(['centered-action-footer', customProps.className]); | ||
@@ -51,3 +37,2 @@ return /*#__PURE__*/_react.default.createElement(_BlockActionFooter.default, _extends({}, customProps, { | ||
}; | ||
CenteredActionFooter.propTypes = propTypes; | ||
@@ -54,0 +39,0 @@ CenteredActionFooter.defaultProps = defaultProps; |
{ | ||
"name": "terra-action-footer", | ||
"main": "lib/ActionFooter.js", | ||
"version": "2.63.0", | ||
"version": "2.64.0", | ||
"description": "The terra-action-footer component is a footer bar that contains sockets for placing actionable items such as buttons and hyperlinks. The default variation contains a start and end socket, while the centered variation has only a center socket. If no actions are provided, the footer bar collapses to a themeable height and maintains the top border.", | ||
@@ -46,3 +46,3 @@ "repository": { | ||
}, | ||
"gitHead": "b63b085b6be99ff184a3c43eab5d24843315942e" | ||
"gitHead": "421b2643a58e6de628aa789a9cdd0778b0a942a2" | ||
} |
@@ -10,3 +10,3 @@ # Terra Action Footer | ||
- [Getting Started](#getting-started) | ||
- [Documentation](https://engineering.cerner.com/terra-ui/components/terra-action-footer/action-footer/standard) | ||
- [Documentation](https://engineering.cerner.com/terra-ui/components/cerner-terra-core-docs/action-footer/about) | ||
- [LICENSE](#license) | ||
@@ -13,0 +13,0 @@ |
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
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
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
53654
1