diff --git a/components/lib/accordion/accordion.d.ts b/components/lib/accordion/accordion.d.ts index 2b7d6bf9f1..5679a7566b 100644 --- a/components/lib/accordion/accordion.d.ts +++ b/components/lib/accordion/accordion.d.ts @@ -8,13 +8,13 @@ interface AccordionTabProps { children?: React.ReactNode; className?: string; contentClassName?: string; - contentStyle?: object; + contentStyle?: React.CSSProperties; disabled?: boolean; header?: React.ReactNode; headerClassName?: string; - headerStyle?: object; + headerStyle?: React.CSSProperties; headerTemplate?: AccordionTabHeaderTemplateType; - style?: object; + style?: React.CSSProperties; tabIndex: number; } diff --git a/components/lib/autocomplete/autocomplete.d.ts b/components/lib/autocomplete/autocomplete.d.ts index 084468edec..1185754791 100755 --- a/components/lib/autocomplete/autocomplete.d.ts +++ b/components/lib/autocomplete/autocomplete.d.ts @@ -64,7 +64,7 @@ export interface AutoCompleteProps extends Omit; - inputStyle?: object; + inputStyle?: React.CSSProperties; itemTemplate?: AutoCompleteItemTemplateType; maxLength?: number; minLength?: number; @@ -74,7 +74,7 @@ export interface AutoCompleteProps extends Omit; @@ -82,7 +82,7 @@ export interface AutoCompleteProps extends Omit; - inputStyle?: object; + inputStyle?: React.CSSProperties; keepInvalid?: boolean; locale?: string; mask?: string; @@ -103,7 +103,7 @@ export interface CalendarProps { name?: string; numberOfMonths?: number; panelClassName?: string; - panelStyle?: object; + panelStyle?: React.CSSProperties; placeholder?: string; readOnlyInput?: boolean; required?: boolean; @@ -123,7 +123,7 @@ export interface CalendarProps { stepMillisec?: number; stepMinute?: number; stepSecond?: number; - style?: object; + style?: React.CSSProperties; tabIndex?: number; timeOnly?: boolean; todayButtonClassName?: string; diff --git a/components/lib/cascadeselect/cascadeselect.d.ts b/components/lib/cascadeselect/cascadeselect.d.ts index 198e56499a..e45151c8e1 100644 --- a/components/lib/cascadeselect/cascadeselect.d.ts +++ b/components/lib/cascadeselect/cascadeselect.d.ts @@ -16,7 +16,7 @@ interface CascadeSelectGroupChangeParams extends CascadeSelectChangeParams {} export interface CascadeSelectProps extends Omit, HTMLDivElement>, 'onChange' | 'ref'> { id?: string; inputRef?: React.Ref; - style?: object; + style?: React.CSSProperties; className?: string; value?: any; name?: string; diff --git a/components/lib/chart/chart.d.ts b/components/lib/chart/chart.d.ts index 7328e08a40..dfbc09afa5 100644 --- a/components/lib/chart/chart.d.ts +++ b/components/lib/chart/chart.d.ts @@ -8,7 +8,7 @@ export interface ChartProps { plugins?: any[]; width?: string; height?: string; - style?: object; + style?: React.CSSProperties; className?: string; children?: React.ReactNode; } diff --git a/components/lib/checkbox/checkbox.d.ts b/components/lib/checkbox/checkbox.d.ts index 7761a40bac..ddc26225b6 100644 --- a/components/lib/checkbox/checkbox.d.ts +++ b/components/lib/checkbox/checkbox.d.ts @@ -28,7 +28,7 @@ export interface CheckboxProps extends Omit): void; diff --git a/components/lib/dropdown/dropdown.d.ts b/components/lib/dropdown/dropdown.d.ts index 42f72c1e37..1e02dbee4b 100755 --- a/components/lib/dropdown/dropdown.d.ts +++ b/components/lib/dropdown/dropdown.d.ts @@ -59,7 +59,7 @@ export interface DropdownProps extends Omit, HTMLDivElement>, 'ref'> { id?: string; value?: string; - style?: object; + style?: React.CSSProperties; className?: string; placeholder?: string; readOnly?: boolean; diff --git a/components/lib/fileupload/fileupload.d.ts b/components/lib/fileupload/fileupload.d.ts index f9a4dec3c5..8ef1df03b0 100644 --- a/components/lib/fileupload/fileupload.d.ts +++ b/components/lib/fileupload/fileupload.d.ts @@ -8,7 +8,7 @@ interface FileUploadOptionsType { icon?: IconType; iconOnly?: boolean; className?: string; - style?: object; + style?: React.CSSProperties; } interface FileUploadHeaderTemplateOptions { @@ -93,7 +93,7 @@ interface FileUploadProps { maxFileSize?: number; invalidFileSizeMessageSummary?: string; invalidFileSizeMessageDetail?: string; - style?: object; + style?: React.CSSProperties; className?: string; withCredentials?: boolean; previewWidth?: number; @@ -105,9 +105,9 @@ interface FileUploadProps { cancelOptions?: FileUploadOptionsType; customUpload?: boolean; headerClassName?: string; - headerStyle?: object; + headerStyle?: React.CSSProperties; contentClassName?: string; - contentStyle?: object; + contentStyle?: React.CSSProperties; headerTemplate?: FileUploadHeaderTemplateType; itemTemplate?: FileUploadItemTemplateType; emptyTemplate?: FileUploadEmptyTemplateType; diff --git a/components/lib/inputnumber/inputnumber.d.ts b/components/lib/inputnumber/inputnumber.d.ts index 992f612e19..e2b4dabd73 100644 --- a/components/lib/inputnumber/inputnumber.d.ts +++ b/components/lib/inputnumber/inputnumber.d.ts @@ -56,7 +56,7 @@ export interface InputNumberProps extends Omit, HTMLDivElement>, 'onChange' | 'ref'> { id?: string; inputRef?: React.Ref; - style?: object; + style?: React.CSSProperties; className?: string; inputId?: string; name?: string; diff --git a/components/lib/knob/knob.d.ts b/components/lib/knob/knob.d.ts index e1448de736..235bfbaef0 100644 --- a/components/lib/knob/knob.d.ts +++ b/components/lib/knob/knob.d.ts @@ -6,7 +6,7 @@ interface KnobChangeParams { export interface KnobProps extends Omit, HTMLDivElement>, 'onChange' | 'ref'> { id?: string; - style?: object; + style?: React.CSSProperties; className?: string; value?: number; size?: number; diff --git a/components/lib/listbox/listbox.d.ts b/components/lib/listbox/listbox.d.ts index cd01da36a1..3d467ada7e 100755 --- a/components/lib/listbox/listbox.d.ts +++ b/components/lib/listbox/listbox.d.ts @@ -46,7 +46,7 @@ export interface ListBoxProps extends Omit; - inputStyle?: object; + inputStyle?: React.CSSProperties; itemTemplate?: MentionItemTemplateType; panelClassName?: string; - panelStyle?: object; + panelStyle?: React.CSSProperties; scrollHeight?: string; suggestions?: any[]; transitionOptions?: CSSTransitionProps; diff --git a/components/lib/menuitem/menuitem.d.ts b/components/lib/menuitem/menuitem.d.ts index c7b6fa3a90..3d5cf41c85 100644 --- a/components/lib/menuitem/menuitem.d.ts +++ b/components/lib/menuitem/menuitem.d.ts @@ -27,7 +27,7 @@ export interface MenuItem { visible?: boolean; target?: string; separator?: boolean; - style?: object; + style?: React.CSSProperties; className?: string; command?(e: MenuItemCommandParams): void; template?: MenuItemTemplateType; diff --git a/components/lib/multiselect/multiselect.d.ts b/components/lib/multiselect/multiselect.d.ts index 20101e2ab3..fe7b2f6af7 100755 --- a/components/lib/multiselect/multiselect.d.ts +++ b/components/lib/multiselect/multiselect.d.ts @@ -86,10 +86,10 @@ export interface MultiSelectProps extends Omit; - style: object; + style: React.CSSProperties; className: string; [key: string]: any; } diff --git a/components/lib/orderlist/orderlist.d.ts b/components/lib/orderlist/orderlist.d.ts index 88da039e24..3769a1a429 100755 --- a/components/lib/orderlist/orderlist.d.ts +++ b/components/lib/orderlist/orderlist.d.ts @@ -15,7 +15,7 @@ interface OrderListFilterOptions { export interface OrderListProps extends Omit, HTMLDivElement>, 'onChange' | 'ref'> { value?: any[]; header?: React.ReactNode; - listStyle?: object; + listStyle?: React.CSSProperties; dragdrop?: boolean; dataKey?: string; filter?: boolean; diff --git a/components/lib/password/password.d.ts b/components/lib/password/password.d.ts index abbd132237..346407b854 100644 --- a/components/lib/password/password.d.ts +++ b/components/lib/password/password.d.ts @@ -24,7 +24,7 @@ type PasswordAppendToType = 'self' | HTMLElement | undefined | null; export interface PasswordProps extends Omit, HTMLInputElement>, 'onInput' | 'ref'> { inputId?: string; inputRef?: React.Ref; - inputStyle?: object; + inputStyle?: React.CSSProperties; inputClassName?: string; promptLabel?: string; weakLabel?: string; @@ -42,7 +42,7 @@ export interface PasswordProps extends Omit, validatePattern: boolean): void; diff --git a/components/lib/picklist/picklist.d.ts b/components/lib/picklist/picklist.d.ts index 753234009a..587923b9bb 100755 --- a/components/lib/picklist/picklist.d.ts +++ b/components/lib/picklist/picklist.d.ts @@ -35,10 +35,10 @@ export interface PickListProps { target?: any[]; sourceHeader?: React.ReactNode; targetHeader?: React.ReactNode; - style?: object; + style?: React.CSSProperties; className?: string; - sourceStyle?: object; - targetStyle?: object; + sourceStyle?: React.CSSProperties; + targetStyle?: React.CSSProperties; sourceSelection?: any; targetSelection?: any; showSourceControls?: boolean; diff --git a/components/lib/row/row.d.ts b/components/lib/row/row.d.ts index 1512efc230..6121b91d56 100644 --- a/components/lib/row/row.d.ts +++ b/components/lib/row/row.d.ts @@ -1,7 +1,7 @@ import * as React from 'react'; export interface RowProps { - style?: object; + style?: React.CSSProperties; className?: string; children?: React.ReactNode; } diff --git a/components/lib/scrolltop/scrolltop.d.ts b/components/lib/scrolltop/scrolltop.d.ts index e6f00cfc95..5c4884e7ac 100644 --- a/components/lib/scrolltop/scrolltop.d.ts +++ b/components/lib/scrolltop/scrolltop.d.ts @@ -12,7 +12,7 @@ export interface ScrollTopProps { icon?: IconType; behavior?: ScrollTopScrollBehavior; className?: string; - style?: object; + style?: React.CSSProperties; transitionOptions?: CSSTransitionProps; onShow?(): void; onHide?(): void; diff --git a/components/lib/sidebar/sidebar.d.ts b/components/lib/sidebar/sidebar.d.ts index afb00b8298..fa9a459092 100644 --- a/components/lib/sidebar/sidebar.d.ts +++ b/components/lib/sidebar/sidebar.d.ts @@ -8,7 +8,7 @@ type SidebarTemplateType = React.ReactNode | ((props: SidebarProps) => React.Rea type SidebarAppendToType = 'self' | HTMLElement | undefined | null; export interface SidebarProps extends Omit, HTMLDivElement>, 'ref'> { - maskStyle?: object; + maskStyle?: React.CSSProperties; maskClassName?: string; visible?: boolean; position?: SidebarPositionType; diff --git a/components/lib/speeddial/speeddial.d.ts b/components/lib/speeddial/speeddial.d.ts index 5b62d4a43f..b3fff6babd 100644 --- a/components/lib/speeddial/speeddial.d.ts +++ b/components/lib/speeddial/speeddial.d.ts @@ -27,10 +27,10 @@ export interface SpeedDialProps extends Omit; hideIcon?: IconType; diff --git a/components/lib/splitbutton/splitbutton.d.ts b/components/lib/splitbutton/splitbutton.d.ts index 17c786806f..034feb31a2 100644 --- a/components/lib/splitbutton/splitbutton.d.ts +++ b/components/lib/splitbutton/splitbutton.d.ts @@ -15,7 +15,7 @@ export interface SplitButtonProps extends Omit, HTMLDivElement>, 'ref'> { diff --git a/components/lib/tooltip/tooltipoptions.d.ts b/components/lib/tooltip/tooltipoptions.d.ts index a88d01eabf..994f7bfc72 100644 --- a/components/lib/tooltip/tooltipoptions.d.ts +++ b/components/lib/tooltip/tooltipoptions.d.ts @@ -13,7 +13,7 @@ interface TooltipEventParams { export default interface TooltipOptions { className?: string; - style?: object; + style?: React.CSSProperties; appendTo?: TooltipAppendToType; position?: TooltipPositionType; my?: string; diff --git a/components/lib/tree/tree.d.ts b/components/lib/tree/tree.d.ts index 44ea5fe81c..159a52d5ad 100644 --- a/components/lib/tree/tree.d.ts +++ b/components/lib/tree/tree.d.ts @@ -116,9 +116,9 @@ export interface TreeProps { selectionKeys?: TreeSelectionKeys; contextMenuSelectionKey?: string; expandedKeys?: TreeExpandedKeysType; - style?: object; + style?: React.CSSProperties; className?: string; - contentStyle?: object; + contentStyle?: React.CSSProperties; contentClassName?: string; metaKeySelection?: boolean; propagateSelectionUp?: boolean; diff --git a/components/lib/treenode/treenode.d.ts b/components/lib/treenode/treenode.d.ts index dcf3f63f5c..5857100f0b 100644 --- a/components/lib/treenode/treenode.d.ts +++ b/components/lib/treenode/treenode.d.ts @@ -6,7 +6,7 @@ export default interface TreeNode { data?: any; icon?: IconType; children?: TreeNode[]; - style?: object; + style?: React.CSSProperties; className?: string; droppable?: boolean; draggable?: boolean; diff --git a/components/lib/treeselect/treeselect.d.ts b/components/lib/treeselect/treeselect.d.ts index fc5ac11d44..81aeea0500 100644 --- a/components/lib/treeselect/treeselect.d.ts +++ b/components/lib/treeselect/treeselect.d.ts @@ -91,7 +91,7 @@ export interface TreeSelectProps extends Omit