@carto/ps-react-ui 4.0.1 → 4.0.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.
@@ -0,0 +1,5 @@
1
+ interface ListDataSkeletonProps {
2
+ length?: number;
3
+ }
4
+ export declare function ListDataSkeleton({ length }: ListDataSkeletonProps): import("react/jsx-runtime").JSX.Element;
5
+ export {};
@@ -1,3 +1,3 @@
1
- import { ListDataProps } from './types';
2
1
  import { JSX } from 'react';
3
- export declare function ListDataUI({ data, itemsToShow, labels, showDivider, selectedItemId, tooltipProps, onExpand, onItemClick, }: ListDataProps): JSX.Element;
2
+ import { ListDataProps } from './types';
3
+ export declare function ListDataUI({ data, isLoading, maxItems, labels, showDivider, selectedItemId, tooltipProps, onExpand, onItemClick, }: ListDataProps): JSX.Element;
@@ -1,18 +1,18 @@
1
1
  import { Theme } from '@mui/material';
2
2
  export declare const styles: {
3
- firstColumn: {
4
- flex: number;
3
+ label: {
5
4
  '& .MuiListItemText-primary': {
6
- wordBreak: "break-word";
7
- whiteSpace: "normal";
5
+ overflow: string;
6
+ textOverflow: string;
7
+ whiteSpace: string;
8
8
  };
9
9
  };
10
- secondColumn: {
11
- flex: number;
12
- textAlign: "right";
10
+ value: {
13
11
  '& .MuiListItemText-primary': {
14
- wordBreak: "break-word";
15
- whiteSpace: "normal";
12
+ textAlign: "right";
13
+ overflow: string;
14
+ textOverflow: string;
15
+ whiteSpace: string;
16
16
  };
17
17
  };
18
18
  clickable: {
@@ -21,9 +21,6 @@ export declare const styles: {
21
21
  backgroundColor: ({ palette }: Theme) => string;
22
22
  };
23
23
  };
24
- button: {
25
- mt: number;
26
- };
27
24
  showDivider: {
28
25
  borderBottom: ({ palette }: Theme) => string;
29
26
  };
@@ -9,7 +9,8 @@ export interface DataItem {
9
9
  }
10
10
  export interface ListDataProps {
11
11
  data: DataItem[];
12
- itemsToShow?: number;
12
+ isLoading?: boolean;
13
+ maxItems?: number;
13
14
  labels?: {
14
15
  showMore: string;
15
16
  showLess: string;
@@ -0,0 +1,8 @@
1
+ import { AlertProps } from '@mui/material';
2
+ interface NoDataAlertProps {
3
+ title?: string;
4
+ body?: string;
5
+ severity?: AlertProps['severity'];
6
+ }
7
+ export declare function NoDataAlert({ title, body, severity, }: NoDataAlertProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1 @@
1
+ export declare function useSkeleton(isLoading: boolean): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carto/ps-react-ui",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "CARTO's Professional Service React Material library",
5
5
  "type": "module",
6
6
  "devDependencies": {