@kaio-xyz/design-system 1.1.9 → 1.1.11
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/asset/icons/index.d.ts +2 -0
- package/dist/components/atoms/badge/badge.d.ts +4 -2
- package/dist/components/atoms/badge/badge.stories.d.ts +3 -3
- package/dist/components/atoms/checkbox/checkbox.stories.d.ts +1 -1
- package/dist/components/molecules/investments-graph/investments-graph.d.ts +3 -3
- package/dist/components/molecules/investments-graph/investments-graph.stories.d.ts +1 -0
- package/dist/components/molecules/investments-header/index.d.ts +1 -0
- package/dist/components/molecules/investments-header/investments-header.d.ts +7 -0
- package/dist/index.cjs.js +158 -160
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +159 -162
- package/dist/index.esm.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
|
@@ -12,3 +12,5 @@ export { default as MinusIcon } from "./minus.svg";
|
|
|
12
12
|
export { default as ClipBoardIcon } from "./clipboard.svg";
|
|
13
13
|
export { default as LoadingCircleIcon } from "./loading-circle.svg";
|
|
14
14
|
export { default as UserIcon } from "./user.svg";
|
|
15
|
+
export { default as ArrowDownRightIcon } from "./arrow-down-right.svg";
|
|
16
|
+
export { default as ArrowUpRightIcon } from "./arrow-up-right.svg";
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
export declare const BadgeStatuses: {
|
|
2
3
|
readonly success: "success";
|
|
3
4
|
readonly rejected: "rejected";
|
|
@@ -7,12 +8,13 @@ export declare const BadgeStatuses: {
|
|
|
7
8
|
};
|
|
8
9
|
export type BadgeStatus = typeof BadgeStatuses[keyof typeof BadgeStatuses];
|
|
9
10
|
export type BadgeProps = {
|
|
10
|
-
|
|
11
|
+
children: ReactNode;
|
|
11
12
|
fullWidth?: boolean;
|
|
12
13
|
dataTest?: string;
|
|
13
14
|
status?: BadgeStatus;
|
|
14
15
|
size?: "s" | "m" | "l";
|
|
15
16
|
reverted?: boolean;
|
|
16
17
|
hasIcon?: boolean;
|
|
18
|
+
className?: string;
|
|
17
19
|
};
|
|
18
|
-
export declare const Badge: ({
|
|
20
|
+
export declare const Badge: ({ className, children, status, fullWidth, dataTest, reverted, size, hasIcon, ...props }: BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { StoryObj } from "@storybook/react";
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({
|
|
4
|
+
component: ({ className, children, status, fullWidth, dataTest, reverted, size, hasIcon, ...props }: import("./badge").BadgeProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
parameters: {
|
|
6
6
|
layout: string;
|
|
7
7
|
};
|
|
8
8
|
tags: string[];
|
|
9
9
|
args: {
|
|
10
|
-
|
|
10
|
+
children: string;
|
|
11
11
|
fullWidth: false;
|
|
12
12
|
};
|
|
13
13
|
argTypes: {
|
|
14
|
-
|
|
14
|
+
children: {
|
|
15
15
|
description: string;
|
|
16
16
|
};
|
|
17
17
|
fullWidth: {
|
|
@@ -5,7 +5,6 @@ declare const meta: {
|
|
|
5
5
|
({ className, disabled, id, label, verticalAlign, onChange, dataTest, size, variant, indeterminate, checked, ...attributes }: {
|
|
6
6
|
children?: import("react").ReactNode | undefined;
|
|
7
7
|
className?: string | undefined | undefined;
|
|
8
|
-
title?: string | undefined | undefined;
|
|
9
8
|
width?: number | string | undefined | undefined;
|
|
10
9
|
height?: number | string | undefined | undefined;
|
|
11
10
|
style?: import("react").CSSProperties | undefined;
|
|
@@ -28,6 +27,7 @@ declare const meta: {
|
|
|
28
27
|
slot?: string | undefined | undefined;
|
|
29
28
|
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
30
29
|
tabIndex?: number | undefined | undefined;
|
|
30
|
+
title?: string | undefined | undefined;
|
|
31
31
|
translate?: "yes" | "no" | undefined | undefined;
|
|
32
32
|
radioGroup?: string | undefined | undefined;
|
|
33
33
|
role?: import("react").AriaRole | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dispatch, SetStateAction } from 'react';
|
|
1
|
+
import { Dispatch, ReactNode, SetStateAction } from 'react';
|
|
2
2
|
import { SingleValue } from 'react-select';
|
|
3
3
|
import { SelectOption } from '@/components/atoms/select/select';
|
|
4
4
|
export type DataPoint = {
|
|
@@ -16,7 +16,7 @@ type InvestmentGraphProps = {
|
|
|
16
16
|
dataPoints: DataPoint[];
|
|
17
17
|
timeFrame: SingleValue<SelectOption<TimeFrame>>;
|
|
18
18
|
setTimeFrame: Dispatch<SetStateAction<SingleValue<SelectOption<TimeFrame>>>>;
|
|
19
|
-
|
|
19
|
+
header?: ReactNode;
|
|
20
20
|
};
|
|
21
|
-
export declare const InvestmentGraph: ({ dataPoints, timeFrame,
|
|
21
|
+
export declare const InvestmentGraph: ({ dataPoints, timeFrame, header, setTimeFrame, }: InvestmentGraphProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
22
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InvestmentsHeader } from "./investments-header";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type InvestmentsHeaderProps = {
|
|
2
|
+
currentTotalInvestmentValue: number;
|
|
3
|
+
currentGainLossValue: number;
|
|
4
|
+
currentGainLossPercentageValue: number;
|
|
5
|
+
};
|
|
6
|
+
export declare const InvestmentsHeader: ({ currentTotalInvestmentValue, currentGainLossValue, currentGainLossPercentageValue, }: InvestmentsHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|