@splunk/visualizations 24.0.0 → 24.1.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 (113) hide show
  1. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Background_Color.png +0 -0
  2. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Field_Order.png +0 -0
  3. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Field_Order_First_And_Last.png +0 -0
  4. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Field_Order_Some.png +0 -0
  5. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Fields_Columns.png +0 -0
  6. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Handles_Large_Data_Set.png +0 -0
  7. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Link_Color.png +0 -0
  8. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Link_Width.png +0 -0
  9. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Color.png +0 -0
  10. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Height.png +0 -0
  11. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Highlight_Color.png +0 -0
  12. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Spacing_X.png +0 -0
  13. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Spacing_Y.png +0 -0
  14. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Width.png +0 -0
  15. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Result_Limit.png +0 -0
  16. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Show_Node_Counts_False.png +0 -0
  17. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Show_Value_Counts_False.png +0 -0
  18. package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Width_Height.png +0 -0
  19. package/.loki/reference/chrome_docker_Visualizations_Line_Line_Basic_Line_with_offset_IANA_timezone.png +0 -0
  20. package/.loki/reference/chrome_docker_Visualizations_Line_Line_Basic_Line_with_offset_serialized_timezone.png +0 -0
  21. package/.loki/reference/chrome_docker_Visualizations_Line_Line_Basic_Line_with_offset_utc_timezone.png +0 -0
  22. package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Basic_LinkGraph.png +0 -0
  23. package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Field_Order_First_and_Last_Fields.png +0 -0
  24. package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Field_Order_From_the_First_to_the_Last_Fields.png +0 -0
  25. package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Field_Order_From_the_Last_to_the_First_Fields.png +0 -0
  26. package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Node_Text_Color.png +0 -0
  27. package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Node_Text_Highlight_Color.png +0 -0
  28. package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Result_Limit_3.png +0 -0
  29. package/Area.config.js +4 -0
  30. package/Area.config.js.map +1 -1
  31. package/Area.js +57 -44
  32. package/Area.js.map +1 -1
  33. package/Bar.js +46 -37
  34. package/Bar.js.map +1 -1
  35. package/Bubble.js +39 -30
  36. package/Bubble.js.map +1 -1
  37. package/ChoroplethSvg.js +40 -39
  38. package/ChoroplethSvg.js.map +1 -1
  39. package/Column.js +46 -37
  40. package/Column.js.map +1 -1
  41. package/Ellipse.config.js +0 -4
  42. package/Ellipse.config.js.map +1 -1
  43. package/Ellipse.js +20 -23
  44. package/Ellipse.js.map +1 -1
  45. package/FillerGauge.js +24 -23
  46. package/FillerGauge.js.map +1 -1
  47. package/Image.js +12 -12
  48. package/Image.js.map +1 -1
  49. package/Line.js +46 -37
  50. package/Line.js.map +1 -1
  51. package/LinkGraph.config.js +48 -1
  52. package/LinkGraph.config.js.map +1 -1
  53. package/LinkGraph.js +118 -54
  54. package/LinkGraph.js.map +1 -1
  55. package/Markdown.config.js +0 -4
  56. package/Markdown.config.js.map +1 -1
  57. package/Markdown.js +11 -15
  58. package/Markdown.js.map +1 -1
  59. package/MarkerGauge.js +26 -25
  60. package/MarkerGauge.js.map +1 -1
  61. package/ParallelCoordinates.js +29 -28
  62. package/ParallelCoordinates.js.map +1 -1
  63. package/Pie.config.js +0 -4
  64. package/Pie.config.js.map +1 -1
  65. package/Pie.js +36 -31
  66. package/Pie.js.map +1 -1
  67. package/Punchcard.js +51 -50
  68. package/Punchcard.js.map +1 -1
  69. package/Rectangle.config.js +0 -4
  70. package/Rectangle.config.js.map +1 -1
  71. package/Rectangle.js +26 -30
  72. package/Rectangle.js.map +1 -1
  73. package/Sankey.js +51 -50
  74. package/Sankey.js.map +1 -1
  75. package/Scatter.js +168 -158
  76. package/Scatter.js.map +1 -1
  77. package/SingleValue.js +67 -67
  78. package/SingleValue.js.map +1 -1
  79. package/SingleValueBasic.js +8 -8
  80. package/SingleValueBasic.js.map +1 -1
  81. package/SingleValueIcon.js +55 -54
  82. package/SingleValueIcon.js.map +1 -1
  83. package/SingleValueRadial.js +85 -85
  84. package/SingleValueRadial.js.map +1 -1
  85. package/Table.js +66 -66
  86. package/Table.js.map +1 -1
  87. package/common/Charting.js +19 -10
  88. package/common/Charting.js.map +1 -1
  89. package/common/EventsDoc.js +3 -2
  90. package/common/EventsDoc.js.map +1 -1
  91. package/common/GaugeMajorTicks.js +2 -2
  92. package/common/GaugeMajorTicks.js.map +1 -1
  93. package/common/GaugeValueMarker.js +2 -2
  94. package/common/GaugeValueMarker.js.map +1 -1
  95. package/common/OptionsDoc.js +9 -8
  96. package/common/OptionsDoc.js.map +1 -1
  97. package/common/OverviewDoc.js +22 -22
  98. package/common/OverviewDoc.js.map +1 -1
  99. package/common/SplunkVisualizationApi.js +2 -2
  100. package/common/SplunkVisualizationApi.js.map +1 -1
  101. package/common/ThemesDoc.js +2 -2
  102. package/common/ThemesDoc.js.map +1 -1
  103. package/common/chartingUtils.js +2 -2
  104. package/common/chartingUtils.js.map +1 -1
  105. package/common/docUtils.js +4 -4
  106. package/common/docUtils.js.map +1 -1
  107. package/common/gaugeUtils.js +7 -7
  108. package/common/gaugeUtils.js.map +1 -1
  109. package/common/shapeUtils.js +8 -8
  110. package/common/shapeUtils.js.map +1 -1
  111. package/common/withDashboardViz.js +29 -28
  112. package/common/withDashboardViz.js.map +1 -1
  113. package/package.json +9 -9
package/LinkGraph.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 172);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 173);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ([
@@ -1584,13 +1584,13 @@ module.exports = require("@splunk/visualization-icons");
1584
1584
  /* 57 */,
1585
1585
  /* 58 */,
1586
1586
  /* 59 */,
1587
- /* 60 */
1587
+ /* 60 */,
1588
+ /* 61 */
1588
1589
  /***/ (function(module, exports) {
1589
1590
 
1590
1591
  module.exports = require("@babel/runtime/helpers/slicedToArray");
1591
1592
 
1592
1593
  /***/ }),
1593
- /* 61 */,
1594
1594
  /* 62 */,
1595
1595
  /* 63 */,
1596
1596
  /* 64 */,
@@ -1616,25 +1616,25 @@ module.exports = require("@babel/runtime/helpers/slicedToArray");
1616
1616
  /* 84 */,
1617
1617
  /* 85 */,
1618
1618
  /* 86 */,
1619
- /* 87 */
1619
+ /* 87 */,
1620
+ /* 88 */
1620
1621
  /***/ (function(module, exports) {
1621
1622
 
1622
1623
  module.exports = require("@babel/runtime/helpers/inherits");
1623
1624
 
1624
1625
  /***/ }),
1625
- /* 88 */
1626
+ /* 89 */
1626
1627
  /***/ (function(module, exports) {
1627
1628
 
1628
1629
  module.exports = require("@babel/runtime/helpers/possibleConstructorReturn");
1629
1630
 
1630
1631
  /***/ }),
1631
- /* 89 */
1632
+ /* 90 */
1632
1633
  /***/ (function(module, exports) {
1633
1634
 
1634
1635
  module.exports = require("@babel/runtime/helpers/getPrototypeOf");
1635
1636
 
1636
1637
  /***/ }),
1637
- /* 90 */,
1638
1638
  /* 91 */,
1639
1639
  /* 92 */,
1640
1640
  /* 93 */,
@@ -1642,13 +1642,13 @@ module.exports = require("@babel/runtime/helpers/getPrototypeOf");
1642
1642
  /* 95 */,
1643
1643
  /* 96 */,
1644
1644
  /* 97 */,
1645
- /* 98 */
1645
+ /* 98 */,
1646
+ /* 99 */
1646
1647
  /***/ (function(module, exports) {
1647
1648
 
1648
1649
  module.exports = require("@splunk/visualizations-shared/dataSourceUtils");
1649
1650
 
1650
1651
  /***/ }),
1651
- /* 99 */,
1652
1652
  /* 100 */,
1653
1653
  /* 101 */,
1654
1654
  /* 102 */,
@@ -1667,7 +1667,8 @@ module.exports = require("@splunk/visualizations-shared/dataSourceUtils");
1667
1667
  /* 115 */,
1668
1668
  /* 116 */,
1669
1669
  /* 117 */,
1670
- /* 118 */
1670
+ /* 118 */,
1671
+ /* 119 */
1671
1672
  /***/ (function(module, exports, __webpack_require__) {
1672
1673
 
1673
1674
  "use strict";
@@ -1693,15 +1694,15 @@ exports.PureLinkGraph = exports.LinkGraph = exports.config = exports.themes = ex
1693
1694
 
1694
1695
  var lodash_1 = __webpack_require__(2);
1695
1696
 
1696
- var dataSourceUtils_1 = __webpack_require__(98);
1697
+ var dataSourceUtils_1 = __webpack_require__(99);
1697
1698
 
1698
1699
  var withDashboardViz_1 = __webpack_require__(27);
1699
1700
 
1700
- var PureLinkGraph_1 = __webpack_require__(173);
1701
+ var PureLinkGraph_1 = __webpack_require__(174);
1701
1702
 
1702
1703
  exports.PureLinkGraph = PureLinkGraph_1.default;
1703
1704
 
1704
- var config_1 = __webpack_require__(185);
1705
+ var config_1 = __webpack_require__(186);
1705
1706
 
1706
1707
  exports.config = config_1.default;
1707
1708
  /**
@@ -1759,7 +1760,7 @@ exports.themes = themes;
1759
1760
  exports.default = LinkGraph;
1760
1761
 
1761
1762
  /***/ }),
1762
- /* 119 */
1763
+ /* 120 */
1763
1764
  /***/ (function(module, exports, __webpack_require__) {
1764
1765
 
1765
1766
  "use strict";
@@ -2017,7 +2018,7 @@ var sortGraphColumn = function sortGraphColumn(graph, field, sortKey, nodeHeight
2017
2018
  exports.sortGraphColumn = sortGraphColumn;
2018
2019
 
2019
2020
  /***/ }),
2020
- /* 120 */
2021
+ /* 121 */
2021
2022
  /***/ (function(module, exports, __webpack_require__) {
2022
2023
 
2023
2024
  "use strict";
@@ -2037,10 +2038,14 @@ var variables_1 = __webpack_require__(19);
2037
2038
  exports.StyledViewport = styled_components_1.default.div.withConfig({
2038
2039
  displayName: "GraphStyles__StyledViewport",
2039
2040
  componentId: "sc-5hdhcf-0"
2040
- })(["position:absolute;top:0px;left:0px;width:100%;height:100%;.node{transition:background 0.05s ease-out;background:", ";border:2px solid transparent;}.node.hovering{background:", ";}.node.selected{border-radius:1px;border:2px solid ", ";}.edge{transition:opacity 0.05s ease-out;stroke:", ";opacity:0.3;}.edge.hovering{opacity:0.8;}> button{border-radius:1px;position:absolute;overflow:hidden;background:none;color:inherit;border:none;padding:0;font:inherit;cursor:pointer;outline:inherit;display:flex;justify-content:space-between;align-items:center;.center-content{width:100%;max-width:100%;flex:1 1 100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;width:0;padding-left:8px;padding-right:8px;> p{color:", ";}> p:nth-child(1){font-size:10px;padding:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}> p:nth-child(2){flex:0 auto;margin:0;font-size:10px;padding-left:8px;}}.left-content{padding-left:8px;}.right-content{padding-right:8px;}.left-content,.right-content{flex:0 0 auto;> p{height:100%;font-weight:bold;font-size:10px;padding:0;margin:0;color:", ";}}}"], function (props) {
2041
+ })(["position:absolute;top:0px;left:0px;width:100%;height:100%;.node{transition:background 0.05s ease-out;background:", ";border:2px solid transparent;p{color:", " !important;}}.node.hovering{background:", ";p{color:", " !important;}}.node.selected{border-radius:1px;border:2px solid ", ";}.edge{transition:opacity 0.05s ease-out;stroke:", ";opacity:0.3;}.edge.hovering{opacity:0.8;}> button{border-radius:1px;position:absolute;overflow:hidden;background:none;color:inherit;border:none;padding:0;font:inherit;cursor:pointer;outline:inherit;display:flex;justify-content:space-between;align-items:center;.center-content{width:100%;max-width:100%;flex:1 1 100%;display:flex;flex-wrap:nowrap;justify-content:flex-start;width:0;padding-left:8px;padding-right:8px;> p{color:", ";}> p:nth-child(1){font-size:10px;padding:0;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}> p:nth-child(2){flex:0 auto;margin:0;font-size:10px;padding-left:8px;}}.left-content{padding-left:8px;}.right-content{padding-right:8px;}.left-content,.right-content{flex:0 0 auto;> p{height:100%;font-weight:bold;font-size:10px;padding:0;margin:0;color:", ";}}}"], function (props) {
2041
2042
  return props.nodeColor;
2043
+ }, function (props) {
2044
+ return props.nodeTextColor;
2042
2045
  }, function (props) {
2043
2046
  return props.nodeHighlightColor;
2047
+ }, function (props) {
2048
+ return props.nodeTextHighlightColor;
2044
2049
  }, pick_1.default({
2045
2050
  enterprise: variables_1.default.accentColorD10,
2046
2051
  prisma: variables_1.default.interactiveColorPrimary
@@ -2070,7 +2075,6 @@ exports.StyledEdgesPath = styled_components_1.default.path.withConfig({
2070
2075
  });
2071
2076
 
2072
2077
  /***/ }),
2073
- /* 121 */,
2074
2078
  /* 122 */,
2075
2079
  /* 123 */,
2076
2080
  /* 124 */,
@@ -2121,7 +2125,8 @@ exports.StyledEdgesPath = styled_components_1.default.path.withConfig({
2121
2125
  /* 169 */,
2122
2126
  /* 170 */,
2123
2127
  /* 171 */,
2124
- /* 172 */
2128
+ /* 172 */,
2129
+ /* 173 */
2125
2130
  /***/ (function(module, exports, __webpack_require__) {
2126
2131
 
2127
2132
  "use strict";
@@ -2151,9 +2156,9 @@ Object.defineProperty(exports, "__esModule", {
2151
2156
  });
2152
2157
  exports.default = void 0;
2153
2158
 
2154
- __exportStar(__webpack_require__(118), exports);
2159
+ __exportStar(__webpack_require__(119), exports);
2155
2160
 
2156
- var LinkGraph_1 = __webpack_require__(118);
2161
+ var LinkGraph_1 = __webpack_require__(119);
2157
2162
 
2158
2163
  Object.defineProperty(exports, "default", {
2159
2164
  enumerable: true,
@@ -2163,13 +2168,13 @@ Object.defineProperty(exports, "default", {
2163
2168
  });
2164
2169
 
2165
2170
  /***/ }),
2166
- /* 173 */
2171
+ /* 174 */
2167
2172
  /***/ (function(module, exports, __webpack_require__) {
2168
2173
 
2169
2174
  "use strict";
2170
2175
 
2171
2176
 
2172
- var _slicedToArray = __webpack_require__(60);
2177
+ var _slicedToArray = __webpack_require__(61);
2173
2178
 
2174
2179
  Object.defineProperty(exports, "__esModule", {
2175
2180
  value: true
@@ -2186,13 +2191,13 @@ var lodash_1 = __webpack_require__(2);
2186
2191
 
2187
2192
  var FixedSizeContainer_1 = __webpack_require__(12);
2188
2193
 
2189
- var PureLinkGraphUtils_1 = __webpack_require__(119);
2194
+ var PureLinkGraphUtils_1 = __webpack_require__(120);
2190
2195
 
2191
- var Graph_1 = __webpack_require__(174);
2196
+ var Graph_1 = __webpack_require__(175);
2192
2197
 
2193
- var Field_1 = __webpack_require__(179);
2198
+ var Field_1 = __webpack_require__(180);
2194
2199
 
2195
- var FieldStyles_1 = __webpack_require__(184);
2200
+ var FieldStyles_1 = __webpack_require__(185);
2196
2201
 
2197
2202
  var LinkGraphContainer = styled_components_1.default.div.withConfig({
2198
2203
  displayName: "PureLinkGraph__LinkGraphContainer",
@@ -2229,7 +2234,9 @@ var PureLinkGraph = function PureLinkGraph(props) {
2229
2234
  onNodeClick = props.onNodeClick,
2230
2235
  linkColor = props.linkColor,
2231
2236
  nodeColor = props.nodeColor,
2237
+ nodeTextColor = props.nodeTextColor,
2232
2238
  nodeHighlightColor = props.nodeHighlightColor,
2239
+ nodeTextHighlightColor = props.nodeTextHighlightColor,
2233
2240
  resultLimit = props.resultLimit,
2234
2241
  linkWidth = props.linkWidth,
2235
2242
  showValueCounts = props.showValueCounts,
@@ -2274,7 +2281,9 @@ var PureLinkGraph = function PureLinkGraph(props) {
2274
2281
  }, React.createElement(Graph_1.default, {
2275
2282
  linkColor: linkColor,
2276
2283
  nodeColor: nodeColor,
2284
+ nodeTextColor: nodeTextColor,
2277
2285
  nodeHighlightColor: nodeHighlightColor,
2286
+ nodeTextHighlightColor: nodeTextHighlightColor,
2278
2287
  graphDataModel: graphDataModelState,
2279
2288
  onNodeClick: onNodeClick,
2280
2289
  linkWidth: linkWidth,
@@ -2312,7 +2321,9 @@ exports.PureLinkGraph.propTypes = {
2312
2321
  nodeSpacingY: T.number,
2313
2322
  linkColor: T.string,
2314
2323
  nodeColor: T.string,
2324
+ nodeTextColor: T.string,
2315
2325
  nodeHighlightColor: T.string,
2326
+ nodeTextHighlightColor: T.string,
2316
2327
  resultLimit: T.number,
2317
2328
  linkWidth: T.number,
2318
2329
  showValueCounts: T.bool,
@@ -2333,7 +2344,9 @@ exports.PureLinkGraph.defaultProps = {
2333
2344
  linkWidth: 1,
2334
2345
  linkColor: '#B5B5B5',
2335
2346
  nodeColor: '#1E2024',
2347
+ nodeTextColor: '#FFFFFF',
2336
2348
  nodeHighlightColor: '#7B56DB',
2349
+ nodeTextHighlightColor: '#FFFFFF',
2337
2350
  resultLimit: 50,
2338
2351
  showValueCounts: true,
2339
2352
  showNodeCounts: true,
@@ -2344,7 +2357,7 @@ exports.PureLinkGraph.displayName = 'VizLinkGraph';
2344
2357
  exports.default = FixedSizeContainer_1.default(exports.PureLinkGraph);
2345
2358
 
2346
2359
  /***/ }),
2347
- /* 174 */
2360
+ /* 175 */
2348
2361
  /***/ (function(module, exports, __webpack_require__) {
2349
2362
 
2350
2363
  "use strict";
@@ -2356,11 +2369,11 @@ var _classCallCheck = __webpack_require__(10);
2356
2369
 
2357
2370
  var _createClass = __webpack_require__(16);
2358
2371
 
2359
- var _inherits = __webpack_require__(87);
2372
+ var _inherits = __webpack_require__(88);
2360
2373
 
2361
- var _possibleConstructorReturn = __webpack_require__(88);
2374
+ var _possibleConstructorReturn = __webpack_require__(89);
2362
2375
 
2363
- var _getPrototypeOf = __webpack_require__(89);
2376
+ var _getPrototypeOf = __webpack_require__(90);
2364
2377
 
2365
2378
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
2366
2379
 
@@ -2374,13 +2387,13 @@ var React = __webpack_require__(1);
2374
2387
 
2375
2388
  var lodash_1 = __webpack_require__(2);
2376
2389
 
2377
- var Edges_1 = __webpack_require__(175);
2390
+ var Edges_1 = __webpack_require__(176);
2378
2391
 
2379
- var Nodes_1 = __webpack_require__(176);
2392
+ var Nodes_1 = __webpack_require__(177);
2380
2393
 
2381
- var GraphStyles_1 = __webpack_require__(120);
2394
+ var GraphStyles_1 = __webpack_require__(121);
2382
2395
 
2383
- var PureLinkGraphUtils_1 = __webpack_require__(119);
2396
+ var PureLinkGraphUtils_1 = __webpack_require__(120);
2384
2397
 
2385
2398
  var Graph = /*#__PURE__*/function (_React$Component) {
2386
2399
  _inherits(Graph, _React$Component);
@@ -2659,13 +2672,17 @@ var Graph = /*#__PURE__*/function (_React$Component) {
2659
2672
  nodeHighlightColor = _this$props.nodeHighlightColor,
2660
2673
  linkColor = _this$props.linkColor,
2661
2674
  linkWidth = _this$props.linkWidth,
2662
- showValueCounts = _this$props.showValueCounts;
2675
+ showValueCounts = _this$props.showValueCounts,
2676
+ nodeTextColor = _this$props.nodeTextColor,
2677
+ nodeTextHighlightColor = _this$props.nodeTextHighlightColor;
2663
2678
  var newEdges = edges.filter(function (edge) {
2664
2679
  return nodes[edge.sourceNode] && nodes[edge.targetNode];
2665
2680
  });
2666
2681
  return React.createElement(GraphStyles_1.StyledViewport, {
2667
2682
  nodeColor: nodeColor,
2683
+ nodeTextColor: nodeTextColor,
2668
2684
  nodeHighlightColor: nodeHighlightColor,
2685
+ nodeTextHighlightColor: nodeTextHighlightColor,
2669
2686
  linkColor: linkColor,
2670
2687
  ref: function ref(c) {
2671
2688
  _this8.viewport = c;
@@ -2732,7 +2749,7 @@ var Graph = /*#__PURE__*/function (_React$Component) {
2732
2749
  exports.default = Graph;
2733
2750
 
2734
2751
  /***/ }),
2735
- /* 175 */
2752
+ /* 176 */
2736
2753
  /***/ (function(module, exports, __webpack_require__) {
2737
2754
 
2738
2755
  "use strict";
@@ -2744,7 +2761,7 @@ Object.defineProperty(exports, "__esModule", {
2744
2761
 
2745
2762
  var React = __webpack_require__(1);
2746
2763
 
2747
- var GraphStyles_1 = __webpack_require__(120);
2764
+ var GraphStyles_1 = __webpack_require__(121);
2748
2765
 
2749
2766
  var Edges = function Edges(props) {
2750
2767
  var edges = props.edges,
@@ -2773,7 +2790,7 @@ var Edges = function Edges(props) {
2773
2790
  exports.default = Edges;
2774
2791
 
2775
2792
  /***/ }),
2776
- /* 176 */
2793
+ /* 177 */
2777
2794
  /***/ (function(module, exports, __webpack_require__) {
2778
2795
 
2779
2796
  "use strict";
@@ -2785,7 +2802,7 @@ Object.defineProperty(exports, "__esModule", {
2785
2802
 
2786
2803
  var React = __webpack_require__(1);
2787
2804
 
2788
- var Node_1 = __webpack_require__(177);
2805
+ var Node_1 = __webpack_require__(178);
2789
2806
 
2790
2807
  var Nodes = function Nodes(props) {
2791
2808
  return Object.keys(props.nodes).map(function (key) {
@@ -2813,7 +2830,7 @@ var Nodes = function Nodes(props) {
2813
2830
  exports.default = Nodes;
2814
2831
 
2815
2832
  /***/ }),
2816
- /* 177 */
2833
+ /* 178 */
2817
2834
  /***/ (function(module, exports, __webpack_require__) {
2818
2835
 
2819
2836
  "use strict";
@@ -2825,7 +2842,7 @@ Object.defineProperty(exports, "__esModule", {
2825
2842
 
2826
2843
  var React = __webpack_require__(1);
2827
2844
 
2828
- var Paragraph_1 = __webpack_require__(178);
2845
+ var Paragraph_1 = __webpack_require__(179);
2829
2846
 
2830
2847
  var Node = function Node(props) {
2831
2848
  var data = props.data,
@@ -2840,13 +2857,13 @@ var Node = function Node(props) {
2840
2857
  exports.default = Node;
2841
2858
 
2842
2859
  /***/ }),
2843
- /* 178 */
2860
+ /* 179 */
2844
2861
  /***/ (function(module, exports) {
2845
2862
 
2846
2863
  module.exports = require("@splunk/react-ui/Paragraph");
2847
2864
 
2848
2865
  /***/ }),
2849
- /* 179 */
2866
+ /* 180 */
2850
2867
  /***/ (function(module, exports, __webpack_require__) {
2851
2868
 
2852
2869
  "use strict";
@@ -2858,13 +2875,13 @@ Object.defineProperty(exports, "__esModule", {
2858
2875
 
2859
2876
  var React = __webpack_require__(1);
2860
2877
 
2861
- var Dropdown_1 = __webpack_require__(180);
2878
+ var Dropdown_1 = __webpack_require__(181);
2862
2879
 
2863
- var Button_1 = __webpack_require__(181);
2880
+ var Button_1 = __webpack_require__(182);
2864
2881
 
2865
- var Menu_1 = __webpack_require__(182);
2882
+ var Menu_1 = __webpack_require__(183);
2866
2883
 
2867
- var Chip_1 = __webpack_require__(183);
2884
+ var Chip_1 = __webpack_require__(184);
2868
2885
 
2869
2886
  var Field = function Field(_ref) {
2870
2887
  var field = _ref.field,
@@ -2908,31 +2925,31 @@ Field.displayName = 'Field';
2908
2925
  exports.default = Field;
2909
2926
 
2910
2927
  /***/ }),
2911
- /* 180 */
2928
+ /* 181 */
2912
2929
  /***/ (function(module, exports) {
2913
2930
 
2914
2931
  module.exports = require("@splunk/react-ui/Dropdown");
2915
2932
 
2916
2933
  /***/ }),
2917
- /* 181 */
2934
+ /* 182 */
2918
2935
  /***/ (function(module, exports) {
2919
2936
 
2920
2937
  module.exports = require("@splunk/react-ui/Button");
2921
2938
 
2922
2939
  /***/ }),
2923
- /* 182 */
2940
+ /* 183 */
2924
2941
  /***/ (function(module, exports) {
2925
2942
 
2926
2943
  module.exports = require("@splunk/react-ui/Menu");
2927
2944
 
2928
2945
  /***/ }),
2929
- /* 183 */
2946
+ /* 184 */
2930
2947
  /***/ (function(module, exports) {
2931
2948
 
2932
2949
  module.exports = require("@splunk/react-ui/Chip");
2933
2950
 
2934
2951
  /***/ }),
2935
- /* 184 */
2952
+ /* 185 */
2936
2953
  /***/ (function(module, exports, __webpack_require__) {
2937
2954
 
2938
2955
  "use strict";
@@ -2959,7 +2976,7 @@ exports.StyledFields = styled_components_1.default.div.withConfig({
2959
2976
  }));
2960
2977
 
2961
2978
  /***/ }),
2962
- /* 185 */
2979
+ /* 186 */
2963
2980
  /***/ (function(module, exports, __webpack_require__) {
2964
2981
 
2965
2982
  "use strict";
@@ -3010,7 +3027,16 @@ var size = {
3010
3027
  initialWidth: 900,
3011
3028
  initialHeight: 400
3012
3029
  };
3013
- var defaultContext = {};
3030
+ var defaultContext = {
3031
+ nodeTextColorMaxContrast: {
3032
+ colors: ['> themes.textColor', '> themes.inverseTextColor'],
3033
+ default: '> themes.textColor'
3034
+ },
3035
+ nodeHighlightTextColorMaxContrast: {
3036
+ colors: ['> themes.defaultNodeColor', '> themes.inverseDefaultNodeColor'],
3037
+ default: '> themes.textColor'
3038
+ }
3039
+ };
3014
3040
  var optionsSchema = {
3015
3041
  backgroundColor: {
3016
3042
  default: '> themes.defaultBackgroundColor',
@@ -3043,6 +3069,12 @@ var optionsSchema = {
3043
3069
  pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
3044
3070
  type: 'string'
3045
3071
  },
3072
+ nodeTextColor: {
3073
+ description: 'Specify the color used for unhighlighted nodes text.',
3074
+ pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
3075
+ type: 'string',
3076
+ default: '> nodeColor | maxContrast(nodeTextColorMaxContrast)'
3077
+ },
3046
3078
  nodeHeight: {
3047
3079
  default: 21,
3048
3080
  description: 'Specify, in pixels, the height of each node.',
@@ -3054,6 +3086,12 @@ var optionsSchema = {
3054
3086
  pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
3055
3087
  type: 'string'
3056
3088
  },
3089
+ nodeTextHighlightColor: {
3090
+ description: 'Specify the color used for highlighted nodes text.',
3091
+ pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
3092
+ type: 'string',
3093
+ default: '> nodeHighlightColor | maxContrast(nodeHighlightTextColorMaxContrast)'
3094
+ },
3057
3095
  nodeSpacingX: {
3058
3096
  default: 32,
3059
3097
  description: 'Specify, in pixels, the horizontal spacing between each node.',
@@ -3103,6 +3141,32 @@ var themes = {
3103
3141
  },
3104
3142
  prisma: variables_1.default.backgroundColorDialog(props)
3105
3143
  })(props);
3144
+ },
3145
+ inverseDefaultNodeColor: function inverseDefaultNodeColor(props) {
3146
+ return pick_1.default({
3147
+ enterprise: {
3148
+ dark: variables_1.default.contentColorInverted(props),
3149
+ light: variables_1.default.white(props) // equal to textColor in enterpriseDark
3150
+
3151
+ },
3152
+ prisma: variables_1.default.contentColorInverted(props)
3153
+ })(props);
3154
+ },
3155
+ textColor: function textColor(props) {
3156
+ return pick_1.default({
3157
+ enterprise: variables_1.default.textColor(props),
3158
+ prisma: variables_1.default.contentColorDefault(props)
3159
+ })(props);
3160
+ },
3161
+ inverseTextColor: function inverseTextColor(props) {
3162
+ return pick_1.default({
3163
+ enterprise: {
3164
+ dark: variables_1.default.contentColorInverted(props),
3165
+ light: variables_1.default.white(props) // equal to textColor in enterpriseDark
3166
+
3167
+ },
3168
+ prisma: variables_1.default.contentColorInverted(props)
3169
+ })(props);
3106
3170
  }
3107
3171
  };
3108
3172
  var EDITOR_LABEL_WIDTH = 140;