@react-ag-components/help
Advanced tools
+4
-2
@@ -34,2 +34,4 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
| var label = this.props.label || 'Help'; | ||
| var anchorClassName = this.props.anchorClassName || ''; | ||
| var contentClassName = this.props.contentClassName || ''; | ||
| return React.createElement( | ||
@@ -42,3 +44,3 @@ 'span', | ||
| return _this2.onClick(); | ||
| }, href: 'javascript:void(0)', className: 'buttonControl anchor', 'aria-controls': 't1', 'aria-expanded': 'true' }, | ||
| }, href: 'javascript:void(0)', className: '{anchorClassName}', 'aria-controls': 't1', 'aria-expanded': 'true' }, | ||
| React.createElement( | ||
@@ -52,3 +54,3 @@ 'span', | ||
| 'span', | ||
| { className: 'topic', role: 'region', tabIndex: '0', 'data-id': 'help-description' }, | ||
| { className: 'topic {contentClassName}', role: 'region', tabIndex: '0', 'data-id': 'help-description' }, | ||
| React.createElement( | ||
@@ -55,0 +57,0 @@ 'span', |
+4
-2
@@ -43,2 +43,4 @@ 'use strict'; | ||
| var label = this.props.label || 'Help'; | ||
| var anchorClassName = this.props.anchorClassName || ''; | ||
| var contentClassName = this.props.contentClassName || ''; | ||
| return _react2.default.createElement( | ||
@@ -51,3 +53,3 @@ 'span', | ||
| return _this2.onClick(); | ||
| }, href: 'javascript:void(0)', className: 'buttonControl anchor', 'aria-controls': 't1', 'aria-expanded': 'true' }, | ||
| }, href: 'javascript:void(0)', className: '{anchorClassName}', 'aria-controls': 't1', 'aria-expanded': 'true' }, | ||
| _react2.default.createElement( | ||
@@ -61,3 +63,3 @@ 'span', | ||
| 'span', | ||
| { className: 'topic', role: 'region', tabIndex: '0', 'data-id': 'help-description' }, | ||
| { className: 'topic {contentClassName}', role: 'region', tabIndex: '0', 'data-id': 'help-description' }, | ||
| _react2.default.createElement( | ||
@@ -64,0 +66,0 @@ 'span', |
+1
-1
| { | ||
| "name": "@react-ag-components/help", | ||
| "version": "0.0.2", | ||
| "version": "0.0.3", | ||
| "description": "React Help component", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
29496
0.94%216
1.89%