@inntechcorp/it-design 2.0.13 → 2.0.14
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/index.cjs.js +36 -105
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +29 -2
- package/dist/index.esm.js +29 -98
- package/dist/status/index.d.ts +2 -0
- package/dist/status/styled.d.ts +6 -0
- package/dist/stories/Card.stories.d.ts +1 -0
- package/dist/stories/Status.d.ts +2 -0
- package/dist/stories/Status.stories.d.ts +34 -0
- package/dist/stories/Table.d.ts +2 -0
- package/dist/stories/Table.stories.d.ts +15 -0
- package/dist/table/index.d.ts +3 -0
- package/dist/table/styled.d.ts +6 -0
- package/dist/types/StatusProps.d.ts +7 -0
- package/dist/types/TableProps.d.ts +18 -0
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StatusVariant } from '../index';
|
|
3
|
+
declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
4
|
+
$status: StatusVariant;
|
|
5
|
+
}>> & string;
|
|
6
|
+
export { Wrapper };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<any>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {};
|
|
11
|
+
args: {
|
|
12
|
+
onClick: import("@vitest/spy").Mock<any, any>;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Gray1: Story;
|
|
18
|
+
export declare const Gray2: Story;
|
|
19
|
+
export declare const Gray3: Story;
|
|
20
|
+
export declare const Green: Story;
|
|
21
|
+
export declare const Yellow: Story;
|
|
22
|
+
export declare const Red: Story;
|
|
23
|
+
export declare const Brown: Story;
|
|
24
|
+
export declare const Lavender: Story;
|
|
25
|
+
export declare const Pink: Story;
|
|
26
|
+
export declare const Violet: Story;
|
|
27
|
+
export declare const Blue: Story;
|
|
28
|
+
export declare const FilledRed: Story;
|
|
29
|
+
export declare const FilledYellow: Story;
|
|
30
|
+
export declare const FilledPink: Story;
|
|
31
|
+
export declare const FilledBlue: Story;
|
|
32
|
+
export declare const FilledGreen: Story;
|
|
33
|
+
export declare const FilledPurple: Story;
|
|
34
|
+
export declare const FilledBlack: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").FC<any>;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
tags: string[];
|
|
10
|
+
argTypes: {};
|
|
11
|
+
args: {};
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
type Story = StoryObj<typeof meta>;
|
|
15
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
|
+
$size: string;
|
|
4
|
+
$noGaps: boolean;
|
|
5
|
+
}>> & string;
|
|
6
|
+
export { Wrapper };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ChildrenProps } from "./ChildrenProps";
|
|
2
|
+
export type StatusProps = {
|
|
3
|
+
variant: StatusVariant;
|
|
4
|
+
children?: ChildrenProps;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export type StatusVariant = "gray-1" | "gray-2" | "gray-3" | "green" | "yellow" | "red" | "brown" | "lavender" | "pink" | "violet" | "blue" | "filled-red" | "filled-yellow" | "filled-pink" | "filled-blue" | "filled-green" | "filled-purple" | "filled-black";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type TableColumnType<T> = {
|
|
3
|
+
key: keyof T | string;
|
|
4
|
+
title: string;
|
|
5
|
+
dataIndex?: keyof T;
|
|
6
|
+
width?: number | string;
|
|
7
|
+
render?: (value: any, record: T, index: number) => React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export type TableProps<T> = {
|
|
10
|
+
columns: TableColumnType<T>[];
|
|
11
|
+
data: T[];
|
|
12
|
+
size?: TableSize;
|
|
13
|
+
headless?: boolean;
|
|
14
|
+
bordered?: boolean;
|
|
15
|
+
dashed?: boolean;
|
|
16
|
+
noGaps?: boolean;
|
|
17
|
+
};
|
|
18
|
+
export type TableSize = "x-small" | "small" | "medium" | "default" | "large" | "x-large";
|