@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.
@@ -0,0 +1,2 @@
1
+ import { StatusProps } from '../index';
2
+ export default function Status({ variant, children, className, }: StatusProps): import("react/jsx-runtime").JSX.Element;
@@ -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 };
@@ -14,4 +14,5 @@ export default meta;
14
14
  type Story = StoryObj<typeof meta>;
15
15
  export declare const Default: Story;
16
16
  export declare const WithButtons: Story;
17
+ export declare const WithTabsAndButtons: Story;
17
18
  export declare const WithTabs: Story;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Status: FC<any>;
@@ -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,2 @@
1
+ import { FC } from 'react';
2
+ export declare const Table: FC<any>;
@@ -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,3 @@
1
+ import { TableProps } from "../index";
2
+ declare const Table: <T>({ columns, data, size, headless, bordered, dashed, noGaps }: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
3
+ export default Table;
@@ -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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.13",
3
+ "version": "2.0.14",
4
4
  "description": "All in one Design library for desktop applications.",
5
5
  "author": "Ali",
6
6
  "license": "ISC",