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

react-inclusive-sortable-table

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-inclusive-sortable-table - npm Package Compare versions

Comparing version 0.1.1 to 0.1.3

6

dist/index.es.js

@@ -215,3 +215,4 @@ import React, { Component } from 'react';

sortable = _props.sortable,
rowHeaders = _props.rowHeaders;
rowHeaders = _props.rowHeaders,
className = _props.className;

@@ -221,3 +222,3 @@

'div',
null,
{ className: className },
React.createElement(

@@ -316,2 +317,3 @@ 'div',

caption: PropTypes.string,
className: PropTypes.string,
headers: PropTypes.array.isRequired,

@@ -318,0 +320,0 @@ rowHeaders: PropTypes.bool,

@@ -220,3 +220,4 @@ 'use strict';

sortable = _props.sortable,
rowHeaders = _props.rowHeaders;
rowHeaders = _props.rowHeaders,
className = _props.className;

@@ -226,3 +227,3 @@

'div',
null,
{ className: className },
React__default.createElement(

@@ -321,2 +322,3 @@ 'div',

caption: PropTypes.string,
className: PropTypes.string,
headers: PropTypes.array.isRequired,

@@ -323,0 +325,0 @@ rowHeaders: PropTypes.bool,

{
"name": "react-inclusive-sortable-table",
"version": "0.1.1",
"version": "0.1.3",
"description": "An accessible, sortable table based off of Heydon Pickering's Sortable Table from Inclusive Components.",

@@ -5,0 +5,0 @@ "author": "benjamingrobertson",

@@ -22,4 +22,43 @@ # react-inclusive-sortable-table

render () {
const headers = ['Site', 'Founder', 'Inception', 'URL'];
const rows = [
[
'CSS Tricks',
'Chris Coyier',
'2007',
<a href="http://css-tricks.com">http://css-tricks.com</a>
],
[
'Smashing Magazine',
'Vitaly Friedman and Sven Lennartz',
'2006',
<a href="https://www.smashingmagazine.com/">
https://www.smashingmagazine.com/
</a>
],
[
'A List Apart',
'Jeffrey Zeldman',
'1998',
<a href="https://alistapart.com/">https://alistapart.com/</a>
],
[
'codrops',
'Manoela Ilic and Pedro Botelho',
'2009',
<a href="https://tympanus.net/codrops/">
https://tympanus.net/codrops/
</a>
]
];
return (
<Table />
<Table
rows={rows}
headers={headers}
rowHeaders
caption="Front end websites"
sortable
/>
)

@@ -26,0 +65,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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