Skip to content

Commit

Permalink
Upgrade and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ganapativs committed Jul 6, 2021
1 parent 0d2c505 commit d2a9442
Show file tree
Hide file tree
Showing 12 changed files with 2,076 additions and 2,370 deletions.
6 changes: 3 additions & 3 deletions dist/DrawLine.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as React from 'react';
import { RenderWord } from './Spectrum';
import { RenderWordProps } from './Spectrum';
interface DrawLineProps {
width: number;
colors: Array<string>;
Expand All @@ -9,7 +9,7 @@ interface DrawLineProps {
wordHeight: number;
wordRadius: number;
lineDistance: number;
renderWord: RenderWord;
renderWord: React.FC<RenderWordProps>;
}
declare const _default: React.MemoExoticComponent<({ width, colors, wordWidths, wordDistances, wordHeight, wordRadius, lineDistance, truncate, renderWord, }: DrawLineProps) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>>;
declare const _default: React.MemoExoticComponent<({ width, colors, wordWidths, wordDistances, wordHeight, wordRadius, lineDistance, truncate, renderWord, }: DrawLineProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>>;
export default _default;
9 changes: 4 additions & 5 deletions dist/Spectrum.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import * as React from 'react';
declare type RenderWordProps = {
export interface RenderWordProps {
key: number;
style: React.CSSProperties;
};
export declare type RenderWord = ({ key, style, }: RenderWordProps) => React.ReactElement;
}
declare type SpectrumProps = {
/**
* Width of the placeholder container
Expand Down Expand Up @@ -53,7 +52,7 @@ declare type SpectrumProps = {
/**
* Render word with customizations
*/
renderWord?: RenderWord;
renderWord?: React.FC<RenderWordProps>;
};
declare const _default: React.MemoExoticComponent<({ width, colors, wordWidths, wordDistances, wordHeight, wordRadius, linesPerParagraph, lineDistance, paragraphs, paragraphDistance, truncateLastLine, renderWord, }: SpectrumProps) => React.ReactElement<any, string | ((props: any) => React.ReactElement<any, string | any | (new (props: any) => React.Component<any, any, any>)> | null) | (new (props: any) => React.Component<any, any, any>)>>;
declare const _default: React.MemoExoticComponent<({ width, colors, wordWidths, wordDistances, wordHeight, wordRadius, linesPerParagraph, lineDistance, paragraphs, paragraphDistance, truncateLastLine, renderWord, }: SpectrumProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>>;
export default _default;
46 changes: 24 additions & 22 deletions dist/react-spectrum.es.js

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

2 changes: 1 addition & 1 deletion dist/react-spectrum.es.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/react-spectrum.js

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

2 changes: 1 addition & 1 deletion dist/react-spectrum.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit d2a9442

Please sign in to comment.