@popmenu/common-ui 0.18.4-alpha.0 → 0.19.0

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.
Files changed (32) hide show
  1. package/build/components/index.d.ts +0 -1
  2. package/build/index.es.js +1 -266
  3. package/build/index.es.js.map +1 -1
  4. package/build/index.js +0 -264
  5. package/build/index.js.map +1 -1
  6. package/package.json +4 -7
  7. package/build/components/Table/Table.d.ts +0 -3
  8. package/build/components/Table/TableProps.d.ts +0 -28
  9. package/build/components/Table/TableStyles.d.ts +0 -2
  10. package/build/components/Table/index.d.ts +0 -2
  11. package/build/components/Table/util/makeColumns.d.ts +0 -7
  12. package/build/components/TableActionsCell/TableActionsCell.d.ts +0 -3
  13. package/build/components/TableActionsCell/TableActionsCellProps.d.ts +0 -10
  14. package/build/components/TableActionsCell/index.d.ts +0 -2
  15. package/build/components/TableBody/TableBody.d.ts +0 -2
  16. package/build/components/TableBody/index.d.ts +0 -1
  17. package/build/components/TableCell/TableCell.d.ts +0 -2
  18. package/build/components/TableCell/TableCellStyles.d.ts +0 -1
  19. package/build/components/TableCell/index.d.ts +0 -1
  20. package/build/components/TableFooter/TableFooter.d.ts +0 -2
  21. package/build/components/TableFooter/index.d.ts +0 -1
  22. package/build/components/TableHeader/TableHeader.d.ts +0 -2
  23. package/build/components/TableHeader/index.d.ts +0 -1
  24. package/build/components/TableHeaderCell/TableHeaderCell.d.ts +0 -3
  25. package/build/components/TableHeaderCell/TableHeaderCellProps.d.ts +0 -8
  26. package/build/components/TableHeaderCell/TableHeaderCellStyles.d.ts +0 -2
  27. package/build/components/TableHeaderCell/index.d.ts +0 -1
  28. package/build/components/TableHeaderRow/TableHeaderRow.d.ts +0 -2
  29. package/build/components/TableHeaderRow/index.d.ts +0 -1
  30. package/build/components/TableRow/TableRow.d.ts +0 -2
  31. package/build/components/TableRow/TableRowStyles.d.ts +0 -1
  32. 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.4-alpha.0",
3
+ "version": "0.19.0",
4
4
  "license": "MIT",
5
5
  "author": "Popmenu Design System Team",
6
6
  "description": "React components for all Popmenu apps on the web.",
@@ -24,14 +24,11 @@
24
24
  "peerDependencies": {
25
25
  "@material-ui/core": "^4.12.2",
26
26
  "@material-ui/lab": "^4.0.0-alpha.60",
27
- "react": "^16.8.0",
28
- "react-table": "^7.7.0"
27
+ "react": "^16.8.0"
29
28
  },
30
29
  "devDependencies": {
31
- "@types/classnames": "^2.3.1",
32
- "@types/react-table": "^7.7.9",
33
- "acorn-jsx": "^5.3.2"
30
+ "@types/classnames": "^2.3.1"
34
31
  },
35
32
  "sideEffects": false,
36
- "gitHead": "c6bf79bfac26df5d9554935648b6c2afb8bd9147"
33
+ "gitHead": "43747fe11915325216f974b04bc13f895f9e310b"
37
34
  }
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { TableProps } from './TableProps';
3
- export declare const Table: FC<TableProps>;
@@ -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,2 +0,0 @@
1
- import { TableProps } from './TableProps';
2
- export declare const useTableStyles: (props: TableProps) => import("@material-ui/styles").ClassNameMap<string>;
@@ -1,2 +0,0 @@
1
- export { Table as default } from './Table';
2
- export { TableProps } from './TableProps';
@@ -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,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { TableActionsCellProps } from './TableActionsCellProps';
3
- export declare const TableActionsCell: FC<TableActionsCellProps>;
@@ -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,2 +0,0 @@
1
- export { TableActionsCell as default } from './TableActionsCell';
2
- export { TableActionsCellProps } from './TableActionsCellProps';
@@ -1,2 +0,0 @@
1
- import { FC } from 'react';
2
- export declare const TableBody: FC;
@@ -1 +0,0 @@
1
- export { TableBody as default } from './TableBody';
@@ -1,2 +0,0 @@
1
- import { FC } from 'react';
2
- export declare const TableCell: FC;
@@ -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,2 +0,0 @@
1
- import { FC } from 'react';
2
- export declare const TableFooter: FC;
@@ -1 +0,0 @@
1
- export { TableFooter as default } from './TableFooter';
@@ -1,2 +0,0 @@
1
- import { FC } from 'react';
2
- export declare const TableHeader: FC;
@@ -1 +0,0 @@
1
- export { TableHeader as default } from './TableHeader';
@@ -1,3 +0,0 @@
1
- import { FC } from 'react';
2
- import { TableHeaderCellProps } from './TableHeaderCellProps';
3
- export declare const TableHeaderCell: FC<TableHeaderCellProps>;
@@ -1,8 +0,0 @@
1
- import { Column } from 'react-table';
2
- import { TableProps } from '../Table';
3
- export interface TableHeaderCellProps {
4
- column: Column & {
5
- isActionColumn: boolean;
6
- };
7
- tableProps: TableProps;
8
- }
@@ -1,2 +0,0 @@
1
- import { TableHeaderCellProps } from './TableHeaderCellProps';
2
- export declare const useTableHeaderCellStyles: (props: TableHeaderCellProps) => import("@material-ui/styles").ClassNameMap<string>;
@@ -1 +0,0 @@
1
- export { TableHeaderCell as default } from './TableHeaderCell';
@@ -1,2 +0,0 @@
1
- import { FC } from 'react';
2
- export declare const TableHeaderRow: FC;
@@ -1 +0,0 @@
1
- export { TableHeaderRow as default } from './TableHeaderRow';
@@ -1,2 +0,0 @@
1
- import { FC } from 'react';
2
- export declare const TableRow: FC;
@@ -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';