Comparing version 0.1.1 to 0.1.2
@@ -11,3 +11,3 @@ { | ||
"typings": "dist/index.d.ts", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"scripts": { | ||
@@ -14,0 +14,0 @@ "start": "vite", |
@@ -17,3 +17,3 @@ # Gridley | ||
For an usable example of the screenshots above, try [the sandbox example](https://codesandbox.io/s/o4fnxr?module=/example.tsx) as well as the source in [demo/demo.tsx](demo/demo.tsx) | ||
For an usable example of the screenshots above, try [the sandbox example](https://codesandbox.io/s/ihjq23?module=/example.tsx) as well as the source in [demo/demo.tsx](demo/demo.tsx) | ||
@@ -28,2 +28,3 @@ ## Gridley Components | ||
* **caption** content to insert at the top of the grid. | ||
* **rowAttributes** function | HTMLAttributes<div> A list of attributes to be added to each row as its rendered. If a function is specified, it will be passed the row and current layout and should return HTMLAttributes | ||
@@ -30,0 +31,0 @@ #### Columns |
@@ -7,2 +7,3 @@ import * as React from 'react' | ||
GridContextState, | ||
GridContextProps, | ||
GridContextStoreState, | ||
@@ -9,0 +10,0 @@ Layouts, |
@@ -47,4 +47,4 @@ import * as React from 'react' | ||
rowAttributes?: | ||
| HTMLAttributes<div> | ||
| ((rowData: any, layout: LayoutSpec) => HTMLAttributes<div>) | ||
| React.HTMLAttributes<HTMLDivElement> | ||
| ((rowData: any, layout: LayoutSpec) => React.HTMLAttributes<HTMLDivElement>) | ||
} | ||
@@ -54,3 +54,3 @@ export type Layouts = Record<string, LayoutSpec> | ||
export interface GridContextStoreState { | ||
props: GridContextProps | ||
props: any // work around some attributes values being typed as "readonly string" which immer doesn't like | ||
layouts: Layouts | ||
@@ -57,0 +57,0 @@ renderers: Renderers |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
292429
75