Skip to content

Commit

Permalink
Fix for import issue in Icon component (#772)
Browse files Browse the repository at this point in the history
* Fix import issue for Icon component

* v1.0.0-beta.7-rc.1
  • Loading branch information
VadymBezpalko authored Sep 12, 2023
1 parent abf2c25 commit b31394d
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"packages": [
"packages/*"
],
"version": "1.0.0-beta.6",
"version": "1.0.0-beta.7-rc.1",
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/react-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@livechat/design-system-react-components",
"version": "1.0.0-beta.6",
"version": "1.0.0-beta.7-rc.1",
"description": "",
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/react-components/src/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import * as React from 'react';

import cx from 'clsx';

import { IconSource } from './types';

import styles from './Icon.module.scss';

export type IconSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
Expand Down Expand Up @@ -45,8 +47,6 @@ const IconSizeMap: Record<IconSize, { width: number; height: number }> = {
},
};

export type IconSource = React.FC<React.SVGProps<SVGSVGElement>> &
React.ReactElement;
export interface IconProps {
/**
* Specify the source of svg element
Expand Down
1 change: 1 addition & 0 deletions packages/react-components/src/components/Icon/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './Icon';
export type { IconSource } from './types';
4 changes: 4 additions & 0 deletions packages/react-components/src/components/Icon/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import * as React from 'react';

export type IconSource = React.FC<React.SVGProps<SVGSVGElement>> &
React.ReactElement;
2 changes: 1 addition & 1 deletion packages/react-components/src/components/Picker/types.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';

import { IconSource } from 'components/Icon';
import { IconSource } from '../Icon';

export interface IPickerListItem {
key: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ import * as React from 'react';

import { ComponentMeta } from '@storybook/react';

import { ProgressStatus } from 'components/Progress/constants';

import noop from '../../utils/noop';
import { PdfIcon } from '../../utils/PdfIcon';
import { Button } from '../Button';
import { FileUploadProgress } from '../FileUploadProgress';
import { ProgressStatus } from '../Progress/constants';

import { UploadBar as UploadBarComponent } from './UploadBar';

Expand Down

0 comments on commit b31394d

Please sign in to comment.