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 #3440: Change style from object to React.CSSProperties #3441

Merged
merged 1 commit into from
Oct 8, 2022
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
6 changes: 3 additions & 3 deletions components/lib/accordion/accordion.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
6 changes: 3 additions & 3 deletions components/lib/autocomplete/autocomplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export interface AutoCompleteProps extends Omit<React.DetailedHTMLProps<React.In
inputClassName?: string;
inputId?: string;
inputRef?: React.Ref<HTMLInputElement>;
inputStyle?: object;
inputStyle?: React.CSSProperties;
itemTemplate?: AutoCompleteItemTemplateType;
maxLength?: number;
minLength?: number;
Expand All @@ -74,15 +74,15 @@ export interface AutoCompleteProps extends Omit<React.DetailedHTMLProps<React.In
optionGroupLabel?: string;
optionGroupTemplate?: AutoCompleteOptionGroupTemplateType;
panelClassName?: string;
panelStyle?: object;
panelStyle?: React.CSSProperties;
placeholder?: string;
readOnly?: boolean;
removeIcon?: IconType<AutoCompleteProps>;
scrollHeight?: string;
selectedItemTemplate?: AutoCompleteSelectedItemTemplateType;
showEmptyMessage?: boolean;
size?: number;
style?: object;
style?: React.CSSProperties;
suggestions?: any[];
tabIndex?: number;
tooltip?: string;
Expand Down
6 changes: 3 additions & 3 deletions components/lib/calendar/calendar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export interface CalendarProps {
inputClassName?: string;
inputId?: string;
inputRef?: React.Ref<HTMLInputElement>;
inputStyle?: object;
inputStyle?: React.CSSProperties;
keepInvalid?: boolean;
locale?: string;
mask?: string;
Expand All @@ -103,7 +103,7 @@ export interface CalendarProps {
name?: string;
numberOfMonths?: number;
panelClassName?: string;
panelStyle?: object;
panelStyle?: React.CSSProperties;
placeholder?: string;
readOnlyInput?: boolean;
required?: boolean;
Expand All @@ -123,7 +123,7 @@ export interface CalendarProps {
stepMillisec?: number;
stepMinute?: number;
stepSecond?: number;
style?: object;
style?: React.CSSProperties;
tabIndex?: number;
timeOnly?: boolean;
todayButtonClassName?: string;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/cascadeselect/cascadeselect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface CascadeSelectGroupChangeParams extends CascadeSelectChangeParams {}
export interface CascadeSelectProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'onChange' | 'ref'> {
id?: string;
inputRef?: React.Ref<HTMLInputElement>;
style?: object;
style?: React.CSSProperties;
className?: string;
value?: any;
name?: string;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/chart/chart.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export interface ChartProps {
plugins?: any[];
width?: string;
height?: string;
style?: object;
style?: React.CSSProperties;
className?: string;
children?: React.ReactNode;
}
Expand Down
2 changes: 1 addition & 1 deletion components/lib/checkbox/checkbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export interface CheckboxProps extends Omit<React.DetailedHTMLProps<React.InputH
checked?: any;
trueValue?: any;
falseValue?: any;
style?: object;
style?: React.CSSProperties;
className?: string;
disabled?: boolean;
required?: boolean;
Expand Down
12 changes: 6 additions & 6 deletions components/lib/column/column.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export interface ColumnProps {
alignHeader?: ColumnAlignType;
body?: ColumnBodyType;
bodyClassName?: ColumnBodyClassType;
bodyStyle?: object;
bodyStyle?: React.CSSProperties;
cellEditValidatorEvent?: string;
children?: React.ReactNode;
className?: string;
Expand All @@ -207,21 +207,21 @@ export interface ColumnProps {
filterFooter?: ColumnFilterFooterType;
filterHeader?: ColumnFilterHeaderType;
filterHeaderClassName?: string;
filterHeaderStyle?: object;
filterHeaderStyle?: React.CSSProperties;
filterMatchMode?: ColumnFilterMatchModeType;
filterMatchModeOptions?: ColumnFilterMatchModeOptions[];
filterMaxLength?: number;
filterMenuClassName?: string;
filterMenuStyle?: object;
filterMenuStyle?: React.CSSProperties;
filterPlaceholder?: string;
filterType?: string;
footer?: ColumnFooterType;
footerClassName?: string;
footerStyle?: object;
footerStyle?: React.CSSProperties;
frozen?: boolean;
header?: ColumnHeaderType;
headerClassName?: string;
headerStyle?: object;
headerStyle?: React.CSSProperties;
headerTooltip?: string;
headerTooltipOptions?: TooltipOptions;
hidden?: boolean;
Expand All @@ -243,7 +243,7 @@ export interface ColumnProps {
sortField?: string;
sortable?: boolean;
sortableDisabled?: boolean;
style?: object;
style?: React.CSSProperties;
cellEditValidator?(e: ColumnEventParams): boolean;
filterFunction?(value: any, filter: any, filterLocale: string, params: ColumnFilterParams): void;
onBeforeCellEditHide?(e: ColumnEventParams): void;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/confirmpopup/confirmpopup.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export interface ConfirmPopupProps {
rejectClassName?: string;
acceptClassName?: string;
className?: string;
style?: object;
style?: React.CSSProperties;
appendTo?: ConfirmPopupAppendToType;
dismissable?: boolean;
footer?: ConfirmPopupTemplateType;
Expand Down
4 changes: 2 additions & 2 deletions components/lib/datatable/datatable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,10 @@ export interface DataTableProps extends Omit<React.DetailedHTMLProps<React.Input
stateKey?: string;
stateStorage?: DataTableStateStorageType;
stripedRows?: boolean;
style?: object;
style?: React.CSSProperties;
tabIndex?: number;
tableClassName?: string;
tableStyle?: object;
tableStyle?: React.CSSProperties;
totalRecords?: number;
virtualScrollerOptions?: VirtualScrollerProps;
cellClassName?(value: any, options: DataTableCellClassNameOptions): object | string;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/dataview/dataview.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface DataViewLayoutOptionsChangeParams {
export interface DataViewLayoutOptionsProps {
id?: string;
layout?: DataViewLayoutType;
style?: object;
style?: React.CSSProperties;
className?: string;
onChange(e: DataViewLayoutOptionsChangeParams): void;
children?: React.ReactNode;
Expand Down
8 changes: 4 additions & 4 deletions components/lib/dialog/dialog.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ export interface DialogProps {
closable?: boolean;
closeOnEscape?: boolean;
contentClassName?: string;
contentStyle?: object;
contentStyle?: React.CSSProperties;
dismissableMask?: boolean;
draggable?: boolean;
focusOnShow?: boolean;
footer?: DialogTemplateType;
header?: DialogTemplateType;
headerClassName?: string;
headerStyle?: object;
headerStyle?: React.CSSProperties;
icons?: DialogTemplateType;
id?: string;
keepInViewport?: boolean;
maskClassName?: string;
maskStyle?: object;
maskStyle?: React.CSSProperties;
maximizable?: boolean;
maximized?: boolean;
minX?: number;
Expand All @@ -49,7 +49,7 @@ export interface DialogProps {
resizable?: boolean;
rtl?: boolean;
showHeader?: boolean;
style?: object;
style?: React.CSSProperties;
transitionOptions?: CSSTransitionProps;
visible?: boolean;
onClick?(e: React.MouseEvent<HTMLElement>): void;
Expand Down
4 changes: 2 additions & 2 deletions components/lib/dropdown/dropdown.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface DropdownProps extends Omit<React.DetailedHTMLProps<React.InputH
valueTemplate?: DropdownValueTemplateType;
filterTemplate?: DropdownFilterTemplateType;
itemTemplate?: DropdownItemTemplateType;
style?: object;
style?: React.CSSProperties;
className?: string;
virtualScrollerOptions?: VirtualScrollerProps;
scrollHeight?: string;
Expand All @@ -81,7 +81,7 @@ export interface DropdownProps extends Omit<React.DetailedHTMLProps<React.InputH
resetFilterOnHide?: boolean;
showFilterClear?: boolean;
panelClassName?: string;
panelStyle?: object;
panelStyle?: React.CSSProperties;
dataKey?: string;
inputId?: string;
showClear?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/editor/editor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ interface EditorSelectionChangeParams {
export interface EditorProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
id?: string;
value?: string;
style?: object;
style?: React.CSSProperties;
className?: string;
placeholder?: string;
readOnly?: boolean;
Expand Down
8 changes: 4 additions & 4 deletions components/lib/fileupload/fileupload.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ interface FileUploadOptionsType {
icon?: IconType<FileUploadProps>;
iconOnly?: boolean;
className?: string;
style?: object;
style?: React.CSSProperties;
}

interface FileUploadHeaderTemplateOptions {
Expand Down Expand Up @@ -93,7 +93,7 @@ interface FileUploadProps {
maxFileSize?: number;
invalidFileSizeMessageSummary?: string;
invalidFileSizeMessageDetail?: string;
style?: object;
style?: React.CSSProperties;
className?: string;
withCredentials?: boolean;
previewWidth?: number;
Expand All @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/inputnumber/inputnumber.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export interface InputNumberProps extends Omit<React.DetailedHTMLProps<React.HTM
size?: number;
inputId?: string;
autoFocus?: boolean;
inputStyle?: object;
inputStyle?: React.CSSProperties;
inputClassName?: string;
tooltip?: string;
tooltipOptions?: TooltipOptions;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/inputswitch/inputswitch.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface InputSwitchChangeParams {
export interface InputSwitchProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'onChange' | 'ref'> {
id?: string;
inputRef?: React.Ref<HTMLInputElement>;
style?: object;
style?: React.CSSProperties;
className?: string;
inputId?: string;
name?: string;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/knob/knob.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface KnobChangeParams {

export interface KnobProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'onChange' | 'ref'> {
id?: string;
style?: object;
style?: React.CSSProperties;
className?: string;
value?: number;
size?: number;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/listbox/listbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface ListBoxProps extends Omit<React.DetailedHTMLProps<React.InputHT
optionGroupTemplate?: ListBoxOptionGroupTemplateType;
itemTemplate?: ListBoxItemTemplateType;
filterTemplate?: ListBoxFilterTemplateType;
listStyle?: object;
listStyle?: React.CSSProperties;
listClassName?: string;
virtualScrollerOptions?: VirtualScrollerProps;
disabled?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions components/lib/mention/mention.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ export interface MentionProps extends Omit<React.DetailedHTMLProps<React.Textare
inputClassName?: string;
inputId?: string;
inputRef?: React.Ref<HTMLInputElement>;
inputStyle?: object;
inputStyle?: React.CSSProperties;
itemTemplate?: MentionItemTemplateType;
panelClassName?: string;
panelStyle?: object;
panelStyle?: React.CSSProperties;
scrollHeight?: string;
suggestions?: any[];
transitionOptions?: CSSTransitionProps;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/menuitem/menuitem.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions components/lib/multiselect/multiselect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ export interface MultiSelectProps extends Omit<React.DetailedHTMLProps<React.Inp
optionGroupChildren?: string;
optionGroupTemplate?: MultiSelectOptionGroupTemplateType;
display?: MultiSelectDisplayType;
style?: object;
style?: React.CSSProperties;
className?: string;
panelClassName?: string;
panelStyle?: object;
panelStyle?: React.CSSProperties;
virtualScrollerOptions?: VirtualScrollerProps;
scrollHeight?: string;
placeholder?: string;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/multistatecheckbox/multistatecheckbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type MultiStateCheckboxIconTemplateType = React.ReactNode | ((options: MultiStat

interface MultiStateCheckboxOption {
icon: IconType<MultiStateCheckboxProps>;
style: object;
style: React.CSSProperties;
className: string;
[key: string]: any;
}
Expand Down
2 changes: 1 addition & 1 deletion components/lib/orderlist/orderlist.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface OrderListFilterOptions {
export interface OrderListProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'onChange' | 'ref'> {
value?: any[];
header?: React.ReactNode;
listStyle?: object;
listStyle?: React.CSSProperties;
dragdrop?: boolean;
dataKey?: string;
filter?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions components/lib/password/password.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type PasswordAppendToType = 'self' | HTMLElement | undefined | null;
export interface PasswordProps extends Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'onInput' | 'ref'> {
inputId?: string;
inputRef?: React.Ref<HTMLInputElement>;
inputStyle?: object;
inputStyle?: React.CSSProperties;
inputClassName?: string;
promptLabel?: string;
weakLabel?: string;
Expand All @@ -42,7 +42,7 @@ export interface PasswordProps extends Omit<React.DetailedHTMLProps<React.InputH
tooltip?: string;
tooltipOptions?: TooltipOptions;
keyfilter?: KeyFilterType;
panelStyle?: object;
panelStyle?: React.CSSProperties;
panelClassName?: string;
transitionOptions?: CSSTransitionProps;
onInput?(event: React.FormEvent<HTMLInputElement>, validatePattern: boolean): void;
Expand Down
6 changes: 3 additions & 3 deletions components/lib/picklist/picklist.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion components/lib/row/row.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';

export interface RowProps {
style?: object;
style?: React.CSSProperties;
className?: string;
children?: React.ReactNode;
}
Expand Down
Loading