@elliemae/ds-virtual-list 2.3.0-alpha.8 → 2.3.0-alpha.9

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.
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { DSVirtualListProps } from './index.d';
3
+ declare const DSVirtualList: React.ComponentType<DSVirtualListProps>;
4
+ declare const DSVirtualListWithSchema: any;
5
+ export { DSVirtualList, DSVirtualListWithSchema };
@@ -0,0 +1,3 @@
1
+ export declare const LIST_DATA_TESTID: {
2
+ CONTAINER: string;
3
+ };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { VirtualItem } from 'react-virtual';
3
+ import { DSVirtualListProps } from '../index.d';
4
+ export declare const useVirtualList: (config: DSVirtualListProps) => {
5
+ parentRef: React.MutableRefObject<HTMLDivElement>;
6
+ virtualItems: VirtualItem[];
7
+ filteredChildren: React.ReactNode[];
8
+ totalSize: number;
9
+ };
@@ -0,0 +1 @@
1
+ export * from './VirtualList';
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { DSVirtualListProps } from '../index.d';
3
+ /**
4
+ * List component: renders a list of items
5
+ * Accessibility: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/List_role
6
+ *
7
+ * @param {DSVirtualListProps} props
8
+ * @returns JSX
9
+ */
10
+ export declare const List: React.FC<DSVirtualListProps>;
@@ -0,0 +1,20 @@
1
+ /// <reference path="../../../../shared/typings/react-desc.d.ts" />
2
+ export declare const DSVirtualListSchema: {
3
+ children: {
4
+ deprecated: import("react-desc").PropTypesDescValidator;
5
+ };
6
+ actionRef: {
7
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
8
+ deprecated: import("react-desc").PropTypesDescValidator;
9
+ };
10
+ isRequired: import("react-desc").PropTypesDescValue;
11
+ };
12
+ };
13
+ export declare const defaultProps: {
14
+ children: never[];
15
+ actionRef: {
16
+ current: {
17
+ scrollTo: (...args: any[]) => void;
18
+ };
19
+ };
20
+ };
@@ -0,0 +1,5 @@
1
+ export declare const StyledContainerContentList: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const StyledVirtualList: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
3
+ height: string;
4
+ }, never>;
5
+ export declare const VirtualItemStyled: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-virtual-list",
3
- "version": "2.3.0-alpha.8",
3
+ "version": "2.3.0-alpha.9",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Virtual List",
6
6
  "files": [
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "author": "ICE MT",
55
55
  "dependencies": {
56
- "@elliemae/ds-props-helpers": "2.3.0-alpha.8",
56
+ "@elliemae/ds-props-helpers": "2.3.0-alpha.9",
57
57
  "prop-types": "~15.7.2",
58
58
  "react-desc": "~4.1.3",
59
59
  "react-virtual": "~2.3.2"