@inntechcorp/it-design 2.0.17 → 2.0.19
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/icons/NoData.d.ts +7 -0
- package/dist/icons/index.d.ts +1 -0
- package/dist/index.cjs.js +59 -59
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +13 -5
- package/dist/index.esm.js +49 -49
- package/dist/status/index.d.ts +1 -1
- package/dist/stories/NoDataIcon.d.ts +2 -0
- package/dist/stories/Select.d.ts +3 -0
- package/dist/stories/Select.stories.d.ts +20 -0
- package/dist/stories/Table.stories.d.ts +2 -0
- package/dist/table/styled.d.ts +2 -1
- package/dist/types/SelectProps.d.ts +4 -2
- package/dist/types/TableProps.d.ts +1 -1
- package/dist/utils/GetSizeBySizeSlug.d.ts +1 -1
- package/package.json +1 -1
package/dist/status/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { StatusProps } from '../index';
|
|
2
|
-
export default function Status({ variant, children, className, }: StatusProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export default function Status({ variant, size, children, className, }: StatusProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
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 Default: Story;
|
|
18
|
+
export declare const Filled: Story;
|
|
19
|
+
export declare const Dashed: Story;
|
|
20
|
+
export declare const MaskFormat: Story;
|
|
@@ -13,6 +13,8 @@ declare const meta: {
|
|
|
13
13
|
export default meta;
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
|
15
15
|
export declare const Default: Story;
|
|
16
|
+
export declare const NoData: Story;
|
|
17
|
+
export declare const Empty: Story;
|
|
16
18
|
export declare const Bordered: Story;
|
|
17
19
|
export declare const Headless: Story;
|
|
18
20
|
export declare const Dashed: Story;
|
package/dist/table/styled.d.ts
CHANGED
|
@@ -4,4 +4,5 @@ declare const Wrapper: import("styled-components/dist/types").IStyledComponentBa
|
|
|
4
4
|
$size: ITDSize;
|
|
5
5
|
$noGaps: boolean;
|
|
6
6
|
}>> & string;
|
|
7
|
-
|
|
7
|
+
declare const EmptyBody: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
8
|
+
export { Wrapper, EmptyBody };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
2
|
import { ChildrenProps } from "./ChildrenProps";
|
|
3
|
+
import { ITDSize } from "../index";
|
|
3
4
|
export type SelectProps = {
|
|
4
5
|
id?: string;
|
|
5
6
|
defaultValue?: string | number;
|
|
@@ -8,8 +9,8 @@ export type SelectProps = {
|
|
|
8
9
|
position?: string;
|
|
9
10
|
direction?: string;
|
|
10
11
|
mode?: string;
|
|
11
|
-
size?:
|
|
12
|
-
variant?:
|
|
12
|
+
size?: ITDSize;
|
|
13
|
+
variant?: SelectVariant;
|
|
13
14
|
className?: string;
|
|
14
15
|
placeholder?: string;
|
|
15
16
|
icon?: string;
|
|
@@ -21,6 +22,7 @@ export type SelectProps = {
|
|
|
21
22
|
onChange?: ((value: any) => void) | null;
|
|
22
23
|
onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
|
|
23
24
|
};
|
|
25
|
+
export type SelectVariant = "default" | "solid" | "filled" | "outline" | "custom";
|
|
24
26
|
export type SelectOptionProps = {
|
|
25
27
|
value: string;
|
|
26
28
|
text: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ITDSizeSlug } from "../index";
|
|
2
|
-
export default function GetSizeBySizeSlug(size: ITDSizeSlug): "
|
|
2
|
+
export default function GetSizeBySizeSlug(size: ITDSizeSlug): "x-small" | "small" | "medium" | "default" | "large" | "x-large" | "df";
|