Skip to content

Commit

Permalink
chore: rename utils in kebad-case
Browse files Browse the repository at this point in the history
  • Loading branch information
NikitaCG committed Oct 24, 2023
1 parent 8826c80 commit 17553c7
Show file tree
Hide file tree
Showing 16 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/components/Button/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import type {DOMProps, QAProps} from '../types';
import {block} from '../utils/cn';
import {isIcon} from '../utils/common';
import {eventBroker} from '../utils/eventBroker';
import {eventBroker} from '../utils/event-broker';
import {isOfType} from '../utils/isOfType';

import {ButtonIcon} from './ButtonIcon';
Expand Down
2 changes: 1 addition & 1 deletion src/components/Link/Link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';

import type {DOMProps, QAProps} from '../types';
import {block} from '../utils/cn';
import {eventBroker} from '../utils/eventBroker';
import {eventBroker} from '../utils/event-broker';

import './Link.scss';

Expand Down
2 changes: 1 addition & 1 deletion src/components/List/components/ListItem.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';

import {block} from '../../utils/cn';
import {eventBroker} from '../../utils/eventBroker';
import {eventBroker} from '../../utils/event-broker';
import {ListQa} from '../constants';
import type {ListItemProps} from '../types';

Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu/MenuItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import {useActionHandlers} from '../../hooks';
import type {DOMProps, QAProps} from '../types';
import {block} from '../utils/cn';
import {eventBroker} from '../utils/eventBroker';
import {eventBroker} from '../utils/event-broker';

const b = block('menu');

Expand Down
4 changes: 2 additions & 2 deletions src/components/Modal/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {Portal} from '../Portal';
import type {DOMProps, QAProps} from '../types';
import {FocusTrap} from '../utils/FocusTrap';
import {block} from '../utils/cn';
import type {LayerCloseReason, LayerExtendableProps} from '../utils/layerManager';
import {useLayer} from '../utils/layerManager';
import type {LayerCloseReason, LayerExtendableProps} from '../utils/layer-manager';
import {useLayer} from '../utils/layer-manager';
import {getCSSTransitionClassNames} from '../utils/transition';
import {useRestoreFocus} from '../utils/useRestoreFocus';

Expand Down
4 changes: 2 additions & 2 deletions src/components/Popup/Popup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {Portal} from '../Portal';
import type {DOMProps, QAProps} from '../types';
import {FocusTrap, useParentFocusTrap} from '../utils/FocusTrap';
import {block} from '../utils/cn';
import {useLayer} from '../utils/layerManager';
import type {LayerExtendableProps} from '../utils/layerManager';
import {useLayer} from '../utils/layer-manager';
import type {LayerExtendableProps} from '../utils/layer-manager';
import {getCSSTransitionClassNames} from '../utils/transition';
import {usePopper} from '../utils/usePopper';
import type {PopperAnchorRef, PopperPlacement, PopperProps} from '../utils/usePopper';
Expand Down
4 changes: 2 additions & 2 deletions src/components/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ export * from './controls';
export * from './layout';

export * from './utils/class-transform';
export * from './utils/eventBroker';
export * from './utils/event-broker';
export {getComponentName} from './utils/getComponentName';
export * from './utils/withEventBrokerDomHandlers';
export * from './utils/layerManager';
export * from './utils/layer-manager';
export {Lang, configure} from './utils/configure';
export {useOnFocusOutside} from './utils/useOnFocusOutside';
export * from './utils/interactions';
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type {VirtualElement} from '@popperjs/core';

import {KeyCode} from '../../../constants';
import {eventBroker} from '../eventBroker';
import {eventBroker} from '../event-broker';

export type LayerCloseReason = 'outsideClick' | 'escapeKeyDown';

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/components/utils/useCheckbox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import {useForkRef} from '../../hooks';
import type {ControlProps} from '../types';

import {eventBroker} from './eventBroker';
import {eventBroker} from './event-broker';

export function useCheckbox({
name,
Expand Down
2 changes: 1 addition & 1 deletion src/components/utils/useRadio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
import {useForkRef, useUniqId} from '../../hooks';
import type {ControlProps} from '../types';

import {eventBroker} from './eventBroker';
import {eventBroker} from './event-broker';

export function useRadio({
name,
Expand Down
4 changes: 2 additions & 2 deletions src/components/utils/withEventBrokerDomHandlers.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';

import type {EventBrokerData} from './eventBroker';
import {eventBroker} from './eventBroker';
import type {EventBrokerData} from './event-broker';
import {eventBroker} from './event-broker';
import {getComponentName} from './getComponentName';

type SupportedEvents = 'onClick' | 'onClickCapture';
Expand Down

0 comments on commit 17553c7

Please sign in to comment.