Skip to content

Commit d76fb3a

Browse files
Export components props (#552)
1 parent 5db63f8 commit d76fb3a

File tree

29 files changed

+113
-51
lines changed

29 files changed

+113
-51
lines changed

src/components/CustomAGGrid/custom-aggrid.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface CustomAGGGridStyleProps {
2222
showOverlay?: boolean;
2323
}
2424

25-
interface CustomAGGridProps extends AgGridReactProps, CustomAGGGridStyleProps {}
25+
export interface CustomAGGridProps extends AgGridReactProps, CustomAGGGridStyleProps {}
2626

2727
// We have to define a minWidth to column to activate this feature
2828
const onColumnResized = (params: ColumnResizedEvent) => {

src/components/DirectoryItemSelector/directory-item-selector.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function updatedTree(prevRoots: any[], prevMap: any, nodeId: UUID | null, childr
130130
return [nextRoots, nextMap];
131131
}
132132

133-
interface DirectoryItemSelectorProps extends TreeViewFinderProps {
133+
export interface DirectoryItemSelectorProps extends TreeViewFinderProps {
134134
open: boolean;
135135
types: string[];
136136
equipmentTypes?: string[];
@@ -165,7 +165,7 @@ function DirectoryItemSelector({
165165
itemFilter,
166166
expanded,
167167
...otherTreeViewFinderProps
168-
}: DirectoryItemSelectorProps) {
168+
}: Readonly<DirectoryItemSelectorProps>) {
169169
const [data, setData] = useState<TreeViewFinderNodeProps[]>([]);
170170
const [rootDirectories, setRootDirectories] = useState<any[]>([]);
171171
const nodeMap = useRef<any>({});

src/components/ElementSearchDialog/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
66
*/
77
export { default as ElementSearchDialog } from './element-search-dialog';
8+
export type { ElementSearchDialogProps } from './element-search-dialog';
89
export { default as TagRenderer } from './tag-renderer';
910
export type { TagRendererProps } from './tag-renderer';
1011
export { ElementSearchInput } from './element-search-input';

src/components/ExpandableGroup/expandable-group.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ export const styles = {
4040
}),
4141
};
4242

43-
interface ExpandableGroupProps extends PropsWithChildren {
43+
export interface ExpandableGroupProps extends PropsWithChildren {
4444
renderHeader: ReactNode;
4545
}
4646

47-
function ExpandableGroup({ renderHeader, children }: ExpandableGroupProps) {
47+
function ExpandableGroup({ renderHeader, children }: Readonly<ExpandableGroupProps>) {
4848
const [mouseHover, setMouseHover] = useState(false);
4949

5050
return (

src/components/ExpandableGroup/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
import ExpandableGroup from './expandable-group';
99

1010
export default ExpandableGroup;
11+
export type { ExpandableGroupProps } from './expandable-group';

src/components/FlatParameters/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
import defaultFlatParameters from './FlatParameters';
88

99
export default defaultFlatParameters;
10+
export type { FlatParametersProps, Parameter } from './FlatParameters';

src/components/MuiVirtualizedTable/index.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,12 @@
55
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
66
*/
77

8-
export { default as MuiVirtualizedTable, generateMuiVirtualizedTableClass } from './MuiVirtualizedTable';
8+
export {
9+
default as MuiVirtualizedTable,
10+
generateMuiVirtualizedTableClass,
11+
DEFAULT_CELL_PADDING,
12+
DEFAULT_HEADER_HEIGHT,
13+
DEFAULT_ROW_HEIGHT,
14+
} from './MuiVirtualizedTable';
15+
export type { MuiVirtualizedTableProps, CustomColumnProps, RowProps } from './MuiVirtualizedTable';
916
export { KeyedColumnsRowIndexer, ChangeWays } from './KeyedColumnsRowIndexer';

src/components/MultipleSelectionDialog/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
import defaultMultipleSelectionDialog from './MultipleSelectionDialog';
88

99
export default defaultMultipleSelectionDialog;
10+
export type { MultipleSelectionDialogProps } from './MultipleSelectionDialog';

src/components/OverflowableText/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
import defaultOverflowableText from './overflowable-text';
88

99
export default defaultOverflowableText;
10+
export type { OverflowableTextProps } from './overflowable-text';

src/components/ReportViewer/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
import defaultReportViewer from './report-viewer';
88

99
export default defaultReportViewer;
10+
export type { ReportViewerProps } from './report-viewer';

0 commit comments

Comments
 (0)