Skip to content

Commit 10bc6f5

Browse files
committed
add Table in dist
1 parent 6d17d5f commit 10bc6f5

File tree

24 files changed

+1890
-966
lines changed

24 files changed

+1890
-966
lines changed

dist/cjs/index.js

Lines changed: 22 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/types/components/CircularProgress/CircularProgress.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ interface CircularProgressProps {
66
trackColor?: string;
77
indicatorWidth?: number;
88
indicatorColor?: string;
9-
indicatorCap: "round" | "inherit" | "butt" | "square" | undefined;
9+
indicatorCap?: "round" | "inherit" | "butt" | "square";
1010
}
1111
declare function CircularProgress(props: CircularProgressProps): JSX.Element;
1212
export default CircularProgress;

dist/cjs/types/components/MenuPopper/MenuPopper.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/// <reference types="react" />
22
import './menuPopper.scss';
3-
declare type menuItem = {
3+
export declare type menuItem = {
44
hideMenu?: boolean;
55
key?: string;
66
text?: string;
@@ -14,7 +14,7 @@ interface MenuPopperProps {
1414
open: boolean;
1515
onClickAway: () => void;
1616
items: menuItem[];
17-
anchorEl: HTMLElement;
17+
anchorEl: HTMLElement | null;
1818
disablePortal?: boolean;
1919
}
2020
declare function MenuPopper(props: MenuPopperProps): JSX.Element;

dist/cjs/types/components/SpanTooltip/SpanTooltip.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import './spanTooltip.scss';
33
interface SpanTooltipProps {
44
children: number | string;
5-
extraClasses: string;
5+
extraClasses?: string;
66
style?: object;
77
}
88
declare function SpanTooltip({ children, extraClasses, style }: SpanTooltipProps): JSX.Element;

dist/cjs/types/components/index.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,20 @@ export { default as Tab } from "./Tab";
1616
export { default as Toast } from "./Toast";
1717
export { default as ToggleButton } from "./ToggleButton";
1818
export { default as Tooltip } from "./Tooltip";
19+
export { default as Table } from "./Table";
20+
export { default as MultiSelectFilter } from "./Table/filters/MultiSelectFilter";
21+
export { default as SelectFilter } from "./Table/filters/SelectFilter";
22+
export { default as TextFilter } from "./Table/filters/TextFilter";
23+
export { default as ActionsCell } from "./Table/cells/ActionsCell";
24+
export { default as ApiCallCell } from "./Table/cells/ApiCallCell";
25+
export { default as BarCell } from "./Table/cells/BarCell";
26+
export { default as BlocksCell } from "./Table/cells/BlocksCell";
27+
export { default as CapacityCell } from "./Table/cells/CapacityCell";
28+
export { default as CustomTooltipCell } from "./Table/cells/CustomTooltipCell";
29+
export { default as IconCell } from "./Table/cells/IconCell";
30+
export { default as StatusCell } from "./Table/cells/StatusCell";
31+
export { default as ProgressCell } from "./Table/cells/ProgressCell";
32+
export { default as TieringCell } from "./Table/cells/TieringCell";
33+
export { default as TimeCell } from "./Table/cells/TimeCell";
34+
export { default as UptimeCell } from "./Table/cells/UptimeCell";
35+
export { default as DateCell } from "./Table/cells/DateCell";

dist/cjs/types/components/inputs/Select/Select.d.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@ interface SelectProps {
1010
info?: any;
1111
wrapperClass?: string;
1212
error?: any;
13-
label: string | ReactElement;
13+
label?: string | ReactElement;
1414
options: any[];
1515
redInfo?: any;
1616
placeholder?: string;
1717
isClearable?: boolean;
18+
autoFocus?: boolean;
1819
}
1920
declare function Select(props: SelectProps): JSX.Element;
2021
export default Select;

dist/cjs/types/consts.d.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,50 @@
11
export declare const EMPTY_STRING = "";
22
export declare const NOP: () => void;
33
export declare const TAG_SEPARATOR = ",";
4+
export declare const SAVED_FILTERS = "saved_filters";
5+
export declare const SAVED_HIDDEN = "saved_hidden";
6+
export declare const FILTER_CHANGE_LISTENER = "table-filters-change";
7+
export declare const FILTER_LISTENER = "table-filters";
48
export declare const GENERAL_ERROR = "Something went wrong. Please refresh the page and try again.";
9+
interface FilterBoxes {
10+
[key: string]: string;
11+
}
12+
export declare const FILTERBOXES: FilterBoxes;
13+
export declare const NODES_STATUSES: {
14+
DOWN: string;
15+
FENCING: string;
16+
UP: string;
17+
JOINING: string;
18+
SYNCING: string;
19+
};
20+
export declare const DRIVES_STATUSES: {
21+
INACTIVE: string;
22+
PHASING_IN: string;
23+
ACTIVE: string;
24+
PHASING_OUT: string;
25+
};
26+
export declare const STATUS: {
27+
OK: string;
28+
UP: string;
29+
DEGRADED: string;
30+
DOWN: string;
31+
READY: string;
32+
DEACTIVATING: string;
33+
ACTIVE: string;
34+
ENABLED: string;
35+
UPDATING: string;
36+
CREATING: string;
37+
DOWNLOADING: string;
38+
REMOVING: string;
39+
};
40+
export declare const OBS_IS_DETACHING = "DETACHING";
41+
export declare const OBS_MODES: {
42+
REMOTE: string;
43+
WRITABLE: string;
44+
READ_ONLY: string;
45+
};
46+
interface TimeShortenings {
47+
[key: string]: any;
48+
}
49+
export declare const TIME_PARTS_SHORTENINGS: TimeShortenings;
50+
export {};
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
declare function useToggle(initialState: string | boolean, options?: string[] | undefined): (string | boolean | (() => void))[];
1+
declare function useToggle(initialState: string | boolean, options?: string[] | undefined): [string | boolean, () => void];
22
export default useToggle;

dist/cjs/types/svgs/index.d.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,16 @@ export { ReactComponent as Info } from './018-info-16.svg';
44
export { ReactComponent as Show } from './104-view-16.svg';
55
export { ReactComponent as Hide } from './142-close-16.svg';
66
export { ReactComponent as Close } from './026-close-8.svg';
7+
export { ReactComponent as LastArrow } from './065-last-8.svg';
8+
export { ReactComponent as Arrow } from './015-arrow-8.svg';
9+
export { ReactComponent as LongArrow } from './143-arrow-16.svg';
10+
export { ReactComponent as ClearFilters } from './139-filter-cancel-16.svg';
11+
export { ReactComponent as MenuDots } from './019-menu-16.svg';
12+
export { ReactComponent as StatusOk } from './icn-status-connected.svg';
13+
export { ReactComponent as Propeller } from './115-propeller-24.svg';
14+
export { ReactComponent as Ellipses } from './elipces.svg';
15+
export { ReactComponent as FullWarning } from './025-warning-24.svg';
16+
export { ReactComponent as StatusError } from './icn-status-disconnected.svg';
17+
export { ReactComponent as Tiering } from './082-tiered-24.svg';
18+
export { ReactComponent as RemoteTiering } from './080-tiered-remote-24.svg';
19+
export { ReactComponent as Filter } from './038-filter-16.svg';

0 commit comments

Comments
 (0)