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

@af-utils/react-table

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@af-utils/react-table - npm Package Compare versions

Comparing version 0.0.12 to 0.0.13

8

lib/bundlesize.index.js

@@ -1,4 +0,4 @@

export const raw = 6994;
export const min = 3450;
export const minGz = 1504;
export const minBrotli = 1349;
export const raw = 6903;
export const min = 3419;
export const minGz = 1487;
export const minBrotli = 1333;

@@ -9,5 +9,5 @@ import { memo as t, useMemo as e } from "react";

import { css as a, cx as h } from "@af-utils/styled";
import { css as a, cx as d } from "@af-utils/styled";
import { jsx as d, jsxs as u, Fragment as m } from "react/jsx-runtime";
import { jsx as h, jsxs as u, Fragment as m } from "react/jsx-runtime";

@@ -33,10 +33,10 @@ const p = {

const w = /*#__PURE__*/ t((t => {
const b = /*#__PURE__*/ t((t => {
let {columns: e} = t;
/*#__PURE__*/
return d("colgroup", {
return h("colgroup", {
children: e.map((t => {
let {key: e, background: l, border: o, width: r} = t;
/*#__PURE__*/
return d("col", {
return h("col", {
style: {

@@ -52,3 +52,3 @@ width: r,

if ("production" !== process.env.NODE_ENV) var b = !1;
if ("production" !== process.env.NODE_ENV) var w = !1;

@@ -58,5 +58,5 @@ const g = t => {

const r = o.getRowData(e), s = o.components, n = o.getRowProps(l, e, r);
if ("production" !== process.env.NODE_ENV && !1 === b && !n.ref) throw b = !0, new Error("ref should be present in getRowProps return value");
if ("production" !== process.env.NODE_ENV && !1 === w && !n.ref) throw w = !0, new Error("ref should be present in getRowProps return value");
/*#__PURE__*/
return d(s.Tr, {
return h(s.Tr, {
...n,

@@ -66,5 +66,5 @@ children: r ? o.columns.map((t => {

/*#__PURE__*/
return d(s.Td, {
return h(s.Td, {
className: t.l,
children: /*#__PURE__*/ d(e, {
children: /*#__PURE__*/ h(e, {
row: r,

@@ -74,3 +74,3 @@ column: t

}, t.key);
})) : /*#__PURE__*/ d(s.CellForEmptyRow, {
})) : /*#__PURE__*/ h(s.CellForEmptyRow, {
data: o

@@ -98,3 +98,3 @@ })

/*#__PURE__*/
return d(e.components.Td, {
return h(e.components.Td, {
colSpan: e.columns.length,

@@ -110,6 +110,6 @@ children: " "

let {columns: e, components: l} = t;
return e.map(((t, e) => /*#__PURE__*/ d(l.Th, {
return e.map(((t, e) => /*#__PURE__*/ h(l.Th, {
style: t.t,
className: t.l,
children: /*#__PURE__*/ d(l.HeaderCell, {
children: /*#__PURE__*/ h(l.HeaderCell, {
column: t,

@@ -123,6 +123,6 @@ i: e

let {columns: e, components: l} = t;
return e.map(((t, e) => /*#__PURE__*/ d(l.Td, {
return e.map(((t, e) => /*#__PURE__*/ h(l.Td, {
style: t.t,
className: t.l,
children: /*#__PURE__*/ d(l.FooterCell, {
children: /*#__PURE__*/ h(l.FooterCell, {
column: t,

@@ -135,4 +135,3 @@ i: e

OriginalRow: g
}, v = [ n ], x = [ i, c ], N = a("overflow: auto", "position: relative", // https://github.com/nowaalex/af-virtual-scroll/issues/26
"will-change: scroll-position"), T = a("top: 0"), R = a("visibility: hidden"), C = a("position: sticky"), k = h(R, T, a("position: absolute", "left: 0", "width: 1px")), D = a("table-layout: fixed", "min-width: 100%"), F = h(C, T), I = h(C, a("bottom: 0"));
}, v = [ n ], x = [ i, c ], N = a("overflow: auto", "position: relative"), T = a("top: 0"), R = a("visibility: hidden"), C = a("position: sticky"), k = d(R, T, a("position: absolute", "left: 0", "width: 1px")), D = a("table-layout: fixed", "min-width: 100%"), F = d(C, T), I = d(C, a("bottom: 0"));

@@ -151,3 +150,3 @@ /* Creating classes for hidden classes optimization */

/*#__PURE__*/
return d("div", {
return h("div", {
className: k,

@@ -159,7 +158,7 @@ style: {

}, E = t => {
let {model: l, columns: o, getKey: n, getRowData: i, getRowProps: c, components: a, headless: p, footer: b, className: g, tabIndex: T = -1, ...C} = t;
let {model: l, columns: o, getKey: n, getRowData: i, getRowProps: c, components: a, headless: p, footer: w, className: g, tabIndex: T = -1, ...C} = t;
const k = e((() => Object.assign({}, y, a)), [ a ]), E = e((() => o.map((t => new f(t)))), [ o ]), H = e((() => {
const t = new P(E, k, i, c);
return e => /*#__PURE__*/ u(m, {
children: [ /*#__PURE__*/ d("tr", {
children: [ /*#__PURE__*/ h("tr", {
className: R,

@@ -174,7 +173,7 @@ style: {

return u("div", {
className: h(N, g),
className: d(N, g),
ref: l.setOuterNode,
tabIndex: T,
...C,
children: [ /*#__PURE__*/ d(s, {
children: [ /*#__PURE__*/ h(s, {
model: l,

@@ -185,8 +184,8 @@ events: v,

className: D,
children: [ /*#__PURE__*/ d(w, {
children: [ /*#__PURE__*/ h(b, {
columns: E
}), p ? null : /*#__PURE__*/ d(k.Thead, {
}), p ? null : /*#__PURE__*/ h(k.Thead, {
className: F,
children: /*#__PURE__*/ d(k.Tr, {
children: /*#__PURE__*/ d(k.HeaderCells, {
children: /*#__PURE__*/ h(k.Tr, {
children: /*#__PURE__*/ h(k.HeaderCells, {
columns: E,

@@ -196,4 +195,4 @@ components: k

})
}), /*#__PURE__*/ d(k.Tbody, {
children: /*#__PURE__*/ d(s, {
}), /*#__PURE__*/ h(k.Tbody, {
children: /*#__PURE__*/ h(s, {
model: l,

@@ -203,6 +202,6 @@ events: x,

})
}), b ? /*#__PURE__*/ d(k.Tfoot, {
}), w ? /*#__PURE__*/ h(k.Tfoot, {
className: I,
children: /*#__PURE__*/ d(k.Tr, {
children: /*#__PURE__*/ d(k.FooterCells, {
children: /*#__PURE__*/ h(k.Tr, {
children: /*#__PURE__*/ h(k.FooterCells, {
columns: E,

@@ -209,0 +208,0 @@ components: k

{
"name": "@af-utils/react-table",
"private": false,
"version": "0.0.12",
"version": "0.0.13",
"description": "React components for rendering large scrollable data",

@@ -6,0 +6,0 @@ "repository": "https://github.com/nowaalex/af-virtual-scroll.git",

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