Export more UI components via extensions-api (#1285)

* export more UI components via extensions-api, touches #1277 #1284

Signed-off-by: Roman <ixrock@gmail.com>

* fix build, added table + notification-store exports

Signed-off-by: Roman <ixrock@gmail.com>
This commit is contained in:
Roman authored and GitHub committed 2020-11-09 15:16:32 +02:00
1 parent 85f0ef8c2e
commit f69f8c793f
31 files changed
+138 -120

No files matched your search

@@ -2,11 +2,11 @@ import React from "react";
import { DrawerItem, DrawerItemProps } from "./drawer-item";
import { Badge } from "../badge";
interface Props extends DrawerItemProps {
export interface DrawerItemLabelsProps extends DrawerItemProps {
labels: string[];
}
export function DrawerItemLabels(props: Props) {
export function DrawerItemLabels(props: DrawerItemLabelsProps) {
const { labels, ...itemProps } = props;
if (!labels || !labels.length) {
return null;
@@ -5,14 +5,14 @@ import { Icon } from "../icon";
import { cssNames } from "../../utils";
import { _i18n } from "../../i18n";
interface Props {
export interface DrawerParamTogglerProps {
label: string | number;
}
interface State {
open?: boolean;
}
export class DrawerParamToggler extends React.Component<Props, State> {
export class DrawerParamToggler extends React.Component<DrawerParamTogglerProps, State> {
public state: State = {}
toggle = () => {
@@ -2,12 +2,12 @@ import "./drawer-title.scss";
import React from "react";
import { cssNames } from "../../utils";
interface Props {
export interface DrawerTitleProps {
className?: string;
title?: React.ReactNode;
}
export class DrawerTitle extends React.Component<Props> {
export class DrawerTitle extends React.Component<DrawerTitleProps> {
render() {
const { title, children, className } = this.props
return (