@af-utils/react-virtual-list
Advanced tools
Comparing version 0.0.12 to 0.0.13
@@ -1,4 +0,4 @@ | ||
export const raw = 2127; | ||
export const min = 1070; | ||
export const minGz = 599; | ||
export const minBrotli = 520; | ||
export const raw = 2216; | ||
export const min = 1123; | ||
export const minGz = 622; | ||
export const minBrotli = 543; |
@@ -7,18 +7,19 @@ import e from "prop-types"; | ||
import { css as o, cx as a } from "@af-utils/styled"; | ||
import { css as a, cx as o } from "@af-utils/styled"; | ||
import { jsxs as d, jsx as m, Fragment as n } from "react/jsx-runtime"; | ||
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 : g; | ||
const c = a("overflow: auto", "position: relative"), h = a("visibility: hidden"), p = a("position: absolute"), f = a("height: 1px"), u = a("width: 1px"), v = o(c, a("display: flex")), x = o(p, h, u, a("top: 0")), y = o(p, h, f, a("left: 0")), g = o(h, u), b = o(h, f, a("flex-shrink: 0")), N = [ "height", c, x, g ], w = [ "width", v, y, b ], I = [ l, r ], D = [ s ], H = e => { | ||
let {model: l, children: r, className: s, itemData: a, getKey: c, tabIndex: h = -1, ...p} = e; | ||
const [f, u, v, x] = l.horizontal ? w : N; | ||
/*#__PURE__*/ | ||
return d("div", { | ||
className: a(u, s), | ||
className: o(u, s), | ||
ref: l.setOuterNode, | ||
tabIndex: p, | ||
...h, | ||
tabIndex: h, | ||
...p, | ||
children: [ /*#__PURE__*/ m(t, { | ||
model: l, | ||
events: D, | ||
getHash: () => l.scrollSize, | ||
children: e => { | ||
@@ -37,2 +38,3 @@ let {scrollSize: t} = e; | ||
events: I, | ||
getHash: () => l.from + "_" + l.to, | ||
children: e => { | ||
@@ -47,3 +49,3 @@ let {from: t} = e; | ||
} | ||
}), i(l, r, o, c) ] | ||
}), i(l, r, a, c) ] | ||
}); | ||
@@ -55,3 +57,3 @@ } | ||
"production" !== process.env.NODE_ENV && (K.propTypes = { | ||
"production" !== process.env.NODE_ENV && (H.propTypes = { | ||
model: e.object.isRequired, | ||
@@ -65,3 +67,3 @@ children: e.elementType.isRequired, | ||
export { K as List }; | ||
export { H as List }; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@af-utils/react-virtual-list", | ||
"private": false, | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "React components for rendering large scrollable data", | ||
@@ -65,4 +65,4 @@ "repository": "https://github.com/nowaalex/af-virtual-scroll.git", | ||
"peerDependencies": { | ||
"@af-utils/react-virtual-headless": "^0.0.10", | ||
"@af-utils/styled": "^0.0.6", | ||
"@af-utils/react-virtual-headless": "^0.0.11", | ||
"@af-utils/styled": "^0.0.7", | ||
"prop-types": "^15.8.0", | ||
@@ -69,0 +69,0 @@ "react": "^17.0.0 || ^18.1.0" |
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
9812
61