Skip to content

Commit

Permalink
Fixed #2732 - Attribute 'children' is missing in primereact 8.0.0-rc.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Apr 10, 2022
1 parent de94ab2 commit 43c6d2e
Show file tree
Hide file tree
Showing 95 changed files with 111 additions and 6 deletions.
2 changes: 2 additions & 0 deletions components/lib/accordion/Accordion.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ interface AccordionTabProps {
headerTemplate?: AccordionTabHeaderTemplateType;
contentStyle?: object;
contentClassName?: string;
children?: React.ReactNode;
}

export declare class AccordionTab extends React.Component<AccordionTabProps, any> { }
Expand All @@ -37,6 +38,7 @@ export interface AccordionProps {
onTabOpen?(e: AccordionEventParams): void;
onTabClose?(e: AccordionEventParams): void;
onTabChange?(e: AccordionEventParams): void;
children?: React.ReactNode;
}

// tslint:disable-next-line:max-classes-per-file
Expand Down
1 change: 1 addition & 0 deletions components/lib/autocomplete/AutoComplete.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export interface AutoCompleteProps extends Omit<React.DetailedHTMLProps<React.In
onClear?(event: React.SyntheticEvent): void;
onShow?(): void;
onHide?(): void;
children?: React.ReactNode;
}

export declare class AutoComplete extends React.Component<AutoCompleteProps, any> {
Expand Down
1 change: 1 addition & 0 deletions components/lib/avatar/Avatar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface AvatarProps {
imageAlt?: string;
onImageError?(event: React.SyntheticEvent): void;
onClick?(event: React.MouseEvent<HTMLElement>): void;
children?: React.ReactNode;
}

export declare class Avatar extends React.Component<AvatarProps, any> { }
1 change: 1 addition & 0 deletions components/lib/avatargroup/AvatarGroup.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as React from 'react';
export interface AvatarGroupProps {
style?: object;
className?: string;
children?: React.ReactNode;
}

export declare class AvatarGroup extends React.Component<AvatarGroupProps, any> { }
1 change: 1 addition & 0 deletions components/lib/badge/Badge.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface BadgeProps {
size?: BadgeSizeType;
style?: object;
className?: string;
children?: React.ReactNode;
}

export declare class Badge extends React.Component<BadgeProps, any> { }
1 change: 1 addition & 0 deletions components/lib/blockui/BlockUI.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface BlockUIProps {
template?: BlockUITemplateType;
onBlocked?(): void;
onUnblocked?(): void;
children?: React.ReactNode;
}

export declare class BlockUI extends React.Component<BlockUIProps, any> {
Expand Down
1 change: 1 addition & 0 deletions components/lib/breadcrumb/BreadCrumb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export interface BreadCrumbProps {
home?: MenuItem;
style?: object;
className?: string;
children?: React.ReactNode;
}

export declare class BreadCrumb extends React.Component<BreadCrumbProps, any> { }
1 change: 1 addition & 0 deletions components/lib/button/Button.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface ButtonProps extends Omit<React.DetailedHTMLProps<React.ButtonHT
disabled?: boolean;
loading?: boolean;
loadingIcon?: IconType<ButtonProps>;
children?: React.ReactNode;
}

export declare class Button extends React.Component<ButtonProps, any> { }
1 change: 1 addition & 0 deletions components/lib/calendar/Calendar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export interface CalendarProps {
onClearButtonClick?(event: React.MouseEvent<HTMLButtonElement>): void;
onShow?(): void;
onHide?(): void;
children?: React.ReactNode;
}

export declare class Calendar extends React.Component<CalendarProps, any> {
Expand Down
1 change: 1 addition & 0 deletions components/lib/captcha/Captcha.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface CaptchaProps {
language?: string;
onResponse?(response: any): void;
onExpire?(): void;
children?: React.ReactNode;
}

export declare class Captcha extends React.Component<CaptchaProps, any> {
Expand Down
1 change: 1 addition & 0 deletions components/lib/card/Card.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface CardProps {
subTitle?: CardTemplateTypes;
style?: object;
className?: string;
children?: React.ReactNode;
}

export declare class Card extends React.Component<CardProps, any> { }
1 change: 1 addition & 0 deletions components/lib/carousel/Carousel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export interface CarouselProps {
containerClassName?: string;
indicatorsContentClassName?: string;
onPageChange?(e: CarouselPageChangeParams): void;
children?: React.ReactNode;
}

export declare class Carousel extends React.Component<CarouselProps, any> { }
1 change: 1 addition & 0 deletions components/lib/cascadeselect/CascadeSelect.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export interface CascadeSelectProps extends Omit<React.DetailedHTMLProps<React.I
onBeforeHide?(): void;
onShow?(): void;
onHide?(): void;
children?: React.ReactNode;
}

export declare class CascadeSelect extends React.Component<CascadeSelectProps, any> { }
1 change: 1 addition & 0 deletions components/lib/chart/Chart.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export interface ChartProps {
height?: string;
style?: object;
className?: string;
children?: React.ReactNode;
}

export declare class Chart extends React.Component<ChartProps, any> {
Expand Down
1 change: 1 addition & 0 deletions components/lib/checkbox/Checkbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface CheckboxProps extends Omit<React.DetailedHTMLProps<React.InputH
onChange?(e: CheckboxChangeParams): void;
onMouseDown?(event: React.MouseEvent<HTMLElement>): void;
onContextMenu?(event: React.MouseEvent<HTMLElement>): void;
children?: React.ReactNode;
}

export declare class Checkbox extends React.Component<CheckboxProps, any> { }
1 change: 1 addition & 0 deletions components/lib/chip/Chip.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export interface ChipProps {
imageAlt?: string;
onImageError?(event: React.SyntheticEvent): void;
onRemove?(event: React.MouseEvent<HTMLElement>): void;
children?: React.ReactNode;
}

export declare class Chip extends React.Component<ChipProps, any> { }
1 change: 1 addition & 0 deletions components/lib/chips/Chips.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export interface ChipsProps {
onChange?(e: ChipsChangeParams): void;
onFocus?(event: React.FocusEvent<HTMLInputElement>): void;
onBlur?(event: React.FocusEvent<HTMLInputElement>): void;
children?: React.ReactNode;
}

export declare class Chips extends React.Component<ChipsProps, any> { }
1 change: 1 addition & 0 deletions components/lib/colorpicker/ColorPicker.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export interface ColorPickerProps extends Omit<React.DetailedHTMLProps<React.Inp
onChange?(e: ColorPickerChangeParams): void;
onShow?(): void;
onHide?(): void;
children?: React.ReactNode;
}

export declare class ColorPicker extends React.Component<ColorPickerProps, any> { }
1 change: 1 addition & 0 deletions components/lib/column/Column.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ export interface ColumnProps {
cellEditValidator?(e: ColumnEventParams): boolean;
onBeforeCellEditHide?(e: ColumnEventParams): void;
onBeforeCellEditShow?(e: ColumnEventParams): void;
children?: React.ReactNode;
}

export declare class Column extends React.Component<ColumnProps, any> { }
4 changes: 3 additions & 1 deletion components/lib/columngroup/ColumnGroup.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import * as React from 'react';

// tslint:disable-next-line:no-empty-interface
export interface ColumnGroupProps { }
export interface ColumnGroupProps {
children?: React.ReactNode;
}

export declare class ColumnGroup extends React.Component<ColumnGroupProps, any> { }
1 change: 1 addition & 0 deletions components/lib/confirmdialog/ConfirmDialog.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ export interface ConfirmDialogProps extends Omit<DialogProps, 'onHide'> {
onHide?(result: string): void;
accept?(): void;
reject?(): void;
children?: React.ReactNode;
}

interface ConfirmDialogReturn {
Expand Down
1 change: 1 addition & 0 deletions components/lib/confirmpopup/ConfirmPopup.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface ConfirmPopupProps {
onHide?(result: string): void;
accept?(): void;
reject?(): void;
children?: React.ReactNode;
}

interface ConfirmPopupReturn {
Expand Down
1 change: 1 addition & 0 deletions components/lib/contextmenu/ContextMenu.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export interface ContextMenuProps {
transitionOptions?: CSSTransitionProps;
onShow?(e: React.SyntheticEvent): void;
onHide?(e: React.SyntheticEvent): void;
children?: React.ReactNode;
}

export declare class ContextMenu extends React.Component<ContextMenuProps, any> {
Expand Down
1 change: 1 addition & 0 deletions components/lib/datascroller/DataScroller.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export interface DataScrollerProps {
emptyMessage?: DataScrollerEmptyMessageType;
onLazyLoad?(e: DataScrollerLazyLoadParams): void;
itemTemplate?(item: any): React.ReactNode;
children?: React.ReactNode;
}

export declare class DataScroller extends React.Component<DataScrollerProps, any> {
Expand Down
1 change: 1 addition & 0 deletions components/lib/datatable/DataTable.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ export interface DataTableProps extends Omit<React.DetailedHTMLProps<React.Input
customRestoreState?(): object;
onStateSave?(state: object): void;
onStateRestore?(state: object): void;
children?: React.ReactNode;
}

export declare class DataTable extends React.Component<DataTableProps, any> {
Expand Down
2 changes: 2 additions & 0 deletions components/lib/dataview/DataView.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export interface DataViewLayoutOptionsProps {
style?: object;
className?: string;
onChange(e: DataViewLayoutOptionsChangeParams): void;
children?: React.ReactNode;
}

export declare class DataViewLayoutOptions extends React.Component<DataViewLayoutOptionsProps, any> { }
Expand Down Expand Up @@ -63,6 +64,7 @@ export interface DataViewProps {
gutter?: boolean;
onPage?(e: DataViewPageParams): void;
itemTemplate?(item: any, layout: DataViewLayoutType): React.ReactNode;
children?: React.ReactNode;
}

// tslint:disable-next-line:max-classes-per-file
Expand Down
1 change: 1 addition & 0 deletions components/lib/deferredcontent/DeferredContent.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as React from 'react';

export interface DeferredContentProps {
onLoad?(event: React.SyntheticEvent): void;
children?: React.ReactNode;
}

export declare class DeferredContent extends React.Component<DeferredContentProps, any> { }
1 change: 1 addition & 0 deletions components/lib/dialog/Dialog.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export interface DialogProps {
onShow?(): void;
onMaskClick?(e: React.MouseEvent<HTMLElement>): void;
onClick?(e: React.MouseEvent<HTMLElement>): void;
children?: React.ReactNode;
}

export declare class Dialog extends React.Component<DialogProps, any> {
Expand Down
1 change: 1 addition & 0 deletions components/lib/divider/Divider.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export interface DividerProps {
type?: DividerBorderType;
style?: object;
className?: string;
children?: React.ReactNode;
}

export declare class Divider extends React.Component<DividerProps, any> { }
1 change: 1 addition & 0 deletions components/lib/dock/Dock.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export interface DockProps {
magnification?: boolean;
header?: DockHeaderType;
footer?: DockFooterType;
children?: React.ReactNode;
}

export declare class Dock extends React.Component<DockProps, any> { }
1 change: 1 addition & 0 deletions components/lib/dropdown/Dropdown.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export interface DropdownProps extends Omit<React.DetailedHTMLProps<React.InputH
onShow?(): void;
onHide?(): void;
onFilter?(e: DropdownFilterParams): void;
children?: React.ReactNode;
}

export declare class Dropdown extends React.Component<DropdownProps, any> { }
1 change: 1 addition & 0 deletions components/lib/editor/Editor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export interface EditorProps extends React.DetailedHTMLProps<React.InputHTMLAttr
onTextChange?(e: EditorTextChangeParams): void;
onSelectionChange?(e: EditorSelectionChangeParams): void;
onLoad?(quill: any): void;
children?: React.ReactNode;
}

export declare class Editor extends React.Component<EditorProps, any> {
Expand Down
1 change: 1 addition & 0 deletions components/lib/fieldset/Fieldset.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface FieldsetProps {
onCollapse?(event: React.MouseEvent<HTMLElement>): void;
onToggle?(e: FieldsetToggleParams): void;
onClick?(event: React.MouseEvent<HTMLElement>): void;
children?: React.ReactNode;
}

export declare class Fieldset extends React.Component<FieldsetProps, any> { }
3 changes: 2 additions & 1 deletion components/lib/fileupload/FileUpload.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ interface FileUploadHandlerParam extends FileUploadFilesParam {
options: FileUploadHandlerOptions;
}

interface FileUploadRemoveParams {
interface FileUploadRemoveParams {
originalEvent: React.SyntheticEvent;
file: File;
}
Expand Down Expand Up @@ -122,6 +122,7 @@ interface FileUploadProps {
onValidationFail?(file: File): void;
uploadHandler?(e: FileUploadHandlerParam): void;
onRemove?(e: FileUploadRemoveParams): void;
children?: React.ReactNode;
}

export declare class FileUpload extends React.Component<FileUploadProps, any> {
Expand Down
1 change: 1 addition & 0 deletions components/lib/fullcalendar/FullCalendar.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export interface FullCalendarProps {
style?: object;
className?: string;
options?: object;
children?: React.ReactNode;
}

export declare class FullCalendar extends React.Component<FullCalendarProps, any> { }
1 change: 1 addition & 0 deletions components/lib/galleria/Galleria.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export interface GalleriaProps {
onItemChange?(e: GalleriaItemChangeParams): void;
onShow?(): void;
onHide?(): void;
children?: React.ReactNode;
}

export declare class Galleria extends React.Component<GalleriaProps, any> {
Expand Down
1 change: 1 addition & 0 deletions components/lib/gmap/GMap.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface GMapProps {
onOverlayDrag?(event: React.SyntheticEvent): void;
onOverlayDragEnd?(event: React.SyntheticEvent): void;
onOverlayClick?(e: GMapEventParams): void;
children?: React.ReactNode;
}

export declare class GMap extends React.Component<GMapProps, any> { }
1 change: 1 addition & 0 deletions components/lib/image/Image.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface ImageProps {
height?: string;
onShow?(): void;
onHide?(): void;
children?: React.ReactNode;
}

export declare class Image extends React.Component<ImageProps, any> { }
9 changes: 7 additions & 2 deletions components/lib/inplace/Inplace.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@ export interface InplaceProps {
onOpen?(event: React.MouseEvent<HTMLElement>): void;
onClose?(event: React.MouseEvent<HTMLElement>): void;
onToggle?(e: InplaceToggleParams): void;
children?: React.ReactNode;
}

export declare class Inplace extends React.Component<InplaceProps, any> { }

// tslint:disable-next-line:max-classes-per-file
export declare class InplaceDisplay extends React.Component { }
export declare class InplaceDisplay extends React.Component {
children?: React.ReactNode;
}

// tslint:disable-next-line:max-classes-per-file
export declare class InplaceContent extends React.Component { }
export declare class InplaceContent extends React.Component {
children?: React.ReactNode;
}
1 change: 1 addition & 0 deletions components/lib/inputmask/InputMask.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export interface InputMaskProps {
onChange?(e: InputMaskChangeParams): void;
onFocus?(event: React.FocusEvent<HTMLInputElement>): void;
onBlur?(event: React.FocusEvent<HTMLInputElement>): void;
children?: React.ReactNode;
}

export declare class InputMask extends React.Component<InputMaskProps, any> { }
1 change: 1 addition & 0 deletions components/lib/inputnumber/InputNumber.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export interface InputNumberProps {
onFocus?(event: React.FocusEvent<HTMLInputElement>): void;
onBlur?(event: React.FocusEvent<HTMLInputElement>): void;
onKeyDown?(event: React.KeyboardEvent<HTMLInputElement>): void;
children?: React.ReactNode;
}

export declare class InputNumber extends React.Component<InputNumberProps, any> {
Expand Down
1 change: 1 addition & 0 deletions components/lib/inputswitch/InputSwitch.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export interface InputSwitchProps extends Omit<React.DetailedHTMLProps<React.Inp
onChange?(e: InputSwitchChangeParams): void;
onFocus?(event: React.FocusEvent<HTMLInputElement>): void;
onBlur?(event: React.FocusEvent<HTMLInputElement>): void;
children?: React.ReactNode;
}

export declare class InputSwitch extends React.Component<InputSwitchProps, any> { }
1 change: 1 addition & 0 deletions components/lib/inputtext/InputText.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export interface InputTextProps extends Omit<React.DetailedHTMLProps<React.Input
tooltip?: string;
tooltipOptions?: TooltipOptions;
onInput?(event: React.FormEvent<HTMLInputElement>, validatePattern: boolean): void;
children?: React.ReactNode;
}

export declare class InputText extends React.Component<InputTextProps, any> { }
1 change: 1 addition & 0 deletions components/lib/inputtextarea/InputTextarea.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export interface InputTextareaProps extends Omit<React.DetailedHTMLProps<React.T
autoResize?: boolean;
tooltip?: string;
tooltipOptions?: TooltipOptions;
children?: React.ReactNode;
}

export declare class InputTextarea extends React.Component<InputTextareaProps, any> { }
1 change: 1 addition & 0 deletions components/lib/knob/Knob.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export interface KnobProps extends Omit<React.DetailedHTMLProps<React.InputHTMLA
textColor?: string;
valueTemplate?: string;
onChange?(e: KnobChangeParams): void;
children?: React.ReactNode;
}

export declare class Knob extends React.Component<KnobProps, any> { }
Loading

0 comments on commit 43c6d2e

Please sign in to comment.