@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.
@@ -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,2 @@
1
+ declare const NoDataIcon: () => import("react/jsx-runtime").JSX.Element;
2
+ export default NoDataIcon;
@@ -0,0 +1,3 @@
1
+ import './button.css';
2
+ import { FC } from 'react';
3
+ export declare const Select: FC<any>;
@@ -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;
@@ -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
- export { Wrapper };
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?: string;
12
- variant?: string;
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;
@@ -9,7 +9,7 @@ export type TableColumnType<T> = {
9
9
  };
10
10
  export type TableProps<T> = {
11
11
  columns: TableColumnType<T>[];
12
- data: T[];
12
+ data: T[] | null;
13
13
  size?: ITDSize;
14
14
  headless?: boolean;
15
15
  bordered?: boolean;
@@ -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.17",
3
+ "version": "2.0.19",
4
4
  "description": "All in one Design library for desktop applications.",
5
5
  "author": "Ali",
6
6
  "license": "ISC",