@popmenu/common-ui 0.18.3-alpha.1 → 0.18.4-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/components/index.d.ts +0 -1
- package/build/index.es.js +1 -2311
- package/build/index.es.js.map +1 -1
- package/build/index.js +0 -2309
- package/build/index.js.map +1 -1
- package/package.json +3 -8
- package/build/components/Table/Table.d.ts +0 -3
- package/build/components/Table/TableProps.d.ts +0 -28
- package/build/components/Table/TableStyles.d.ts +0 -2
- package/build/components/Table/index.d.ts +0 -2
- package/build/components/Table/util/makeColumns.d.ts +0 -7
- package/build/components/TableActionsCell/TableActionsCell.d.ts +0 -3
- package/build/components/TableActionsCell/TableActionsCellProps.d.ts +0 -10
- package/build/components/TableActionsCell/index.d.ts +0 -2
- package/build/components/TableBody/TableBody.d.ts +0 -2
- package/build/components/TableBody/index.d.ts +0 -1
- package/build/components/TableCell/TableCell.d.ts +0 -2
- package/build/components/TableCell/TableCellStyles.d.ts +0 -1
- package/build/components/TableCell/index.d.ts +0 -1
- package/build/components/TableFooter/TableFooter.d.ts +0 -2
- package/build/components/TableFooter/index.d.ts +0 -1
- package/build/components/TableHeader/TableHeader.d.ts +0 -2
- package/build/components/TableHeader/index.d.ts +0 -1
- package/build/components/TableHeaderCell/TableHeaderCell.d.ts +0 -3
- package/build/components/TableHeaderCell/TableHeaderCellProps.d.ts +0 -8
- package/build/components/TableHeaderCell/TableHeaderCellStyles.d.ts +0 -2
- package/build/components/TableHeaderCell/index.d.ts +0 -1
- package/build/components/TableHeaderRow/TableHeaderRow.d.ts +0 -2
- package/build/components/TableHeaderRow/index.d.ts +0 -1
- package/build/components/TableRow/TableRow.d.ts +0 -2
- package/build/components/TableRow/TableRowStyles.d.ts +0 -1
- package/build/components/TableRow/index.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@popmenu/common-ui",
|
|
3
|
-
"version": "0.18.
|
|
3
|
+
"version": "0.18.4-alpha.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "Popmenu Design System Team",
|
|
6
6
|
"description": "React components for all Popmenu apps on the web.",
|
|
@@ -23,19 +23,14 @@
|
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@material-ui/core": "^4.12.2",
|
|
26
|
-
"@material-ui/icons": "^4.11.2",
|
|
27
26
|
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
28
27
|
"react": "^16.8.0",
|
|
29
|
-
"react-
|
|
28
|
+
"react-table": "^7.7.0"
|
|
30
29
|
},
|
|
31
30
|
"devDependencies": {
|
|
32
31
|
"@types/classnames": "^2.3.1",
|
|
33
|
-
"@types/react-table": "^7.7.9",
|
|
34
32
|
"acorn-jsx": "^5.3.2"
|
|
35
33
|
},
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"react-table": "^7.7.0"
|
|
38
|
-
},
|
|
39
34
|
"sideEffects": false,
|
|
40
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "c0a16e034d23d083f0f3a8a23e660657191bd432"
|
|
41
36
|
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Cell, Column } from 'react-table';
|
|
3
|
-
export interface TableProps {
|
|
4
|
-
/** Configurations for each individual column. */
|
|
5
|
-
columns: Array<Column & {
|
|
6
|
-
accessor: string;
|
|
7
|
-
}>;
|
|
8
|
-
/** A table's data set. */
|
|
9
|
-
data: Array<Record<string, unknown>>;
|
|
10
|
-
/** Actions that can be performed on any given row. */
|
|
11
|
-
actions?: Record<string, {
|
|
12
|
-
icon?: string | React.FC<React.SVGProps<SVGSVGElement>>;
|
|
13
|
-
label: string;
|
|
14
|
-
action: (cell: Cell) => void;
|
|
15
|
-
}>;
|
|
16
|
-
/** Styles the table to not shrink below the height of a full page. */
|
|
17
|
-
enableMinHeight?: boolean;
|
|
18
|
-
/** Styles the table to take up its containers full width. */
|
|
19
|
-
fullWidth?: boolean;
|
|
20
|
-
/** Enables sortability for columns. */
|
|
21
|
-
sortable?: boolean;
|
|
22
|
-
/** Sets loading state. When true, Will render a CircularProgress when true and not rows. */
|
|
23
|
-
loading?: boolean;
|
|
24
|
-
/** A short message for users when the data set does not produce any rows. */
|
|
25
|
-
emptyMessage?: string;
|
|
26
|
-
/** An image to be displayed with the empty message. */
|
|
27
|
-
EmptyImage?: () => React.ReactNode;
|
|
28
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { Column } from 'react-table';
|
|
2
|
-
import { TableProps } from '../TableProps';
|
|
3
|
-
interface MakeColumnsConfig extends Pick<TableProps, 'columns' | 'actions'> {
|
|
4
|
-
actionColumnId: string;
|
|
5
|
-
}
|
|
6
|
-
export declare const makeColumns: (config: MakeColumnsConfig) => Array<Column>;
|
|
7
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Cell, TableInstance } from 'react-table';
|
|
3
|
-
export interface TableActionsCellProps extends TableInstance {
|
|
4
|
-
cell: Cell;
|
|
5
|
-
actions: Record<string, {
|
|
6
|
-
icon?: string | React.FC<React.SVGProps<SVGSVGElement>>;
|
|
7
|
-
label: string;
|
|
8
|
-
action: (cell: Cell) => void;
|
|
9
|
-
}>;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TableBody as default } from './TableBody';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useTableCellStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"root">;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TableCell as default } from './TableCell';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TableFooter as default } from './TableFooter';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TableHeader as default } from './TableHeader';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TableHeaderCell as default } from './TableHeaderCell';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TableHeaderRow as default } from './TableHeaderRow';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const useTableRowStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"root">;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { TableRow as default } from './TableRow';
|