@kroo-web/design-system 1.13.2 → 1.13.4

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.
Files changed (48) hide show
  1. package/dist/components/Accordion/config.d.ts +5 -5
  2. package/dist/components/Accordion/index.d.ts +5 -6
  3. package/dist/components/Button/index.d.ts +2 -2
  4. package/dist/components/Callout/index.d.ts +4 -4
  5. package/dist/components/Card/index.d.ts +2 -2
  6. package/dist/components/Cards/index.d.ts +2 -2
  7. package/dist/components/Checkbox/index.d.ts +3 -3
  8. package/dist/components/Columns/index.d.ts +1 -3
  9. package/dist/components/ComboBox/ComboBox.stories.d.ts +1 -2
  10. package/dist/components/ComboBox/index.d.ts +9 -9
  11. package/dist/components/DatePicker/index.d.ts +3 -3
  12. package/dist/components/Disclosure/index.d.ts +1 -3
  13. package/dist/components/Form/index.d.ts +2 -2
  14. package/dist/components/Icon/index.d.ts +2 -3
  15. package/dist/components/Link/index.d.ts +2 -2
  16. package/dist/components/Loading/index.d.ts +1 -3
  17. package/dist/components/Modal/index.d.ts +6 -6
  18. package/dist/components/NumberField/index.d.ts +3 -3
  19. package/dist/components/NumberField/numberField.stories.d.ts +2 -3
  20. package/dist/components/PhoneField/index.d.ts +5 -5
  21. package/dist/components/PinInput/PinInput.stories.d.ts +1 -2
  22. package/dist/components/PinInput/index.d.ts +2 -3
  23. package/dist/components/Popover/index.d.ts +3 -4
  24. package/dist/components/ProgressIndicator/index.d.ts +1 -3
  25. package/dist/components/RadioGroup/index.d.ts +3 -4
  26. package/dist/components/Range/index.d.ts +1 -2
  27. package/dist/components/Select/index.d.ts +3 -3
  28. package/dist/components/Skeleton/index.d.ts +1 -3
  29. package/dist/components/Table/index.d.ts +15 -15
  30. package/dist/components/Tabs/index.d.ts +4 -5
  31. package/dist/components/Tag/index.d.ts +4 -4
  32. package/dist/components/TextField/index.d.ts +3 -3
  33. package/dist/components/TextField/textField.stories.d.ts +0 -1
  34. package/dist/components/Toast/index.d.ts +4 -5
  35. package/dist/components/Tooltip/index.d.ts +3 -4
  36. package/dist/components/Typography/index.d.ts +1 -3
  37. package/dist/components/Wrapper/index.d.ts +2 -2
  38. package/dist/components/shared/FieldError/index.d.ts +1 -3
  39. package/dist/components/shared/FieldHelper/index.d.ts +1 -3
  40. package/dist/components/shared/FormField/index.d.ts +2 -2
  41. package/dist/index.js +23969 -0
  42. package/dist/index.umd.cjs +118 -0
  43. package/dist/types/PolymorphicWithoutRef.d.ts +2 -0
  44. package/dist/utils/decorators/Form/index.d.ts +2 -2
  45. package/dist/utils/decorators/Grid/index.d.ts +2 -2
  46. package/package.json +12 -11
  47. package/dist/index.es.js +0 -26523
  48. package/dist/index.umd.js +0 -221
@@ -1,12 +1,12 @@
1
- import { default as React, PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
 
3
- export declare const AccordionContext: React.Context<{
3
+ export declare const AccordionContext: import('react').Context<{
4
4
  active: string[];
5
5
  setActive?: (value: string[]) => void;
6
6
  }>;
7
- export declare const AccordionContextProvider: ({ children }: PropsWithChildren) => React.JSX.Element;
8
- export declare const AccordionItemContext: React.Context<{
7
+ export declare const AccordionContextProvider: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const AccordionItemContext: import('react').Context<{
9
9
  setValue: (value: string) => void;
10
10
  value: string;
11
11
  }>;
12
- export declare const AccordionItemContextProvider: ({ children }: PropsWithChildren) => React.JSX.Element;
12
+ export declare const AccordionItemContextProvider: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
2
  export type TAccordionRootProps = {
4
3
  children: React.ReactNode;
@@ -10,12 +9,12 @@ export type TAccordionTriggerProps<C extends React.ElementType = 'p'> = {
10
9
  size?: 'large' | 'regular';
11
10
  } & React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Trigger>;
12
11
  export declare const Accordion: {
13
- Content: React.ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
- Item: (props: React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>) => React.JSX.Element;
15
- Root: (props: TAccordionRootProps) => React.JSX.Element;
16
- Trigger: React.ForwardRefExoticComponent<{
12
+ Content: import('react').ForwardRefExoticComponent<Omit<AccordionPrimitive.AccordionContentProps & import('react').RefAttributes<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
13
+ Item: (props: React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>) => import("react/jsx-runtime").JSX.Element;
14
+ Root: (props: TAccordionRootProps) => import("react/jsx-runtime").JSX.Element;
15
+ Trigger: import('react').ForwardRefExoticComponent<{
17
16
  as?: "p" | undefined;
18
17
  controls?: React.ReactNode;
19
18
  size?: "large" | "regular";
20
- } & Omit<AccordionPrimitive.AccordionTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
19
+ } & Omit<AccordionPrimitive.AccordionTriggerProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
21
20
  };
@@ -1,4 +1,4 @@
1
- import { default as React, PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import { PolymorphicPropsWithoutRef } from '../../types/PolymorphicWithoutRef';
3
3
 
4
4
  declare const defaultElement = "button";
@@ -21,5 +21,5 @@ type TButtonOwnProps = {
21
21
  onlyIcon?: boolean;
22
22
  } & PropsWithChildren & React.ButtonHTMLAttributes<HTMLButtonElement> & TButtonVisualTypes;
23
23
  export type TButtonProps<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<TButtonOwnProps, T>;
24
- export declare function Button<T extends React.ElementType = typeof defaultElement>({ as, children, className, onlyIcon, variant, visualType, ...rest }: TButtonProps<T>): React.JSX.Element;
24
+ export declare function Button<T extends React.ElementType = typeof defaultElement>({ as, children, className, onlyIcon, variant, visualType, ...rest }: TButtonProps<T>): import("react/jsx-runtime").JSX.Element;
25
25
  export {};
@@ -1,4 +1,4 @@
1
- import { default as React, PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import { TTypographyProps } from '../Typography';
3
3
 
4
4
  export type TCalloutRootProps = {
@@ -6,7 +6,7 @@ export type TCalloutRootProps = {
6
6
  };
7
7
  export type TCalloutTextProps = TTypographyProps<'p'>;
8
8
  export declare const Callout: {
9
- Icon: ({ size, weight, ...rest }: import('../Icon').TIconProps) => React.JSX.Element;
10
- Root: ({ children, type }: PropsWithChildren<TCalloutRootProps>) => React.JSX.Element;
11
- Text: ({ children, ...props }: PropsWithChildren<TCalloutTextProps>) => React.JSX.Element;
9
+ Icon: ({ size, weight, ...rest }: import('..').TIconProps) => import("react/jsx-runtime").JSX.Element;
10
+ Root: ({ children, type }: PropsWithChildren<TCalloutRootProps>) => import("react/jsx-runtime").JSX.Element;
11
+ Text: ({ children, ...props }: PropsWithChildren<TCalloutTextProps>) => import("react/jsx-runtime").JSX.Element;
12
12
  };
@@ -1,4 +1,4 @@
1
- import { default as React, PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
  import { PolymorphicPropsWithoutRef } from '../../types/PolymorphicWithoutRef';
3
3
 
4
4
  declare const defaultElement = "div";
@@ -18,5 +18,5 @@ export interface ICardOwnProps extends React.HTMLAttributes<HTMLDivElement>, Pro
18
18
  variants?: TCardVariants;
19
19
  }
20
20
  export type ICardProps<T extends React.ElementType = typeof defaultElement> = PolymorphicPropsWithoutRef<ICardOwnProps, T>;
21
- export declare function Card<T extends React.ElementType = typeof defaultElement>({ as, children, className, isSquare, variants, ...rest }: ICardProps<T>): React.JSX.Element;
21
+ export declare function Card<T extends React.ElementType = typeof defaultElement>({ as, children, className, isSquare, variants, ...rest }: ICardProps<T>): import("react/jsx-runtime").JSX.Element;
22
22
  export {};
@@ -1,4 +1,4 @@
1
- import { default as React, PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
 
3
3
  export type CardsVariants = {
4
4
  layout?: 'bento-five' | 'bento-four' | 'bento-three';
@@ -7,4 +7,4 @@ export interface ICardsProps extends PropsWithChildren {
7
7
  as: 'div' | 'ol' | 'section' | 'ul';
8
8
  variants: CardsVariants;
9
9
  }
10
- export declare const Cards: ({ as, children, variants }: ICardsProps) => React.JSX.Element;
10
+ export declare const Cards: ({ as, children, variants }: ICardsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { default as React, ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { FieldValues, Path } from 'react-hook-form';
3
3
 
4
4
  export type TCheckboxProps<T extends FieldValues> = {
@@ -9,7 +9,7 @@ export type TCheckboxProps<T extends FieldValues> = {
9
9
  name: Path<T>;
10
10
  variant?: 'checkbox' | 'radio';
11
11
  };
12
- export declare const Checkbox: <T extends FieldValues>(props: TCheckboxProps<T>) => React.JSX.Element;
12
+ export declare const Checkbox: <T extends FieldValues>(props: TCheckboxProps<T>) => import("react/jsx-runtime").JSX.Element;
13
13
  export type TNativeCheckboxProps = {
14
14
  disabled?: boolean;
15
15
  error?: {
@@ -21,4 +21,4 @@ export type TNativeCheckboxProps = {
21
21
  id: string;
22
22
  label: ReactNode | string;
23
23
  } & React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
24
- export declare const NativeCheckbox: React.ForwardRefExoticComponent<Omit<TNativeCheckboxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
24
+ export declare const NativeCheckbox: import('react').ForwardRefExoticComponent<Omit<TNativeCheckboxProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
@@ -1,7 +1,5 @@
1
- import { default as React } from 'react';
2
-
3
1
  export type TColumnsProps = {
4
2
  children: React.ReactNode;
5
3
  cols: number;
6
4
  };
7
- export declare const Columns: ({ children, cols }: TColumnsProps) => React.JSX.Element;
5
+ export declare const Columns: ({ children, cols }: TColumnsProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,4 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
- import { default as React } from 'react';
3
2
  import { ComboBox } from '.';
4
3
 
5
4
  declare const _default: Meta<typeof ComboBox>;
@@ -9,5 +8,5 @@ export declare const GeneralUsage: Story;
9
8
  export declare const AlwaysOpen: Story;
10
9
  export declare const Render: Story;
11
10
  export declare const Native: {
12
- render: () => React.JSX.Element;
11
+ render: () => import("react/jsx-runtime").JSX.Element;
13
12
  };
@@ -1,4 +1,4 @@
1
- import { default as React, ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { ComboBoxProps } from 'react-aria-components';
3
3
  import { ControllerRenderProps, FieldValues } from 'react-hook-form';
4
4
 
@@ -15,8 +15,8 @@ export type TComboBoxProps = {
15
15
  onSelect?: (item: TComboBoxItem) => void;
16
16
  options: TComboBoxItem[];
17
17
  };
18
- export declare const ComboBox: (props: Omit<TComboBoxProps, "field">) => React.JSX.Element;
19
- export declare const Field: ({ alwaysOpen, field: { onBlur, ...restField }, label, onSelect, options }: TComboBoxProps) => React.JSX.Element;
18
+ export declare const ComboBox: (props: Omit<TComboBoxProps, "field">) => import("react/jsx-runtime").JSX.Element;
19
+ export declare const Field: ({ alwaysOpen, field: { onBlur, ...restField }, label, onSelect, options }: TComboBoxProps) => import("react/jsx-runtime").JSX.Element;
20
20
  export type TNativeComboBoxRootProps = {
21
21
  children: ReactNode;
22
22
  disabled?: boolean;
@@ -32,21 +32,21 @@ export type TNativeComboBoxRootProps = {
32
32
  missing?: boolean;
33
33
  placeholder?: string;
34
34
  } & Omit<ComboBoxProps<TComboBoxItem>, 'children' | 'isDisabled' | 'label' | 'onOpenChange' | 'placeholder'>;
35
- export declare const Root: ({ children, disabled, error, helper, hideLabel, id, label, missing, placeholder, ...rest }: TNativeComboBoxRootProps) => React.JSX.Element;
35
+ export declare const Root: ({ children, disabled, error, helper, hideLabel, id, label, missing, placeholder, ...rest }: TNativeComboBoxRootProps) => import("react/jsx-runtime").JSX.Element;
36
36
  export declare const Options: ({ children }: {
37
37
  children: ReactNode;
38
- }) => React.JSX.Element;
38
+ }) => import("react/jsx-runtime").JSX.Element;
39
39
  export declare const Item: ({ children, img }: {
40
40
  children: ReactNode;
41
41
  img?: string;
42
- }) => React.JSX.Element;
42
+ }) => import("react/jsx-runtime").JSX.Element;
43
43
  export declare const NativeComboBox: {
44
44
  Item: ({ children, img }: {
45
45
  children: ReactNode;
46
46
  img?: string;
47
- }) => React.JSX.Element;
47
+ }) => import("react/jsx-runtime").JSX.Element;
48
48
  Options: ({ children }: {
49
49
  children: ReactNode;
50
- }) => React.JSX.Element;
51
- Root: ({ children, disabled, error, helper, hideLabel, id, label, missing, placeholder, ...rest }: TNativeComboBoxRootProps) => React.JSX.Element;
50
+ }) => import("react/jsx-runtime").JSX.Element;
51
+ Root: ({ children, disabled, error, helper, hideLabel, id, label, missing, placeholder, ...rest }: TNativeComboBoxRootProps) => import("react/jsx-runtime").JSX.Element;
52
52
  };
@@ -1,4 +1,4 @@
1
- import { default as React, DetailedHTMLProps, InputHTMLAttributes } from 'react';
1
+ import { DetailedHTMLProps, InputHTMLAttributes } from 'react';
2
2
  import { FieldValues, Path } from 'react-hook-form';
3
3
 
4
4
  export type TDatePicker<T extends FieldValues> = {
@@ -12,7 +12,7 @@ export type TDatePicker<T extends FieldValues> = {
12
12
  min?: string;
13
13
  name: Path<T>;
14
14
  };
15
- export declare const DatePicker: <T extends FieldValues>(props: TDatePicker<T>) => React.JSX.Element;
15
+ export declare const DatePicker: <T extends FieldValues>(props: TDatePicker<T>) => import("react/jsx-runtime").JSX.Element;
16
16
  export type TNativeDatePickerProps = {
17
17
  error?: {
18
18
  message: string;
@@ -26,4 +26,4 @@ export type TNativeDatePickerProps = {
26
26
  min?: number | string;
27
27
  missing?: boolean;
28
28
  } & Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'max' | 'min' | 'type'>;
29
- export declare const NativeDatePicker: React.ForwardRefExoticComponent<Omit<TNativeDatePickerProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
29
+ export declare const NativeDatePicker: import('react').ForwardRefExoticComponent<Omit<TNativeDatePickerProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
@@ -1,7 +1,5 @@
1
- import { default as React } from 'react';
2
-
3
1
  export type TDisclosureProps = {
4
2
  children: React.ReactNode;
5
3
  condition: boolean;
6
4
  };
7
- export declare const Disclosure: ({ children, condition }: TDisclosureProps) => React.JSX.Element;
5
+ export declare const Disclosure: ({ children, condition }: TDisclosureProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +1,9 @@
1
- import { default as React, HTMLProps, PropsWithChildren } from 'react';
1
+ import { HTMLProps, PropsWithChildren } from 'react';
2
2
  import { FieldValues, UseFormReturn } from 'react-hook-form';
3
3
 
4
4
  type TFormProps<T extends FieldValues> = {
5
5
  methods: UseFormReturn<T>;
6
6
  onSubmit: (values: T) => void;
7
7
  } & PropsWithChildren<HTMLProps<HTMLFormElement>>;
8
- export declare const Form: <T extends FieldValues>({ children, methods, onSubmit, ...rest }: TFormProps<T>) => React.JSX.Element;
8
+ export declare const Form: <T extends FieldValues>({ children, methods, onSubmit, ...rest }: TFormProps<T>) => import("react/jsx-runtime").JSX.Element;
9
9
  export {};
@@ -1,9 +1,8 @@
1
- import { default as React } from 'react';
2
1
  import { MaterialSymbolProps } from './types';
3
2
 
4
- export declare const MaterialSymbol: React.ForwardRefExoticComponent<MaterialSymbolProps & React.RefAttributes<HTMLSpanElement>>;
3
+ export declare const MaterialSymbol: import('react').ForwardRefExoticComponent<MaterialSymbolProps & import('react').RefAttributes<HTMLSpanElement>>;
5
4
  export type TIconProps = {
6
5
  size?: 'large' | 'regular' | 'xlarge';
7
6
  weight?: 'light' | 'medium' | 'normal';
8
7
  } & Omit<MaterialSymbolProps, 'size' | 'weight'>;
9
- export declare const Icon: ({ size, weight, ...rest }: TIconProps) => React.JSX.Element;
8
+ export declare const Icon: ({ size, weight, ...rest }: TIconProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { default as React, ElementType, PropsWithChildren } from 'react';
1
+ import { ElementType, PropsWithChildren } from 'react';
2
2
 
3
3
  type PolymorphicLink<T extends ElementType> = {
4
4
  as?: T;
@@ -8,5 +8,5 @@ type AnchorProps = {
8
8
  as?: undefined;
9
9
  } & React.AnchorHTMLAttributes<HTMLAnchorElement>;
10
10
  export type TLink<T extends ElementType> = AnchorProps | PolymorphicLink<T>;
11
- export declare const Link: <T extends ElementType = "a">({ as, children, className, ...rest }: TLink<T>) => React.JSX.Element;
11
+ export declare const Link: <T extends ElementType = "a">({ as, children, className, ...rest }: TLink<T>) => import("react/jsx-runtime").JSX.Element;
12
12
  export {};
@@ -1,5 +1,3 @@
1
- import { default as React } from 'react';
2
-
3
1
  declare const sizes: {
4
2
  full: string;
5
3
  large: string;
@@ -9,5 +7,5 @@ declare const sizes: {
9
7
  export type TLoadingProps = {
10
8
  size?: keyof typeof sizes;
11
9
  };
12
- export declare const Loading: ({ size }: TLoadingProps) => React.JSX.Element;
10
+ export declare const Loading: ({ size }: TLoadingProps) => import("react/jsx-runtime").JSX.Element;
13
11
  export {};
@@ -1,4 +1,4 @@
1
- import { default as React, ButtonHTMLAttributes, PropsWithChildren } from 'react';
1
+ import { ButtonHTMLAttributes, PropsWithChildren } from 'react';
2
2
  import { TButtonProps } from '../Button';
3
3
 
4
4
  export type TUseModalProps = {
@@ -25,10 +25,10 @@ export type TModalHeaderProps = {
25
25
  variant?: 'action';
26
26
  };
27
27
  export type TModalButtonProps = PropsWithChildren;
28
- export declare const Buttons: ({ children }: TModalButtonProps) => React.JSX.Element;
28
+ export declare const Buttons: ({ children }: TModalButtonProps) => import("react/jsx-runtime").JSX.Element;
29
29
  export declare const Modal: {
30
- Buttons: ({ children }: TModalButtonProps) => React.JSX.Element;
31
- Content: ({ children, closeOnBackdropClick, focusTrap, value }: TModalContentProps) => React.JSX.Element;
32
- Control: ({ children, value, ...rest }: TModalControlProps) => React.JSX.Element;
33
- Header: ({ actionButtonProps, onClick, title, variant }: TModalHeaderProps) => React.JSX.Element;
30
+ Buttons: ({ children }: TModalButtonProps) => import("react/jsx-runtime").JSX.Element;
31
+ Content: ({ children, closeOnBackdropClick, focusTrap, value }: TModalContentProps) => import("react/jsx-runtime").JSX.Element;
32
+ Control: ({ children, value, ...rest }: TModalControlProps) => import("react/jsx-runtime").JSX.Element;
33
+ Header: ({ actionButtonProps, onClick, title, variant }: TModalHeaderProps) => import("react/jsx-runtime").JSX.Element;
34
34
  };
@@ -1,4 +1,4 @@
1
- import { default as React, DetailedHTMLProps, InputHTMLAttributes } from 'react';
1
+ import { DetailedHTMLProps, InputHTMLAttributes } from 'react';
2
2
  import { FieldValues, Path } from 'react-hook-form';
3
3
 
4
4
  export type TNumberFieldProps<T extends FieldValues> = {
@@ -11,7 +11,7 @@ export type TNumberFieldProps<T extends FieldValues> = {
11
11
  name: Path<T>;
12
12
  width?: number;
13
13
  };
14
- export declare const NumberField: <T extends FieldValues>(props: TNumberFieldProps<T>) => React.JSX.Element;
14
+ export declare const NumberField: <T extends FieldValues>(props: TNumberFieldProps<T>) => import("react/jsx-runtime").JSX.Element;
15
15
  export type TNativeNumberFieldProps = {
16
16
  defaultValue?: number;
17
17
  disabled?: boolean;
@@ -28,4 +28,4 @@ export type TNativeNumberFieldProps = {
28
28
  missing?: boolean;
29
29
  width?: number;
30
30
  } & Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'max' | 'min' | 'type'>;
31
- export declare const NativeNumberField: React.ForwardRefExoticComponent<Omit<TNativeNumberFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
31
+ export declare const NativeNumberField: import('react').ForwardRefExoticComponent<Omit<TNativeNumberFieldProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
@@ -1,5 +1,4 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
- import { default as React } from 'react';
3
2
  import { NumberField } from '.';
4
3
 
5
4
  declare const _default: Meta<typeof NumberField>;
@@ -7,9 +6,9 @@ export default _default;
7
6
  type Story = StoryObj<typeof NumberField>;
8
7
  export declare const GeneralUsage: Story;
9
8
  export declare const Error: {
10
- render: () => React.JSX.Element;
9
+ render: () => import("react/jsx-runtime").JSX.Element;
11
10
  };
12
11
  export declare const Helper: {
13
- render: () => React.JSX.Element;
12
+ render: () => import("react/jsx-runtime").JSX.Element;
14
13
  };
15
14
  export declare const Native: Story;
@@ -1,4 +1,4 @@
1
- import { default as React, ChangeEventHandler, DetailedHTMLProps, InputHTMLAttributes, ReactNode } from 'react';
1
+ import { ChangeEventHandler, DetailedHTMLProps, InputHTMLAttributes, ReactNode } from 'react';
2
2
  import { FieldValues, Path } from 'react-hook-form';
3
3
 
4
4
  export type TPhoneFieldProps<T extends FieldValues> = {
@@ -11,7 +11,7 @@ export type TPhoneFieldProps<T extends FieldValues> = {
11
11
  name: Path<T>;
12
12
  placeholder?: string;
13
13
  };
14
- export declare const PhoneField: <T extends FieldValues>(props: TPhoneFieldProps<T>) => React.JSX.Element;
14
+ export declare const PhoneField: <T extends FieldValues>(props: TPhoneFieldProps<T>) => import("react/jsx-runtime").JSX.Element;
15
15
  export type TNativeCountrySelectProps = {
16
16
  id: string;
17
17
  missing?: boolean;
@@ -27,9 +27,9 @@ export type TNativeInputProps = {
27
27
  placeholder: string;
28
28
  } & DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
29
29
  export declare const NativePhoneField: {
30
- CountrySelect: React.ForwardRefExoticComponent<Omit<TNativeCountrySelectProps, "ref"> & React.RefAttributes<HTMLSelectElement>>;
31
- Input: React.ForwardRefExoticComponent<Omit<TNativeInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
30
+ CountrySelect: import('react').ForwardRefExoticComponent<Omit<TNativeCountrySelectProps, "ref"> & import('react').RefAttributes<HTMLSelectElement>>;
31
+ Input: import('react').ForwardRefExoticComponent<Omit<TNativeInputProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
32
32
  Root: ({ children }: {
33
33
  children: ReactNode;
34
- }) => React.JSX.Element;
34
+ }) => import("react/jsx-runtime").JSX.Element;
35
35
  };
@@ -1,5 +1,4 @@
1
1
  import { Meta, StoryObj } from '@storybook/react';
2
- import { default as React } from 'react';
3
2
  import { PinInput } from '.';
4
3
 
5
4
  declare const _default: Meta<typeof PinInput>;
@@ -25,5 +24,5 @@ export declare const OTP: {
25
24
  };
26
25
  };
27
26
  export declare const NewOTPInput: {
28
- render: () => React.JSX.Element;
27
+ render: () => import("react/jsx-runtime").JSX.Element;
29
28
  };
@@ -1,5 +1,4 @@
1
1
  import { OTPInputProps } from 'input-otp';
2
- import { default as React } from 'react';
3
2
  import { FieldValues, Path } from 'react-hook-form';
4
3
 
5
4
  export interface TPinInputProps<T extends FieldValues> {
@@ -10,5 +9,5 @@ export interface TPinInputProps<T extends FieldValues> {
10
9
  length: number;
11
10
  name: Path<T>;
12
11
  }
13
- export declare const PinInput: <T extends FieldValues>(props: TPinInputProps<T>) => React.JSX.Element;
14
- export declare const OTPInput: (props: Pick<OTPInputProps, "inputMode" | "onChange" | "onComplete" | "value">) => React.JSX.Element;
12
+ export declare const PinInput: <T extends FieldValues>(props: TPinInputProps<T>) => import("react/jsx-runtime").JSX.Element;
13
+ export declare const OTPInput: (props: Pick<OTPInputProps, "inputMode" | "onChange" | "onComplete" | "value">) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,9 @@
1
- import { default as React } from 'react';
2
1
  import * as RadixPopover from '@radix-ui/react-popover';
3
2
  export type TPopoverRootProps = React.ComponentPropsWithoutRef<typeof RadixPopover.Root>;
4
3
  export type TPopoverTriggerProps = React.ComponentPropsWithoutRef<typeof RadixPopover.Trigger>;
5
4
  export type TPopoverContentProps = React.ComponentPropsWithoutRef<typeof RadixPopover.Content>;
6
5
  export declare const Popover: {
7
- Content: ({ children, ...rest }: TPopoverContentProps) => React.JSX.Element;
8
- Root: (props: TPopoverRootProps) => React.JSX.Element;
9
- Trigger: ({ children, ...rest }: TPopoverTriggerProps) => React.JSX.Element;
6
+ Content: ({ children, ...rest }: TPopoverContentProps) => import("react/jsx-runtime").JSX.Element;
7
+ Root: (props: TPopoverRootProps) => import("react/jsx-runtime").JSX.Element;
8
+ Trigger: ({ children, ...rest }: TPopoverTriggerProps) => import("react/jsx-runtime").JSX.Element;
10
9
  };
@@ -1,9 +1,7 @@
1
- import { default as React } from 'react';
2
-
3
1
  export type TProgressIndicatorProps = {
4
2
  current?: number;
5
3
  label?: string;
6
4
  max?: number;
7
5
  size?: 'full-width' | 'medium' | 'small';
8
6
  };
9
- export declare const ProgressIndicator: ({ current, label, max, size }: TProgressIndicatorProps) => React.JSX.Element;
7
+ export declare const ProgressIndicator: ({ current, label, max, size }: TProgressIndicatorProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { FieldError, FieldValues, Path } from 'react-hook-form';
3
2
  import * as RadixRadioGroup from '@radix-ui/react-radio-group';
4
3
  export type TRadioGroupProps<T extends FieldValues> = {
@@ -8,9 +7,9 @@ export type TRadioGroupProps<T extends FieldValues> = {
8
7
  variant?: 'cards' | 'circle';
9
8
  } & Omit<RadixRadioGroup.RadioGroupProps, 'name'>;
10
9
  export declare const RadioGroup: {
11
- Indicator: ({ className, ...props }: RadixRadioGroup.RadioGroupIndicatorProps) => React.JSX.Element;
10
+ Indicator: ({ className, ...props }: RadixRadioGroup.RadioGroupIndicatorProps) => import("react/jsx-runtime").JSX.Element;
12
11
  Item: ({ children, className, variant, ...props }: {
13
12
  variant?: "cards" | "circle";
14
- } & RadixRadioGroup.RadioGroupItemProps) => React.JSX.Element;
15
- Root: <T extends FieldValues>({ children, className, disabled, label, name, variant, ...props }: TRadioGroupProps<T>) => React.JSX.Element;
13
+ } & RadixRadioGroup.RadioGroupItemProps) => import("react/jsx-runtime").JSX.Element;
14
+ Root: <T extends FieldValues>({ children, className, disabled, label, name, variant, ...props }: TRadioGroupProps<T>) => import("react/jsx-runtime").JSX.Element;
16
15
  };
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { FieldValues, Path } from 'react-hook-form';
3
2
 
4
3
  export type TRangeProps<T extends FieldValues> = {
@@ -13,4 +12,4 @@ export type TRangeProps<T extends FieldValues> = {
13
12
  showValue?: boolean;
14
13
  step?: number;
15
14
  };
16
- export declare const Range: <T extends FieldValues>(props: TRangeProps<T>) => React.JSX.Element;
15
+ export declare const Range: <T extends FieldValues>(props: TRangeProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { default as React, DetailedHTMLProps, OptionHTMLAttributes, ReactNode, SelectHTMLAttributes } from 'react';
1
+ import { DetailedHTMLProps, OptionHTMLAttributes, ReactNode, SelectHTMLAttributes } from 'react';
2
2
  import { FieldValues, Path } from 'react-hook-form';
3
3
 
4
4
  export type TItem = {
@@ -23,7 +23,7 @@ export type TSelectProps<T extends FieldValues> = {
23
23
  name: Path<T>;
24
24
  placeholder?: string;
25
25
  };
26
- export declare const Select: <T extends FieldValues>(props: TSelectProps<T>) => React.JSX.Element;
26
+ export declare const Select: <T extends FieldValues>(props: TSelectProps<T>) => import("react/jsx-runtime").JSX.Element;
27
27
  export type TNativeSelectProps = {
28
28
  error?: {
29
29
  message: string;
@@ -40,4 +40,4 @@ export type TNativeSelectProps = {
40
40
  missing?: boolean;
41
41
  placeholder?: string;
42
42
  } & Omit<DetailedHTMLProps<SelectHTMLAttributes<HTMLSelectElement>, HTMLSelectElement>, 'children'>;
43
- export declare const NativeSelect: React.ForwardRefExoticComponent<Omit<TNativeSelectProps, "ref"> & React.RefAttributes<HTMLSelectElement>>;
43
+ export declare const NativeSelect: import('react').ForwardRefExoticComponent<Omit<TNativeSelectProps, "ref"> & import('react').RefAttributes<HTMLSelectElement>>;
@@ -1,8 +1,6 @@
1
- import { default as React } from 'react';
2
-
3
1
  export type TSkeletonProps = {
4
2
  height?: string;
5
3
  rounded?: boolean;
6
4
  width?: string;
7
5
  };
8
- export declare const Skeleton: ({ height, rounded, width }: TSkeletonProps) => React.JSX.Element;
6
+ export declare const Skeleton: ({ height, rounded, width }: TSkeletonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,18 +1,18 @@
1
- import { default as React, PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
 
3
- export declare const TableRoot: ({ children }: PropsWithChildren) => React.JSX.Element;
4
- export declare const TableHead: ({ children }: PropsWithChildren) => React.JSX.Element;
5
- export declare const TableHeader: ({ children }: PropsWithChildren) => React.JSX.Element;
6
- export declare const TableBody: ({ children }: PropsWithChildren) => React.JSX.Element;
7
- export declare const TableRow: ({ children }: PropsWithChildren) => React.JSX.Element;
8
- export declare const TableData: ({ children }: PropsWithChildren) => React.JSX.Element;
9
- export declare const TableFooter: ({ children }: PropsWithChildren) => React.JSX.Element;
3
+ export declare const TableRoot: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const TableHead: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
5
+ export declare const TableHeader: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const TableBody: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const TableRow: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
8
+ export declare const TableData: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const TableFooter: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
10
10
  export declare const Table: {
11
- Body: ({ children }: PropsWithChildren) => React.JSX.Element;
12
- Data: ({ children }: PropsWithChildren) => React.JSX.Element;
13
- Footer: ({ children }: PropsWithChildren) => React.JSX.Element;
14
- Head: ({ children }: PropsWithChildren) => React.JSX.Element;
15
- Header: ({ children }: PropsWithChildren) => React.JSX.Element;
16
- Root: ({ children }: PropsWithChildren) => React.JSX.Element;
17
- Row: ({ children }: PropsWithChildren) => React.JSX.Element;
11
+ Body: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
12
+ Data: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
13
+ Footer: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
14
+ Head: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
15
+ Header: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
16
+ Root: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
17
+ Row: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
18
18
  };
@@ -1,12 +1,11 @@
1
- import { default as React } from 'react';
2
1
  import * as RadixTabs from '@radix-ui/react-tabs';
3
2
  export type TTabsRoot = React.ComponentProps<typeof RadixTabs.Root>;
4
3
  export type TTabsList = React.ComponentProps<typeof RadixTabs.List>;
5
4
  export type TTabsTrigger = React.ComponentProps<typeof RadixTabs.Trigger>;
6
5
  export type TTabsContent = React.ComponentProps<typeof RadixTabs.Content>;
7
6
  export declare const Tabs: {
8
- Content: ({ children, ...rest }: TTabsContent) => React.JSX.Element;
9
- List: ({ children, ...rest }: TTabsList) => React.JSX.Element;
10
- Root: ({ children, ...rest }: TTabsRoot) => React.JSX.Element;
11
- Trigger: ({ children, ...rest }: TTabsTrigger) => React.JSX.Element;
7
+ Content: ({ children, ...rest }: TTabsContent) => import("react/jsx-runtime").JSX.Element;
8
+ List: ({ children, ...rest }: TTabsList) => import("react/jsx-runtime").JSX.Element;
9
+ Root: ({ children, ...rest }: TTabsRoot) => import("react/jsx-runtime").JSX.Element;
10
+ Trigger: ({ children, ...rest }: TTabsTrigger) => import("react/jsx-runtime").JSX.Element;
12
11
  };
@@ -1,4 +1,4 @@
1
- import { default as React, ReactNode } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { TTypographyProps } from '../Typography';
3
3
 
4
4
  export type TTagProps = {
@@ -9,7 +9,7 @@ export type TTagProps = {
9
9
  variant?: 'danger' | 'night' | 'positive' | 'primary' | 'secondary' | 'tertiary' | 'warning';
10
10
  };
11
11
  export declare const Tag: {
12
- Content: ({ children, ...rest }: TTypographyProps) => React.JSX.Element;
13
- Icon: ({ size, weight, ...rest }: import('../Icon').TIconProps) => React.JSX.Element;
14
- Root: ({ children, circularIcon, className, icon, variant, ...rest }: TTagProps) => React.JSX.Element;
12
+ Content: ({ children, ...rest }: TTypographyProps) => import("react/jsx-runtime").JSX.Element;
13
+ Icon: ({ size, weight, ...rest }: import('..').TIconProps) => import("react/jsx-runtime").JSX.Element;
14
+ Root: ({ children, circularIcon, className, icon, variant, ...rest }: TTagProps) => import("react/jsx-runtime").JSX.Element;
15
15
  };
@@ -1,4 +1,4 @@
1
- import { default as React, DetailedHTMLProps, InputHTMLAttributes, ReactNode } from 'react';
1
+ import { DetailedHTMLProps, InputHTMLAttributes, ReactNode } from 'react';
2
2
  import { FieldValues, Path } from 'react-hook-form';
3
3
 
4
4
  export type TTextFieldProps<T extends FieldValues> = {
@@ -17,7 +17,7 @@ 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
- export declare const TextField: React.ForwardRefExoticComponent<Omit<TTextFieldProps<FieldValues>, "ref"> & React.RefAttributes<HTMLInputElement>>;
20
+ export declare const TextField: import('react').ForwardRefExoticComponent<Omit<TTextFieldProps<FieldValues>, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
21
21
  export type TNativeTextFieldProps = {
22
22
  className?: string;
23
23
  error?: {
@@ -33,4 +33,4 @@ export type TNativeTextFieldProps = {
33
33
  rightContent?: ReactNode | string;
34
34
  suffix?: ReactNode | string;
35
35
  } & DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>;
36
- export declare const NativeTextField: React.ForwardRefExoticComponent<Omit<TNativeTextFieldProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
36
+ export declare const NativeTextField: import('react').ForwardRefExoticComponent<Omit<TNativeTextFieldProps, "ref"> & import('react').RefAttributes<HTMLInputElement>>;
@@ -8,7 +8,6 @@ export declare const GeneralUsage: Story;
8
8
  export declare const Error: Story;
9
9
  export declare const HelperText: Story;
10
10
  export declare const RightContent: Story;
11
- export declare const LeftContent: Story;
12
11
  export declare const Prefix: Story;
13
12
  export declare const Suffix: Story;
14
13
  export declare const WithKeyDown: Story;
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import { TIconProps } from '../Icon';
3
2
 
4
3
  export type TToastRootProps = {
@@ -13,8 +12,8 @@ export type TToastDescriptionProps = {
13
12
  };
14
13
  export type TToastIconProps = TIconProps;
15
14
  export declare const Toast: {
16
- Description: ({ children }: TToastDescriptionProps) => React.JSX.Element;
17
- Icon: (props: TToastIconProps) => React.JSX.Element;
18
- Root: ({ children }: TToastRootProps) => React.JSX.Element;
19
- Title: ({ children, className }: TToastTitleProps) => React.JSX.Element;
15
+ Description: ({ children }: TToastDescriptionProps) => import("react/jsx-runtime").JSX.Element;
16
+ Icon: (props: TToastIconProps) => import("react/jsx-runtime").JSX.Element;
17
+ Root: ({ children }: TToastRootProps) => import("react/jsx-runtime").JSX.Element;
18
+ Title: ({ children, className }: TToastTitleProps) => import("react/jsx-runtime").JSX.Element;
20
19
  };