chop-logic-components 0.7.0 → 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 (43) hide show
  1. package/dist/__mocks__/select-values.d.ts +1 -1
  2. package/dist/components/controls/button/Button.d.ts +1 -1
  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 -1
  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 +1 -0
  10. package/dist/components/inputs/multi-select/__docs__/MultiSelect.stories.d.ts +1 -1
  11. package/dist/components/inputs/multi-select/__docs__/MultiSelectExample.d.ts +1 -1
  12. package/dist/components/inputs/multi-select/types.d.ts +1 -0
  13. package/dist/components/inputs/select/__docs__/Select.stories.d.ts +1 -1
  14. package/dist/components/inputs/select/__docs__/SelectExample.d.ts +1 -1
  15. package/dist/components/inputs/select/types.d.ts +1 -0
  16. package/dist/components/inputs/text/TextInput.d.ts +1 -1
  17. package/dist/components/inputs/text/__docs__/TextInput.stories.d.ts +1 -1
  18. package/dist/components/inputs/text/__docs__/TextInputExample.d.ts +1 -1
  19. package/dist/components/inputs/text/types.d.ts +1 -0
  20. package/dist/components/modals/alert/__docs__/Alert.stories.d.ts +2 -2
  21. package/dist/components/modals/alert/elements/Header.d.ts +1 -1
  22. package/dist/components/modals/alert/helpers/get-alert-icon.d.ts +1 -1
  23. package/dist/components/modals/alert/types.d.ts +1 -0
  24. package/dist/components/modals/dialog/__docs__/Dialog.stories.d.ts +1 -1
  25. package/dist/components/modals/dialog/__docs__/DialogExample.d.ts +1 -1
  26. package/dist/components/modals/tooltip/__docs__/Tooltip.stories.d.ts +1 -1
  27. package/dist/components/modals/tooltip/__docs__/TooltipExample.d.ts +1 -1
  28. package/dist/hooks/index.d.ts +4 -4
  29. package/dist/hooks/use-click-outside/__docs__/useClickOutside.stories.d.ts +1 -1
  30. package/dist/hooks/use-container-dimensions/__docs__/useContainerDimensions.stories.d.ts +1 -1
  31. package/dist/hooks/use-key-press/__docs__/useKeyPress.stories.d.ts +1 -1
  32. package/dist/hooks/use-modal-focus-trap/__docs__/useModalFocusTrap.stories.d.ts +1 -1
  33. package/dist/hooks/use-modal-focus-trap/index.d.ts +1 -0
  34. package/dist/hooks/use-mount/__docs__/useMount.stories.d.ts +1 -1
  35. package/dist/hooks/use-tooltip-position/__docs__/useTooltipPosition.stories.d.ts +1 -1
  36. package/dist/hooks/use-tooltip-position/index.d.ts +1 -0
  37. package/dist/hooks/use-window-dimensions/__docs__/useWindowDimensions.stories.d.ts +1 -1
  38. package/dist/index.cjs.js +122 -60
  39. package/dist/index.cjs.js.map +1 -1
  40. package/dist/index.es.js +11173 -10023
  41. package/dist/index.es.js.map +1 -1
  42. package/dist/style.css +1 -1
  43. package/package.json +12 -10
@@ -1,5 +1,5 @@
1
- import { SelectValue } from '../../../../../../../src/components/inputs/select/types';
2
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
4
  declare const ChopLogicButton: React.FC<ChopLogicButtonProps>;
5
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,5 +1,5 @@
1
- import { ChopLogicCheckboxProps } from './types';
2
1
  import { default as React } from 'react';
2
+ import { ChopLogicCheckboxProps } from './types';
3
3
 
4
4
  declare const ChopLogicCheckbox: React.FC<ChopLogicCheckboxProps>;
5
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 '../types';
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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type ChopLogicCheckboxProps = React.InputHTMLAttributes<HTMLInputElement> & {
2
3
  id: string;
3
4
  name: string;
@@ -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 '../types';
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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type MultiSelectValue = {
2
3
  id: string;
3
4
  label: string;
@@ -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 '../types';
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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type ChopLogicSelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {
2
3
  id: string;
3
4
  name: string;
@@ -1,5 +1,5 @@
1
- import { ChopLogicTextInputProps } from './types';
2
1
  import { default as React } from 'react';
2
+ import { ChopLogicTextInputProps } from './types';
3
3
 
4
4
  declare const TextInput: React.FC<ChopLogicTextInputProps>;
5
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 '../types';
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;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type ChopLogicTextInputProps = React.InputHTMLAttributes<HTMLInputElement> & {
2
3
  id: string;
3
4
  name: string;
@@ -1,6 +1,6 @@
1
- import { ChopLogicAlertProps } from '../types';
2
- import { Meta, StoryObj } from '@storybook/react';
3
1
  import { default as React } from 'react';
2
+ import { Meta, StoryObj } from '@storybook/react';
3
+ import { ChopLogicAlertProps } from '../types';
4
4
 
5
5
  declare const ExampleComponent: React.FC<ChopLogicAlertProps>;
6
6
  declare const meta: Meta<typeof ExampleComponent>;
@@ -1,5 +1,5 @@
1
- import { ChopLogicAlertMode } from '../types';
2
1
  import { default as React } from 'react';
2
+ import { ChopLogicAlertMode } from '../types';
3
3
 
4
4
  type ChopLogicAlertHeaderProps = {
5
5
  onClose: () => void;
@@ -1,4 +1,4 @@
1
- import { ChopLogicAlertMode } from '../types';
2
1
  import { Icon } from '../../../../../../../../../../src/enums/icon';
2
+ import { ChopLogicAlertMode } from '../types';
3
3
 
4
4
  export declare function getAlertIcon(mode: ChopLogicAlertMode): Icon;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export type ChopLogicAlertMode = 'success' | 'error' | 'warning' | 'info' | 'help';
2
3
  export type ChopLogicAlertProps = React.HTMLAttributes<HTMLDivElement> & {
3
4
  isOpened: boolean;
@@ -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 '../types';
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;
@@ -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 '../types';
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;
@@ -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>;