Skip to content

Commit

Permalink
fix: Types in CalendarPassThroughOptions (#6676)
Browse files Browse the repository at this point in the history
* fix: Error in type definition

* fix: Types in CalendarPassThroughOptions
  • Loading branch information
ivanpajon committed May 26, 2024
1 parent 0c3196e commit 1564bf4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
8 changes: 4 additions & 4 deletions components/doc/common/apidoc/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -7120,14 +7120,14 @@
"name": "input",
"optional": true,
"readonly": false,
"type": "InputTextPassThroughOptions",
"type": "CalendarPassThroughType<HTMLAttributes<HTMLInputElement>>",
"description": "Uses to pass attributes to the InputText component."
},
{
"name": "dropdownButton",
"optional": true,
"readonly": false,
"type": "ButtonPassThroughOptions",
"type": "CalendarPassThroughType<HTMLAttributes<HTMLButtonElement>>",
"description": "Uses to pass attributes to the Button component."
},
{
Expand Down Expand Up @@ -7463,14 +7463,14 @@
"name": "todayButton",
"optional": true,
"readonly": false,
"type": "ButtonPassThroughOptions",
"type": "CalendarPassThroughType<HTMLAttributes<HTMLButtonElement>>",
"description": "Uses to pass attributes to the Button component."
},
{
"name": "clearButton",
"optional": true,
"readonly": false,
"type": "ButtonPassThroughOptions",
"type": "CalendarPassThroughType<HTMLAttributes<HTMLButtonElement>>",
"description": "Uses to pass attributes to the Button component."
},
{
Expand Down
18 changes: 8 additions & 10 deletions components/lib/calendar/calendar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@
*/
import * as React from 'react';
import { CSSTransitionProps as ReactCSSTransitionProps } from 'react-transition-group/CSSTransition';
import { ButtonPassThroughOptions } from '../button/button';
import { ComponentHooks } from '../componentbase/componentbase';
import { CSSTransitionProps } from '../csstransition';
import { InputTextPassThroughOptions } from '../inputtext/inputtext';
import { PassThroughOptions } from '../passthrough';
import { TooltipOptions } from '../tooltip/tooltipoptions';
import { FormEvent, Nullable } from '../ts-helpers';
Expand Down Expand Up @@ -41,14 +39,14 @@ export interface CalendarPassThroughOptions {
root?: CalendarPassThroughType<React.HTMLAttributes<HTMLSpanElement>>;
/**
* Uses to pass attributes to the InputText component.
* @see {@link InputTextPassThroughOptions}
* @see {@link CalendarPassThroughType}
*/
input?: InputTextPassThroughOptions;
input?: CalendarPassThroughType<React.HTMLAttributes<HTMLInputElement>>;
/**
* Uses to pass attributes to the Button component.
* @see {@link ButtonPassThroughOptions}
* @see {@link CalendarPassThroughType}
*/
dropdownButton?: ButtonPassThroughOptions;
dropdownButton?: CalendarPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
/**
* Uses to pass attributes to the panel's DOM element.
*/
Expand Down Expand Up @@ -239,14 +237,14 @@ export interface CalendarPassThroughOptions {
buttonbar?: CalendarPassThroughType<React.HTMLAttributes<HTMLDivElement>>;
/**
* Uses to pass attributes to the Button component.
* @see {@link ButtonPassThroughOptions}
* @see {@link CalendarPassThroughType}
*/
todayButton?: ButtonPassThroughOptions;
todayButton?: CalendarPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
/**
* Uses to pass attributes to the Button component.
* @see {@link ButtonPassThroughOptions}
* @see {@link CalendarPassThroughType}
*/
clearButton?: ButtonPassThroughOptions;
clearButton?: CalendarPassThroughType<React.HTMLAttributes<HTMLButtonElement>>;
/**
* Uses to pass attributes to the select's DOM element.
*/
Expand Down

0 comments on commit 1564bf4

Please sign in to comment.