@pingux/astro 2.57.0-alpha.5 → 2.57.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,8 +25,8 @@ var _react = _interopRequireWildcard(require("react"));
|
|
25
25
|
var _reactAria = require("react-aria");
|
26
26
|
var _i18n = require("@react-aria/i18n");
|
27
27
|
var _listbox = require("@react-aria/listbox");
|
28
|
-
var
|
29
|
-
var
|
28
|
+
var _listboxLayout = require("listbox-layout");
|
29
|
+
var _listboxVirtualizer = require("listbox-virtualizer");
|
30
30
|
var _hooks = require("../../hooks");
|
31
31
|
var _Loader = _interopRequireDefault(require("../Loader"));
|
32
32
|
var _index = require("./index");
|
@@ -50,7 +50,7 @@ function useListBoxLayout(state) {
|
|
50
50
|
sensitivity: 'base'
|
51
51
|
});
|
52
52
|
var layout = (0, _react.useMemo)(function () {
|
53
|
-
return new
|
53
|
+
return new _listboxLayout.ListLayout({
|
54
54
|
estimatedRowHeight: 41,
|
55
55
|
estimatedHeadingHeight: 26,
|
56
56
|
padding: 4,
|
@@ -145,7 +145,7 @@ var ListBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
145
145
|
return c.viewType === 'item';
|
146
146
|
})));
|
147
147
|
}
|
148
|
-
return (0, _react2.jsx)(
|
148
|
+
return (0, _react2.jsx)(_listboxVirtualizer.VirtualizerItem, {
|
149
149
|
key: reusableView.key,
|
150
150
|
reusableView: reusableView,
|
151
151
|
parent: parent
|
@@ -153,7 +153,7 @@ var ListBox = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
153
153
|
};
|
154
154
|
return (0, _react2.jsx)(_ListBoxContext.ListBoxContext.Provider, {
|
155
155
|
value: state
|
156
|
-
}, (0, _react2.jsx)(
|
156
|
+
}, (0, _react2.jsx)(_listboxVirtualizer.Virtualizer, (0, _extends2["default"])({}, (0, _reactAria.mergeProps)(listBoxProps, others), {
|
157
157
|
autoFocus: hasAutoFocus,
|
158
158
|
style: {
|
159
159
|
outline: 'none'
|
@@ -17,8 +17,8 @@ import React, { forwardRef, useImperativeHandle, useMemo } from 'react';
|
|
17
17
|
import { mergeProps } from 'react-aria';
|
18
18
|
import { useCollator } from '@react-aria/i18n';
|
19
19
|
import { useListBox } from '@react-aria/listbox';
|
20
|
-
import {
|
21
|
-
import {
|
20
|
+
import { ListLayout } from 'listbox-layout';
|
21
|
+
import { Virtualizer, VirtualizerItem } from 'listbox-virtualizer';
|
22
22
|
import { useLocalOrForwardRef } from '../../hooks';
|
23
23
|
import Loader from '../Loader';
|
24
24
|
import { Option } from './index';
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pingux/astro",
|
3
|
-
"version": "2.57.0-alpha.
|
3
|
+
"version": "2.57.0-alpha.6",
|
4
4
|
"description": "React component library for Ping Identity's design system",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -105,6 +105,8 @@
|
|
105
105
|
"classnames": "^2.2.6",
|
106
106
|
"countries-list": "^2.6.1",
|
107
107
|
"emotion-normalize": "^11.0.1",
|
108
|
+
"listbox-layout": "npm:@react-stately/layout@3.9.0",
|
109
|
+
"listbox-virtualizer": "npm:@react-aria/virtualizer@3.6.0",
|
108
110
|
"lodash": "^4.17.21",
|
109
111
|
"moment": "^2.29.4",
|
110
112
|
"pluralize": "^8.0.0",
|