@inntechcorp/it-design 2.0.30 → 2.0.32
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 +46 -46
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +30 -3
- package/dist/index.esm.js +41 -41
- package/dist/modal/container/ModalContainer.d.ts +1 -1
- package/dist/stories/TextArea.d.ts +3 -0
- package/dist/stories/TextArea.stories.d.ts +19 -0
- package/dist/textarea/index.d.ts +4 -0
- package/dist/textarea/styled.d.ts +15 -0
- package/dist/tinyscrollbar/index.d.ts +1 -1
- package/dist/types/TextAreaProps.d.ts +28 -0
- package/dist/utils/GetSizeBySizeSlug.d.ts +1 -1
- package/package.json +1 -1
- /package/dist/accordion/item/{styled.components.d.ts → styled.d.ts} +0 -0
- /package/dist/accordion/submenu/{styled.components.d.ts → styled.d.ts} +0 -0
- /package/dist/back-top/{styled.components.d.ts → styled.d.ts} +0 -0
- /package/dist/button/{styled.components.d.ts → styled.d.ts} +0 -0
- /package/dist/form/group/{styled.components.d.ts → styled.d.ts} +0 -0
- /package/dist/input/{styled.components.d.ts → styled.d.ts} +0 -0
- /package/dist/modal/container/{styled.components.d.ts → styled.d.ts} +0 -0
- /package/dist/modal/modal/{styled.components.d.ts → styled.d.ts} +0 -0
- /package/dist/result/{styled.components.d.ts → styled.d.ts} +0 -0
- /package/dist/select/menu/{styled.components.d.ts → styled.d.ts} +0 -0
- /package/dist/select/option/{styled.components.d.ts → styled.d.ts} +0 -0
- /package/dist/select/{styled.components.d.ts → styled.d.ts} +0 -0
- /package/dist/select/toggle/label/floating/{styled.components.d.ts → styled.d.ts} +0 -0
- /package/dist/select/toggle/label/single/{styled.components.d.ts → styled.d.ts} +0 -0
- /package/dist/select/toggle/{styled.components.d.ts → styled.d.ts} +0 -0
- /package/dist/spin/{styled.components.d.ts → styled.d.ts} +0 -0
- /package/dist/tinyscrollbar/{styled.components.d.ts → styled.d.ts} +0 -0
|
@@ -5,7 +5,7 @@ type ContainerExtraProps = {
|
|
|
5
5
|
/**
|
|
6
6
|
* All modals shown or to be shown.
|
|
7
7
|
*/
|
|
8
|
-
modals: ModalProps[];
|
|
8
|
+
modals: Required<ModalProps>[];
|
|
9
9
|
};
|
|
10
10
|
type ModalType = ModalContainerProps & ContainerExtraProps;
|
|
11
11
|
declare const ModalContainer: ({ onShowModal, onRemoveModal, onModalEvent, modals }: ModalType) => ReactPortal | null;
|
|
@@ -0,0 +1,19 @@
|
|
|
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;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
3
|
+
declare const Content: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
4
|
+
declare const Middle: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
declare const ErrorBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
6
|
+
declare const Success: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
7
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
8
|
+
}, never>> & string;
|
|
9
|
+
declare const Warning: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
10
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
11
|
+
}, never>> & string;
|
|
12
|
+
declare const Failed: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<Omit<import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>, "ref"> & {
|
|
13
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
14
|
+
}, never>> & string;
|
|
15
|
+
export { Wrapper, Middle, Content, ErrorBorder, Success, Warning, Failed };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ChildrenProps } from "./ChildrenProps";
|
|
2
|
+
import { ITDSize } from "../index";
|
|
3
|
+
import { RefObject } from "react";
|
|
4
|
+
export type TextAreaProps = {
|
|
5
|
+
id?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
value?: string;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
className?: string;
|
|
10
|
+
size?: ITDSize;
|
|
11
|
+
variant?: TextAreaVariant;
|
|
12
|
+
rows?: number;
|
|
13
|
+
maxLength?: number;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
showCount?: boolean;
|
|
16
|
+
onChange?: ((event: TextAreaEvent) => void);
|
|
17
|
+
onUpdate?: ((value: any, update: any, validation: boolean) => void) | null;
|
|
18
|
+
children?: ChildrenProps;
|
|
19
|
+
};
|
|
20
|
+
export type TextAreaEvent = {
|
|
21
|
+
value?: string | number | boolean;
|
|
22
|
+
className: string;
|
|
23
|
+
disabled: boolean;
|
|
24
|
+
target: RefObject<HTMLTextAreaElement>;
|
|
25
|
+
stopPropagation: () => void;
|
|
26
|
+
preventDefault: () => void;
|
|
27
|
+
};
|
|
28
|
+
export type TextAreaVariant = "default" | "filled" | "dashed";
|
|
@@ -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";
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|