From 1564bf4a81cd4369dfa257feb33c054b895f1ee1 Mon Sep 17 00:00:00 2001 From: Ivan Date: Sun, 26 May 2024 17:27:27 +0200 Subject: [PATCH] fix: Types in CalendarPassThroughOptions (#6676) * fix: Error in type definition * fix: Types in CalendarPassThroughOptions --- components/doc/common/apidoc/index.json | 8 ++++---- components/lib/calendar/calendar.d.ts | 18 ++++++++---------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/components/doc/common/apidoc/index.json b/components/doc/common/apidoc/index.json index 89de0d3f1c..1de4a3fb2f 100644 --- a/components/doc/common/apidoc/index.json +++ b/components/doc/common/apidoc/index.json @@ -7120,14 +7120,14 @@ "name": "input", "optional": true, "readonly": false, - "type": "InputTextPassThroughOptions", + "type": "CalendarPassThroughType>", "description": "Uses to pass attributes to the InputText component." }, { "name": "dropdownButton", "optional": true, "readonly": false, - "type": "ButtonPassThroughOptions", + "type": "CalendarPassThroughType>", "description": "Uses to pass attributes to the Button component." }, { @@ -7463,14 +7463,14 @@ "name": "todayButton", "optional": true, "readonly": false, - "type": "ButtonPassThroughOptions", + "type": "CalendarPassThroughType>", "description": "Uses to pass attributes to the Button component." }, { "name": "clearButton", "optional": true, "readonly": false, - "type": "ButtonPassThroughOptions", + "type": "CalendarPassThroughType>", "description": "Uses to pass attributes to the Button component." }, { diff --git a/components/lib/calendar/calendar.d.ts b/components/lib/calendar/calendar.d.ts index 278b7fd79d..c86cd60b41 100644 --- a/components/lib/calendar/calendar.d.ts +++ b/components/lib/calendar/calendar.d.ts @@ -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'; @@ -41,14 +39,14 @@ export interface CalendarPassThroughOptions { root?: CalendarPassThroughType>; /** * Uses to pass attributes to the InputText component. - * @see {@link InputTextPassThroughOptions} + * @see {@link CalendarPassThroughType} */ - input?: InputTextPassThroughOptions; + input?: CalendarPassThroughType>; /** * Uses to pass attributes to the Button component. - * @see {@link ButtonPassThroughOptions} + * @see {@link CalendarPassThroughType} */ - dropdownButton?: ButtonPassThroughOptions; + dropdownButton?: CalendarPassThroughType>; /** * Uses to pass attributes to the panel's DOM element. */ @@ -239,14 +237,14 @@ export interface CalendarPassThroughOptions { buttonbar?: CalendarPassThroughType>; /** * Uses to pass attributes to the Button component. - * @see {@link ButtonPassThroughOptions} + * @see {@link CalendarPassThroughType} */ - todayButton?: ButtonPassThroughOptions; + todayButton?: CalendarPassThroughType>; /** * Uses to pass attributes to the Button component. - * @see {@link ButtonPassThroughOptions} + * @see {@link CalendarPassThroughType} */ - clearButton?: ButtonPassThroughOptions; + clearButton?: CalendarPassThroughType>; /** * Uses to pass attributes to the select's DOM element. */