@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.
- package/dist/index.cjs.js +40 -170
- package/dist/index.d.ts +9 -6
- package/dist/index.esm.js +89 -219
- package/dist/radio/button/Button.d.ts +2 -0
- package/dist/radio/button/styled.d.ts +9 -0
- package/dist/radio/group/Group.d.ts +5 -0
- package/dist/radio/group/styled.d.ts +8 -0
- package/dist/radio/index.d.ts +9 -0
- package/dist/stories/RadioGroup.d.ts +2 -0
- package/dist/stories/RadioGroup.stories.d.ts +14 -0
- package/dist/types/RadioProps.d.ts +29 -0
- package/dist/types/UploadProps.d.ts +1 -0
- package/dist/utils/GetSizeBySizeSlug.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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,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,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";
|