Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Types in CalendarPassThroughOptions #6676

Merged
merged 4 commits into from
May 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading