Skip to content

Commit d2a9442

Browse files
committed
Upgrade and publish
1 parent 0d2c505 commit d2a9442

12 files changed

+2076
-2370
lines changed

dist/DrawLine.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from 'react';
2-
import { RenderWord } from './Spectrum';
2+
import { RenderWordProps } from './Spectrum';
33
interface DrawLineProps {
44
width: number;
55
colors: Array<string>;
@@ -9,7 +9,7 @@ interface DrawLineProps {
99
wordHeight: number;
1010
wordRadius: number;
1111
lineDistance: number;
12-
renderWord: RenderWord;
12+
renderWord: React.FC<RenderWordProps>;
1313
}
14-
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>)>>;
14+
declare const _default: React.MemoExoticComponent<({ width, colors, wordWidths, wordDistances, wordHeight, wordRadius, lineDistance, truncate, renderWord, }: DrawLineProps) => React.ReactElement<any, string | React.JSXElementConstructor<any>>>;
1515
export default _default;

dist/Spectrum.d.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import * as React from 'react';
2-
declare type RenderWordProps = {
2+
export interface RenderWordProps {
33
key: number;
44
style: React.CSSProperties;
5-
};
6-
export declare type RenderWord = ({ key, style, }: RenderWordProps) => React.ReactElement;
5+
}
76
declare type SpectrumProps = {
87
/**
98
* Width of the placeholder container
@@ -53,7 +52,7 @@ declare type SpectrumProps = {
5352
/**
5453
* Render word with customizations
5554
*/
56-
renderWord?: RenderWord;
55+
renderWord?: React.FC<RenderWordProps>;
5756
};
58-
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>)>>;
57+
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>>>;
5958
export default _default;

dist/react-spectrum.es.js

Lines changed: 24 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-spectrum.es.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-spectrum.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/react-spectrum.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)