UNPKG

@awsui/components-react

Version:

On July 19th, 2022, we launched [Cloudscape Design System](https://cloudscape.design). Cloudscape is an evolution of AWS-UI. It consists of user interface guidelines, front-end components, design resources, and development tools for building intuitive, en

25 lines 1.36 kB
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import React from 'react'; import ChartPopover from '../../internal/components/chart-popover'; import ChartSeriesDetails from '../../internal/components/chart-series-details'; import styles from '../styles.css.js'; export default function AreaChartPopover({ model, highlightDetails, dismissAriaLabel, footer, size, onBlur, }) { if (!highlightDetails) { return null; } const popoverProps = { title: highlightDetails.formattedX, trackRef: model.refs.verticalMarker, trackKey: highlightDetails.highlightIndex, dismissButton: highlightDetails.isPopoverPinned, onDismiss: model.handlers.onPopoverDismiss, onMouseLeave: model.handlers.onPopoverLeave, ref: model.refs.popoverRef, }; return (React.createElement(ChartPopover, { ...popoverProps, container: model.refs.container.current, dismissAriaLabel: dismissAriaLabel, size: size, onBlur: onBlur, footer: footer }, React.createElement(ChartSeriesDetails, { details: highlightDetails.seriesDetails }), React.createElement("div", { className: styles['popover-divider'] }), React.createElement(ChartSeriesDetails, { details: highlightDetails.totalDetails }))); } //# sourceMappingURL=chart-popover.js.map