@hashicorp/hashi-basic-table
Advanced tools
Comparing version 2.0.0-alpha.0 to 2.0.0
'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var _require = require('preact'), | ||
h = _require.h; | ||
var React = _interopDefault(require('react')); | ||
var _require2 = require('reshape-preact-components'), | ||
decode = _require2.decode; | ||
function BasicTable(_ref) { | ||
var rows = _ref.data.rows; | ||
return React.createElement("div", { | ||
className: "g-basic-table" | ||
}, React.createElement("ul", null, rows.map(function (item, index) { | ||
return React.createElement("li", { | ||
key: "row-".concat(index) | ||
}, React.createElement("span", null, item.time_slot), React.createElement("span", null, item.description)); | ||
}))); | ||
var _data = _ref._data; | ||
var data = decode(_data).rows; | ||
return h( | ||
'div', | ||
{ 'class': 'g-basic-table' }, | ||
h( | ||
'ul', | ||
null, | ||
data.map(function (item, index) { | ||
return h( | ||
'li', | ||
{ key: 'row-' + index }, | ||
h( | ||
'span', | ||
null, | ||
item.time_slot | ||
), | ||
h( | ||
'span', | ||
null, | ||
item.description | ||
) | ||
); | ||
}) | ||
) | ||
); | ||
} | ||
module.exports = BasicTable; |
{ | ||
"name": "@hashicorp/hashi-basic-table", | ||
"description": "simple table", | ||
"version": "2.0.0-alpha.0", | ||
"version": "2.0.0", | ||
"author": "Hashicorp - Jeff Escalante", | ||
"dependencies": { | ||
"react": "^16.8.6" | ||
"main": "dist", | ||
"peerDependencies": { | ||
"preact": "^8.2.6", | ||
"reshape-preact-components": "~0.6.0" | ||
}, | ||
"main": "dist", | ||
"publishConfig": { | ||
@@ -16,3 +17,3 @@ "access": "public" | ||
}, | ||
"gitHead": "5f9b5a0487251e5846a3eabd9ff839d3fe7e1e31" | ||
"gitHead": "bce95041ba417df9086f3d9f4e7bc2bb5efe1af7" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1753
56
1
2
+ Addedparse5@2.2.3(transitive)
+ Addedpreact@8.5.3(transitive)
+ Addedpreact-render-to-string@3.8.2(transitive)
+ Addedpretty-format@3.8.0(transitive)
+ Addedreshape-parser@0.2.1(transitive)
+ Addedreshape-plugin-util@0.2.1(transitive)
+ Addedreshape-preact-components@0.6.0(transitive)
+ Addedwhen@3.7.8(transitive)
- Removedreact@^16.8.6
- Removedjs-tokens@4.0.0(transitive)
- Removedloose-envify@1.4.0(transitive)
- Removedobject-assign@4.1.1(transitive)
- Removedprop-types@15.8.1(transitive)
- Removedreact@16.14.0(transitive)
- Removedreact-is@16.13.1(transitive)