@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
package/README.MD CHANGED
@@ -29,9 +29,10 @@ Next, add the following the highest up in your application, usually in the `App.
29
29
  This adds the tokens used in the design system to the root of the application. (the css modules come prebundled in the build this step is only for the tokens and odd global styles included in the design system).
30
30
 
31
31
  ```jsx
32
- import "@kroo-web/design-system/dist/styles/global.css";
33
- // For using the icons package
34
- import "react-material-symbols/rounded";
32
+ import '@kroo-web/design-system/dist/styles/styles/global.css' <-- this is the tokens
33
+
34
+ import '@kroo-web/design-system/dist/styles/styles/style.css' <-- this is the css modules
35
+
35
36
  ```
36
37
 
37
38
  That's all folks! You can now use the components in the design system in your application.
@@ -48,35 +49,80 @@ for setup you will need to add the `ToastContainer` component from `react-toasti
48
49
 
49
50
  ## Testing without deploying the package
50
51
 
51
- If you would like to test the design system without deploying the package you can run the following command in the root of the project.
52
+ If you would like to test the design system without deploying the package, you can use `npm pack` to create a local tarball of the package:
52
53
 
53
54
  ```bash
54
- npm link
55
- ```
56
-
57
- in the design system repo you will also have to run to use the react version from the repo where the design system is being used
58
-
59
- ```
60
- npm link ../myproject/node_modules/react
61
- npm link ../myproject/node_modules/react-dom
55
+ # In the design system repo
56
+ npm run build # Make sure to build the package first
57
+ npm pack # This creates a .tgz file
62
58
  ```
63
59
 
64
- then in a project where the design system is being used run the following command.
60
+ Then in your project where you want to use the design system, you can install the local package:
65
61
 
66
62
  ```bash
67
- npm link @kroo-web/design-system
63
+ # In your project directory
64
+ npm install /path/to/design-system/kroo-web-design-system-1.0.0.tgz
68
65
  ```
69
66
 
70
- This will overwrite the package with the local version of the package and will update when rebuilt.
71
-
72
- <i>**Note**: Does not show up in the package.json it just replaces the node_modules package. this is so an unreleased version of the package cannot be deployed to prod (so after development make sure you npm install again to overwrite the local version of the package).</i>
67
+ The exact filename will depend on your package version. This method will properly update your package.json and is more reliable than using `npm link`.
73
68
 
69
+ To update the package after making changes:
70
+ 1. Make your changes in the design system
71
+ 2. Run `npm run build`
72
+ 3. Run `npm pack` again
73
+ 4. Reinstall the new .tgz file in your project
74
74
 
75
75
  ## Next Steps
76
76
 
77
- This sways more on the side of component library rather than a design system due to the lack of tokens and living documentation. However, next steps would be to create a seperate package called @kroo-web/tokens allowing us to version the tokens and use them in the design system.
78
-
79
- We could also use Token Studio with Figma to enable the designers to have control over the tokens allowing them to change the design system and see the changes in the design system in real time.
77
+ Here are the key areas for improving and evolving the design system:
78
+
79
+ ### 1. Token Management
80
+ - Create a separate `@kroo-web/tokens` package to manage design tokens independently
81
+ - Implement Token Studio integration with Figma for real-time token management
82
+ - Set up a CI/CD pipeline for automatic token updates from Figma to code
83
+ - Add support for theme switching (light/dark mode) using token sets
84
+ - Document token usage and naming conventions
85
+
86
+ ### 2. Documentation Improvements
87
+ - Set up a documentation site using tools like Docusaurus or Storybook Docs
88
+ - Create comprehensive usage guidelines for each component
89
+ - Add accessibility documentation and WCAG compliance status
90
+ - Include interactive examples and code playgrounds
91
+ - Document component composition patterns and best practices
92
+ - Add visual regression testing documentation
93
+
94
+ ### 3. Component Architecture
95
+ - Implement a more robust component composition system
96
+ - Add support for component variants using a consistent API
97
+ - Create higher-order components for common patterns
98
+ - Improve type definitions and prop documentation
99
+ - Add performance benchmarks for components
100
+
101
+ ### 4. Testing and Quality
102
+ - Implement end-to-end testing using Cypress or Playwright
103
+ - Add visual regression testing with tools like Percy or Chromatic
104
+ - Improve unit test coverage
105
+ - Add accessibility testing using tools like axe-core
106
+ - Set up automated performance monitoring
107
+
108
+ ### 5. Developer Experience
109
+ - Add better error messages and development-time warnings
110
+ - Create codemods for breaking changes
111
+
112
+ ### 6. Design-Development Workflow
113
+ - Set up automated design token sync from Figma
114
+ - Implement a component request and review process
115
+ - Create a changelog automation system
116
+ - Add design system analytics to track component usage
117
+ - Establish a regular design system review process
118
+
119
+ ### 7. Performance Optimization
120
+ - Add bundle size monitoring
121
+ - Optimize asset loading and delivery
122
+
123
+ ## Automated Changelog
124
+
125
+ We use [Conventional Commits](https://www.conventionalcommits.org/) and [Release-Please](https://github.com/googleapis/release-please) to automate our changelog generation.
80
126
 
81
127
  ## Deployments of storybook
82
128
 
@@ -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;