@kroo-web/design-system 1.13.4 → 1.14.1
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/components/RadioGroup/index.d.ts +19 -0
- package/dist/components/RadioGroup/radioGroup.stories.d.ts +1 -0
- package/dist/index.js +4956 -4892
- package/dist/index.umd.cjs +23 -23
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -6,6 +6,18 @@ export type TRadioGroupProps<T extends FieldValues> = {
|
|
|
6
6
|
name: Path<T>;
|
|
7
7
|
variant?: 'cards' | 'circle';
|
|
8
8
|
} & Omit<RadixRadioGroup.RadioGroupProps, 'name'>;
|
|
9
|
+
export type TNativeRadioGroupRootProps = {
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
className?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
label: string;
|
|
14
|
+
name: string;
|
|
15
|
+
variant?: 'cards' | 'circle';
|
|
16
|
+
error?: {
|
|
17
|
+
message: string;
|
|
18
|
+
};
|
|
19
|
+
onChange: (value: string) => void;
|
|
20
|
+
} & RadixRadioGroup.RadioGroupProps;
|
|
9
21
|
export declare const RadioGroup: {
|
|
10
22
|
Indicator: ({ className, ...props }: RadixRadioGroup.RadioGroupIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
23
|
Item: ({ children, className, variant, ...props }: {
|
|
@@ -13,3 +25,10 @@ export declare const RadioGroup: {
|
|
|
13
25
|
} & RadixRadioGroup.RadioGroupItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
26
|
Root: <T extends FieldValues>({ children, className, disabled, label, name, variant, ...props }: TRadioGroupProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
15
27
|
};
|
|
28
|
+
export declare const NativeRadioGroup: {
|
|
29
|
+
Root: ({ children, className, disabled, label, name, variant, error, onChange, ...props }: TNativeRadioGroupRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
Item: ({ children, className, variant, ...props }: {
|
|
31
|
+
variant?: "cards" | "circle";
|
|
32
|
+
} & RadixRadioGroup.RadioGroupItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
Indicator: ({ className, ...props }: RadixRadioGroup.RadioGroupIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
};
|