@kroo-web/design-system 1.13.0 → 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 (47) hide show
  1. package/README.MD +66 -20
  2. package/dist/components/Accordion/config.d.ts +5 -5
  3. package/dist/components/Accordion/index.d.ts +5 -6
  4. package/dist/components/Button/index.d.ts +2 -2
  5. package/dist/components/Callout/index.d.ts +4 -4
  6. package/dist/components/Card/index.d.ts +2 -2
  7. package/dist/components/Cards/index.d.ts +2 -2
  8. package/dist/components/Checkbox/index.d.ts +3 -3
  9. package/dist/components/Columns/index.d.ts +1 -3
  10. package/dist/components/ComboBox/ComboBox.stories.d.ts +1 -2
  11. package/dist/components/ComboBox/index.d.ts +9 -9
  12. package/dist/components/DatePicker/index.d.ts +3 -3
  13. package/dist/components/Disclosure/index.d.ts +1 -3
  14. package/dist/components/Form/index.d.ts +2 -2
  15. package/dist/components/Icon/index.d.ts +2 -3
  16. package/dist/components/Link/index.d.ts +2 -2
  17. package/dist/components/Loading/index.d.ts +1 -3
  18. package/dist/components/Modal/index.d.ts +6 -6
  19. package/dist/components/NumberField/index.d.ts +3 -3
  20. package/dist/components/NumberField/numberField.stories.d.ts +2 -3
  21. package/dist/components/PhoneField/index.d.ts +5 -5
  22. package/dist/components/PinInput/PinInput.stories.d.ts +1 -2
  23. package/dist/components/PinInput/index.d.ts +2 -3
  24. package/dist/components/Popover/index.d.ts +3 -4
  25. package/dist/components/ProgressIndicator/index.d.ts +1 -3
  26. package/dist/components/RadioGroup/index.d.ts +3 -4
  27. package/dist/components/Range/index.d.ts +1 -2
  28. package/dist/components/Select/index.d.ts +3 -3
  29. package/dist/components/Skeleton/index.d.ts +1 -3
  30. package/dist/components/Table/index.d.ts +15 -15
  31. package/dist/components/Tabs/index.d.ts +4 -5
  32. package/dist/components/Tag/index.d.ts +4 -4
  33. package/dist/components/TextField/index.d.ts +3 -3
  34. package/dist/components/TextField/textField.stories.d.ts +0 -1
  35. package/dist/components/Toast/index.d.ts +4 -5
  36. package/dist/components/Tooltip/index.d.ts +3 -4
  37. package/dist/components/Typography/index.d.ts +1 -3
  38. package/dist/components/Wrapper/index.d.ts +2 -2
  39. package/dist/components/shared/FieldError/index.d.ts +1 -3
  40. package/dist/components/shared/FieldHelper/index.d.ts +1 -3
  41. package/dist/components/shared/FormField/index.d.ts +2 -2
  42. package/dist/index.js +23931 -110
  43. package/dist/index.umd.cjs +118 -0
  44. package/dist/types/PolymorphicWithoutRef.d.ts +2 -0
  45. package/dist/utils/decorators/Form/index.d.ts +2 -2
  46. package/dist/utils/decorators/Grid/index.d.ts +2 -2
  47. package/package.json +14 -13
@@ -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
  };
@@ -1,4 +1,3 @@
1
- import { default as React } from 'react';
2
1
  import * as RadixTooltip from '@radix-ui/react-tooltip';
3
2
  export type TTooltipRootProps = React.ComponentProps<typeof RadixTooltip.Root>;
4
3
  export type TTooltipTriggerProps = {
@@ -8,7 +7,7 @@ export type TTooltipContentProps = {
8
7
  className?: string;
9
8
  } & React.ComponentProps<typeof RadixTooltip.Content>;
10
9
  export declare const Tooltip: {
11
- Content: ({ children, className, ...rest }: TTooltipContentProps) => React.JSX.Element;
12
- Root: ({ children, ...rest }: TTooltipRootProps) => React.JSX.Element;
13
- Trigger: ({ children, className, ...rest }: TTooltipTriggerProps) => React.JSX.Element;
10
+ Content: ({ children, className, ...rest }: TTooltipContentProps) => import("react/jsx-runtime").JSX.Element;
11
+ Root: ({ children, ...rest }: TTooltipRootProps) => import("react/jsx-runtime").JSX.Element;
12
+ Trigger: ({ children, className, ...rest }: TTooltipTriggerProps) => import("react/jsx-runtime").JSX.Element;
14
13
  };
@@ -1,5 +1,3 @@
1
- import { default as React } from 'react';
2
-
3
1
  export type TLegacyMarketingText = 'marketing-large-light' | 'marketing-large-regular' | 'marketing-large-semi-bold' | 'marketing-medium-light' | 'marketing-medium-regular' | 'marketing-medium-semi-bold' | 'marketing-quote-light' | 'marketing-quote-regular' | 'marketing-quote-semi-bold' | 'marketing-small-light' | 'marketing-small-regular' | 'marketing-small-semi-bold' | 'marketing-tag-light' | 'marketing-tag-regular' | 'marketing-tag-semi-bold' | 'marketing-text-light' | 'marketing-text-regular' | 'marketing-text-semi-bold';
4
2
  export type TLegacyMarketingHeading = 'marketing-heading-1' | 'marketing-heading-2' | 'marketing-heading-3' | 'marketing-heading-4' | 'marketing-heading-5' | 'marketing-heading-6' | 'marketing-heading-7';
5
3
  export type TLegacyMarketingFooter = 'footer-regular' | 'footer-semi-bold';
@@ -11,4 +9,4 @@ export type TTypographyProps<C extends React.ElementType = 'p'> = {
11
9
  className?: string;
12
10
  variant?: TTypographyVariants;
13
11
  } & React.ComponentPropsWithoutRef<C>;
14
- export declare const Typography: <C extends React.ElementType = "p">({ as, children, className, variant, ...rest }: TTypographyProps<C>) => React.JSX.Element;
12
+ export declare const Typography: <C extends React.ElementType = "p">({ as, children, className, variant, ...rest }: TTypographyProps<C>) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { default as React, PropsWithChildren } from 'react';
1
+ import { PropsWithChildren } from 'react';
2
2
 
3
3
  export type WrapperVariants = {
4
4
  orientation?: 'center';
@@ -10,4 +10,4 @@ export interface WrapperProps extends PropsWithChildren {
10
10
  className?: string;
11
11
  variants?: WrapperVariants;
12
12
  }
13
- export declare const Wrapper: ({ as, children, className, variants }: WrapperProps) => React.JSX.Element;
13
+ export declare const Wrapper: ({ as, children, className, variants }: WrapperProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,6 @@
1
- import { default as React } from 'react';
2
-
3
1
  export type TFieldErrorProps = {
4
2
  error: {
5
3
  message: string;
6
4
  };
7
5
  };
8
- export declare const FieldError: ({ error }: TFieldErrorProps) => React.JSX.Element;
6
+ export declare const FieldError: ({ error }: TFieldErrorProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,3 @@
1
- import { default as React } from 'react';
2
-
3
1
  export type TFieldHelperProps = {
4
2
  helper: {
5
3
  message: string;
@@ -10,4 +8,4 @@ export type TFieldHelperProps = {
10
8
  */
11
9
  id: string;
12
10
  };
13
- export declare const FieldHelper: ({ helper, id }: TFieldHelperProps) => React.JSX.Element;
11
+ export declare const FieldHelper: ({ helper, id }: TFieldHelperProps) => 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
 
3
3
  export type TFormFieldProps = {
4
4
  children: ReactNode;
@@ -8,4 +8,4 @@ export type TFormFieldProps = {
8
8
  id: string;
9
9
  label?: string;
10
10
  };
11
- export declare const FormField: ({ children, error, helper, hideLabel, id, label }: TFormFieldProps) => React.JSX.Element;
11
+ export declare const FormField: ({ children, error, helper, hideLabel, id, label }: TFormFieldProps) => import("react/jsx-runtime").JSX.Element;