diff --git a/components/lib/api/api.d.ts b/components/lib/api/api.d.ts index 34a4531797..5bf989b090 100644 --- a/components/lib/api/api.d.ts +++ b/components/lib/api/api.d.ts @@ -68,6 +68,7 @@ import { ProgressBarPassThroughOptions } from '../progressbar/progressbar'; import { ProgressSpinnerPassThroughOptions } from '../progressspinner/progressspinner'; import { RadioButtonPassThroughOptions } from '../radiobutton/radiobutton'; import { RatingPassThroughOptions } from '../rating/rating'; +import { RipplePassThroughOptions } from '../ripple/ripple'; import { RowPassThroughOptions } from '../row/row'; import { ScrollPanelPassThroughOptions } from '../scrollpanel/scrollpanel'; import { ScrollTopPassThroughOptions } from '../scrolltop/scrolltop'; @@ -546,6 +547,10 @@ export interface PrimeReactPTOptions { * Custom passthrough(pt) options for Rating. */ rating?: RatingPassThroughOptions; + /** + * Custom passthrough(pt) options for Ripple. + */ + ripple?: RipplePassThroughOptions; /** * Custom passthrough(pt) options for Row. */ diff --git a/components/lib/ripple/ripple.d.ts b/components/lib/ripple/ripple.d.ts index 312af1234b..fddddfdd79 100644 --- a/components/lib/ripple/ripple.d.ts +++ b/components/lib/ripple/ripple.d.ts @@ -8,6 +8,28 @@ * */ import * as React from 'react'; +import { PassThroughOptions } from '../passthrough'; +import { PassThroughType } from '../utils'; + +export declare type RipplePassThroughType = PassThroughType; + +/** + * Custom passthrough(pt) option method. + */ +export interface RipplePassThroughMethodOptions { + props: RippleProps; +} + +/** + * Custom passthrough(pt) options. + * @see {@link RippleProps.pt} + */ +export interface RipplePassThroughOptions { + /** + * Uses to pass attributes to the root's DOM element. + */ + root?: RipplePassThroughType>; +} /** * Defines valid properties in Ripple component. @@ -24,6 +46,16 @@ export interface RippleProps { * @defaultValue false */ unstyled?: boolean; + /** + * Uses to pass attributes to DOM elements inside the component. + * @type {RipplePassThroughOptions} + */ + pt?: RipplePassThroughOptions; + /** + * Used to configure passthrough(pt) options of the component. + * @type {PassThroughOptions} + */ + ptOptions?: PassThroughOptions; } /** diff --git a/components/lib/virtualscroller/virtualscroller.d.ts b/components/lib/virtualscroller/virtualscroller.d.ts index 613b574dba..7e73f0cea0 100644 --- a/components/lib/virtualscroller/virtualscroller.d.ts +++ b/components/lib/virtualscroller/virtualscroller.d.ts @@ -514,17 +514,17 @@ export declare class VirtualScroller extends React.Component