Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ausbom/card

Package Overview
Dependencies
Maintainers
5
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ausbom/card - npm Package Compare versions

Comparing version 0.8.2 to 0.8.3

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [0.8.3](https://github.com/AusBOM/bom-design-system/compare/@ausbom/card@0.8.2...@ausbom/card@0.8.3) (2021-03-10)
**Note:** Version bump only for package @ausbom/card
## [0.8.2](https://github.com/AusBOM/bom-design-system/compare/@ausbom/card@0.8.1...@ausbom/card@0.8.2) (2021-02-24)

@@ -8,0 +16,0 @@

2

lib/Card.js

@@ -1,1 +0,1 @@

"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _icon=require("@ausbom/icon");var _ArrowRight=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/ArrowRight16"));var _classnames=_interopRequireDefault(require("classnames"));var _react=_interopRequireDefault(require("react"));var Card=/*#__PURE__*/function(_React$PureComponent){(0,_inherits2["default"])(Card,_React$PureComponent);function Card(){(0,_classCallCheck2["default"])(this,Card);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(Card).apply(this,arguments))}(0,_createClass2["default"])(Card,[{key:"render",value:function render(){var _ref=this.props,Tag=_ref.as,children=_ref.children,className=_ref.className,hideImageBelow=_ref.hideImageBelow,horizontal=_ref.horizontal,icon=_ref.icon,imageIcon=_ref.imageIcon,id=_ref.id,image=_ref.image,innerRef=_ref.innerRef,meta=_ref.meta,title=_ref.title,TitleTag=_ref.titleTag,restProps=(0,_objectWithoutProperties2["default"])(_ref,["as","children","className","hideImageBelow","horizontal","icon","imageIcon","id","image","innerRef","meta","title","titleTag"]);var classes=(0,_classnames["default"])(className,"bom-card ",(0,_defineProperty2["default"])({"bom-card--stacked":!horizontal,"bom-card--with-image":!!image},"bom-card--hide-image-below-".concat(String(hideImageBelow)),!!hideImageBelow));var metaItems=_react["default"].Children.map(meta,function(data){return _react["default"].createElement("div",{className:"bom-card-meta__item"},data)});return _react["default"].createElement(Tag,(0,_extends2["default"])({className:classes,"aria-describedby":children?id:undefined,ref:innerRef},restProps),image&&_react["default"].createElement("div",{className:"bom-card__img"},image,imageIcon&&_react["default"].createElement("div",{className:"bom-card__img__overlay"},_react["default"].createElement(_icon.SystemIcon,{"aria-hidden":true,className:"bom-card__img__overlay-icon",icon:imageIcon,size:16}))),_react["default"].createElement("div",{className:"bom-card__text"},_react["default"].createElement(TitleTag,{className:"bom-card__title"},title,_react["default"].createElement(_icon.SystemIcon,{"aria-hidden":true,className:"bom-card__icon",icon:icon||_ArrowRight["default"],size:16})),meta&&meta.length>0&&_react["default"].createElement("div",{className:"bom-card-meta"},metaItems),children&&_react["default"].createElement("div",{id:id,className:"bom-card__desc"},children)))}}]);return Card}(_react["default"].PureComponent);(0,_defineProperty2["default"])(Card,"defaultProps",{as:"a",titleTag:"h3"});var CardWithRef=_react["default"].forwardRef(function(props,ref){return _react["default"].createElement(Card,(0,_extends2["default"])({innerRef:ref},props))});CardWithRef.displayName="Card";var _default=CardWithRef;exports["default"]=_default;
"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _icon=require("@ausbom/icon");var _ArrowRight=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/ArrowRight16"));var _classnames=_interopRequireDefault(require("classnames"));var _react=_interopRequireDefault(require("react"));function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=(0,_getPrototypeOf2["default"])(Derived),result;if(hasNativeReflectConstruct){var NewTarget=(0,_getPrototypeOf2["default"])(this).constructor;result=Reflect.construct(Super,arguments,NewTarget)}else{result=Super.apply(this,arguments)}return(0,_possibleConstructorReturn2["default"])(this,result)}}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}}var Card=/*#__PURE__*/function(_React$PureComponent){(0,_inherits2["default"])(Card,_React$PureComponent);var _super=_createSuper(Card);function Card(){(0,_classCallCheck2["default"])(this,Card);return _super.apply(this,arguments)}(0,_createClass2["default"])(Card,[{key:"render",value:function render(){var _ref=this.props,Tag=_ref.as,children=_ref.children,className=_ref.className,hideImageBelow=_ref.hideImageBelow,horizontal=_ref.horizontal,icon=_ref.icon,imageIcon=_ref.imageIcon,id=_ref.id,image=_ref.image,innerRef=_ref.innerRef,meta=_ref.meta,title=_ref.title,TitleTag=_ref.titleTag,restProps=(0,_objectWithoutProperties2["default"])(_ref,["as","children","className","hideImageBelow","horizontal","icon","imageIcon","id","image","innerRef","meta","title","titleTag"]);var classes=(0,_classnames["default"])(className,"bom-card ",(0,_defineProperty2["default"])({"bom-card--stacked":!horizontal,"bom-card--with-image":!!image},"bom-card--hide-image-below-".concat(String(hideImageBelow)),!!hideImageBelow));var metaItems=_react["default"].Children.map(meta,function(data){return/*#__PURE__*/_react["default"].createElement("div",{className:"bom-card-meta__item"},data)});return/*#__PURE__*/_react["default"].createElement(Tag,(0,_extends2["default"])({className:classes,"aria-describedby":children?id:undefined,ref:innerRef},restProps),image&&/*#__PURE__*/_react["default"].createElement("div",{className:"bom-card__img"},image,imageIcon&&/*#__PURE__*/_react["default"].createElement("div",{className:"bom-card__img__overlay"},/*#__PURE__*/_react["default"].createElement(_icon.SystemIcon,{"aria-hidden":true,className:"bom-card__img__overlay-icon",icon:imageIcon,size:16}))),/*#__PURE__*/_react["default"].createElement("div",{className:"bom-card__text"},/*#__PURE__*/_react["default"].createElement(TitleTag,{className:"bom-card__title"},title,/*#__PURE__*/_react["default"].createElement(_icon.SystemIcon,{"aria-hidden":true,className:"bom-card__icon",icon:icon||_ArrowRight["default"],size:16})),meta&&meta.length>0&&/*#__PURE__*/_react["default"].createElement("div",{className:"bom-card-meta"},metaItems),children&&/*#__PURE__*/_react["default"].createElement("div",{id:id,className:"bom-card__desc"},children)))}}]);return Card}(_react["default"].PureComponent);(0,_defineProperty2["default"])(Card,"defaultProps",{as:"a",titleTag:"h3"});var CardWithRef=/*#__PURE__*/_react["default"].forwardRef(function(props,ref){return/*#__PURE__*/_react["default"].createElement(Card,(0,_extends2["default"])({innerRef:ref},props))});CardWithRef.displayName="Card";var _default=CardWithRef;exports["default"]=_default;
{
"name": "@ausbom/card",
"version": "0.8.2",
"version": "0.8.3",
"description": "",

@@ -40,3 +40,3 @@ "keywords": [],

"dependencies": {
"@ausbom/body": "^0.2.7",
"@ausbom/body": "^0.3.0",
"@ausbom/grid": "^0.4.6",

@@ -47,3 +47,3 @@ "@ausbom/icon": "^0.11.3",

},
"gitHead": "8595a64b285c79fd427584974e26fc55960b9758"
"gitHead": "aef3801d5ac8f1eb294ad9a50c21e78b55e4124c"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc