@inntechcorp/it-design 2.0.41 → 2.0.43

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.
@@ -8,5 +8,5 @@ export type AccordionProps = {
8
8
  iconSize?: number;
9
9
  arrowSize?: number;
10
10
  onChange?: null | ((id: string) => void);
11
- children: ChildrenProps;
11
+ children?: ChildrenProps;
12
12
  };
@@ -1,2 +1,4 @@
1
1
  /// <reference types="react" />
2
- export type ChildrenProps = string | JSX.Element | JSX.Element[] | null | undefined;
2
+ type Element = string | JSX.Element | undefined;
3
+ export type ChildrenProps = Element | Element[] | null;
4
+ export {};
@@ -0,0 +1,16 @@
1
+ import { CSSProperties } from "react";
2
+ import { ChildrenProps } from "types/ChildrenProps";
3
+ export type FlexProps = {
4
+ gap?: FlexGapProps;
5
+ justify?: FlexJustifyProps;
6
+ align?: FlexAlignProps;
7
+ vertical?: boolean;
8
+ wrap?: boolean;
9
+ stretch?: boolean;
10
+ style?: CSSProperties;
11
+ className?: string;
12
+ children?: ChildrenProps;
13
+ };
14
+ export type FlexGapProps = "small" | "medium" | "large" | string | number;
15
+ export type FlexJustifyProps = "unset" | "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly";
16
+ export type FlexAlignProps = "unset" | "flex-start" | "center" | "flex-end";
@@ -10,7 +10,6 @@ declare const Label: import("styled-components/dist/types").IStyledComponentBase
10
10
  $showFocus: boolean;
11
11
  }>> & string;
12
12
  declare const IconsWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
13
- declare const Icons: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
14
13
  declare const CenterContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
15
14
  $width: number | string;
16
15
  $height: number | string;
@@ -37,4 +36,4 @@ declare const Failed: import("styled-components/dist/types").IStyledComponentBas
37
36
  ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
38
37
  }, never>> & string;
39
38
  declare const ErrorTooltip: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, never>> & string;
40
- export { Wrapper, FileContent, IconsWrapper, Icons, Label, CenterContent, Overlay, OverlayContent, Uploading, UploadStatusBox, ErrorBorder, ErrorTooltip, Failed };
39
+ export { Wrapper, FileContent, IconsWrapper, Label, CenterContent, Overlay, OverlayContent, Uploading, UploadStatusBox, ErrorBorder, ErrorTooltip, Failed };
@@ -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): "small" | "medium" | "large" | "x-small" | "default" | "x-large" | "df";
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.41",
3
+ "version": "2.0.43",
4
4
  "description": "All in one Design library for desktop applications.",
5
- "author": "Ali",
5
+ "author": "Inn.Tech",
6
6
  "license": "ISC",
7
7
  "main": "dist/index.cjs.js",
8
8
  "module": "dist/index.esm.js",