@af-utils/react-virtual-list
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -1,4 +0,4 @@ | ||
export const raw = 2218; | ||
export const min = 1101; | ||
export const minGz = 613; | ||
export const minBrotli = 532; | ||
export const raw = 2127; | ||
export const min = 1070; | ||
export const minGz = 599; | ||
export const minBrotli = 520; |
@@ -9,8 +9,7 @@ import e from "prop-types"; | ||
import { jsxs as d, jsx as n, Fragment as m } from "react/jsx-runtime"; | ||
import { jsxs as d, jsx as m, Fragment as n } from "react/jsx-runtime"; | ||
const c = o("overflow: auto", "position: relative", // https://github.com/nowaalex/af-virtual-scroll/issues/26 | ||
"will-change: scroll-position"), p = o("visibility: hidden"), h = o("position: absolute"), f = o("height: 1px"), u = o("width: 1px"), v = a(c, o("display: flex")), x = a(h, p, u, o("top: 0")), y = a(h, p, f, o("left: 0")), b = a(p, u), g = a(p, f, o("flex-shrink: 0")), N = [ "height", c, x, b ], w = [ "width", v, y, g ], I = [ l, r ], D = [ s ], K = e => { | ||
const c = o("overflow: auto", "position: relative"), p = o("visibility: hidden"), h = o("position: absolute"), f = o("height: 1px"), u = o("width: 1px"), v = a(c, o("display: flex")), x = a(h, p, u, o("top: 0")), y = a(h, p, f, o("left: 0")), b = a(p, u), N = a(p, f, o("flex-shrink: 0")), g = [ "height", c, x, b ], w = [ "width", v, y, N ], I = [ l, r ], D = [ s ], K = e => { | ||
let {model: l, children: r, className: s, itemData: o, getKey: c, tabIndex: p = -1, ...h} = e; | ||
const [f, u, v, x] = l.horizontal ? w : N; | ||
const [f, u, v, x] = l.horizontal ? w : g; | ||
/*#__PURE__*/ | ||
@@ -22,3 +21,3 @@ return d("div", { | ||
...h, | ||
children: [ /*#__PURE__*/ n(t, { | ||
children: [ /*#__PURE__*/ m(t, { | ||
model: l, | ||
@@ -29,3 +28,3 @@ events: D, | ||
/*#__PURE__*/ | ||
return n("div", { | ||
return m("div", { | ||
className: v, | ||
@@ -37,3 +36,3 @@ style: { | ||
} | ||
}), /*#__PURE__*/ n(t, { | ||
}), /*#__PURE__*/ m(t, { | ||
model: l, | ||
@@ -44,4 +43,4 @@ events: I, | ||
/*#__PURE__*/ | ||
return d(m, { | ||
children: [ /*#__PURE__*/ n("div", { | ||
return d(n, { | ||
children: [ /*#__PURE__*/ m("div", { | ||
className: x, | ||
@@ -48,0 +47,0 @@ style: { |
{ | ||
"name": "@af-utils/react-virtual-list", | ||
"private": false, | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"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
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
9426
59