diff --git a/package.json b/package.json index 8ed4216..b42496d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-align", - "version": "2.0.4", + "version": "2.0.5", "author": "KaWaite", "module": "dist/react-align.esm.js", "license": "MIT", diff --git a/src/GridSection.tsx b/src/GridSection.tsx index f1c0f4a..9426766 100644 --- a/src/GridSection.tsx +++ b/src/GridSection.tsx @@ -1,10 +1,11 @@ -import React, { CSSProperties } from 'react'; +import React, { CSSProperties, ReactNode } from 'react'; import { useAlignContext } from './context'; import './grid.css'; export type GridSectionProps = { className?: string; + children?: ReactNode; horizontal?: boolean; stretch?: boolean; fixedWidth?: number; @@ -16,13 +17,13 @@ export type GridSectionProps = { const GridSection: React.FC = ({ className, + children, horizontal, stretch, fixedWidth, fixedHeight, style, editorStyle, - children, }) => { const { editing: enabled } = useAlignContext(); diff --git a/src/GridWrapper.tsx b/src/GridWrapper.tsx index 666c700..aaff4cc 100644 --- a/src/GridWrapper.tsx +++ b/src/GridWrapper.tsx @@ -1,4 +1,4 @@ -import React, { CSSProperties, useCallback, useState } from 'react'; +import React, { CSSProperties, ReactNode, useCallback, useState } from 'react'; import { DragDropContext, DropResult, @@ -11,6 +11,7 @@ import './grid.css'; export type GridWrapperProps = { className?: string; + children?: ReactNode; editing?: boolean; vertical?: boolean; stretch?: boolean; @@ -30,12 +31,12 @@ export type GridWrapperProps = { const GridWrapper: React.FC = ({ className, + children, editing, vertical, stretch, style, editorStyle, - children, onMove, onAlignChange, onExtend,