@kroo-web/design-system 1.25.0 → 1.26.0

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.
@@ -7,5 +7,4 @@ type Story = StoryObj<typeof Checkbox>;
7
7
  /** General usage of the component copy and paste this one to get up and running quickly */
8
8
  export declare const GeneralUsage: Story;
9
9
  export declare const CustomLabel: Story;
10
- export declare const CheckboxAsRadio: Story;
11
- export declare const NativeCheckboxVariants: Story;
10
+ export declare const CheckboxVariants: Story;
@@ -1,20 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
- import { FieldValues, Path } from 'react-hook-form';
3
2
 
4
- export type TCheckboxProps<T extends FieldValues> = {
5
- className?: string;
6
- disabled?: boolean;
7
- id: string;
8
- label: ReactNode | string;
9
- name: Path<T>;
10
- variant?: 'checkbox' | 'radio';
11
- };
12
- /**
13
- * @deprecated This component is deprecated.
14
- * Please use the NativeCheckbox component instead.
15
- */
16
- export declare const Checkbox: <T extends FieldValues>(props: TCheckboxProps<T>) => import("react/jsx-runtime").JSX.Element;
17
- export type TNativeCheckboxProps = {
3
+ export type TCheckboxProps = {
18
4
  disabled?: boolean;
19
5
  error?: {
20
6
  message?: string;
@@ -25,4 +11,4 @@ export type TNativeCheckboxProps = {
25
11
  id: string;
26
12
  label: ReactNode | string;
27
13
  } & React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
28
- export declare const NativeCheckbox: import('react').ForwardRefExoticComponent<Omit<TNativeCheckboxProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
14
+ export declare const Checkbox: import('react').ForwardRefExoticComponent<Omit<TCheckboxProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;