@redsift/charts 10.6.5 → 10.6.6

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/index.js CHANGED
@@ -2457,6 +2457,10 @@ const DotVariant = {
2457
2457
  * Component style.
2458
2458
  */
2459
2459
  const StyledDot = styled(DataPoint)`
2460
+ text {
2461
+ user-select: none;
2462
+ }
2463
+
2460
2464
  ${_ref => {
2461
2465
  let {
2462
2466
  $variant
@@ -2492,7 +2496,7 @@ const StyledDot = styled(DataPoint)`
2492
2496
  }}}
2493
2497
  `;
2494
2498
 
2495
- const _excluded$d = ["className", "labelDecorator", "scaleX", "scaleY", "variant"];
2499
+ const _excluded$d = ["className", "labelDecorator", "scaleX", "scaleY", "variant", "children"];
2496
2500
  const COMPONENT_NAME$4 = 'Dot';
2497
2501
  const CLASSNAME$4 = 'redsift-dot';
2498
2502
  const Dot = /*#__PURE__*/forwardRef((props, ref) => {
@@ -2510,7 +2514,8 @@ const Dot = /*#__PURE__*/forwardRef((props, ref) => {
2510
2514
  },
2511
2515
  scaleX,
2512
2516
  scaleY,
2513
- variant = DotVariant.plain
2517
+ variant = DotVariant.plain,
2518
+ children
2514
2519
  } = props,
2515
2520
  forwardedProps = _objectWithoutProperties(props, _excluded$d);
2516
2521
  const theme = useTheme();
@@ -2531,7 +2536,7 @@ const Dot = /*#__PURE__*/forwardRef((props, ref) => {
2531
2536
  fill: variant === DotVariant.hollow ? `var(--redsift-color-neutral-${theme === Theme.light ? 'white' : 'x-dark-grey'})` : isDeselected ? 'var(--redsift-color-neutral-light-grey)' : color,
2532
2537
  stroke: isDeselected ? 'var(--redsift-color-neutral-light-grey)' : color,
2533
2538
  strokeWidth: variant === DotVariant.hollow ? '2' : '0'
2534
- }));
2539
+ }), children);
2535
2540
  });
2536
2541
  Dot.className = CLASSNAME$4;
2537
2542
  Dot.displayName = COMPONENT_NAME$4;