@inntechcorp/it-design 2.0.260 → 2.0.262

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.
@@ -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,3 +1,3 @@
1
1
  import { TabsProps } from "../index";
2
- declare const Tabs: ({ tabs, activeTabKey, variant, height, onTabChange }: TabsProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Tabs: ({ tabs, activeTabKey, className, variant, height, onTabChange }: TabsProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Tabs;
@@ -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;
@@ -11,4 +11,5 @@ export type TabsProps = {
11
11
  onTabChange?: (key: string) => void;
12
12
  variant?: "default" | "bold";
13
13
  height?: number;
14
+ className?: string;
14
15
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.260",
3
+ "version": "2.0.262",
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;