@pingux/astro 2.78.0 → 2.79.0-alpha.0
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.
- package/lib/cjs/components/ListView/ListView.stories.d.ts +4 -3
- package/lib/cjs/components/ListView/ListViewContext.d.ts +2 -1
- package/lib/cjs/components/OverlayPanel/OverlayPanel.stories.js +2 -0
- package/lib/cjs/types/listView.d.ts +2 -1
- package/lib/components/OverlayPanel/OverlayPanel.stories.js +2 -0
- package/package.json +1 -1
@@ -133,11 +133,12 @@ declare const _default: {
|
|
133
133
|
};
|
134
134
|
export default _default;
|
135
135
|
export interface ExampleItemProps {
|
136
|
-
key
|
137
|
-
name
|
136
|
+
key: Key;
|
137
|
+
name: string;
|
138
138
|
textValue?: string;
|
139
139
|
subtext?: string;
|
140
|
-
id
|
140
|
+
id: string | number;
|
141
|
+
hasSeparator?: boolean;
|
141
142
|
}
|
142
143
|
export declare const Default: ({ ...args }: {
|
143
144
|
[x: string]: any;
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import React from 'react';
|
2
2
|
import { ListViewState } from '../../types/listView';
|
3
|
+
import { ExampleItemProps } from './ListView.stories';
|
3
4
|
interface ListViewContextType<T> {
|
4
5
|
state: ListViewState<T>;
|
5
6
|
}
|
6
|
-
export declare const ListViewContext: React.Context<ListViewContextType<
|
7
|
+
export declare const ListViewContext: React.Context<ListViewContextType<ExampleItemProps>>;
|
7
8
|
export {};
|
@@ -2,8 +2,9 @@ import { Dispatch, Key, ReactNode, SetStateAction } from 'react';
|
|
2
2
|
import { FocusManager } from 'react-aria';
|
3
3
|
import { TreeProps, TreeState } from 'react-stately';
|
4
4
|
import type { GridNode } from '@react-types/grid';
|
5
|
+
import { ExampleItemProps } from '../components/ListView/ListView.stories';
|
5
6
|
export type SelectionOptions = 'expansion' | 'single' | 'multiple' | 'none';
|
6
|
-
export interface ListViewProps extends Omit<TreeProps<
|
7
|
+
export interface ListViewProps extends Omit<TreeProps<ExampleItemProps>, 'selectionMode'> {
|
7
8
|
selectionStyle?: string;
|
8
9
|
isHoverable?: boolean;
|
9
10
|
loadingState?: string;
|