Skip to content

Commit

Permalink
Merge pull request #5 from weka/sofi/add-severity-cell
Browse files Browse the repository at this point in the history
add severity cell, customize datepicker & other fixes
  • Loading branch information
sofa-tata authored Feb 21, 2023
2 parents 1f65d1c + be26f4f commit ef7336e
Show file tree
Hide file tree
Showing 51 changed files with 1,767 additions and 1,522 deletions.
14 changes: 7 additions & 7 deletions dist/cjs/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cjs/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/cjs/types/components/DateTimePicker/DateTimePicker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ interface DateTimePickerProps {
showCalendarIcon?: boolean;
showTime?: boolean;
disabled?: boolean;
canClear?: boolean;
showNow?: boolean;
}
declare function DateTimePicker(props: DateTimePickerProps): JSX.Element;
export default DateTimePicker;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { default as DateTimePickerComponent } from './DateTimePicker';
import { ComponentStory, ComponentMeta } from '@storybook/react';
declare const _default: ComponentMeta<typeof DateTimePickerComponent>;
export default _default;
export declare const DateTimePicker: ComponentStory<typeof DateTimePickerComponent>;
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ interface DateTimeCalendarProps {
maxDate?: DateTime | null;
showSeconds?: boolean;
showTime?: boolean;
canClear?: boolean;
showNow?: boolean;
}
declare function DateTimeCalendar({ onSubmit, initValue, minDate, maxDate, showSeconds, showTime }: DateTimeCalendarProps): JSX.Element;
declare function DateTimeCalendar({ onSubmit, initValue, minDate, maxDate, showSeconds, showTime, canClear, showNow }: DateTimeCalendarProps): JSX.Element;
export default DateTimeCalendar;
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ interface DateTimeLabelProps {
date?: DateTime | null;
showSeconds?: boolean;
showTime?: boolean;
disabled?: boolean;
}
declare function DateTimeLabel(props: DateTimeLabelProps): JSX.Element;
export default DateTimeLabel;
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ interface TimeSelectorProps {
onSubmit: (val?: any) => void;
onNowSubmit: (val?: any) => void;
showSeconds?: boolean;
showNow?: boolean;
}
declare function TimeSelector(props: TimeSelectorProps): JSX.Element;
export default TimeSelector;
5 changes: 3 additions & 2 deletions dist/cjs/types/components/Table/Table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ interface TableProps {
row: any;
}>;
listenerPrefix?: string;
onRowClick?: (uid: string) => void;
onRowClick?: (row?: Row) => void;
miniTable?: boolean;
fixedPageSize?: number;
disableActionsPortal?: boolean;
colPropForShowColumns?: string;
}
declare function Table({ columns, data, rowActions, tableActions, title, defaultSort, globalFilter, defaultGlobalFilter, checkRowSelected, getRowId, addFilterToUrl, RowSubComponent, listenerPrefix, onRowClick, miniTable, filterCategory, fixedPageSize, disableActionsPortal, maxRows, emptyMessage }: TableProps): JSX.Element;
declare function Table({ columns, data, rowActions, tableActions, title, defaultSort, globalFilter, defaultGlobalFilter, checkRowSelected, getRowId, addFilterToUrl, RowSubComponent, listenerPrefix, onRowClick, miniTable, filterCategory, fixedPageSize, disableActionsPortal, maxRows, emptyMessage, colPropForShowColumns }: TableProps): JSX.Element;
export default Table;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="react" />
import { CustomCellProps } from '../../Table';
import './severityCell.scss';
declare function SeverityCell({ cell }: CustomCellProps): JSX.Element;
export default SeverityCell;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './SeverityCell';
1 change: 1 addition & 0 deletions dist/cjs/types/components/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export { default as ProgressCell } from "./Table/cells/ProgressCell";
export { default as TieringCell } from "./Table/cells/TieringCell";
export { default as TimeCell } from "./Table/cells/TimeCell";
export { default as UptimeCell } from "./Table/cells/UptimeCell";
export { default as SeverityCell } from "./Table/cells/SeverityCell";
export { default as DateCell } from "./Table/cells/DateCell";
export { default as DateTimePicker } from "./DateTimePicker";
export { default as NumInput } from "./DateTimePicker/components/NumInput";
4 changes: 4 additions & 0 deletions dist/cjs/types/consts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,8 @@ export declare const TIME_PARTS: {
MINUTE: string;
SECOND: string;
};
interface SeverityIcons {
[key: string]: any;
}
export declare const SEVERITIES_ICONS: SeverityIcons;
export {};
6 changes: 6 additions & 0 deletions dist/cjs/types/svgs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ export { ReactComponent as Tiering } from './082-tiered-24.svg';
export { ReactComponent as RemoteTiering } from './080-tiered-remote-24.svg';
export { ReactComponent as Filter } from './038-filter-16.svg';
export { ReactComponent as EmptyCalendar } from './empty-calendar.svg';
export { ReactComponent as DebugWarning } from './032-warning-debug-24.svg';
export { ReactComponent as EventInfo } from './033-info-24.svg';
export { ReactComponent as AccidentMinor } from './034-accident-minor-24.svg';
export { ReactComponent as AccidentMajor } from './035-accident-major-24.svg';
export { ReactComponent as AccidentCritical } from './036-accident-critical-24.svg';
export { ReactComponent as Warning } from './031-warning-24.svg';
14 changes: 7 additions & 7 deletions dist/esm/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/index.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/esm/types/components/DateTimePicker/DateTimePicker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ interface DateTimePickerProps {
showCalendarIcon?: boolean;
showTime?: boolean;
disabled?: boolean;
canClear?: boolean;
showNow?: boolean;
}
declare function DateTimePicker(props: DateTimePickerProps): JSX.Element;
export default DateTimePicker;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { default as DateTimePickerComponent } from './DateTimePicker';
import { ComponentStory, ComponentMeta } from '@storybook/react';
declare const _default: ComponentMeta<typeof DateTimePickerComponent>;
export default _default;
export declare const DateTimePicker: ComponentStory<typeof DateTimePickerComponent>;
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ interface DateTimeCalendarProps {
maxDate?: DateTime | null;
showSeconds?: boolean;
showTime?: boolean;
canClear?: boolean;
showNow?: boolean;
}
declare function DateTimeCalendar({ onSubmit, initValue, minDate, maxDate, showSeconds, showTime }: DateTimeCalendarProps): JSX.Element;
declare function DateTimeCalendar({ onSubmit, initValue, minDate, maxDate, showSeconds, showTime, canClear, showNow }: DateTimeCalendarProps): JSX.Element;
export default DateTimeCalendar;
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ interface DateTimeLabelProps {
date?: DateTime | null;
showSeconds?: boolean;
showTime?: boolean;
disabled?: boolean;
}
declare function DateTimeLabel(props: DateTimeLabelProps): JSX.Element;
export default DateTimeLabel;
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ interface TimeSelectorProps {
onSubmit: (val?: any) => void;
onNowSubmit: (val?: any) => void;
showSeconds?: boolean;
showNow?: boolean;
}
declare function TimeSelector(props: TimeSelectorProps): JSX.Element;
export default TimeSelector;
5 changes: 3 additions & 2 deletions dist/esm/types/components/Table/Table.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ interface TableProps {
row: any;
}>;
listenerPrefix?: string;
onRowClick?: (uid: string) => void;
onRowClick?: (row?: Row) => void;
miniTable?: boolean;
fixedPageSize?: number;
disableActionsPortal?: boolean;
colPropForShowColumns?: string;
}
declare function Table({ columns, data, rowActions, tableActions, title, defaultSort, globalFilter, defaultGlobalFilter, checkRowSelected, getRowId, addFilterToUrl, RowSubComponent, listenerPrefix, onRowClick, miniTable, filterCategory, fixedPageSize, disableActionsPortal, maxRows, emptyMessage }: TableProps): JSX.Element;
declare function Table({ columns, data, rowActions, tableActions, title, defaultSort, globalFilter, defaultGlobalFilter, checkRowSelected, getRowId, addFilterToUrl, RowSubComponent, listenerPrefix, onRowClick, miniTable, filterCategory, fixedPageSize, disableActionsPortal, maxRows, emptyMessage, colPropForShowColumns }: TableProps): JSX.Element;
export default Table;
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/// <reference types="react" />
import { CustomCellProps } from '../../Table';
import './severityCell.scss';
declare function SeverityCell({ cell }: CustomCellProps): JSX.Element;
export default SeverityCell;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from './SeverityCell';
1 change: 1 addition & 0 deletions dist/esm/types/components/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export { default as ProgressCell } from "./Table/cells/ProgressCell";
export { default as TieringCell } from "./Table/cells/TieringCell";
export { default as TimeCell } from "./Table/cells/TimeCell";
export { default as UptimeCell } from "./Table/cells/UptimeCell";
export { default as SeverityCell } from "./Table/cells/SeverityCell";
export { default as DateCell } from "./Table/cells/DateCell";
export { default as DateTimePicker } from "./DateTimePicker";
export { default as NumInput } from "./DateTimePicker/components/NumInput";
4 changes: 4 additions & 0 deletions dist/esm/types/consts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,8 @@ export declare const TIME_PARTS: {
MINUTE: string;
SECOND: string;
};
interface SeverityIcons {
[key: string]: any;
}
export declare const SEVERITIES_ICONS: SeverityIcons;
export {};
6 changes: 6 additions & 0 deletions dist/esm/types/svgs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,9 @@ export { ReactComponent as Tiering } from './082-tiered-24.svg';
export { ReactComponent as RemoteTiering } from './080-tiered-remote-24.svg';
export { ReactComponent as Filter } from './038-filter-16.svg';
export { ReactComponent as EmptyCalendar } from './empty-calendar.svg';
export { ReactComponent as DebugWarning } from './032-warning-debug-24.svg';
export { ReactComponent as EventInfo } from './033-info-24.svg';
export { ReactComponent as AccidentMinor } from './034-accident-minor-24.svg';
export { ReactComponent as AccidentMajor } from './035-accident-major-24.svg';
export { ReactComponent as AccidentCritical } from './036-accident-critical-24.svg';
export { ReactComponent as Warning } from './031-warning-24.svg';
11 changes: 8 additions & 3 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,12 +378,13 @@ interface TableProps {
row: any;
}>;
listenerPrefix?: string;
onRowClick?: (uid: string) => void;
onRowClick?: (row?: Row) => void;
miniTable?: boolean;
fixedPageSize?: number;
disableActionsPortal?: boolean;
colPropForShowColumns?: string;
}
declare function Table({ columns, data, rowActions, tableActions, title, defaultSort, globalFilter, defaultGlobalFilter, checkRowSelected, getRowId, addFilterToUrl, RowSubComponent, listenerPrefix, onRowClick, miniTable, filterCategory, fixedPageSize, disableActionsPortal, maxRows, emptyMessage }: TableProps): JSX.Element;
declare function Table({ columns, data, rowActions, tableActions, title, defaultSort, globalFilter, defaultGlobalFilter, checkRowSelected, getRowId, addFilterToUrl, RowSubComponent, listenerPrefix, onRowClick, miniTable, filterCategory, fixedPageSize, disableActionsPortal, maxRows, emptyMessage, colPropForShowColumns }: TableProps): JSX.Element;

declare function MultiSelectFilter({ column }: {
[key: string]: any;
Expand Down Expand Up @@ -436,6 +437,8 @@ declare function TimeCell({ cell }: CustomCellProps): JSX.Element;

declare function UptimeCell({ cell }: CustomCellProps): JSX.Element;

declare function SeverityCell({ cell }: CustomCellProps): JSX.Element;

declare function DateCell({ cell, column }: {
cell: CellProps<object>;
column: {
Expand All @@ -456,6 +459,8 @@ interface DateTimePickerProps {
showCalendarIcon?: boolean;
showTime?: boolean;
disabled?: boolean;
canClear?: boolean;
showNow?: boolean;
}
declare function DateTimePicker(props: DateTimePickerProps): JSX.Element;

Expand All @@ -476,4 +481,4 @@ interface NumInputProps {
}
declare function NumInput(props: NumInputProps): JSX.Element;

export { ActionsCell, ApiCallCell, BarCell, BlocksCell, Button, CapacityBar, CapacityCell, Checkbox, CircularProgress, CloseButton, CustomTooltipCell, DataInfo, DateCell, DateTimePicker, EmptyPageMessage, ErrorPage, FormSwitch, IconCell, Info, IpRangeTextBox, IpSubnetTextBox, IpTextBox, JsonBox, JsonEditor, Loader, LoginField, MenuPopper, MultiSelectFilter, NewPasswordTooltip, NumInput, ProgressCell, RadioSwitch, Select, SelectFilter, SpanTooltip, StatusCell, Switch, Tab, Table, TagsBox, TextArea, TextBox, TextField, TextFilter, TextSelectBox, TieringCell, TimeCell, Toast, ToggleButton, Tooltip, UploadField, UptimeCell };
export { ActionsCell, ApiCallCell, BarCell, BlocksCell, Button, CapacityBar, CapacityCell, Checkbox, CircularProgress, CloseButton, CustomTooltipCell, DataInfo, DateCell, DateTimePicker, EmptyPageMessage, ErrorPage, FormSwitch, IconCell, Info, IpRangeTextBox, IpSubnetTextBox, IpTextBox, JsonBox, JsonEditor, Loader, LoginField, MenuPopper, MultiSelectFilter, NewPasswordTooltip, NumInput, ProgressCell, RadioSwitch, Select, SelectFilter, SeverityCell, SpanTooltip, StatusCell, Switch, Tab, Table, TagsBox, TextArea, TextBox, TextField, TextFilter, TextSelectBox, TieringCell, TimeCell, Toast, ToggleButton, Tooltip, UploadField, UptimeCell };
Loading

0 comments on commit ef7336e

Please sign in to comment.