WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Draft
549 changes: 549 additions & 0 deletions pages/tooltip/internal-tooltip-examples.page.tsx

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { ButtonProps } from '../../../../button/interfaces';
import { IconProps } from '../../../../icon/interfaces';
import Icon from '../../../../icon/internal';
import Tooltip from '../../../../internal/components/tooltip';
import Tooltip from '../../../../tooltip/internal.js';

import testutilStyles from '../../../test-classes/styles.css.js';
import styles from './styles.css.js';
Expand Down Expand Up @@ -241,10 +241,10 @@ function TriggerButton(
{badge && <div className={styles.dot} />}
{tooltipVisible && (
<Tooltip
trackRef={containerRef}
value={tooltipValue}
getTrack={() => containerRef.current}
className={testutilStyles['trigger-tooltip']}
onDismiss={() => {
content={tooltipValue}
onEscape={() => {
setShowTooltip(false);
setSupressTooltip(false);
}}
Expand Down
29 changes: 14 additions & 15 deletions src/area-chart/chart-container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,20 @@

type TickFormatter = undefined | ((value: AreaChartProps.DataTypes) => string);

interface ChartContainerProps<T extends AreaChartProps.DataTypes>
extends Pick<
AreaChartProps<T>,
| 'xTitle'
| 'yTitle'
| 'xTickFormatter'
| 'yTickFormatter'
| 'detailTotalFormatter'
| 'detailPopoverSize'
| 'detailPopoverFooter'
| 'ariaLabel'
| 'ariaLabelledby'
| 'ariaDescription'
| 'i18nStrings'
> {
interface ChartContainerProps<T extends AreaChartProps.DataTypes> extends Pick<

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components unit tests

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components (React 18)

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 3/4)

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 16)

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 2/4)

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (5/6)

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (2/6)

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (1/6)

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (4/6)

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 18)

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (3/6)

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 2/4)

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 3/4)

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (6/6)

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 1/4)

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 4/4)

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 1/4)

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 4/4)

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build / build

Insert `⏎·`

Check failure on line 30 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build (React 18) / build

Insert `⏎·`
AreaChartProps<T>,

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components unit tests

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components (React 18)

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 3/4)

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 16)

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 2/4)

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (5/6)

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (2/6)

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (1/6)

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (4/6)

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 18)

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (3/6)

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 2/4)

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 3/4)

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (6/6)

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 1/4)

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 4/4)

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 1/4)

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 4/4)

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build / build

Insert `··`

Check failure on line 31 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build (React 18) / build

Insert `··`
| 'xTitle'

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components unit tests

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components (React 18)

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 3/4)

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 16)

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 2/4)

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (5/6)

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (2/6)

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (1/6)

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (4/6)

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 18)

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (3/6)

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 2/4)

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 3/4)

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (6/6)

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 1/4)

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 4/4)

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 1/4)

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 4/4)

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build / build

Insert `··`

Check failure on line 32 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build (React 18) / build

Insert `··`
| 'yTitle'

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components unit tests

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components (React 18)

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 3/4)

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 16)

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 2/4)

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (5/6)

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (2/6)

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (1/6)

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (4/6)

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 18)

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (3/6)

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 2/4)

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 3/4)

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (6/6)

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 1/4)

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 4/4)

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 1/4)

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 4/4)

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build / build

Replace `··` with `····`

Check failure on line 33 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build (React 18) / build

Replace `··` with `····`
| 'xTickFormatter'

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components unit tests

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components (React 18)

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 3/4)

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 16)

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 2/4)

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (5/6)

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (2/6)

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (1/6)

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (4/6)

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 18)

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (3/6)

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 2/4)

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 3/4)

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (6/6)

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 1/4)

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 4/4)

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 1/4)

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 4/4)

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build / build

Insert `··`

Check failure on line 34 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build (React 18) / build

Insert `··`
| 'yTickFormatter'

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components unit tests

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components (React 18)

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 3/4)

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 16)

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 2/4)

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (5/6)

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (2/6)

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (1/6)

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (4/6)

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 18)

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (3/6)

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 2/4)

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 3/4)

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (6/6)

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 1/4)

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 4/4)

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 1/4)

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 4/4)

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build / build

Replace `··` with `····`

Check failure on line 35 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build (React 18) / build

Replace `··` with `····`
| 'detailTotalFormatter'

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components unit tests

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components (React 18)

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 3/4)

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 16)

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 2/4)

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (5/6)

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (2/6)

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (1/6)

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (4/6)

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 18)

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (3/6)

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 2/4)

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 3/4)

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (6/6)

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 1/4)

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 4/4)

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 1/4)

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 4/4)

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build / build

Insert `··`

Check failure on line 36 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build (React 18) / build

Insert `··`
| 'detailPopoverSize'

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components unit tests

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components (React 18)

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 3/4)

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 16)

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 2/4)

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (5/6)

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (2/6)

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (1/6)

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (4/6)

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 18)

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (3/6)

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 2/4)

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 3/4)

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (6/6)

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 1/4)

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 4/4)

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 1/4)

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 4/4)

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build / build

Insert `··`

Check failure on line 37 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build (React 18) / build

Insert `··`
| 'detailPopoverFooter'

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components unit tests

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components (React 18)

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 3/4)

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 16)

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 2/4)

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (5/6)

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (2/6)

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (1/6)

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (4/6)

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 18)

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (3/6)

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 2/4)

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 3/4)

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (6/6)

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 1/4)

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 4/4)

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 1/4)

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 4/4)

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build / build

Insert `··`

Check failure on line 38 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build (React 18) / build

Insert `··`
| 'ariaLabel'

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components unit tests

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Build components (React 18)

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 3/4)

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 16)

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 2/4)

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (5/6)

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (2/6)

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (1/6)

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (4/6)

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components motion tests (React 18)

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (3/6)

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 2/4)

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 3/4)

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components accessibility tests shards (6/6)

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 1/4)

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 4/4)

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 18, shard 1/4)

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / dry-run / Components integration tests shards (React 16, shard 4/4)

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build / build

Insert `··`

Check failure on line 39 in src/area-chart/chart-container.tsx

View workflow job for this annotation

GitHub Actions / build (React 18) / build

Insert `··`
| 'ariaLabelledby'
| 'ariaDescription'
| 'i18nStrings'
> {
model: ChartModel<T>;
autoWidth: (value: number) => void;
fitHeight?: boolean;
Expand Down
6 changes: 4 additions & 2 deletions src/area-chart/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
// SPDX-License-Identifier: Apache-2.0
import { CartesianChartProps, ChartDataTypes } from '../internal/components/cartesian-chart/interfaces';

export interface AreaChartProps<T extends AreaChartProps.DataTypes>
extends CartesianChartProps<T, AreaChartProps.Series<T>> {
export interface AreaChartProps<T extends AreaChartProps.DataTypes> extends CartesianChartProps<
T,
AreaChartProps.Series<T>
> {
/**
* Array that represents the source of data for the displayed chart.
* Each element can represent an area series, or a threshold, and can have the following properties:
Expand Down
3 changes: 2 additions & 1 deletion src/autosuggest/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ import { FormFieldValidationControlProps } from '../internal/context/form-field-
import { NonCancelableEventHandler } from '../internal/events';

export interface AutosuggestProps
extends BaseComponentProps,
extends
BaseComponentProps,
BaseInputProps,
InputAutoCorrect,
BaseDropdownHostProps,
Expand Down
6 changes: 4 additions & 2 deletions src/autosuggest/options-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ import { AutosuggestItemsHandlers, AutosuggestItemsState } from './options-contr
import PlainList from './plain-list';
import VirtualList from './virtual-list';

interface AutosuggestOptionsListProps
extends Pick<AutosuggestProps, 'virtualScroll' | 'selectedAriaLabel' | 'renderHighlightedAriaLive'> {
interface AutosuggestOptionsListProps extends Pick<
AutosuggestProps,
'virtualScroll' | 'selectedAriaLabel' | 'renderHighlightedAriaLive'
> {
statusType: AutosuggestProps.StatusType;
autosuggestItemsState: AutosuggestItemsState;
autosuggestItemsHandlers: AutosuggestItemsHandlers;
Expand Down
2 changes: 1 addition & 1 deletion src/breadcrumb-group/__integ__/breadcrumb-group.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import useBrowser from '@cloudscape-design/browser-test-tools/use-browser';
import createWrapper from '../../../lib/components/test-utils/selectors';

import breadcrumbGroupStyles from '../../../lib/components/breadcrumb-group/styles.selectors.js';
import tooltipStyles from '../../../lib/components/internal/components/tooltip/styles.selectors.js';
import tooltipStyles from '../../../lib/components/tooltip/styles.selectors.js';

const breadcrumbGroupWrapper = createWrapper().findBreadcrumbGroup();
const dropdownWrapper = breadcrumbGroupWrapper.findDropdown();
Expand Down
2 changes: 1 addition & 1 deletion src/breadcrumb-group/__tests__/breadcrumb-item.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { BreadcrumbItem } from '../../../lib/components/breadcrumb-group/item/it
import createWrapper, { BreadcrumbGroupWrapper } from '../../../lib/components/test-utils/dom';

import breadcrumbItemStyles from '../../../lib/components/breadcrumb-group/item/styles.selectors.js';
import tooltipStyles from '../../../lib/components/internal/components/tooltip/styles.selectors.js';
import tooltipStyles from '../../../lib/components/tooltip/styles.selectors.js';

const renderBreadcrumbGroup = (props: BreadcrumbGroupProps) => {
const { container } = render(<BreadcrumbGroup {...props} />);
Expand Down
10 changes: 6 additions & 4 deletions src/breadcrumb-group/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import { BaseComponentProps } from '../internal/base-component';
import { BaseNavigationDetail, CancelableEventHandler } from '../internal/events';
import { InternalBaseComponentProps } from '../internal/hooks/use-base-component';

export interface BreadcrumbGroupProps<T extends BreadcrumbGroupProps.Item = BreadcrumbGroupProps.Item>
extends BaseComponentProps {
export interface BreadcrumbGroupProps<
T extends BreadcrumbGroupProps.Item = BreadcrumbGroupProps.Item,
> extends BaseComponentProps {
/**
* An array of breadcrumb items that describes the link hierarchy for this navigation.
* Each option has the following properties:
Expand Down Expand Up @@ -47,8 +48,9 @@ export namespace BreadcrumbGroupProps {
href: string;
}

export interface ClickDetail<T extends BreadcrumbGroupProps.Item = BreadcrumbGroupProps.Item>
extends BaseNavigationDetail {
export interface ClickDetail<
T extends BreadcrumbGroupProps.Item = BreadcrumbGroupProps.Item,
> extends BaseNavigationDetail {
item: T;
text: string;
href: string;
Expand Down
4 changes: 2 additions & 2 deletions src/breadcrumb-group/item/item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import React, { useRef, useState } from 'react';
import clsx from 'clsx';

import InternalIcon from '../../icon/internal';
import Tooltip from '../../internal/components/tooltip';
import { fireCancelableEvent, isPlainLeftClick } from '../../internal/events';
import Tooltip from '../../tooltip/internal.js';
import { BreadcrumbGroupProps, BreadcrumbItemProps } from '../interfaces';
import { getEventDetail } from '../utils';
import { FunnelBreadcrumbItem } from './funnel';
Expand Down Expand Up @@ -47,7 +47,7 @@ const BreadcrumbItemWithPopover = <T extends BreadcrumbGroupProps.Item>({
>
{children}
{showTooltip && (
<Tooltip trackRef={textRef} value={item.text} size="medium" onDismiss={() => setShowTooltip(false)} />
<Tooltip getTrack={() => textRef.current} content={item.text} onEscape={() => setShowTooltip(false)} />
)}
</Item>
);
Expand Down
9 changes: 5 additions & 4 deletions src/button-dropdown/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,10 @@ export namespace ButtonDropdownProps {
labelTag?: string;
}

export interface CheckboxItem
extends Omit<ButtonDropdownProps.Item, 'href' | 'download' | 'external' | 'externalIconAriaLabel' | 'itemType'> {
export interface CheckboxItem extends Omit<
ButtonDropdownProps.Item,
'href' | 'download' | 'external' | 'externalIconAriaLabel' | 'itemType'
> {
itemType: 'checkbox';
checked: boolean;
}
Expand Down Expand Up @@ -331,8 +333,7 @@ type InternalItems = ReadonlyArray<InternalItemOrGroup>;
export type InternalItemOrGroup = InternalItem | InternalCheckboxItem | InternalItemGroup;

export interface InternalButtonDropdownProps
extends Omit<ButtonDropdownProps, 'variant' | 'items'>,
InternalBaseComponentProps {
extends Omit<ButtonDropdownProps, 'variant' | 'items'>, InternalBaseComponentProps {
customTriggerBuilder?: (props: CustomTriggerProps) => React.ReactNode;
variant?: ButtonDropdownProps['variant'] | 'navigation';
items: ReadonlyArray<InternalItemOrGroup>;
Expand Down
10 changes: 5 additions & 5 deletions src/button-group/file-input-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import clsx from 'clsx';

import { FileInputProps } from '../file-input/interfaces.js';
import InternalFileInput from '../file-input/internal.js';
import Tooltip from '../internal/components/tooltip/index.js';
import { CancelableEventHandler, fireCancelableEvent } from '../internal/events/index.js';
import Tooltip from '../tooltip/internal.js';
import { ButtonGroupProps } from './interfaces.js';

import testUtilStyles from './test-classes/styles.css.js';
Expand Down Expand Up @@ -47,11 +47,11 @@ const FileInputItem = forwardRef(
/>
{canShowTooltip && (
<Tooltip
trackRef={containerRef}
trackKey={item.id}
value={item.text}
className={clsx(testUtilStyles.tooltip, testUtilStyles['button-group-tooltip'])}
onDismiss={onTooltipDismiss}
getTrack={() => containerRef.current}
trackKey={item.id}
content={item.text}
onEscape={onTooltipDismiss}
/>
)}
</div>
Expand Down
18 changes: 10 additions & 8 deletions src/button-group/icon-button-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,8 @@ import { warnOnce } from '@cloudscape-design/component-toolkit/internal';

import { ButtonProps } from '../button/interfaces.js';
import { InternalButton } from '../button/internal.js';
import Tooltip from '../internal/components/tooltip/index.js';
import { CancelableEventHandler, fireCancelableEvent } from '../internal/events/index.js';
import InternalLiveRegion from '../live-region/internal.js';
import Tooltip from '../tooltip/internal.js';
import { ButtonGroupProps, InternalIconButton } from './interfaces.js';

import testUtilStyles from './test-classes/styles.css.js';
Expand Down Expand Up @@ -62,14 +61,17 @@ const IconButtonItem = forwardRef(
</InternalButton>
{(canShowTooltip || canShowFeedback) && (
<Tooltip
trackRef={containerRef}
className={clsx(testUtilStyles.tooltip, testUtilStyles['button-group-tooltip'])}
getTrack={() => containerRef.current}
trackKey={item.id}
value={
(showFeedback && <InternalLiveRegion tagName="span">{item.popoverFeedback}</InternalLiveRegion>) ||
item.text
content={
canShowFeedback
? typeof item.popoverFeedback === 'string'
? item.popoverFeedback
: item.text
: item.text
}
className={clsx(testUtilStyles.tooltip, testUtilStyles['button-group-tooltip'])}
onDismiss={onTooltipDismiss}
onEscape={onTooltipDismiss}
/>
)}
</div>
Expand Down
10 changes: 5 additions & 5 deletions src/button-group/icon-toggle-button-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import clsx from 'clsx';
import { warnOnce } from '@cloudscape-design/component-toolkit/internal';

import { ButtonProps } from '../button/interfaces.js';
import Tooltip from '../internal/components/tooltip/index.js';
import { CancelableEventHandler, fireCancelableEvent } from '../internal/events/index.js';
import InternalLiveRegion from '../live-region/internal.js';
import { InternalToggleButton } from '../toggle-button/internal.js';
import Tooltip from '../tooltip/internal.js';
import { ButtonGroupProps, InternalIconToggleButton } from './interfaces.js';

import testUtilStyles from './test-classes/styles.css.js';
Expand Down Expand Up @@ -69,13 +69,13 @@ const IconToggleButtonItem = forwardRef(
</InternalToggleButton>
{(canShowTooltip || canShowFeedback) && (
<Tooltip
trackRef={containerRef}
className={clsx(testUtilStyles.tooltip, testUtilStyles['button-group-tooltip'])}
getTrack={() => containerRef.current}
trackKey={item.id}
value={
content={
(showFeedback && <InternalLiveRegion tagName="span">{feedbackContent}</InternalLiveRegion>) || item.text
}
className={clsx(testUtilStyles.tooltip, testUtilStyles['button-group-tooltip'])}
onDismiss={onTooltipDismiss}
onEscape={onTooltipDismiss}
/>
)}
</div>
Expand Down
3 changes: 1 addition & 2 deletions src/button-group/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,7 @@ export type InternalItem =
| ButtonGroupProps.MenuDropdown;

export interface InternalButtonGroupProps
extends SomeRequired<ButtonGroupProps, 'dropdownExpandToViewport'>,
InternalBaseComponentProps {
extends SomeRequired<ButtonGroupProps, 'dropdownExpandToViewport'>, InternalBaseComponentProps {
style?: ButtonGroupProps.Style;
items: ReadonlyArray<InternalItemOrGroup>;
}
Expand Down
10 changes: 5 additions & 5 deletions src/button-group/menu-dropdown-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-tool
import InternalButton from '../button/internal';
import { ButtonDropdownProps } from '../button-dropdown/interfaces';
import ButtonDropdown from '../button-dropdown/internal';
import Tooltip from '../internal/components/tooltip';
import { CancelableEventHandler, fireCancelableEvent } from '../internal/events';
import Tooltip from '../tooltip/internal.js';
import { ButtonGroupProps } from './interfaces';

import testUtilStyles from './test-classes/styles.css.js';
Expand Down Expand Up @@ -49,11 +49,11 @@ const MenuDropdownItem = React.forwardRef(
<div ref={containerRef} {...(item.disabled ? {} : getAnalyticsMetadataAttribute({ detail: { position } }))}>
{!isOpen && showTooltip && !item.disabled && !item.loading && (
<Tooltip
trackRef={containerRef}
trackKey={item.id}
value={item.text}
className={clsx(testUtilStyles.tooltip, testUtilStyles['button-group-tooltip'])}
onDismiss={onTooltipDismiss}
getTrack={() => containerRef.current}
trackKey={item.id}
content={item.text}
onEscape={onTooltipDismiss}
/>
)}
<InternalButton
Expand Down
8 changes: 4 additions & 4 deletions src/button/internal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import {
getSubStepAllSelector,
getTextFromSelector,
} from '../internal/analytics/selectors';
import Tooltip from '../internal/components/tooltip/index.js';
import { useButtonContext } from '../internal/context/button-context';
import { fireCancelableEvent, isPlainLeftClick } from '../internal/events';
import useForwardFocus from '../internal/hooks/forward-focus';
Expand All @@ -31,6 +30,7 @@ import { usePerformanceMarks } from '../internal/hooks/use-performance-marks';
import { checkSafeUrl } from '../internal/utils/check-safe-url';
import WithNativeAttributes from '../internal/utils/with-native-attributes';
import InternalLiveRegion from '../live-region/internal';
import Tooltip from '../tooltip/internal.js';
import { GeneratedAnalyticsMetadataButtonFragment } from './analytics-metadata/interfaces';
import { ButtonIconProps, LeftIcon, RightIcon } from './icon-helper';
import { ButtonProps } from './interfaces';
Expand Down Expand Up @@ -283,9 +283,9 @@ export const InternalButton = React.forwardRef(
{showTooltip && (
<Tooltip
className={testUtilStyles['disabled-reason-tooltip']}
trackRef={buttonRef}
value={disabledReason!}
onDismiss={() => setShowTooltip(false)}
getTrack={() => buttonRef.current}
content={disabledReason!}
onEscape={() => setShowTooltip(false)}
/>
)}
</>
Expand Down
8 changes: 4 additions & 4 deletions src/calendar/grid/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';

import { DatePickerProps } from '../../date-picker/interfaces';
import ScreenreaderOnly from '../../internal/components/screenreader-only/index.js';
import Tooltip from '../../internal/components/tooltip';
import { useEffectOnUpdate } from '../../internal/hooks/use-effect-on-update';
import useHiddenDescription from '../../internal/hooks/use-hidden-description';
import { applyDisplayName } from '../../internal/utils/apply-display-name';
import Tooltip from '../../tooltip/internal.js';
import { CalendarProps } from '../interfaces';

import styles from '../styles.css.js';
Expand Down Expand Up @@ -77,9 +77,9 @@ const GridCell = forwardRef((props: GridCellProps, focusedDateRef: React.Ref<HTM
{showTooltip && (
<Tooltip
className={styles['disabled-reason-tooltip']}
trackRef={ref}
value={disabledReason!}
onDismiss={() => setShowTooltip(false)}
getTrack={() => ref.current}
content={disabledReason!}
onEscape={() => setShowTooltip(false)}
/>
)}
</>
Expand Down
9 changes: 4 additions & 5 deletions src/column-layout/flexible-column-layout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ export function calculcateCssColumnCount(
);
}

interface FlexibleColumnLayoutProps
extends Pick<
InternalColumnLayoutProps,
'minColumnWidth' | 'columns' | 'variant' | 'borders' | 'disableGutters' | '__tagOverride'
> {
interface FlexibleColumnLayoutProps extends Pick<
InternalColumnLayoutProps,
'minColumnWidth' | 'columns' | 'variant' | 'borders' | 'disableGutters' | '__tagOverride'
> {
children: React.ReactNode;
}

Expand Down
3 changes: 2 additions & 1 deletion src/column-layout/grid-column-layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ const COLUMN_DEFS: Record<number, GridProps.ElementDefinition | undefined> = {
};

interface GridColumnLayoutProps
extends Required<Pick<InternalColumnLayoutProps, 'columns' | 'variant' | 'borders' | 'disableGutters'>>,
extends
Required<Pick<InternalColumnLayoutProps, 'columns' | 'variant' | 'borders' | 'disableGutters'>>,
Pick<InternalColumnLayoutProps, '__tagOverride'> {
children: React.ReactNode;
__breakpoint?: ColumnLayoutBreakpoint;
Expand Down
5 changes: 4 additions & 1 deletion src/column-layout/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ $column-breakpoint-spans: (

@mixin remove-useless-vertical-borders($col-size, $direction) {
$items-per-row: math.div($grid-columns, $col-size);
$items-modifier: if($direction == 'inline-start', '+1', '');
$items-modifier: '';
@if $direction == 'inline-start' {
$items-modifier: '+1';
}
> *:nth-child(#{$items-per-row}n#{$items-modifier}) {
border-#{$direction}-width: 0;
}
Expand Down
Loading
Loading