@popmenu/dashboard 0.31.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.
- package/README.md +9 -0
- package/build/components/KpiMetric/KpiMetric.d.ts +14 -0
- package/build/components/KpiMetric/KpiMetricProps.d.ts +15 -0
- package/build/components/KpiMetric/KpiMetricStyles.d.ts +2 -0
- package/build/components/KpiMetric/index.d.ts +2 -0
- package/build/components/KpiMetricTile/KpiMetricTile.d.ts +3 -0
- package/build/components/KpiMetricTile/KpiMetricTileProps.d.ts +5 -0
- package/build/components/KpiMetricTile/index.d.ts +2 -0
- package/build/components/Tile/Tile.d.ts +3 -0
- package/build/components/Tile/TileProps.d.ts +7 -0
- package/build/components/Tile/TileStyles.d.ts +1 -0
- package/build/components/Tile/index.d.ts +2 -0
- package/build/components/index.d.ts +3 -0
- package/build/index.d.ts +1 -0
- package/build/index.es.js +801 -0
- package/build/index.es.js.map +1 -0
- package/build/index.js +844 -0
- package/build/index.js.map +1 -0
- package/package.json +32 -0
package/README.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { KpiMetricProps } from './KpiMetricProps';
|
|
3
|
+
declare const defaultProps: {
|
|
4
|
+
trendStatus: string;
|
|
5
|
+
trendMessage: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const KpiMetric: {
|
|
8
|
+
(props: KpiMetricProps & typeof defaultProps): JSX.Element;
|
|
9
|
+
defaultProps: {
|
|
10
|
+
trendStatus: string;
|
|
11
|
+
trendMessage: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface KpiMetricProps {
|
|
3
|
+
/** The icon from @popmenu/web-icons to be rendered */
|
|
4
|
+
Icon?: string | React.FC<React.SVGProps<SVGSVGElement>>;
|
|
5
|
+
/** A KPI metric name */
|
|
6
|
+
metric: string;
|
|
7
|
+
/** A KPI metric measurement */
|
|
8
|
+
value: string | undefined;
|
|
9
|
+
/** A KPI metric trend direction */
|
|
10
|
+
trend: 'up' | 'down' | 'level' | undefined;
|
|
11
|
+
/** A KPI metric trend description */
|
|
12
|
+
trendMessage: string | undefined;
|
|
13
|
+
/** Determines if the trend direction is diplayed as success or warning. When "natural", a trend of "up" is successful*/
|
|
14
|
+
trendStatus: 'natural' | 'inverted' | undefined;
|
|
15
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { CardProps, CardContentProps } from '@popmenu/common-ui';
|
|
3
|
+
export interface TileProps extends CardProps {
|
|
4
|
+
/** Props for the built in Card Content component */
|
|
5
|
+
CardContentProps?: CardContentProps;
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useTileStyles: (props?: any) => import("@material-ui/styles").ClassNameMap<"root" | "content">;
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|