@owlui/table
Advanced tools
Comparing version 0.0.16 to 0.0.17
{ | ||
"name": "@owlui/table", | ||
"version": "0.0.16", | ||
"version": "0.0.17", | ||
"description": "", | ||
"homepage": "https://github.com/EEBOS/owl-ui/tree/main/packages/table#readme", | ||
"license": "MIT", | ||
"type": "module", | ||
"type": "commonjs", | ||
"source": "src/index.ts", | ||
@@ -36,5 +36,5 @@ "main": "dist/owl.table.js", | ||
"@owlui/typings": "^0.0.1", | ||
"@owlui/utils": "^0.0.16" | ||
"@owlui/utils": "^0.0.17" | ||
}, | ||
"gitHead": "6e79b186348dcc122b04d10958dda11767f29fd7" | ||
"gitHead": "3d79b9fccee0b26c802d2b39b989d356c4c63ded" | ||
} |
import React from 'react'; | ||
export type TableRowItem = { | ||
export interface TableRowItem { | ||
[key: string]: string | number | boolean; | ||
}; | ||
} | ||
export type TableItems = Array<TableRowItem> | []; | ||
export type TableColumnItem = { | ||
export interface TableColumnItem { | ||
label: string; | ||
field: string; | ||
}; | ||
} | ||
export type TableColumns = Array<TableColumnItem> | []; | ||
export type TableHeaderProps = | ||
React.TableHTMLAttributes<HTMLTableCellElement> & { | ||
columns: TableColumns; | ||
}; | ||
export interface TableHeaderProps | ||
extends React.TableHTMLAttributes<HTMLTableCellElement> { | ||
columns: TableColumns; | ||
} | ||
export type TableBodyProps = React.TableHTMLAttributes<HTMLTableElement> & { | ||
export interface TableBodyProps | ||
extends React.TableHTMLAttributes<HTMLTableElement> { | ||
items: TableItems; | ||
columns: TableColumns; | ||
}; | ||
} | ||
export type TableRowProps = React.TableHTMLAttributes<HTMLTableRowElement> & { | ||
export interface TableRowProps | ||
extends React.TableHTMLAttributes<HTMLTableRowElement> { | ||
item: TableRowItem; | ||
columns: TableColumns; | ||
}; | ||
} | ||
export type TableCellProps = React.TableHTMLAttributes<HTMLTableCellElement> & { | ||
export interface TableCellProps | ||
extends React.TableHTMLAttributes<HTMLTableCellElement> { | ||
children: React.ReactNode; | ||
}; | ||
} | ||
export type TableDefaultCommons = { | ||
export interface TableDefaultCommons { | ||
appearance?: 'Default' | 'Primary' | 'Secondary'; | ||
@@ -43,5 +46,5 @@ children: React.ReactNode; | ||
theme?: 'Default' | 'Dark'; | ||
}; | ||
} | ||
export type TableDefaultProps = Partial<TableDefaultCommons> & | ||
React.TableHTMLAttributes<HTMLTableElement>; |
Sorry, the diff of this file is too big to display
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
3613444
51
16976
1
No
Updated@owlui/utils@^0.0.17