chop-logic-components 0.6.3 → 0.7.1

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 (64) hide show
  1. package/dist/__mocks__/select-values.d.ts +2 -2
  2. package/dist/components/controls/button/Button.d.ts +3 -3
  3. package/dist/components/controls/button/__docs__/Button.stories.d.ts +1 -1
  4. package/dist/components/controls/button/__docs__/ButtonExample.d.ts +1 -1
  5. package/dist/components/index.d.ts +3 -3
  6. package/dist/components/inputs/checkbox/Checkbox.d.ts +1 -6
  7. package/dist/components/inputs/checkbox/__docs__/Checkbox.stories.d.ts +1 -1
  8. package/dist/components/inputs/checkbox/__docs__/CheckboxExample.d.ts +1 -1
  9. package/dist/components/inputs/checkbox/types.d.ts +7 -0
  10. package/dist/components/inputs/multi-select/MultiSelect.d.ts +1 -13
  11. package/dist/components/inputs/multi-select/__docs__/MultiSelect.stories.d.ts +1 -1
  12. package/dist/components/inputs/multi-select/__docs__/MultiSelectExample.d.ts +1 -1
  13. package/dist/components/inputs/multi-select/elements/Combobox.d.ts +1 -1
  14. package/dist/components/inputs/multi-select/elements/Dropdown.d.ts +2 -9
  15. package/dist/components/inputs/multi-select/elements/Option.d.ts +1 -1
  16. package/dist/components/inputs/multi-select/types.d.ts +21 -0
  17. package/dist/components/inputs/select/Select.d.ts +1 -12
  18. package/dist/components/inputs/select/__docs__/Select.stories.d.ts +1 -1
  19. package/dist/components/inputs/select/__docs__/SelectExample.d.ts +1 -1
  20. package/dist/components/inputs/select/elements/Combobox.d.ts +1 -1
  21. package/dist/components/inputs/select/elements/Dropdown.d.ts +1 -1
  22. package/dist/components/inputs/select/elements/Option.d.ts +1 -1
  23. package/dist/components/inputs/select/types.d.ts +13 -0
  24. package/dist/components/inputs/text/TextInput.d.ts +1 -7
  25. package/dist/components/inputs/text/__docs__/TextInput.stories.d.ts +1 -1
  26. package/dist/components/inputs/text/__docs__/TextInputExample.d.ts +1 -1
  27. package/dist/components/inputs/text/types.d.ts +8 -0
  28. package/dist/components/modals/alert/Alert.d.ts +4 -0
  29. package/dist/components/modals/alert/__docs__/Alert.stories.d.ts +9 -0
  30. package/dist/components/modals/alert/__docs__/AlertExample.d.ts +2 -0
  31. package/dist/components/modals/alert/__tests__/Alert.test.d.ts +1 -0
  32. package/dist/components/modals/alert/elements/Header.d.ts +10 -0
  33. package/dist/components/modals/alert/helpers/get-alert-icon.d.ts +4 -0
  34. package/dist/components/modals/alert/helpers/get-alert-title.d.ts +3 -0
  35. package/dist/components/modals/alert/types.d.ts +9 -0
  36. package/dist/components/modals/dialog/Dialog.d.ts +1 -6
  37. package/dist/components/modals/dialog/__docs__/Dialog.stories.d.ts +1 -1
  38. package/dist/components/modals/dialog/__docs__/DialogExample.d.ts +1 -1
  39. package/dist/components/modals/dialog/types.d.ts +7 -0
  40. package/dist/components/modals/tooltip/Tooltip.d.ts +1 -7
  41. package/dist/components/modals/tooltip/__docs__/Tooltip.stories.d.ts +1 -1
  42. package/dist/components/modals/tooltip/__docs__/TooltipExample.d.ts +1 -1
  43. package/dist/components/modals/tooltip/types.d.ts +8 -0
  44. package/dist/enums/icon.d.ts +6 -1
  45. package/dist/hooks/index.d.ts +4 -4
  46. package/dist/hooks/use-click-outside/__docs__/useClickOutside.stories.d.ts +1 -1
  47. package/dist/hooks/use-container-dimensions/__docs__/useContainerDimensions.stories.d.ts +1 -1
  48. package/dist/hooks/use-key-press/__docs__/useKeyPress.stories.d.ts +1 -1
  49. package/dist/hooks/use-modal-focus-trap/__docs__/useModalFocusTrap.stories.d.ts +1 -1
  50. package/dist/hooks/use-modal-focus-trap/index.d.ts +1 -0
  51. package/dist/hooks/use-mount/__docs__/useMount.stories.d.ts +1 -1
  52. package/dist/hooks/use-tooltip-position/__docs__/useTooltipPosition.stories.d.ts +1 -1
  53. package/dist/hooks/use-tooltip-position/index.d.ts +1 -0
  54. package/dist/hooks/use-window-dimensions/__docs__/useWindowDimensions.stories.d.ts +1 -1
  55. package/dist/index.cjs.js +122 -60
  56. package/dist/index.cjs.js.map +1 -1
  57. package/dist/index.d.ts +0 -1
  58. package/dist/index.es.js +11174 -10015
  59. package/dist/index.es.js.map +1 -1
  60. package/dist/style.css +1 -1
  61. package/package.json +13 -11
  62. package/dist/styles/index.d.ts +0 -1
  63. /package/dist/components/elements/__tests__/{error-message.test.d.ts → ErrorMessage.test.d.ts} +0 -0
  64. /package/dist/components/elements/__tests__/{label.test.d.ts → Label.test.d.ts} +0 -0
@@ -1,5 +1,5 @@
1
- import { SelectValue } from '../../../../../../../src/components/inputs/select/Select';
2
- import { MultiSelectValue } from '../../../../../../../src/components/inputs/multi-select/MultiSelect';
1
+ import { MultiSelectValue } from '../../../../../../../src/components/inputs/multi-select/types';
2
+ import { SelectValue } from '../../../../../../../src/components/inputs/select/types';
3
3
 
4
4
  export declare const SELECT_LANGUAGES: SelectValue[];
5
5
  export declare const MULTI_SELECT_VALUES: MultiSelectValue[];
@@ -1,5 +1,5 @@
1
- import { ChopLogicButtonProps } from './types';
2
1
  import { default as React } from 'react';
2
+ import { ChopLogicButtonProps } from './types';
3
3
 
4
- declare const Button: React.FC<ChopLogicButtonProps>;
5
- export default Button;
4
+ declare const ChopLogicButton: React.FC<ChopLogicButtonProps>;
5
+ export default ChopLogicButton;
@@ -1,5 +1,5 @@
1
- import { default as ButtonExample } from './ButtonExample';
2
1
  import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as ButtonExample } from './ButtonExample';
3
3
 
4
4
  declare const meta: Meta<typeof ButtonExample>;
5
5
  export default meta;
@@ -1,5 +1,5 @@
1
- import { ChopLogicButtonProps } from '../types';
2
1
  import { default as React } from 'react';
2
+ import { ChopLogicButtonProps } from '../types';
3
3
 
4
4
  declare const ExampleButton: React.FC<ChopLogicButtonProps>;
5
5
  export default ExampleButton;
@@ -1,7 +1,7 @@
1
1
  export { default as ChopLogicButton } from './controls/button/Button';
2
- export { default as ChopLogicTextInput } from './inputs/text/TextInput';
3
- export { default as ChopLogicSelect } from './inputs/select/Select';
4
- export { default as ChopLogicMultiSelect } from './inputs/multi-select/MultiSelect';
5
2
  export { default as ChopLogicCheckbox } from './inputs/checkbox/Checkbox';
3
+ export { default as ChopLogicMultiSelect } from './inputs/multi-select/MultiSelect';
4
+ export { default as ChopLogicSelect } from './inputs/select/Select';
5
+ export { default as ChopLogicTextInput } from './inputs/text/TextInput';
6
6
  export { default as ChopLogicDialog } from './modals/dialog/Dialog';
7
7
  export { default as ChopLogicTooltip } from './modals/tooltip/Tooltip';
@@ -1,10 +1,5 @@
1
1
  import { default as React } from 'react';
2
+ import { ChopLogicCheckboxProps } from './types';
2
3
 
3
- export type ChopLogicCheckboxProps = React.InputHTMLAttributes<HTMLInputElement> & {
4
- id: string;
5
- name: string;
6
- label: string;
7
- isLabelHidden?: boolean;
8
- };
9
4
  declare const ChopLogicCheckbox: React.FC<ChopLogicCheckboxProps>;
10
5
  export default ChopLogicCheckbox;
@@ -1,5 +1,5 @@
1
- import { default as CheckboxExample } from './CheckboxExample';
2
1
  import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as CheckboxExample } from './CheckboxExample';
3
3
 
4
4
  declare const meta: Meta<typeof CheckboxExample>;
5
5
  export default meta;
@@ -1,5 +1,5 @@
1
- import { ChopLogicCheckboxProps } from '../Checkbox';
2
1
  import { default as React } from 'react';
2
+ import { ChopLogicCheckboxProps } from '../types';
3
3
 
4
4
  declare const Example: React.FC<ChopLogicCheckboxProps>;
5
5
  export default Example;
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ export type ChopLogicCheckboxProps = React.InputHTMLAttributes<HTMLInputElement> & {
3
+ id: string;
4
+ name: string;
5
+ label: string;
6
+ isLabelHidden?: boolean;
7
+ };
@@ -1,16 +1,4 @@
1
+ import { ChopLogicMultiSelectProps } from './types';
1
2
 
2
- export type ChopLogicMultiSelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {
3
- id: string;
4
- name: string;
5
- label: string;
6
- values: MultiSelectValue[];
7
- onSelectChange?: (values?: MultiSelectValue[]) => void;
8
- placeholder?: string;
9
- };
10
- export type MultiSelectValue = {
11
- id: string;
12
- label: string;
13
- selected: boolean;
14
- };
15
3
  declare const ChopLogicMultiSelect: React.FC<ChopLogicMultiSelectProps>;
16
4
  export default ChopLogicMultiSelect;
@@ -1,5 +1,5 @@
1
- import { default as MultiSelectExample } from './MultiSelectExample';
2
1
  import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as MultiSelectExample } from './MultiSelectExample';
3
3
 
4
4
  declare const meta: Meta<typeof MultiSelectExample>;
5
5
  export default meta;
@@ -1,5 +1,5 @@
1
- import { ChopLogicMultiSelectProps } from '../MultiSelect';
2
1
  import { default as React } from 'react';
2
+ import { ChopLogicMultiSelectProps } from '../types';
3
3
 
4
4
  declare const Example: React.FC<ChopLogicMultiSelectProps>;
5
5
  export default Example;
@@ -1,4 +1,4 @@
1
- import { MultiSelectValue } from '../MultiSelect';
1
+ import { MultiSelectValue } from '../types';
2
2
 
3
3
  type SelectComboboxProps = {
4
4
  isOpened: boolean;
@@ -1,11 +1,4 @@
1
- import { MultiSelectValue } from '../MultiSelect';
1
+ import { MultiSelectDropdownProps } from '../types';
2
2
 
3
- type SelectDropdownProps = {
4
- values: MultiSelectValue[];
5
- isOpened: boolean;
6
- dropdownId: string;
7
- onClose: () => void;
8
- onSelect: (id: string) => void;
9
- };
10
- declare const SelectDropdown: React.FC<SelectDropdownProps>;
3
+ declare const SelectDropdown: React.FC<MultiSelectDropdownProps>;
11
4
  export default SelectDropdown;
@@ -1,4 +1,4 @@
1
- import { MultiSelectValue } from '../MultiSelect';
1
+ import { MultiSelectValue } from '../types';
2
2
 
3
3
  type SelectOptionProps = {
4
4
  value: MultiSelectValue;
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ export type MultiSelectValue = {
3
+ id: string;
4
+ label: string;
5
+ selected: boolean;
6
+ };
7
+ export type ChopLogicMultiSelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {
8
+ id: string;
9
+ name: string;
10
+ label: string;
11
+ values: MultiSelectValue[];
12
+ onSelectChange?: (values?: MultiSelectValue[]) => void;
13
+ placeholder?: string;
14
+ };
15
+ export type MultiSelectDropdownProps = {
16
+ values: MultiSelectValue[];
17
+ isOpened: boolean;
18
+ dropdownId: string;
19
+ onClose: () => void;
20
+ onSelect: (id: string) => void;
21
+ };
@@ -1,15 +1,4 @@
1
+ import { ChopLogicSelectProps } from './types';
1
2
 
2
- export type ChopLogicSelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {
3
- id: string;
4
- name: string;
5
- label: string;
6
- values: SelectValue[];
7
- onSelectChange?: (value?: SelectValue) => void;
8
- placeholder?: string;
9
- };
10
- export type SelectValue = {
11
- id: string;
12
- label: string;
13
- };
14
3
  declare const ChopLogicSelect: React.FC<ChopLogicSelectProps>;
15
4
  export default ChopLogicSelect;
@@ -1,5 +1,5 @@
1
- import { default as SelectExample } from './SelectExample';
2
1
  import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as SelectExample } from './SelectExample';
3
3
 
4
4
  declare const meta: Meta<typeof SelectExample>;
5
5
  export default meta;
@@ -1,5 +1,5 @@
1
- import { ChopLogicSelectProps } from '../Select';
2
1
  import { default as React } from 'react';
2
+ import { ChopLogicSelectProps } from '../types';
3
3
 
4
4
  declare const Example: React.FC<ChopLogicSelectProps>;
5
5
  export default Example;
@@ -1,4 +1,4 @@
1
- import { SelectValue } from '../Select';
1
+ import { SelectValue } from '../types';
2
2
 
3
3
  type SelectComboboxProps = {
4
4
  isOpened: boolean;
@@ -1,4 +1,4 @@
1
- import { SelectValue } from '../Select';
1
+ import { SelectValue } from '../types';
2
2
 
3
3
  type SelectDropdownProps = {
4
4
  values: SelectValue[];
@@ -1,4 +1,4 @@
1
- import { SelectValue } from '../Select';
1
+ import { SelectValue } from '../types';
2
2
 
3
3
  type SelectOptionProps = {
4
4
  value: SelectValue;
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ export type ChopLogicSelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {
3
+ id: string;
4
+ name: string;
5
+ label: string;
6
+ values: SelectValue[];
7
+ onSelectChange?: (value?: SelectValue) => void;
8
+ placeholder?: string;
9
+ };
10
+ export type SelectValue = {
11
+ id: string;
12
+ label: string;
13
+ };
@@ -1,11 +1,5 @@
1
1
  import { default as React } from 'react';
2
+ import { ChopLogicTextInputProps } from './types';
2
3
 
3
- export type ChopLogicTextInputProps = React.InputHTMLAttributes<HTMLInputElement> & {
4
- id: string;
5
- name: string;
6
- label: string;
7
- valid?: boolean;
8
- errorMessage?: string;
9
- };
10
4
  declare const TextInput: React.FC<ChopLogicTextInputProps>;
11
5
  export default TextInput;
@@ -1,5 +1,5 @@
1
- import { default as TextInputExample } from './TextInputExample';
2
1
  import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as TextInputExample } from './TextInputExample';
3
3
 
4
4
  declare const meta: Meta<typeof TextInputExample>;
5
5
  export default meta;
@@ -1,5 +1,5 @@
1
- import { ChopLogicTextInputProps } from '../TextInput';
2
1
  import { default as React } from 'react';
2
+ import { ChopLogicTextInputProps } from '../types';
3
3
 
4
4
  declare const Example: React.FC<ChopLogicTextInputProps>;
5
5
  export default Example;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export type ChopLogicTextInputProps = React.InputHTMLAttributes<HTMLInputElement> & {
3
+ id: string;
4
+ name: string;
5
+ label: string;
6
+ valid?: boolean;
7
+ errorMessage?: string;
8
+ };
@@ -0,0 +1,4 @@
1
+ import { ChopLogicAlertProps } from './types';
2
+
3
+ declare const ChopLogicAlert: React.FC<ChopLogicAlertProps>;
4
+ export default ChopLogicAlert;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { Meta, StoryObj } from '@storybook/react';
3
+ import { ChopLogicAlertProps } from '../types';
4
+
5
+ declare const ExampleComponent: React.FC<ChopLogicAlertProps>;
6
+ declare const meta: Meta<typeof ExampleComponent>;
7
+ export default meta;
8
+ type Story = StoryObj<typeof ExampleComponent>;
9
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ declare const Example: () => import("react/jsx-runtime").JSX.Element;
2
+ export default Example;
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ import { ChopLogicAlertMode } from '../types';
3
+
4
+ type ChopLogicAlertHeaderProps = {
5
+ onClose: () => void;
6
+ title?: string;
7
+ mode: ChopLogicAlertMode;
8
+ };
9
+ declare const ChopLogicAlertHeader: React.FC<ChopLogicAlertHeaderProps>;
10
+ export default ChopLogicAlertHeader;
@@ -0,0 +1,4 @@
1
+ import { Icon } from '../../../../../../../../../../src/enums/icon';
2
+ import { ChopLogicAlertMode } from '../types';
3
+
4
+ export declare function getAlertIcon(mode: ChopLogicAlertMode): Icon;
@@ -0,0 +1,3 @@
1
+ import { ChopLogicAlertMode } from '../types';
2
+
3
+ export declare function getAlertTitle(mode: ChopLogicAlertMode, title?: string): string;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export type ChopLogicAlertMode = 'success' | 'error' | 'warning' | 'info' | 'help';
3
+ export type ChopLogicAlertProps = React.HTMLAttributes<HTMLDivElement> & {
4
+ isOpened: boolean;
5
+ onClose: () => void;
6
+ message: string;
7
+ title?: string;
8
+ mode?: ChopLogicAlertMode;
9
+ };
@@ -1,9 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { ChopLogicModalProps } from './types';
2
2
 
3
- export type ChopLogicModalProps = PropsWithChildren & React.HTMLAttributes<HTMLDivElement> & {
4
- isOpened: boolean;
5
- onClose: () => void;
6
- title: string;
7
- };
8
3
  declare const ChopLogicDialog: React.FC<ChopLogicModalProps>;
9
4
  export default ChopLogicDialog;
@@ -1,5 +1,5 @@
1
- import { default as DialogExample } from './DialogExample';
2
1
  import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as DialogExample } from './DialogExample';
3
3
 
4
4
  declare const meta: Meta<typeof DialogExample>;
5
5
  export default meta;
@@ -1,5 +1,5 @@
1
- import { ChopLogicModalProps } from '../Dialog';
2
1
  import { default as React } from 'react';
2
+ import { ChopLogicModalProps } from '../types';
3
3
 
4
4
  declare const Example: React.FC<ChopLogicModalProps>;
5
5
  export default Example;
@@ -0,0 +1,7 @@
1
+ import { PropsWithChildren } from 'react';
2
+
3
+ export type ChopLogicModalProps = PropsWithChildren & React.HTMLAttributes<HTMLDivElement> & {
4
+ isOpened: boolean;
5
+ onClose: () => void;
6
+ title: string;
7
+ };
@@ -1,10 +1,4 @@
1
- import { PropsWithChildren } from 'react';
1
+ import { ChopLogicTooltipProps } from './types';
2
2
 
3
- export type ChopLogicTooltipProps = PropsWithChildren & React.HTMLAttributes<HTMLElement> & {
4
- tooltipContent: string | React.ReactElement;
5
- id: string;
6
- containerTag?: 'span' | 'div' | 'p' | 'strong' | 'em';
7
- visibleOn?: 'hover' | 'click' | 'focus' | 'contextmenu';
8
- };
9
3
  declare const ChopLogicTooltip: React.FC<ChopLogicTooltipProps>;
10
4
  export default ChopLogicTooltip;
@@ -1,5 +1,5 @@
1
- import { default as TooltipExample } from './TooltipExample';
2
1
  import { Meta, StoryObj } from '@storybook/react';
2
+ import { default as TooltipExample } from './TooltipExample';
3
3
 
4
4
  declare const meta: Meta<typeof TooltipExample>;
5
5
  export default meta;
@@ -1,5 +1,5 @@
1
- import { ChopLogicTooltipProps } from '../Tooltip';
2
1
  import { default as React } from 'react';
2
+ import { ChopLogicTooltipProps } from '../types';
3
3
 
4
4
  declare const TooltipExample: React.FC<ChopLogicTooltipProps>;
5
5
  export default TooltipExample;
@@ -0,0 +1,8 @@
1
+ import { PropsWithChildren } from 'react';
2
+
3
+ export type ChopLogicTooltipProps = PropsWithChildren & React.HTMLAttributes<HTMLElement> & {
4
+ tooltipContent: string | React.ReactElement;
5
+ id: string;
6
+ containerTag?: 'span' | 'div' | 'p' | 'strong' | 'em';
7
+ visibleOn?: 'hover' | 'click' | 'focus' | 'contextmenu';
8
+ };
@@ -43,5 +43,10 @@ export declare enum Icon {
43
43
  Paste = "cl-icon__paste",
44
44
  Cut = "cl-icon__scissors",
45
45
  Reset = "cl-icon__trash",
46
- Clear = "cl-icon__cross"
46
+ Clear = "cl-icon__cross",
47
+ Support = "cl-icon__support",
48
+ Bomb = "cl-icon__bomb",
49
+ Quill = "cl-icon__quill",
50
+ Warning = "cl-icon__warning",
51
+ Notification = "cl-icon__notification"
47
52
  }
@@ -1,7 +1,7 @@
1
- export { useMount } from './use-mount';
2
1
  export { useClickOutside } from './use-click-outside';
3
- export { useModalFocusTrap } from './use-modal-focus-trap';
4
- export { useKeyPress } from './use-key-press';
5
2
  export { useContainerDimensions } from './use-container-dimensions';
6
- export { useWindowDimensions } from './use-window-dimensions';
3
+ export { useKeyPress } from './use-key-press';
4
+ export { useModalFocusTrap } from './use-modal-focus-trap';
5
+ export { useMount } from './use-mount';
7
6
  export { useTooltipPosition } from './use-tooltip-position';
7
+ export { useWindowDimensions } from './use-window-dimensions';
@@ -1,5 +1,5 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
1
  import { default as React } from 'react';
2
+ import { Meta, StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const ExampleComponent: React.FC;
5
5
  declare const meta: Meta<typeof ExampleComponent>;
@@ -1,5 +1,5 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
1
  import { default as React } from 'react';
2
+ import { Meta, StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const ExampleComponent: React.FC;
5
5
  declare const meta: Meta<typeof ExampleComponent>;
@@ -1,5 +1,5 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
1
  import { default as React } from 'react';
2
+ import { Meta, StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const ExampleComponent: React.FC;
5
5
  declare const meta: Meta<typeof ExampleComponent>;
@@ -1,5 +1,5 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
1
  import { default as React } from 'react';
2
+ import { Meta, StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const ExampleModal: React.FC;
5
5
  declare const meta: Meta<typeof ExampleModal>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  type ModalFocusTrapParams = {
2
3
  modalRef: React.RefObject<HTMLDivElement>;
3
4
  isOpened: boolean;
@@ -1,5 +1,5 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
1
  import { default as React } from 'react';
2
+ import { Meta, StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const ExampleComponent: React.FC;
5
5
  declare const meta: Meta<typeof ExampleComponent>;
@@ -1,5 +1,5 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
1
  import { default as React } from 'react';
2
+ import { Meta, StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const ExampleComponent: React.FC;
5
5
  declare const meta: Meta<typeof ExampleComponent>;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  type useTooltipPositionParams = {
2
3
  wrapperRef: React.RefObject<HTMLSpanElement | HTMLDivElement>;
3
4
  tooltipRef: React.RefObject<HTMLSpanElement | HTMLDivElement>;
@@ -1,5 +1,5 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
1
  import { default as React } from 'react';
2
+ import { Meta, StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const ExampleComponent: React.FC;
5
5
  declare const meta: Meta<typeof ExampleComponent>;