terra-props-table
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -7,2 +7,7 @@ Changelog | ||
2.4.0 - (April 15, 2018) | ||
------------------ | ||
### Changed | ||
* Fixed code blocks in the Description column not line wrapping | ||
2.3.0 - (March 30, 2018) | ||
@@ -9,0 +14,0 @@ ------------------ |
@@ -12,3 +12,3 @@ # Dependency Information | ||
| react-docgen | ^2.15.0 | -- | A CLI and toolkit to extract information from React components for documentation generation. | | ||
| terra-markdown | ^2.2.0 | ^16.2.0 | terra-markdown | | ||
| terra-markdown | ^2.3.0 | ^16.2.0 | terra-markdown | | ||
@@ -15,0 +15,0 @@ ## peerDependencies |
@@ -7,2 +7,4 @@ 'use strict'; | ||
var _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; }; | ||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; /* eslint-disable import/no-extraneous-dependencies */ | ||
@@ -149,2 +151,3 @@ | ||
var tableRowClass = cx('prop-table-row'); | ||
var tableClassNames = cx(['props-table', customProps.className]); | ||
@@ -162,3 +165,3 @@ return _react2.default.createElement( | ||
'table', | ||
customProps, | ||
_extends({}, customProps, { className: tableClassNames }), | ||
_react2.default.createElement( | ||
@@ -165,0 +168,0 @@ 'thead', |
{ | ||
"name": "terra-props-table", | ||
"main": "lib/PropsTable.js", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "terra-props-table", | ||
@@ -43,4 +43,5 @@ "repository": { | ||
"compile:build": "babel src --out-dir lib --copy-files", | ||
"lint": "npm run lint:js", | ||
"lint": "npm run lint:js && npm run lint:scss", | ||
"lint:js": "eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", | ||
"lint:scss": "stylelint src/**/*.scss", | ||
"test": "npm run test:jest && npm run test:nightwatch", | ||
@@ -47,0 +48,0 @@ "test:jest": "jest ./tests/jest/* --config ../../jestconfig.json", |
@@ -74,2 +74,6 @@ /* eslint-disable import/no-extraneous-dependencies */ | ||
const tableRowClass = cx('prop-table-row'); | ||
const tableClassNames = cx([ | ||
'props-table', | ||
customProps.className, | ||
]); | ||
@@ -79,3 +83,3 @@ return ( | ||
<h2>{componentName} Props</h2> | ||
<table {...customProps}> | ||
<table {...customProps} className={tableClassNames}> | ||
<thead> | ||
@@ -82,0 +86,0 @@ <tr> |
@@ -7,2 +7,3 @@ import React from 'react'; | ||
* An example of type string markup. | ||
* `This component contains a very long section of code in it's description column. This component contains a very long section of code in it's description column.` | ||
*/ | ||
@@ -16,2 +17,3 @@ string: PropTypes.string.isRequired, | ||
* An example of type boolean markup. | ||
* ```This component contains a very long preformatted section in it's description column. This component contains a very long preformatted section in it's description column.``` | ||
*/ | ||
@@ -18,0 +20,0 @@ bool: PropTypes.bool, |
Sorry, the diff of this file is not supported yet
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
51374
763