@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.
@@ -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;
@@ -0,0 +1,2 @@
1
+ import { RadioButtonProps } from 'types/RadioProps';
2
+ export default function RadioButton({ id, name, value, type, buttonProps, checked, hasError, children, icon, image, component, onChange }: RadioButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import Button from './button/Button';
1
+ import Button from './button/RadioButton';
2
2
  import Group from './group/Group';
3
3
  interface RadioComponent extends React.FC {
4
4
  Group: typeof Group;
@@ -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?: 'default' | string;
8
+ type?: RadioType;
6
9
  defaultValue?: string;
7
10
  value?: string;
8
11
  className?: string;
9
- direction?: 'column' | 'row';
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?: 'default' | 'primary' | string;
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): "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,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.259",
3
+ "version": "2.0.261",
4
4
  "description": "All in one Design library for web applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",
@@ -1,2 +0,0 @@
1
- import { RadioButtonProps } from 'types/RadioProps';
2
- export default function Button({ id, name, value, type, checked, hasError, children, icon, image, component, onChange }: RadioButtonProps): import("react/jsx-runtime").JSX.Element;