@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.
Files changed (30) hide show
  1. package/dist/index.cjs.js +46 -46
  2. package/dist/index.d.mts +2 -0
  3. package/dist/index.d.ts +30 -3
  4. package/dist/index.esm.js +41 -41
  5. package/dist/modal/container/ModalContainer.d.ts +1 -1
  6. package/dist/stories/TextArea.d.ts +3 -0
  7. package/dist/stories/TextArea.stories.d.ts +19 -0
  8. package/dist/textarea/index.d.ts +4 -0
  9. package/dist/textarea/styled.d.ts +15 -0
  10. package/dist/tinyscrollbar/index.d.ts +1 -1
  11. package/dist/types/TextAreaProps.d.ts +28 -0
  12. package/dist/utils/GetSizeBySizeSlug.d.ts +1 -1
  13. package/package.json +1 -1
  14. /package/dist/accordion/item/{styled.components.d.ts → styled.d.ts} +0 -0
  15. /package/dist/accordion/submenu/{styled.components.d.ts → styled.d.ts} +0 -0
  16. /package/dist/back-top/{styled.components.d.ts → styled.d.ts} +0 -0
  17. /package/dist/button/{styled.components.d.ts → styled.d.ts} +0 -0
  18. /package/dist/form/group/{styled.components.d.ts → styled.d.ts} +0 -0
  19. /package/dist/input/{styled.components.d.ts → styled.d.ts} +0 -0
  20. /package/dist/modal/container/{styled.components.d.ts → styled.d.ts} +0 -0
  21. /package/dist/modal/modal/{styled.components.d.ts → styled.d.ts} +0 -0
  22. /package/dist/result/{styled.components.d.ts → styled.d.ts} +0 -0
  23. /package/dist/select/menu/{styled.components.d.ts → styled.d.ts} +0 -0
  24. /package/dist/select/option/{styled.components.d.ts → styled.d.ts} +0 -0
  25. /package/dist/select/{styled.components.d.ts → styled.d.ts} +0 -0
  26. /package/dist/select/toggle/label/floating/{styled.components.d.ts → styled.d.ts} +0 -0
  27. /package/dist/select/toggle/label/single/{styled.components.d.ts → styled.d.ts} +0 -0
  28. /package/dist/select/toggle/{styled.components.d.ts → styled.d.ts} +0 -0
  29. /package/dist/spin/{styled.components.d.ts → styled.d.ts} +0 -0
  30. /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,3 @@
1
+ import './button.css';
2
+ import { FC } from 'react';
3
+ export declare const TextArea: FC<any>;
@@ -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,4 @@
1
+ /// <reference types="react" />
2
+ import { TextAreaProps, ITDImperativeFuncProps } from '../index';
3
+ declare const TextArea: import("react").ForwardRefExoticComponent<TextAreaProps & import("react").RefAttributes<ITDImperativeFuncProps>>;
4
+ export default TextArea;
@@ -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 };
@@ -1,4 +1,4 @@
1
- import { ChildrenProps } from 'types/ChildrenProps.js';
1
+ import { ChildrenProps } from 'types/ChildrenProps';
2
2
  type TinyScrollbarProps = {
3
3
  className: string;
4
4
  children: ChildrenProps;
@@ -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): "large" | "small" | "x-small" | "medium" | "default" | "x-large" | "df";
2
+ export default function GetSizeBySizeSlug(size: ITDSizeSlug): "x-small" | "small" | "medium" | "default" | "large" | "x-large" | "df";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.30",
3
+ "version": "2.0.32",
4
4
  "description": "All in one Design library for desktop applications.",
5
5
  "author": "Ali",
6
6
  "license": "ISC",