@inntechcorp/it-design 2.0.241 → 2.0.243

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 Button({ id, name, value, type, checked, hasError, children, icon, image, component, onChange }: RadioButtonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,9 @@
1
+ declare const CheckIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
2
+ declare const PreIcon: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
3
+ declare const Left: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
4
+ declare const Label: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, never>> & string;
5
+ declare const SimpleButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
6
+ declare const InnerButton: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
7
+ declare const Wrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
8
+ declare const ErrorBorder: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
9
+ export { Wrapper, CheckIcon, PreIcon, Left, InnerButton, SimpleButton, Label, ErrorBorder };
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import { RadioGroupProps } from 'types/RadioProps';
3
+ import { ITDImperativeFuncProps } from 'types/ITDImperativeFuncProps';
4
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<ITDImperativeFuncProps>>>;
5
+ export default _default;
@@ -0,0 +1,8 @@
1
+ interface GroupWrapperProps {
2
+ $onlyFlow?: boolean;
3
+ $direction?: 'row' | 'column';
4
+ $length?: number;
5
+ $gap?: string;
6
+ }
7
+ declare const GroupWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, GroupWrapperProps>> & string;
8
+ export { GroupWrapper };
@@ -0,0 +1,9 @@
1
+ import Button from './button/Button';
2
+ import Group from './group/Group';
3
+ interface RadioComponent extends React.FC {
4
+ Group: typeof Group;
5
+ Button: typeof Button;
6
+ }
7
+ declare const Radio: RadioComponent;
8
+ export { Group, Button };
9
+ export default Radio;
@@ -0,0 +1,2 @@
1
+ import { FC } from 'react';
2
+ export declare const RadioGroup: FC<any>;
@@ -0,0 +1,14 @@
1
+ import type { StoryObj } from "@storybook/react";
2
+ declare const meta: {
3
+ title: string;
4
+ component: import("react").FC<any>;
5
+ parameters: {
6
+ layout: string;
7
+ };
8
+ tags: string[];
9
+ argTypes: {};
10
+ };
11
+ export default meta;
12
+ type Story = StoryObj<typeof meta>;
13
+ export declare const Default: Story;
14
+ export declare const DisabledChildren: Story;
@@ -0,0 +1,29 @@
1
+ import { ReactElement } from "react";
2
+ export type RadioGroupProps = {
3
+ name?: string;
4
+ message?: string;
5
+ type?: 'default' | string;
6
+ defaultValue?: string;
7
+ value?: string;
8
+ className?: string;
9
+ direction?: 'column' | 'row';
10
+ gap?: string;
11
+ length?: number;
12
+ onlyFlow?: boolean;
13
+ onChange?: (value: string) => void;
14
+ onUpdate?: (value: string, update: boolean, validation: boolean) => void;
15
+ children?: React.ReactNode;
16
+ };
17
+ export type RadioButtonProps = {
18
+ id?: string;
19
+ name?: string;
20
+ value?: string;
21
+ type?: 'default' | 'primary' | string;
22
+ checked?: boolean;
23
+ hasError?: boolean;
24
+ children?: React.ReactNode;
25
+ icon?: string | null;
26
+ image?: string | null;
27
+ onChange?: (value: string) => void;
28
+ component?: ReactElement | null;
29
+ };
@@ -1,5 +1,6 @@
1
1
  import { FileTypes } from "../index";
2
2
  export type UploadProps = {
3
+ id?: string;
3
4
  action?: string;
4
5
  filePath?: string | null;
5
6
  removeAction?: string;
@@ -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.241",
3
+ "version": "2.0.243",
4
4
  "description": "All in one Design library for web applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",