@hubspot/ui-extensions 0.8.31 → 0.8.32
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/dist/types.d.ts +18 -1
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -257,6 +257,12 @@ export type AxisPairOptions = {
|
|
|
257
257
|
* @defaultValue `false`
|
|
258
258
|
*/
|
|
259
259
|
stacking?: boolean;
|
|
260
|
+
/**
|
|
261
|
+
* If provided, assigns a color to each specified values of the field provided in `groupFieldByColor`.
|
|
262
|
+
*/
|
|
263
|
+
colors?: {
|
|
264
|
+
[key: string]: ChartColor;
|
|
265
|
+
};
|
|
260
266
|
};
|
|
261
267
|
export declare const chartFieldTypes: {
|
|
262
268
|
readonly datetime: "datetime";
|
|
@@ -273,6 +279,10 @@ export declare const chartFieldTypes: {
|
|
|
273
279
|
*/
|
|
274
280
|
export type ChartFieldType = keyof typeof chartFieldTypes;
|
|
275
281
|
export type ChartOptions = {
|
|
282
|
+
/**
|
|
283
|
+
* Renders a title above the chart.
|
|
284
|
+
*/
|
|
285
|
+
title?: string;
|
|
276
286
|
/**
|
|
277
287
|
* When set to `true`, shows a legend for the chart.
|
|
278
288
|
*
|
|
@@ -292,9 +302,12 @@ export type ChartOptions = {
|
|
|
292
302
|
*/
|
|
293
303
|
showDataLabels?: boolean;
|
|
294
304
|
/**
|
|
295
|
-
* Use to choose the order in which our chart colors are assigned to your data. Unspecified colors will be chosen after the ones you've provided here
|
|
305
|
+
* Use to choose the order in which our chart colors are assigned to your data. Unspecified colors will be chosen after the ones you've provided here,
|
|
306
|
+
* so you don't need to provide a complete list of all possible colors.
|
|
296
307
|
* Please read the documentation for guidance on color usage.
|
|
297
308
|
*/
|
|
309
|
+
colorList?: ChartColor[];
|
|
310
|
+
/** @deprecated use colorList instead */
|
|
298
311
|
colors?: ChartColor[];
|
|
299
312
|
};
|
|
300
313
|
/**
|
|
@@ -1475,6 +1488,10 @@ export interface StatisticsTrendProps {
|
|
|
1475
1488
|
* @defaultValue `"increase"`
|
|
1476
1489
|
*/
|
|
1477
1490
|
direction: 'increase' | 'decrease';
|
|
1491
|
+
/**
|
|
1492
|
+
* The color of the trend arrow.
|
|
1493
|
+
*/
|
|
1494
|
+
color?: 'red' | 'green';
|
|
1478
1495
|
}
|
|
1479
1496
|
/**
|
|
1480
1497
|
* The props type for {@link !components.StatisticsItem}.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/ui-extensions",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.32",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"typescript": "5.0.4"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "b592c6da355c4287b3498686743cdcbeb230e20b"
|
|
55
55
|
}
|