@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.
Files changed (52) hide show
  1. package/dist/components/ColorPicker/ColorPicker.d.ts +0 -1
  2. package/dist/components/DatePicker/types.d.ts +14 -0
  3. package/dist/components/NestedTable/NestedTableContext.d.ts +3 -0
  4. package/dist/components/NestedTable/components/NestedTable.d.ts +3 -0
  5. package/dist/components/NestedTable/components/NestedTableCell.d.ts +2 -1
  6. package/dist/components/NestedTable/components/index.d.ts +1 -0
  7. package/dist/components/NestedTable/hooks/index.d.ts +2 -0
  8. package/dist/components/NestedTable/hooks/useNestedTableContext.d.ts +1 -0
  9. package/dist/components/NestedTable/hooks/useNestedTableRowContext.d.ts +1 -0
  10. package/dist/components/NestedTable/index.d.ts +1 -1
  11. package/dist/components/NestedTable/stories/NestedTableStory.d.ts +2 -0
  12. package/dist/components/NestedTable/types.d.ts +5 -0
  13. package/dist/components/Table/stories/NoControlOrders/StoryComponent.d.ts +1 -0
  14. package/dist/components/Table/stories/NoControlOrders/components/ActionMore.d.ts +4 -0
  15. package/dist/components/Table/stories/NoControlOrders/components/Reason.d.ts +3 -0
  16. package/dist/components/Table/stories/NoControlOrders/components/TableList.d.ts +2 -0
  17. package/dist/components/Table/stories/NoControlOrders/components/TableRow.d.ts +2 -0
  18. package/dist/components/Table/stories/NoControlOrders/components/index.d.ts +4 -0
  19. package/dist/components/Table/stories/NoControlOrders/mockData.d.ts +14 -0
  20. package/dist/components/Table/stories/NoControlOrders/types.d.ts +15 -0
  21. package/dist/components/Table/stories/StyledTable/StoryComponent.d.ts +1 -0
  22. package/dist/components/Table/stories/StyledTable/components/Actions/ActionIcon.d.ts +4 -0
  23. package/dist/components/Table/stories/StyledTable/components/Actions/ActionItem.d.ts +2 -0
  24. package/dist/components/Table/stories/StyledTable/components/Actions/ActionMore.d.ts +4 -0
  25. package/dist/components/Table/stories/StyledTable/components/Actions/ActionRun.d.ts +4 -0
  26. package/dist/components/Table/stories/StyledTable/components/Actions/Actions.d.ts +4 -0
  27. package/dist/components/Table/stories/StyledTable/components/Actions/ActionsWrapper.d.ts +2 -0
  28. package/dist/components/Table/stories/StyledTable/components/Actions/consts.d.ts +5 -0
  29. package/dist/components/Table/stories/StyledTable/components/Actions/index.d.ts +6 -0
  30. package/dist/components/Table/stories/StyledTable/components/Exchange/Exchange.d.ts +2 -0
  31. package/dist/components/Table/stories/StyledTable/components/Exchange/consts.d.ts +15 -0
  32. package/dist/components/Table/stories/StyledTable/components/Exchange/index.d.ts +1 -0
  33. package/dist/components/Table/stories/StyledTable/components/Exchange/types.d.ts +5 -0
  34. package/dist/components/Table/stories/StyledTable/components/PNL.d.ts +2 -0
  35. package/dist/components/Table/stories/StyledTable/components/ROI.d.ts +2 -0
  36. package/dist/components/Table/stories/StyledTable/components/TableTag.d.ts +4 -0
  37. package/dist/components/Table/stories/StyledTable/components/Trade/Trade.d.ts +2 -0
  38. package/dist/components/Table/stories/StyledTable/components/Trade/consts.d.ts +14 -0
  39. package/dist/components/Table/stories/StyledTable/components/Trade/index.d.ts +1 -0
  40. package/dist/components/Table/stories/StyledTable/components/Trade/types.d.ts +4 -0
  41. package/dist/components/Table/stories/StyledTable/components/index.d.ts +6 -0
  42. package/dist/components/Table/stories/StyledTable/index.d.ts +1 -0
  43. package/dist/components/Table/stories/StyledTable/mockData.d.ts +2 -0
  44. package/dist/components/Table/stories/StyledTable/types.d.ts +26 -0
  45. package/dist/components/TableCellHeader/TableCellHeader.d.ts +3 -0
  46. package/dist/components/TableCellHeader/index.d.ts +1 -0
  47. package/dist/components/TableRow/TableRow.d.ts +3 -1
  48. package/dist/components/index.d.ts +2 -0
  49. package/dist/index.js +131 -45
  50. package/dist/index.js.map +1 -1
  51. package/package.json +3 -3
  52. 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;
@@ -0,0 +1,3 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { NestedTableContextType } from '../types';
3
+ export declare const NestedTable: ({ children, ...rest }: PropsWithChildren & NestedTableContextType) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,2 +1,3 @@
1
1
  import { HTMLAttributes } from 'react';
2
- export declare const NestedTableCell: ({ children, ...props }: React.PropsWithChildren<HTMLAttributes<HTMLTableCellElement>>) => import("@emotion/react/jsx-runtime").JSX.Element;
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;
@@ -1,3 +1,4 @@
1
+ export * from './NestedTable';
1
2
  export * from './NestedTableCell';
2
3
  export * from './NestedTableCellSubHeader';
3
4
  export * from './NestedTableRow';
@@ -0,0 +1,2 @@
1
+ export * from './useNestedTableContext';
2
+ export * from './useNestedTableRowContext';
@@ -0,0 +1 @@
1
+ export declare const useNestedTableContext: () => import("../types").NestedTableContextType;
@@ -0,0 +1 @@
1
+ export declare const useNestedTableRowContext: () => import("../types").NestedTableRowContextType;
@@ -1,4 +1,4 @@
1
1
  export * from './components';
2
2
  export * from './WithNestedTableRow';
3
3
  export * from './NestedTableRowContext';
4
- export * from './useNestedTableRowContext';
4
+ export * from './hooks/useNestedTableRowContext';
@@ -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,4 @@
1
+ import { NoControlOrdersItem } from '../types';
2
+ export declare const ActionMore: ({ row: { isDisabled }, }: {
3
+ row: NoControlOrdersItem;
4
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare const Reason: ({ children }: {
2
+ children: string;
3
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { StyledTableProps } from '../../StyledTable/types';
2
+ export declare const TableList: ({ children, ...rest }: StyledTableProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { NoControlOrdersItem } from '../types';
2
+ export declare const NoControlTableRow: (item: NoControlOrdersItem) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export * from './ActionMore';
2
+ export * from './Reason';
3
+ export * from './TableList';
4
+ export * from './TableRow';
@@ -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,4 @@
1
+ import Icon from '../../../../../Icon';
2
+ export declare const ActionIcon: ({ name, }: {
3
+ name: Parameters<typeof Icon>[0]["name"];
4
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import Button from '../../../../../Button';
2
+ export declare const ActionItem: ({ children, ...rest }: Parameters<typeof Button>[0]) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { StyledTableItem } from '../../types';
2
+ export declare const ActionMore: ({ row: { isDisabled }, }: {
3
+ row: StyledTableItem;
4
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { StyledTableItem } from '../../types';
2
+ export declare const ActionRun: ({ row }: {
3
+ row: StyledTableItem;
4
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { StyledTableItem } from '../../types';
2
+ export declare const Actions: ({ row }: {
3
+ row: StyledTableItem;
4
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import Wrapper from '../../../../../Wrapper';
2
+ export declare const ActionsWrapper: ({ children, ...rest }: Parameters<typeof Wrapper>[0]) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ export declare const actionsIcons: {
2
+ trade: () => import("@emotion/react/jsx-runtime").JSX.Element;
3
+ liquidation: () => import("@emotion/react/jsx-runtime").JSX.Element;
4
+ pending: () => import("@emotion/react/jsx-runtime").JSX.Element;
5
+ };
@@ -0,0 +1,6 @@
1
+ export * from './ActionIcon';
2
+ export * from './ActionItem';
3
+ export * from './ActionMore';
4
+ export * from './ActionRun';
5
+ export * from './Actions';
6
+ export * from './ActionsWrapper';
@@ -0,0 +1,2 @@
1
+ import { ExchangeProps } from './types';
2
+ export declare const Exchange: ({ exchangeType, showTitle }: ExchangeProps) => 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,5 @@
1
+ export type ExchangeType = 'binance' | 'kraken' | 'bittrex';
2
+ export interface ExchangeProps {
3
+ exchangeType: ExchangeType;
4
+ showTitle?: boolean;
5
+ }
@@ -0,0 +1,2 @@
1
+ import * as Types from '../types';
2
+ export declare const PNL: ({ amount, currency, isIncreasing }: Types.PNL) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import * as Types from '../types';
2
+ export declare const ROI: ({ amount, isIncreasing }: Types.ROI) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare const TableTag: ({ children, color, }: {
2
+ children: string;
3
+ color: keyof MainColors;
4
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { TradeProps } from './types';
2
+ export declare const Trade: ({ tradeType }: TradeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ export declare const tradeStatuses: {
2
+ trade: {
3
+ title: string;
4
+ color: string;
5
+ };
6
+ liquidation: {
7
+ title: string;
8
+ color: string;
9
+ };
10
+ pending: {
11
+ title: string;
12
+ color: string;
13
+ };
14
+ };
@@ -0,0 +1 @@
1
+ export { Trade } from './Trade';
@@ -0,0 +1,4 @@
1
+ export type TradeType = 'trade' | 'liquidation' | 'pending';
2
+ export interface TradeProps {
3
+ tradeType: TradeType;
4
+ }
@@ -0,0 +1,6 @@
1
+ export * from './Exchange';
2
+ export * from './Trade';
3
+ export * from './PNL';
4
+ export * from './ROI';
5
+ export * from './TableTag';
6
+ export * from './Actions';
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,2 @@
1
+ import { StyledTableItem } from './types';
2
+ export declare const botsTableData: StyledTableItem[];
@@ -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,3 @@
1
+ import TableCell from '../TableCell/TableCell';
2
+ declare const TableCellHeader: (props: React.ComponentProps<typeof TableCell>) => import("@emotion/react/jsx-runtime").JSX.Element;
3
+ export default TableCellHeader;
@@ -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, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, {}>;
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';