@ssa-ui-kit/core 2.19.1 → 2.20.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/dist/components/ColorPicker/ColorPicker.d.ts +0 -1
- package/dist/components/DatePicker/types.d.ts +14 -0
- package/dist/components/NestedTable/NestedTableContext.d.ts +3 -0
- package/dist/components/NestedTable/components/NestedTable.d.ts +3 -0
- package/dist/components/NestedTable/components/NestedTableCell.d.ts +2 -1
- package/dist/components/NestedTable/components/index.d.ts +1 -0
- package/dist/components/NestedTable/hooks/index.d.ts +2 -0
- package/dist/components/NestedTable/hooks/useNestedTableContext.d.ts +1 -0
- package/dist/components/NestedTable/hooks/useNestedTableRowContext.d.ts +1 -0
- package/dist/components/NestedTable/index.d.ts +1 -1
- package/dist/components/NestedTable/stories/NestedTableStory.d.ts +2 -0
- package/dist/components/NestedTable/types.d.ts +5 -0
- package/dist/components/Table/stories/NoControlOrders/StoryComponent.d.ts +1 -0
- package/dist/components/Table/stories/NoControlOrders/components/ActionMore.d.ts +4 -0
- package/dist/components/Table/stories/NoControlOrders/components/Reason.d.ts +3 -0
- package/dist/components/Table/stories/NoControlOrders/components/TableList.d.ts +2 -0
- package/dist/components/Table/stories/NoControlOrders/components/TableRow.d.ts +2 -0
- package/dist/components/Table/stories/NoControlOrders/components/index.d.ts +4 -0
- package/dist/components/Table/stories/NoControlOrders/mockData.d.ts +14 -0
- package/dist/components/Table/stories/NoControlOrders/types.d.ts +15 -0
- package/dist/components/Table/stories/StyledTable/StoryComponent.d.ts +1 -0
- package/dist/components/Table/stories/StyledTable/components/Actions/ActionIcon.d.ts +4 -0
- package/dist/components/Table/stories/StyledTable/components/Actions/ActionItem.d.ts +2 -0
- package/dist/components/Table/stories/StyledTable/components/Actions/ActionMore.d.ts +4 -0
- package/dist/components/Table/stories/StyledTable/components/Actions/ActionRun.d.ts +4 -0
- package/dist/components/Table/stories/StyledTable/components/Actions/Actions.d.ts +4 -0
- package/dist/components/Table/stories/StyledTable/components/Actions/ActionsWrapper.d.ts +2 -0
- package/dist/components/Table/stories/StyledTable/components/Actions/consts.d.ts +5 -0
- package/dist/components/Table/stories/StyledTable/components/Actions/index.d.ts +6 -0
- package/dist/components/Table/stories/StyledTable/components/Exchange/Exchange.d.ts +2 -0
- package/dist/components/Table/stories/StyledTable/components/Exchange/consts.d.ts +15 -0
- package/dist/components/Table/stories/StyledTable/components/Exchange/index.d.ts +1 -0
- package/dist/components/Table/stories/StyledTable/components/Exchange/types.d.ts +5 -0
- package/dist/components/Table/stories/StyledTable/components/PNL.d.ts +2 -0
- package/dist/components/Table/stories/StyledTable/components/ROI.d.ts +2 -0
- package/dist/components/Table/stories/StyledTable/components/TableTag.d.ts +4 -0
- package/dist/components/Table/stories/StyledTable/components/Trade/Trade.d.ts +2 -0
- package/dist/components/Table/stories/StyledTable/components/Trade/consts.d.ts +14 -0
- package/dist/components/Table/stories/StyledTable/components/Trade/index.d.ts +1 -0
- package/dist/components/Table/stories/StyledTable/components/Trade/types.d.ts +4 -0
- package/dist/components/Table/stories/StyledTable/components/index.d.ts +6 -0
- package/dist/components/Table/stories/StyledTable/index.d.ts +1 -0
- package/dist/components/Table/stories/StyledTable/mockData.d.ts +2 -0
- package/dist/components/Table/stories/StyledTable/types.d.ts +26 -0
- package/dist/components/TableCellHeader/TableCellHeader.d.ts +3 -0
- package/dist/components/TableCellHeader/index.d.ts +1 -0
- package/dist/components/TableRow/TableRow.d.ts +3 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +131 -45
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/components/NestedTable/useNestedTableRowContext.d.ts +0 -1
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import { ColorPickerProps } from './types';
|
|
2
|
-
import '@rc-component/color-picker/assets/index.css';
|
|
3
2
|
export declare const ColorPicker: ({ color: providedColor, format: providedFormat, colorsPalette, ...rest }: ColorPickerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -22,6 +22,20 @@ export type DatePickerProps = {
|
|
|
22
22
|
mode: 'dateFrom' | 'dateTo';
|
|
23
23
|
otherDate: Date | null;
|
|
24
24
|
};
|
|
25
|
+
classNames?: {
|
|
26
|
+
header?: string;
|
|
27
|
+
trigger?: {
|
|
28
|
+
input?: string;
|
|
29
|
+
calendarIcon?: string;
|
|
30
|
+
};
|
|
31
|
+
monthsSwitch?: {
|
|
32
|
+
wrapper?: string;
|
|
33
|
+
previousMonth?: string;
|
|
34
|
+
nextMonth?: string;
|
|
35
|
+
};
|
|
36
|
+
calendar?: string;
|
|
37
|
+
label?: string;
|
|
38
|
+
};
|
|
25
39
|
onChange?: (date?: Date) => void;
|
|
26
40
|
onOpen?: () => void;
|
|
27
41
|
onClose?: () => void;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { NestedTableContextType } from './types';
|
|
2
|
+
export declare const NestedTableContext: import("react").Context<NestedTableContextType>;
|
|
3
|
+
export declare const NestedTableProvider: ({ children, collapsedIconName, expandedIconName, }: React.PropsWithChildren<NestedTableContextType>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
|
|
2
|
+
import { CommonProps } from '../../../types/emotion';
|
|
3
|
+
export declare const NestedTableCell: ({ children, ...props }: React.PropsWithChildren<HTMLAttributes<HTMLTableCellElement>> & CommonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useNestedTableContext: () => import("../types").NestedTableContextType;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useNestedTableRowContext: () => import("../types").NestedTableRowContextType;
|
|
@@ -1 +1,3 @@
|
|
|
1
|
+
export declare const NestedDefaultRow: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const NestedTableDefaultStory: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
1
3
|
export declare const NestedTableStory: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { IconProps } from '../Icon/types';
|
|
3
|
+
export type NestedTableContextType = {
|
|
4
|
+
collapsedIconName?: IconProps['name'];
|
|
5
|
+
expandedIconName?: IconProps['name'];
|
|
6
|
+
};
|
|
2
7
|
export type NestedTableRowContextType = {
|
|
3
8
|
isCollapsed: boolean;
|
|
4
9
|
isSubHeader: boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const NoControlOrdersStory: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const noControlOrdersData: {
|
|
2
|
+
id: number;
|
|
3
|
+
exchange: import("../StyledTable/components/Exchange/types").ExchangeType;
|
|
4
|
+
account: string;
|
|
5
|
+
botName: string;
|
|
6
|
+
botRun: string;
|
|
7
|
+
orderId: string;
|
|
8
|
+
status: boolean;
|
|
9
|
+
reason: string;
|
|
10
|
+
pair: string;
|
|
11
|
+
orderSize: string;
|
|
12
|
+
orderType: "SELL";
|
|
13
|
+
isDisabled: boolean;
|
|
14
|
+
}[];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ExchangeType } from '../StyledTable/components/Exchange/types';
|
|
2
|
+
export interface NoControlOrdersItem {
|
|
3
|
+
id: number;
|
|
4
|
+
exchange: ExchangeType;
|
|
5
|
+
account: string;
|
|
6
|
+
botName: string;
|
|
7
|
+
botRun: string;
|
|
8
|
+
orderId: string;
|
|
9
|
+
status: boolean;
|
|
10
|
+
reason: string;
|
|
11
|
+
pair: string;
|
|
12
|
+
orderSize: string;
|
|
13
|
+
orderType: 'SELL';
|
|
14
|
+
isDisabled: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const StyledTableStory: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const exchangeIcons: {
|
|
2
|
+
binance: {
|
|
3
|
+
icon: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
kraken: {
|
|
7
|
+
icon: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
title: string;
|
|
9
|
+
};
|
|
10
|
+
bittrex: {
|
|
11
|
+
icon: () => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
title: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export type ExchangeIconsType = typeof exchangeIcons;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Exchange } from './Exchange';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Trade } from './Trade';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ExchangeType } from './components/Exchange/types';
|
|
2
|
+
import { TradeType } from './components/Trade/types';
|
|
3
|
+
export interface PNL {
|
|
4
|
+
amount: number;
|
|
5
|
+
currency: string;
|
|
6
|
+
isIncreasing: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface ROI {
|
|
9
|
+
amount: number;
|
|
10
|
+
isIncreasing: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface StyledTableItem {
|
|
13
|
+
id: number;
|
|
14
|
+
name: string;
|
|
15
|
+
creationDate: string;
|
|
16
|
+
exchange: ExchangeType;
|
|
17
|
+
status: TradeType;
|
|
18
|
+
pair: string;
|
|
19
|
+
pnl: PNL;
|
|
20
|
+
roi: ROI;
|
|
21
|
+
isDisabled: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface StyledTableProps {
|
|
24
|
+
children: React.ReactElement<React.PropsWithChildren<StyledTableItem>>[];
|
|
25
|
+
className?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TableCellHeader';
|
|
@@ -2,5 +2,7 @@ import { CommonProps } from '../../types/emotion';
|
|
|
2
2
|
declare const TableRow: import("@emotion/styled").StyledComponent<{
|
|
3
3
|
theme?: import("@emotion/react").Theme;
|
|
4
4
|
as?: React.ElementType;
|
|
5
|
-
} & CommonProps
|
|
5
|
+
} & CommonProps & {
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, {}>;
|
|
6
8
|
export default TableRow;
|
|
@@ -53,6 +53,7 @@ export { default as TabBar } from './TabBar';
|
|
|
53
53
|
export { default as Table } from './Table';
|
|
54
54
|
export { default as TableBody } from './TableBody';
|
|
55
55
|
export { default as TableCell } from './TableCell';
|
|
56
|
+
export { default as TableCellHeader } from './TableCellHeader';
|
|
56
57
|
export { default as TableHead } from './TableHead';
|
|
57
58
|
export { default as TableRow } from './TableRow';
|
|
58
59
|
export { default as Tag } from './Tag';
|
|
@@ -113,3 +114,4 @@ export * from './WithVisibleUpToLG';
|
|
|
113
114
|
export * from './Wrapper';
|
|
114
115
|
export * as JsonSchema from './JsonSchemaForm';
|
|
115
116
|
export type { DropdownOptionProps } from './DropdownOptions';
|
|
117
|
+
export type { RadioProps } from './Radio/types';
|