@carto/ps-react-ui 1.2.0 → 1.2.3

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.
@@ -1,4 +1,4 @@
1
- import { TableBodyProps, TData } from '../types';
1
+ import type { TableBodyProps, TData } from '../types';
2
2
  /**
3
3
  * `TableBody` component is a wrapper for Material-UI TableBody component.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { TableCellProps, TData } from '../types';
1
+ import type { TableCellProps, TData } from '../types';
2
2
  /**
3
3
  * `TableCell` component is a wrapper for Material-UI TableCell component.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { TableHeaderProps } from '../types';
1
+ import type { TableHeaderProps } from '../types';
2
2
  /**
3
3
  * `TableHeader` component is a wrapper for Material-UI TableHead component.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { ChangeEvent } from 'react';
1
+ import type { ChangeEvent, CSSProperties } from 'react';
2
2
  import type { TableProps as MaterialTableProps } from '@material-ui/core';
3
3
  export declare type Alignment = 'left' | 'right' | 'center';
4
4
  export declare type Order = 'desc' | 'asc';
@@ -86,5 +86,5 @@ export interface TableCellProps<T extends TData> {
86
86
  }
87
87
  export declare type TData = {
88
88
  id: string | number;
89
- style?: React.CSSProperties;
89
+ style?: CSSProperties;
90
90
  } & Record<string, unknown>;
@@ -1,4 +1,4 @@
1
- import { TData } from './types';
1
+ import type { TData } from './types';
2
2
  export declare function getComparator<T extends TData>(order: string, orderBy: string): (a: T, b: T) => number;
3
3
  export declare function stableSort<T>(data: T[], comparator: (a: T, b: T) => number): T[];
4
4
  export declare function ascendingComparator<T extends TData>(a: T, b: T, orderBy: string): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carto/ps-react-ui",
3
- "version": "1.2.0",
3
+ "version": "1.2.3",
4
4
  "description": "CARTO's Professional Service React UI library",
5
5
  "files": [
6
6
  "dist"
@@ -53,6 +53,18 @@
53
53
  "@types/react-dom": "17.0.15",
54
54
  "eslint-plugin-jsx-a11y": "6.6.1"
55
55
  },
56
+ "peerDependencies": {
57
+ "@material-ui/core": "4.x",
58
+ "@material-ui/icons": "4.x",
59
+ "@material-ui/lab": "4.0.0-alpha.61",
60
+ "@material-ui/styles": "4.x",
61
+ "clsx": "1.x",
62
+ "echarts": "5.x",
63
+ "echarts-for-react": "3.x",
64
+ "react": "17.x",
65
+ "react-dom": "17.x",
66
+ "react-window": "1.x"
67
+ },
56
68
  "eslintConfig": {
57
69
  "extends": [
58
70
  "@carto/eslint-config-ps-react",