@ssa-ui-kit/widgets 0.0.28-alpha → 0.0.29-alpha
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/custom-shots/widgets-bots-table--no-control-orders--run-reason-modal_[w1920px].png +0 -0
- package/custom-shots/widgets-collapsiblenavbar-opened__[w899px]_menu_opened.png +0 -0
- package/custom-shots/widgets-collapsiblenavbar-opened__[w899px]_statistics_submenu.png +0 -0
- package/custom-shots/widgets-filters--default__[w1920px].png +0 -0
- package/custom-shots/widgets-meal-nutrients--hint-opened__[w1440px].png +0 -0
- package/custom-shots/widgets-meal-nutrients--hint-opened__[w390px].png +0 -0
- package/custom-shots/widgets-meal-nutrients--hint-opened__[w900px].png +0 -0
- package/custom-shots/widgets-meal-nutrients--hint-opened__dropdown__[w390px].png +0 -0
- package/custom-shots/widgets-meal-nutrients--hint-opened__dropdown__[w900px].png +0 -0
- package/custom-shots/widgets-notification-menu--is-opened__[w1440px].png +0 -0
- package/custom-shots/widgets-notification-menu--is-opened__[w1920px].png +0 -0
- package/custom-shots/widgets-notification-menu--is-opened__[w900px].png +0 -0
- package/custom-shots/widgets-pagination--selected-hover__[w1920px].png +0 -0
- package/custom-shots/widgets-pagination-disabled--selected-hover__[w1920px].png +0 -0
- package/custom-shots/widgets-progressInfo__dropdown__[w1920px].png +0 -0
- package/custom-shots/widgets-progressInfo__dropdown__[w390px].png +0 -0
- package/custom-shots/widgets-progressInfo__dropdown__[w900px].png +0 -0
- package/custom-shots/widgets-searchbox--cross-icon__[w900px].png +0 -0
- package/custom-shots/widgets-table-filters--opened__[w1920px].png +0 -0
- package/custom-shots/widgets-trading-info-card--hover__[w1920px].png +0 -0
- package/custom-shots/widgets-user-profile--is-opened__[w1920px].png +0 -0
- package/dist/components/Calories/Calories.d.ts +2 -2
- package/dist/components/Calories/innerContent.d.ts +2 -2
- package/dist/components/Calories/types.d.ts +1 -1
- package/dist/components/CardList/CardList.d.ts +2 -2
- package/dist/components/CardList/types.d.ts +1 -1
- package/dist/components/CollapsibleNavBar/TriggerIcon.d.ts +2 -2
- package/dist/components/HeartRate/BPM.d.ts +2 -2
- package/dist/components/HeartRate/HeartRate.d.ts +2 -2
- package/dist/components/HeartRate/types.d.ts +3 -3
- package/dist/components/ListGoals/ListGoals.d.ts +2 -2
- package/dist/components/ListGoals/ListGoalsCard.d.ts +2 -2
- package/dist/components/ListGoals/types.d.ts +2 -2
- package/dist/components/MealNutrients/MealNutrients.d.ts +2 -2
- package/dist/components/MealNutrients/MealNutrientsTooltip.d.ts +2 -2
- package/dist/components/MealNutrients/types.d.ts +4 -4
- package/dist/components/NavBar/NavBar.d.ts +2 -2
- package/dist/components/NavBar/types.d.ts +6 -6
- package/dist/components/Pagination/ArrowButton.d.ts +2 -2
- package/dist/components/Pagination/Pagination.d.ts +2 -2
- package/dist/components/Pagination/PaginationButtons.d.ts +2 -2
- package/dist/components/Pagination/PaginationContext.d.ts +4 -4
- package/dist/components/Pagination/types.d.ts +6 -6
- package/dist/components/ProgressInfo/ProgressInfo.d.ts +2 -2
- package/dist/components/ProgressInfo/types.d.ts +1 -1
- package/dist/components/TableFilters/TableFilterCheckbox.d.ts +2 -2
- package/dist/components/TradingInfoCard/TradingInfoCard.d.ts +2 -2
- package/dist/components/TradingInfoCard/TradingInfoCardTooltip.d.ts +2 -2
- package/dist/components/TradingInfoCard/TradingInfoCardWrapper.d.ts +2 -2
- package/dist/components/TradingInfoCard/types.d.ts +4 -4
- package/dist/components/TradingScoreboard/TradingScoreboard.d.ts +2 -2
- package/dist/components/TradingScoreboard/types.d.ts +3 -3
- package/dist/components/UpcomingWorkouts/UpcomingWorkoutCard.d.ts +2 -2
- package/dist/components/UpcomingWorkouts/UpcomingWorkouts.d.ts +2 -2
- package/dist/components/UpcomingWorkouts/types.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/Activity/Activity.tsx +3 -3
- package/src/components/Calories/Calories.tsx +2 -2
- package/src/components/Calories/innerContent.tsx +2 -2
- package/src/components/Calories/types.ts +1 -1
- package/src/components/CardList/CardList.tsx +2 -2
- package/src/components/CardList/types.ts +1 -1
- package/src/components/CollapsibleNavBar/TriggerIcon.tsx +2 -2
- package/src/components/Filters/FiltersBlock.tsx +1 -0
- package/src/components/HeartRate/BPM.tsx +2 -2
- package/src/components/HeartRate/HeartRate.tsx +2 -2
- package/src/components/HeartRate/types.ts +3 -3
- package/src/components/ListGoals/ListGoals.tsx +2 -2
- package/src/components/ListGoals/ListGoalsCard.tsx +2 -2
- package/src/components/ListGoals/types.ts +2 -2
- package/src/components/MealNutrients/MealNutrients.stories.tsx +3 -3
- package/src/components/MealNutrients/MealNutrients.tsx +2 -2
- package/src/components/MealNutrients/MealNutrientsTooltip.tsx +4 -4
- package/src/components/MealNutrients/types.ts +4 -4
- package/src/components/MealPlanner/MealPlanner.tsx +3 -3
- package/src/components/NavBar/NavBar.tsx +2 -2
- package/src/components/NavBar/types.ts +6 -6
- package/src/components/NotificationCard/NotificationCard.tsx +2 -2
- package/src/components/Pagination/ArrowButton.tsx +2 -2
- package/src/components/Pagination/Pagination.tsx +2 -2
- package/src/components/Pagination/PaginationButtons.tsx +3 -3
- package/src/components/Pagination/PaginationContext.tsx +7 -4
- package/src/components/Pagination/types.ts +6 -6
- package/src/components/ProgressInfo/ProgressInfo.stories.tsx +2 -2
- package/src/components/ProgressInfo/ProgressInfo.tsx +4 -4
- package/src/components/ProgressInfo/types.ts +1 -1
- package/src/components/TableFilters/TableFilterCheckbox.tsx +2 -2
- package/src/components/TableFilters/TableFilters.tsx +2 -2
- package/src/components/TradingInfoCard/TradingInfoCard.stories.tsx +6 -6
- package/src/components/TradingInfoCard/TradingInfoCard.tsx +3 -3
- package/src/components/TradingInfoCard/TradingInfoCardTooltip.tsx +2 -2
- package/src/components/TradingInfoCard/TradingInfoCardWrapper.tsx +2 -2
- package/src/components/TradingInfoCard/types.ts +5 -5
- package/src/components/TradingScoreboard/TradingScoreboard.stories.tsx +5 -5
- package/src/components/TradingScoreboard/TradingScoreboard.tsx +2 -2
- package/src/components/TradingScoreboard/types.ts +3 -3
- package/src/components/UpcomingWorkouts/UpcomingWorkoutCard.tsx +2 -2
- package/src/components/UpcomingWorkouts/UpcomingWorkouts.tsx +2 -2
- package/src/components/UpcomingWorkouts/types.ts +2 -2
- package/tsbuildcache +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CaloriesProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* UI Component that shows how many calories the user has burned
|
|
5
5
|
*/
|
|
6
|
-
export declare const Calories: ({ max, currentValue }:
|
|
6
|
+
export declare const Calories: ({ max, currentValue }: CaloriesProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const InnerContent: ({ currentValue, max }:
|
|
1
|
+
import { CaloriesProps } from './types';
|
|
2
|
+
export declare const InnerContent: ({ currentValue, max }: CaloriesProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CardListProps, Item } from './types';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* UI Component that renders a list of items with a custom render function
|
|
5
5
|
*/
|
|
6
|
-
export declare const CardList: <ItemType extends Item>({ title, items, renderItem, }:
|
|
6
|
+
export declare const CardList: <ItemType extends Item>({ title, items, renderItem, }: CardListProps<ItemType>) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -3,7 +3,7 @@ export type Item = {
|
|
|
3
3
|
id: string | number;
|
|
4
4
|
[prop: string | number | symbol]: unknown;
|
|
5
5
|
};
|
|
6
|
-
export interface
|
|
6
|
+
export interface CardListProps<ItemType extends Item> {
|
|
7
7
|
title: string;
|
|
8
8
|
items: Array<ItemType>;
|
|
9
9
|
renderItem: (item: ItemType) => React.ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { MapIconsType, SVGProps } from '@ssa-ui-kit/core';
|
|
3
3
|
export declare const TriggerIcon: ({ iconName, iconSize, className, CustomIcon, }: {
|
|
4
|
-
iconName: keyof
|
|
4
|
+
iconName: keyof MapIconsType;
|
|
5
5
|
iconSize?: number | undefined;
|
|
6
6
|
className?: string | undefined;
|
|
7
7
|
CustomIcon?: ((props: Omit<SVGProps, 'fill'>) => JSX.Element) | undefined;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const BPM: ({ value }:
|
|
1
|
+
import { BMPProps } from './types';
|
|
2
|
+
export declare const BPM: ({ value }: BMPProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HeartRateProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* UI Component that shows the heart rate of the user
|
|
5
5
|
*/
|
|
6
|
-
export declare const HeartRate: ({ data, caption, color, }:
|
|
6
|
+
export declare const HeartRate: ({ data, caption, color, }: HeartRateProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Serie } from '@nivo/line';
|
|
2
|
-
export interface
|
|
2
|
+
export interface HeartRateProps {
|
|
3
3
|
data: Serie;
|
|
4
4
|
caption?: string;
|
|
5
5
|
color?: string;
|
|
6
6
|
}
|
|
7
|
-
export interface
|
|
7
|
+
export interface BMPProps {
|
|
8
8
|
value: number;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface HeartRateCaptionProps {
|
|
11
11
|
caption: string;
|
|
12
12
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ListGoalsProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* UI Component that uses CardList to render a list of goals
|
|
5
5
|
*/
|
|
6
|
-
export declare const ListGoals: ({ goals }:
|
|
6
|
+
export declare const ListGoals: ({ goals }: ListGoalsProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ListGoalsCard: ({ image, title, details, progressProps, }:
|
|
1
|
+
import { ItemCardProps } from './types';
|
|
2
|
+
export declare const ListGoalsCard: ({ image, title, details, progressProps, }: ItemCardProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -8,11 +8,11 @@ export type Goal = {
|
|
|
8
8
|
completion: number;
|
|
9
9
|
color: keyof MainColors;
|
|
10
10
|
};
|
|
11
|
-
export interface
|
|
11
|
+
export interface ListGoalsProps {
|
|
12
12
|
goals: Array<Goal>;
|
|
13
13
|
}
|
|
14
14
|
export type ProgressProps = Partial<React.ComponentProps<typeof ProgressCircle>>;
|
|
15
|
-
export interface
|
|
15
|
+
export interface ItemCardProps {
|
|
16
16
|
image: string;
|
|
17
17
|
title: string;
|
|
18
18
|
details: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MealNutrientsProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* UI Component that shows the nutrients consumed by the user
|
|
5
5
|
*/
|
|
6
|
-
export declare const MealNutrients: ({ caption, options, data, onOptionChange, }:
|
|
6
|
+
export declare const MealNutrients: ({ caption, options, data, onOptionChange, }: MealNutrientsProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const MealNutrientsTooltip: ({ colorName, point, }:
|
|
1
|
+
import { MealNutrientsTooltipProps } from './types';
|
|
2
|
+
export declare const MealNutrientsTooltip: ({ colorName, point, }: MealNutrientsTooltipProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Point, LineSvgProps, CustomLayerProps } from '@nivo/line';
|
|
3
3
|
import { ScaleTimeSpec } from '@nivo/scales';
|
|
4
|
-
import { MainColors,
|
|
5
|
-
export interface OptionType extends
|
|
4
|
+
import { MainColors, DropdownOptionProps } from '@ssa-ui-kit/core';
|
|
5
|
+
export interface OptionType extends DropdownOptionProps {
|
|
6
6
|
value: 'd' | 'w' | 'm';
|
|
7
7
|
label: string;
|
|
8
8
|
precision: string;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface MealNutrientsProps {
|
|
11
11
|
caption?: string;
|
|
12
12
|
options: OptionType[];
|
|
13
13
|
data: LineSvgProps['data'];
|
|
14
14
|
onOptionChange?: (option: OptionType) => void;
|
|
15
15
|
}
|
|
16
|
-
export interface
|
|
16
|
+
export interface MealNutrientsTooltipProps {
|
|
17
17
|
colorName: keyof MainColors;
|
|
18
18
|
point: Exclude<Point, 'data'> & {
|
|
19
19
|
data: Point['data'] & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NavBarProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* UI Component that shows the navigation bar
|
|
4
4
|
*/
|
|
5
|
-
export declare const NavBar: ({ items }:
|
|
5
|
+
export declare const NavBar: ({ items }: NavBarProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { EmotionJSX } from '@emotion/react/types/jsx-namespace';
|
|
2
|
-
import {
|
|
3
|
-
export interface
|
|
2
|
+
import { MapIconsType } from '@ssa-ui-kit/core';
|
|
3
|
+
export interface NavBarProps {
|
|
4
4
|
items: Array<{
|
|
5
5
|
path: string;
|
|
6
|
-
iconName: keyof
|
|
6
|
+
iconName: keyof MapIconsType;
|
|
7
7
|
}>;
|
|
8
8
|
}
|
|
9
9
|
export type NavBarExtendedItem = {
|
|
10
10
|
CustomIcon?: () => EmotionJSX.Element;
|
|
11
11
|
path: string;
|
|
12
|
-
iconName: keyof
|
|
12
|
+
iconName: keyof MapIconsType;
|
|
13
13
|
title: string;
|
|
14
14
|
};
|
|
15
15
|
export type NavBarExtendedGroup = {
|
|
16
16
|
CustomIcon?: () => EmotionJSX.Element;
|
|
17
17
|
prefix?: string;
|
|
18
|
-
iconName: keyof
|
|
18
|
+
iconName: keyof MapIconsType;
|
|
19
19
|
title: string;
|
|
20
20
|
items: Array<{
|
|
21
21
|
path: string;
|
|
22
22
|
title: string;
|
|
23
23
|
}>;
|
|
24
24
|
};
|
|
25
|
-
export interface
|
|
25
|
+
export interface NavBarExtendedProps {
|
|
26
26
|
items: Array<NavBarExtendedItem | NavBarExtendedGroup>;
|
|
27
27
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ArrowButton: ({ direction, onClick, isDisabled, className, }:
|
|
1
|
+
import { ArrowButtonProps } from './types';
|
|
2
|
+
export declare const ArrowButton: ({ direction, onClick, isDisabled, className, }: ArrowButtonProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const Pagination: ({ pagesCount, className, as, ariaLabel, isDisabled, }:
|
|
1
|
+
import { PaginationProps } from './types';
|
|
2
|
+
declare const Pagination: ({ pagesCount, className, as, ariaLabel, isDisabled, }: PaginationProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
3
3
|
export default Pagination;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const PaginationButtons: ({ range, selectedPage, onClick, isDisabled, }:
|
|
1
|
+
import { PaginationButtonsProps } from './types';
|
|
2
|
+
export declare const PaginationButtons: ({ range, selectedPage, onClick, isDisabled, }: PaginationButtonsProps) => false | import("@emotion/react/types/jsx-namespace").EmotionJSX.Element[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
export declare const PaginationContext: import("react").Context<
|
|
4
|
-
export declare const usePaginationContext: () =>
|
|
5
|
-
export declare const PaginationContextProvider: ({ selectedPage, children, }:
|
|
2
|
+
import { PaginationContextProps, PaginationContextProviderProps } from './types';
|
|
3
|
+
export declare const PaginationContext: import("react").Context<PaginationContextProps>;
|
|
4
|
+
export declare const usePaginationContext: () => PaginationContextProps;
|
|
5
|
+
export declare const PaginationContextProvider: ({ selectedPage, children, }: PaginationContextProviderProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { CommonProps } from '@ssa-ui-kit/core';
|
|
3
|
-
export interface
|
|
3
|
+
export interface PaginationProps extends CommonProps {
|
|
4
4
|
pagesCount: number;
|
|
5
5
|
ariaLabel?: string;
|
|
6
6
|
isDisabled?: boolean;
|
|
7
7
|
}
|
|
8
|
-
export interface
|
|
8
|
+
export interface PaginationButtonsProps {
|
|
9
9
|
range: number[];
|
|
10
10
|
selectedPage?: number;
|
|
11
11
|
onClick: (page: number) => void;
|
|
12
12
|
isDisabled?: boolean;
|
|
13
13
|
}
|
|
14
|
-
export interface
|
|
14
|
+
export interface ArrowButtonProps {
|
|
15
15
|
direction: 'left' | 'right';
|
|
16
16
|
onClick: () => void;
|
|
17
17
|
isDisabled?: boolean;
|
|
18
18
|
className?: string;
|
|
19
19
|
}
|
|
20
|
-
export interface
|
|
20
|
+
export interface PageButtonProps {
|
|
21
21
|
onClick: () => void;
|
|
22
22
|
page: number | string;
|
|
23
23
|
isSelected: boolean;
|
|
24
24
|
isDisabled?: boolean;
|
|
25
25
|
}
|
|
26
|
-
export interface
|
|
26
|
+
export interface PaginationContextProps {
|
|
27
27
|
page?: number;
|
|
28
28
|
setPage: React.Dispatch<React.SetStateAction<number | undefined>>;
|
|
29
29
|
}
|
|
30
|
-
export interface
|
|
30
|
+
export interface PaginationContextProviderProps {
|
|
31
31
|
selectedPage?: number;
|
|
32
32
|
children: React.ReactNode;
|
|
33
33
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const ProgressInfo: ({ data, className }:
|
|
1
|
+
import { ProgressInfoProps } from './types';
|
|
2
|
+
export declare const ProgressInfo: ({ data, className }: ProgressInfoProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const TableFilterCheckbox: (props:
|
|
1
|
+
import { CheckboxProps } from '@ssa-ui-kit/core';
|
|
2
|
+
export declare const TableFilterCheckbox: (props: CheckboxProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const TradingInfoCard: (props:
|
|
1
|
+
import { TradingInfoCardProps } from './types';
|
|
2
|
+
declare const TradingInfoCard: (props: TradingInfoCardProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
3
3
|
export default TradingInfoCard;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const TradingInfoCardTooltip: ({ trigger, children, }:
|
|
1
|
+
import { TradingInfoCardTooltipProps } from './types';
|
|
2
|
+
declare const TradingInfoCardTooltip: ({ trigger, children, }: TradingInfoCardTooltipProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
3
3
|
export default TradingInfoCardTooltip;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const TradingInfoCardWrapper: ({ onClick, link, children, }:
|
|
1
|
+
import { TradingInfoCardWrapperProps } from './types';
|
|
2
|
+
declare const TradingInfoCardWrapper: ({ onClick, link, children, }: TradingInfoCardWrapperProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
3
3
|
export default TradingInfoCardWrapper;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export interface
|
|
2
|
+
export interface TradingInfoCardProps {
|
|
3
3
|
value: React.ReactNode;
|
|
4
4
|
title: string;
|
|
5
5
|
unit?: string;
|
|
@@ -7,11 +7,11 @@ export interface ITradingInfoCardProps {
|
|
|
7
7
|
onClick?: () => void;
|
|
8
8
|
link?: string;
|
|
9
9
|
}
|
|
10
|
-
export type TradingInfoContent = Pick<
|
|
11
|
-
export type
|
|
10
|
+
export type TradingInfoContent = Pick<TradingInfoCardProps, 'value' | 'unit' | 'icon'>;
|
|
11
|
+
export type TradingInfoCardWrapperProps = Pick<TradingInfoCardProps, 'onClick' | 'link'> & {
|
|
12
12
|
children?: React.ReactNode;
|
|
13
13
|
};
|
|
14
|
-
export interface
|
|
14
|
+
export interface TradingInfoCardTooltipProps {
|
|
15
15
|
trigger: string | number | JSX.Element;
|
|
16
16
|
children: React.ReactNode;
|
|
17
17
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const TradingScoreboard: ({ items, onClick, renderCard, ...props }:
|
|
1
|
+
import { TradingScoreboardProps } from './types';
|
|
2
|
+
declare const TradingScoreboard: ({ items, onClick, renderCard, ...props }: TradingScoreboardProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
3
3
|
export default TradingScoreboard;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { TradingInfoCardProps } from '../TradingInfoCard/types';
|
|
3
3
|
import { SerializedStyles } from '@emotion/react';
|
|
4
|
-
type TradingScoreboardItem = Pick<
|
|
5
|
-
export interface
|
|
4
|
+
type TradingScoreboardItem = Pick<TradingInfoCardProps, 'value' | 'unit' | 'title' | 'icon' | 'link'>;
|
|
5
|
+
export interface TradingScoreboardProps {
|
|
6
6
|
itemsPerRow: number;
|
|
7
7
|
items: Array<TradingScoreboardItem>;
|
|
8
8
|
onClick?: (item: TradingScoreboardItem) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UpcomingWorkoutCardProps } from './types';
|
|
2
2
|
/**
|
|
3
3
|
*
|
|
4
4
|
* UI Component that use CardList to render a list of upcoming workouts
|
|
5
5
|
*/
|
|
6
|
-
export declare const UpcomingWorkoutCard: ({ image, title, workoutTime, renderDetails, onClick, }:
|
|
6
|
+
export declare const UpcomingWorkoutCard: ({ image, title, workoutTime, renderDetails, onClick, }: UpcomingWorkoutCardProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const UpcomingWorkouts: ({ workouts }:
|
|
1
|
+
import { UpcomingWorkoutsProps } from './types';
|
|
2
|
+
export declare const UpcomingWorkouts: ({ workouts }: UpcomingWorkoutsProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export interface
|
|
2
|
+
export interface UpcomingWorkoutCardProps {
|
|
3
3
|
image: string;
|
|
4
4
|
title: string;
|
|
5
5
|
workoutTime: string;
|
|
@@ -17,6 +17,6 @@ export type Workout = {
|
|
|
17
17
|
minutes: number;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
-
export interface
|
|
20
|
+
export interface UpcomingWorkoutsProps {
|
|
21
21
|
workouts: Array<Workout>;
|
|
22
22
|
}
|