@kroo-web/design-system 1.17.1 → 1.18.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.
@@ -9,6 +9,10 @@ export type TCheckboxProps<T extends FieldValues> = {
9
9
  name: Path<T>;
10
10
  variant?: 'checkbox' | 'radio';
11
11
  };
12
+ /**
13
+ * @deprecated This component is deprecated.
14
+ * Please use the NativeCheckbox component instead.
15
+ */
12
16
  export declare const Checkbox: <T extends FieldValues>(props: TCheckboxProps<T>) => import("react/jsx-runtime").JSX.Element;
13
17
  export type TNativeCheckboxProps = {
14
18
  disabled?: boolean;
@@ -15,6 +15,11 @@ export type TComboBoxProps = {
15
15
  onSelect?: (item: TComboBoxItem) => void;
16
16
  options: TComboBoxItem[];
17
17
  };
18
+ /**
19
+ *
20
+ * @deprecated This component is deprecated.
21
+ * Please use the NativeComboBox component instead.
22
+ */
18
23
  export declare const ComboBox: (props: Omit<TComboBoxProps, "field">) => import("react/jsx-runtime").JSX.Element;
19
24
  export declare const Field: ({ alwaysOpen, field: { onBlur, ...restField }, label, onSelect, options }: TComboBoxProps) => import("react/jsx-runtime").JSX.Element;
20
25
  export type TNativeComboBoxRootProps = {
@@ -12,6 +12,10 @@ export type TDatePicker<T extends FieldValues> = {
12
12
  min?: string;
13
13
  name: Path<T>;
14
14
  };
15
+ /**
16
+ * @deprecated This component is deprecated.
17
+ * Please use the NativeDatePicker component instead.
18
+ */
15
19
  export declare const DatePicker: <T extends FieldValues>(props: TDatePicker<T>) => import("react/jsx-runtime").JSX.Element;
16
20
  export type TNativeDatePickerProps = {
17
21
  error?: {
@@ -5,5 +5,10 @@ type TFormProps<T extends FieldValues> = {
5
5
  methods: UseFormReturn<T>;
6
6
  onSubmit: (values: T) => void;
7
7
  } & PropsWithChildren<HTMLProps<HTMLFormElement>>;
8
+ /**
9
+ *
10
+ * @deprecated We now have a form in web-front-end please use that instead
11
+ * https://github.com/b-social/web-front-end/blob/main/src/components/shared/Form/index.tsx
12
+ */
8
13
  export declare const Form: <T extends FieldValues>({ children, methods, onSubmit, ...rest }: TFormProps<T>) => import("react/jsx-runtime").JSX.Element;
9
14
  export {};
@@ -11,6 +11,10 @@ export type TNumberFieldProps<T extends FieldValues> = {
11
11
  name: Path<T>;
12
12
  width?: number;
13
13
  };
14
+ /**
15
+ * @deprecated This component is deprecated.
16
+ * Please use the NativeNumberField component instead.
17
+ */
14
18
  export declare const NumberField: <T extends FieldValues>(props: TNumberFieldProps<T>) => import("react/jsx-runtime").JSX.Element;
15
19
  export type TNativeNumberFieldProps = {
16
20
  defaultValue?: number;
@@ -11,6 +11,10 @@ export type TPhoneFieldProps<T extends FieldValues> = {
11
11
  name: Path<T>;
12
12
  placeholder?: string;
13
13
  };
14
+ /**
15
+ * @deprecated This component is deprecated.
16
+ * Please use the NativePhoneField component instead.
17
+ */
14
18
  export declare const PhoneField: <T extends FieldValues>(props: TPhoneFieldProps<T>) => import("react/jsx-runtime").JSX.Element;
15
19
  export type TNativeCountrySelectProps = {
16
20
  id: string;
@@ -9,5 +9,9 @@ export interface TPinInputProps<T extends FieldValues> {
9
9
  length: number;
10
10
  name: Path<T>;
11
11
  }
12
+ /**
13
+ * @deprecated This component is deprecated.
14
+ * Please use the OTPInput component instead.
15
+ */
12
16
  export declare const PinInput: <T extends FieldValues>(props: TPinInputProps<T>) => import("react/jsx-runtime").JSX.Element;
13
17
  export declare const OTPInput: (props: Pick<OTPInputProps, "inputMode" | "onChange" | "onComplete" | "value">) => import("react/jsx-runtime").JSX.Element;
@@ -18,6 +18,11 @@ export type TNativeRadioGroupRootProps = {
18
18
  };
19
19
  onChange: (value: string) => void;
20
20
  } & RadixRadioGroup.RadioGroupProps;
21
+ /**
22
+ *
23
+ * @deprecated This component is deprecated.
24
+ * Please use the NativeRadioGroup component instead.
25
+ */
21
26
  export declare const RadioGroup: {
22
27
  Indicator: ({ className, ...props }: RadixRadioGroup.RadioGroupIndicatorProps) => import("react/jsx-runtime").JSX.Element;
23
28
  Item: ({ children, className, variant, ...props }: {
@@ -23,6 +23,10 @@ export type TSelectProps<T extends FieldValues> = {
23
23
  name: Path<T>;
24
24
  placeholder?: string;
25
25
  };
26
+ /**
27
+ * @deprecated This component is deprecated.
28
+ * Please use the NativeSelect component instead.
29
+ */
26
30
  export declare const Select: <T extends FieldValues>(props: TSelectProps<T>) => import("react/jsx-runtime").JSX.Element;
27
31
  export type TNativeSelectProps = {
28
32
  error?: {
@@ -17,6 +17,10 @@ export type TTextFieldProps<T extends FieldValues> = {
17
17
  suffix?: ReactNode | string;
18
18
  type?: DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>['type'];
19
19
  } & DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
20
+ /**
21
+ * @deprecated This component is deprecated.
22
+ * Please use the NativeTextField component instead.
23
+ */
20
24
  export declare const TextField: import('react').ForwardRefExoticComponent<Omit<TTextFieldProps<FieldValues>, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
21
25
  export type TNativeTextFieldProps = {
22
26
  className?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kroo-web/design-system",
3
- "version": "1.17.1",
3
+ "version": "1.18.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "storybook dev -p 6006",