@ausbom/form
Advanced tools
Comparing version 0.2.0 to 0.2.1
@@ -6,2 +6,14 @@ # Change Log | ||
<a name="0.2.1"></a> | ||
## [0.2.1](https://github.com/AusBOM/bom-design-system/compare/@ausbom/form@0.2.0...@ausbom/form@0.2.1) (2020-02-06) | ||
### Bug Fixes | ||
* a11y[#5](https://github.com/AusBOM/bom-design-system/issues/5) add focusable false toicons,add ariahidden to decorative svg ([4321224](https://github.com/AusBOM/bom-design-system/commit/4321224)) | ||
<a name="0.2.0"></a> | ||
@@ -8,0 +20,0 @@ # [0.2.0](https://github.com/AusBOM/bom-design-system/compare/@ausbom/form@0.1.0...@ausbom/form@0.2.0) (2020-02-03) |
@@ -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 _Error=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/Error24"));var _Success=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/Success24"));var _Information=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/Information24"));var _classnames=_interopRequireDefault(require("classnames"));var _react=_interopRequireDefault(require("react"));var _types=require("../../types.d");var _icons;var icons=(_icons={},(0,_defineProperty2["default"])(_icons,"".concat(_types.Status.Error),_Error["default"]),(0,_defineProperty2["default"])(_icons,"".concat(_types.Status.Success),_Success["default"]),(0,_defineProperty2["default"])(_icons,"".concat(_types.Status.Info),_Information["default"]),(0,_defineProperty2["default"])(_icons,"".concat(_types.Status.Failure),_Error["default"]),_icons);var Alert=/*#__PURE__*/function(_React$PureComponent){(0,_inherits2["default"])(Alert,_React$PureComponent);function Alert(){(0,_classCallCheck2["default"])(this,Alert);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(Alert).apply(this,arguments))}(0,_createClass2["default"])(Alert,[{key:"render",value:function render(){var _ref=this.props,status=_ref.status,className=_ref.className,children=_ref.children,innerRef=_ref.innerRef,restProps=(0,_objectWithoutProperties2["default"])(_ref,["status","className","children","innerRef"]);var classes=(0,_classnames["default"])(className,"bom-form-alert",{"bom-form-alert--error":status===_types.Status.Error,"bom-form-alert--success":status===_types.Status.Success,"bom-form-alert--info":status===_types.Status.Info,"bom-form-alert--failure":status===_types.Status.Failure});var icon=icons[status];return _react["default"].createElement("div",(0,_extends2["default"])({className:classes,ref:innerRef},restProps),icon&&_react["default"].createElement("div",{className:"bom-form-alert__icon"},_react["default"].createElement(_icon.SystemIcon,{icon:icon,size:24})),_react["default"].createElement("div",{className:"bom-form-alert__message"},children))}}]);return Alert}(_react["default"].PureComponent);(0,_defineProperty2["default"])(Alert,"defaultProps",{});var AlertWithRef=_react["default"].forwardRef(function(props,ref){return _react["default"].createElement(Alert,(0,_extends2["default"])({innerRef:ref},props))});AlertWithRef.displayName="Alert";var _default=AlertWithRef;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 _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 _Error=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/Error24"));var _Success=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/Success24"));var _Information=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/Information24"));var _classnames=_interopRequireDefault(require("classnames"));var _react=_interopRequireDefault(require("react"));var _types=require("../../types.d");var _icons;var icons=(_icons={},(0,_defineProperty2["default"])(_icons,"".concat(_types.Status.Error),_Error["default"]),(0,_defineProperty2["default"])(_icons,"".concat(_types.Status.Success),_Success["default"]),(0,_defineProperty2["default"])(_icons,"".concat(_types.Status.Info),_Information["default"]),(0,_defineProperty2["default"])(_icons,"".concat(_types.Status.Failure),_Error["default"]),_icons);var Alert=/*#__PURE__*/function(_React$PureComponent){(0,_inherits2["default"])(Alert,_React$PureComponent);function Alert(){(0,_classCallCheck2["default"])(this,Alert);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(Alert).apply(this,arguments))}(0,_createClass2["default"])(Alert,[{key:"render",value:function render(){var _ref=this.props,status=_ref.status,className=_ref.className,children=_ref.children,innerRef=_ref.innerRef,restProps=(0,_objectWithoutProperties2["default"])(_ref,["status","className","children","innerRef"]);var classes=(0,_classnames["default"])(className,"bom-form-alert",{"bom-form-alert--error":status===_types.Status.Error,"bom-form-alert--success":status===_types.Status.Success,"bom-form-alert--info":status===_types.Status.Info,"bom-form-alert--failure":status===_types.Status.Failure});var icon=icons[status];return _react["default"].createElement("div",(0,_extends2["default"])({className:classes,ref:innerRef},restProps),icon&&_react["default"].createElement("div",{className:"bom-form-alert__icon"},_react["default"].createElement(_icon.SystemIcon,{icon:icon,size:24,"aria-hidden":true})),_react["default"].createElement("div",{className:"bom-form-alert__message"},children))}}]);return Alert}(_react["default"].PureComponent);(0,_defineProperty2["default"])(Alert,"defaultProps",{});var AlertWithRef=_react["default"].forwardRef(function(props,ref){return _react["default"].createElement(Alert,(0,_extends2["default"])({innerRef:ref},props))});AlertWithRef.displayName="Alert";var _default=AlertWithRef;exports["default"]=_default; |
@@ -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 _CheckboxTick=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/CheckboxTick24"));var _CheckboxUntick=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/CheckboxUntick24"));var _classnames=_interopRequireDefault(require("classnames"));var _react=_interopRequireDefault(require("react"));var Checkbox=/*#__PURE__*/function(_React$PureComponent){(0,_inherits2["default"])(Checkbox,_React$PureComponent);function Checkbox(){(0,_classCallCheck2["default"])(this,Checkbox);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(Checkbox).apply(this,arguments))}(0,_createClass2["default"])(Checkbox,[{key:"render",value:function render(){var _ref=this.props,id=_ref.id,className=_ref.className,innerRef=_ref.innerRef,label=_ref.label,restProps=(0,_objectWithoutProperties2["default"])(_ref,["id","className","innerRef","label"]);return _react["default"].createElement("div",{className:(0,_classnames["default"])("bom-form-checkbox",className)},_react["default"].createElement("input",(0,_extends2["default"])({className:"bom-form-checkbox__input","data-testid":"bom-checkbox-input",id:id,type:"checkbox",ref:innerRef},restProps)),_react["default"].createElement("label",{className:"bom-form-checkbox__label","data-testid":"bom-checkbox-label",htmlFor:id},_react["default"].createElement("span",{className:"bom-form-checkbox-focus"},_react["default"].createElement(_icon.SystemIcon,{"aria-hidden":"true",className:"bom-form-checkbox-icon bom-form-checkbox-icon--checked",icon:_CheckboxTick["default"],size:24}),_react["default"].createElement(_icon.SystemIcon,{"aria-hidden":"true",className:"bom-form-checkbox-icon bom-form-checkbox-icon--unchecked",icon:_CheckboxUntick["default"],size:24})),_react["default"].createElement("span",{className:"bom-form-checkbox__label-text"},label)))}}]);return Checkbox}(_react["default"].PureComponent);(0,_defineProperty2["default"])(Checkbox,"defaultProps",{});var CheckboxWithRef=_react["default"].forwardRef(function(props,ref){return _react["default"].createElement(Checkbox,(0,_extends2["default"])({innerRef:ref},props))});CheckboxWithRef.displayName="Checkbox";var _default=CheckboxWithRef;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 _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 _CheckboxTick=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/CheckboxTick24"));var _CheckboxUntick=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/CheckboxUntick24"));var _classnames=_interopRequireDefault(require("classnames"));var _react=_interopRequireDefault(require("react"));var Checkbox=/*#__PURE__*/function(_React$PureComponent){(0,_inherits2["default"])(Checkbox,_React$PureComponent);function Checkbox(){(0,_classCallCheck2["default"])(this,Checkbox);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(Checkbox).apply(this,arguments))}(0,_createClass2["default"])(Checkbox,[{key:"render",value:function render(){var _ref=this.props,id=_ref.id,className=_ref.className,innerRef=_ref.innerRef,label=_ref.label,restProps=(0,_objectWithoutProperties2["default"])(_ref,["id","className","innerRef","label"]);return _react["default"].createElement("div",{className:(0,_classnames["default"])("bom-form-checkbox",className)},_react["default"].createElement("input",(0,_extends2["default"])({className:"bom-form-checkbox__input","data-testid":"bom-checkbox-input",id:id,type:"checkbox",ref:innerRef},restProps)),_react["default"].createElement("label",{className:"bom-form-checkbox__label","data-testid":"bom-checkbox-label",htmlFor:id},_react["default"].createElement("span",{className:"bom-form-checkbox-focus"},_react["default"].createElement(_icon.SystemIcon,{"aria-hidden":true,className:"bom-form-checkbox-icon bom-form-checkbox-icon--checked",icon:_CheckboxTick["default"],size:24}),_react["default"].createElement(_icon.SystemIcon,{"aria-hidden":true,className:"bom-form-checkbox-icon bom-form-checkbox-icon--unchecked",icon:_CheckboxUntick["default"],size:24})),_react["default"].createElement("span",{className:"bom-form-checkbox__label-text"},label)))}}]);return Checkbox}(_react["default"].PureComponent);(0,_defineProperty2["default"])(Checkbox,"defaultProps",{});var CheckboxWithRef=_react["default"].forwardRef(function(props,ref){return _react["default"].createElement(Checkbox,(0,_extends2["default"])({innerRef:ref},props))});CheckboxWithRef.displayName="Checkbox";var _default=CheckboxWithRef;exports["default"]=_default; |
@@ -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 _RadioSelected=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/RadioSelected24"));var _RadioUnselected=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/RadioUnselected24"));var _classnames=_interopRequireDefault(require("classnames"));var _react=_interopRequireDefault(require("react"));var Radio=/*#__PURE__*/function(_React$PureComponent){(0,_inherits2["default"])(Radio,_React$PureComponent);function Radio(){(0,_classCallCheck2["default"])(this,Radio);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(Radio).apply(this,arguments))}(0,_createClass2["default"])(Radio,[{key:"render",value:function render(){var _ref=this.props,id=_ref.id,className=_ref.className,innerRef=_ref.innerRef,label=_ref.label,restProps=(0,_objectWithoutProperties2["default"])(_ref,["id","className","innerRef","label"]);var classes=(0,_classnames["default"])(className,"bom-form-radio");return _react["default"].createElement("div",{className:classes},_react["default"].createElement("input",(0,_extends2["default"])({className:"bom-form-radio__input","data-testid":"bom-radio-input",id:id,type:"radio",ref:innerRef},restProps)),_react["default"].createElement("label",{className:"bom-form-radio__label","data-testid":"bom-radio-label",htmlFor:id},_react["default"].createElement("span",{className:"bom-form-radio-focus"},_react["default"].createElement(_icon.SystemIcon,{"aria-hidden":"true",className:"bom-form-radio-icon bom-form-radio-icon--checked",icon:_RadioSelected["default"],size:24}),_react["default"].createElement(_icon.SystemIcon,{"aria-hidden":"true",className:"bom-form-radio-icon bom-form-radio-icon--unchecked",icon:_RadioUnselected["default"],size:24})),_react["default"].createElement("span",{className:"bom-form-radio__label-text"},label)))}}]);return Radio}(_react["default"].PureComponent);(0,_defineProperty2["default"])(Radio,"defaultProps",{});var RadioWithRef=_react["default"].forwardRef(function(props,ref){return _react["default"].createElement(Radio,(0,_extends2["default"])({innerRef:ref},props))});RadioWithRef.displayName="Radio";var _default=RadioWithRef;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 _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 _RadioSelected=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/RadioSelected24"));var _RadioUnselected=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/RadioUnselected24"));var _classnames=_interopRequireDefault(require("classnames"));var _react=_interopRequireDefault(require("react"));var Radio=/*#__PURE__*/function(_React$PureComponent){(0,_inherits2["default"])(Radio,_React$PureComponent);function Radio(){(0,_classCallCheck2["default"])(this,Radio);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(Radio).apply(this,arguments))}(0,_createClass2["default"])(Radio,[{key:"render",value:function render(){var _ref=this.props,id=_ref.id,className=_ref.className,innerRef=_ref.innerRef,label=_ref.label,restProps=(0,_objectWithoutProperties2["default"])(_ref,["id","className","innerRef","label"]);var classes=(0,_classnames["default"])(className,"bom-form-radio");return _react["default"].createElement("div",{className:classes},_react["default"].createElement("input",(0,_extends2["default"])({className:"bom-form-radio__input","data-testid":"bom-radio-input",id:id,type:"radio",ref:innerRef},restProps)),_react["default"].createElement("label",{className:"bom-form-radio__label","data-testid":"bom-radio-label",htmlFor:id},_react["default"].createElement("span",{className:"bom-form-radio-focus"},_react["default"].createElement(_icon.SystemIcon,{"aria-hidden":true,className:"bom-form-radio-icon bom-form-radio-icon--checked",icon:_RadioSelected["default"],size:24}),_react["default"].createElement(_icon.SystemIcon,{"aria-hidden":true,className:"bom-form-radio-icon bom-form-radio-icon--unchecked",icon:_RadioUnselected["default"],size:24})),_react["default"].createElement("span",{className:"bom-form-radio__label-text"},label)))}}]);return Radio}(_react["default"].PureComponent);(0,_defineProperty2["default"])(Radio,"defaultProps",{});var RadioWithRef=_react["default"].forwardRef(function(props,ref){return _react["default"].createElement(Radio,(0,_extends2["default"])({innerRef:ref},props))});RadioWithRef.displayName="Radio";var _default=RadioWithRef;exports["default"]=_default; |
@@ -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 _Error=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/Error16"));var _Tick=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/Tick16"));var _classnames=_interopRequireDefault(require("classnames"));var _react=_interopRequireDefault(require("react"));var Status=/*#__PURE__*/function(_React$PureComponent){(0,_inherits2["default"])(Status,_React$PureComponent);function Status(){(0,_classCallCheck2["default"])(this,Status);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(Status).apply(this,arguments))}(0,_createClass2["default"])(Status,[{key:"render",value:function render(){var _ref=this.props,className=_ref.className,overrideIcon=_ref.icon,innerRef=_ref.innerRef,message=_ref.message,small=_ref.small,status=_ref.status,restProps=(0,_objectWithoutProperties2["default"])(_ref,["className","icon","innerRef","message","small","status"]);var classes=(0,_classnames["default"])(className,"bom-form-status",{"bom-form-status--error":status==="error","bom-form-status--success":status==="success","bom-form-status--small":small});var icon=overrideIcon;if(!icon){switch(status){case"error":icon=_Error["default"];break;case"success":icon=_Tick["default"];break;default:break;}}return _react["default"].createElement("div",(0,_extends2["default"])({className:classes,ref:innerRef},restProps),icon&&_react["default"].createElement("div",{className:"bom-form-status__icon"},_react["default"].createElement(_icon.SystemIcon,{icon:icon,size:16})),message&&_react["default"].createElement("div",{className:"bom-form-status__text"},message))}}]);return Status}(_react["default"].PureComponent);(0,_defineProperty2["default"])(Status,"defaultProps",{});var StatusWithRef=_react["default"].forwardRef(function(props,ref){return _react["default"].createElement(Status,(0,_extends2["default"])({innerRef:ref},props))});StatusWithRef.displayName="Status";var _default=StatusWithRef;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 _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 _Error=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/Error16"));var _Tick=_interopRequireDefault(require("@ausbom/icon/lib/icons/system/Tick16"));var _classnames=_interopRequireDefault(require("classnames"));var _react=_interopRequireDefault(require("react"));var Status=/*#__PURE__*/function(_React$PureComponent){(0,_inherits2["default"])(Status,_React$PureComponent);function Status(){(0,_classCallCheck2["default"])(this,Status);return(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(Status).apply(this,arguments))}(0,_createClass2["default"])(Status,[{key:"render",value:function render(){var _ref=this.props,className=_ref.className,overrideIcon=_ref.icon,innerRef=_ref.innerRef,message=_ref.message,small=_ref.small,status=_ref.status,restProps=(0,_objectWithoutProperties2["default"])(_ref,["className","icon","innerRef","message","small","status"]);var classes=(0,_classnames["default"])(className,"bom-form-status",{"bom-form-status--error":status==="error","bom-form-status--success":status==="success","bom-form-status--small":small});var icon=overrideIcon;if(!icon){switch(status){case"error":icon=_Error["default"];break;case"success":icon=_Tick["default"];break;default:break;}}return _react["default"].createElement("div",(0,_extends2["default"])({className:classes,ref:innerRef},restProps),icon&&_react["default"].createElement("div",{className:"bom-form-status__icon"},_react["default"].createElement(_icon.SystemIcon,{"aria-hidden":true,icon:icon,size:16})),message&&_react["default"].createElement("div",{className:"bom-form-status__text"},message))}}]);return Status}(_react["default"].PureComponent);(0,_defineProperty2["default"])(Status,"defaultProps",{});var StatusWithRef=_react["default"].forwardRef(function(props,ref){return _react["default"].createElement(Status,(0,_extends2["default"])({innerRef:ref},props))});StatusWithRef.displayName="Status";var _default=StatusWithRef;exports["default"]=_default; |
{ | ||
"name": "@ausbom/form", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "", | ||
@@ -41,7 +41,7 @@ "keywords": [], | ||
"dependencies": { | ||
"@ausbom/button": "^0.3.15", | ||
"@ausbom/icon": "^0.7.1", | ||
"@ausbom/button": "^0.3.16", | ||
"@ausbom/icon": "^0.7.2", | ||
"@ausbom/styles": "^0.8.0" | ||
}, | ||
"gitHead": "b5d0c0ea030bcd4ebfcc0f932f9a4a9898f3b0cc" | ||
"gitHead": "0bb41622bdf84e61f307486f61542472513fc72d" | ||
} |
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
56982
Updated@ausbom/button@^0.3.16
Updated@ausbom/icon@^0.7.2