@inntechcorp/it-design 2.0.259 → 2.0.261
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 +3 -3
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +64 -31
- package/dist/index.esm.js +3 -3
- package/dist/input/styled.d.ts +1 -0
- package/dist/radio/button/RadioButton.d.ts +2 -0
- package/dist/radio/index.d.ts +1 -1
- package/dist/types/RadioProps.d.ts +8 -3
- package/dist/utils/GetSizeBySizeSlug.d.ts +1 -1
- package/package.json +1 -1
- package/dist/radio/button/Button.d.ts +0 -2
package/dist/input/styled.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ declare const Wrapper: import("styled-components/dist/types.js").IStyledComponen
|
|
|
2
2
|
declare const Content: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components/dist/types.js").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
3
3
|
$hasPrefix: boolean;
|
|
4
4
|
$hasSuffix: boolean;
|
|
5
|
+
$hasError: boolean;
|
|
5
6
|
}>> & string;
|
|
6
7
|
declare const Middle: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
7
8
|
declare const IconsWrapper: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
package/dist/radio/index.d.ts
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
import { ReactElement } from "react";
|
|
2
|
+
import { ButtonProps } from "./ButtonProps";
|
|
3
|
+
export type RadioType = "default" | "primary";
|
|
4
|
+
export type Direction = "column" | "row";
|
|
2
5
|
export type RadioGroupProps = {
|
|
3
6
|
name?: string;
|
|
4
7
|
message?: string;
|
|
5
|
-
type?:
|
|
8
|
+
type?: RadioType;
|
|
6
9
|
defaultValue?: string;
|
|
7
10
|
value?: string;
|
|
8
11
|
className?: string;
|
|
9
|
-
direction?:
|
|
12
|
+
direction?: Direction;
|
|
10
13
|
gap?: string;
|
|
11
14
|
length?: number;
|
|
12
15
|
onlyFlow?: boolean;
|
|
16
|
+
buttonProps?: ButtonProps;
|
|
13
17
|
onChange?: (value: string) => void;
|
|
14
18
|
onUpdate?: (value: string, update: boolean, validation: boolean) => void;
|
|
15
19
|
children?: React.ReactNode;
|
|
@@ -18,10 +22,11 @@ export type RadioButtonProps = {
|
|
|
18
22
|
id?: string;
|
|
19
23
|
name?: string;
|
|
20
24
|
value?: string;
|
|
21
|
-
type?:
|
|
25
|
+
type?: RadioType;
|
|
22
26
|
checked?: boolean;
|
|
23
27
|
hasError?: boolean;
|
|
24
28
|
children?: React.ReactNode;
|
|
29
|
+
buttonProps?: ButtonProps;
|
|
25
30
|
icon?: string | null;
|
|
26
31
|
image?: string | null;
|
|
27
32
|
onChange?: (value: string) => void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ITDSizeSlug } from "../index";
|
|
2
|
-
export default function GetSizeBySizeSlug(size: ITDSizeSlug): "
|
|
2
|
+
export default function GetSizeBySizeSlug(size: ITDSizeSlug): "small" | "medium" | "large" | "x-small" | "default" | "x-large" | "df";
|
package/package.json
CHANGED