@ssa-ui-kit/widgets 2.32.0 → 2.33.0-canary-8c871dc-20260113
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/HeartRate/HeartRateLineChart.d.ts +5 -2
- package/dist/components/HeartRate/types.d.ts +2 -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/TradingInfoCard/types.d.ts +1 -1
- package/dist/index.js +20828 -306
- 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,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 {};
|
|
@@ -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
|
};
|
|
@@ -12,6 +12,6 @@ export type TradingInfoCardWrapperProps = Pick<TradingInfoCardProps, 'onClick' |
|
|
|
12
12
|
children?: React.ReactNode;
|
|
13
13
|
};
|
|
14
14
|
export interface TradingInfoCardTooltipProps {
|
|
15
|
-
trigger: string | number | JSX.Element;
|
|
15
|
+
trigger: string | number | React.JSX.Element;
|
|
16
16
|
children: React.ReactNode;
|
|
17
17
|
}
|