@ssa-ui-kit/widgets 2.19.2 → 2.20.1

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 (42) hide show
  1. package/dist/index.d.ts +0 -1
  2. package/dist/index.js +0 -77
  3. package/dist/index.js.map +1 -1
  4. package/package.json +4 -4
  5. package/dist/components/BotsTable/BotsTable.d.ts +0 -2
  6. package/dist/components/BotsTable/BotsTableCell.d.ts +0 -8
  7. package/dist/components/BotsTable/BotsTableHead.d.ts +0 -6
  8. package/dist/components/BotsTable/BotsTableRow.d.ts +0 -8
  9. package/dist/components/BotsTable/BotsTableWrapper.d.ts +0 -6
  10. package/dist/components/BotsTable/index.d.ts +0 -5
  11. package/dist/components/BotsTable/stories/BotsTable/StoryComponent.d.ts +0 -1
  12. package/dist/components/BotsTable/stories/BotsTable/components/Actions/ActionIcon.d.ts +0 -4
  13. package/dist/components/BotsTable/stories/BotsTable/components/Actions/ActionItem.d.ts +0 -2
  14. package/dist/components/BotsTable/stories/BotsTable/components/Actions/ActionMore.d.ts +0 -4
  15. package/dist/components/BotsTable/stories/BotsTable/components/Actions/ActionRun.d.ts +0 -4
  16. package/dist/components/BotsTable/stories/BotsTable/components/Actions/Actions.d.ts +0 -4
  17. package/dist/components/BotsTable/stories/BotsTable/components/Actions/ActionsWrapper.d.ts +0 -2
  18. package/dist/components/BotsTable/stories/BotsTable/components/Actions/consts.d.ts +0 -5
  19. package/dist/components/BotsTable/stories/BotsTable/components/Actions/index.d.ts +0 -6
  20. package/dist/components/BotsTable/stories/BotsTable/components/Exchange/Exchange.d.ts +0 -2
  21. package/dist/components/BotsTable/stories/BotsTable/components/Exchange/consts.d.ts +0 -15
  22. package/dist/components/BotsTable/stories/BotsTable/components/Exchange/index.d.ts +0 -1
  23. package/dist/components/BotsTable/stories/BotsTable/components/Exchange/types.d.ts +0 -5
  24. package/dist/components/BotsTable/stories/BotsTable/components/PNL.d.ts +0 -2
  25. package/dist/components/BotsTable/stories/BotsTable/components/ROI.d.ts +0 -2
  26. package/dist/components/BotsTable/stories/BotsTable/components/TableTag.d.ts +0 -4
  27. package/dist/components/BotsTable/stories/BotsTable/components/Trade/Trade.d.ts +0 -2
  28. package/dist/components/BotsTable/stories/BotsTable/components/Trade/consts.d.ts +0 -14
  29. package/dist/components/BotsTable/stories/BotsTable/components/Trade/index.d.ts +0 -1
  30. package/dist/components/BotsTable/stories/BotsTable/components/Trade/types.d.ts +0 -4
  31. package/dist/components/BotsTable/stories/BotsTable/components/index.d.ts +0 -6
  32. package/dist/components/BotsTable/stories/BotsTable/index.d.ts +0 -1
  33. package/dist/components/BotsTable/stories/BotsTable/mockData.d.ts +0 -2
  34. package/dist/components/BotsTable/stories/NoControlOrders/StoryComponent.d.ts +0 -1
  35. package/dist/components/BotsTable/stories/NoControlOrders/components/ActionMore.d.ts +0 -4
  36. package/dist/components/BotsTable/stories/NoControlOrders/components/Reason.d.ts +0 -3
  37. package/dist/components/BotsTable/stories/NoControlOrders/components/TableList.d.ts +0 -2
  38. package/dist/components/BotsTable/stories/NoControlOrders/components/TableRow.d.ts +0 -2
  39. package/dist/components/BotsTable/stories/NoControlOrders/components/index.d.ts +0 -4
  40. package/dist/components/BotsTable/stories/NoControlOrders/mockData.d.ts +0 -14
  41. package/dist/components/BotsTable/stories/NoControlOrders/types.d.ts +0 -15
  42. package/dist/components/BotsTable/types.d.ts +0 -27
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssa-ui-kit/widgets",
3
- "version": "2.19.2",
3
+ "version": "2.20.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "private": false,
@@ -26,9 +26,9 @@
26
26
  "@floating-ui/react": "0.27.4",
27
27
  "dotenv": "^16.0.3",
28
28
  "loose-envify": "^1.4.0",
29
- "@ssa-ui-kit/core": "^2.19.2",
30
- "@ssa-ui-kit/hooks": "^2.19.2",
31
- "@ssa-ui-kit/utils": "^2.19.2"
29
+ "@ssa-ui-kit/core": "^2.20.1",
30
+ "@ssa-ui-kit/hooks": "^2.20.1",
31
+ "@ssa-ui-kit/utils": "^2.20.1"
32
32
  },
33
33
  "browserslist": [
34
34
  ">0.1%",
@@ -1,2 +0,0 @@
1
- import { BotsTableProps } from './types';
2
- export declare const BotsTable: ({ children, columns, className }: BotsTableProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- export declare const BotsTableCell: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
3
- as?: React.ElementType;
4
- } & {
5
- align?: string;
6
- } & import("@ssa-ui-kit/core").CommonProps & import("react").ClassAttributes<HTMLTableDataCellElement> & import("react").TdHTMLAttributes<HTMLTableDataCellElement> & {
7
- theme?: import("@emotion/react").Theme;
8
- }, {}, {}>;
@@ -1,6 +0,0 @@
1
- export declare const BotsTableHead: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
3
- as?: React.ElementType;
4
- } & import("@ssa-ui-kit/core").CommonProps & import("react").ClassAttributes<HTMLTableSectionElement> & import("react").HTMLAttributes<HTMLTableSectionElement> & {
5
- theme?: import("@emotion/react").Theme;
6
- }, {}, {}>;
@@ -1,8 +0,0 @@
1
- export declare const BotsTableRow: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
3
- as?: React.ElementType;
4
- } & import("@ssa-ui-kit/core").CommonProps & import("react").ClassAttributes<HTMLTableRowElement> & import("react").HTMLAttributes<HTMLTableRowElement> & {
5
- theme?: import("@emotion/react").Theme;
6
- } & {
7
- isDisabled?: boolean;
8
- }, {}, {}>;
@@ -1,6 +0,0 @@
1
- export declare const BotsTableWrapper: import("@emotion/styled").StyledComponent<{
2
- theme?: import("@emotion/react").Theme;
3
- as?: React.ElementType;
4
- } & import("@ssa-ui-kit/core").CommonProps & import("react").ClassAttributes<HTMLTableElement> & import("react").TableHTMLAttributes<HTMLTableElement> & {
5
- theme?: import("@emotion/react").Theme;
6
- }, {}, {}>;
@@ -1,5 +0,0 @@
1
- export * from './BotsTableWrapper';
2
- export * from './BotsTable';
3
- export * from './BotsTableCell';
4
- export * from './BotsTableHead';
5
- export * from './BotsTableRow';
@@ -1 +0,0 @@
1
- export declare const BotsTableStory: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Icon } from '@ssa-ui-kit/core';
2
- export declare const ActionIcon: ({ name, }: {
3
- name: Parameters<typeof Icon>[0]["name"];
4
- }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { Button } from '@ssa-ui-kit/core';
2
- export declare const ActionItem: ({ children, ...rest }: Parameters<typeof Button>[0]) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { BotsTableItem } from '../../../../types';
2
- export declare const ActionMore: ({ row: { isDisabled } }: {
3
- row: BotsTableItem;
4
- }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { BotsTableItem } from '../../../../types';
2
- export declare const ActionRun: ({ row }: {
3
- row: BotsTableItem;
4
- }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { BotsTableItem } from '../../../../types';
2
- export declare const Actions: ({ row }: {
3
- row: BotsTableItem;
4
- }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { Wrapper } from '@ssa-ui-kit/core';
2
- export declare const ActionsWrapper: ({ children, ...rest }: Parameters<typeof Wrapper>[0]) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
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
- };
@@ -1,6 +0,0 @@
1
- export * from './ActionIcon';
2
- export * from './ActionItem';
3
- export * from './ActionMore';
4
- export * from './ActionRun';
5
- export * from './Actions';
6
- export * from './ActionsWrapper';
@@ -1,2 +0,0 @@
1
- import { ExchangeProps } from './types';
2
- export declare const Exchange: ({ exchangeType, showTitle }: ExchangeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,15 +0,0 @@
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;
@@ -1 +0,0 @@
1
- export { Exchange } from './Exchange';
@@ -1,5 +0,0 @@
1
- export type ExchangeType = 'binance' | 'kraken' | 'bittrex';
2
- export interface ExchangeProps {
3
- exchangeType: ExchangeType;
4
- showTitle?: boolean;
5
- }
@@ -1,2 +0,0 @@
1
- import * as Types from '../../../types';
2
- export declare const PNL: ({ amount, currency, isIncreasing }: Types.PNL) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import * as Types from '../../../types';
2
- export declare const ROI: ({ amount, isIncreasing }: Types.ROI) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export declare const TableTag: ({ children, color, }: {
2
- children: string;
3
- color: string;
4
- }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { TradeProps } from './types';
2
- export declare const Trade: ({ tradeType }: TradeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,14 +0,0 @@
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
- };
@@ -1 +0,0 @@
1
- export { Trade } from './Trade';
@@ -1,4 +0,0 @@
1
- export type TradeType = 'trade' | 'liquidation' | 'pending';
2
- export interface TradeProps {
3
- tradeType: TradeType;
4
- }
@@ -1,6 +0,0 @@
1
- export * from './Exchange';
2
- export * from './Trade';
3
- export * from './PNL';
4
- export * from './ROI';
5
- export * from './TableTag';
6
- export * from './Actions';
@@ -1 +0,0 @@
1
- export * from './components';
@@ -1,2 +0,0 @@
1
- import { BotsTableItem } from '../../types';
2
- export declare const botsTableData: BotsTableItem[];
@@ -1 +0,0 @@
1
- export declare const NoControlOrdersStory: () => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { NoControlOrdersItem } from '../types';
2
- export declare const ActionMore: ({ row: { isDisabled }, }: {
3
- row: NoControlOrdersItem;
4
- }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- export declare const Reason: ({ children }: {
2
- children: string;
3
- }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { BotsTableProps } from '../../../types';
2
- export declare const TableList: ({ children, ...rest }: BotsTableProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { NoControlOrdersItem } from '../types';
2
- export declare const TableRow: (item: NoControlOrdersItem) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- export * from './ActionMore';
2
- export * from './Reason';
3
- export * from './TableList';
4
- export * from './TableRow';
@@ -1,14 +0,0 @@
1
- export declare const noControlOrdersData: {
2
- id: number;
3
- exchange: import("../BotsTable/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
- }[];
@@ -1,15 +0,0 @@
1
- import { ExchangeType } from '../BotsTable/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
- }
@@ -1,27 +0,0 @@
1
- import { ExchangeType } from './stories/BotsTable/components/Exchange/types';
2
- import { TradeType } from './stories/BotsTable/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 BotsTableItem {
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 BotsTableProps {
24
- children: React.ReactElement<React.PropsWithChildren<BotsTableItem>>[];
25
- columns: string[];
26
- className?: string;
27
- }