UNPKG

@payfit/unity-components

Version:

15 lines (14 loc) 464 B
import * as e from "@payfit/unity-themes/tokens/common/spacings.json"; import { ListLayout as t } from "react-aria-components/Virtualizer"; //#region src/components/select-list/constants.ts var n = (e) => parseInt(e.replace("px", "").trim(), 10), r = { layout: t, layoutOptions: { estimatedRowHeight: n(e.spacing[500].$value), estimatedHeadingHeight: n(e.spacing[400].$value), gap: 0, padding: 0 } }; //#endregion export { r as VIRTUALIZATION_CONFIG };