@kaio-xyz/design-system 1.1.8 → 1.1.9

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.
@@ -1 +1,2 @@
1
1
  export { Table } from "./table";
2
+ export { type TableColumn } from 'react-data-table-component';
@@ -0,0 +1 @@
1
+ export { Tooltip } from "./tooltip";
@@ -0,0 +1,7 @@
1
+ import { PropsWithChildren, ReactNode } from "react";
2
+ type TooltipProps = PropsWithChildren<{
3
+ title: string;
4
+ description?: ReactNode;
5
+ }>;
6
+ export declare const Tooltip: ({ children, title, description }: TooltipProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,63 @@
1
+ import type { StoryObj } from "@storybook/react";
2
+ declare const meta: {
3
+ title: string;
4
+ component: ({ children, title, description }: {
5
+ title: string;
6
+ description?: import("react").ReactNode;
7
+ } & {
8
+ children?: import("react").ReactNode | undefined;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ tags: string[];
11
+ argTypes: {
12
+ title: {
13
+ description: string;
14
+ control: {
15
+ type: "text";
16
+ };
17
+ defaultValue: string;
18
+ table: {
19
+ type: {
20
+ summary: string;
21
+ };
22
+ defaultValue: {
23
+ summary: string;
24
+ };
25
+ };
26
+ };
27
+ description: {
28
+ description: string;
29
+ control: {
30
+ type: "text";
31
+ };
32
+ defaultValue: string;
33
+ table: {
34
+ type: {
35
+ summary: string;
36
+ };
37
+ defaultValue: {
38
+ summary: string;
39
+ };
40
+ };
41
+ };
42
+ children: {
43
+ description: string;
44
+ control: {
45
+ type: "text";
46
+ };
47
+ defaultValue: string;
48
+ table: {
49
+ type: {
50
+ summary: string;
51
+ };
52
+ defaultValue: {
53
+ summary: string;
54
+ };
55
+ };
56
+ };
57
+ };
58
+ };
59
+ export default meta;
60
+ type Story = StoryObj<typeof meta>;
61
+ export declare const Default: Story;
62
+ export declare const WithDescription: Story;
63
+ export declare const WithDescriptionLong: Story;
@@ -0,0 +1 @@
1
+ export { InvestmentGraph, Timeframes, type TimeFrame, type DataPoint } from "./investments-graph";
@@ -0,0 +1,22 @@
1
+ import { Dispatch, SetStateAction } from 'react';
2
+ import { SingleValue } from 'react-select';
3
+ import { SelectOption } from '@/components/atoms/select/select';
4
+ export type DataPoint = {
5
+ date: string;
6
+ value: number;
7
+ };
8
+ export declare const Timeframes: {
9
+ readonly month: "month";
10
+ readonly quarter: "quarter";
11
+ readonly halfYear: "half-year";
12
+ readonly year: "year";
13
+ };
14
+ export type TimeFrame = typeof Timeframes[keyof typeof Timeframes];
15
+ type InvestmentGraphProps = {
16
+ dataPoints: DataPoint[];
17
+ timeFrame: SingleValue<SelectOption<TimeFrame>>;
18
+ setTimeFrame: Dispatch<SetStateAction<SingleValue<SelectOption<TimeFrame>>>>;
19
+ hideLabel?: boolean;
20
+ };
21
+ export declare const InvestmentGraph: ({ dataPoints, timeFrame, setTimeFrame, hideLabel, }: InvestmentGraphProps) => import("react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -0,0 +1,6 @@
1
+ import { InvestmentGraph } from "./index";
2
+ import { Meta, StoryObj } from "@storybook/react";
3
+ declare const meta: Meta<typeof InvestmentGraph>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof InvestmentGraph>;
6
+ export declare const Default: Story;