@kroo-web/design-system 1.27.2 → 1.30.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/DatePicker/DatePicker.stories.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts +2 -19
- package/dist/components/RadioGroup/index.d.ts +2 -22
- package/dist/components/RadioGroup/radioGroup.stories.d.ts +0 -1
- package/dist/index.js +4464 -4571
- package/dist/index.umd.cjs +23 -23
- package/package.json +1 -1
|
@@ -1,23 +1,6 @@
|
|
|
1
1
|
import { DetailedHTMLProps, InputHTMLAttributes } from 'react';
|
|
2
|
-
import { FieldValues, Path } from 'react-hook-form';
|
|
3
2
|
|
|
4
|
-
export type
|
|
5
|
-
disabled?: boolean;
|
|
6
|
-
helper?: {
|
|
7
|
-
message: string;
|
|
8
|
-
};
|
|
9
|
-
id: string;
|
|
10
|
-
label: string;
|
|
11
|
-
max?: string;
|
|
12
|
-
min?: string;
|
|
13
|
-
name: Path<T>;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated This component is deprecated.
|
|
17
|
-
* Please use the NativeDatePicker component instead.
|
|
18
|
-
*/
|
|
19
|
-
export declare const DatePicker: <T extends FieldValues>(props: TDatePicker<T>) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export type TNativeDatePickerProps = {
|
|
3
|
+
export type TDatePickerProps = {
|
|
21
4
|
error?: {
|
|
22
5
|
message?: string;
|
|
23
6
|
};
|
|
@@ -30,4 +13,4 @@ export type TNativeDatePickerProps = {
|
|
|
30
13
|
min?: number | string;
|
|
31
14
|
missing?: boolean;
|
|
32
15
|
} & Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'max' | 'min' | 'type'>;
|
|
33
|
-
export declare const
|
|
16
|
+
export declare const DatePicker: import('react').ForwardRefExoticComponent<Omit<TDatePickerProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,12 +1,5 @@
|
|
|
1
|
-
import { FieldError, FieldValues, Path } from 'react-hook-form';
|
|
2
1
|
import * as RadixRadioGroup from '@radix-ui/react-radio-group';
|
|
3
|
-
export type
|
|
4
|
-
error?: FieldError;
|
|
5
|
-
label: string;
|
|
6
|
-
name: Path<T>;
|
|
7
|
-
variant?: 'cards' | 'circle';
|
|
8
|
-
} & Omit<RadixRadioGroup.RadioGroupProps, 'name'>;
|
|
9
|
-
export type TNativeRadioGroupRootProps = {
|
|
2
|
+
export type TRadioGroupRootProps = {
|
|
10
3
|
children: React.ReactNode;
|
|
11
4
|
className?: string;
|
|
12
5
|
disabled?: boolean;
|
|
@@ -19,24 +12,11 @@ export type TNativeRadioGroupRootProps = {
|
|
|
19
12
|
variant?: 'cards' | 'circle';
|
|
20
13
|
visual?: 'horizontal' | 'vertical';
|
|
21
14
|
} & RadixRadioGroup.RadioGroupProps;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @deprecated This component is deprecated.
|
|
25
|
-
* Please use the NativeRadioGroup component instead.
|
|
26
|
-
*/
|
|
27
15
|
export declare const RadioGroup: {
|
|
28
16
|
Indicator: ({ className, ...props }: RadixRadioGroup.RadioGroupIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
29
17
|
Item: ({ children, className, supportingText, variant, ...props }: {
|
|
30
18
|
supportingText?: string;
|
|
31
19
|
variant?: "cards" | "circle";
|
|
32
20
|
} & RadixRadioGroup.RadioGroupItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
Root:
|
|
34
|
-
};
|
|
35
|
-
export declare const NativeRadioGroup: {
|
|
36
|
-
Indicator: ({ className, ...props }: RadixRadioGroup.RadioGroupIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
-
Item: ({ children, className, supportingText, variant, ...props }: {
|
|
38
|
-
supportingText?: string;
|
|
39
|
-
variant?: "cards" | "circle";
|
|
40
|
-
} & RadixRadioGroup.RadioGroupItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
Root: ({ children, className, disabled, error, label, onChange, variant, visual, ...props }: TNativeRadioGroupRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
Root: ({ children, className, disabled, error, label, onChange, variant, visual, ...props }: TRadioGroupRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
42
22
|
};
|