@ssa-ui-kit/templates 2.28.2 → 2.29.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.
@@ -7,6 +7,7 @@ export declare const IconWrapper: import("@emotion/styled").StyledComponent<{
7
7
  alignItems?: string;
8
8
  fade?: boolean;
9
9
  fadeDelay?: number;
10
+ isVisible?: boolean;
10
11
  } & import("@ssa-ui-kit/core").CommonProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
11
12
  theme?: import("@emotion/react").Theme;
12
13
  }, {}, {}>;
@@ -20,6 +21,7 @@ export declare const ItemsWrapper: import("@emotion/styled").StyledComponent<{
20
21
  alignItems?: string;
21
22
  fade?: boolean;
22
23
  fadeDelay?: number;
24
+ isVisible?: boolean;
23
25
  } & import("@ssa-ui-kit/core").CommonProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
24
26
  theme?: import("@emotion/react").Theme;
25
27
  }, {}, {}>;
@@ -32,6 +34,7 @@ export declare const WeightedItemsWrapper: import("@emotion/styled").StyledCompo
32
34
  alignItems?: string;
33
35
  fade?: boolean;
34
36
  fadeDelay?: number;
37
+ isVisible?: boolean;
35
38
  } & import("@ssa-ui-kit/core").CommonProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
36
39
  theme?: import("@emotion/react").Theme;
37
40
  }, {}, {}>;
@@ -44,6 +47,7 @@ export declare const Instrument: import("@emotion/styled").StyledComponent<{
44
47
  alignItems?: string;
45
48
  fade?: boolean;
46
49
  fadeDelay?: number;
50
+ isVisible?: boolean;
47
51
  } & import("@ssa-ui-kit/core").CommonProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
48
52
  theme?: import("@emotion/react").Theme;
49
53
  } & {
@@ -58,6 +62,7 @@ export declare const Price: import("@emotion/styled").StyledComponent<{
58
62
  alignItems?: string;
59
63
  fade?: boolean;
60
64
  fadeDelay?: number;
65
+ isVisible?: boolean;
61
66
  } & import("@ssa-ui-kit/core").CommonProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
62
67
  theme?: import("@emotion/react").Theme;
63
68
  } & {
@@ -0,0 +1,5 @@
1
+ import { MarginInfoProps } from './types';
2
+ export declare const MarginInfo: ({ multiplier, base, quote, baseBorrowed, baseInterestRate, baseTotalInterest, quoteBorrowed, quoteInterestRate, quoteTotalInterest, showInterestRate, disableBorrow, disableRepay, onBorrow, onRepay, }: MarginInfoProps) => import("@emotion/react/jsx-runtime").JSX.Element;
3
+ export declare const MarginInfoWithLoader: ({ isFetching, ...props }: MarginInfoProps & {
4
+ isFetching: boolean;
5
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export * from './MarginInfo';
2
+ export * from './types';
@@ -0,0 +1,60 @@
1
+ import { Theme } from '@emotion/react';
2
+ export declare const Table: import("@emotion/styled").StyledComponent<{
3
+ theme?: Theme;
4
+ as?: React.ElementType;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const TableHeader: import("@emotion/styled").StyledComponent<{
7
+ theme?: Theme;
8
+ as?: React.ElementType;
9
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
10
+ export declare const HeaderRow: import("@emotion/styled").StyledComponent<{
11
+ theme?: Theme;
12
+ as?: React.ElementType;
13
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
14
+ export declare const HeaderLabel: import("@emotion/styled").StyledComponent<{
15
+ theme?: Theme;
16
+ as?: React.ElementType;
17
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
18
+ export declare const HeaderCell: import("@emotion/styled").StyledComponent<{
19
+ theme?: Theme;
20
+ as?: React.ElementType;
21
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
22
+ export declare const TableBody: import("@emotion/styled").StyledComponent<{
23
+ theme?: Theme;
24
+ as?: React.ElementType;
25
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
26
+ export declare const TableRow: import("@emotion/styled").StyledComponent<{
27
+ theme?: Theme;
28
+ as?: React.ElementType;
29
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
30
+ export declare const RowLabel: import("@emotion/styled").StyledComponent<{
31
+ theme?: Theme;
32
+ as?: React.ElementType;
33
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
34
+ export declare const RowCells: import("@emotion/styled").StyledComponent<{
35
+ theme?: Theme;
36
+ as?: React.ElementType;
37
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
38
+ export declare const Cell: import("@emotion/styled").StyledComponent<{
39
+ theme?: Theme;
40
+ as?: React.ElementType;
41
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
42
+ export declare const ButtonsWrapper: import("@emotion/styled").StyledComponent<{
43
+ theme?: import("@emotion/react").Theme;
44
+ as?: React.ElementType;
45
+ } & {
46
+ avatarSize?: number;
47
+ direction?: string;
48
+ alignItems?: string;
49
+ fade?: boolean;
50
+ fadeDelay?: number;
51
+ isVisible?: boolean;
52
+ } & import("@ssa-ui-kit/core").CommonProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
53
+ theme?: Theme;
54
+ }, {}, {}>;
55
+ export declare const BorrowButton: (theme: Theme) => import("@emotion/react").SerializedStyles;
56
+ export declare const RepayButton: (theme: Theme) => import("@emotion/react").SerializedStyles;
57
+ export declare const widgetCardStyles: import("@emotion/react").SerializedStyles;
58
+ export declare const wrapperStyles: import("@emotion/react").SerializedStyles;
59
+ export declare const headerStyles: import("@emotion/react").SerializedStyles;
60
+ export declare const contentStyles: import("@emotion/react").SerializedStyles;
@@ -0,0 +1,17 @@
1
+ import { ReactNode } from 'react';
2
+ export interface MarginInfoProps {
3
+ multiplier?: number;
4
+ base: ReactNode;
5
+ quote: ReactNode;
6
+ baseBorrowed: ReactNode;
7
+ baseInterestRate: ReactNode;
8
+ baseTotalInterest: ReactNode;
9
+ quoteBorrowed: ReactNode;
10
+ quoteInterestRate: ReactNode;
11
+ quoteTotalInterest: ReactNode;
12
+ showInterestRate?: boolean;
13
+ disableBorrow?: boolean;
14
+ disableRepay?: boolean;
15
+ onBorrow?: () => void;
16
+ onRepay?: () => void;
17
+ }
@@ -13,6 +13,7 @@ export * from './GrowthIndexIcon';
13
13
  export * from './HourlyPNL';
14
14
  export * from './KeeperRuns';
15
15
  export * from './LongText';
16
+ export * from './MarginInfo';
16
17
  export * from './MarketRoles';
17
18
  export * from './MaxInWork';
18
19
  export * from './NoDataYet';
@@ -7,6 +7,7 @@ export declare const TopMenuWrapper: import("@emotion/styled").StyledComponent<{
7
7
  alignItems?: string;
8
8
  fade?: boolean;
9
9
  fadeDelay?: number;
10
+ isVisible?: boolean;
10
11
  } & import("@ssa-ui-kit/core").CommonProps & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
11
12
  theme?: import("@emotion/react").Theme;
12
13
  }, {}, {}>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ssa-ui-kit/templates",
3
- "version": "2.28.2",
3
+ "version": "2.29.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "private": false,
@@ -33,10 +33,10 @@
33
33
  "react-plotly.js": "^2.6.0",
34
34
  "react-toastify": "^11.0.3",
35
35
  "usehooks-ts": "^3.1.0",
36
- "@ssa-ui-kit/core": "^2.28.2",
37
- "@ssa-ui-kit/hooks": "^2.28.2",
38
- "@ssa-ui-kit/utils": "^2.28.2",
39
- "@ssa-ui-kit/widgets": "^2.28.2"
36
+ "@ssa-ui-kit/core": "^2.29.0",
37
+ "@ssa-ui-kit/hooks": "^2.29.0",
38
+ "@ssa-ui-kit/utils": "^2.29.0",
39
+ "@ssa-ui-kit/widgets": "^2.29.0"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@emotion/css": "^11.13.5",