@ssa-ui-kit/widgets 2.33.0 → 3.0.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/AccountKeys/useAccountKeys.d.ts +3 -3
- package/dist/components/Bmi/BmiLabel.d.ts +1 -1
- package/dist/components/HeartRate/HeartRateLineChart.d.ts +5 -2
- package/dist/components/HeartRate/types.d.ts +2 -2
- package/dist/components/MarginInfo/styles.d.ts +3 -2
- package/dist/components/MealNutrients/MealNutrientsLineChart.d.ts +5 -2
- package/dist/components/MealNutrients/chartDefaultConfig.d.ts +4 -1
- package/dist/components/MealNutrients/types.d.ts +8 -8
- package/dist/components/MealPlanner/MealPlannerBadge.d.ts +1 -1
- package/dist/components/TradingInfoCard/types.d.ts +2 -1
- package/dist/index.js +20777 -272
- package/dist/index.js.map +1 -1
- package/package.json +33 -25
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export type UseAccountKeysOptions = {
|
|
2
|
-
title?: string | JSX.Element;
|
|
2
|
+
title?: string | React.JSX.Element;
|
|
3
3
|
apiKey: string;
|
|
4
4
|
secretKey: string;
|
|
5
|
-
placeholder?: string | JSX.Element;
|
|
5
|
+
placeholder?: string | React.JSX.Element;
|
|
6
6
|
visible?: boolean;
|
|
7
7
|
defaultVisible?: boolean;
|
|
8
8
|
onDelete?: () => void;
|
|
@@ -10,7 +10,7 @@ export type UseAccountKeysOptions = {
|
|
|
10
10
|
isDisabled?: boolean;
|
|
11
11
|
};
|
|
12
12
|
export declare const useAccountKeys: ({ title, apiKey, secretKey, placeholder: controlledPlaceholder, isDisabled, visible, defaultVisible, onDelete, onVisibilityChange, }: UseAccountKeysOptions) => {
|
|
13
|
-
title: string | JSX.Element | undefined;
|
|
13
|
+
title: string | import("react").JSX.Element | undefined;
|
|
14
14
|
apiKey: string;
|
|
15
15
|
secretKey: string;
|
|
16
16
|
placeholder: string | import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const BmiLabel: import("@emotion/styled").StyledComponent<Omit<import("@ssa-ui-kit/core
|
|
1
|
+
export declare const BmiLabel: import("@emotion/styled").StyledComponent<Omit<import("@ssa-ui-kit/core").TypographyProps, "ref"> & import("react").RefAttributes<HTMLElement> & {
|
|
2
2
|
theme?: import("@emotion/react").Theme;
|
|
3
3
|
}, {}, {}>;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import { LineSvgProps } from '@nivo/line';
|
|
2
|
-
|
|
1
|
+
import { LineSvgProps, LineSeries } from '@nivo/line';
|
|
2
|
+
import { ResponsiveProps } from '@nivo/core';
|
|
3
|
+
type LineProps = ResponsiveProps<LineSvgProps<LineSeries>>;
|
|
4
|
+
export declare const HeartRateLineChart: ({ data, ...props }: LineProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -41,8 +41,9 @@ export declare const ButtonsWrapper: import("@emotion/styled").StyledComponent<{
|
|
|
41
41
|
theme?: import("@emotion/react").Theme;
|
|
42
42
|
as?: React.ElementType;
|
|
43
43
|
} & {
|
|
44
|
-
direction?:
|
|
45
|
-
alignItems?:
|
|
44
|
+
direction?: import("@ssa-ui-kit/core").WrapperDirection;
|
|
45
|
+
alignItems?: import("@ssa-ui-kit/core").WrapperAlignItems;
|
|
46
|
+
justifyContent?: import("@ssa-ui-kit/core").WrapperJustifyContent;
|
|
46
47
|
fade?: boolean;
|
|
47
48
|
fadeDelay?: number;
|
|
48
49
|
isVisible?: boolean;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import { LineSvgProps } from '@nivo/line';
|
|
2
|
-
|
|
1
|
+
import { LineSvgProps, LineSeries } from '@nivo/line';
|
|
2
|
+
import { ResponsiveProps } from '@nivo/core';
|
|
3
|
+
type LineProps = ResponsiveProps<LineSvgProps<LineSeries>>;
|
|
4
|
+
export declare const MealNutrientsLineChart: ({ data, ...props }: LineProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
export {};
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LineSeries, LineSvgProps } from '@nivo/line';
|
|
2
|
+
import { ResponsiveProps } from '@nivo/core';
|
|
3
|
+
type LineProps = ResponsiveProps<LineSvgProps<LineSeries>>;
|
|
2
4
|
export declare const defaults: Omit<LineProps, 'data'>;
|
|
5
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Point, LineSvgProps,
|
|
1
|
+
import { Point, LineSvgProps, LineCustomSvgLayerProps, LineSeries } from '@nivo/line';
|
|
2
2
|
import { ScaleTimeSpec } from '@nivo/scales';
|
|
3
3
|
import { MainColors, DropdownOptionProps } from '@ssa-ui-kit/core';
|
|
4
4
|
export interface OptionType extends DropdownOptionProps {
|
|
@@ -9,20 +9,20 @@ export interface OptionType extends DropdownOptionProps {
|
|
|
9
9
|
export interface MealNutrientsProps {
|
|
10
10
|
caption?: string;
|
|
11
11
|
options: OptionType[];
|
|
12
|
-
data: LineSvgProps['data'];
|
|
12
|
+
data: LineSvgProps<LineSeries>['data'];
|
|
13
13
|
onOptionChange?: (option: OptionType) => void;
|
|
14
14
|
}
|
|
15
15
|
export interface MealNutrientsTooltipProps {
|
|
16
16
|
colorName: keyof MainColors;
|
|
17
|
-
point: Exclude<Point
|
|
18
|
-
data: Point['data'] & {
|
|
17
|
+
point: Exclude<Point<LineSeries>, 'data'> & {
|
|
18
|
+
data: Point<LineSeries>['data'] & {
|
|
19
19
|
comp?: number;
|
|
20
20
|
unit?: string;
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
export type UseChartConfig = (ref: React.RefObject<HTMLElement>, data: LineSvgProps['data'], precision: ScaleTimeSpec['precision'] | 'week') => Pick<LineSvgProps
|
|
25
|
-
export type ScaleSpec = LineSvgProps['xScale'];
|
|
26
|
-
export type CustomPointLayerProps =
|
|
27
|
-
currentPoint
|
|
24
|
+
export type UseChartConfig = (ref: React.RefObject<HTMLElement | null>, data: LineSvgProps<LineSeries>['data'], precision: ScaleTimeSpec['precision'] | 'week') => Pick<LineSvgProps<LineSeries>, 'xScale' | 'axisBottom'>;
|
|
25
|
+
export type ScaleSpec = LineSvgProps<LineSeries>['xScale'];
|
|
26
|
+
export type CustomPointLayerProps = LineCustomSvgLayerProps<LineSeries> & {
|
|
27
|
+
currentPoint: Point<LineSeries> | null;
|
|
28
28
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const Marker: import("@emotion/styled").StyledComponent<Omit<Omit<import("react").HTMLProps<HTMLDivElement>, "size"> & import("@ssa-ui-kit/core
|
|
1
|
+
declare const Marker: import("@emotion/styled").StyledComponent<Omit<Omit<import("react").HTMLProps<HTMLDivElement>, "size"> & import("@ssa-ui-kit/core").BadgeProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & {
|
|
2
2
|
theme?: import("@emotion/react").Theme;
|
|
3
3
|
}, {}, {}>;
|
|
4
4
|
export default Marker;
|
|
@@ -6,12 +6,13 @@ export interface TradingInfoCardProps {
|
|
|
6
6
|
icon?: React.ReactNode;
|
|
7
7
|
onClick?: () => void;
|
|
8
8
|
link?: string;
|
|
9
|
+
showTooltip?: boolean;
|
|
9
10
|
}
|
|
10
11
|
export type TradingInfoContent = Pick<TradingInfoCardProps, 'value' | 'unit' | 'icon'>;
|
|
11
12
|
export type TradingInfoCardWrapperProps = Pick<TradingInfoCardProps, 'onClick' | 'link'> & {
|
|
12
13
|
children?: React.ReactNode;
|
|
13
14
|
};
|
|
14
15
|
export interface TradingInfoCardTooltipProps {
|
|
15
|
-
trigger: string | number | JSX.Element;
|
|
16
|
+
trigger: string | number | React.JSX.Element;
|
|
16
17
|
children: React.ReactNode;
|
|
17
18
|
}
|